path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/boot.js
andreypopp/sitegen
/** * @copyright 2016-present, Sitegen team * @flow */ declare var __DEBUG__: string; import type {Route} from 'react-router'; import debug from 'debug'; debug.enable(__DEBUG__); import invariant from 'invariant'; import React from 'react'; import {render} from 'react-dom'; import {browserHistory as history, mat...
modules/line-chart/index.js
rma-consulting/react-easy-chart
import React from 'react'; import ReactFauxDOM from 'react-faux-dom'; import { event as lastEvent, select, axisBottom, axisLeft, axisRight, line, timeFormat } from 'd3'; import { createUniqueID, reduce, calculateMargin, createValueGenerator, createDomainRangeGenerator, defaultColors, defaul...
src/svg-icons/notification/wifi.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
nativeExample/react/src/js/example/pwd.js
zhanglizhao/react-native-knowledge
/** * Created by Administrator on 2016/11/19 0019. */ import React from 'react'; import {render} from 'react-dom'; import {Nav,NavTitle,NavLeft} from '../../assets/components/nav/nav.js'; import Btn from '../../assets/components/btn/btn.js'; import Formsy,{Form,Mixin} from "react-cmos-formsy"; import { createStore, c...
docs/app/Examples/elements/Step/Groups/StepExampleGroups.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const steps = [ { icon: 'truck', title: 'Shipping', description: 'Choose your shipping options' }, { active: true, icon: 'payment', title: 'Billing', description: 'Enter billing information' }, { disabled: true, icon: 'info', title: 'Confir...
imports/startup/client/components/Contact/ContactFormButtons.js
eiglikov/contacts-react-redux-meteor
import React from 'react' import PropTypes from 'prop-types' const ContactFormButtons = ({ onClear, hideSubmit }) => ( <div className='btn-toolbar pull-right'> <input type='button' className='btn btn-default' onClick={onClear} value='CANCEL' readOnly /> { hideSubmit ? '' ...
app/index.js
zedtux/grrn
import log from 'loglevel'; if (process.env.NODE_ENV !== 'production') { // Use require because imports can't be conditional. // In production, you should ensure process.env.NODE_ENV // is envified so that Uglify can eliminate this // module and its dependencies as dead code. // require('./createDevToolsWindo...
react-client/src/components/Lobby.js
lowtalkers/escape-reality
import AFRAME from 'aframe'; import 'aframe-animation-component'; import 'aframe-text-component'; import 'babel-polyfill'; import {Entity, Scene} from 'aframe-react'; import React from 'react'; import { Link, withRouter } from 'react-router'; import Camera from './Camera'; import Text from './Text'; import Sky from '...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DestructuringAndAwait.js
picter/create-react-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. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; async function load() { return { users: [ { i...
app/containers/NotFoundPage/index.js
prudhvisays/season
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
vacker/static/src/App.js
MatthewJohn/vacker
import React from 'react'; import { Router, Route, withRouter } from 'react-router-dom'; import { connect } from 'react-redux' import { createBrowserHistory } from 'history'; import {DataTable} from 'primereact/datatable'; import {Column} from 'primereact/column'; import {MultiSelect} from 'primereact/multiselect'; i...
client/app/scripts/charts/node-shape-square.js
dilgerma/scope
import React from 'react'; import classNames from 'classnames'; import {getMetricValue, getMetricColor, getClipPathDefinition} from '../utils/metric-utils.js'; import {CANVAS_METRIC_FONT_SIZE} from '../constants/styles.js'; export default function NodeShapeSquare({ id, highlighted, size, color, rx = 0, ry = 0, metr...
src/svg-icons/image/portrait.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePortrait = (props) => ( <SvgIcon {...props}> <path d="M12 12.25c1.24 0 2.25-1.01 2.25-2.25S13.24 7.75 12 7.75 9.75 8.76 9.75 10s1.01 2.25 2.25 2.25zm4.5 4c0-1.5-3-2.25-4.5-2.25s-4.5.75-4.5 2.25V17h9v-.75zM...
src/app.js
noomorph/quizzard2
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import React from 'react'; import FastClick from 'fastclick'; import App from './components/App'; import Dispatcher from './core/Dispatcher'; import AppActions from './actions/AppActions'; import ActionTypes from './const...
src/components/canvas/other_components/Description.js
nchathu2014/canvas-new
import React from 'react'; export default class Description extends React.Component{ constructor(props){ super(props); } render(){ return( <div> <div className="text-center"> <h4>Description&nbsp;<span className="glyphicon glyphicon-exclamation-sign"></span></h4> </div> <div> <text...
app/components/H3/index.js
mxstbr/react-boilerplate
import React from 'react'; function H3(props) { return <h3 {...props} />; } export default H3;
src/pages/NotFoundPage.js
ihenvyr/react-parse
import React from 'react'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; const NotFoundPage = () => { return ( <div> <Helmet title="About" meta={[ { name: "description", content: "About" } ]} /> <h2>Page Not Found</h2> <p>W...
src/scenes/home/informationForm/formComponents/identifier.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import Form from 'shared/components/form/form'; import PropTypes from 'prop-types'; import FormSelect from 'shared/components/form/formSelect/formSelect'; import { IDENTIFIERS } from 'shared/constants/status'; import styles from './formComponents.css'; class Identifier extends...
src/components/Common/ReservedTokensItem.js
15chrjef/ico-wizard
import React from 'react' import '../../assets/stylesheets/application.css'; import { defaultState } from '../../utils/constants' import { getOldState } from '../../utils/utils' export class ReservedTokensItem extends React.Component { constructor(props) { super(props); let oldState = getOldState(prop...
ee/client/omnichannel/cannedResponses/CannedResponseAdd.stories.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; import CannedResponseAdd from './CannedResponseAdd'; export default { title: 'omnichannel/CannedResponse/CannedResponseAdd', component: CannedResponseAdd, }; export const Default = () => ( <Box maxWidth='x300' alignSelf='center' w='full'> <...
src/components/Footer/index.js
redsheep-io/redsheep.io
import React from 'react'; import PropTypes from 'prop-types'; import {SocialIcons} from 'react-social-icons'; import './styles.scss'; class Footer extends React.Component { static propTypes = { socialUrls: PropTypes.array }; render () { const {socialUrls} = this.props; return ( <div classNam...
src/client.js
harouf/react-redux-searchportal
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createHistory from 'history/lib/createBrowserHistory'; import createStore from './redux/create'; import ApiClient from '....
pootle/static/js/admin/components/Project/ProjectForm.js
unho/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import FormElement from 'compo...
client/channel/Threads/ContextualBar/components/Message.stories.js
iiet/iiet-chat
import React from 'react'; import Message from './Message'; const message = { msg: 'hello world', ts: new Date(0), username: 'guilherme.gazzo', replies: 1, participants: 2, tlm: new Date(0).toISOString(), }; const largeText = { ...message, msg: 'Large text, Large text, Large text, Large text, Large text, Lar...
examples/src/components/CustomKeysField.js
oluckyman/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var CustomKeysField = React.createClass({ displayName: 'CustomKeysField', propTypes: { label: React.PropTypes.string },...
examples/optgroup.js
eternalsky/select
/* eslint no-console: 0 */ import React from 'react'; import Select, { Option, OptGroup } from 'rc-select'; import 'rc-select/assets/index.less'; import ReactDOM from 'react-dom'; function onChange(value) { console.log(`selected ${value}`); } const c1 = ( <div> <h2>Select OptGroup</h2> <div style={{ widt...
src/svg-icons/notification/phone-paused.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
src/components/Proteome/EntryHierarchy/index.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import T from 'prop-types'; import { dataPropType } from 'higherOrder/loadData/dataPropTypes'; import { createSelector } from 'reselect'; import { format } from 'url'; import loadData from 'higherOrder/loadData'; import descriptionToPath from 'utils/processDescription/descriptionToPath'; i...
src/primitives/other/labeled-item/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { FormattedMessage } from 'react-intl'; import FlexContainer from 'primitives/container/flex-container'; import Label from 'primitives/form/label'; import styles from './styles.module.scss'; export default func...
websites/svef.is/src/app/routes/Home/Home.js
svef/www
import React from 'react' import Helmet from 'react-helmet' import { Button, Section, H1 } from '@svef/components' const Home = () => ( <div className="row"> <Helmet> <title>Home</title> </Helmet> <div className="col"> <Section hero> <H1 color="svef">Samtök vefiðnaðarins</H1> </...
packages/material-ui-icons/src/AssignmentInd.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let AssignmentInd = props => <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-....
src/components/Header/Header.js
dynamitechetan/susi_skill_wiki
import React from 'react'; import { Dropdown, Avatar, Icon, Menu } from 'antd'; export default class Header extends React.Component { render() { const menu = ( <Menu> <Menu.Item key="0"> <a href="#">Logout</a> </Menu.Item> </Menu>...
components/layout/Layout.js
jasonleibowitz/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import classnames from 'classnames'; import { LAYOUT } from '../identifiers.js'; const Layout = ({ className, children, theme }) => ( <div data-react-toolbox='layout' className={classnames(theme.layout, className)...
ajax/libs/react-instantsearch/5.1.0/Connectors.js
seogi1004/cdnjs
/*! ReactInstantSearch 5.1.0 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :...
app/javascript/mastodon/features/standalone/compose/index.js
Craftodon/Craftodon
import React from 'react'; import ComposeFormContainer from '../../compose/containers/compose_form_container'; import NotificationsContainer from '../../ui/containers/notifications_container'; import LoadingBarContainer from '../../ui/containers/loading_bar_container'; import ModalContainer from '../../ui/containers/mo...
client/src/containers/NotFound/NotFound.js
jabelone/marvin
import React from 'react'; export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
examples/huge-apps/routes/Course/routes/Announcements/components/Sidebar.js
arbas/react-router
import React from 'react'; import { Link } from 'react-router'; export default class AnnouncementsSidebar extends React.Component { render () { var announcements = COURSES[this.props.params.courseId].announcements; return ( <div> <h3>Sidebar Assignments</h3> <ul> {announcemen...
app/javascript/mastodon/features/ui/components/boost_modal.js
SerCom-KC/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; import StatusContent from '../../../components/status_content'; import Av...
src/app/js/game/card.js
TylerMcKenzie/Nertz
import React from 'react' class Card extends React.Component { constructor() { super() this.state = { isSelected: false } } handleClick(event) { let el = event.target.classList.contains('card') ? event.target : event.target.parentNode console.log(this.props) if(!this.props.isSelect...
src/svg-icons/image/camera-alt.js
ichiohta/material-ui
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...
fields/types/select/SelectField.js
xyzteam2016/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from 'elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValue) { // TODO: This shoul...
react-components/src/library/components/collections-page.js
concord-consortium/rigse
import React from 'react' import Component from '../helpers/component' import CollectionCards from './collection-cards' const CollectionsPage = Component({ render: function () { return ( <div> <div className={'cols'}> <div className={'portal-pages-collections-page-header col-12'}> ...
app/components/Footer/Footer.js
LabMDE/bungee-books-web
import React from 'react'; import style from './Footer.scss'; import classNames from 'classNames/bind'; const css = classNames.bind(style); const Footer = ({ children }) => { return ( <div className={ css('footer') }> <div>Telefono: 555-123-1212</div> </div> ); }; export default Footer;
src/components/Label.js
feedreaderco/web
import React from 'react'; export default ({ user, label }) => { const url = `/${user}/labels/${encodeURIComponent(label)}`; return <a href={url} className="pillbox">{label}</a>; };
src/svg-icons/av/replay.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/> </SvgIcon> ); AvReplay = pure(AvReplay); AvReplay...
src/components/Layout.js
RanjithNair/FeatureTracker
import React from 'react'; import Header from './common/Header'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {signOut} from '../actions/authActions'; class Layout extends React.Component { constructor(props, context) { super(props, context); } render() { const ...
src/containers/pages/reddit/post/content/post-comments/post-comments-header.js
vFujin/HearthLounge
import React from 'react' import { connect } from "react-redux"; const PostCommentsHeader = ({post}) => { return ( <div className="section__header"> <div className="line"/> <h1>{post.num_comments} {post.num_comments === 1 ? "comment" : "comments"}</h1> </div> ) }; const mapStateToProps = state...
client/src/Weather.js
t-gabor/sunshade-control
import React from 'react'; import Paper from 'material-ui/Paper'; import './Weather.css'; export default (props) => { if(!props.weather) return <Paper className="weather"/> var d = new Date(0); // The 0 there is the key, which sets the date to the epoch d.setUTCSeconds(props.weather.observationTim...
docs/app/Examples/elements/Header/Variations/HeaderExampleColored.js
aabustamante/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleColored = () => ( <div> <Header as='h4' color='red'>Red</Header> <Header as='h4' color='orange'>Orange</Header> <Header as='h4' color='yellow'>Yellow</Header> <Header as='h4' color='olive'>Olive</Header> <Head...
src/containers/pageNavigatorContainer/index.js
MichaelQQ/Oyasumi
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import PageNavigator from '../../components/pageNavigator'; import { prev, next } from './action'; export const PageNavigatorContainer = ({ ...props }) => { const { page, maxPage, onPrev, onNext } = props; retur...
powerauth-webflow/src/main/js/components/loginSca.js
lime-company/powerauth-webflow
/* * PowerAuth Web Flow and related software components * Copyright (C) 2019 Wultra s.r.o. * * 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 License, or * (...
app/components/ColorChanger/Title/index.js
cerebral/cerebral-boilerplate
import React from 'react'; import styles from './styles.css'; function Title(props) { return ( <h1 style={{color: props.color}} className={styles.title}> {props.children} </h1> ); } Title.propTypes = { color: React.PropTypes.string.isRequired, children: React.PropTypes.any.isRequired }; export ...
client/modules/App/__tests__/Components/Header.spec.js
phumberdroz/pizzastore
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow } from 'enzyme'; import Header from '../../components/Header/Header'; test('renders the header properly', t => { const router = { isActive: sinon.stub().returns(true), }; const wrapper = shallow( <Header toggle...
src/svg-icons/navigation/close.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
src/server/Server.js
scopevale/carpers-paradise
import express from 'express'; import stormpath from 'express-stormpath'; import path from 'path'; import favicon from 'serve-favicon'; import logger from 'morgan'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; // my routes import routes from './routes/index.js'; import booking from ...
src/layouts/MetaContainer/metacontainer.js
aberkow/gatsby-blog
import React from 'react';
generators/component/templates/src/app/component.js
FountainJS/generator-fountain-react
<% if (modules === 'webpack') { -%> const React = require('react'); export default React.createClass({ <% } -%> <% if (modules === 'systemjs') { -%> import React from 'react'; export default React.createClass({ <% } -%> <% if (modules === 'inject') { -%> window.<%- className %> = React.createClass({ <% } -%> getDef...
client/admin/scenes/protected/project/project-list.js
kirinami/portfolio
import React, { Component } from 'react'; import { Breadcrumb, BreadcrumbItem } from 'reactstrap'; import { Link } from 'react-router-dom'; import { inject, observer } from 'mobx-react'; import Loading from '../../../components/loading'; @inject('alertStore', 'projectStore') @observer export default class ProjectList...
internals/templates/appContainer.js
adoveil/max
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/containers/Root.js
ghartong/react_falcor
import React from 'react' import {Provider} from 'react-redux' import {Router} from 'react-router' import routes from '../routes' import createHashHistory from 'history/lib/createHashHistory' export default class Root extends React.Component { static propTypes = { history: React.PropTypes.object.isRequired...
frontend/src/Settings/Notifications/Notifications/EditNotificationModalContent.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import Alert from 'Components/Alert'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Provider...
src/features/ViewMenuItems/Views/TitleHeader.js
erhathaway/cellular_automata
import React from 'react'; import styled, { css } from 'react-emotion'; import PropTypes from 'prop-types'; // dock top or bottom const ContainerHorizontal = css` border-bottom: 1px solid rgba(72, 72, 72, 0.5); padding-bottom: 5px; `; // dock left or right const ContainerVertical = css` `; // has not docked cons...
packages/mineral-ui-icons/src/IconSwapVert.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconSwapVert(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps...
node_modules/react-bootstrap/es/NavItem.js
superKaigon/TheCave
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 ...
examples/huge-apps/routes/Course/components/Nav.js
nhunzaker/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
docs/app/Examples/collections/Grid/Content/index.js
koenvg/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const GridContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Rows' description='A r...
src/desktop/components/react/current_auctions/index.js
kanaabe/force
import CurrentAuctions from './current_auctions' import invariant from 'invariant' import React from 'react' import ReactDOM from 'react-dom' import { isEmpty, isString } from 'underscore' export { CurrentAuctions } export default function mount( data, selector = '#react-mount-current-auctions' ) { const { auct...
src/routes/RegisterStudent/components/RegisterForm.js
gabrielmf/SIR-EDU-2.0
import React from 'react' import { TextField, SelectField, MenuItem, DatePicker, Checkbox, RaisedButton } from 'material-ui' import Dropzone from 'components/Dropzone' import MultipleCheckboxes from './MultipleCheckboxes' import TermOfUse from './TermOfUse' const specialNeeds = [{name: 'Altas Habilidades/Superdotado'}...
client/lib/js/react/components/asset_action_panel.js
enzovici/PoC-TruthChain
import React from 'react'; import { Button, DropdownButton, MenuItem } from 'react-bootstrap/lib'; import { safeInvoke } from 'js-utility-belt/es6'; const AssetActionPanel = React.createClass({ propTypes: { accountList: React.PropTypes.array.isRequired, activeAccount: React.PropTypes.object.isReq...
docs/app/Examples/elements/Label/Content/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const LabelContent = () => ( <ExampleSection title='Content'> <ComponentExample title='Detail' description='A label ...
admin/client/App/components/Navigation/Secondary/NavItem.js
brianjd/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
docs/src/app/components/pages/components/Table/Page.js
w01fgang/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tableReadmeText from './README'; import TableExampleSimple from './Exampl...
chapter-10/todo_react_motion/src/filter/views/filters.js
mocheng/react-and-redux
import React from 'react'; import Link from './link.js'; import {FilterTypes} from '../../constants.js' import './style.css'; const Filters = () => { return ( <p className="filters"> <Link filter={FilterTypes.ALL}> {FilterTypes.ALL} </Link> <Link filter={FilterTypes.COMPLETED}> {FilterTypes.COMPLETE...
packages/plugins/users-permissions/admin/src/pages/Roles/ProtectedEditPage/index.js
wistityhq/strapi
import React from 'react'; import { CheckPagePermissions } from '@strapi/helper-plugin'; import pluginPermissions from '../../../permissions'; import RolesEditPage from '../EditPage'; const ProtectedRolesEditPage = () => ( <CheckPagePermissions permissions={pluginPermissions.updateRole}> <RolesEditPage /> </Ch...
src/components/state-badge.component.js
Antoine38660/git-point
import React from 'react'; import { Text, View, StyleSheet } from 'react-native'; import { colors, fonts, normalize } from 'config'; import { translate } from 'utils'; type Props = { issue: Object, isMerged: boolean, text: string, type: string, style: Object, locale: string, }; const styles = StyleSheet....
src/components/icons/user.js
ipfs-shipyard/peerpad
import React from 'react' export default ({ className, style }) => ( <svg width='14' height='14' viewBox='0 0 14 14' xmlns='http://www.w3.org/2000/svg' className={className} style={style}> <g transform='translate(1.000000, 1.000000)' strokeWidth='1' fill='none'> <circle cx='6' cy='3' r='3' /> <path d...
app/components/Footer.js
Byte-Code/lm-digital-store-private-test
import React from 'react'; import glamorous from 'glamorous'; import { Link } from 'react-router'; import HelpIcon from 'material-ui/svg-icons/action/help-outline'; import HomeIcon from 'material-ui/svg-icons/action/home'; import ArrowIcon from 'material-ui/svg-icons/navigation/arrow-back'; import TutorialButton from ...
app/server/server.js
nittmurugan/finddriver
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
frontend/src/pages/Home.js
pequalsnp/eve-isk-tracker
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Grid, Row, Col, Jumbotron } from 'react-bootstrap'; import App from '../components/App' import Profile from '../components/Profile' class Home extends Component { render() { return ( <App> <Jumbotron> <P...
dispatch/static/manager/src/js/components/PollEditor/PollForm.js
ubyssey/dispatch
import React from 'react' import { Button, Intent } from '@blueprintjs/core' import R from 'ramda' import { TextInput, SelectInput } from '../inputs' import * as Form from '../Form' import Poll from './Poll' require('../../../styles/components/poll_form.scss') const DEFAULT_ANSWERS = [ { 'name': '', 'vot...
AppVilRecipe/VilRecipes/index.android.js
damdamgo/VilRecipe
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import VilRecipes from './App'; AppRegistry.registerComponent('VilRecipes', () => VilRecipes);
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
shrynx/react-super-scripts
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import Rea...
imports/Client/Components/task/Task.js
darodriguez15/booksWebDev
import React, { Component } from 'react'; import PropTypes from "prop-types"; // Task component - represents a single todo item export default class Task extends Component { render() { return ( <li>{this.props.task.text}</li> ); } } Task.propTypes = { // This component gets the...
src/icons/GlyphMap.js
ipfs/webui
import React from 'react' const GlyphMap = props => ( <svg viewBox='0 0 100 100' {...props}> <path d='M80.45 31.79L60.58 19.4a1 1 0 0 0-.53-.15h-.23a1 1 0 0 0-.59.19c-.47.31-7.45 4.72-13.07 8.26l-6 3.79-.09.05a1.43 1.43 0 0 1-.31-.16c-6-3.74-18.45-11.88-18.95-12.24a1 1 0 0 0-1-.18 1 1 0 0 0-.65.73c-.05.2-.11.49-...
fields/types/number/NumberFilter.js
andreufirefly/keystone
import React from 'react'; import ReactDOM from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between' }, ]; ...
src/navigation/auth.js
shwethadn/StarterApp
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
docs/src/app/components/pages/components/RefreshIndicator/Page.js
barakmitz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import refreshIndicatorReadmeText from './README'; import RefreshIndicatorExampl...
packages/leaflet/src/basemaps/Tile.js
wq/wq.app
import React from 'react'; import { TileLayer } from 'react-leaflet'; export default function Tile(props) { return <TileLayer {...props} />; }
src/app/components/Header.js
DavidBanksNZ/react-redux-minesweeper
import React from 'react'; const Header = props => ( <div className="app-header"> <h1>React + Redux Minesweeper</h1> <i className="zmdi zmdi-help app-header-help-icon" onClick={props.onToggleHelp}></i> </div> ); export default Header;
client/containers/home/index.js
ShannChiang/USzhejiang
// import React from 'react'; // import {useDeps} from 'react-simple-di'; // import {composeAll, withTracker, withLifecycle} from 'react-komposer-plus'; // import Home from '../../components/home'; // function composer({context}, onData) { // const user = context().Meteor.user(); // if (user && Array.isArray(use...
src/sentry/static/sentry/app/icons/icon-search.js
gencer/sentry
import React from 'react'; import Icon from 'react-icon-base'; function IconSearch(props) { return ( <Icon viewBox="0 0 14 14" {...props}> <g stroke="none" fill="currentColor"> <path d="M8.3099521,6.89573854 L11.7071068,10.2928932 C12.0976311,10.6834175 12.0976311,11.3165825 11.7071068,11.7071068 C...
client/src/components/view/container/Networks.js
docker-manager/docker-manager-tool
import React from 'react' const Networks = ({networks}) => ( <ul className="list-group"> {Object.keys(networks).map(network => <li key={network} className="list-group-item"> <table className="table table-striped table-condensed table-responsive text-left"> <t...
step4-router/node_modules/react-router/modules/Link.js
jintoppy/react-training
import React from 'react' import warning from './routerWarning' const { bool, object, string, func, oneOfType } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } functio...
lib/grid/index.js
andyfen/react-native-UIKit
import React from 'react'; import { StyleSheet, View, Image, TouchableOpacity, ListView, Dimensions, } from 'react-native'; import { floor, divide, take, chunk } from 'lodash'; const { width } = Dimensions.get('window'); const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => r1 !== r2 }); const ...
src/PhotoMessage/PhotoMessage.js
Detaysoft/react-chat-elements
import React from 'react'; import './PhotoMessage.css'; import FaCloudDownload from 'react-icons/lib/fa/cloud-download'; import FaError from 'react-icons/lib/fa/exclamation-triangle'; const ProgressBar = require('react-progress-bar.js'); const Circle = ProgressBar.Circle; function PhotoMessage(props) { var progre...
src/Parser/Hunter/Marksmanship/Modules/Features/VulnerableUptime.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { ST...
src/redux/utils/createDevToolsWindow.js
felixSchl/try-neodoc
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from '../../containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window ...
fields/types/location/LocationFilter.js
cermati/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, Grid, SegmentedControl, } from '../../../admin/client/App/elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { ret...
src/collections/Form/FormRadio.js
aabustamante/Semantic-UI-React
import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, } from '../../lib' import Radio from '../../addons/Radio' import FormField from './FormField' /** * Sugar for <Form.Field control={Radio} />. * @see Form * @see Radio */ function FormRadio(props) { const { contr...
src/docs/examples/Table/ExampleSimpleTable.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import Table from 'zs-react/Table'; /** SimpleTable */ export default class ExampleSimpleTable extends React.Component { constructor () { super(); this.headers = [ "Book", "Author", "Language", "Published", "Sales" ]; this.data = [ ["The Lord ...