path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/common/HeaderLogo.js
varmais/profitti
import React from 'react'; import { Image } from 'react-native'; export default () => ( <Image source={require('../../assets/images/trol-logo-full.png')} style={{height: 35}} resizeMode="contain" /> );
docs/client/components/pages/InlineToolbar/gettingStarted.js
dagopert/draft-js-plugins
// It is important to import the Editor which accepts plugins. import Editor from 'draft-js-plugins-editor'; import createInlineToolbarPlugin from 'draft-js-inline-toolbar-plugin'; import React from 'react'; // Creates an Instance. At this step, a configuration object can be passed in // as an argument. const inlineTo...
src/ChallengeCardLabel1/index.js
DuckyTeam/ducky-components
import ProgressBar from '../ProgressBar'; import Typography from '../Typography'; import LabelSmall from '../LabelSmall'; import classNames from 'classnames'; import Spacer from '../Spacer'; import React from 'react'; import PropTypes from 'prop-types'; import Tooltip from '../Tooltip'; import styles from './styles.css...
packages/wix-style-react/src/TimeTable/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, code, example, playground, api, testkit, columns, } from 'wix-storybook-utils/Sections'; import cloneDeep from 'lodash/cloneDeep'; import { storySettings } from '../test/storySettings'; import T...
src/pages/welcome.js
voidxnull/libertysoil-site
/* This file is a part of libertysoil.org website Copyright (C) 2015 Loki Education (Social Enterprise) 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, o...
components/TemplateListInGroup/Delete.js
YongYuH/Ludo
import React, { Component } from 'react'; import { Icon } from './baseStyle'; const deleteIconSrc = '/static/delete.svg'; // class Delete extends Component { // render() { // return ( // <Wrapper> // <Delete /> // </Wrapper> // ); // } // } const Delete = () => ( <div> <Icon ...
src/components/ScrollToTop.js
NemethNorbert/restaurant-website
import React from 'react'; import {withRouter} from 'react-router'; class ScrollToTop extends React.PureComponent { componentWillUpdate(prevProps) { if (this.props.location.pathname !== prevProps.location.pathname) { window.scrollTo(0, 0) } } render() { return this.props.children } } e...
src/components/Banner.js
nyugoh/blog
import React from 'react'; import { Image, Header } from 'semantic-ui-react'; const avatar = '/assets/images/logo.png'; const Banner = props =>{ return ( <header id={'banner'} className={'ui centered two column grid'}> <div className="ui row"> <div className="ui column center aligned"> <Image src={avat...
src/modules/Components/User/BioInfoCardList.js
rtellez700/MESA_Connect_2.0
import React from 'react'; import BioInfoCard from './BioInfoCard'; class BioInfoCardList extends React.Component { render() { var BioInfoNodes = this.props.users.map((user) => { return ( <BioInfoCard key={user.f_name} user={ user }/> ); }); return ( <div className="BioInfoCardList"> ...
classic/src/scenes/monitor/src/Scenes/MonitorScene/MonitorScene.js
wavebox/waveboxapp
import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import ProcessMonitor from './ProcessMonitor' import ConnectionMonitor from './ConnectionMonitor' import { Paper, AppBar, Toolbar, FormGroup, FormControlLabel, Switch } from '@material-ui/core' import { withStyles } from '@material-ui/c...
views/prompt.js
N00D13/black-screen
import _ from 'lodash'; import React from 'react'; import Autocomplete from './autocomplete'; import DecorationToggle from './decoration_toggle'; // TODO: Make sure we only update the view when the model changes. export default React.createClass({ getInitialState() { return { suggestions: [], ...
src/svg-icons/editor/format-align-center.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignCenter = (props) => ( <SvgIcon {...props}> <path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignCenter = pure(EditorFormatAli...
src/components/CardForm.js
joynal/flashcard
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Formsy from 'formsy-react'; import { v4 } from 'uuid'; import { FormsyText } from 'formsy-material-ui/lib'; import RaisedButton from 'material-ui/RaisedButton'; import { addCard, editCard } from '../actions'; const actionsToState ...
app/components/partials/Footer/index.js
aaronlangford31/ruah-web
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import Dialog from 'material-ui/Dialog'; const styles = { footer: { padding: '5px', position: 'fixed', left: '0px', display: 'flex', flexDirection: 'row', bottom: '0px', height: '50px', width: '100%', back...
App/Containers/BreakDetailScreen.js
infinitered/ChainReactApp
import React from 'react' import { ScrollView, View, Text, Image, TouchableOpacity } from 'react-native' import PurpleGradient from '../Components/PurpleGradient' import { NavigationActions } from 'react-navigation' import { connect } from 'react-redux' import { format, addMinutes } from 'date-fns' // Add Actions - rep...
Progress/index.ios.js
yuanliangYL/ReactNative-Components-Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import * as ProgressView from 'react-native-progress'; export default class Progress ext...
src/components/TagsGrid.js
Mikepicker/onion-packer
import React, { Component } from 'react'; import Tag from './Tag'; export default class TagsGrid extends Component { componentWillMount = () => { document.addEventListener('keyup', this.onKeyUp, false); } componentWillUnmount = () => { document.removeEventListener('keyup', this.onKeyUp, false); } ...
src/routes/about/index.js
nicolascine/site
/** * 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 Layout from '../../co...
pages/next-redux.js
VadimKhoroshiltsev/resolve-boilerplate
import React from 'react'; import { Provider, connect } from 'react-redux'; let memoizedStore; export default ( createStore, mapStateToProps, mapDispatchToProps ) => Component => { function getStoreInstance(initialState) { if (typeof window === 'undefined') { return createStore(initialState); } ...
docs/src/app/components/pages/components/Popover/ExampleAnimation.js
kittyjumbalaya/material-components-web
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover, {PopoverAnimationVertical} from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleAnimation extends React.Component { constructor(...
react_ui/components/SubjectView/SubjectPanel/SubjectOrgSelectField.js
chop-dbhi/biorepo-portal
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; // import Select from '@material-ui/core/Select'; import MenuItem from '@material-ui/core/MenuItem'; import * as SubjectActions from '../../../actions/subject'; import Select from 'react-select'; class SubjectOrgSele...
client-src/components/category/facets/FacetItem.js
minimus/final-task
import React from 'react' import propTypes from 'prop-types' export default function FacetItem({ id, name, value, field, selected, onChange }) { return ( <span className="facet-item"> <label htmlFor={id}> <input id={id} type="checkbox" className="facet-item" ...
src/components/Loader/index.js
badT/Chatson
import React from 'react'; import { styles } from './styles.scss'; export default function Loader(props) { return ( <div key={props.key} className={`${styles}`}> <div className="outer-container"> <div className="inner-container"> <div className="section"> <div className="face"...
app/components/Footer/index.js
davecyen/react-boilerplate-material
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
stories/components/clipPathImage/index.js
tskuse/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import ClipPathImage from 'shared/components/clipPathImage/clipPathImage'; import jamesBondJpg from '../../asset/james-bond.jpg'; storiesOf('shared/components/clipPathImage', module) .add('Default', () => ( <ClipPathImage image={j...
app/jsx/add_people/components/missing_people_section.js
venturehive/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...
src/svg-icons/image/image-aspect-ratio.js
owencm/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...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
CodeLinkIO/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
scripts/auth/components/login.js
rek/grammar-notes
import React from 'react' import {connect} from 'react-redux' export class App extends React.Component { render() { return ( <nav className='navbar navbar-default'> <div className='container-fluid'> <div className='navbar-header'> <button type='button' className='navbar-toggle collapsed' data-to...
app/components/ToggleOption/index.js
ParAnton/ngps-gui-core
/** * * ToggleOption * */ import React from 'react'; import { injectIntl, intlShape } from 'react-intl'; const ToggleOption = ({ value, message, intl }) => ( <option value={value}> {message ? intl.formatMessage(message) : value} </option> ); ToggleOption.propTypes = { value: React.PropTypes.string.isRequir...
src/index.js
luckybirdme/reactjs-cnodejs
import React from 'react' import ReactDOM from 'react-dom' import { AppContainer } from 'react-hot-loader' import Root from './containers/Root' import injectTapEventPlugin from 'react-tap-event-plugin' // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); const render = Co...
src/routes/CheckboxInput/CheckboxInput.js
ziedAb/PVMourakiboun
/** * 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 s from './CheckboxInp...
src/icons/ChevronLeftIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ChevronLeftIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M30.83 14.83L28 12 16 24l12 12 2.83-2.83L21.66 24z"/></svg>;} };
app/javascript/mastodon/features/notifications/components/notification.js
tootsuite/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage, defineMessages } from 'react-intl'; import { HotKeys } from 'react-hotkeys'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { me ...
src/parser/deathknight/blood/modules/talents/Tombstone.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import SpellLink from 'common/SpellLink'; import { formatNumber, formatPercentage } from 'common/format'; import DamageTracker from 'parser/shared/modules/AbilityTracker'; import TalentStatisticBox from 'in...
blueocean-material-icons/src/js/components/svg-icons/av/subtitles.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvSubtitles = (props) => ( <SvgIcon {...props}> <path d="M20 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-2zM4 12h4v2H4v-2zm10 6H4v-2h10v2zm6 0h-4v-2h4v2zm0-4H10v-2h10v2z"/> </SvgIcon> ); AvSubtitles.displayName = 'A...
src/decorators/withViewport.js
aaron-goshine/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
app/index.js
GitBlogger/GitBlogger
import React from 'react'; import ReactDOM from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import Root from './Root'; import createStore from './redux/createStore'; import './style.css'; const store = createStore(); const history = syncHistory...
src/select/Loading.js
sthomas1618/react-crane
import React from 'react' import PropTypes from 'prop-types' function Loading({ isLoading, loadingRenderer }) { if (!isLoading) { return null } const renderer = loadingRenderer ? ( loadingRenderer({ isLoading }) ) : ( <div className="crane-select-loading" /> ) return <div className="crane-sel...
src/client/Admin/AdminAnswers.js
KleeGroup/interactive-box
import React from 'react'; import Paper from 'material-ui/lib/paper'; var AdminAnswers = React.createClass({ render: function(){ var answersNodes = this.props.answersLabelsCorrect.map(function(labelCorrect) { var className = "answer-node " + (labelCorrect.correct ? "true" : "false"); ...
client/modules/Wiki/pages/WikiDetailPage.js
XuHaoJun/tiamat
import React from 'react'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; import { hot } from 'react-hot-loader'; import { replace } from 'react-router-redux'; import compose from 'recompose/compose'; import { withStyles } from '@material-ui/core/styles'; import slideHeightStyle from '../../...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
h-izumi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import emojify from '../../../emo...
src/components/question-list/QuestionList.js
marc-ed-raffalli/geo-game
import React from 'react'; import QuestionItem from './QuestionItem'; import './_questionList.css'; export default (props) => ( <ul className="list-group"> {props.questions.map((question, index) => ( <QuestionItem isImg={props.isImg} key={question.display} current={index === props....
test/helpers/shallowRenderHelper.js
pharmaceutics/Aurora-frontend
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
src/InputRange/Label.js
esseb/react-input-range
/** * @module InputRange/Label */ import React from 'react'; /** * Label React component * @class * @extends React.Component * @param {Object} props - React component props */ export default class Label extends React.Component { /** * Render method of the component * @return {string} Component JSX *...
src/svg-icons/communication/phonelink-ring.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
clients/components/Catdera/Catdera.js
CalderaWP/Caldera-Forms
import React from 'react'; import Image from '../RemotePost/Image'; export class Catdera extends React.Component { constructor(props){ super(props); this.state = { width: props.hasOwnProperty('width' ) ? props.width : '50px', height: props.hasOwnProperty('height' ) ? props.he...
src/routes/not-found/NotFound.js
aos2006/tesDeploy
/** * 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-...
app/javascript/mastodon/features/community_timeline/components/column_settings.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
examples/src/components/Multiselect.js
khankuan/react-select
import React from 'react'; import Select from 'react-select'; const FLAVOURS = [ { label: 'Chocolate', value: 'chocolate' }, { label: 'Vanilla', value: 'vanilla' }, { label: 'Strawberry', value: 'strawberry' }, { label: 'Caramel', value: 'caramel' }, { label: 'Cookies and Cream', value: 'cookiescream' }, { label...
src/shared/visualization/Treemap.js
cityofasheville/simplicity2
import React from 'react'; import PropTypes from 'prop-types'; import { ResponsiveNetworkFrame } from 'semiotic'; import { scaleSequential } from 'd3-scale'; import { interpolateLab } from 'd3-interpolate'; import Tooltip from './Tooltip'; const getDollars = (value) => { if (value > 1000000) { return ['$', (val...
src/svg-icons/image/exposure-zero.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposureZero = (props) => ( <SvgIcon {...props}> <path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44...
packages/material-ui-icons/legacy/BatteryCharging60.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9l1.87-3.5H7v9.67C7 21.4 7.6 22 8.33 22h7.33c...
src/nuggets/node/client/src/views/Weather/Components/CurrentHumidity.js
civiclee/Hack4Cause2017
import React from 'react'; const CurrentHumidity = React.createClass({ renderHumidity(){ var humidity = this.props.weather.currently.humidity; if (humidity !== ""){ humidity = humidity*100 + "%"; } return humidity; }, render() { var style = { ...
src/index.js
rcdexta/react-trello
import React from 'react' import Draggable from './dnd/Draggable' import Container from './dnd/Container' import BoardContainer from './controllers/BoardContainer' import Board from './controllers/Board' import Lane from './controllers/Lane' import deprecationWarnings from './helpers/deprecationWarnings' import Defaul...
src/components/profile_create.js
khayyamj/thunderbirds_troop51
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { createProfile } from './../actions/action_index'; class Profile extends Component { render() { const { fields: { firstname, lastname, nickname, email, address, city, state, zip, cellphone, homephone, birthday }, handleSubm...
Example/index.android.js
broberson/react-native-audio-streaming
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './App'; AppRegistry.registerComponent('Example', () => App);
3.StockQuote/src/scripts/popup.js
TravelingTechGuy/svcc-chrome-extension
import React from 'react'; import {render} from 'react-dom'; import Popup from './components/popup'; render(<Popup />, document.getElementById('app'));
client/Pages/Admin.js
codybarr/GoMobileCT
import React from 'react'; export default class Admin extends React.Component { render() { return ( <div class="Admin"> <h1>Admin</h1> {this.props.children} </div> ); } }
src/svg-icons/action/delete-forever.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
src/esm/components/graphics/icons/document-icon-empty/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["className", "children", "title"]; import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import classN...
studule_mobile/lib/AddNewEvent.js
edgarkhanzadyan/studule
import React, { Component } from 'react'; import { View, Text, TouchableOpacity, TextInput, Button, ScrollView, Picker } from 'react-native'; export default class AddNewEvent extends Component { constructor(){ super(); this.state = { week: [ {day:'Monday',schedule: []}, {day:'Tuesday',s...
app/containers/StudentGroup/CreateClass.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Formsy from 'formsy-react'; import FRC from 'formsy-react-components'; import isEmpty from 'lodash.isempty'; import { Modal } from '../../components/Modal'; import { toggleClassModal, saveNewClas...
blueocean-material-icons/src/js/components/svg-icons/file/cloud-done.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileCloudDone = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM10 17l-3.5-3.5 1.41-1.41L10 14....
app/components/children/formBuilder-children/CustomElementInput.js
asconwe/formulate
import React from 'react'; class SectionPrompt extends React.Component { constructor() { super(); this.handleBlur = this.handleBlur.bind(this); this.clear = this.clear.bind(this); } handleBlur(event) { const content = { [event.target.dataset.contentkey]: event.target.textCo...
app/javascript/mastodon/features/account_gallery/index.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from 'mastodon/actions/accounts'; import { expandAccountMediaTimeline } from '../../actions/timelines'; import LoadingIndicator from '...
packages/zensroom/lib/components/admin/AdminUsersReviews.js
SachaG/Zensroom
/* Show a user's reviews in the admin users dashboard http://docs.vulcanjs.org/admin.html */ import React from 'react'; import { Link } from 'react-router'; import { registerComponent, Utils } from 'meteor/vulcan:core'; const AdminUsersReviews = ({ document: user }) => <ul> {user.reviews && user.reviews.map...
.client/components/TodoItem.js
okmttdhr/meteor-react-redux-boilerplate
import React from 'react'; import classnames from 'classnames'; import TodoEdit from 'dir_src/components/TodoEdit'; export default class TodoItem extends React.Component { static propTypes = { todo: React.PropTypes.object.isRequired, editTodo: React.PropTypes.func.isRequired, deleteTodo: React.PropTypes....
src/Stories/TriggerList.stories.js
sashasushko/moira-front
// @flow import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import StoryRouter from 'storybook-router'; import TriggerList from '../Components/TriggerList/TriggerList'; const data = [ { error_value: 100.0, sched: { ...
src/Navbar.js
15lyfromsaturn/react-materialize
import React from 'react'; import cx from 'classnames'; import Col from './Col'; import Icon from './Icon'; class Navbar extends React.Component { constructor(props) { super(props); this.renderSideNav = this.renderSideNav.bind(this); } componentDidMount() { if ($ !== undefined) { $('.button-co...
client/src/js/components/common/nav/nav.js
muhammad-saleh/weightlyio
"use strict"; import React from 'react'; import {Router, Route, Link, IndexRoute} from 'react-router'; import HomePage from '../../HomePage'; import LoginPage from '../../LoginPage'; import NavLoggedInItems from './NavLoggedInItems'; import NavNotLoggedInItems from './NavNotLoggedInItems'; import LeftNav from 'materi...
src/server/html.js
tajo/devstack
import React from 'react'; import path from 'path'; import fs from 'fs'; const isProduction = process.env.NODE_ENV === 'production'; const buildDir = isProduction ? fs.readdirSync(path.resolve(__dirname, '../../build')) : ''; const appJS = isProduction ? buildDir.find(file => /^app\-\w+\.js$/.test(file)) : ''; const a...
src/app.js
theploki/my-react-boiler
import React from 'react' import ReactDOM from 'react-dom' import { Hello } from './HelloComponent' const render = (Component) => { ReactDOM.render( <Component/>, document.getElementById('root') ); }; render(Hello) // Hot Module Replacement API if (module.hot) { module.hot.accept('./Hello...
src/javascript/reduxtodo/ReduxTodoApp.js
cuzofu/sell-orange
import React from 'react'; var createReactClass = require('create-react-class'); import { createStore } from 'redux'; import { Provider } from 'react-redux'; import Index from './views/index' import todoApp from './reducers/reducer'; let store = createStore(todoApp); // 每次state更新时,打印日志 let unSubscribe = store.subscr...
src/App.js
chopublica/chopublica.github.io
import React from 'react'; import { BrowserRouter as Router } from 'react-router-dom' import { connect } from 'react-redux'; import Body from './containers'; import Navigation from './components/Navigation/Navigation' import { Container } from 'semantic-ui-react' const App = () => { return ( <Router> <Cont...
packages/benchmarks/emotion/extract-static/client/index.js
A-gambit/CSS-IN-JS-Benchmarks
import ReactDOM from 'react-dom'; import React from 'react'; import App from 'benchmarks-utils'; import Table from './Table'; import './index.html'; ReactDOM.render(<App table={Table} />, document.getElementById('root'));
src/components/App.js
benuchadnezzar/subway-checker
import React, { Component } from 'react'; import SubCheck from './SubCheck'; import './App.css'; class App extends Component { render() { return ( <div> <h1>Subway Checker</h1> <SubCheck /> </div> ); } } export default App;
src/svg-icons/maps/local-mall.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
clients/packages/admin-client/src/mobilizations/components/list/index.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' const List = ({ children }) => ( <div className='list gray20 content-box'> {children} </div> ) List.propTypes = { children: PropTypes.oneOfType([ PropTypes.object, PropTypes.array ]).isRequired } export default List
src/Switch/Switch.stories.js
ctco/rosemary-ui
import React from 'react'; import { storiesOf } from '@storybook/react'; import Switch from './Switch'; storiesOf('Switch', module) .add('Controlled', () => <Switch onChange={value => console.log(value)} value={false} title="This is Title" />) .add('Checked Not Controlled', () => ( <Switch onChange={va...
src/parser/hunter/shared/modules/features/focuschart/FocusComponent.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; const FocusComponent = ({ categories, abilities, passive, focusBySecondCoord, overCapBySecondCoord }) => { if (!abilities) { return <div>Loading...</div>; } ret...
src/components/Table.js
GriddleGriddle/Griddle
import React from 'react'; export const Table = ({ TableHeading, TableBody, Loading, NoResults, style, className, dataLoading, visibleRows }) => dataLoading ? (Loading && <Loading />) : visibleRows > 0 ? ( <table style={style} className={className}> { TableHeading && <TableHeading /> } { TableBod...
lib/components/create-project.js
conveyal/scenario-editor
// @flow import Icon from '@conveyal/woonerf/components/icon' import message from '@conveyal/woonerf/message' import React from 'react' import Select from 'react-select' import type {Bundle} from '../types' import {Application, Title, Dock} from './base' import {Button} from './buttons' import {Group as FormGroup, Te...
framework/react/react-tutorials/src/demo/app/App.js
yhtml5/YHTML5-Tutorial
import React, { Component } from 'react'; import logo from '../../static/logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h...
packages/icons/src/md/image/Crop54.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdCrop54(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 10H10c-2.21 0-4 1.79-4 4v20c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V14c0-2.21-1.79-4-4-4zm0 24H10V14h28v20z" /> </IconBase> ); } export defa...
bai/src/components/ProgramsHeader/index.js
blackinai/blackinai.github.io
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Typography from '../Typography'; import { CardMedia, Container, Grid, } from '@material-ui/core'; import image from './../../assets/img/header/bai-img-5.jpg'; const styles = (theme) => ({ ro...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
lzpfmh/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import { assign } from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import classnames from 'classnames'; import ActorClient from 'utils/ActorClient'; import confirm from '...
app/routes.js
codymorrison/gitassist
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} /> <Route path...
client/src/pages/activeRelease/tags/index.js
csleary/nemp3
import { animated, config, useTrail } from 'react-spring'; import { shallowEqual, useDispatch, useSelector } from 'react-redux'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import React from 'react'; import { faTags } from '@fortawesome/free-solid-svg-icons'; import { nanoid } from '@reduxjs/toolk...
app/javascript/mastodon/components/status.js
yukimochi/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
src/Game/UI/Panel/Component/Header.js
digijin/space-station-sim
//@flow import React from 'react' import Close from './Close' type Props = { close:Function, text:string } export default class Header extends React.Component{ props:Props render(){ return <h3 className='header'> {this.props.text} <Close close={this.props.close} /> </h3> } }
src/Parser/DeathKnight/Unholy/Modules/Features/Checklist.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import Wrapper from 'common/Wrapper'; import CoreChecklist, { Rule, Requirement } from 'Parser/Core/Modules/Features/Checklist'; import { PreparationRule } from 'Parser/Core/Modu...
docs/src/examples/modules/Dropdown/Usage/DropdownExampleCustomNoResultsMessage.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' const DropdownExampleCustomNoResultsMessage = () => ( <Dropdown options={[]} search selection placeholder='A custom message...' noResultsMessage='Try another search.' /> ) export default DropdownExampleCustomNoResultsMessag...
src/desktop/apps/categories/components/TAGPContent.js
kanaabe/force
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import TAGPIntro from './TAGPIntro' import GeneFamilies from './GeneFamilies' const propTypes = { geneFamilies: PropTypes.array.isRequired, allFeaturedGenesByFamily: PropTypes.array.isRequired } const ResponsiveCo...
app/react-icons/fa/h-square.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaHSquare extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.6 30v-20q0-0.6-0.5-1t-1-0.4h-2.8q-0.6 0-1 0.4t-0.4 1v7.1h-11.5v-7.1q0-0....
src/components/TeamPage/TeamPage.js
ScrantonHacks/website
import React from 'react'; import DeployIcon from 'grommet/components/icons/base/Deploy'; import SyncIcon from 'grommet/components/icons/base/Sync'; import TechnologyIcon from 'grommet/components/icons/base/Technology'; import Columns from 'grommet/components/Columns'; import Box from 'grommet/components/Box'; import s...
src/views/sandbox/children/stateful/StatefulView.js
kallaspriit/react-base
import React, { Component } from 'react'; export default class StatefulView extends Component { state = { counter: 0, }; render = () => ( <div className="stateful-view"> <h2>Counter example based on state</h2> <p>Counter: {this.state.counter}</p> <button onClick={this.handleIncrementCounter}>Incremen...
src/routes/register/index.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 Layout from '../../co...
app/jsx/calendar/scheduler/components/appointment_groups/EditPage.js
venturehive/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...
src/routes/dashboard/components/user.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import { Button } from 'antd' import CountUp from 'react-countup' import { color } from 'utils' import styles from './user.less' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: ',', } function User (...