path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
index.js
sectore/pragmaticstudio-bingo-redux
import styles from './style.css'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); ReactDOM.render( <Provider store={store}> <App /> </P...
src/FabMenu/index.js
reactivers/react-material-design
import React from 'react'; import PropTypes from 'prop-types'; import Fab from '../FAB'; import IconButton from '../IconButton'; import TextBox from '../TextField'; /* FABNav için FabNav.css import et*/ import './FabMenu.css' class FabMenu extends React.Component { constructor(props) { super(props); ...
albums/src/components/common/Input.js
victorditadi/IQApp
import React, { Component } from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secure }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Te...
docs/app/Examples/collections/Breadcrumb/Variations/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 BreadcrumbVariationsExamples = () => ( <div> <ExampleSection title='Variations'> <ComponentExample title='Siz...
src/js/components/interests/CardContentCarousel.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CardContent from '../ui/CardContent'; export default class CardContentCarousel extends Component { static propTypes = { contents : PropTypes.array.isRequired, userId : PropTypes.number.isRequired, oth...
src/components/home/HomePage.js
gginu4u/react-redux
import React from 'react'; import {Link} from 'react-router'; class HomePage extends React.Component { render() { return ( <div className="jumbotron"> <h1>Pluralsight Administration</h1> <p>React, Redux and React Router in ES6 for ultra-responsive web apps.</p> <Link to="about" clas...
src/ModalCreateNew.js
jpdevries/a11y-datagrid
import React, { Component } from 'react'; import { launchIntoFullscreen, exitFullscreen } from './Utility'; import slug from 'slugg'; import update from 'react-addons-update'; import * as actions from './model/actions'; import store from './model/store'; import brace from 'brace'; import 'brace/mode/javascript'; i...
src/app/app.js
benigeri/soapee-ui
/*global FB*/ //load CSS assets first require( '../assets/main.css' ); import _ from 'lodash'; import React from 'react'; import Reflux from 'reflux'; import Router from 'react-router'; import ga from 'react-ga'; import config from 'config'; import routes from './routes'; /////////////////// /// INITIALISE let ana...
app/client/src/routes/manageActionComposeMessage/index.js
uprisecampaigns/uprise-app
import React from 'react'; import ManageActionComposeMessage from 'scenes/ManageActionComposeMessage'; import Layout from 'components/Layout'; import organizeActionPaths from 'routes/organizeActionPaths'; export default organizeActionPaths({ path: '/organize/:campaignSlug/opportunity/:actionSlug/compose', compon...
src/svg-icons/hardware/headset-mic.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadsetMic = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/> ...
src/atoms/Icon/icon.stories.js
sjofartstidningen/bryggan
/* eslint-disable import/no-extraneous-dependencies */ import React from 'react'; import { storiesOf } from '@storybook/react'; import * as Icon from './index'; storiesOf('atoms/Icon', module) .add('all', () => ( <div> {Object.entries(Icon).map( ([key, Comp]) => ( <div key={key} style={{ ...
src/svg-icons/content/content-paste.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentContentPaste = (props) => ( <SvgIcon {...props}> <path d="M19 2h-4.18C14.4.84 13.3 0 12 0c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s...
containers/eventsScene.js
marxsk/zobro
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import EventScene from '../components/eventScene'; import {addNotification, removeNotification} from '../actions'; import {Alert} from 'react-native'; const mapStateToProps = (state) => { return { configura...
src/routes.js
Trippstan/elephonky
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Chat, Home, Widgets, About, Login, LoginSuccess, Survey, NotFound, } from 'containers'; export default (store) ...
examples/simple/index.js
romseguy/react2tree
import React from 'react'; import { render } from 'react-dom'; import react2tree from 'react2tree'; import pretty from 'json-pretty'; import App from './components/App'; const root = render(<App/>, document.createElement('div')); let json = pretty(react2tree(root)); json = json.replace(/\n/g, '<br>'); json = json.rep...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
Kirishima21/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
routes/routing.js
dominiktilp/congestion-charge-app
import React from 'react'; import { Route } from 'react-router'; import App from '../views/App'; import Page from '../views/Page'; import SetVehicle from '../views/SetVehicle'; import SelectDay from '../views/SelectDay'; import CostConfirmation from '../views/CostConfirmation'; import Payment from '../views/Payment'; i...
examples/star-wars/js/components/StarWarsApp.js
cesarandreu/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
app/components/DisplayPost/index.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import MarkdownParser from 'components/MarkdownParser'; import Form from 'components/Form'; import PostPictures from 'components/PostPictures'; /* eslint-disable react/prefer-stateless-function */ /* eslint-disable no-console */ class DisplayPost extends R...
react-client/src/components/Camera.js
francoabaroa/escape-reality
import {Entity} from 'aframe-react'; import React from 'react'; export default props => ( <Entity> <Entity camera="" position="0 0 0" rotation="15 190 0" look-controls="" wasd-controls="" {...props}/> </Entity> );
components/WritingList/index.js
MeganKeesee/personal-site
import React from 'react'; import moment from 'moment'; import LinkExternal from '../LinkExternal'; import s from './index.module.css'; import g from '../../utils/grid.module.css'; import articles from '../../data/articles.json'; let chronologicalArticles = articles.sort(function(a, b){ var keyA = new Date(a.dat...
src/components/post_new.js
xMiLkx/react-router
import React, { Component } from 'react'; import { Field, reduxForm } from 'redux-form'; import { Link } from "react-router-dom"; import { connect } from "react-redux"; import { createPost } from "../actions/index"; class PostNew extends Component { renderField(field) { const { meta: { touched, error } } =...
core/src/plugins/core.notifications/res/js/ActivityPanel.js
ChuckDaniels87/pydio-core
import React from 'react'; import Pydio from 'pydio'; const { NodeListCustomProvider } = Pydio.requireLib('components'); const { InfoPanelCard, FilePreview } = Pydio.requireLib('workspaces'); const { Animations } = Pydio.requireLib('hoc'); const { PydioContextConsumer } = Pydio.requireLib('boot'); const Template = A...
src/server.js
Tim-Thomas/beer-board
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import path from 'path'; import express from 'express';...
src/react/components/Dropdown.js
formtools/core
import React from 'react'; import Select from 'react-select'; const getSelected = (data, selected) => data.find((item) => item.value === selected); const Dropdown = ({ data, selected, onChange }) => ( <Select options={data} defaultValue={getSelected(data, selected)} onChange={onChange} styles={{ control: ...
src/components/Header/Header.js
fallrisk/Nightlife
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React, { Component } from 'react'; import withStyle...
blueprints/dumb/files/__root__/components/__name__/__name__.js
hbaughman/audible-temptations
import React from 'react' type Props = { }; export class <%= pascalEntityName %> extends React.Component { props: Props; render () { return ( <div></div> ) } } export default <%= pascalEntityName %>
src/svg-icons/content/gesture.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentGesture = (props) => ( <SvgIcon {...props}> <path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3....
node_modules/_rc-select@6.9.3@rc-select/es/OptGroup.js
ligangwolai/blog
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; var OptGroup = function (_React$Component) { _inherits(OptGroup, _React$Comp...
src/components/flashcard/editable_components/editable_flashcard_list.js
trihpham/flashcard-webapp
import React, { Component } from 'react'; import EditableFlashcard from './editable_flashcard'; import { Grid } from 'semantic-ui-react'; export default class EditableFlashcardList extends Component{ render(){ const { flashcards, flashcardSetId } = this.props; return( <Grid> {flashcards.map((flashcard)=> ...
app/containers/genericContainers/LanguageProvider/index.js
romainquellec/cuistot
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
src/app.js
cpsubrian/redis-explorer
import remote from 'remote' import React from 'react' import router from './router' import injectTapEventPlugin from 'react-tap-event-plugin' // Constants const app = remote.require('app') const Menu = remote.require('menu') const shell = remote.require('shell') const BrowserWindow = remote.require('browser-window') c...
src/components/FormField.js
devdlx/foxxiee
/** * Copyright 2016 Google Inc. All Rights Reserved. * * 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 appli...
src/components/MenuComponent.js
C3-TKO/junkan
'use strict'; import React from 'react'; import FloatingActionButton from 'material-ui/FloatingActionButton'; import AvSkipPrevious from 'material-ui/svg-icons/av/skip-previous'; import AvPause from 'material-ui/svg-icons/av/pause'; import AvPlayArrow from 'material-ui/svg-icons/av/play-arrow'; import AvSkipNext from ...
javascript/frameworks-libraries/react-redux-stack/src/components/ButtonFunctional.js
arturparkhisenko/til
import React from 'react'; const ButtonFunctional = ({text, onClick}) => ( <button onClick={onClick}> {text} </button> ); export default ButtonFunctional;
admin/src/components/ListDownloadForm.js
Freakland/keystone
import classnames from 'classnames'; import React from 'react'; var Transition = React.addons.CSSTransitionGroup; var CurrentListStore = require('../stores/CurrentListStore'); var Popout = require('./Popout'); var PopoutList = require('./PopoutList'); var { Button, Checkbox, Form, FormField, InputGroup, SegmentedCont...
src/components/record_list_item.js
xuan6/admin_dashboard_local_dev
import React from 'react'; import {ListGroupItem} from 'react-bootstrap'; const RecordListItem = ({record,action,tab}) => { var date = record.time; var recordinfo = record.record; var values = recordinfo.valuecategory; var stringlength = recordinfo.valuecategory.length; var valuesStr = values.slice...
envkey-react/src/containers/export_env_container.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import { connect } from 'react-redux' import R from 'ramda' import { exportEnvironment } from 'actions' import isElectron from 'is-electron' class ExportEnv extends React.Component { constructor(props) { super(props) this.state = { ...
src/svg-icons/image/camera-alt.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraAlt = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="3.2"/><path d="M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5...
src/components/select-display.js
get-focus/focus-redux
import React from 'react'; import reactReduxStoreShape from 'react-redux/lib/utils/storeShape'; import find from 'lodash/find'; import get from 'lodash/get' import i18n from 'i18next'; function renderLabelOfCode(values, code){ const element = values ? values.find(element => element.code === code) : []; const label ...
src/Components/TreeNode.js
loftywaif002/folder-explorer
import React, { Component } from 'react'; class TreeNode extends Component { static propTypes = { id: React.PropTypes.number.isRequired, path: React.PropTypes.array.isRequired, level: React.PropTypes.number.isRequired, children: React.PropTypes.array.isRequired, checked: React.PropTypes.number.isRequ...
src/components/PlaylistManager/Panel/PlaylistItemRow.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import MediaDuration from '../../MediaList/MediaDuration'; import MediaLoadingIndicator from '../../MediaList/MediaLoadingIndicator'; import MediaRowBase from '../../MediaList/MediaRowBase'; import MediaSourceIcon from '../../MediaLis...
App/Components/DayToggle.js
infinitered/ChainReactApp
import React from 'react' import { View, Text, TouchableOpacity } from 'react-native' import LinearGradient from 'react-native-linear-gradient' import styles from './Styles/DayToggleStyle' const DayToggle = props => { const { activeDay, onPressIn } = props const dayStyle = (day) => activeDay === day ? styles.a...
docs/src/app/components/pages/components/Snackbar/ExampleTwice.js
IsenrichO/mui-with-arrows
import React from 'react'; import Snackbar from 'material-ui/Snackbar'; import RaisedButton from 'material-ui/RaisedButton'; export default class SnackbarExampleTwice extends React.Component { constructor(props) { super(props); this.state = { message: 'Event 1 added to your calendar', open: fals...
examples/with-less/src/client.js
jaredpalmer/razzle
import React from 'react'; import { hydrate } from 'react-dom'; import App from './App'; hydrate(<App />, document.getElementById('root')); if (module.hot) { module.hot.accept(); }
front-end/src/containers/NewNote.js
afaquejam/serverless-web-services
import React, { Component } from 'react'; import { withRouter } from 'react-router'; import { FormGroup, FormControl, ControlLabel, } from 'react-bootstrap'; import LoaderButton from '../components/LoaderButton.js'; import config from '../config.js'; import './NewNote.css'; import { invokeApig, s3Upload } from '....
src/svg-icons/navigation/fullscreen-exit.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationFullscreenExit = (props) => ( <SvgIcon {...props}> <path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/> </SvgIcon> ); NavigationFullscreenExit = pure(NavigationF...
packages/core/admin/admin/src/pages/AuthPage/components/Login/index.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import BaseLogin from './BaseLogin'; import UnauthenticatedLayout from '../../../../layouts/UnauthenticatedLayout'; const Login = loginProps => { return ( <UnauthenticatedLayout> <BaseLogin {...loginProps} /> </UnauthenticatedLayout> ); }...
analysis/druidferal/src/CHANGELOG.js
yajinni/WoWAnalyzer
import React from 'react'; import { Abelito75, Zeboot, LeoZhekov, Tora, Xcessiv, Tiboonn } from 'CONTRIBUTORS'; import { change, date } from 'common/changelog'; export default [ change(date(2021, 1, 16), 'Added spell information for conduits', Tiboonn), change(date(2020, 12, 15), <>Update Bloodtalons for Shadowla...
react/HamburgerIcon/HamburgerIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './HamburgerIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function HamburgerIcon(props) { return <Icon markup={svgMarkup} {...props} />; } HamburgerIcon.displayName = 'HamburgerIcon';
components/Breadcrumb/example/Breadcrumb.example.js
raoulus/my-react-component-library
import React from 'react'; import Breadcrumb from 'my-react-component-library/components/Breadcrumb'; export default class Demo extends React.Component { render() { const breadcrumbItems = [ {to: '/home', title: 'Home'}, {to: '/my-details', title: 'My details'}, {title: 'My details'} ]; ...
src/containers/impressum/index.js
pixelass/pixelass-homepage
import React from 'react' import {Grid, Column, fullWidth} from '../../components/layout' const Impressum = () => ( <div id='impressum'> <Grid> <Column s={fullWidth}> <h3>Impressum</h3> <h5>Angaben gemäß § 5 TMG:</h5> <p>Gregor Adams<br/> Nonnenstieg, 30<br/> 20149 H...
source/server/render.js
vasco3/universal-react-boilerplate
import React from 'react'; import reactDom from 'react-dom/server'; import createApp from 'shared/components/app'; const render = reactDom.renderToStaticMarkup; const App = createApp(React); const createDOM = (props) => { return render( <App { ...props }></App> ); }; export default createDOM;
src/client/index.js
cjhdom/rskr
/** * Created by jihwchoi on 2017-03-27. */ import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <div> hello world!! </div>, document.getElementById('root'), );
app/javascript/mastodon/features/compose/components/upload_progress.js
KnzkDev/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { ...
packages/icons/src/md/maps/LocalLibrary.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLocalLibrary(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 22.09C19.27 17.7 12.96 15 6 15v22c6.96 0 13.27 2.7 18 7.09C28.73 39.7 35.04 37 42 37V15c-6.96 0-13.27 2.7-18 7.09zM24 15c3.31 0 6-2.69 6-6s-...
src/svg-icons/action/https.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionHttps = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-...
src/@ui/Icon/icons/Video.js
NewSpring/Apollos
import React from 'react'; import PropTypes from 'prop-types'; import { Svg } from '../../Svg'; import makeIcon from './makeIcon'; const Icon = makeIcon(({ size = 32, fill, ...otherProps } = {}) => ( <Svg width={size} height={size} viewBox="0 0 24 24" {...otherProps}> <Svg.Path d="M3.8182 5.7778v12.4444H14...
renderer/components/logtable.js
trainto/YourADBTool
'use strict'; import React from 'react'; import {Table, Column, Cell} from 'fixed-data-table-2'; import Measure from 'react-measure'; import {dispatcher} from '../dispatcher'; import {dataWrapper} from '../datawrapper'; import './styles/fixed-data-table.css'; import './styles/logtable.css'; class LogTable extends Rea...
src/routes/error/index.js
Grusteam/spark-in-me
import React from 'react'; import ErrorPage from './ErrorPage'; import Layout from '../../components/Layout'; export default { path: '/error', action(error) { const pageDataError = { title: 'Error', desc: 'Sorry, a critical error occurred on this page.', bg: '/images/home-bg.jpg', error: true };...
src/pages/404.js
amsdamsgram/portfolio
import React from 'react' const NotFoundPage = () => <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> export default NotFoundPage
src/common/layouts/Dashboard/views/GuildView/GuildList.js
BeMacized/GrimoireWeb
import React from 'react' import List, { ListItem, ListItemText } from 'material-ui/List' import Avatar from 'material-ui/Avatar' import PropTypes from 'prop-types' import { DEVELOPER_ID } from '../../../../globals' import { MANAGE_GUILD, hasPerms } from '../../../../utils/PermissionUtils' const GuildList = ({guilds...
example/index.android.js
joelrfcosta/react-native-logentries
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Button } from 'react-native'; import Logentries from 'react-native-logentries'; export default class example extends Component { c...
packages/react-error-overlay/src/components/CodeBlock.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-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 React from 'react'; import { redTransparent, yellowTransparent } from '../styles'; const _preStyle = { display: 'b...
src/Modal.js
mattBlackDesign/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import cx from 'classnames'; import OverlayTrigger from './OverlayTrigger'; import idgen from './idgen'; class Modal extends Component { constructor (props) { super(props); this.modalID = props.id || ...
src/App.js
rvpasari/rvpasari.github.io
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.js</code> and save to reload. </p> ...
src/pages/404.js
roberpoldo/gatsby-wp
import React from 'react' const NotFoundPage = () => <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> export default NotFoundPage
nailgun/static/views/controls.js
huntxu/fuel-web
/* * Copyright 2014 Mirantis, Inc. * * 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 ...
app/views/my-skills/skills-actions.js
GuenoleK/portfolio
import React from 'react'; import {Article} from "../../components/article"; import {skillsTextsRender} from "./skills-texts"; class SkillsActions { technicalTitle = "Compétence technique : "; transversalTitle = "Compétence transverse : "; openJavascriptModal(openModal, type, name, renderProjectListButton...
packages/material-ui-icons/src/FilterCenterFocus.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z" ...
src/utils/utils.js
Elecweb/react-craftform
/* exported validateControl */ import React from 'react'; import * as Rule from './../validator/validator'; export const minLength = (min) => { return (val)=>{ if(val.length >= min){ return false; }else{ return { minLength:{ length:val.leng...
src/svg-icons/notification/vibration.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVibration = (props) => ( <SvgIcon {...props}> <path d="M0 15h2V9H0v6zm3 2h2V7H3v10zm19-8v6h2V9h-2zm-3 8h2V7h-2v10zM16.5 3h-9C6.67 3 6 3.67 6 4.5v15c0 .83.67 1.5 1.5 1.5h9c.83 0 1.5-.67 1.5-1.5v-15c0...
app/javascript/mastodon/components/admin/ReportReasonSelector.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import api from 'mastodon/api'; import { injectIntl, defineMessages } from 'react-intl'; import classNames from 'classnames'; const messages = defineMessages({ other: { id: 'report.categories.other', defaultMessage: 'Other' }, spam: { id: 'report.categ...
src/components/Loading/Loading.js
ShevaDas/exhibitor-management
import React from 'react'; import './Loading.css'; const Loading = () => ( <div className="loading"> <div style={{color: "#f4696b"}} className="la-ball-fussion la-3x"> <div></div> <div></div> <div></div> <div></div> </div> </div> ); export default Loading;
mxcube3/ui/components/SampleView/MotorControl.js
bolmsten/mxcube3
import React from 'react'; import MotorInput from './MotorInput'; import './motor.css'; export default class MotorControl extends React.Component { render() { const { phi, phiy, phiz, focus, sampx, sampy, kappa, kappa_phi } = this.props.motors; const { phiStep, phiyStep, phizStep, fo...
src/components/Circle.js
fullstackreact/google-maps-react
import React from 'react'; import PropTypes from 'prop-types'; import { arePathsEqual } from '../lib/arePathsEqual'; import { camelize } from '../lib/String'; const evtNames = ['click', 'mouseout', 'mouseover']; const wrappedPromise = function() { var wrappedPromise = {}, promise = new Promise(function ...
client/modules/Admin/components/CompanyList.js
jeojoe/emplist
import React from 'react'; import CompanyItem from './CompanyItem'; export default ({ companies }) => { return <div>{companies.map((company) => <CompanyItem key={company._id} company={company} />)}</div>; };
example/src/Header.js
RafalFilipek/just-box
import React from 'react'; import Image from './bits/Image'; import Header from './BaseHeader.js'; export default (props) => ( <Header> <Image src="https://unsplash.it/1280/315?random" /> {props.children} </Header> )
packages/lightning-components/Icon/story.js
DaReaper/lightning-app
import React from 'react' import { storiesOf } from '@kadira/storybook' import Icon from './' storiesOf('Icon', module) .add('`swap-horizontal` icon', () => ( <Icon name="swap-horizontal" onClick={ action('button clicked') } /> )) .add('`chart-bubble` icon', () => ( <Icon name="chart-bubble" onClick={ a...
App/SettingsPage.js
adnanhemani/RideApp
import React, { Component } from 'react'; import { StyleSheet, Text, View, Navigator, ScrollView, ListView, Alert, } from 'react-native'; import { AsyncStorage, Platform, TouchableHighlight, TouchableNativeFeedback, } from "react-native"; import NavigationBar from 'react-native-navbar'; import {Go...
src/Game/UI/Panel/Staff.js
digijin/space-station-sim
// @flow import { connect } from 'react-redux'; import {values} from 'lodash' import React from 'react'; import Draggable from 'react-draggable' import Header from './Component/Header' import type Character from 'Game/Type/Character' import state from 'Game/state' class StaffPanel extends React.Component { int...
react/src/components/LoginForm.js
elarif/stupidesvautours
import React from 'react'; import { StyleSheet, Text, View, TextInput } from 'react-native'; export default class LoginForm extends React.Component { render() { return ( <View style={styles.container}> <TextInput placeholder='Username or Email' placeholderTextColor='rgba(255...
frontend/src/Settings/ImportLists/ImportLists/EditImportListModal.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Modal from 'Components/Modal/Modal'; import { sizes } from 'Helpers/Props'; import EditImportListModalContentConnector from './EditImportListModalContentConnector'; function EditImportListModal({ isOpen, onModalClose, ...otherProps }) { return ( ...
src/svg-icons/av/av-timer.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAvTimer = (props) => ( <SvgIcon {...props}> <path d="M11 17c0 .55.45 1 1 1s1-.45 1-1-.45-1-1-1-1 .45-1 1zm0-14v4h2V5.08c3.39.49 6 3.39 6 6.92 0 3.87-3.13 7-7 7s-7-3.13-7-7c0-1.68.59-3.22 1.58-4.42L12 13l1.41-...
packages/reactor-kitchensink/src/examples/PivotGrid/DataChanges/DataChanges.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Container, PivotGrid, Toolbar, Button, Menu, MenuItem } from '@extjs/reactor/modern'; import SaleModel from '../SaleModel'; import { generateData, randomItem } from '../generateSaleData'; export default class DataChanges extends Component { store = Ext.create('Ex...
src/MessageImage.js
atFriendly/react-native-friendly-chat
/* eslint no-use-before-define: ["error", { "variables": false }] */ import PropTypes from 'prop-types'; import React from 'react'; import { Image, StyleSheet, View, ViewPropTypes, Dimensions, TouchableWithoutFeedback, Modal, Text } from 'react-native'; import Lightbox from 'react-native-lightbox'; import PhotoView fr...
judge/client/src/Components/TestForm.js
istamenov/NodeJS_Judge
import React, { Component } from 'react'; class TestForm extends Component { constructor(){ super(); this.state = { currentInput : "", currentOutput : "" } } clickHandler(e){ this.props.addTest(this.state.currentInput, this.state.currentOutput); this.setState({'currentOutput' : "...
pages/index.js
malixsys/mobazoo
import React from 'react'; import PropTypes from 'prop-types'; import withRedux from 'next-redux-wrapper'; import initStore from '../store/initStore'; import Page from '../components/Page'; import Layout from '../components/MainLayout'; const Index = ({ user }) => ( <Layout title="Mobazoo" pathname="/"> <...
src/svg-icons/navigation/chevron-left.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronLeft = (props) => ( <SvgIcon {...props}> <path d="M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"/> </SvgIcon> ); NavigationChevronLeft = pure(NavigationChevronLeft); NavigationChevronLeft.dis...
src/svg-icons/notification/more.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationMore = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.97.89 1.66.89H22c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 13.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5...
rallyboard-v1/src/components/IndexPage.js
tylerjw/rallyscores
"use strict"; import React from 'react'; import EventSelector from './EventSelector'; import { DataGetter } from '../data/data'; export default class IndexPage extends React.Component { render() { return ( <div className="home"> <p> All scoring data is gathered from Rally America's websi...
src/svg-icons/action/spellcheck.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSpellcheck = (props) => ( <SvgIcon {...props}> <path d="M12.45 16h2.09L9.43 3H7.57L2.46 16h2.09l1.12-3h5.64l1.14 3zm-6.02-5L8.5 5.48 10.57 11H6.43zm15.16.59l-8.09 8.09L9.83 16l-1.41 1.41 5.09 5.09L23 13l-...
MuSprint/client/src/components/MuHeader.js
oracle/json-in-db
import React from 'react'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faAward, faCog, faHome, faUser } from '@fortawesome/free-solid-svg-icons' class MuHeader extends React.Component { render() { return ( <nav className="navbar navbar-expand-lg navbar-dark bg-dark"> <...
javascript/main.js
Gwash3189/elitebounty
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, hashHistory, IndexRoute } from 'react-router'; import App from './components/App'; import LoginContainer from './components/Login/LoginContainer'; import RegisterContainer from './components/Register/RegisterContainer';...
src/components/recording/RecordingErrors.js
streamr-app/streamr-web
import React from 'react' import cx from 'classnames' import ReactCSSTransitionGroup from 'react-addons-css-transition-group' export default ({ error }) => { return ( <div className={cx('recording-error', { visible: !!error })}> <ReactCSSTransitionGroup transitionName='error' transitionEnte...
blueocean-material-icons/src/js/components/svg-icons/action/alarm-on.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7s...
src/app/component/headline/headline.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import Headline from '../headline' storiesOf('Headline', module) .add('default', () => <Headline label="Default Headline" />) .add('size: s', () => <Headline label="Small Headline" size="s" />) .add('size: l', () => <Headline label="Large Head...
src/components/Layout/Layout.js
jas-chen/react-starter-kit
import React from 'react'; import { Link } from 'react-router'; import rcm from 'react-css-modules'; const styles = require('./Layout.scss'); function Layout(props) { return ( <div> <div styleName="logo">React Starter Kit</div> <ul> <li><Link to="/about">About</Link></li> <li><Link to...
src/app.js
zebulonj/exygen
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Route as PrimitiveRoute } from 'react-router-dom'; import { connect } from 'react-redux'; export const DefaultWrapper = ({ children }) => ( <div className="app-wrapper"> { children } </div> ); export const App = ({ Wrapper,...
app/src/routes/profile/UserProfile.js
grantrules/bikeindustryjobs
import React from 'react'; import { Route, Link } from 'react-router-dom'; import SVGLogo from '../../components/SVGLogo'; import CompanyService from '../../services/companies'; import AddJob from './AddJob' import AddCompany from './AddCompany' class UserProfile extends React.Component { constructor(props) { ...