path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/forms/Flight.js
muiradams/plantogo
import React, { Component } from 'react'; import { TextField } from 'redux-form-material-ui'; import { Field } from 'redux-form'; import { Row, Column } from 'react-cellblock'; // Validation function for redux-form const required = value => value == null || value === '' ? 'Required' : undefined; const style = { erro...
docs/src/components/Docs/Content/index.js
storybooks/react-storybook
/* eslint-disable consistent-return */ import React from 'react'; import PropTypes from 'prop-types'; import { SyntaxHighlighter } from '@storybook/components'; import { ThemeProvider, convert, create } from '@storybook/theming'; import './style.css'; import parse from 'html-react-parser'; const DocsContent = ({ tit...
packages/reactor/script/create-typings.js
markbrocato/extjs-reactor
const fs = require('fs'); const path = require('path'); const components = {}; const byClassName = {}; const { capitalize } = require('lodash'); const words = [ 'split', 'button', 'calendar', 'view', 'field', 'data', 'table', 'color', 'picker', 'slider', 'tree', 'grid', ...
dispatch/static/manager/src/js/pages/Tags/NewTagPage.js
ubyssey/dispatch
import React from 'react' import TagEditor from '../../components/TagEditor' export default function NewTagPage(props) { return ( <TagEditor isNew={true} goBack={props.router.goBack} route={props.route} /> ) }
packages/react-dom/src/shared/checkReact.js
rickbeerendonk/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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 invariant from 'shared/invariant'; invariant( React, 'ReactDOM was loaded befor...
docs/src/components/Downloads.js
Gisto/Gisto
import React, { Component } from 'react'; function getFileType(file) { return file.split('.').reverse()[0]; } function getOsType(file) { const fileExtension = getFileType(file); switch (fileExtension) { case 'snap': case 'AppImage': case 'deb': case 'rpm': case 'pacman': { return 'lin...
openex-front/src/private/components/exercises/audiences/AudienceForm.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Form } from 'react-final-form'; import Button from '@mui/material/Button'; import { TextField } from '../../../../components/TextField'; import inject18n from '../../../../components/i18n'; import TagField from '../../../../comp...
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsAlert/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import RegionSettingsAlert from 'ringcentral-widgets/components/RegionSettingsAlert'; const props = {}; props.message = { message: 'test string' }; props.regionSettingsUrl = 'test string'; props.currentLocale = 'en-US'; /** * A example of `RegionSettingsAlert`...
packages/@lyra/default-layout/src/components/ActionModal.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import {IntentLink} from 'part:@lyra/base/router' import Dialog from 'part:@lyra/components/dialogs/default' import styles from './styles/ActionModal.css' import FileIcon from 'part:@lyra/base/file-icon' function ActionModal(props) { return ( <Dialog ...
src/lib/validation.js
Zycon42/este-chat
/* Simple serial "one by one" sync/async promises based validation. */ import Promise from 'bluebird'; import React from 'react'; import validator from 'validator'; export class ValidationError extends Error { constructor(message: string, prop: string) { super(); this.message = message; this.prop = pro...
src/components/RegisterEntryFilled.js
KDCinfo/track-your-cash
/* React Component - Form: Checking Register Entry Form - Parent container for [Form: Date Input Field] - (native Date input field with non-native fallback) New and Existing entries: [New] eid === 0 [Existing] eid > 0 // Entry Date | Trans Type | Entry Descripti...
app/static/src/diagnostic/NewDiagnosisForm.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import {NotificationContainer, NotificationManager} from 'react-notifications'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import Tooltip from 'react-bootstr...
docs/src/SupportPage.js
adampickeral/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
lib/Ten-Day.js
robbiegreiner/weathrly
import React from 'react'; import Card from './Card.js'; const TenDay = ({ weather }) => { return ( <div className='ten-day'> {weather.dailyInfo && weather.dailyInfo.map((obj, i) => <Card className={'ten-day'} key={i} time={obj.date.we...
app/javascript/mastodon/features/compose/components/action_bar.js
theoria24/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
app/scripts/components/debug-toolbar.js
hustbill/autorender-js
/* eslint react/jsx-no-bind: "off" */ import React from 'react'; import Perf from 'react-addons-perf'; import { connect } from 'react-redux'; import { sampleSize, sample, random, range, flattenDeep, times } from 'lodash'; import { fromJS, Set as makeSet } from 'immutable'; import { hsl } from 'd3-color'; import debug f...
src/index.js
icartusacrimea/portfolio_reactredux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/app'; import reducers from './reducers'; const createStoreWithMiddleware = applyMiddleware(...
examples/src/components/ListReact.js
jakubmazanec/ash
import React from 'react'; export default class List extends React.Component { state = {redOutline: false}; shouldComponentUpdate(nextProps) { return nextProps.list !== this.props.list; } render() { // console.log(this.props); return React.createElement('ul', { style: { outline: this.state.redOutlin...
src/index.js
lq782655835/ReactDemo
//import 'core-js/fn/object/assign'; import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Route from './config/route'; import Store from './stores/index'; //样式文件 import 'antd/dist/antd.css'; import 'animate.css/animate.min.css'; import 'fl...
src/components/page.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; type Props = { title: string, url: string, }; let hasReplaced = false; const updateHistory = (title, url) => { if (hasReplaced) { window.history.pushState({}, title, url); } else { window.history.replaceState({}, title, url); hasReplaced = true; } }; export ...
src/main/app/components/system/System.js
reactor/reactor-pylon
/* * Copyright (c) 2011-2016 Pivotal Software 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 * * Unles...
src/filter/classGenerator.js
jessy1092/react-semantify
import React from 'react'; export default function (defaultClassName, ComposeComponent) { return class extends React.Component { render() { let { props: { className = '', children, ...other } } = this; className = `${className} ${defaultClassName}`.trim(); return ( <ComposeComponen...
src/shared/components/authenticatedRoute/authenticatedRoute.js
OperationCode/operationcode_frontend
import React from 'react'; import SocialLogin from 'shared/components/socialLogin/socialLogin'; import PropTypes from 'prop-types'; import { Route, Redirect } from 'react-router-dom'; const AuthenticatedRoute = (props) => { if (!props.isAuth) { return <Redirect to={{ pathname: '/login', state: { referrer: props....
src/js/components/Fields/SpotifyAuthenticationFrame.js
jaedb/Iris
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as uiActions from '../../services/ui/actions'; import * as spotifyActions from '../../services/spotify/actions'; import { toJSON } from '../../util/format'; import { I18n, i18n } from '../../loca...
src/app.js
cloeper/rgn-admin-ui
import React from 'react' console.log('RGN Admin Console')
packages/react-devtools-shell/src/app/InspectableElements/NestedProps.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * 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'; const object = { string: 'abc', longString: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKJLMN...
templates/rubix/demo/src/routes/Controls.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import { Row, Col, Nav, Grid, Icon, Form, Panel, Radio, Button, MenuItem, Checkbox, HelpBlock, PanelBody, FormGroup, InputGroup, SplitButton, PanelHeader, ButtonGroup, FormControl, PanelFooter, ControlLabel, DropdownButton, PanelContainer, } from...
client/modules/core/components/.stories/newpost.js
Entropy03/jianwei
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import NewPost from '../newpost'; storiesOf('core.NewPost', module) .add('default view', () => { return ( <NewPost create={action('create post')} /> ); }) .add('with error', () => { const error = 'This is the erro...
src/components/trace-pad.js
JasonH815/Sketch-App
import React, { Component } from 'react'; import {PaperScope} from 'paper'; import q from 'q'; import request from "request"; class TracePad extends Component { constructor(props){ super(props); const {refresh = true, preview = true, category = 'Auto'} = props; //set up drawing tool const paper = n...
website/src/containers/App.js
chrisl8/ArloBot
import React, { Component } from 'react'; import openSocket from 'socket.io-client'; import './App.css'; import AccordionGroup from './AccordionGroup'; import Settings from './PersonalSettings'; import Banner from '../components/Banner'; class App extends Component { constructor(props) { super(props); this....
docs/src/sections/ButtonSection.js
lzcmaro/react-ratchet
import React from 'react'; import Samples from '../Samples' import ReactPlayground from '../ReactPlayground' export default function ButtonSection() { return ( <div> <ReactPlayground id="buttons" title='Buttons' desc='按钮' codeText={Samples.ButtonTypes} /> <ReactPlayground id="buttonsWithIcons" title...
app/app.js
vkurzweg/aloha
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
src/shared/components/form/formPassword/formPassword.js
OperationCode/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; class FormPassword extends Component { render() { return ( <FormInput {...this.props} inputType="password" ref={(child) => { this.inputRef = child; }} /> ); } } export default Form...
react/src/components/ArtLabelShow.js
koscim/beer-art-reviews
import React from 'react'; import { browserHistory, Link } from 'react-router'; const ArtLabelShow = (props) => { let review_score = { joy: 0, fear: 0, disgust: 0, anger: 0, sadness: 0, cleverness: 0, collectability: 0, controversiality: 0, buyability: 0 } let tally = { jo...
clients/packages/admin-client/src/community/components/list-item.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' const ListItem = ({ onClick, community: { id, name, image } }) => ( <div className='ListItem' onClick={() => onClick(id)} style={{ cursor: 'pointer' }}> <u className='logo-icon nossas left' style={{ backgroundImage: image ? `url(${i...
src/v0/demo/ParallaxView/index.js
huanganqi/wsapp
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; import ParallaxView from 'react-native-parallax-view' class Parallax extends Component { render() { return ( <ParallaxView backgroundSource={require('./1.png')...
components/Board/Board.js
aleksie/codenames
import React from 'react'; import cx from 'classnames'; import s from './styles.css'; import Button from '../Button'; import Card from '../Card'; import words from './words.json'; import types from './types.json'; class Board extends React.Component { constructor() { super(); this.generateNewGameState = th...
pootle/static/js/auth/components/SignInPanel.js
Jobava/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. */ 'use strict'; import 'jquery-cookie'; import assign from ...
src/components/chrome/Chrome.js
JunisphereSystemsAG/react-color
'use strict' /* @flow */ import React from 'react' import ReactCSS from 'reactcss' import { ColorWrap, Saturation, Hue, Alpha, Checkboard } from '../common' import ChromeFields from './ChromeFields' import ChromePointer from './ChromePointer' import ChromePointerCircle from './ChromePointerCircle' import shallowCompa...
testClient/components/Stats.js
DougCal/ServerHive
import React from 'react'; import CurrStats from './CurrStats'; const parseStats = (stats) => { let resultRender = []; let resultData = [] let showSession = false; for (let i = 0; i < stats.length; i += 1) { // console.log(stats[i]); let date = new Date(stats[i].session); let sessionData = {}; ...
src/controls/textarea/index.js
thinktopography/reframe
import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' class TextArea extends React.Component { static propTypes = { defaultValue: PropTypes.string, disabled: PropTypes.bool, maxLength: PropTypes.number, placeholder: PropTypes.string, rows: PropTypes.number, tabI...
src/frontend/src/components/entity/EntityList.js
ziroby/dmassist
import React from 'react'; import Entities from './Entities' import './EntityList.css'; function EntityList(props) { return ( <div className="EntityList"> <Entities entities={props.entities}/> </div> ); } export default EntityList;
src/routes/UIElement/layer/index.js
mapengze/Antd-Backstage
import React from 'react' import { layer } from '../../../components' import { Table, Row, Col, Button, Card } from 'antd' let Enum = { default: 1, } const IcoPage = () => { const handleButtonClick = (key) => { if (key === Enum.default) { layer.open({ title: '默认弹层', content: <div style={...
packages/bonde-styleguide/src/form/Tag/Tag.js
ourcities/rebu-client
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Checkbox = styled.input.attrs({ type: 'checkbox' })` display: none; ` const Content = styled.span` display: inline-block; font-family: Nunito Sans; font-size: 13px; font-weight: 800; line-height: 1....
src/svg-icons/device/signal-wifi-1-bar-lock.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
app/addons/documents/sidebar/components/CloneIndexModal.js
michellephung/couchdb-fauxton
// 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 in writing, software // distributed un...
app/scripts/components/node-details/node-details-health-overflow-item.js
hustbill/network-verification-ui
import React from 'react'; import { formatMetric } from '../../utils/string-utils'; function NodeDetailsHealthOverflowItem(props) { return ( <div className="node-details-health-overflow-item"> <div className="node-details-health-overflow-item-value"> {formatMetric(props.value, props)} </div>...
packages/reactor-kitchensink/src/examples/Lists/PullRefresh/PullRefresh.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { List } from '@extjs/ext-react'; require('../stocks'); Ext.require([ 'Ext.plugin.PullRefresh' ]); export default class PullRefreshListExample extends Component { store = Ext.create('Ext.data.Store', { fields: ['name'], autoLoad: true, ...
examples/basic-todo/app.js
alex2wong/react-mapglDemo
import React from 'react' import ReactDOM from 'react-dom' import {createStore} from 'redux'; let nextId = 1; class Application extends React.Component { // get todos from outer ReactDom.render.. constructor(props) { super(props); this.state = { todos: [ { ...
src/input/test_radioinputinui.js
sword42/react-ui-helpers
import React from 'react' import ReactDOM from 'react-dom' import { mapValues, isString, isNil, forOwn, isEmpty } from 'lodash' import { createInputModel } from './InputModel.js' import { RadioInput } from './RadioInput.jsx' var info = { model1: null, value1: null, updateValue1: function(value) { info.value1 = v...
client/src/components/projects.js
radean0909/cv-api
import React, { Component } from 'react'; import '../css/cv.scss'; import Project from './project'; import FontAwesome from 'react-fontawesome'; import PureRenderMixin from 'react-addons-pure-render-mixin'; class Projects extends Component { render() { return ( <div className="projects"> <h3><FontAwesome na...
boilerplates/app/src/components/Permission/PermissionModal.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import { Form, Row, Col, Input, Modal, } from 'antd' const FormItem = Form.Item const PermissionModal = ({ item = {}, visible, onOk, onCancel, form: { getFieldDecorator, validateFields, getFieldsValue, }, }) => { function handl...
src/pages/chocoleite.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Chocoleite' /> )
js/jqwidgets/demos/react/app/treegrid/lockrow/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.lockRow(2); this.refs.myTreeGrid.lockRow(1); this.refs.myTreeGrid.lockRow(3);...
src/client.js
donabrams/react-redux-universal-hot-example
/* global __DEVTOOLS__ */ import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import createStore from './redux/create'; import ApiClient from './ApiClient'; import universalRouter from './universalRouter'; const history = new Browser...
09-animated-transitions/components/App.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; import { BrowserRouter, Route, Redirect } from 'react-router-dom'; import { CSSTransitionGroup } from 'react-transition-group'; import appStyle from './App.css'; import NavLink from './NavLink/NavLink'; import HSL from './HSL/HSL' class App extends React.Component { render() { ...
app/react-icons/fa/calendar-o.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaCalendarO extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m4.4 37.1h31.4v-22.8h-31.4v22.8z m8.5-27.1v-6.4q0-0.3-0.2-0.5t-0.5-0.2h-1....
src/web/components/MemberList.js
faalsh/Lama
import React from 'react'; import _ from 'lodash' import { StyleSheet, css } from 'aphrodite' import MemberListItem from './MemberListItem' class MemberList extends React.Component { constructor(props){ super(props) this.state = { newMemberName: '' } this.onEscape = this.onEscape.bind(this) }...
docs/src/pages/component-demos/lists/InsetList.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List'; import StarIcon from 'material-ui-icons/Star'; const styles = theme => ({ root: { width: '100%', maxWid...
src/components/typography/endnotes/endnote-super-link.js
mattmischuk/m1x
// @flow import React from 'react' import styled from 'styled-components' import { Super } from '../../typography' import { myTheme, themedTextColor, themedTextColorRgb } from '../../../styles' import { addRef, addHash } from './endnotes.service' type Props = { id: string, index: number, } const { borderRadii, ...
examples/Usage/App.js
Traviskn/react-router-native-stack
import React, { Component } from 'react'; import { Button, StyleSheet, Text, View } from 'react-native'; import { NativeRouter, Route } from 'react-router-native'; import Stack from 'react-router-native-stack'; function Home({ history }) { return ( <View style={styles.screen}> <Text>Home Page</Text> ...
react_ui/components/SubjectView/SubjFamPanel/SubjFamCardView.js
chop-dbhi/biorepo-portal
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import * as SubjFamActions from '../../../actions/subjFam'; import { withStyles } from '@material-ui/core/styles'; import Icon from '@material-ui/core/Icon'; import FloatingActionButton from '@material-ui/core/Button';...
fields/types/geopoint/GeoPointColumn.js
webteckie/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
pages/web/holiday-ui.js
jubearsun/juliasun.io
import React from 'react'; import { prefixLink } from 'gatsby-helpers'; // eslint-disable-line import Helmet from 'react-helmet'; export default class HolidayUI extends React.Component { componentDidMount() {} render() { return ( <div> <Helmet title="Julia Sun | Holiday UI" /...
src/DetailsSection/CardList/PageDropdown.js
conferenceradar/list
import React, { Component } from 'react'; const getRange = (number) => { return Array(number).fill().map((_, i) => i + 1); } export default class PageDropdown extends Component { setPage = (e) => { this.props.setPage(parseInt(e.target.value, 10)); } render() { const { currentPage, maxPages } =...
examples/reset-values/app.js
track0x1/formsy-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Form } from 'formsy-react-es6'; import MyInput from './../components/Input'; import MySelect from './../components/Select'; const user = { name: 'Sam', free: true, hair: 'brown' }; class App extends React.Component { submit(data) { ale...
component-starter-server/src/main/frontend/src/app/ComponentsContext.js
chmyga/component-runtime
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * 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...
client/modules/App/components/DevTools.js
Parinaaz/TempApplication17
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
frontend/src/components/DropHandler.js
cthit/playIT-python
import React from 'react' import mediaEndpoints from "../lib/media_endpoints" const DropHandler = React.createClass({ handleDrop(event) { event.preventDefault(); const items = Array.from(event.dataTransfer.items); const tracksPromise = items .map(droppedItems => new Promise(resolve => droppedItems....
docs/src/app/components/pages/components/Stepper/GranularControlStepper.js
tan-jerene/material-ui
import React from 'react'; import { Step, Stepper, StepButton, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; const getStyles = () => { return { root: { width: '100%', maxWidth: 700, margin: 'auto', }...
src/svg-icons/device/brightness-auto.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessAuto = (props) => ( <SvgIcon {...props}> <path d="M10.85 12.65h2.3L12 9l-1.15 3.65zM20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM14.3 ...
stories/components/teamCard/index.js
sethbergman/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import TeamCard from 'shared/components/teamCard/teamCard'; storiesOf('shared/components/teamCard', module) .add('Default', () => ( <TeamCard name="James Bond" role="Developer" /> ));
app/js/views/text-selector.js
mattiaslundberg/typer
import React from 'react' import TextUploader from '../components/text-uploader' import Selection from '../components/selection' export default class TextSelector extends React.Component { constructor() { super() this.state = { isUploading: false } this.onAddClick = this.onAddClick.bind(this)...
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js
lawrence-yu/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import areIntlLocalesSupported from 'intl-locales-supported'; let DateTimeFormat; /** * Use the native Intl.DateTimeFormat if available, or a polyfill if not. */ if (areIntlLocalesSupported(['fr', 'fa-IR'])) { DateTimeFormat = global.Intl...
src/javascripts/index.js
him0/nem-invoice
import React from 'react'; import ReactDOM from 'react-dom'; import 'react-mdl/extra/material'; import Base from './base'; Base();
cm19/ReactJS/your-first-react-app-exercises-master/exercise-10/Exercise.js
Brandon-J-Campbell/codemash
import React from 'react'; import Friends from './Friends'; export default function Exercise() { return <Friends friends={myFriends} /> } const myFriends = [ { id: 1, name: 'Potatoes', image: 'http://placekitten.com/150/150?image=1', }, { id: 2, name: 'Flower', image: 'http://placekit...
themes/genius/Genius 2.3.1 Bootstrap 4/React_Full_Project/src/views/Icons/GlyphiconsSocial/GlyphiconsSocial.js
davidchristie/kaenga-housing-calculator
import React, { Component } from 'react'; class GlyphiconsSocial extends Component { render() { return ( <div className="animated fadeIn"> <div className="card"> <div className="card-header"> <strong>GLYPHICONS</strong> Social </div> <div className="card-bl...
src/root.js
DavidSGK/calendar
import React from 'react'; import Header from './views/layouts/Header'; const Root = ({children}) => ( <div> <Header /> {children} </div> ); export default Root;
src/js/components/image__list/index.js
Arlefreak/web_client.afk
import PropTypes from 'prop-types'; import React from 'react'; import Image from '../image__row'; function ImageList({ images, onImageClick, className }) { return ( <ul className={className + ' grid images'}> {images.map(image => ( <Image key={image.id} {...image} onImageClick={onImageClick} /> ...
src/components/Switch/Switch.js
neontribe/gbptm
import React from 'react'; import PropTypes from 'prop-types'; import styled from '@emotion/styled'; import Box from '../Box'; const HEIGHT = 16; const WIDTH = 27; const OFFSET = 1; const LENGTH = HEIGHT - OFFSET * 2; const Inner = styled(Box)` transition: left 0.2s ease; `; const Switch = React.forwardRef( ( ...
react-advanced-boilerplate/app/components/widgets/Profile.js
rwachtler/react-twitstats
import React from 'react'; import {shouldPureComponentUpdate} from 'react-pure-render'; import {connect} from 'react-redux'; import getUserInfo from '../../actions/getUserInfo'; class Profile extends React.Component { shouldComponentUpdate = shouldPureComponentUpdate; constructor(props) { super(props);...
index.ios.js
itsmepetrov/football-react-native-test-client
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import Root from './src/containers/Root'; AppRegistry.registerComponent('FootballClient', () => Root);
src/components/Feedback/Feedback.js
benjyblack/react-app
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.scss'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedbac...
src/containers/App.js
CasperLaiTW/ICD-10-CM-Seeker
import React from 'react'; import { Header } from '../components/'; export default class App extends React.Component { constructor(props, context) { super(props, context); } render() { return ( <div> <Header /> {this.props.children} </div> ); } }
src/index.js
hersonls/never-going-back-again
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
React Native/Demos/MenuList/index.android.js
AngryLi/note-iOS
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class MenuList extends Component { render() { return ( <View style={styles.container}> <Text...
app/javascript/mastodon/features/ui/components/focal_point_modal.js
cobodo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { connect } from 'react-redux'; import classNames from 'classnames'; import { changeUploadCompose, uploadThumbnail, onCha...
app/javascript/mastodon/features/following/index.js
mimumemo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
packages/lore-hook-dialogs-bootstrap/src/blueprints/update/Overlay/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Overlay from './Overlay'; export default createReactClass({ render: function() { const { modelName } = this.props; const { schema, fieldMap, actionMap, data, validators, fields, acti...
src/components/Chat/Motd.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import compile from './Markup/compile'; const Motd = ({ children, compileOptions }) => ( <div className="ChatMessage ChatMessage--motd"> <div className="ChatMessage-content"> {compile(children, compileOptions)} </div> </div> ); Motd.prop...
src/mui/detail/Show.js
matteolc/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Card } from 'material-ui/Card'; import compose from 'recompose/compose'; import inflection from 'inflection'; import ViewTitle from '../layout/ViewTitle'; import Title from '../layout/Title'; im...
packages/flow-runtime-docs/src/components/docs/TypeRefinementsPage.js
codemix/flow-runtime
/* @flow */ import React, { Component } from 'react'; import {observer} from 'mobx-react'; import {Link} from 'react-router'; import Example from '../Example'; const simpleConstraintCode = ` // constraints are just simple functions. const mustBeUpperCase = (input) => { if (input.toUpperCase() !== input) { retu...
app_learn/src/component/newWorkImage.js
liuboshuo/react-native
/** * Created by liushuo on 17/4/27. */ import React, { Component } from 'react'; import { StyleSheet, View, Image, ActivityIndicator, } from 'react-native'; export default class SwiperDemo extends Component { constructor (props) { super(props) this.state = { loading...
src/App.js
sunpy1106/pm_react
import React, { Component } from 'react'; import './App.css'; import ShowNav from './containers/show_nav'; import { Layout, Menu, Breadcrumb, Icon } from 'antd'; import ShowSiderBar from './containers/show_sider'; import ShowBody from './containers/show_body'; const { SubMenu } = Menu; const { Header, Content, Footer,S...
src/containers/Asians/TabControls/ParticipantsConflicts/Instance/TeamConflicts/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import { MenuItem } from 'material-ui/Menu' import Select from 'material-ui/Select' import Chip from 'material-ui/Chip' import ListSubheader from 'material-ui/List/ListSubheader' import onConflict from './onConflict' import onUnconflict from './onUnconf...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
xiaotaijun/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
app/javascript/mastodon/features/notifications/index.js
8796n/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from '../ui/components/column'; import { expandNotifications, clearNotifications, scrollTopNotifications } from '../../actions/notifications'; i...
src/components/commonComponents/userSearch.js
toffee7/ReactStarterComponents
import React, { Component } from 'react'; export default class UserSearch extends Component { constructor(props){ super(props); this.handleInput = this.handleInput.bind(this); this.handleSearch = this.handleSearch.bind(this); this.state = { soeid: "", searchF...
src/parser/deathknight/shared/RuneBreakdown.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { TooltipElement } from 'common/Tooltip'; import ResourceBreakdown from 'parse...
APMStart/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
pjenifer2/ang
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));