path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
test/helpers/shallowRenderHelper.js | yeahatgithub/YesGalleryByReact | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
shared/app/Tms/components/Icons/CarouselArrow.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
/**
* CarouselArrow
*
* @param {string} svgClass
* @param {string} pathClass
*/
const CarouselArrow = ({ svgClass, pathClass }) =>
(<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 27.1 49.9"
className={svgClass}
aria-labelledby=... |
starter/node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | marziyeah/Medhacks_admin | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
components/Error/Error.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import { connectToStores } from 'fluxible-addons-react';
import ErrorStore from '../../stores/ErrorStore';
class Error extends React.Component {
handleReload(){
window.location.reload();
}
render() {
switch(this.props.error.sta... |
app/screens/articles/articles2.js | andry-baka/dapur-ngebul-app | import React from 'react';
import {
FlatList,
Image,
View,
TouchableOpacity
} from 'react-native';
import {
RkText,
RkCard, RkStyleSheet
} from 'react-native-ui-kitten';
import {SocialBar} from '../../components';
import {data} from '../../data';
let moment = require('moment');
export class Articles2 exten... |
node_modules/react-router/modules/State.js | yomolify/cc-server | import React from 'react';
var { object } = React.PropTypes;
/**
* A mixin for components that need to know the path, routes, URL
* params and query that are currently active.
*
* Example:
*
* import { State } from 'react-router';
*
* var AboutLink = React.createClass({
* mixins: [ State ],
* re... |
examples/huge-apps/components/App.js | kevinsimper/react-router | import React from 'react';
import Dashboard from './Dashboard';
import GlobalNav from './GlobalNav';
class App extends React.Component {
static loadProps (params, cb) {
console.log('App', 'loadProps');
cb(null, { courses: COURSES });
}
render () {
var { courses, loading } = this.props;
return (... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-calendar/es/month/MonthTable.js | bhathiya/test | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-run... |
App/navigation/ContactsScreen.js | thekelvinliu/capchat | import React, { Component } from 'react';
import { Button, Text } from 'react-native';
import { Entypo } from '@expo/vector-icons';
import FlexItem from '../components/FlexItem';
import FlexWrapper from '../components/FlexWrapper';
import IconButton from '../components/IconButton';
export default class extends Compon... |
src/index.js | forkhacker/webapp-react | /* eslint-disable import/default */
import 'babel-polyfill';
import React from 'react';
import {render} from 'react-dom';
import configureStore from './store/configureStore';
import {Provider} from 'react-redux';
import {Router, browserHistory} from 'react-router';
import routes from './routes';
import './styles/app.sc... |
resources/assets/js/index.js | xander9112/TodoApp | import 'babel-polyfill'
import React from 'react'
import {render} from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import {Provider} from 'react-redux'
import configureStore from './store/configureStore'
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from '... |
src/components/CommuterTable.js | vnguyen94/react-commute | import React, { Component } from 'react';
import { CommuterRow } from '../components';
import CSSModules from 'react-css-modules';
import styles from '../styles/CommuterTable.scss';
@CSSModules(styles)
export default class CommuterTable extends Component {
constructor(props) {
super(props);
}
render() {
... |
src/svg-icons/action/power-settings-new.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPowerSettingsNew = (props) => (
<SvgIcon {...props}>
<path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ... |
src/users/Teacher.js | GoldStarPDX/GoldStar | import React, { Component } from 'react';
import Header from '../app/Header';
import { Switch, Route } from 'react-router-dom';
import ProfileContainer from '../profile/ProfileContainer';
import Sets from '../sets/Sets';
import Courses from '../courses/Courses';
import { Search } from '../search/Search';
import searchA... |
frontend/src/components/dashboard.js | ThaTiemsz/jetski | import React, { Component } from 'react';
import CountUp from 'react-countup';
import PageHeader from './page_header';
import GuildsTable from './guilds_table';
import {globalState} from '../state';
class DashboardGuildsList extends Component {
constructor() {
super();
this.state = {guilds: null};
}
co... |
newclient/scripts/components/admin/disclosure-filter-by-pi/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
HealthAndFitness.Mobile/src/modules/settings/Settings.js | DennisAikara/HealthAndFitness | import React from 'react';
import {
ScrollView, StyleSheet, View, Text,
TouchableOpacity
} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
export default class Settings extends React.Component {
goToExercisesSettings = () => {
this.props.navigator.push({
... |
src/components/allNote.js | onepiece8971/rememberNote | import React from 'react';
import {FlatList} from 'react-native';
import CS from '../css/convertSize';
import {
ContentView,
TopView,
TopText,
} from '../css/noteStyles';
import {MainView} from '../css/styles'
import Menu from '../containers/menu'
import Top from '../containers/top';
import SmallNoteViews from '.... |
app/src/pages/AdminDashboardPage/index.js | udacityalumni/udacity-alumni-fe | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { AdminDashboardContainer } from 'containers';
const AdminDashboardPage = () => (
<div className={styles.container}>
<AdminDashboardContainer />
</div>
);
export default cssModules(AdminDash... |
src/Checkbox/Checkbox.js | pradel/material-ui | import React from 'react';
import EnhancedSwitch from '../internal/EnhancedSwitch';
import transitions from '../styles/transitions';
import CheckboxOutline from '../svg-icons/toggle/check-box-outline-blank';
import CheckboxChecked from '../svg-icons/toggle/check-box';
import deprecated from '../utils/deprecatedPropType... |
components/Indicators/IndicatorGroup.story.js | NGMarmaduke/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import IndicatorGroup from './IndicatorGroup';
import m from '../../globals/modifiers.css';
const simpleIndicators = [1, 2, 3, 4];
storiesOf('IndicatorGroup', module)
.add('Default view', () => (
<IndicatorGroup activeIndicator={ 2 }>
... |
server/sonar-web/src/main/js/apps/overview/meta.js | vamsirajendra/sonarqube | import _ from 'underscore';
import moment from 'moment';
import React from 'react';
import { QualityProfileLink } from './../../components/shared/quality-profile-link';
import { QualityGateLink } from './../../components/shared/quality-gate-link';
import { getEvents } from '../../api/events';
import { EventsList } fro... |
app/javascript/mastodon/features/list_editor/components/account.js | blackle/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { makeGetAccount } from '../../../selectors';
import ImmutablePureComponent from 'react-immutable-pure-component';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Avatar from '../../../compone... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/menu/MenuItem.js | bhathiya/test | import React from 'react';
import { Item } from 'rc-menu';
import PropTypes from 'prop-types';
import Tooltip from '../tooltip';
var MenuItem = function MenuItem(props, _ref) {
var inlineCollapsed = _ref.inlineCollapsed;
return React.createElement(
Tooltip,
{ title: inlineCollapsed && props.lev... |
src/components/Image/Image.js | fechy/retropie-web-gui | import React, { Component } from 'react';
const notFoundImage = require('./no_image_available.png');
class Image extends Component
{
render() {
const { src } = this.props;
const imageSrc = src ? src : notFoundImage;
return (
<img {...this.props} src={imageSrc} />
);
}
}
export default Image... |
Angular/Angular2/Angular2DemoComplete/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | AnirudhDas/AniruddhaDas.github.io | import React from 'react';
import { render } from 'react-dom';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
render(<HelloWorld />, document.getElementById('react-root'));
|
test/helpers/shallowRenderHelper.js | summer213/gallery-by-react | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react';
import TestUtils from 'react-addons-test-utils'... |
app/scripts/charts/edge.js | hustbill/network-verification-ui | import React from 'react';
import { connect } from 'react-redux';
import classNames from 'classnames';
import { enterEdge, leaveEdge } from '../actions/app-actions';
import { NODE_BASE_SIZE } from '../constants/styles';
class Edge extends React.Component {
constructor(props, context) {
super(props, context);
... |
geonode/contrib/monitoring/frontend/src/components/organisms/alert-list/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RaisedButton from 'material-ui/RaisedButton';
import CircularProgress from 'material-ui/CircularProgress';
import SettingsIcon from 'material-ui/svg-icons/action/settings';
import HoverPaper from '../../atoms/ho... |
src/tabs/Profile/index.js | NewSpring/Apollos | import React from 'react';
import { shouldUpdate } from 'recompose';
import withUser from '@data/withUser';
// import withTopics from '@data/withTopics';
import Header from '@ui/Header';
import BackgroundView from '@ui/BackgroundView';
import TabView, { SceneMap } from '@ui/TabView';
import UserAvatarView from '@ui/Use... |
stories/Interactions.story.js | washswat/react-trello | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import {Board} from '../src';
const data = {
lanes: [{
id: 'lane1',
title: 'Planned Tasks',
cards: [{id: 'Card1', title: 'Card1', description: 'foo card', metadata: 'foo'},
{id: 'Card2', title: 'Card2', description: 'bar... |
client/components/imageInput/ImageInput.js | jkettmann/relay-authentication | import React from 'react'
import PropTypes from 'prop-types'
import { HOC } from 'formsy-react'
import RaisedButton from 'material-ui/RaisedButton'
class FileInput extends React.Component {
static propTypes = {
setValue: PropTypes.func.isRequired,
label: PropTypes.node,
fullWidth: PropTypes.bool,
// ... |
src/containers/Home.js | fracasula/react-redux-jest-boilerplate | import React from 'react';
import SearchBox from './../components/SearchBox';
import RelatedWords from './../components/RelatedWords';
import ReduxComponent from './ReduxComponent';
import {fetchRelatedWords} from './../actions';
class Home extends ReduxComponent {
search = (value) => {
if (value !== this.... |
Tetris/ClientApp/src/components/MobileControls.js | stewie1570/tetris | import { keys } from '../core/constants'
import React from 'react'
import styled from 'styled-components';
const LeftButton = styled.button`
position: fixed;
left: 0px;
top: 0px;
width: 15%;
height: 100%;
opacity: 0.5;
`;
const TopButton = styled.button`
position: fixed;
left: 15%;
... |
src/treeview.js | razakj/rt-treeview | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import {Input} from 'react-toolbox';
import Node from './node';
import theme from './treeview.css';
import searchTheme from './search.css';
class Search extends React.Component {
constructor(props) {
super... |
lib/js/SharedElementGroup.js | travelbird/react-native-navigation | import React from 'react';
import PropTypes from 'prop-types';
import SafeModule from 'react-native-safe-module';
const NativeSharedElement = SafeModule.component({
viewName: 'NativeNavigationSharedElementGroup',
mockComponent: ({ children }) => children,
propTypes: {
id: PropTypes.string,
nativeNavigati... |
src/components/HeaderTextTitle.js | alphasp/pxview | import React from 'react';
import { View, Text, StyleSheet, Platform } from 'react-native';
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: Platform.OS === 'android' ? 'flex-start' : 'center',
},
text: {
fontSize: 17,
fontWeight: '600',
textAlign: 'center',
marginHori... |
src/svg-icons/content/low-priority.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
src/routes/Wiki/index.js | humaniq/humaniq-pwa-website | import React from 'react';
import {Route, IndexRoute} from 'react-router'
import {cleanWikiSearch} from 'store/entities/wikiSearch/actions'
import WikiLayout from './WikiLayout'
import Wiki0 from './Wiki0'
import Wiki1 from './Wiki1'
import Wiki2 from './Wiki2'
import WikiSearch from './WikiSearch'
const Wiki = (store... |
geonode/contrib/monitoring/frontend/src/components/organisms/geonode-layers-analytics/index.js | timlinux/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getResponseData, getErrorCount } from '../../../utils';
import HoverPaper from '../../atoms/hover-paper';
import HR from '../../atoms/hr';
import ResponseTable from '../../cels/response-table';
import LayerSel... |
src/components/CircularProgress.js | ReuvenLiran/react-musicplayer | import React from 'react'
import '../styles/CircularProgress.scss'
const CircularProgress = () => {
return (
<div id='CircularProgress'>
<div className='preloader-wrapper big active'>
<div className='spinner-layer'>
<div className='circle-clipper left'>
<div className='circle'... |
src/routes/EventManager/Tickets/Tickets.js | Terrapin-Ticketing/althea | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Loading from '../../../components/shared/Loading';
import TicketEntry from 'components/shared/TicketEntry';
import './Tickets.scss';
class Tickets extends Component {
constructor(props) {
super(props);
this.state = { };
... |
app/jsx/bundles/dashboard.js | djbender/canvas-lms | /*
* Copyright (C) 2011 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
app/js/pages/About.js | sandcforge/us-fashion-community | import React from 'react';
import {
Container,
Group,
NavBar,
} from 'amazeui-touch';
const About = React.createClass({
render: function() {
return (
<Container {...this.props}>
<NavBar
title='关于'
amStyle="primary"
/>
<Group>
<h2>2016 SandCForge @ 版权所有</h... |
packages/veritone-react-common/src/components/DataPicker/UploaderViewContainer/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import UploaderViewContainer from './';
const allFormats = [
'application/json',
'application/msword',
'application/pdf',
'application/rtf',
'application/smil+xml',
'application/ttml+... |
app/components/StellarContactForm/index.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
export default class TrustForm extends Component {
static propTypes = {
trust: PropTypes.func.isRequired,
stellarKeys: PropTypes.object.isRequired,
};
constructor(props) {
super(props);
this.handleSubmit = this.handleSu... |
components/app.js | vnovick/react-redux-starter | import React from 'react';
import { Provider} from 'react-redux';
import { IntroContainer } from 'components/intro';
require('styles/app')
export default class App extends React.Component {
render() {
let props, { store } = this.props;
return (
<div className="app">
<Provider s... |
test/integration/css-fixtures/global-and-module-ordering/pages/_app.js | JeromeFitz/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
src/shared/components/App/App.js | jferrettiboke/universal-react-boilerplate | import React from 'react';
import { Link } from 'react-router';
import Helmet from 'react-helmet';
import styles from './App.css';
const App = props => (
<div>
<Helmet
htmlAttributes={{ lang: 'en' }}
link={[
{ rel: 'stylesheet', href: '/css/styles.min.css' }
]}
/>
<h1>App</h1>
... |
index.android.js | Juice4213/GZHReactNativeDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class GZHReactNativeDemo extends Component {
render() {
return (
<View style={styles.... |
bin/server.js | KopiSusu/universal-react | /* eslint no-console: 0, react/jsx-filename-extension: 0 */
import express from 'express';
import http from 'http';
import httpProxy from 'http-proxy';
import path from 'path';
import PrettyError from 'pretty-error';
import React from 'react';
import ReactDOM from 'react-dom/server';
import { match, RouterContext } fr... |
app/src/scripts/routes/app.js | vyorkin-archive/assignment | import React from 'react';
import { Route, DefaultRoute, NotFoundRoute } from 'react-router';
export default (
<Route name='app' handler={require('../layouts/app')} path='/'>
<DefaultRoute name='index' handler={require('../pages/Index')} />
<Route name='sign-up' handler={require('../pages/SignUp')} path='/si... |
frontend/main.js | Spike980/Url-Crawler | import React from 'react';
import ReactDOM from 'react-dom';
import Contents from './Contents';
class Main extends React.Component {
constructor(props) {
super(props);
this.state = {
urls: []
};
}
componentDidMount() {
$.ajax({
url: "http://localhost:3000/retrieveurl",
// The name of ... |
app/node_modules/react-router/es6/Lifecycle.js | BZhawaii/ArtStorm | import warning from './routerWarning';
import React from 'react';
import invariant from 'invariant';
var object = React.PropTypes.object;
/**
* The Lifecycle mixin adds the routerWillLeave lifecycle method to a
* component that may be used to cancel a transition or prompt the user
* for confirmation.
*
* On stan... |
src/components/Battle.js | MicheleV/da-beast | import React from 'react';
import PropTypes from 'prop-types';
import Button from '../components/Button';
// import _ from 'lodash';
const getBattleUi = (useSkill, skills, currentTick) => (
skills.map((item) => {
const actionName = item.name;
const coolDown = currentTick - item.availableAt;
if (coolDown >= 0) {... |
src/server/frontend/render.js | sikhote/davidsinclair | // @flow
import BaseRoot from '../../browser/app/BaseRoot';
import Helmet from 'react-helmet';
import Html from './Html';
import React from 'react';
import Root, { createRouterRender } from '../../browser/app/Root';
import config from '../config';
import configureFela from '../../browser/configureFela';
import configur... |
examples/webpack/src/index.js | styleguidist/react-styleguidist | import 'core-js';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
|
src/index.js | wincent/static-react-boilerplate | /**
* Copyright 2015-present Greg Hurrell. All rights reserved.
* Licensed under the terms of the MIT license.
*
* @flow
*/
'use strict';
import App from './App.react';
import React from 'react';
React.render(<App />, document.getElementById('root'));
|
src/interface/icons/Dropdown.js | sMteX/WoWAnalyzer | import React from 'react';
// https://thenounproject.com/search/?q=dropdown&i=1871189
// Dropdown by zalhan from the Noun Project
const Icon = ({ ...other }) => (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 9" className="icon" {...other}>
<path d="M14.0059397,2.26485497e-14 C15.1072288,2.26485497e-... |
react/redux/client/src/components/pages/not-found-page.js | sabertazimi/st-proj | import React, { Component } from 'react';
class NotFoundPage extends Component {
render() {
return (
<div>
<h1>404 - Page Not Found</h1>
<p>I'm sorry, the page you were looking for cannot be found!</p>
</div>
)
}
}
export default NotFoundPage;
|
app/javascript/mastodon/containers/account_container.js | Craftodon/Craftodon | import React from 'react';
import { connect } from 'react-redux';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { makeGetAccount } from '../selectors';
import Account from '../components/account';
import {
followAccount,
unfollowAccount,
blockAccount,
unblockAccount,
muteAc... |
app/screens/event-detail/EventDetailScreen.js | akilb/rukatuk-mobile | import React, { Component } from 'react';
import {
Image,
Linking,
Platform,
ScrollView,
Share,
Text,
TouchableWithoutFeedback,
View
} from 'react-native';
import Icon from 'react-native-vector-icons/FontAwesome';
import MapView from 'react-native-maps';
import Button from 'apsl-react-native-button';
i... |
examples/huge-apps/app.js | dalexand/react-router | import React from 'react';
import { Router } from 'react-router';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: 'div',
childRoutes: [{
path: '/',
component: require('./components/App'),
childRoutes: [
require('./routes/Calendar'),
require('./routes/Course'),
... |
admin/client/Signin/components/Alert.js | everisARQ/keystone | /**
* Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set
* the signedOut prop to true to show the standard signed out message
*/
import React from 'react';
import { Alert } from 'elemental';
const AlertView = function (props) {
if (props.isInvalid) {
return <Alert key="error" type="dange... |
src/components/common/svg-icons/social/school.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSchool = (props) => (
<SvgIcon {...props}>
<path d="M5 13.18v4L12 21l7-3.82v-4L12 17l-7-3.82zM12 3L1 9l11 6 9-4.91V17h2V9L12 3z"/>
</SvgIcon>
);
SocialSchool = pure(SocialSchool);
SocialSchool.displayNa... |
docs/app/Examples/views/Card/Variations/CardExampleFluid.js | clemensw/stardust | import React from 'react'
import { Card } from 'semantic-ui-react'
const CardExampleFluid = () => (
<Card.Group>
<Card fluid color='red' header='Option 1' />
<Card fluid color='orange' header='Option 2' />
<Card fluid color='yellow' header='Option 3' />
</Card.Group>
)
export default CardExampleFluid
|
src/molecules/asides/ImageAside/index.js | policygenius/athenaeum | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import Icon from 'atoms/Icon';
import Text from 'atoms/Text';
import styles from './image-aside.module.scss';
function ImageAside( props ) {
const {
className,
header,
image,
subheader,
basic,
... |
variations/with-library/src/effects/view.js | xaviervia/tessellation | import React from 'react'
import {renderEffect} from 'tessellation'
import {map} from 'ramda'
import {voronoi} from 'd3-voronoi'
import Button from 'components/Button'
import * as selectors from 'selectors'
import {APP_UNDO, POINTS_ADD, POINTS_CLEANUP} from 'actions'
import normalize from 'lib/normalize'
function V... |
{{cookiecutter.project_name}}/{{cookiecutter.project_name}}/frontend/src/containers/DevTools.js | vioquedu/django-redux-boilerplate | import React from 'react'
import { createDevTools } from 'redux-devtools'
import LogMonitor from 'redux-devtools-log-monitor'
import DockMonitor from 'redux-devtools-dock-monitor'
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
... |
src/views/statistic.js | jessy1092/react-semantify |
import React from 'react';
import filter from '../filter';
import Div from '../commons/div';
const defaultClassName = 'ui statistic';
const componentName = 'Statistic';
const Statistic = new filter(Div)
.classGenerator(defaultClassName)
.getComposeComponent(componentName);
export default Statistic;
|
client/modules/core/components/prototypes/import_button.js | bompi88/grand-view | // //////////////////////////////////////////////////////////////////////////////
// ImportButton Component
// //////////////////////////////////////////////////////////////////////////////
//
// Copyright 2015 Concept
//
// Licensed under the Apache License, Version 2.0 (the 'License');
// you may not use this file ex... |
test/integration/css-fixtures/url-global-asset-prefix-2/pages/_app.js | flybayer/next.js | import React from 'react'
import App from 'next/app'
import '../styles/global1.css'
import '../styles/global2.css'
class MyApp extends App {
render() {
const { Component, pageProps } = this.props
return <Component {...pageProps} />
}
}
export default MyApp
|
app/containers/ResetPassword/index.js | dcarneiro/my-react-boilerplate | /*
*
* ResetPassword
*
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import selectResetPassword from './selectors';
import { FormattedMessage } from 'react-intl';
import messages from './messages';
import Title from '../../components/Title';
import ResetPasswordForm from '../... |
src/index.js | theansaname/cautious-guide | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/client/components/notice/Notice.component.js | DBCDK/content-first | import React from 'react';
import {getItem, setItem} from '../../utils/localstorage';
import {useDispatch} from 'react-redux';
import {OPEN_MODAL} from '../../redux/modal.reducer';
import config from '../../utils/config';
import './Notice.css';
const Reason = () => (
<div className="Notice">
<p>
Husk at d... |
src/components/ui/share-button/twitter-share.js | adrienhobbs/redux-glow | import React from 'react';
import {VelocityComponent} from 'velocity-react';
import ShareMixin from './share-mixin';
const TwitterShare = React.createClass({
propTypes: {
color: React.PropTypes.string
},
mixins: [ShareMixin],
render () {
return (
<g onMouseEnter={this.onMouseEnter} onMouseLeave={t... |
components/Deck/ContentPanel/AttachSubdeck/AttachSubdeckModal.js | slidewiki/slidewiki-platform | import PropTypes from 'prop-types';
import React from 'react';
import {connectToStores} from 'fluxible-addons-react';
import { Button, Icon, Modal, Container, Segment, TextArea, Popup } from 'semantic-ui-react';
import UserProfileStore from '../../../../stores/UserProfileStore';
import AttachSubdeckModalStore from '../... |
examples/files/app/Title.js | dabbott/react-native-express | import React from 'react'
import { StyleSheet, Text, View } from 'react-native'
export default function Title({ children }) {
return (
<View style={styles.header}>
<Text style={styles.title}>{children}</Text>
</View>
)
}
const styles = StyleSheet.create({
header: {
backgroundColor: 'rgb(59, 10... |
packages/material-ui-icons/src/PhonelinkLock.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let PhonelinkLock = props =>
<SvgIcon {...props}>
<path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 9.5V11c-.6 ... |
src/svg-icons/image/view-comfy.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageViewComfy = (props) => (
<SvgIcon {...props}>
<path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-... |
blueocean-material-icons/src/js/components/svg-icons/communication/call-missed.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed.displayName = 'CommunicationCallMissed';
CommunicationCallMissed.muiName = 'SvgI... |
src/svg-icons/action/account-box.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBox = (props) => (
<SvgIcon {...props}>
<path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3... |
src/views/components/SliderControl.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import Slider from 'rc-slider';
import 'rc-slider/assets/index.css';
export class SliderControl extends React.Component {
constructor (props) {
super(props);
this.state = {
value: props.value,
is_changing: false
};
}
onBeforeChange () {
... |
src/components/RespondToPetitionForm/index.js | iris-dni/iris-frontend | import React from 'react';
import { reduxForm } from 'redux-form';
import { respondToPetition } from 'actions/RespondActions';
import petitionResponseValidator from 'form/petitionResponseValidator';
import Fieldset from 'components/Fieldset';
import FormFieldsIterator from 'components/FormFieldsIterator';
import Button... |
blueocean-material-icons/src/js/components/svg-icons/editor/insert-emoticon.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorInsertEmoticon = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33... |
src/routes/Home/components/HomeView.js | kritikasoni/smsss-react | import React from 'react'
import DuckImage from '../assets/Duck.jpg'
import classes from './HomeView.scss'
export const HomeView = () => (
<div className={`${classes.welcome}`}>
<div className="intro-text">
<div className="intro-lead-in">HOSPITAL</div>
<div className="intro-heading">It's Nice To Me... |
src/main/viz/IdiogramTrack.js | piotr-gawron/pileup.js | /**
* A track which shows an idiogram.
*
* @flow
*/
'use strict';
import type {VizProps} from '../VisualizationWrapper';
import type {State} from '../types';
import type {DataSource} from '../sources/DataSource';
import React from 'react';
import ContigInterval from '../ContigInterval';
import Chromosome from '../... |
src/src/components/ExportImportDialog.js | ioBroker/ioBroker.scenes | // Common
import React from 'react';
import {withStyles} from '@material-ui/core/styles';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogActions from '@material-ui/core/DialogActions';
import Dialog... |
src/server.js | jhines2k7/react-starter-typescript | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import 'babel-core/polyfill';
import path from 'path';
import express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Router from './routes';
import Html from './components/Html';
const server = global.... |
examples/react/CheckboxWithLabel.js | alvinsj/jest | // Copyright 2004-present Facebook. All Rights Reserved.
import React from 'react';
export default class CheckboxWithLabel extends React.Component {
constructor(props) {
super(props);
this.state = {isChecked: false};
// bind manually because React class components don't auto-bind
// http://faceboo... |
assets/Columns/Content.js | rmccue/new-list-tables | import React from 'react';
import RowActions from '../RowActions';
export default class Content extends React.Component {
render() {
const { item, onDelete, onUpdate } = this.props;
return <td className="comment column-comment">
<div dangerouslySetInnerHTML={{ __html: item.content.rendered }} />
<RowActi... |
src/containers/App.js | vulong23/xlbox | import React from 'react'
import Pager from 'material-ui/Paper'
import Divider from 'material-ui/Divider'
import InputField from './InputField'
import MessagesArea from './MessagesArea'
import Login from './Login'
import styles from './App.css'
import { onAuthStateChange } from '../config/auth';
import * as db from '.... |
examples/containers/App.js | aaronjensen/redux | import React from 'react';
import CounterApp from './CounterApp';
import TodoApp from './TodoApp';
import { createRedux } from 'redux';
import { Provider } from 'redux/react';
import * as stores from '../stores';
const redux = createRedux(stores);
export default class App {
render() {
return (
<Provider r... |
test/integration/client-navigation/pages/instance-get-initial-props.js | flybayer/next.js | import React from 'react'
export default class InstanceInitialPropsPage extends React.Component {
async getInitialProps() {
return fetchData()
}
render() {
return <p>{this.props.name}</p>
}
}
function fetchData() {
const p = new Promise((resolve) => {
setTimeout(() => resolve({ name: 'Anderson ... |
docs/app/Examples/elements/Button/Variations/ButtonExampleFloated.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleFloated = () => (
<div>
<Button floated='right'>Right Floated</Button>
<Button floated='left'>Left Floated</Button>
</div>
)
export default ButtonExampleFloated
|
gatsby-ssr.js | growcss/docs | import React from 'react';
import { renderToString } from 'react-dom/server';
import { ServerStyleSheet } from 'styled-components';
import AppProvider from 'store/provider';
export const replaceRenderer = ({
bodyComponent,
replaceBodyHTMLString,
setHeadComponents,
}) => {
// React Context in SSR/build
const ... |
client/app/shared/Profile/index.js | prilutskiy/hackathon | import React, { Component } from 'react';
import { Header, Icon, Segment } from 'semantic-ui-react'
import { createContainer } from 'meteor/react-meteor-data';
import UserProfile from './UserProfile';
class Profile extends Component {
constructor(props) {
super(props);
}
render() {
const { ... |
examples/simple/src/List.js | vtaits/redux-filterlist | import React from 'react';
import { reduxFilterlist, filterlistPropTypes } from 'redux-filterlist';
const List = ({
listState: {
additional,
items,
loading,
},
}) => (
<div>
<table>
<thead>
<tr>
<th>id</th>
<th>brand</th>
<th>owner</th>
<th>c... |
src/containers/Navigation.js | iris-dni/iris-frontend | import React from 'react';
import { connect } from 'react-redux';
import Navigation from 'components/Navigation';
import {
toggleMobileMenu,
closeMobileMenu,
destroyMobileMenu
} from 'actions/NavigationActions';
const NavigationContainer = (props) => (
<Navigation {...props} />
);
NavigationContainer.propType... |
examples/todos/containers/AddTodo.js | keyanzhang/redux | import React from 'react'
import { connect } from 'react-redux'
import { addTodo } from '../actions'
let AddTodo = ({ dispatch }) => {
let input
return (
<div>
<input ref={node => {
input = node
}} />
<button onClick={() => {
dispatch(addTodo(input.value))
input.value... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.