path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
demo/components/popup/PopupOptions.js
f0zze/rosemary-ui
import React from 'react'; import {Popup} from '../../../src'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let propDescription = { attachment: { values: `Mandatory, One Of: top left, top center, top rig...
src/Parser/Druid/Restoration/Modules/NetherlightCrucibleTraits/NLCTraits.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticsListBox from 'Main/StatisticsListBox'; import CoreNLCTraits from "Parser/Core/Modules//NetherlightCrucibleTraits/NLCTraits"; import LightSpeed from "./LightSpeed"; import MasterOfShadows from "./MasterOfShadows"; class NLCTraits extends CoreNLCTraits { static dependencies...
web/src/routes/ExampleIndexPage.js
ZhuPeng/trackupdates
import React from 'react'; import { connect } from 'dva'; import styles from './ExampleIndexPage.css'; function ExampleIndexPage() { return ( <div className={styles.normal}> <h1 className={styles.title}>Yay! Welcome to dva!</h1> <div className={styles.welcome} /> <ul className={styles.list}> ...
src/Range/Range.js
nirhart/wix-style-react
import React from 'react'; import {children, optional, once} from '../Composite'; import Label from '../Label'; import Input from '../Input'; import RangeInputWithLabelComposite from '../Composite/RangeInputWithLabelComposite/RangeInputWithLabelComposite'; const Range = ({...props, children}) => ( <RangeInputWithLab...
src/svg-icons/maps/local-library.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLibrary = (props) => ( <SvgIcon {...props}> <path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-...
index.ios.js
dddzg/app
/** * 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 app extends Component { render() { return ( <View style={styles.container}> ...
imports/api/administrativeAreas/administrativeAreas.js
howlround/worldtheatremap
// Meteor import { Mongo } from 'meteor/mongo'; import React from 'react'; import ReactSelect from 'react-select'; import { FormattedMessage } from 'react-intl'; import t from 'tcomb-form'; class AdministrativeAreasCollection extends Mongo.Collection { // insert(profile, callback) { // } // remove(selector, call...
examples/src/components/examples/RightToLeft.js
rackt/react-tabs
import React from 'react'; import ExampleItem from '../ExampleItem'; const code = `const Component = ( <div dir="rtl"> <Tabs direction={'rtl'}> <TabList> <Tab>כותרת</Tab> <Tab disabled>כותרת כבויה</Tab> <Tab>כותרת שנייה</Tab> <Tab>כותרת שלישית</Tab> </TabList> <T...
src/AppNavigator.js
mstmustisnt/wishlist
/* * * @providesModule AppNavigator * * */ import React from 'react'; import { observable, action } from 'mobx'; import { observer, Provider } from 'mobx-react'; import { StackNavigator } from 'react-navigation'; import { Root, Content } from 'native-base'; import appStyles from 'appStyles'; import ManageWishItemScre...
src/backward/Widgets/Title.js
sampsasaarela/NativeBase
import React from 'react'; import { Platform, View } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../../Utils/mapPropsToStyleNames'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import { Text } from './Text'; import computeProps from ...
src/utils/createContextWrapper.js
tonylinyy/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
src/components/Navbar/Navbar/index.js
easingthemes/easingthemes.github.io
/** * * Navbar * */ import React from 'react'; import styles from './styles.global.scss'; import Logo from 'components/navbar/Logo'; import Navigation from 'components/navbar/Navigation'; class Navbar extends React.Component { //---------------------------------------------------------------------------------------...
src/server.js
montemishkin/mishkin_com
// third party imports import express from 'express' import compression from 'compression' import logger from 'morgan' import favicon from 'serve-favicon' import serveStatic from 'serve-static' import React from 'react' import {renderToString} from 'react-dom/server' import Helmet from 'react-helmet' // local imports i...
blueocean-core-js/test/js/components/RunButton-spec.js
tfennelly/blueocean-plugin
/** * Created by cmeyers on 9/16/16. */ import React from 'react'; import { assert } from 'chai'; import { shallow } from 'enzyme'; import utils from '../../../src/js/utils'; import { RunButton } from '../../../src/js/components/RunButton'; describe('RunButton', () => { let pipeline; beforeEach(() => { ...
src/App.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import { Route, Router } from 'react-router'; import ReactGA from 'react-ga'; import createHistory from 'history/createBrowserHistory'; import ScrollToTop from 'shared/components/scrollToTop/scrollToTop'; import Home from './scenes/home/home'; const history = createHistory(); ...
src/view/private/index.js
coma/spotify
import React from 'react'; import style from './index.css'; import Top from './top'; import Nav from './nav'; class PrivateView extends React.Component { render () { return ( <div className={ style.main }> <Top/> <div className={ style.body }> ...
src/components/Footer/Footer.js
DaveSpringer/bmg-rap-sheets
import React from 'react' import './style/Footer.scss' class Footer extends React.Component { render () { return ( <div className='utility-belt-footer footer hidden-print'> <p>&copy; TM &copy; DC Comics. WB SHIELD: TM; Warner Bros. Entertainment. Inc. (s17). Copyright © 2017 DC Comics. All ch...
src/components/pages/preferences/Images.js
DragonLegend/game
import React from 'react'; import ImagesForm from '../../preferences/ImagesForm'; export default () => ( <div> <h2>Images</h2> <ImagesForm /> </div> );
writeExampleWebpack2Middleware/src/js/App.js
fengnovo/webpack-react
import React from 'react' import Header from './containers/Header' import Body from './containers/Body' import Footer from './containers/Footer' class App extends React.Component { constructor (props) { super(props) } render () { return <div> <Header /> <Body /> ...
src/components/article/LeadingImage.js
garfieldduck/twreporter-react
/* eslint no-unused-vars:0 */ 'use strict' import React from 'react' // eslint-disable-line import ReactDOM from 'react-dom' import classNames from 'classnames' import styles from './LeadingImage.scss' import { getImageSrcSet, replaceStorageUrlPrefix } from '../../utils/' // lodash import get from 'lodash/get' const...
src/schema/test.dataSchema.js
RodgerLai/nodejs-nedb-excel
import React from 'react'; import {Icon} from 'antd'; // 定义某个表的dataSchema, 结构跟querySchema很相似, 见下面的例子 // 注意: 所有的key不能重复 // 这个配置不只决定了table的schema, 也包括用于新增/删除的表单的schema module.exports = [ { key: 'id', // 传递给后端的key title: 'ID', // 前端显示的名字 // 其实dataType对前端的意义不大, 更重要的是生成后端接口时要用到, 所以要和DB中的类型一致 // 对java...
examples/counter/containers/Root.js
yz89/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import CounterApp from './CounterApp'; import configureStore from '../store/configureStore'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> ...
lib/withData.js
wzalazar/spotify
import React from 'react' import PropsTypes from 'prop-types' import { Provider } from 'react-redux' import initStore from './initStore' import { get } from 'lodash' import ip from 'ip' export default (Component) => ( class extends React.Component { static propTypes = { initialState: PropsTypes.object, ...
packages/material-ui-icons/legacy/SignalCellularConnectedNoInternet3BarSharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M18 22V6L2 22h16zm2-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment> , 'SignalCellularConnectedNoInternet3BarSharp');
examples/huge-apps/app.js
shunitoh/react-router
import React from 'react' import { render } from 'react-dom' import { Router, browserHistory } from 'react-router' import withExampleBasename from '../withExampleBasename' import './stubs/COURSES' const rootRoute = { childRoutes: [ { path: '/', component: require('./components/App'), childRoutes: [ ...
app/App.js
mastermel/wwg_battle_tool
import React, { Component } from 'react'; import { createStore } from 'redux'; import { Provider, connect } from 'react-redux'; import { Router, Scene, ActionConst } from 'react-native-router-flux'; import { appReducer } from './Reducers/index'; import { navColor, font } from './Shared/Styles'; import Home from './S...
docs/app/Examples/elements/Reveal/Content/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RevealContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Visible Content' des...
components/auth/Forget.js
digithun/jamplay-nap
import React from 'react' import PropTypes from 'prop-types' import { gql, graphql } from 'react-apollo' import userProfile from '../userProfile.gql' const Forget = ({ forget }) => { const handleSubmit = e => { e.preventDefault() let email = e.target.elements.email.value if (email === '') { window...
src/gifPreview/index.js
SodhanaLibrary/react-examples
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './app'; render( <AppContainer><App/></AppContainer>, document.querySelector("#app")); if (module.hot) { module.hot.accept('./app.js', () => { const App = require('./app.js').default; ...
src/main.js
ryanturner7/portfolio
import React from 'react' import ReactDom from 'react-dom' import {BrowserRouter, Route} from 'react-router-dom' class App extends React.Component { // constructor constructor(props){ super(props) this.state = { content: '', } this.getApp = this.getApp.bind(this) } //hooks componentDi...
app/utils.js
MichelHalmes/sankey
import React from 'react'; import request from 'superagent'; var MIN_LINK_VALUE = 50; function loadData(path) { request .get(path) .end((err, res) => { if (err) { console.log(err); } var links = res.body.links; var nodes = res.body.nodes.map((node, i) => { if (!node.node_id) { nod...
test/ModalSpec.js
natlownes/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Modal from '../src/Modal'; import { render, shouldWarn } from './helpers'; describe('Modal', function () { let mountPoint; beforeEach(() => { mountPoint = document.createElement('div'); document.body.appendChild(mount...
src/fields/InputField.ios.js
MichaelCereda/react-native-form-generator
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import ReactNative from 'react-native'; import {InputComponent} from '../lib/InputComponent'; const {StyleSheet} = ReactNative; export class InputField extends React.Component{ handleValidation(isValid, validationErrors){ this.valid =...
node_modules/react-bootstrap/es/Pagination.js
premcool/getmydeal
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/src/components/Synth/PianoKeyNote.js
civa86/web-synth
import React from 'react'; const PianoKeyNote = (props) => { const { note, semiNote, playNoteHandler, stopNoteHandler, playingVoices, octave } = props; function getClassName (color, key) { const voiceLabel = key + '-' + octave; let resu...
client/About/Social.js
PicDrop/PicDrop
import React from 'react'; import Github from './Github'; import LinkedIn from './LinkedIn'; class Social extends React.Component { render() { return ( <div> <LinkedIn linkedIn={this.props.linkedIn}/> <Github github={this.props.github}/> </div> ); } } export default Social;
src/GridList/GridTile.spec.js
ArcanisCz/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import GridTile from './GridTile'; import getMuiTheme from '../styles/getMuiTheme'; describe('<GridTile />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (node) => shallow(node, {co...
node_modules/expo/src/Modal/ModalHost.js
RahulDesai92/PHR
/* @flow */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet } from 'react-native'; import PureContainer from './PureContainer'; type Layout = { width: number, height: number, }; type LayoutEvent = { nativeEvent: { layout: Layout, }, }; type Rendere...
src/index.js
bkkeye/redux_carouse
/** * Created by u on 2017/5/20. */ import React from 'react'; import ReactDOM from 'react-dom'; import {createStore,applyMiddleware} from 'redux'; import {Provider} from "react-redux"; import thunk from 'redux-thunk'; import Carousel from "./components/Carousel.jsx"; import reducer from "./reducers"; const store =...
src/components/SplitIt/SplitDashboard.js
tfrankie88/splitzi_react
import React, { Component } from 'react'; import NavigationSplitIt from '../Navigation/NavigationSplitIt'; import RestaurantSearch from './RestaurantSearch'; import MenuList from './MenuList'; class SplitDashboard extends Component { constructor() { super(); this.state = { menu: [], cart: 0 ...
js/example-work.js
sithadmin/my-portfolio
import React from 'react'; import ExampleWorkModal from './example-work-modal'; class ExampleWork extends React.Component { constructor(props) { super(props); this.state = { 'modalOpen': false, 'selectedExample': this.props.work[0] }; this.openModal = this....
src/withControl.js
andrewkshim/react-animatronics
// @flow /** * @module withControl */ import React from 'react' import hoistNonReactStatics from 'hoist-non-react-statics' import type { ComponentType } from 'react' import ContextTypes from './internal/context-types' import Control from './Control' import { IS_PRODUCTION } from './internal/constants' import { ...
examples/universal/client/index.js
keyanzhang/redux
import 'babel-polyfill' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from '../common/store/configureStore' import App from '../common/containers/App' const initialState = window.__INITIAL_STATE__ const store = configureStore(initialState) con...
app/javascript/mastodon/components/modal_root.js
anon5r/mastonon
import React from 'react'; import PropTypes from 'prop-types'; export default class ModalRoot extends React.PureComponent { static propTypes = { children: PropTypes.node, onClose: PropTypes.func.isRequired, }; state = { revealed: !!this.props.children, }; activeElement = this.state.revealed ? ...
app/javascript/mastodon/features/ui/components/embed_modal.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleMassiveSize.js
clemensw/stardust
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const BreadcrumbExampleMassiveSize = () => ( <Breadcrumb size='massive'> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <...
src/shared/components/idme/idme.js
tal87/operationcode_frontend
import React, { Component } from 'react'; import config from 'config/environment'; import troopImage from 'images/Troop.png'; import styles from './idme.css'; class Idme extends Component { idMe = () => { window.open(`${config.idmeOAuthUrl}?client_id=${config.idmeClientId}&redirect_uri=${config.host}/profile/ver...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/pin-drop.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsPinDrop = (props) => ( <SvgIcon {...props}> <path d="M18 8c0-3.31-2.69-6-6-6S6 4.69 6 8c0 4.5 6 11 6 11s6-6.5 6-11zm-8 0c0-1.1.9-2 2-2s2 .9 2 2-.89 2-2 2c-1.1 0-2-.9-2-2zM5 20v2h14v-2H5z"/> </SvgIcon> ); MapsPinDrop.displayName = 'MapsPi...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
Jaeandroid/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
src/Interpolate.js
Firfi/meteor-react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
js/jqwidgets/demos/react/app/datatable/serverpaging/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDataTable from '../../../jqwidgets-react/react_jqxdatatable.js'; class App extends React.Component { render() { let source = { dataType: 'json', dataFields: [ { name: 'Shi...
src/containers/Asians/TabControls/PreliminaryRounds/EnterRoundResults/Ballots/Instance/InstanceTabs.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Tabs, { Tab } from 'material-ui/Tabs' import AppBar from 'material-ui/AppBar' import withStyles from 'material-ui/styles/withStyles' const styles = theme => ({ indicator: { backgroundColor: '#ffffff' } }) export default connect(mapStateT...
frontend/src/layouts/CoreLayout/CoreLayout.js
qurben/mopidy-jukebox
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header/> <div className={classes.mainContainer}> {children} </div> ...
src/pages/about/index.js
joefraley/ratticusscript
'use strict' import Helmet from 'react-helmet' import React from 'react' const ratPictures = require.context('./assets', true, /rat/) export const Thumbnail = ({ alt, link, source }) => <a href={ link } target="_"> <img src={ require(`./${source}`) } alt={ alt }></img> </a> export const AboutPage = props => <secti...
src/app/components/DevTools/index.js
omrilitov/react-universal
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-q' > <LogMonitor /> </...
assets/javascripts/kitten/components/structure/cards/horizontal-project-card/index.js
KissKissBankBank/kitten
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import styled from 'styled-components' import { pxToRem } from '../../../../helpers/utils/typography' import COLORS from '../../../../constants/colors-config' import { ScreenConfig } from '../../../../constants/screen-confi...
node_modules/react-bootstrap/es/ModalBody.js
geng890518/editor-ui
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/routes.js
yaolei/Node-Clound
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter, Route, Link } from 'react-router-dom'; import Navbar from './components/Navbar'; import App from './components/App'; import Home from './components/Home'; import FooterBar from './components/Footer'; import ChatBar from './componen...
client/pages/__tests__/LogoutPage-test.js
freakimkaefig/melodicsimilarity
import React from 'react'; import { mount } from 'enzyme'; import sinon from 'sinon'; import LogoutPage from '../LogoutPage'; import DocumentTitle from 'react-document-title'; import { APP_NAME } from '../../constants/AppConstants'; jest.mock('../../services/AuthService'); describe('<LogoutPage/>', () => { var wra...
src/.stories/index.js
clauderic/react-infinite-calendar
/* eslint-disable sort-keys */ import React from 'react'; import {addDecorator, storiesOf} from '@kadira/storybook'; import InfiniteCalendar, { Calendar, defaultMultipleDateInterpolation, withDateSelection, withKeyboardSupport, withMultipleDates, withRange, } from '../'; import styles from './stories.scss';...
src/components/App.js
TorinoMeteo/tm-realtime-map
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.array.isRequired } shouldComponentUpdat...
packages/react-dom/src/server/ReactPartialRenderer.js
syranide/react
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {ReactElement} from 'shared/ReactElementType'; import type { ReactProvider, ReactConsumer, ReactContext, }...
packages/bonde-admin/src/pages/app.js
ourcities/rebu-client
import React from 'react' import { BrowserRouter as Router, Route, Switch } from 'react-router-dom' import DevTools from '@/components/dev-tools' import '@/styles/main.scss' import { TechnicalIssues } from '@/components/error/index' import { ZendeskWidget } from '@/components/external-services' import { GoogleFontsLoad...
src/WorkWeek.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import Week from './Week' import TimeGrid from './TimeGrid' function workWeekRange(date, options) { return Week.range(date, options).filter( d => [6, 0].indexOf(d.getDay()) === -1 ) } class WorkWeek extends React.Component { render() { let { ...
project-setup/libs/react-router/src/index.js
kasiriveni/practice
import React from 'react'; import {render} from 'react-dom'; import { BrowserRouter as Router, Route, Link } from "react-router-dom"; import Hello from './components/welcome'; import {Home,About,Topics} from './components/menu'; const root =document.getElementById("root"); render( <Router> <...
docs/src/app/components/pages/discover-more/Community.js
frnk94/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import communityText from './community.md'; const Community = () => ( <div> <Title render={(previousTitle) => `Community - ${previousTitle}`} /> <MarkdownElement text={communityText} /> ...
test/specs/collections/Form/FormFieldTextArea-test.js
mohammed88/Semantic-UI-React
import React from 'react' import FormTextArea from 'src/collections/Form/FormTextArea' import TextArea from 'src/addons/TextArea/TextArea' import * as common from 'test/specs/commonTests' describe('FormTextArea', () => { common.isConformant(FormTextArea) it('renders a FormField with a TextArea control', () => { ...
src/routes/bbs/Category/index.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { checkPower } from 'utils' import { ADD, UPDATE, DELETE } from 'constants/options' import CategoryList from './List' import CategorySearch from './Search' import CategoryModal from './ModalForm' function Category ({ loca...
src/views/hr-view/components/ul.js
vynogradskyi/resume
import React from 'react'; import styles from 'css-modules/hr-view/ul.scss'; import {li_types as types} from "appConstants"; import classnames from 'classnames'; //components import Li from './li'; export default ({points, type, className}) => { return ( <ul className={classnames(styles.ul, className || ...
src/js/sections/Title1.js
BavoG/onesupportdocu
import React from 'react'; import classnames from 'classnames'; import Headline from 'grommet/components/Headline'; import Box from 'grommet/components/Box'; import InfographicSection from '../components/InfographicSection'; import PlatformAndroid from 'grommet/components/icons/base/PlatformAndroid'; import Anchor f...
client/src/react/journal/Journal.js
charlesj/Apollo
import React from 'react' import { connect, } from 'react-redux' import MarkdownRenderer from 'react-markdown-renderer' import PropTypes from 'prop-types' import { journalActions, } from '../../redux/actions' import { journalSelectors, } from '../../redux/selectors' import { NotifySuccess, } from '../../services/notifi...
src/containers/DevToolsWindow.js
fforres/coworks_client_side
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
src/svg-icons/maps/local-cafe.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCafe = (props) => ( <SvgIcon {...props}> <path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/> </SvgIcon> ); MapsLocalCa...
setup/src/universal/features/user/auth/components/ResetPasswordForm/index.js
ch-apptitude/goomi
/** * * ResetPasswordForm * */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Form } from 'react-form'; import { Row, Col } from 'react-flexbox-grid'; import Theme from 'assets/theme'; import Box from 'features/common_ui/components/Box'; import { GreenButton } from 'features/co...
examples/todomvc/index.js
wong2/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; import 'todomvc-app-css/index.css'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} ...
src/renderer/components/TitleBarShim.js
digidem/ecuador-map-editor
import React from 'react' import { remote } from 'electron' import styled from 'styled-components' const TitleBarArea = styled.div` position: relative; height: 22px; ` // Create a space for MacOS title bar buttons on a frameless Window const TitleBarShim = () => { const win = remote.getCurrentWindow() const t...
src/components/preview/preview-input.js
sergeyruskov/sergeyruskov.github.io
//@flow import React from 'react'; import type {Card, UpdateCard} from "../../types/cards"; import type {Action} from "../../types/index"; /** * Предпросмотр и настройка добавленного пользователем контрола Input **/ export default function PreviewInput({updateCard, card, id}: { updateCard: UpdateCard => Action, c...
src/Grid.js
tannewt/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; const Grid = React.createClass({ propTypes: { /** * Turn any fixed-width grid layout into a full-width layout by this property. * * Adds `container-fluid` class. */ fluid...
twitter-ui-react/src/index.js
leemurray100/twitter
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tell webpack t...
techCurriculum/ui/solutions/2.1/src/components/Title.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
static/src/entry.js
smit1625/gospotchess
import React from 'react'; import ReactDOM from 'react-dom'; // import Routes from './components/Routes'; import ChessGame from './components/ChessGame'; ReactDOM.render( <ChessGame url="/api/moves" pollInterval={2000} />, document.getElementById('gsc-chess'));
src/components/organisms/FileDetailMenu/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import Carousel from 'react-slick'; import {Grid, Row, Col} from 'react-flexbox-grid'; import RaisedButton from 'material-ui/RaisedButton'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import Menu from 'material-ui/svg-icons/navi...
src/components/parallax-scroll.component.js
gitpoint/git-point
import React, { Component } from 'react'; import { View, Dimensions, Platform, TouchableOpacity } from 'react-native'; import ParallaxScrollView from 'react-native-parallax-scroll-view'; import { Icon } from 'react-native-elements'; import styled from 'styled-components'; import { colors, normalize, fonts } from 'conf...
tests/views/HomeView.spec.js
juanda99/react-redux-material-ui
import React from 'react' import TestUtils from 'react-addons-test-utils' import { bindActionCreators } from 'redux' import { HomeView } from 'views/HomeView/HomeView' import { mount } from 'enzyme' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) retur...
src/main/server/utils/renderComponent.js
FrederikS/react-isomorphic-example
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { RouterContext } from 'react-router'; import ContextProvider from '../../common/container/ContextProvider'; import Layout from '../Layout'; import fetchComponentData from './fetchComponentData'; import dehydrate from './dehydrate'; expor...
extensions/genericdata/client-admin.js
axax/lunuc
import React from 'react' import Hook from 'util/hook' import Async from 'client/components/Async' import { SimpleSwitch, SimpleButton } from 'ui/admin' import Util from '../../client/util' import {CAPABILITY_MANAGE_CMS_TEMPLATE} from '../cms/constants' import {client} from 'client/middleware/graphql' import co...
src/components/constellations.js
cosmowiki/cosmowiki
import React from 'react'; import {ConstellationNotes} from './notes'; import {Summary} from './chunks/summary'; const ConstellationsComponent = ({constellations}) => { return ( <main role="main" className="pure-u-1"> <div id="siteTitle" className="constellations pure-u-1 center"> <div id="siteTitl...
example/examples/DraggableMarkers.js
pjamrozowicz/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import PriceMarker from './PriceMarker'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4...
src/App.js
SwordSoul/swordsoul.github.com
import React, { Component } from 'react'; import {Route, Router, browserHistory} from 'react-router'; import Page from './Page.js'; import Contents from './Contents.js'; export default class App extends Component { render() { return ( <Router history={browserHistory}> <Route name="contents" pat...
packages/icons/src/external.js
yldio/joyent-portal
import React from 'react'; import Rotate from './rotate'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, direction = 'down', colors = {}, style = {}, ...rest }) => ( <Rotate direction={direction}> {({ style: rotateStyle }) => ( <svg xml...
blueocean-material-icons/src/js/components/svg-icons/content/undo.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </SvgIcon> ); ContentUndo.displayName ...
Screens/Settings/Lists.js
Datasilk/Dedicate
import React from 'react'; import { View, StyleSheet, BackHandler, Alert } from 'react-native'; import Text from 'text/Text'; import Body from 'ui/Body'; import DbLists from 'db/DbLists'; import ListPicker from 'fields/ListPicker'; import Textbox from 'fields/Textbox'; import Button from 'buttons/Button'; export defau...
examples/js/column-filter/select-filter.js
dana2208/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
src/svg-icons/image/linked-camera.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
src/components/Html.js
LeraSavchenko/Maysternia
import React from 'react'; import PropTypes from 'prop-types'; import serialize from 'serialize-javascript'; import config from '../config'; class Html extends React.Component { static propTypes = { title: PropTypes.string.isRequired, description: PropTypes.string.isRequired, styles: PropTypes.arrayOf(Pr...
examples/04 Sortable/Simple/index.js
globexdesigns/react-dnd
import React, { Component } from 'react'; import Container from './Container'; export default class SortableSimple extends Component { render() { return ( <div> <p> <b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/04%20Sortable/Simple'>Browse the Source</a></b> ...
src/encoded/static/components/donor.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import url from 'url'; import { Panel, PanelBody, PanelHeading } from '../libs/bootstrap/panel'; import { auditDecor } from './audit'; import { ExperimentTable } from './dataset'; import { DbxrefList } from './dbxref'; import { D...
app/chaos/chaos.js
enotsimon/home
import ReactDOM from 'react-dom' import React from 'react' import { createStore } from 'redux' import { Provider } from 'react-redux' import Util from 'common/util' import Agent from 'chaos/agent' import App from 'chaos/components/app' import root_reducer from 'chaos/reducers' import * as actions from 'chaos/actions'...
geonode/contrib/monitoring/frontend/src/pages/software-performance/index.js
timlinux/geonode
import React from 'react'; import Header from '../../components/organisms/header'; import GeonodeAnalytics from '../../components/organisms/geonode-analytics'; import GeonodeLayersAnalytics from '../../components/organisms/geonode-layers-analytics'; import WSAnalytics from '../../components/organisms/ws-analytics'; imp...
www/pages/components/home/ValueProps2.js
andrewlinfoot/keystone
import React, { Component } from 'react'; import Container from '../../../components/Container'; import { Col, Row } from '../../../components/Grid'; import theme from '../../../theme'; import { compose } from 'glamor'; import { EntypoTools, EntypoCloud, EntypoRocket } from 'react-entypo'; import { rhythm } from 'utils...