path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/Parser/Monk/Mistweaver/Modules/Talents/Lifecycles.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Combatants from 'Parser/Core/Modules/Combatants'; import Anal...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
taimur97/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
src/primitives/icons/dice.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default function Dice({ size, className, ...props }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style={{ width: size, height: size, fill: 'transparent' }} ...
assets/js/components/Todo.js
WheresMarco/Winhill
import React from 'react'; import Header from './Header'; import AddJobForm from './AddJobForm'; import JobList from './JobList'; import autobind from 'autobind-decorator'; import Catalyst from 'react-catalyst'; import reactMixin from 'react-mixin'; // Material UI import { RefreshIndicator } from 'material-ui'; // Fi...
assets/js/DollarInput.js
codeforgoodconf/sisters-of-the-road-admin
import React, { Component } from 'react'; class DollarInput extends Component { constructor () { super(); this.state = { amount: '' }; } onAmountChange (amount) { this.setState({amount: amount}); this.props.updateAmount(amount); } render () { ...
src/components/field/form/index.js
bobinette/papernet-front
import PropTypes from 'prop-types'; import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import classNames from 'classnames'; import { FormPropType } from 'components/field/propTypes'; import MarkdownForm from 'components/field/markdown'; import TextForm from 'components/field/text'...
src/routes/Counter/components/Counter.js
sidkarwal/politicl-wb-app
import React from 'react' import PropTypes from 'prop-types' export const Counter = ({ counter, increment, doubleAsync }) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {counter}</h2> <button className='btn btn-primary' onClick={increment}> Increment </button> {' '} <button className...
docs/server.js
tonylinyy/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
ReactNative/Albums/src/components/Card.js
makingsensetraining/mobile-pocs
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { borderWidth: 1, borderRadius: 2, borderColor: '#ddd', borderBottomWidth: 0, ...
yycomponent/spin/Spin.js
77ircloud/yycomponent
import React from 'react'; import { Spin as _Spin } from 'antd'; class Spin extends React.Component{ constructor(props){ super(props); } render(){ return (<_Spin {...this.props}/>); } } export default Spin
client/views/teams/contextualBar/ChannelRow.js
VoiSmart/Rocket.Chat
import { CheckBox, Table, Icon, Margins } from '@rocket.chat/fuselage'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import React from 'react'; import { useRoomIcon } from '../../../hooks/useRoomIcon'; const ChannelRow = ({ onChange, selected, room, lastOwnerWarning = '', formatDate }) => { cons...
src/platform/site-wide/side-nav/components/ExpandCollapseIcon.js
department-of-veterans-affairs/vets-website
// Dependencies import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { get } from 'lodash'; // Relative import { NavItemPropTypes } from '../prop-types'; const ExpandCollapseButton = ({ depth, item }) => { // Derive item properties. const expanded = get(item, '...
app/containers/App.js
aaronjameslang/nhshd17
// @flow import React, { Component } from 'react'; import Navbar from '../components/Navbar'; import NavTabs from '../components/NavTabs'; import FooterNav from '../components/FooterNav'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> ...
screens/initialScreen.js
yeso126/Mapapp
import React, { Component } from 'react'; import { StyleSheet, View, Button, } from 'react-native'; import Logo from '../components/logo'; import { NavigationActions } from 'react-navigation'; const goToHighScores = new NavigationActions.navigate({ routeName: 'HighScores', params: {}, action: Navigation...
index.js
ViniciusAtaide/edgartccfront
import React from 'react' import BrowserHistory from 'react-router/lib/BrowserHistory' import HashHistory from 'react-router/lib/HashHistory' import Root from './main/Root' const history = process.env.NODE_ENV === 'production' ? new HashHistory() : new BrowserHistory() React.render(<Root history={history} />, docume...
src/index.js
Clemson-University-Energizer/energizer-app
import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, withRouter, Switch } from 'react-router-dom'; import { createBrowserHistory } from 'history'; import 'rxjs'; import { createStore, applyMiddleware, combineReducers } from 'redux'; import { createEpicMiddleware, combineEpics } from 're...
src/Parser/Shaman/Restoration/Modules/Features/MasteryEffectiveness.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import StatTracker from 'Parser/Core/Modules/StatTracker'; imp...
closure-comments/frontend/src/index.js
cloudbirds/comments
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
actor-apps/app-web/src/app/components/common/Fold.React.js
berserkertdl/actor-platform
/* eslint-disable */ import React from 'react'; import classnames from 'classnames'; class Fold extends React.Component { static PropTypes = { icon: React.PropTypes.string, iconClassName: React.PropTypes.string, title: React.PropTypes.string.isRequired }; state = { isOpen: false }; construc...
app/javascript/mastodon/features/domain_blocks/index.js
rainyday/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
test/utils/nestedShallow.js
Semantic-Org/Semantic-UI-React
import { Ref } from '@fluentui/react-component-ref' import enzyme from 'enzyme' import _ from 'lodash' import React from 'react' const diveToLevel = (wrapper, autoNesting, nestingLevel) => { let nestedWrapper = wrapper if (autoNesting && nestedWrapper.is(React.Fragment)) { nestedWrapper = nestedWrapper.childA...
src/Work/Work.js
353090398/big-demo
import React from 'react'; import Img1 from '../images/2.jpg'; import Img2 from '../images/3.jpg'; import Img3 from '../images/4.jpg'; import Img4 from '../images/5.jpg'; class Work extends React.Component { render () { return( <div className="work-container"> <div className="work-card"> ...
app/components/List/index.js
mydearxym/coder_club_frontend
import React from 'react'; import Ul from './Ul'; import Wrapper from './Wrapper'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item) => ( <ComponentToRender item...
src/website/app/pages/RenderProps/index.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Markdown from '../../Markdown'; import content from './render-props.md'; import examples from './examples/index'; type Props = {}; export default function RenderProps(props: Props) { return ( <Markdown scope={examples} {...props}> {content} </Markdown> )...
lib/Selection/stories/BasicUsage.js
folio-org/stripes-components
/** * Selection basic usage */ import React from 'react'; import Selection from '../Selection'; // the dataOptions prop takes an array of objects with 'label' and 'value' keys const countriesOptions = [ { value: 'AU', label: 'Australia' }, { value: 'CN', label: 'China' }, { value: 'DK', label: 'Denmark' }, ...
resources/assets/components/utilities/Modal.js
DoSomething/rogue
import React from 'react'; const Modal = ({ children, onClose }) => ( <div className="modal-container"> <div className="modal"> <button onClick={onClose} className="modal-close-button"> &times; </button> {children} </div> </div> ); export default Modal;
test/index.js
viromedia/viro
/** * Copyright (c) 2015-present, Viro, 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. */ import React, ...
frontend/src/Movie/Index/Table/MovieIndexTableOptions.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import { inputTypes } from 'Helpers/Props'; import translate from 'Utilities/St...
docs/src/pages/component-demos/menus/SimpleListMenu.js
dsslimshaddy/material-ui
// @flow weak import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import List, { ListItem, ListItemText } from 'material-ui/List'; import Menu, { MenuItem } from 'material-ui/Menu'; const styles = theme => ({ root: { width: '100%', m...
examples/03 - Basic auth/components/Login.js
Kureev/browserify-react-live
import React from 'react'; import auth from '../vendor/auth'; export default class Login extends React.Component { constructor() { super(); this.handleSubmit = this.handleSubmit.bind(this); this.state = { error: false, }; } handleSubmit(event) { event.preventDefault(); var { router...
src/components/LoginRedirect.js
forkhacker/webapp-react
import React from 'react'; import Loader from './common/Loader'; class LoginRedirect extends React.Component { constructor(props) { super(props); } componentDidMount() { const code = this.props.location.query.code; window.opener.postMessage(code, window.location); window.c...
examples/counter/index.js
xiaoking/redux
import React from 'react'; import App from './containers/App'; React.render( <App />, document.getElementById('root') );
src/collections/Grid/GridColumn.js
Semantic-Org/Semantic-UI-React
import cx from 'clsx' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, createShorthandFactory, getElementType, getUnhandledProps, SUI, useKeyOnly, useMultipleProp, useTextAlignProp, useValueAndKey, useVerticalAlignProp, useWidthProp, } from '../../lib' /** ...
20161207/RN-router/index.ios.js
fengnovo/react-native
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './rn/app.js'; class RNRouter extends Component { render() { return <App /> } } AppRegistry.registerComponent('RNRouter', () => RNRouter);
js/components/App.react.js
Termina1/react-shower
import React, { Component } from 'react'; import config from "config.json"; export default class App extends Component { static childContextTypes = { proportions: React.PropTypes.string } getChildContext() { return { proportions: config.proportions } } render() { return this.props.ch...
src/@ui/EmbeddedVideoPlayer/EmbeddedVideoPlayer.stories.js
NewSpring/Apollos
import React from 'react'; import { Platform, View } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import EmbeddedVideoPlayer from './'; const embedUrl = 'https://player.ooyala.com/static/v4/production/latest/skin-plugin/iframe.html?ec=h2anlxYzE6G8splCI1Fi-VQciOUJ-fl8&pbid=ZmJmNTVlNDk1Njcw...
src/icons/RemoveCircleIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class RemoveCircleIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 22H14v-4h20v4z"/></svg>;} };
src/app/index.js
zalmoxisus/crossbuilder
import React from 'react'; import { render } from 'react-dom'; import Root from 'app/containers/Root'; import configureStore from '../app/store/configureStore'; configureStore(store => { render( <Root store={store} />, document.getElementById('root') ); });
zoho-experiments/app/components/LoadingIndicator/Circle.js
glandre/prototypes
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = (props) => { const CirclePrimitive = styled.div` width: 100%; heig...
imports/ui/pages/Login.js
GreatFallz/base
import React from 'react'; import { Link } from 'react-router'; import { Row, Col, FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import handleLogin from '../../modules/login'; export default class Login extends React.Component { componentDidMount() { handleLogin({ component: this }); }...
public/components/tehtPage/tabsComponents/reusables/ItemContainer.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; const ItemContainer = (props) => ( <div className="turvallisuushenkilosto"> <ul> {props.pelastussuunnitelmatab.map((h) => <li className={ props.filter.arr.findIndex(a => a.id===h.nameId)!=-1 ? "selected" : "unselected"}> <a onClick=...
src/mui/field/ChipField.js
marmelab/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import pure from 'recompose/pure'; import Chip from 'material-ui/Chip'; const ChipField = ({ source, record = {}, elStyle = { margin: 4 } }) => ( <Chip style={elStyle}>{get(record, source)}</Chip> ); ChipField.propTypes =...
docs/src/app/components/pages/components/GridList/ExampleComplex.js
kittyjumbalaya/material-components-web
import React from 'react'; import {GridList, GridTile} from 'material-ui/GridList'; import IconButton from 'material-ui/IconButton'; import StarBorder from 'material-ui/svg-icons/toggle/star-border'; const styles = { root: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-around', }, gridLi...
client/node_modules/uu5g03/doc/main/client/src/components/component-vuc.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import UU5 from 'uu5'; import Calls from '../calls.js'; import Breadcrumbs from '../bricks/breadcrumbs.js'; import ComponentLoader from './component-loader.js'; import './component-vuc.css'; export default React.createClass({ //@@viewOn:mixins mixins: [ UU5.Common.BaseMixin, U...
node_modules/@material-ui/core/es/FormControl/FormControlContext.js
pcclarke/civ-techs
import React from 'react'; /** * @ignore - internal component. */ const FormControlContext = React.createContext(); export default FormControlContext;
src/svg-icons/notification/drive-eta.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDriveEta = (props) => ( <SvgIcon {...props}> <path d="M18.92 5.01C18.72 4.42 18.16 4 17.5 4h-11c-.66 0-1.21.42-1.42 1.01L3 11v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 ...
node_modules/antd/es/grid/row.js
ZSMingNB/react-news
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
Libraries/Components/Navigation/NavigatorIOS.ios.js
frantic/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...
src/components/ShortcutsModal.js
fateseal/react-mtg-playtester
import React from 'react'; import { playtesterShortcuts, cardShortcuts } from '../keymap'; import Modal from './Modal'; const ShortcutItem = ({ label, keys }) => ( <tr> <td className="rmp--shortcuts-keys"> <kbd className="rmp--kbd">{keys}</kbd> </td> <td className="rmp--shortcuts-label">{label}</...
src/pages/page-2.js
derrickyoo/derrickyoo.com
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' const SecondPage = () => ( <Layout> <SEO title="Page two" /> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> <...
app/views/Proposals/Proposal/Decisions/Decision/Metrics/Metrics.js
RcKeller/STF-Refresh
import React from 'react' // import PropTypes from 'prop-types' import { Table, Alert } from 'antd' const columns = [ { title: 'Prompt', dataIndex: 'prompt', key: 'prompt' }, { title: 'Score', dataIndex: 'score', key: 'score', width: 40 } ] /* METRICS COMPONENT: Ad...
ui/src/containers/VisualiseForm/index.js
LearningLocker/learninglocker
import React from 'react'; import { LEADERBOARD, STATEMENTS, COUNTER, XVSY, FREQUENCY, PIE, TEMPLATE_ACTIVITY_OVER_TIME, TEMPLATE_LAST_7_DAYS_STATEMENTS, TEMPLATE_MOST_ACTIVE_PEOPLE, TEMPLATE_MOST_POPULAR_ACTIVITIES, TEMPLATE_MOST_POPULAR_VERBS, TEMPLATE_WEEKDAYS_ACTIVITY, TEMPLATE_STREAM_INTE...
src/svg-icons/action/class.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionClass = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionClass = pure(ActionClass);...
examples/webpack2/src/main.js
shengnian/shengnian-ui-react
import React from 'react' import { render } from 'react-dom' import { Button, Container, Header } from 'shengnian-ui-react' const MOUNT_NODE = document.getElementById('root') const App = () => ( <Container> <Header as='h1'>Hello world!</Header> <Button content='文档' href='http://shengnian.github...
src/components/lists/ConnectionList.js
whphhg/vcash-ui
import React from 'react' import List from 'react-list' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' /** Component */ import ConnectionListItem from './ConnectionListItem.js' @translate(['common']) @inject('connections', 'gui') @observer class ConnectionList extends React.Co...
app/javascript/mastodon/features/home_timeline/index.js
cobodo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
react/examples/Code/Forms/Uncontrolled/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import App from './components/App'; import store from './store'; render( <Provider store={store}> <App /> </Provider>, document.getElementById('root') );
client/src/components/Admin/Users/Filter/index.js
dotkom/super-duper-fiesta
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import setUserFilter from 'features/userFilter/actionCreators'; import css from './Filter.css'; const UserFilter = ({ filter, onChange }) => ( <div className={css.filter}> <label> Filtrer brukere: <input ...
src/Posts/posts.js
jasongforbes/jforbes.io
import React from 'react'; import PropTypes from 'prop-types'; import Grid from '@material-ui/core/Grid'; import Hidden from '@material-ui/core/Hidden'; import { withStyles } from '@material-ui/core/styles'; import { Link, Redirect } from 'react-router-dom'; import Summary from './summary'; import posts from './posts.j...
src/svg-icons/navigation/arrow-drop-down-circle.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
node_modules/react-native/local-cli/generator/templates/index.ios.js
horizon-z40/RN-homework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class <%= name %> extends Component { render() { return ( <View style={styles.container}> <T...
template/src/renderer/Routes.js
my-dish/template-electron
// @flow import React from 'react'; import { Switch, Route } from 'react-router'; import App from './components/App'; import Login from './containers/Login'; const Router = () => ( <App> <Switch> <Route path="/none"><div>hello!</div></Route> {/* root */} <Route component={Login} /> </Switch> <...
src/components/Currencies.js
RoxasShadow/ginko
import React from 'react'; import CurrencySelector from './CurrencySelector'; import './CurrencySelector.css'; import { diffAmounts, formatMoney, fetch } from '../utils'; class Currencies extends React.Component { constructor() { super(); this.state = { totalAmount: 0.0, initialAmount: 0.0 ...
client/components/Message/Attachments/Attachments.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import Attachments from '.'; export default { title: 'Message/Attachments', component: Attachments, }; const field = { color: '#ff0000', text: 'Yay for gruggy!', pretext: 'Pre Text', mrkdwn_in: ['fields'], title: 'Attachment Example', title_link: 'https://youtube.com', fields: [ ...
example/src/components/video/preview.js
mrblueblue/react-collider
import React from 'react' import {Link} from 'react-router' export default class VideoPreview extends React.Component { render() { return ( <div className="video-preview"> <div className="row"> <div className="col-sm-6"> <Link to="vide...
src/svg-icons/action/assessment.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
services/ui/src/components/LogViewer/index.js
amazeeio/lagoon
import React from 'react'; import { bp } from 'lib/variables'; const LogViewer = ({ logs }) => ( <React.Fragment> <div className="logs"> <div className="log-viewer">{logs || 'Logs are not available.'}</div> </div> <style jsx>{` .logs { padding: 0 calc(100vw / 16) 48px; width: ...
react-native/AwesomeProject/screens/HomeScreen.js
glandre/prototypes
import React from 'react'; import { Image, Platform, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import { WebBrowser } from 'expo'; import { MonoText } from '../components/StyledText'; export default class HomeScreen extends React.Component { static navigationOptions =...
envkey-react/src/components/assoc_manager/assoc_row/row_display/keyable_actions.js
envkey/envkey-app
import React from 'react' import R from 'ramda' import h from "lib/ui/hyperscript_with_helpers" import {twitterShortTs} from 'lib/utils/date' import {imagePath} from "lib/ui" import {capitalize} from "lib/utils/string" import SmallLoader from 'components/shared/small_loader' import KeyIcon from "components/shared/key_i...
src/Sandbox/Drawer/Drawer.js
MLsandbox/MLsandbox
import React from 'react'; import { Link } from 'react-router-dom'; import Logout from '../../Logout/index.js'; import Description from './Description.js'; import './drawerStyles.css'; const Drawer = ({modelName, description}) => { return ( <nav className="navbar navbar-dark drawer"> <Description descript...
src/components/Footer/index.js
f74981743/f74981743.github.io
import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <footer> <div className="container"> <a href="mailto:bewitchsky@gmail.com" className="icon-mail"></a> <a href="http://www.linkedi...
src/svg-icons/content/archive.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentArchive = (props) => ( <SvgIcon {...props}> <path d="M20.54 5.23l-1.39-1.68C18.88 3.21 18.47 3 18 3H6c-.47 0-.88.21-1.16.55L3.46 5.23C3.17 5.57 3 6.02 3 6.5V19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6.5c0-.48-....
src/index.js
chenchenalex/react-reusable-chenchenalex
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Docs from './docs/Docs'; import '../node_modules/highlight.js/styles/ocean.css'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<Docs />, document.getElementById('root')); registerServiceWorker();
components/home/Hero.js
Skyd1400/skydev
import React from 'react'; import { translate } from 'react-i18next'; import i18n from '../../i18n'; const Hero = ({ t }) => ( <section className="hero"> <div className="container"> <div className="avatar"> <img src="./static/img/profile.jpg"/> </div> <h...
src/slides/six/variables.js
brudil/slides-es6andbeyond
import React from 'react'; import Radium from 'radium'; import Snippet from '../../Snippet'; import {bindShowHelper} from '../../utils'; const styles = { inlinePre: { display: 'inline' }, slide: { textAlign: 'center' } }; const source = ` const meetup = {}; meetup.name = 'WDOTS'; // all good. meetup...
node_modules/react-navigation/src/views/Transitioner.js
RahulDesai92/PHR
/* @flow */ import React from 'react'; import { Animated, StyleSheet, View } from 'react-native'; import invariant from 'fbjs/lib/invariant'; import NavigationScenesReducer from './ScenesReducer'; import TransitionConfigs from './TransitionConfigs'; import type { NavigationLayout, NavigationScene, Navigation...
platform/viewer/src/googleCloud/ProjectsList.js
OHIF/Viewers
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import './googleCloud.css'; import { withTranslation } from 'react-i18next'; import { Icon } from '@ohif/ui'; class ProjectsList extends Component { state = { search: '', highlightedItem: null, }; static propTypes = { proj...
client/src/components/RouteTransition/index.js
steThera/react-mobx-koa
import React from 'react'; import { RouteTransition } from 'react-router-transition'; import ContentWrapper from 'components/ContentWrapper'; import presets from './presets.js'; export const FadeTransition = props => ( <Transition preset={presets.fade} {...props} /> ); export const SlideLeftTransition = pr...
web/src/pages/404.js
MauriceMahan/FocusOverlay
import React from 'react' import Layout from '../components/layout' const NotFoundPage = () => ( <Layout> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </Layout> ) export default NotFoundPage
src/parser/shared/modules/resources/mana/ManaLevelChart.js
sMteX/WoWAnalyzer
import React from 'react'; import Panel from 'interface/statistics/Panel'; import Analyzer from 'parser/core/Analyzer'; import ManaValues from 'parser/shared/modules/ManaValues'; import ManaLevelChartComponent from './ManaLevelChartComponent'; class ManaLevelChart extends Analyzer { static dependencies = { man...
src/pages/page-2.js
alecgorge/alecgorge.com
import React from 'react' import Link from 'gatsby-link' const SecondPage = () => ( <div> <h1>Hi from the second page</h1> <p>Welcome to page 2</p> <Link to="/">Go back to the homepage</Link> </div> ) export default SecondPage
app/components/Blog/Post.js
sysrex/sysrex
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; const Post = (props) => { if (props.href.match(/^(https?:)?\/\//)) { return ( <a href={props.href}> {props.children} </a> ); } return ( <Link to={props.href}>{props.children}</L...
docs/src/SupportPage.js
coderstudy/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
src/ui/pages/_info.js
e-Ray/web_platform
import React, { Component } from 'react'; import { firebaseAuth } from '../../api/Auth/_constants'; import { ref } from '../../api/Auth/_constants'; import Loader from 'react-loader'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; import RaisedButton from 'material-ui/RaisedButton'; @observ...
app/components/TwitterPicker/index.js
juanda99/arasaac-frontend
import React from 'react' import PropTypes from 'prop-types' import reactCSS from 'reactcss' import map from 'lodash/map' import merge from 'lodash/merge' import color from './helpers/color' import { ColorWrap, EditableInput, Swatch } from './common' export const Twitter = ({ onChange, onSwatchHover, hex, col...
app/scripts/containers/withUserStatus.js
adzialocha/hoffnung3000
import React from 'react' import { connect } from 'react-redux' import { updateStatus } from '../actions/userStatus' export default function withAuthState(WrappedComponent) { function mapStateToProps(state) { return { ...state.userStatus, } } return connect(mapStateToProps, { updateStatus })(prop...
spec/javascripts/jsx/assignments/GradeSummary/components/GradesGrid/GridSpec.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...
blueocean-material-icons/src/js/components/svg-icons/file/folder-shared.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileFolderShared = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-5 3c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2zm4 8h-8v-1c0-1.33 2.67-2 4-2s4 .67 4 2v1z...
css-loader/button.js
kwangkim/css-in-js
import React from 'react'; import styles from './button.css'; let Button = React.createClass({ render() { return ( <div className={styles.container}> <button className={styles.button}>Click me!</button> </div> ); } }); React.render(<Button />, document.getElementById('content'));
addons/graphql/src/preview.js
enjoylife/storybook
import React from 'react'; import GraphiQL from 'graphiql'; import { fetch } from 'global'; import 'graphiql/graphiql.css'; import FullScreen from './components/FullScreen'; const FETCH_OPTIONS = { method: 'post', headers: { 'Content-Type': 'application/json' }, }; function getDefautlFetcher(url) { return para...
server/sonar-web/src/main/js/apps/component-measures/components/Measure.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
webpack/ForemanTasks/Components/TaskDetails/Components/Errors.js
adamruzicka/foreman-tasks
import React from 'react'; import PropTypes from 'prop-types'; import { Alert } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const Errors = ({ ...props }) => { const { failedSteps, executionPlan } = props; if (!executionPlan) return ( <Alert type="error">{__('Execu...
app/ui/widgets/brick.js
vnovick/RNSpacePong
import React, { Component } from 'react'; import { View, Image, StyleSheet } from 'react-native'; const getBrickTypes = (style) => ({ 1: <View style={[ style , styles.brick]}></View>, 2: <Image source={require('../../assets/imgs/asteroid_texture.gif')} style={[ style, styles.brick, { height: style.height + ...
app/javascript/mastodon/features/ui/components/column_header.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, ...
ui/js/containers/App/App.js
NitorCreations/willow-ui
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class App extends Component { static propTypes = { children: React.PropTypes.any }; render() { return ( <div> <h1 className="title">Hello from App.js</h1> <ul> <li><Link to="/ui/...
stories/index.js
aloaiza/ReduxSimpleStarter
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { storiesOf, action, linkTo } from '@kadira/storybook'; import SearchBar from '../src/components/search_bar'; import Welcome from './Welcome'; storiesOf('Wel...
js-old/src/modals/Verification/how-it-works.js
destenson/ethcore--parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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 lat...
frontend/src/app.js
rarellano/socializa
import React from 'react'; import { hashHistory } from 'react-router'; import NavBar from './navbar'; import $ from 'jquery'; window.$ = window.jQuery = $; var Bootstrap = require('bootstrap'); Bootstrap.$ = $; export default class App extends React.Component { state = { title: 'Socializa', active: null } ...
docs/src/pages/components/transitions/SimpleZoom.js
lgollut/material-ui
import React from 'react'; import Switch from '@material-ui/core/Switch'; import Paper from '@material-ui/core/Paper'; import Zoom from '@material-ui/core/Zoom'; import FormControlLabel from '@material-ui/core/FormControlLabel'; import { makeStyles } from '@material-ui/core/styles'; const useStyles = makeStyles((theme...
src/admin/components/UsersList/Header.js
welovekpop/uwave-web-welovekpop.club
import React from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import compose from 'recompose/compose'; import withProps from 'recompose/withProps'; import withHandlers from 'recompose/withHandlers'; const enhance = compose( withProps(({ onFilter }) => ({ onFilterDebounced...