path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
node_modules/react-router/es/StaticRouter.js
Sweetgrassbuffalo/ReactionSweeGrass-v2
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
app/main.js
rolandaugusto/react-atm-simulator
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App.js'; ReactDOM.render(<App />, document.getElementById('root'));
examples/pagination/routes.js
lore/lore
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; /** * Wrapping the Master component with this decorator provides an easy way * to redirect the user to a login experience if we don't know who they are. */ import UserIsAuthenticated from './src/decorators/UserIsAuthenticated'; ...
src/js/Containers/Gallery.js
7sleepwalker/addicted-to-mnt
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { getPostGalleryByID } from '../Actions/galleryActions'; import ReturnHome from '../Components/returnHome.js'; import GalleryImage from '../Components/GalleryImage'; class Gallery extends Component { componentWillMount() { t...
src/components/itemsManager/ItemTypeRow.js
MrRandol/littleLight
/****************** REACT IMPORTS ******************/ import React from 'react'; import { View, Text, Image } from 'react-native'; /***************** CUSTOM IMPORTS ******************/ import T from 'i18n-react'; var styles = require('../../styles/itemsManager/ItemTypeRow'); import * as BUNGIE from '../../utils/...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
daodaoliang/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
stories/normal-login.js
wmzy/formsy-antd
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Input, FormItem, Form, Checkbox } from 'formsy-antd'; import { Icon, Button } from 'antd'; function NormalLoginForm() { const handleSubmit = data => { action('submit')(data); };...
src/svg-icons/places/airport-shuttle.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAirportShuttle = (props) => ( <SvgIcon {...props}> <path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1....
hw6/frontend/src/components/footer.js
yusong-shen/comp531-web-development
/** * Created by yusong on 10/23/16. */ import React from 'react' const Footer = () => ( <div className="footer"> <p> See the website's source code at <a href="https://github.com/yusong-shen/comp531-web-development/tree/master/hw5">Github</a> </p> <p> Copyright : y...
ui/src/main/js/components/TaskList.js
apache/aurora
import React from 'react'; import Icon from 'components/Icon'; import Pagination from 'components/Pagination'; import TaskListItem from 'components/TaskListItem'; import { isNully, pluralize } from 'utils/Common'; import { getClassForScheduleStatus, getLastEventTime } from 'utils/Task'; import { SCHEDULE_STATUS } fro...
packages/react-vis/src/radial-chart/index.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
packages/mineral-ui-icons/src/IconSettingsBackupRestore.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 IconSettingsBackupRestore(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon ...
src/Creatable.js
dmatteo/react-select
import React from 'react'; import Select from './Select'; import defaultFilterOptions from './utils/defaultFilterOptions'; import defaultMenuRenderer from './utils/defaultMenuRenderer'; const Creatable = React.createClass({ displayName: 'CreatableSelect', propTypes: { // Child function responsible for creating th...
src/components/battlefield.js
SiAdcock/bg-prototype
import React from 'react'; import Card from './card'; class Battlefield extends React.Component { render() { const summoned = this.props.summoned.map(card => { const key = `summoned-card-${card.id}`; return ( <Card key={key} card={card} /> ); }); ret...
components/Auth/index.js
praida/admin
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import api from '../../api/' import Form from '../../../praida/components/Form' import FormField from '../../../praida/components/FormField' import Message from 'praida-message' import './styles.scss' class Auth exten...
fields/types/select/SelectField.js
danielmahon/keystone
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValu...
app/containers/SignIn/index.js
g00dman5/freemouthmedia
/* * * SignIn * */ import React from 'react'; import Helmet from 'react-helmet'; export default class SignIn extends React.PureComponent { constructor(props){ super(props); this.state= { email:"", password:"", } } handleEmail = (event)=> { this.setState({ email:event.targ...
pages/_error.js
Meadowcottage/meadowcottagexyz
import React from 'react' import { Zoom } from 'animate-components' import stylesheet from '../styles/_error.scss' export default class Error extends React.Component { static getInitialProps ({ res, jsonPageRes }) { const statusCode = res ? res.statusCode : (jsonPageRes ? jsonPageRes.status : null) return {...
src/Interpolate.js
mmartche/boilerplate-shop
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
client/src/components/privateRoute/index.js
csleary/nemp3
import { Redirect, Route } from 'react-router-dom'; import { shallowEqual, useSelector } from 'react-redux'; import PropTypes from 'prop-types'; import React from 'react'; const PrivateRoute = ({ component: PrivateComponent, ...rest }) => { const { user } = useSelector(state => state, shallowEqual); return ( ...
cryptography/lab2/client/components/LoginForm.js
Drapegnik/bsu
import React from 'react'; import { Text, View, TextInput, StyleSheet, Button } from 'react-native'; const styles = StyleSheet.create({ labelWrapper: { marginTop: 10, marginBottom: 10, }, label: { fontSize: 17, }, input: { width: 200, margin: 2.5, padding: 7.5, borderWidth: 1, ...
examples/admin/src/components/Link/index.js
aranja/tux
import React from 'react' import classNames from 'classnames' import HistoryLink from '../HistoryLink' import './styles.css' const Link = ({ className, ...props }) => ( <HistoryLink className={classNames('Link', className)} {...props} /> ) export default Link
src/routes/Invoicer/Editor/InvoiceItemsEditor/index.js
joshhunt/money
import React, { Component } from 'react'; import TextField from '../../TextField'; import styles from './styles.styl'; export default class InvoiceItemsEditor extends Component { _fieldChanged(index, key, event) { this.props.onFieldChange(index, key, event.target.value); } render() { return ( <d...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
r3lik/r3lik.github.io
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
app/core/atoms/Paragraph/index.js
codejunkienick/starter-lapis
import React from 'react'; const Paragraph = ({ children }: { children: React$Element<any> }) => <p> {children} </p>; export default Paragraph;
node_modules/eslint-config-airbnb/test/test-react-order.js
CamAndPineapple/NES6-Platformer
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import baseConfig from '../base'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: {indent: 0}, }); function...
www/ui/getting-started/saucelabs.js
ForbesLindesay/cabbie
import React from 'react'; import Heading from '../styling/heading'; import CodeBlock from '../documentation/code-block'; import Example from '../examples/saucelabs'; const dotenvExample = 'SAUCE_USERNAME={your sauce username}\nSAUCE_ACCESS_KEY={your sauce access key}'; function Documentation() { return ( <div> ...
source/client/index.js
gacosta89/knightsTour
// redux provider import { Provider } from 'react-redux'; // store import createStore from 'client/store'; // react import React from 'react'; import { render } from 'react-dom'; // app component import createApp from 'shared/components/app'; // actions import { impSolutionFactory } from 'shared/actions/import'; // ser...
src/pages/index.js
kettui/tla-site
import React, { Component } from 'react'; import Link from 'gatsby-link'; import YouTube from 'react-youtube'; import queryString from 'query-string'; import axios from 'axios'; import ApplicationForm from '../components/ApplicationForm'; import BackgroundVideo from '../components/BackgroundVideo'; import TLALogo from...
packages/core/admin/admin/src/pages/SettingsPage/pages/Users/ListPage/utils/tableHeaders.js
wistityhq/strapi
import React from 'react'; import { Flex } from '@strapi/design-system/Flex'; import { Typography } from '@strapi/design-system/Typography'; import { Status } from '@strapi/helper-plugin'; const tableHeaders = [ { name: 'firstname', key: 'firstname', metadatas: { label: 'Firstname', sortable: true }, }...
examples/src/app.js
mobile5dev/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import './example.less'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import Cus...
openex-front/src/components/AppThemeProvider.js
Luatix/OpenEx
import React from 'react'; import * as PropTypes from 'prop-types'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import themeDark from './ThemeDark'; import themeLight from './ThemeLight'; import { useHelper } from '../store'; const AppThemeProvider = (props) => { const { children } = props; ...
src/svg-icons/navigation/arrow-downward.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/components/TutorDropdown.js
fateseal/react-mtg-playtester
import React, { Component } from 'react'; import { connect } from 'react-redux'; import uniqBy from 'lodash/uniqBy'; import sortBy from 'lodash/sortBy'; import { LIBRARY, HAND } from '../constants/zoneTypes'; import { getCardsByZone } from '../reducers/playtester'; import { moveCard, shuffle } from '../actions/playte...
src/js/components/game-of-life.js
morganney/gol
'use strict' import React from 'react' import Legend from './legend' import Status from './status' import CellGrid from './cell-grid' import Utils from '../utils' const GENERATION_TIMESPAN = 2000 const NOT_RUNNING = 'game not running' const RUNNING = 'game is running' const ENDED = 'game has ended' const ALIVE = 1 co...
packages/wix-style-react/src/BadgeSelectItem/docs/index.story.js
wix/wix-style-react
import React from 'react'; import BadgeSelectItem from '../BadgeSelectItem'; import Box from '../../Box'; import { header, tabs, tab, description, importExample, title, columns, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../...
src/svg-icons/notification/phone-forwarded.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhoneForwarded = (props) => ( <SvgIcon {...props}> <path d="M18 11l5-5-5-5v3h-4v4h4v3zm2 4.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...
packages/design-system/src/templates/docs/Templates.stories.js
Talend/ui
import React from 'react'; import { Area } from '~docs'; import Template from '..'; import { Stepper } from '../../index'; export default { title: 'Templates/Templates', }; const args = { header: <Area>Header</Area>, nav: <Area style={{ width: '20rem' }}>Nav</Area>, title: <Area>Title</Area>, footer: <Area>Foot...
client/components/settings/bank-accesses/confirm-delete-account.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { translate as $t, displayLabel } from '../../../helpers'; import { get, actions } from '../../../store'; import { registerModal } from '../../ui/modal'; import ModalContent from '../../ui/modal/content'; import CancelAndDelete from '../../ui/mo...
src/svg-icons/av/featured-play-list.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFeaturedPlayList = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 8H3V9h9v2zm0-4H3V5h9v2z"/> </SvgIcon> ); AvFeaturedPlayList = pu...
src/svg-icons/alert/error-outline.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertErrorOutline = (props) => ( <SvgIcon {...props}> <path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 ...
src/Spin/CubeGrid.js
Lobos/react-ui
import React from 'react' import classnames from 'classnames' import propTypes from './proptypes' import _styles from '../styles/spin/_cube-grid.scss' export default function CubeGrid (props) { const { size, color, margin } = props const className = classnames( props.className, _styles['cube-grid'] ) ...
src/index.js
g0v/react.vtaiwan.tw
"use strict" import request from './utils/request' import React from 'react' import App from './App/App.jsx' import Router, {Route} from 'react-router' import ProposalBoard from './ProposalBoard/ProposalBoard.jsx' import Proposal from './Proposal/Proposal.jsx' import Category from './Category/Category.jsx' import HTML...
src/frontend/src/components/DonutChart.js
open-austin/influence-texas
import React from 'react' import styled from 'styled-components' import { PieChart, Pie, Tooltip, Cell } from 'recharts' import { numberWithCommas } from 'utils' import { useTheme } from '@material-ui/core' const Wrapper = styled.div` .large { font-size: 50px; font-weight: bold; } .recharts-default-legen...
src/index.js
mazun/ExceedsTimer
import React from 'react'; import { render } from 'react-dom'; const CurrentAction = props => { const { action } = props; const text = action ? action.minute + "分 " + action.name + (action.note ? " (" + action.note + ")" : "") : ""; return ( <div>現: {text}</div> ); }; const NextAction = props ...
client/mobile/src/components/Student/CourseAttendance.js
CongYunan/course_attendance
// 加载 React 相关组件 import React, { Component } from 'react'; // 加载 Ant Design 相关组件 import { message } from 'antd'; // 加载 Dva 相关组件 import { connect } from 'dva'; // 加载自定义组件 import { checkMapData } from '../../utils/Check'; // 加载样式 import Styles from '../../styles/CourseAttendance.less'; // 加载自定义组件 import CommonSearch from...
src/svg-icons/editor/insert-photo.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
packages/react-ui-components/src/Label/label.js
dimaip/neos-ui
import React from 'react'; import PropTypes from 'prop-types'; import mergeClassNames from 'classnames'; const Label = props => { const { children, className, htmlFor, theme, ...rest } = props; const classNames = mergeClassNames({ [theme.label]: true, ...
src/svg-icons/action/settings.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettings = (props) => ( <SvgIcon {...props}> <path d="M19.43 12.98c.04-.32.07-.64.07-.98s-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.12-.22-.39-.3-.61-.22l-2.49 1c-.52-.4-1.08-.73-1.69-.98l...
src/components/Footer/Footer.js
zsu13579/pinterest-apollo
/** * 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 withStyles from 'isom...
blog/src/components/posts_index.js
williampuk/ReduxCasts
import _ from 'lodash'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { fetchPosts } from '../actions'; class PostsIndex extends Component { componentDidMount() { this.props.fetchPosts(); } renderPosts() { return _.map(th...
docs/src/pages/components/text-fields/TextFieldSizes.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; const useStyles = makeStyles((theme) => ({ root: { '& .MuiTextField-root': { margin: theme.spacing(1), width: 200, }, }, })); export default function TextField...
sms_sponsorship/webapp/src/components/ChildDescription.js
CompassionCH/compassion-modules
import React from 'react'; import Typography from '@material-ui/core/Typography'; export default class extends React.Component { getDescriptionJson = () => { let div = document.createElement('div'); div.innerHTML = this.props.appContext.state.child.description; let table = div.querySelector...
packages/eslint-config-universe/__tests__/fixtures/web-native-00.js
exponent/exponent
import React from 'react'; export default class Example extends React.Component { state = { x: 'x', ...{ y: 'y', }, }; props; static getInitialProps() {} constructor(props, context) { super(props, context); this.state = { ...this.state, x: props.x, }; } compo...
app/app.js
vingiesel/alljs
import React from 'react'; class MainApp extends React.Component { render () { return <p>hi</p>; } } React.render(<MainApp />, document.body);
assets/jqwidgets/demos/react/app/chart/columnserieswithmissingvalues/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxChart from '../../../jqwidgets-react/react_jqxchart.js'; class App extends React.Component { render() { let sampleData = [ { Hour: 1, Sales: 135 }, { Hour: 3, Sales: 145 }, { Hour: 5, Sales: 90 }, ...
stories/examples/ListInline.js
reactstrap/reactstrap
import React from 'react'; import { List, ListInlineItem } from 'reactstrap'; const Example = (props) => { return ( <List type="inline"> <ListInlineItem>Lorem ipsum</ListInlineItem> <ListInlineItem>Phasellus iaculis</ListInlineItem> <ListInlineItem>Nulla volutpat</ListInlineItem> </List> ...
client/scripts/components/DiscoveryDetail.js
ahoarfrost/metaseek
import React from 'react'; import axios from 'axios'; import apiConfig from '../config/api.js'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import ColorPalette from './ColorPalette'; import Paper from 'material-ui/Paper'; import {Table, ...
src/components/HelpContents/UploadDialogHelp.js
synchu/schema
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import {Dialog, Button, Tabs, Tab} from 'react-toolbox' import {InlineContent, EditCreateContent, UploadGeneralContent} from '../HelpContents/HelpContents' import classes from './HelpDialog.scss' export class UploadDialogHelp extends Compone...
src/sunburst/index.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/client/routes.js
steida/songary
import AddSong from './songs/add.react'; import App from './app/app.react'; import EditSong from './songs/edit.react'; import Home from './home/index.react'; import Latest from './songs/latest.react'; import Login from './auth/index.react'; import Me from './me/index.react'; import MySongs from './songs/my.react'; impo...
src/components/Pagination.js
GriddleGriddle/Griddle
import React from 'react'; const Pagination = ({ Next, Previous, PageDropdown, style, className }) => ( <div style={style} className={className}> {Previous && <Previous />} {PageDropdown && <PageDropdown /> } {Next && <Next /> } </div> ); export default Pagination;
app/routes.js
Andrew-Hird/bFM-desktop
// @flow import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import HomePage from './containers/HomePage'; import CounterPage from './containers/CounterPage'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <R...
docs/src/app/components/pages/components/TimePicker/ExampleComplex.js
frnk94/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; export default class TimePickerExampleComplex extends React.Component { constructor(props) { super(props); this.state = {value24: null, value12: null}; } handleChangeTimePicker24 = (event, date) => { this.setState({value24:...
docs/app/Examples/elements/Button/Variations/ButtonExampleColored.js
mohammed88/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleColored = () => ( <div> <Button color='red'>Red</Button> <Button color='orange'>Orange</Button> <Button color='yellow'>Yellow</Button> <Button color='olive'>Olive</Button> <Button color='green'>Green</Button> ...
upgrade-guides/v0.12-v0.13/es5/routes.js
lore/lore
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; /** * Wrapping the Master component with this decorator provides an easy way * to redirect the user to a login experience if we don't know who they are. */ import UserIsAuthenticated from './src/decorators/UserIsAuthenticated'; ...
components/textarea.js
volodalexey/spachat
import React from 'react' import {element} from './element' const Textarea = React.createClass({ renderExtraAttributes(){ let options = {}, config = this.props.config; if (config.rows) { options.rows = config.rows; } if (config.value !== "") { options.value = config.value; } re...
blueocean-material-icons/src/js/components/svg-icons/action/restore.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z...
src/OffsetProvider.js
epotapov/react-fix
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import raf from 'raf'; function withOffsets(WrappedComponent) { return class extends Component { static propTypes = { observeMutations: PropTypes.bool, } static defaultProps = { observeMutations: true, } c...
docs/src/app/components/pages/components/Divider/ExampleForm.js
ichiohta/material-ui
import React from 'react'; import Divider from 'material-ui/Divider'; import Paper from 'material-ui/Paper'; import TextField from 'material-ui/TextField'; const style = { marginLeft: 20, }; const DividerExampleForm = () => ( <Paper zDepth={2}> <TextField hintText="First name" style={style} underlineShow={fal...
src/index.js
lleohao/meow-ui
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/components/tableTeamComponent/tableTeamComponent.js
craigbilner/quizapp
'use strict'; import React from 'react'; import radium from 'radium'; import PlayerSmartComponent from '../playerComponent/playerSmartComponent'; import PlayerComponent from '../playerComponent/playerComponent'; class TableTeamComponent extends React.Component { constructor(props) { super(props); } render(...
js/components/common/DatePicker.js
merodeadorNocturno/transfer
import React from 'react'; import DateSelect from 'react-datepicker'; import moment from 'moment'; class DatePicker extends React.Component { constructor () { super(); this.state = {startDate: moment() }; this.handleChange = this.handleChange.bind(this); } handleChange (date) { ...
src/svg-icons/image/view-compact.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewCompact = (props) => ( <SvgIcon {...props}> <path d="M3 19h6v-7H3v7zm7 0h12v-7H10v7zM3 5v6h19V5H3z"/> </SvgIcon> ); ImageViewCompact = pure(ImageViewCompact); ImageViewCompact.displayName = 'ImageVie...
src/client/components/App.js
RossCasey/SecureDrop
import React, { Component } from 'react'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import Creator from './Creator'; import Drop from './Drop'; import BrowserSupport from './BrowserSupport'; import Error404 from './404'; import '../public/css/App.css'; import 'jquery'; import 'bootstrap'; class Na...
docs/app/Examples/elements/Button/States/ButtonLoadingExample.js
jcarbo/stardust
import React from 'react' import { Button } from 'stardust' const ButtonLoadingExample = () => ( <div> <Button loading>Loading</Button> <Button basic loading>Loading</Button> <Button loading primary>Loading</Button> <Button loading secondary>Loading</Button> </div> ) export default ButtonLoadingEx...
src/views/preview.js
zenoamaro/psd-viewer
/* @flow */ import React from 'react'; import PSD from 'psd'; import Highlight from './preview-highlight'; import Layer from './preview-layer'; let T = React.PropTypes; export default React.createClass({ propTypes: { psd: T.instanceOf(PSD).isRequired, highlightedLayer: T.object }, getInitialState() { retur...
Libraries/Image/Image.ios.js
InterfaceInc/react-native
/** * 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. * * @provides...
tests/lib/rules/vars-on-top.js
JedWatson/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
src/svg-icons/toggle/check-box.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBox = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/> </SvgIcon> );...
anubis/ui/components/scratchpad/ScratchpadRecordsRowContainer.js
KawashiroNitori/Anubis
import React from 'react'; import classNames from 'classnames'; import { connect } from 'react-redux'; import TimeAgo from 'timeago-react'; import moment from 'moment'; import _ from 'lodash'; import { parse as parseMongoId } from '../../utils/mongoId'; import i18n from '../../utils/i18n'; import * as recordEnum from ...
packages/icons/src/md/hardware/PhoneAndroid.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPhoneAndroid(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M32 2c3.31 0 6 2.69 6 6v32c0 3.31-2.69 6-6 6H16c-3.31 0-6-2.69-6-6V8c0-3.31 2.69-6 6-6h16zm-4 40v-2h-8v2h8zm6.5-6V8h-21v28h21z" /> </IconBas...
src/components/ApiTransactionCurlCommand.js
evaisse/swagger-open-api-ui
import React, { Component } from 'react'; export default class ApiTransactionCurlCommand extends Component { getCurlCommand(args1, args2) { let xhr = this.props.xhr; let results = []; let obj = xhr.request.options; let isFormData = false; let isMultipart = false;...
src/common/components/FieldTextarea.js
redcom/doctori-romani-in-berlin
// @flow import type { TextareaProps } from './Textarea'; import Box from './Box'; import Textarea from './Textarea'; import React from 'react'; import Text from './Text'; // Custom TextInput with label and error. type FieldProps = TextareaProps & { label?: string, error?: string, rows: number, cols: number}; const F...
src/parser/deathknight/blood/modules/talents/RuneStrike.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/other...
app/react-icons/fa/drupal.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaDrupal extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m29.1 35.4q-0.2-0.4-0.6-0.1-0.7 0.5-1.9 0.9t-3 0.3q-2.8 0-4.3-1.1-0.1 0-0.2 0...
test/test_helper.js
raninho/learning-reactjs
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
src/routes/Login/LoginForm.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Button, Form, Input } from 'antd' import QueueAnim from 'rc-queue-anim' import { config } from 'utils' import styles from './LoginForm.less' const FormItem = Form.Item const Login = ({ loading, onOk, form: { getFieldDecorator, validat...
app/javascript/mastodon/main.js
Craftodon/Craftodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
Website/src/components/Home/DesignHeading.js
ameyjain/WallE-
import React, { Component } from 'react'; import { connect } from 'react-redux' export default class DesignHeading extends Component { render() { return ( <div id="two" className="parallax"> <div className="heading1"> <h2 id="line1" >SIMPLE & INTUITIVE DESIGN</h2> </div...
examples/universal/client.js
charlespwd/redux
import 'babel-core/polyfill'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = document.getElementB...
Paths/React/06.Styling React Components/6-react-styling-components-m6-exercise-files/After/src/app.js
phiratio/Pluralsight-materials
import autobind from 'autobind-decorator' import React from 'react' import Carousel from './carousel' import Frame from './frame' import Nav from './nav' import Slide from './slide' import css from './app.css' @autobind export default class DriftApp extends React.Component { state = { showIndex: 0, numSlid...
app/javascript/mastodon/features/reblogs/index.js
tateisu/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 LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs ...
js/components/layout/row.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Button, Icon, Left, Right, Body } from 'native-base'; import { Grid, Row } from 'react-native-easy-grid'; import { Actions } from 'react-n...
src/components/Feedback/Feedback.js
seanlin816/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
interface/components/SendTx/Footer.js
ethereum/mist
import React, { Component } from 'react'; import MDSpinner from 'react-md-spinner'; class Footer extends Component { constructor(props) { super(props); this.state = { pw: '' }; } handleSubmit = e => { e.preventDefault(); this.props.handleSubmit(this.state); this.setState({ pw: '' ...
app/javascript/mastodon/containers/mastodon.js
koba-lab/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-scroll-4'; import UI from '../features/ui'; import { fetchCust...
src/components/utility/logo.js
EncontrAR/backoffice
import React from 'react'; import { Link } from 'react-router-dom'; import { siteConfig } from '../../config.js'; // export default function({ collapsed, styling }) { export default function({ collapsed }) { return ( <div className="isoLogoWrapper"> {collapsed ? <div> <h3> ...
src/app/TodoList.js
CompileYouth/SmallFish
import React from 'react'; import _ from 'lodash'; import { View } from 'react-native'; import TodoItem from './TodoItem'; import List from '../component/List'; export default class TodoList extends List { constructor() { super(); this._handleItemClick = this._handleItemClick.bind(this); } component...
packages/editor/src/components/Controls/Emoji/EmojiLayout.js
strues/boldr
/* eslint-disable react/no-array-index-key */ /* @flow */ import React from 'react'; import type { Node } from 'react'; import cn from 'classnames'; import { Smile } from '../../Icons'; import { stopPropagation } from '../../../utils/common'; import type { EmojiConfig } from '../../../core/config'; import Option from ...