path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
spec/javascripts/jsx/external_apps/components/TextInputSpec.js
djbender/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/common/Components/DynamicMenuAttrs/index.js
NERC-CEH/irecord-app
import React from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { IonItem, IonLabel, IonIcon, IonList } from '@ionic/react'; import { lock, people, create, personAdd, clipboard, calendar, pin, eyeOff, business, } from 'ionicons/icons'; import Toggle from 'C...
src/components/McList.js
txwkx/grime-map
import React from 'react'; import { Link } from 'react-router-dom'; import '../css/McList.css'; const McList = ({ activeDistrict, title, mclist }) => { const mcList = mclist.map(item => { return (<li key={item.id}> <a className='mc-link'>{item.name}<span>{item.district}</span></a> </li>); ...
client/src/routes.js
triforkse/mesos-ui
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/app'; import NodeView from './containers/node-view'; import AppIntentContainer from './containers/app-intent'; const Error404 = React.createClass({ render() { return <div>404</div>; }, }); export default...
app/src/tray-popup/components/projects/content-placeholder.js
sergeybekrin/npmkit
import React from 'react'; import styled, { keyframes } from 'styled-components'; const pulseBackgroundAnimation = keyframes` 0% { opacity: 0.2; } 50% { opacity: 1; } 100% { opacity: 0.2; } `; const Container = styled.div` animation: ${pulseBackgroundAnimation} 2s linear infinite; padding: 0.5rem 0.75rem; ...
demo/modal/index.js
hhhyaaon/chequer
import React from 'react'; import ReactDOM from 'react-dom'; import Container from '../../tpls/index'; import Modal from '../../components/modal'; import Button from '../../components/button'; import './index.scss'; // 普通modal export class D1_Modal extends React.Component { constructor() { super(); this.stat...
app/react-icons/fa/share-alt.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaShareAlt extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m30.1 22.9q3 0 5.1 2t2.1 5.1-2.1 5.1-5.1 2-5-2-2.1-5.1q0-0.3 0-0.8l-8-4q-2 ...
src/svg-icons/social/sentiment-very-dissatisfied.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVeryDissatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8...
src/svg-icons/image/grid-off.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageGridOff = (props) => ( <SvgIcon {...props}> <path d="M8 4v1.45l2 2V4h4v4h-3.45l2 2H14v1.45l2 2V10h4v4h-3.45l2 2H20v1.45l2 2V4c0-1.1-.9-2-2-2H4.55l2 2H8zm8 0h4v4h-4V4zM1.27 1.27L0 2.55l2 2V20c0 1.1.9 2 2 2h...
src/svg-icons/action/room.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoom = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z...
src/components/AnimatedBox.js
gaearon/react-blessed-hot-motion
import React, { Component } from 'react'; import { Motion, spring } from 'react-motion'; import { rgbToHex, interpolateColor } from '../utils/colors'; const colors = { base00: '#2d2d2d', base01: '#393939', base02: '#515151', base03: '#747369', base04: '#a09f93', base05: '#d3d0c8', base06: '#e8e6df', ba...
client/components/LandingPage/LandingPage.js
Waiyaki/provisioning-scheduler
import React from 'react'; import { browserHistory } from 'react-router'; import { Card, CardTitle, CardText } from 'material-ui/Card'; import Divider from 'material-ui/Divider'; import RaisedButton from 'material-ui/RaisedButton'; import styles from './landingPageInlineStyles'; const LandingPage = () => ( <div cl...
src/components/Main/Main.js
softwareniagara/softwareniagara.com
import React from 'react' import StyledMain from './Main.css' export default ({ children }) => ( <StyledMain role="main"> { children } </StyledMain> )
src/svg-icons/av/av-timer.js
pomerantsev/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-...
src/index.js
gui-santos/exp-redux
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(...
src/react/index.js
luxui/lux-core
/** * @module react */ import React from 'react'; // `React` must be in scope when using JSX import ReactDOM from 'react-dom'; import { addType, getType } from './form/field/types'; import apiRequest from '../lib/apiRequest'; import { isFunction, isString } from '../lib/is'; import luxPath from '../lib/luxPath'; im...
src/imports/startup/client/routes.js
hwillson/meteor-recommendation-builder
import React from 'react'; import { Redirect, Router, Route, browserHistory } from 'react-router'; import { Session } from '../../utility/meteor/packages'; import BuilderContainer from '../../ui/builder/containers/BuilderContainer'; import CartContainer from '../../ui/builder/containers/CartContainer'; import Welcome...
app/coffeescripts/react_files/utils/moveStuff.js
djbender/canvas-lms
/* * Copyright (C) 2014 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
versions/2-react/1-sum/client/src/Counter.js
hamczu/techsummit-web2016
import React from 'react' export default ({ onClick, count }) => ( <div> <button onClick={onClick}>click me!</button> <span>{count}</span> </div> )
src/ColorPicker/color-picker-converter.js
skyiea/wix-style-react
import React from 'react'; import {object, bool, func} from 'prop-types'; import WixComponent from '../BaseComponents/WixComponent'; import Tabs from '../Tabs'; import ColorPickerConverterHex from './color-picker-converter-hex'; import ColorPickerConverterRgb from './color-picker-converter-rgb'; import ColorPickerConv...
src/index.js
zerkalica/immutable-di-starter-kit
import 'app/All.styl' import __debug from 'debug' import React from 'react' import Container from 'immutable-di' import NativeCursor from 'immutable-di/cursors/native' import InitCounter from 'app/actions/counter/InitCounter' import App from 'app/components/App' import state from 'app/state.json' if (global.BROWSER &...
client/views/ProgressBar/ProgressBar.js
alexpalombaro/react-redux-starter-kit
import {style} from './ProgressBar.scss'; import React from 'react'; // // Component // ----------------------------------------------------------------------------- class ProgressBarView extends React.Component { constructor(props) { super(props); } static defaultProps = { progress: 0, showText: f...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ButtonGroup.js
JamieMason/npm-cache-benchmark
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 ...
packages/web/examples/ReactiveComponent/src/index.js
appbaseio/reactivesearch
/* eslint react/prop-types: 0 */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, ReactiveComponent, ReactiveList, SelectedFilters, } from '@appbaseio/reactivesearch'; import './index.css'; class Main extends Component { render() { return ( <ReactiveBase ...
src/components/Media.js
bow-paris/bow-paris.github.io
import React from 'react' import styled from 'styled-components' import Box from './Box' import { mobileOnlyStyles } from '../helpers' const Img = styled.img` width: ${props => (props.resizeByHeight ? 'auto' : '200px')}; height: ${props => (props.resizeByHeight ? '72px' : 'auto')}; ${props => props.resizeB...
packages/icons/src/md/notification/EventAvailable.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdEventAvailable(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M33.06 24.12L30.94 22l-9.76 9.76-4.24-4.24-2.12 2.12L21.18 36l11.88-11.88zM38 8c2.21 0 4 1.79 4 4v28c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4l....
src/svg-icons/image/image-aspect-ratio.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageImageAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M16 10h-2v2h2v-2zm0 4h-2v2h2v-2zm-8-4H6v2h2v-2zm4 0h-2v2h2v-2zm8-6H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H...
frontend/src/components/LogsTable/index.js
XiaocongDong/mongodb-backup-manager
import React, { Component } from 'react'; import Pagination from 'components/Pagination'; import colorPicker from 'utility/colorPicker'; import object from 'utility/object'; import time from 'utility/time'; export default class LogsTable extends Component { headers = [ { key: 'time', ...
app/js/page/start.js
pengux/electron-react-starter
import React from 'react'; import DocumentTitle from 'react-document-title'; import TodoList from '../todo/list'; import TodoForm from '../todo/form'; export default React.createClass({ render() { return ( <DocumentTitle title="Start page"> <section> <TodoForm /> <TodoList /> </section> </D...
js/app/accounts/store.js
monetario/web
'use strict'; import React from 'react'; import Reflux from 'reflux'; import API from '../../api'; import Actions from './actions'; import DEFAULT_PAGE_SIZE from '../../constants'; var Store = Reflux.createStore({ listenables: [ Actions ], init() { this.accounts = []; this.meta = { "first...
src/svg-icons/device/developer-mode.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDeveloperMode = (props) => ( <SvgIcon {...props}> <path d="M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 1...
packages/example-phone/src/scripts/components/call/call.js
udaysrinath/spark-js-sdk
import React from 'react'; import CallControls from './call-controls'; import {Col, Grid, Row} from 'react-bootstrap'; import SelfView from './call-self-view'; import RemoteView from './call-remote-view'; export default function Call({remoteName, ...props}) { return ( <div className="active-call"> <Grid> ...
clients/packages/admin-client/src/mobilizations/widgets/components/finish-message-custom.js
nossas/bonde-client
import PropTypes from 'prop-types'; import React from 'react'; // Global module dependencies import EditorDraft from '../../../components/editor-draft-js'; import { EditorSlate } from '../../../mobilizations/widgets/__plugins__/content/components'; const FinishMessageCustom = ({ readOnly, widget }) => { const { ...
examples/with-nextjs/pages/index.js
dvajs/dva
import Link from 'next/link'; import React from 'react'; import WithDva from '../utils/store'; class Page extends React.Component { static async getInitialProps(props) { // first time run in server side // other times run in client side ( client side init with default props // console.log('get init prop...
packages/reactor-kitchensink/src/examples/Trees/CellEditing/CellEditing.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Tree, TreeColumn } from '@extjs/ext-react-treegrid'; import store from './Store'; export default class CellEditingTreeExample extends Component { render(){ return ( <Tree title="Cell Editing Tree" store={store}...
src/parts/author.js
economist-components/component-blog-post
import React from 'react'; function Author({ author }) { return ( <div className="blog-post__author" itemProp="author" > {author} </div> ); } Author.propTypes = { author: React.PropTypes.string.isRequired, }; export default Author;
React/15 Nesting Routes.js
iitjee/SteppinsWebDev
/* */ // So in the root of the folder, you should see an index js file and this is going to be responsible for rendering all of // our routes. Now, the routes come from the routes js file and right now we're just rendering Home and Whoops404 (in root/index.js) import React from 'react' import { render } f...
src/svg-icons/device/screen-rotation.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenRotation = (props) => ( <SvgIcon {...props}> <path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c...
server/sonar-web/src/main/js/apps/project-permissions/main.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/routes/login/index.js
HildoBijl/DondersHackathonTR
/** * 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 from 'react'; import Layout from '../../compo...
demo/components/ActionItem.js
jasonslyvia/react-anything-sortable
import React from 'react'; import createReactClass from 'create-react-class'; import { SortableItemMixin } from '../../src/index.js'; export default createReactClass({ //eslint-disable-line mixins: [SortableItemMixin], getDefaultProps() { return { className: 'action-item' }; }, getInitialState(...
app/javascript/mastodon/features/generic_not_found/index.js
unarist/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
src/svg-icons/communication/stay-current-landscape.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
fixtures/output/webpack-message-formatting/src/AppLintError.js
IamJoseph/create-react-app
import React, { Component } from 'react'; function foo() { const a = b; } class App extends Component { render() { return <div />; } } export default App;
src/components/element/map/mapMaker.react.js
phuoctuong285/smartMeter_v1
import React from 'react' import PropTypes from 'prop-types' import {Page,List,ListHeader,Toolbar,ListItem,BackButton,Row,Col,Button,Input,AlertDialog} from 'react-onsenui' import {notification} from 'onsenui' import {Glyphicon,Modal} from 'react-bootstrap' import { withGoogleMap, GoogleMap, Marker, } from 'react...
html.js
futuregerald/NetlifyApp
require.context("./", true, /^\.\/.*\.txt/); import React from 'react' import Helmet from "react-helmet" import { prefixLink } from 'gatsby-helpers' import { TypographyStyle, GoogleFont } from 'react-typography' import typography from './utils/typography' const BUILD_TIME = new Date().getTime() module.exports = Reac...
Magistrate/client/components/plate/plateLarge.js
Pondidum/Magistrate
import React from 'react' import PlateHeader from './PlateHeader' import PlateChildren from './PlateChildren' const PlateLarge = ({ title, onClick, onCross, tileSize, additions, children }) => ( <li className="col-md-3 tile"> <div className="panel panel-default"> <PlateHeader title={title} onClick={onClick...
benchmarks/dom-comparison/src/implementations/react-native-web/Tweet/TweetTextPart.js
risetechnologies/fela
/* eslint-disable react/prop-types */ import { Image, StyleSheet, Text } from 'react-native'; import PropTypes from 'prop-types'; import React from 'react'; import theme from './theme'; const createTextEntity = ({ part }) => <Text>{`${part.prefix}${part.text}`}</Text>; const createTwemojiEntity = ({ part }) => ( <I...
test/development/basic/hmr/pages/hmr/counter.js
azukaru/next.js
import React from 'react' export default class Counter extends React.Component { state = { count: 0 } incr() { const { count } = this.state this.setState({ count: count + 1 }) } render() { return ( <div> <p>COUNT: {this.state.count}</p> <button onClick={() => this.incr()}>In...
src/components/HomePage/index.js
KidsFirstProject/KidsFirstProject.github.io
import React from 'react'; import { Container } from 'react-bootstrap'; import Header from './Header'; import CardGroup from './CardGroup'; import KFPVideo from './KFPVideo'; import SocialMedia from './SocialMedia'; const HomePage = () => ( <div> <Header /> <Container> <CardGroup /> <KFPVideo /> ...
src/components/Page/Page.js
BankaiMikeH/HackWSU2017_AirRands
/** * 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 React from 'react'; import PropTypes from 'prop-...
src/views/components/take-ownership-modal/take-ownership-modal.js
Metaburn/doocrate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './take-ownership-modal.css'; import { I18n } from 'react-i18next'; import Modal from 'react-responsive-modal'; import Icon from '../../atoms/icon/icon'; export class TakeOwnershipModal extends Component { constructor() { supe...
src/Tab.js
jareth/react-materialize
import React from 'react'; // This is just a holder for the props and children for tab, thus // there is no logic here. class Tab extends React.Component { render() { return null; } } Tab.propTypes = { /** * The title shown in the tabs list */ title: React.PropTypes.node.isRequired, /** *...
spec/javascripts/jsx/collaborations/CollaborationsAppSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
js/jqwidgets/demos/react/app/chart/donutlabels/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let source = { datatype: 'csv', datafields: [ { name: 'Browser' }, ...
React Native/Demos/nearby/Nearby/views/food.js
AngryLi/note-iOS
/** * Created by Liyazhou on 16/9/6. */ import React from 'react'; import { View, StyleSheet, } from 'react-native'; import List from './list'; export default class Food extends React.Component { render() { return ( <List type="肯德基" nav={this.props.navigator} /> ); } } ...
examples/todos-with-undo/components/App.js
ptkach/redux
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' import UndoRedo from '../containers/UndoRedo' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> <UndoRedo /> </div> ) e...
app/javascript/mastodon/features/followers/index.js
TheInventrix/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...
src/components/comment_list.js
alexkarevoll/ReduxSimpleTester
import React from 'react'; import { connect } from 'react-redux'; const CommentList = (props) => { const list = props.comments.map(comment => <li key={comment}>{comment}</li>) return ( <ul className="comment-list">{list}</ul> ); }; function mapStateToProps(state) { return { comments: state.com...
src/main/js/my-app/src/components/Pagination.js
myapos/ClientManagerSpringBoot
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import paginator from 'paginator'; import { connect } from 'react-redux'; import Page from './Page'; import * as actions from '../actions/'; class Pagination extends Component { static propTypes = { totalItemsCount: PropTypes.number.is...
src/PhotoLayoutEditor/Container/Cropper/index.js
RedgooseDev/react-photo-layout-editor
import React from 'react'; import { connect } from 'react-redux'; import $ from 'jquery/dist/jquery.slim'; import classNames from 'classnames'; import Block from './Block'; import * as lib from '../../lib'; class Cropper extends React.Component { constructor(props) { super(props); const { cropper } = props.tre...
plugins/Wallet/js/components/sendbutton.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' const SendButton = ({ currencytype, onClick }) => ( <div onClick={onClick} className='wallet-button send-button'> <i className='fa fa-paper-plane fa-2x' /> <span>Send {currencytype}</span> </div> ) SendButton.propTypes = { currencytype: PropTy...
classic/src/scenes/mailboxes/src/Scenes/ProfileRestoreScene/ProfileRestoreRestartingScene/ProfileRestoreRestartingSceneContent.js
wavebox/waveboxapp
import React from 'react' import { DialogContent } from '@material-ui/core' import { withStyles } from '@material-ui/core/styles' import lightBlue from '@material-ui/core/colors/lightBlue' import FARSyncAltIcon from 'wbfa/FARSyncAlt' const styles = { dialogContent: { width: 240, textAlign: 'center' }, te...
examples/src/components/CustomOption.js
reynolek/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
modules/gob-web/components/loading-comp.js
hawkrives/gobbldygook
// @flow import React from 'react' import {Card} from './card' import {RaisedButton} from './button' import styled from 'styled-components' let CenteredCard = styled(Card)` margin: 3rem auto 1rem; max-width: 30em; padding: 2rem; ` export function LoadingComponent(props: { error: ?Error, retry: () => any, timed...
packages/lore-hook-forms-material-ui/src/blueprints/destroy/Wizard/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Wizard from './Wizard'; export default createReactClass({ render: function() { const { modelName } = this.props; const { model, schema, fieldMap, actionMap, steps, data, validators, ...
stories/Image/AddImageEditor/index.js
dagopert/draft-js-plugins
import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from 'draft-js-plugins-editor'; import createImagePlugin from 'draft-js-image-plugin'; import ImageAdd from './ImageAdd'; import editorStyles from './editorStyles.css'; const imagePlugin = createImagePlugin(); const plugins = [im...
addons/a11y/src/components/Panel.js
rhalff/storybook
import React, { Component } from 'react'; import addons from '@storybook/addons'; import Tabs from './Tabs'; import Report from './Report'; const styles = { passes: { color: '#0D6731', }, violations: { color: '#AC2300', }, }; class Panel extends Component { constructor(props, ...args) { super(p...
src/filters/Date.js
AllenFang/react-bootstrap-table
/* eslint quotes: 0 */ /* eslint max-len: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Const from '../Const'; const legalComparators = [ '=', '>', '>=', '<', '<=', '!=' ]; function dateParser(d) { return `${d.getFullYear()}-${("0" + (d.getMonth() + 1)).slice(-2)}-${("0" ...
src/routers/AuthorizedRoute.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * 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 (at your o...
src/app.js
ReactJS-BA/meetup-2016-04-05
import React from 'react'; import {render} from 'react-dom'; import {Link, Router, Route, browserHistory} from 'react-router'; import ListaRepos from './components/lista-repos'; import ListaMensajesCommit from './components/lista-mensajes-commit'; const Logo = () => <div className="logo col-sm-04"><Link to="/"><img sr...
src/app.js
Syncano/syncano-dashboard
import 'normalize.css'; import './assets/fonts/avenir/avenir.css'; import './assets/fonts/icons/Syncano-Icons.css'; import './raven'; import './stripe'; import './segment'; import './app.sass'; import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root fr...
screen/templates/screen.route.js
quasipedia/generator-neopolitan
/*eslint-disable no-unused-vars*/ import React from 'react'; /*eslint-enable no-unused-vars*/ import { Route, DefaultRoute } from 'react-router'; import <%= _.classify(newRouteName) %> from './components/<%= _.slugify(newRouteName.toLowerCase()) %>/<%= _.slugify(newRouteName.toLowerCase()) %>'; export default ( <Rou...
src/index.js
cape-io/boiler
import React from 'react' import { render } from 'react-dom' // Add the latest es2016+ stuff that we love. import 'babel-polyfill' // Simple bindings to keep react-router and redux in sync. import { syncReduxAndRouter } from 'redux-simple-router' // Easily manage session history. import { createHistory } from 'history'...
src/routes/chart/areaChart/index.js
ykx456654/hr_admin
import React from 'react' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import * as d3 from 'd3-shape' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, amt: 2400, }...
src/components/Dashboard/Menu.js
bibleexchange/be-front-new
import React from 'react'; import { Link } from 'react-router'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; class Menu extends React.Component { componentWillMount(){ this.state = { filter: "" } } render() { let options = [ "logout", "account",...
src/svg-icons/maps/person-pin.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
src/index.js
ScholtenSeb/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
tests/fixtures/apps/fluxible-router/components/Home.js
mridgway/react-server
/** * Copyright 2014, Yahoo! Inc. * Copyrights licensed under the New BSD License. See the accompanying LICENSE file for terms. */ import React from 'react'; class Home extends React.Component { render() { return <p>Welcome to the site!</p>; } } export default Home;
imports/api/festivalOrganizers/festivalOrganizers.js
howlround/worldtheatremap
/* eslint-disable max-len */ import { Mongo } from 'meteor/mongo'; import React from 'react'; import { FormattedMessage } from 'react-intl'; import t from 'tcomb-form'; import RelatedProfileTextboxContainer from '../../ui/containers/RelatedProfileTextboxContainer.jsx'; class FestivalOrganizersCollection extends Mongo....
layout/explore/explore-detail/dataset-layers/dataset-layer-card/component.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // Utils import { logEvent } from 'utils/analytics'; function DatasetLayerCard(props) { const { dataset, layer: { id, name, description }, layerGroup, layerIsActive, setMapLayerGroupActive, to...
ui/js/dfv/src/admin/edit-pod/postbox.js
pods-framework/pods
import React from 'react'; import { withSelect, withDispatch } from '@wordpress/data'; import { useEffect } from '@wordpress/element'; import { __ } from '@wordpress/i18n'; import { compose } from '@wordpress/compose'; import { Dashicon, Spinner } from '@wordpress/components'; import { SAVE_STATUSES, DELETE_STATUSE...
docs/resume/_next/static/webpack/static/development/pages/index.js.7d80705a6e791233332c.hot-update.js
davidpham5/resume
webpackHotUpdate("static/development/pages/index.js",{ /***/ "./pages/index.js": /*!************************!*\ !*** ./pages/index.js ***! \************************/ /*! exports provided: default */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; __webpack_require__.r(__webpack_e...
threeforce/node_modules/react-bootstrap/es/FormGroup.js
wolfiex/VisACC
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 ...
src/svg-icons/action/power-settings-new.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPowerSettingsNew = (props) => ( <SvgIcon {...props}> <path d="M13 3h-2v10h2V3zm4.83 2.17l-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 ...
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/After/app/containers/App/index.js
phiratio/Pluralsight-materials
/** * * 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/parser/deathknight/unholy/modules/features/VirulentPlagueEfficiency.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import Enemies from 'parser/shared/modules/Enemies'; import Analyzer from 'parser/core/Analyzer'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/Statistic...
app/components/grid.js
elysiumstatus/ElysiumStatusApp
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, Button, ListView, Image, Platform } from 'react-native'; import Dimensions from 'Dimensions' import { Actions as RouterActions } from 'react-native-router-flux' import Icon from 'react-native-vector-icons/MaterialIco...
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/Accounts/Sections/ServiceSettingsSection/Generic/GenericServiceSettings.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import ServiceAppearanceSection from '../Common/ServiceAppearanceSection' import ServiceBadgeSection from '../Common/ServiceBadgeSection' import ServiceBehaviourSection from '../Common/ServiceBehaviour...
src/svg-icons/communication/contacts.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationContacts = (props) => ( <SvgIcon {...props}> <path d="M20 0H4v2h16V0zM4 24h16v-2H4v2zM20 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-2zm-8 2.75c1.24 0 2.25 1.01 2.25 2.25s...
xcessiv/ui/src/index.js
reiinakano/xcessiv
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; import 'bootstrap/dist/css/bootstrap.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/app/index.js
zalmoxisus/browser-redux
import React from 'react'; import { render } from 'react-dom'; import Root from 'app/containers/Root'; import configureStore from '../app/store/configureStore'; configureStore(store => { render( <Root store={store} />, document.getElementById('root') ); });
5-router/src/TodoList.js
mariusz-malinowski/tutorial-react
import React, { Component } from 'react'; import TodoItem from './TodoItem'; import AddTodo from './AddTodo'; import {connect} from 'react-redux'; import { Link } from 'react-router-dom'; class TodoList extends Component { render() { return ( <div> <Link to="/todoDetails">Create Todo</Link> ...
src/containers/home/HomeComponent.js
kryptnostic/gallery
import React from 'react'; import Immutable from 'immutable'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { connect } from 'react-redux'; import { Pager } from 'react-bootstrap'; import AsyncContent from '../../components/asynccontent/AsyncContent'; import EntitySetLi...
app/components/organization/Pipeline/Metrics/metric.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import classNames from 'classnames'; class Metric extends React.PureComponent { static propTypes = { pipelineMetric: PropTypes.shape({ label: PropTypes.string.isRequired, value: PropTypes.string, ...
pages/contact.js
willopez/project-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import Layout from '../components/layout'; export default class Contact extends Component { static async getInitialProps({ req }) { if (req) { Helmet.renderStatic(); } return { title: '...
Badmeat/src/components/common/SizedTile.js
jparr721/Badmeat
import React, { Component } from 'react'; import { StyleSheet, View } from 'react-native'; const styles = StyleSheet.create({ container: { borderRadius: 2, borderColor: '#000', backgroundColor: '#212121', borderBottomWidth: 0, margin: 10, height: 150, width: 100, shadowColor: '#000', ...
tools/render.js
al6mina/jsCom
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import glob from 'glob'; import { join, dirname } from 'path'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from '../components/Html'...
reflux-app/components/Editor.js
Orientsoft/borgnix-web-ide
import Ace from 'react-ace' import React from 'react' import 'brace/mode/c_cpp' import 'brace/theme/tomorrow' import EditorStore from '../stores/EditorStore' import EditorActions from '../actions/EditorActions' import ProjectActions from '../actions/ProjectActions' class Editor extends React.Component { constructor(...
src/navigationStore.js
mcabs3/react-native-router-flux
import React from 'react'; import { observable, action } from 'mobx'; import * as ActionConst from './ActionConst'; import { OnEnter, OnExit, assert } from './Util'; import { View, Image, Animated, Easing, Platform } from 'react-native'; import { TabNavigator, DrawerNavigator, StackNavigator, NavigationActions, TabBarT...