path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/scripts/components/Navbar/Navbar.js
cameronbwhite/TimeCardView
/* * TimeCard View * Copyright ©2015 Thomas Nelson, Jacob Nichols, David Opp, Todd Brochu, Andrew McGown, Sasha Fahrenkopf, Cameron B. White. * * This source code is licensed under the MIT license found in the * LICENSE text file in the root directory of this source tree. */ import React from 'react' import Route...
src/js/components/Form/stories/ValidateOnBlur.js
grommet/grommet
import React from 'react'; import { StatusGood } from 'grommet-icons'; import { Box, Button, Form, FormField, TextInput } from 'grommet'; export const ValidateOnBlur = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Box fill align="center" justify="center"> <Bo...
docs/src/stories/Pivoting.js
byumark/react-table
/* eslint-disable import/no-webpack-loader-syntax */ import React from 'react' import _ from 'lodash' import namor from 'namor' import ReactTable from '../../../lib/index' class Story extends React.PureComponent { render () { const data = _.map(_.range(1000), d => { return { firstName: namor.gener...
src/js/components/application.js
GarrettEstrin/windows.garrettestrin.com
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { clickApplicationIcon } from '../actions/icon_actions'; class Application extends Component{ constructor(props){ super(props); this.showApplicationWindow = this.showApplicationWindow.bind(this); } showApplicationW...
src/Tracks.js
laduke/vigilant-doodle
import React from 'react'; import h from 'react-hyperscript'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Table'; const trackMapper = (onTrackClick, track) => ( <Track key={track.id} {...track} /> ); let TracksTable = ({ tracks, onTra...
src-client/modules/workspace/containers/DeskPage/index.js
ipselon/structor
/* * Copyright 2017 Alexander Pustovalov * * 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 a...
webpack/react_app/components/jobInvocations/AggregateStatus/index.js
ares/foreman_remote_execution
import React from 'react'; const AggregateStatus = ({ statuses }) => ( <div id="aggregate_statuses"> <p className="card-pf-aggregate-status-notifications"> <span className="card-pf-aggregate-status-notification"> <span id="success_count"> <span className="pficon pficon-ok" /> {s...
docs/app/Examples/modules/Progress/Types/ProgressExampleStandard.js
mohammed88/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleStandard = () => ( <Progress percent={11} /> ) export default ProgressExampleStandard
webapp/components/dataStats.js
schabluk/elastic-dc
import React from 'react' import _ from 'underscore' import BarChart from './charts/bar' class DataStats extends React.Component { constructor(props) { super(props) this.state = { beatRate: this.props.beatRate, datum: [] } this.beat = this.beat.bind(this) this.updateDatum = this.up...
site/src/components/Box.js
styleguidist/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import styles from './Box.module.css'; export const Box = ({ children, textAlign, className, as: Component = 'div', ...rest }) => ( <Component className={clsx(styles.box, textAlign && styles[`box--textAlign-${textAlign}`], class...
src/createElement.js
imasl/react-router-relay
import React from 'react'; import Container from './Container'; export default function createElement(Component, props) { return ( <Container Component={Component} {...props} /> ); }
js/components/ProjectSelect.js
leehyoumin/asuraCham
'use strict'; //This is a Add project import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Content, Text,Button,View,Picker } from 'native-base'; import { AppRegistry, TextInput } from 'react-native'; export default class ProjectSelect extends Component { constructor(props...
src/components/ProfileImage/ProfileImage.js
prthrokz/portfolio
import React from 'react'; import withStyles from '../../decorators/withStyles'; import styles from './ProfileImage.css'; @withStyles(styles) export default class ProfileImage extends React.Component { render () { return <div className='circular'></div>; } }
app/components/MetaInputs/DateTime/index.js
jakubrohleder/aurelius
import React from 'react'; import styles from './styles.css'; export default function MetaInputDateTime(props) { const { meta, name, onChange } = props; const id = `${name}-input`; return ( <label className={styles.wrapper} htmlFor={id}> <span className={styles.name}>{name}</span> <input ...
src/Treemap.js
ornl-sava/vis-react-components
// partly inspired by https://bl.ocks.org/mbostock/6bbb0a7ff7686b124d80 import React from 'react' import PropTypes from 'prop-types' import { TransitionGroup } from 'react-transition-group' import * as d3 from 'd3' import { setEase } from './util/d3' import SVGComponent from './SVGComponent' import Tooltip from './T...
test/integration/css-fixtures/multi-page/pages/_app.js
azukaru/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.css' import '../styles/global2.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/components/app.js
robreczarek/recruitment-un
import React, { Component } from 'react'; import Header from './header'; import Users from '../containers/users'; export default class App extends Component { render() { return ( <div> <Header /> <div className="barForm"> {this.props.children} </div> <Users /> ...
src/js/serverRendering.js
suranartnc/js-starter-kit
// Server rendering import React from 'react'; import { renderToString } from 'react-dom/server' import { RoutingContext, match } from 'react-router'; import createLocation from 'history/lib/createLocation'; import Helmet from 'react-helmet'; import routes from './shared/routes'; import prefetchComponentData from './sh...
app/sources/js/components/list/item/note.react.js
ixui/sirusu
// Library import React from 'react' import _ from 'lodash' // Alt - Flux // Actions import NotebooksActions from '../../../actions/notebooks' import TagsActions from '../../../actions/tags' import ErrorsActions from '../../../actions/errors' // Design import ListItem from 'material-ui/lib/lists/list-item' import Ico...
src/routes.js
jherr/gauge-test
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
app/views/Homepage/components/RetroFooter.js
herereadthis/redwall
import React from 'react'; export default class RetroFooter extends React.Component { constructor() { super(); } componentWillMount() { } componentDidMount() { } render() { var style1, location; style1 = { color: '#FFF' }; location = ...
src/component/scheduleform.js
ftmatsumoto/crss
import React, { Component } from 'react'; import Paper from 'material-ui/Paper'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import DatePicker from 'material-ui/DatePicker';...
src/components/SEO/index.js
EvanHammond/EvanHammond.github.io
import path from 'path' import React from 'react' import Helmet from 'react-helmet' import { StaticQuery, graphql } from 'gatsby' import PropTypes from 'prop-types' import SchemaOrg from './SchemaOrg' const SEO = ({ postData, frontmatter = {}, postImage, isBlogPost }) => ( <StaticQuery query={graphql` { ...
admin/src/component/Action.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
node_modules/react-bootstrap/es/InputGroup.js
geng890518/editor-ui
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/components/loader.js
ssuvorov/GitRepos
import React from 'react' const Loader = () => ( <div className="loader">Loading...</div> ) export default Loader
internals/templates/app.js
huahuaxiong/console
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
src/components/PaperComponents/sections/Music.js
tuomotlaine/portfolio
import React, { Component } from 'react'; import TypeWriter from '../../TypeWriter'; import RenderComputer from '../../RenderComputer'; import Prompt from '../Prompt'; class Music extends Component { constructor(props){ super(props); this.state = { renderComputerCounter: 0 } } renderComputer(...
src/dumb/editor/custom_field/form_templates/TypeSelectionFormTemplate.js
jeckhummer/wf-constructor
import React from 'react'; import {GenericListFormTemplate} from "./GenericListFormTemplate"; export const TypeSelectionFormTemplate = ({update, label, items}) => { const props = { onLabelChange: label => update({label}), onItemChange: (index, value) => update({ items: items.map((item, ...
src/components/source/mediaSource/form/SourceForm.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl } from 'react-intl'; import { reduxForm } from 'redux-form'; import { Row, Col } from 'react-flexbox-grid/lib'; import withIntlForm from '../../../common/hocs/IntlForm'; import AppButton from '../../../common/AppButton'; import SourceDet...
app/containers/About/index.js
audoralc/pyxis
/* * * About * */ import React from 'react'; import Helmet from 'react-helmet'; import Header from 'components/Header'; import Footer from 'components/Footer'; import BodyContainer from 'components/BodyContainer'; export default class About extends React.PureComponent { render() { const pageGrid = { ...
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
v2tmobile/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
packages/editor/src/components/Icons/Eraser.js
strues/boldr
import React from 'react'; import Icon from './Icon'; const Eraser = props => ( <Icon viewBox="0 0 512.001 512" {...props}> <path d="M497.942 273.941c18.745-18.745 18.745-49.137 0-67.882l-160-160c-18.746-18.745-49.136-18.746-67.883 0l-256 256c-18.745 18.745-18.745 49.137 0 67.882l96 96A48 48 0 0 0 144 480h356c6....
app/imports/ui/client/layouts/Sprints/index.js
valcol/ScrumNinja
import React, { Component } from 'react'; import SprintBox from '../../components/Sprint'; class Requirements extends Component { constructor(props) { super(props); } render() { return ( <div className="requirements"> <SprintBox {...this.props}/> </div> ); } } export default ...
Example/List.js
devBrian/react-native-dropdownalert
import React from 'react'; import {StyleSheet, Text, Pressable, FlatList} from 'react-native'; const Button = ({ item = {title: '', type: '', color: '#202020'}, onSelect = () => {}, }) => { const text = item.title ? item.title : item.type; return ( <Pressable style={[styles.button, {borderColor: item...
test/test_helper.js
joakikr/SAAS
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...
app/jsx/assignments_2/teacher/components/Editables/EditableNumber.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
admin/client/Signin/components/Alert.js
ratecity/keystone
/** * Renders an Alert. Pass either an isInvalid and invalidMessage prop, or set * the signedOut prop to true to show the standard signed out message */ import React from 'react'; import { Alert } from '../../App/elemental'; const AlertView = function (props) { if (props.isInvalid) { return <Alert key="error" c...
fields/types/password/PasswordColumn.js
tony2cssc/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var PasswordColumn = React.createClass({ displayName: 'PasswordColumn', propTypes: { col: React.PropTypes.ob...
src/components/molecules/Item.js
rudionrails/search-widget-react-redux
import React from 'react'; import PropTypes from 'prop-types'; import './Item.css'; class Item extends React.Component { static propTypes = { title: PropTypes.string.isRequired, url: PropTypes.string.isRequired, } static contextTypes = { onClick: PropTypes.func.isRequired, } render() { con...
app/scripts/components/Welcome.js
ivanos/dobby_ui_lib
import React, { Component } from 'react'; import Identifier from "../model/Identifier"; import { Button, Field } from './Common'; import { setRootIdentifiers, setScreen, MAIN_SCREEN } from './actions/application'; class Welcome extends Component { constructor(props) { super(props); this.state =...
test/test-cases/react-css-modules/app/src/render.js
seek-oss/sku
import React from 'react'; import { renderToString } from 'react-dom/server'; import dedent from 'dedent'; import App from './App'; export default { renderApp: ({ SkuProvider }) => renderToString( <SkuProvider> <App /> </SkuProvider>, ), renderDocument: ({ app, bodyTags, headTags }) =>...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ClassProperties.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class extends Component { static propTyp...
src/example/app/pages/BottomSheetTest.js
lighter-cd/ezui_react_one
import React, { Component } from 'react'; import injectSheet from 'react-jss'; import {BottomSheet} from '../../../lib/components/bottomSheet'; import {Toast,IconToast} from '../../../lib/components/tips'; import {Icon} from '../../../lib/components/icon'; import {Animated} from '../../../lib/filters'; const styles = ...
src/svg-icons/av/mic-off.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvMicOff = (props) => ( <SvgIcon {...props}> <path d="M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.2...
test/test_helper.js
ctrl-alt-p/born-to-sell
import jsdom from 'jsdom'; import jquery from 'jquery'; import TestUtils from 'react-addons-test-utils'; import ReactDOM from 'react-dom'; import chai, { expect } from 'chai'; import React from 'react'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducers from '../src/reducers'; ...
src/app/components/ShowCaseCard.js
leoliew/react-webpack-example
/** * Created by leoliew on 2016/11/30. */ import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; const styles = { div: { margin: '1%' }, card:{ marginTop: '15px' } }; export default class ShowCaseCard extends React.Component { r...
src/client/components/todos/todolist.js
matystl/shopping_list
import PureComponent from '../../../lib/purecomponent'; import React from 'react'; import TodoItem from './todoitem'; import immutable from 'immutable'; export default class TodoList extends PureComponent { render() { return ( <ol> {this.props.todos.map((todo, i) => { return <TodoItem to...
src/Parser/Monk/Mistweaver/Modules/Traits/EssenceOfTheMist.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing...
src/Icon_Mastercard.js
codefoundries/material-ui-credit-card-icons
'use strict'; import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; export default function( props ) { return( <SvgIcon viewBox="0 0 60 40" {...props}> <g> <path fill="#5666AF" d="M60,35c0,2.75-2.25,5-5,5H5c-2.75,0-5-2.25-5-5V5c0-2.75,2.25-5,5-5h50c2.75,0,5,2.25,5,5V35z"/> <p...
node_modules/re-base/examples/firestore/github-notetaker/app/components/Notes/AddNote.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; class AddNote extends React.Component { handleSubmit() { var newNote = ReactDOM.findDOMNode(this.refs.note).value; ReactDOM.findDOMNode(this.refs.note).value = ''; this.props.addNote({ note: newNote ...
node_modules/react-router/es6/IndexLink.js
hkim53/insta
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; }; import React from 'react'; import Link from './Link'; /** *...
src/components/trends/cbg/CBGDateTraceLabel.js
tidepool-org/viz
/* * == BSD2 LICENSE == * Copyright (c) 2017, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program ...
src/js/components/DateInput/stories/Format.js
grommet/grommet
import React from 'react'; import { Box, DateInput } from 'grommet'; export const Format = () => { const [value, setValue] = React.useState(''); const onChange = (event) => { const nextValue = event.value; console.log('onChange iso date:', nextValue); console.log('onChange utc date:', new Date(nextVal...
src/components/DicePoolForm/DicePoolForm.js
dotNomad/ignota-dice-roller
import React from 'react'; import { DicePool, validateDicePoolInput } from '../../utils/dice'; import './DicePoolForm.css'; export class DicePoolForm extends React.Component { constructor(props) { super(props); this.state = { dicePool: '', error: false }; } handleChange = (event) => { this.setState...
src/components/User.js
reindexio/reindex-starter-kit-react-auth0
import React from 'react'; import Relay from 'react-relay'; import { Link } from 'react-router'; const User = (props) => ( <div> User with id {props.user.id} {' - '} <Link to={`/user/${props.user.id}`} >Go to</Link> </div> ); export default Relay.createContainer(User, { fragments: { user: () => ...
src/components/CodeBlock.js
googlefonts/japanese
import React from 'react'; import PropTypes from 'prop-types'; const CodeBlock = (props) => { let className = `mt1 overflow-x-auto h5 md-h4 line-height-3 bg-lighten-2 black p2 md-px3 font-family-monospace ${ props.rounded ? 'rounded' : '' }`; return ( <pre className={className} data-language={props.lang...
js/components/layout/index.js
LetsBuildSomething/vmag_mobile
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, List, ListItem, Text } from 'native-base'; import { Actions } from 'react-native-router-flux'; ...
client/src/views/Awards-Service/components/open-offices/index.js
DillGromble/TNABT-org
import React from 'react' import './open-offices.css' import OfficeDropdown from './components/office-dropdown' const dummyOffice = [ { title: 'Vice President', description: 'The Vice-President shall assume the duties of the President in the President’s absence, and shall work cooperatively with the President ...
app/javascript/mastodon/features/community_timeline/index.js
kirakiratter/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/encoded/static/components/statuslabel.js
T2DREAM/t2dream-portal
import React from 'react'; import PropTypes from 'prop-types'; import * as globals from './globals'; const StatusLabel = (props) => { const { status, title, buttonLabel } = props; if (typeof status === 'string') { // Display simple string and optional title in badge return ( <ul cl...
app/containers/create-movement/components/movement-caravana-list/index.js
kimurakenshi/caravanas
import { connect } from 'react-redux'; import { removeCaravanaFromDraftMovement } from 'app/actions/movement-actions/movement-draft-action'; import React, { Component } from 'react'; import { getDraftMovement } from 'app/reducers'; import styles from './style/movement-caravana-list.scss'; import { Table, TableBody,...
src/components/inputs/Text.js
yuri/treillage
import React from 'react'; import PropTypes from 'prop-types'; export const Text = (props) => { const { type, style, placeholder, fieldDefinition, } = props; return ( <input className="block col-12 mb1 field" style={{ ...styles.base, ...style }} type={ type } placehol...
node_modules/react-bootstrap/es/Well.js
jkahrs595/website
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/ReduxibleRouter.js
Pitzcarraldo/reduxible
import React from 'react'; import ReactDOM from 'react-dom'; import ReactDOMServer from 'react-dom/server'; import Router from 'react-router/lib/Router'; import RoutingContext from 'react-router/lib/RoutingContext'; import match from 'react-router/lib/match'; import Provider from 'react-redux/lib/components/Provider'; ...
src/components/blog.js
nbzwt/zyzPress
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Title from './title'; import Search from './search'; import Back from './back'; import Category from './category'; import Tags from './tags'; import Widgets from './widget'; class Blog extends Component { constructor() { super(); ...
example/examples/Callouts.js
tt-sport-mobile/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import CustomCallout from './CustomCallout'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37....
src/utils/childrenValueInputValidation.js
xuorig/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, componentName); if (!error) { error = React.PropTypes.node(pro...
src/components/wallet/WalletBackup.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { action, computed, extendObservable } from 'mobx' import { inject, observer } from 'mobx-react' import { remote } from 'electron' import { join, sep } from 'path' import { dataPath } from '../../utilities/common.js' /** Ant Design */ import Bu...
components/breadcrumb/demo/index.js
TDFE/td-ui
import React from 'react'; import ReactDOM from 'react-dom'; import './index.less'; /* eslint-disable no-unused-vars */ import { Router, Route, Link, hashHistory } from 'react-router'; import Breadcrumb from './../Breadcrumb'; import BreadcrumbItem from './../BreadcrumbItem'; const MOUNT_NODE = document.getElementById...
front/app/js/components/controls/common/StyleManager.js
nudoru/React-Starter-3
import React from 'react'; import hoistNonReactStatic from 'hoist-non-react-statics'; import PropTypes from 'prop-types'; import {css} from 'emotion'; import {getNextId} from '../../../utils/ElementIDCreator'; import {shadows} from '../../../theme/Theme'; export const styleComponentPropTypes = { __cid : P...
src/components/Counter.js
eventhough/hapi-universal-redux
import React from 'react'; import Radium from 'radium'; const styles = { base: { paddingBottom: 25, }, counter: { fontSize: '5em', color: 'white', marginLeft: 20, }, inputContainer: { height: 80, width: 40, float: 'left', marginTop: 15, }, button: { height: 38, wi...
app/features/settings/device/panels/SettingsDevicePanelDisconnected.js
squatsandsciencelabs/OpenBarbellApp
import React, { Component } from 'react'; import { Text, View, Image, TouchableOpacity, ActivityIndicator, StyleSheet } from 'react-native'; import { SETTINGS_PANEL_STYLES } from 'app/appearance/styles/GlobalStyles'; // TODO: move these into the config file const INITIAL_SCAN = 5 * 1000; const...
client/components/basic/UserInfo.js
Sing-Li/Rocket.Chat
import React from 'react'; import { Box, Margins, Tag, Button, Icon } from '@rocket.chat/fuselage'; import { css } from '@rocket.chat/css-in-js'; import { useTimeAgo } from '../../hooks/useTimeAgo'; import { useTranslation } from '../../contexts/TranslationContext'; import VerticalBar from './VerticalBar'; import { UT...
app/components/Toggle/index.js
hieubq90/react-boilerplate-3.4.0
/** * * LocaleToggle * */ import React from 'react'; import PropTypes from 'prop-types'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = <option>--</option>; // If we have items, render them if (props.values) { content = props.values.map(val...
webapp/app/components/Users/index.js
EIP-SAM/SAM-Solution-Server
// // Component Users // import React from 'react'; import { PageHeader, Alert } from 'react-bootstrap'; import UserTable from 'containers/Users/Table'; import UserButton from 'containers/Users/Button'; import UserFilters from 'containers/Users/Filters'; /* eslint-disable react/prefer-stateless-function */ export def...
client/src/components/users/User.js
PCGeekBrain/TruckTrack
import React from 'react'; import { Button, ButtonGroup } from 'react-bootstrap'; const User = ({user, onEdit, onDelete}) => { const edit = (event) => { event.preventDefault(); onEdit(event, user) } const deleteItem = () => { onDelete(user.id) } return ( <div className="user-card card"> ...
src/app/Steps/Confirmation/Confirmation.js
isaacjoh/foreseehome-test
// imp import React from 'react'; import Formsy from 'formsy-react'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Paper from 'material-ui/Paper'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-u...
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasisColoredInverted.js
vageeshb/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleEmphasisColoredInverted = () => ( <div> <Segment inverted color='red'> I'm here to tell you something, and you will probably read me first. </Segment> <Segment inverted color='red' secondary> I am pretty...
packages/react-vis/src/plot/series/area-series.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...
react/features/embed-meeting/components/EmbedMeetingTrigger.js
jitsi/jitsi-meet
// @flow /* eslint-disable react/jsx-no-bind */ import React from 'react'; import { connect } from 'react-redux'; import { openDialog } from '../../base/dialog'; import { translate } from '../../base/i18n'; import EmbedMeetingDialog from './EmbedMeetingDialog'; type Props = { /** * Open the embed meeting...
app/components/Molecules/RetweetModal/RetweetModal.js
shibe97/worc
import React from 'react'; import Modal from 'react-awesome-modal'; import RetweetActions from '../../Atoms/RetweetActions/RetweetActions'; import Meta from '../../Molecules/Meta/Meta'; import Text from '../../Atoms/Text/Text'; import styles from './retweetModal.css'; function putTweetIfValid(tweet) { if (tweet.id_s...
packages/stdind/src/App.js
istarkov/pbl
import React from 'react'; import { BrowserRouter } from 'react-router'; import Layout from './Layout'; export default () => ( <BrowserRouter> <Layout /> </BrowserRouter> );
src/components/common/svg-icons/maps/satellite.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsSatellite = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8....
stories/components/modal/index.js
sethbergman/operationcode_frontend
import React, { Component } from 'react'; import { storiesOf } from '@storybook/react'; import Modal from 'shared/components/modal/modal'; class ComponentWithModal extends Component { constructor() { super(); this.state = { isModalOpened: false, }; } handleOpen = () => { this.setState({ i...
src/ReactDrawer.js
atom2ueki/react-drawer
/*! * ReactDrawer * Licensed under the MIT license * * Copyright (c) 2016 Tony Li */ import theme from './ReactDrawer.scss'; import animate from 'animate.css'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; class ReactDrawer extends React.Component { constr...
src/docs/examples/StarRating/ExampleStarRatingBlue.js
rajeshpillai/zs-react-pattern-lib
import React from 'react'; import StarRating from 'zs-react/StarRating'; /** StarRating: Blue Color */ export default class ExampleStarRatingFull extends React.Component { constructor (props) { super(props); this.state = { rating: 2 } } handleChange = (newRating) => { this.setState({...
examples/src/Footer/Footer.js
InnovativeTravel/react-autosuggest
require('./Footer.less'); import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <div className="footer"> <img src="https://gravatar.com/avatar/e56de06f4b56f6f06e4a9a271ed57e26?s=32" alt="Misha Moroshko" /> <span> ...
app/common/components/Tooltip/index.js
testpackbin/testpackbin
import React from 'react'; import styles from './styles.css'; function Tooltip(props) { return ( <div className={props.show ? styles.wrapper : styles.hide}> {props.text} </div> ); } export default Tooltip;
src/components/contemporary/DietConsultationForm.js
bharney/YogaMarieMills
import React from 'react'; import { Link } from 'react-router'; import TextInput from '../common/TextInput'; import ConsultationDetailsForm from './ConsultationDetailsForm'; import Editor from 'draft-js-plugins-editor'; import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin'; import { ItalicButton, B...
app/routes/routes.js
rpoitras/react-universal
import React from 'react' import { Switch, Route } from 'react-router-dom' import Home from './Home' import About from './About' import NestedPartial from './NestedPartial' import NotFound from './NotFound' import WebSocketExample from './WebSocket' export default () => ( <Switch> <Route path='/about' component=...
react/redux/client/src/components/auth/reset_password.js
sabertazimi/st-proj
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import { resetPassword } from '../../actions/auth'; const form = reduxForm({ form: 'resetPassword', validate }); function validate(formProps) { const errors = {}; if (!formProps.pas...
src/components/Grid/GridContainer.js
wundery/wundery-ui-react
import React from 'react'; // Utils import classnames from 'classnames'; const GridContainer = (props) => { const children = props.children; const fluid = props.fluid; return ( <div className={classnames({ container: !fluid, 'container-fluid': fluid, })} > {children} ...
[3]. Demo_native/skin_demo/Route.js
knightsj/RN_Demo
import React, { Component } from 'react'; import { AppRegistry, Platform, } from 'react-native'; import Navigator from 'react-native-deprecated-custom-components'; import SettingPage from './SettingPage' import homePage from './HomePage' import skinPage from './skin' const defaultRoute = { component: ...
fluent-react/examples/higher-order/src/App.js
zbraniecki/fluent.js
import React from 'react'; import { Localized, withLocalization } from 'fluent-react/compat'; function App(props) { function showAlert() { const { getString } = props; alert(getString('hello')); } return ( <div> <Localized id="button-show-alert"> <button onClick={showAlert}>Click me!</...
packages/wix-style-react/src/Text/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, columns, playground, api, importExample, divider, testkit, example, title, } from 'wix-storybook-utils/Sections'; import Text, { SIZES, SKINS, WEIGHTS } from '..'; import * as examples from './examples'; import { storySettings...
fiddles/react/fiddle-0013-StateLifting/src/App.js
bradyhouse/house
import React, { Component } from 'react'; import './App.css'; import Calculator from './calculator/Calculator'; class App extends Component { render() { return ( <div className="App"> <Calculator/> </div> ); } } export default App;
docs/src/app/components/pages/components/Stepper/VerticalLinearStepper.js
pomerantsev/material-ui
import React from 'react'; import { Step, Stepper, StepLabel, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * Vertical steppers are designed for narrow screen sizes. They are ideal for mobile. * * To use t...
src/table/TableItem.js
HarvestProfit/harvest-profit-ui
import React from 'react'; import PropTypes from 'prop-types'; /** * Used to render a column item in the table body. */ const TableItem = (props) => { const classList = [props.className, props.align, props.size]; if (props.important) classList.push('greater'); if (props.unimportant) classList.push('lesser'); ...
src/svg-icons/content/markunread.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMarkunread = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMarkunread ...