path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/index.js
OSBI/saiku-report-viewer-ui
/** * Copyright 2017 OSBI Ltd * * 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 ...
spec/sections/NavBarSection.js
kmees/react-fabric
import React from 'react' import NavBar from '../../src/NavBar' const IndexLink = ({ to, children, ...props }) => ( <a {...props} href={to}>{children}</a> ) IndexLink.propTypes = { children: React.PropTypes.node, to: React.PropTypes.string } const NavBarSection = () => ( <NavBar> <div>Foo</div> <div>...
src/app/Layout/index.react.js
ryym/play-flex
import React from 'react'; import Header from './components/Header'; /** * Render common layout of this app. */ export default class Layout extends React.Component { render() { return ( <div className="layout"> <div className="layout-center"> <Header /> <div className="layout_...
node_modules/react-router/es/Route.js
juhov/travis-test
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
pswoodworth/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; const moreIndicatorStyle =...
client/index.js
Danielbook/liftinglog
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
src/app/src/components/price.js
vanwalj/gfx-track
'use strict'; import React from 'react'; import numeral from '../services/numeral'; module.exports = (props) => <span {...props}>{numeral(props.value / 100).format('0.00$')}</span> ;
src/components/app.js
fpyang/Macaroon
import React, { Component } from 'react'; import BoxList from '../container/boxList'; class App extends Component { render() { return ( <div> <BoxList/> </div> ); } } export default App;
src/components/body/hashtaglistings.js
ericaporter/trending-hashtags
import React from 'react'; class HashtagListings extends React.Component { render(){ return <h2>Hashtag Listings go here</h2> } } export default HashtagListings;
features/filmStrip/components/web/ModeratorIndicator.js
jitsi/jitsi-meet-react
import React, { Component } from 'react'; import Icon from 'react-fontawesome'; import { styles } from './styles'; /** * Thumbnail badge showing that the participant is a conference moderator. */ export class ModeratorIndicator extends Component { /** * Implements React's {@link Component#render()}. *...
ajax/libs/react-instantsearch/5.7.0/Connectors.js
joeyparrish/cdnjs
/*! React InstantSearch 5.7.0 | © Algolia, inc. | https://github.com/algolia/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) : ...
client/src/components/Header.js
luckyadam/book
'use strict'; import React, { Component } from 'react'; export default class Header extends Component { render () { return ( <header className='header'> <h1 className='header_title'>李伟涛的小书屋</h1> </header> ); } }
app/containers/Header.js
arixse/ReactNeteaseCloudMusic
import React, { Component } from 'react'; // import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; // import { Tab, Tabs } from 'material-ui/Tabs'; // import FontIcon from 'material-ui/FontIcon'; import GridItem from '../components/GridItem'; // import { connect } from 'react-redux'; // import { fetch } f...
src/routes/not-found/NotFound.js
binyuace/vote
/** * 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/src/components/File/LoadModal.js
civa86/electrophone
import React from 'react'; import $ from 'jquery'; import { ActionHandler } from '../../components/ActionHandler'; import ItemsList from './ItemsList'; const LoadModal = (props) => { const { items, actions, localCacheKey } = props, h = $(window).height() / 2; return ( <div id="load-o...
src/pages/Forms/RegularForms/index.js
JSLancerTeam/crystal-dashboard
import React from 'react'; import StackedForm from './StackedForm'; import HorizontalForm from './HorizontalForm'; import FormElements from './FormElements'; const RegularForms = () => ( <div> <div className="row"> <div className="col-md-6"> <StackedForm onSubmit={values => alert('Enter values: ' +...
src/components/RemoveConfigItem.js
danesparza/centralconfig-ui
// React import React, { Component } from 'react'; // Utils import CentralConfigAPIUtils from '../utils/CentralConfigAPIUtils'; class RemoveConfigItem extends Component { render() { return ( <button className="btn btn-sm btn-outline-danger" onClick={() => this._removeClick(this.props.item)}...
docs-ui/components/splitDiff.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; // import {action} from '@storybook/addon-actions'; import SplitDiff from 'app/components/splitDiff'; const base = `RangeError: Invalid array length at Constructor.render(./app/components/scoreBar....
examples/sidebar/app.js
freeyiyi1993/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link } from 'react-router'; import data from './data'; var Category = React.createClass({ render() { var category = data.lookupCategory(this.props.params.category); return ( <div> <h1>{cat...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/DefaultParameters.js
viankakrisna/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'; function load(id = 0) { return [ { id: id + 1, name...
examples/InputSwitch.js
jsbranco/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input name='on' type='switch' value='1' /> </Row>;
src/Option.js
DanielHeath/react-select
import React from 'react'; import classNames from 'classnames'; const Option = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, // className (based on mouse position) instancePrefix: React.PropTypes.string.isRequired, // unique prefix for the ids (...
src/components/ECharts/graphChart.js
joe-sky/flarej
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { registerComponent } from 'nornj'; import EChartsEnhance from './EChartsEnhance'; import 'echarts/lib/chart/graph'; import template from './ECharts.t.html'; class GraphChart extends Component { static propTypes = { type: PropTy...
sam-front/src/components/ItemView/DashboardButton.js
atgse/sam
import React from 'react'; import IconButton from 'material-ui/IconButton'; import DashboardIcon from 'material-ui/svg-icons/action/dashboard'; const DashboardButton = ({ style, onClick, tooltip }) => ( <IconButton style={{ ...style, zIndex: 2000 }} tooltip={tooltip} tooltipPosition="bottom...
src/components/About/GithubAccount/UserInfo1.js
lzm854676408/big-demo
import React, { Component } from 'react'; class UserInfo extends Component { render() { let styles={ root:{ width:'70%', height:'300px', margin:'0 auto' }, img:{ marginLeft:'40%', marginTop:'30px' }, ul:{ listStyle:'none', }, ...
src/components/app.js
maxvrancken/Personal_Website
import React, { Component } from 'react'; import AnchorLink from 'react-anchor-link-smooth-scroll'; require('../scss/main.scss'); export default class App extends Component { render() { return ( <div> My Site </div> ); } }
src/index.js
fredelf/dashboard
import React from 'react'; import { render } from 'react-dom'; import Root from 'containers/Root'; import 'config' import firebase from 'firebase' import { createStore, combineReducers, applyMiddleware, compose } from 'redux' import thunk from 'redux-thunk' import reducers from 'reducers' import { loginSuccess } from '...
src/native/todos/TodosPage.js
sikhote/davidsinclair
// @flow import Header from './Header'; import NewTodo from './NewTodo'; import React from 'react'; import Todos from './Todos'; import { Box } from '../../common/components'; const TodosPage = () => ( <Box flex={1}> <Header /> <NewTodo /> <Todos /> </Box> ); export default TodosPage;
src/Col.js
Cellule/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; const Col = React.createClass({ propTypes: { xs: React.PropTypes.number, sm: React.PropTypes.number, md: React.PropTypes.number, lg: React.PropTypes.number, xsOffset: React.PropTypes.number, s...
js-old/src/views/Signer/signer.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...
src/svg-icons/editor/pie-chart-outlined.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChartOutlined = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm1 2.07c3.61.45 6.48 3.33 6.93 6.93H13V4.07zM4 12c0-4.06 3.07-7.44 7-7.93v15.87c-...
packages/storybook/examples/core/SplitView.stories.js
iCHEF/gypcrete
import React from 'react'; import SplitView from '@ichef/gypcrete/src/SplitView'; import SplitViewColumn from '@ichef/gypcrete/src/SplitViewColumn'; import ColumnView from '@ichef/gypcrete/src/ColumnView'; import HeaderRow from '@ichef/gypcrete/src/HeaderRow'; import TextLabel from '@ichef/gypcrete/src/TextLabel'; i...
chapter-01/first_react_app/src/index.js
mocheng/react-and-redux
import React from 'react'; import ReactDOM from 'react-dom'; import ClickCounter from './ClickCounter'; import './index.css'; ReactDOM.render( <ClickCounter/>, document.getElementById('root') );
frontend/src/System/Status/DiskSpace/DiskSpaceConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchDiskSpace } from 'Store/Actions/systemActions'; import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector'; import DiskSpace ...
src/encoded/static/components/cart/search_results.js
ENCODE-DCC/encoded
import React from 'react'; import PropTypes from 'prop-types'; import { hasType } from '../globals'; import { Listing } from '../search'; import * as constants from './constants'; import CartViewContext from './context'; import SeriesManagerActuator from './series'; /** * List of search results for the cart series a...
src/CollapsibleMixin.js
brentertz/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; import deprecationWarning from './utils/deprecationWarning'; let warned = false; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState(){ l...
src-changed/containers/Header.js
aryalprakash/omgyoutube
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Router, Route, Link, browserHistory } from 'react-router' import {searchVideo} from '../actions/video.js' export default class Header extends Component { constructor(){ super() this.state = { que...
packages/lore-hook-dialogs-material-ui/src/blueprints/destroy/Overlay/Overlay.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; import { result as _result } from 'lore-utils'; import { SchemaForm } from 'lore-react-forms'; import { Overlay, Request, RequestError, SuccessMessage } from 'lore-react-forms-materi...
demo/sections/ValidationSelect.js
affinipay/react-bootstrap-autosuggest
import React from 'react' import { ControlLabel, FormControl, FormGroup } from 'react-bootstrap' export default function ValidationSelect(props) { return ( <FormGroup controlId="validationSelect"> <ControlLabel>Validation state</ControlLabel> <FormControl componentClass="select" {...props}> ...
monkey/monkey_island/cc/ui/src/components/attack/techniques/MitigationsComponent.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table'; import {marked} from 'marked'; class MitigationsComponent extends React.Component { constructor(props) { super(props); if (typeof this.props.mitigations !== 'undefined' && this.props.mitigations.length > 0){ this.state = {mitigations: t...
node_modules/react-bootstrap/es/Navbar.js
lucketta/got-quote-generator
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 ...
lib/Callout/Callout.js
folio-org/stripes-components
import React from 'react'; import ReactDOM from 'react-dom'; import cloneDeep from 'lodash/cloneDeep'; import uniqueId from 'lodash/uniqueId'; import findIndex from 'lodash/findIndex'; import TransitionGroup from 'react-transition-group/TransitionGroup'; import CalloutElement from './CalloutElement'; import css from '....
node_modules/semantic-ui-react/src/views/Item/ItemGroup.js
mowbell/clickdelivery-fed-test
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, useKeyOnly, useKeyOrValueAndKey, } from '../../lib' import Item from './Item' /** * A group of items. */ function ItemGroup(p...
src/Controls/InputText.js
vslinko-forks/react-demo
import React from 'react' import styles from '../styles' export default React.createClass({ displayName: 'Demo.Controls.InputText', propTypes: { value: React.PropTypes.string.isRequired, onChange: React.PropTypes.func.isRequired }, render() { return ( <input style={styles.controls....
src/App.js
ukatama/presentation-timer
import React from 'react'; import {Dialog, FlatButton, Styles, TextField} from 'material-ui'; export const App = React.createClass({ getInitialState: function () { const prev = localStorage.getItem('bell'); return { openConfig: true, offset: 0, ...
src/components/NewsBlock/NewsBlock.js
huangc28/palestine
import React, { Component } from 'react'; /* * NewsBlock * - News block header * - News block content * * */ class NewsBlock extends Component { render () { const styles = require('./NewsBlock.scss'); return ( <div className={styles.container}> {/* NewsBlock Header */} <div> ...
src/routes/turtles/TurtleDetail.js
birkir/react-starter-kit-rdb
import React, { Component } from 'react'; import { r, QueryRequest } from 'react-rethinkdb'; import Rethinkable, { serverData } from '../../helpers/rethinkable'; import Segment from 'segment/Segment'; import Heading from 'heading/Heading'; import Button from 'button/Button'; /** * Turtle details page * * @return {R...
src/ThreeBounce/index.js
bentatum/better-react-spinkit
import React from 'react' import Base from '../Base' import PropTypes from 'prop-types' import { animate, animationName, defaults, preside } from '../util' const defaultSize = 10 const ThreeBounce = ({ color, duration, gutter, scaleEnd, scaleStart, size, timingFunction, ...props }, { betterReactSpinkit = {} }) => { ...
docs/src/layouts/index.js
n6g7/redux-saga-firebase
import React from 'react' import { graphql, StaticQuery } from 'gatsby' import PropTypes from 'prop-types' import Helmet from 'react-helmet' import { Container, Grid } from 'semantic-ui-react' import { useLocation } from '@reach/router' import { Sidebar } from '../components' import './index.css' const BaseLayout = (...
src/svg-icons/content/drafts.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDrafts = (props) => ( <SvgIcon {...props}> <path d="M21.99 8c0-.72-.37-1.35-.94-1.7L12 1 2.95 6.3C2.38 6.65 2 7.28 2 8v10c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2l-.01-10zM12 13L3.74 7.84 12 3l8.26 4.84L12 13z"/>...
examples/react/CheckboxWithLabel.js
gagoman/jest
import React from 'react'; class CheckboxWithLabel extends React.Component { constructor(props) { super(props); this.state = {isChecked: false}; // since auto-binding is disabled for React's class model // we can prebind methods here // http://facebook.github.io/react/blog/2015/01/27/react-v0.1...
src/admin-routes.js
oded-soffrin/gkm_viewer
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import Admin from './components/Admin'; import AdminHomePage from './components/AdminHomePage'; import GKMHomePageContainer from './containers/GKM/GKMHomePageContainer'; import NextListingsPageContainer from './containers/GKM/NextListingPageC...
view/dva/src/routes/PostListPage.js
xuzhenyang/ZeroCola
import React from 'react'; import { connect } from 'dva'; import { Link } from 'dva/router'; import { Pagination, Row, Col } from 'antd'; import styles from './PostListPage.css'; import moment from 'moment'; const PostListPage = (props) => { const { dispatch, posts } = props; const postPage = posts.postPage; f...
src/components/Pull/PullLeft.js
wundery/wundery-ui-react
// React import React from 'react'; // Utils import classnames from 'classnames'; const PullLeft = props => ( <div className={classnames('ui-pull-left')}> {props.children} </div> ); PullLeft.propTypes = { children: React.PropTypes.node, }; export default PullLeft;
docs/src/examples/elements/Label/Types/LabelExampleCorner.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const LabelExampleCorner = () => ( <Grid columns={2}> <Grid.Column> <Image fluid label={{ as: 'a', corner: 'left', icon: 'heart' }} src='/images/wireframe/image.png' /> </Grid.Column> <Grid.Colu...
src/templates/post-template.js
ryanermita/ryanermita.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Post from '../components/Post'; import { useSiteMetadata } from '../hooks'; import type { MarkdownRemark } from '../types'; type Props = { data: { markdownRemark: MarkdownRemark } }; ...
src/components/SearchBar.js
mimukit/react-youtube-app
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } onInputChange(term) { this.setState({ term: term }); this.props.onChange(term); } render() { return ( <div className="search-bar"> ...
js/App/Components/RGBControl/RGBControlScreen.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
app/containers/LocaleToggle/index.js
haithemT/app-test
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
app/component/quiz/SideMenuDomicilio.js
vagnerpraia/ipea_survey
import React, { Component } from 'react'; import { ScrollView, ToastAndroid } from 'react-native'; import { List, ListItem, Text } from 'native-base'; let admin; let quiz; export default class SideMenuDomicilio extends Component { constructor(props) { super(props); admin = this.props.admin; ...
src/parser/shaman/enhancement/modules/features/AlwaysBeCasting.js
FaideWW/WoWAnalyzer
import React from 'react'; import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import SpellLink from 'common/SpellLink'; class AlwaysBeCasting ex...
app/index.js
lumibloc/tabloc
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { configureStore, history } from './store/configureStore'; import './app.global.css'; const store = configureStore(); render( <AppContainer> <Root store={s...
app/components/Geschaeft/AreaPersonen.js
barbalex/kapla3
import React from 'react' import PropTypes from 'prop-types' import { FormControl } from 'react-bootstrap' import _ from 'lodash' import styled from 'styled-components' import { observer, inject } from 'mobx-react' import compose from 'recompose/compose' import KontakteIntern from './KontakteIntern' import KontakteExt...
client/src/index.js
Angarsk8/elixir-cowboy-react-spa
import React from 'react' import { render } from 'react-dom' import 'font-awesome/css/font-awesome.min.css' import 'animate.css/animate.min.css' import 'normalize.css/normalize.css' import './main.css' import './utils/polyfills' import Root from './components/Root' render( <Root />, document.getElementById('root...
example/src/app.js
cereigido/react-native-ez-layouts
import React, { Component } from 'react'; import { StackNavigator, TabNavigator } from 'react-navigation'; import { ButtonScreen, FlatListScreen, InputScreen, TextScreen } from './screens'; import { Splash } from '../../src'; const Navigator = StackNavigator({ Splash: { screen: Splash }, Home: { screen: ...
src/components/artboard/Board.js
felixyale/express-react
import { Router, Route, IndexRoute, Redirect, Link, browserHistory } from 'react-router' import React from 'react' import ContentEditable from 'react-contenteditable' import update from 'react/lib/update'; import Card from './board/Card'; import Modal from '../ui/Modal'; class BoardTemplate extends React.Component { ...
src/components/MatchList.js
HeliumLau/Hoop-react
import React from 'react'; import './MatchList.less'; export default class MatchList extends React.Component { constructor(props, context) { super(props); } componentDidMount() { console.log('load1'); } render() { let list = this.props.list; let listitems = li...
actor-apps/app-web/src/app/utils/require-auth.js
Dreezydraig/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Drawer/ExampleSimple.js
pbogdan/react-flux-mui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; export default class DrawerSimpleExample extends React.Component { constructor(props) { super(props); this.state = {open: false}; } handl...
src/routes.js
wowkin2/react-redux-sample
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import NotFound from './components/error/NotFound'; import HomePage from './components/home/HomePage'; import AboutPage from './components/about/AboutPage'; import CoursesPage from './components/course/Cou...
src/framework/common/ssr-context.js
foobarhq/reworkjs
// @flow import React from 'react'; import type { $Request, $Response } from 'express'; import type { ResourceLoader } from './use-async-resource/typing.flow'; type Context = { req?: $Request, res?: $Response, loadableResources?: Map<string, ResourceLoader<any>>, persistentValues?: Map<string, any>, }; /** ...
src/components/Tests.js
petercollingridge/math-for-programmers-prototype
import React from 'react'; import PropTypes from 'prop-types'; const testStatus2Icon = status => { switch (status) { case 'failed': return 'times'; case 'passed': return 'check'; default: return 'cog'; } }; const testStatus2Color = status => { switch (status) { case 'failed': ...
Inspector/js/tree.js
tobecrazy/WebDriverAgent
/** * 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. */ import Rea...
src/Navbar.js
beaudavenport/regex-cafe
import React from 'react'; class Navbar extends React.Component { constructor(props) { super(props); } render() { return ( <nav> <div className="container"> <div className="title"> <a href=""> <h1>Regex Cafe</h1> </a> </div> ...
app/javascript/mastodon/features/compose/components/text_icon_button.js
foozmeat/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class TextIconButton extends React.PureComponent { static propTypes = { label: PropTypes.string.isRequired, title: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func.isRequired, ariaControls: PropTypes.s...
src/svg-icons/content/inbox.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.89-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.11-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10z"/> <...
frontend/src/Components/Table/TableHeaderCell.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Icon from 'Components/Icon'; import Link from 'Components/Link/Link'; import { icons, sortDirections } from 'Helpers/Props'; import styles from './TableHeaderCell.css'; class TableHeaderCell extends Component { // // Listeners ...
src/views/Home.js
astrauka/expensable-r3
import React from 'react'; export default class Home { render() { return ( <div> <h1>Home</h1> </div> ); } }
packages/material-ui-icons/src/FormatStrikethrough.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z" /></g> , 'FormatStrikethrough');
src/components/auth/feature.js
RaulEscobarRivas/client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; class Feature extends Component { componentWillMount() { this.props.fetchMessage(); } render () { return <div>{this.props.message}</div>; } } function mapStateToP...
src/components/BannerHeader.js
benruehl/gatsby-kruemelkiste
import React from 'react' import Link from 'gatsby-link' class BannerHeader extends React.Component { render() { return ( <div css={{ background: this.props.gradientTopLeft, background: '-moz-linear-gradient(-45deg, ' + this.props.gradientTopLeft + ' 0%, ' + this.props.gradient...
server/priv/js/components/Graph.react.js
avasenin/mzbench
import React from 'react'; import moment from 'moment'; class Graph extends React.Component { componentDidMount() { this._createTimer(); } componentWillUnmount() { if (this.timer) { clearTimeout(this.timer); } } _formatDate(iso, offsetMinutes) { return ...
tests/template_src/test-component.js
wildfish/django-isomorphic
import React from 'react' export default class TestComponent extends React.Component { render() { return ( <span>Test component</span> ) } }
examples/cra-react15/src/index.js
storybooks/react-storybook
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import { document } from 'global'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
app/index.js
vikramcse/react-project-shop-admin
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './config/routes'; ReactDOM.render(routes, document.getElementById('app'));
packages/react-scripts/fixtures/kitchensink/src/features/webpack/LinkedModules.js
iamdoron/create-react-app
/** * 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. */ import Rea...
app/javascript/mastodon/features/compose/containers/warning_container.js
foozmeat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const APPROX_HASHTAG_RE = /(?:^|[^\/\)\w])#(\S+)/i; const mapStateToProps = sta...
dev/src/index.js
dqgorelick/dqgorelick.github.io
import './assets/styles/all.scss'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import * as serviceWorker from './serviceWorker'; import { getHashLocation } from './helpers'; const Router = () => { const page = getHashLocation(); ReactDOM.render( <React.StrictMode> <Ap...
pages/index.js
dearwish/gatsby-starter-clean
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' export default class Index extends React.Component { render () { return ( <div> <Helmet title={config.siteTitle} ...
app/components/AppResult/index.js
czy0729/react-alumni
/** * AppResult * @version 170317 1.0 */ 'use strict'; import React from 'react'; import classNames from 'classnames'; import { Result, Icon } from 'antd-mobile'; import './index.less'; const prefixCls = 'components__app-result'; const AppResult = (props) => { const { icon = require('common/svg/check...
client/routes.js
slantz/cv
import React from 'react' import { Route, IndexRoute } from 'react-router' import App from './containers/App' import Landing from './components/Landing' import Info from './components/Info' export const routes = ( <Route path='/' component={App}> <IndexRoute component={Landing} /> <Route path='inf...
stories/index.js
verseatile/redux-almost
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; import { Button, Welcome } from '@storybook/react/demo'; import LoButton from '../app/components/minimal/Button' storiesOf('Welcome', module).a...
src/components/media/media.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from './../../helper/helper'; export default class Media extends Component { static propTypes = { style: PropTypes.object, children: PropTypes.any, className: ...
src/MenuItem.js
brentertz/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import SafeAnchor from './SafeAnchor'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: ...
etc/beaconpi-react/src/App.js
co60ca/beaconpi
import React, { Component } from 'react'; import './App.css'; import { QuickStat } from './QuickStat.js'; import { Plot } from './TimeSeries.js'; import { FieldGroup } from './FormUtils.js'; import { Lateration } from './Trilat.js'; import { AdminUserMod, AdminModBeacon, AdminModEdge } from './Admin...
src/modules/TreebankSearchOptions.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import ResourceSelector from './ReactSelector' import FontAwesome from 'react-fontawesome'; import { Button } from 'react-bootstrap'; class TreebankSearchOptions extends React.Component { constructor(props) { super(props); let initialType = "UD...
src/app/components/resourses/planetsheet/Panel.js
mazahell/eve-react-app
import React from 'react'; import { connect } from 'react-redux'; import { updateVars, searchOutputSystem, searchInputSystem } from '../../../actions/planetSheetActions'; // components import SystemSellBuy from './../../blocks/SystemSellBuy'; class Panel extends React.Component { // Get suggestions getSuggestion...
components/ui/Tag.js
resource-watch/resource-watch
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Icon from 'components/ui/icon'; class Tag extends React.PureComponent { static propTypes = { name: PropTypes.string, className: PropTypes.string, isRemovable: PropTypes.bool, onClick: PropType...
app/components/DownloadListBtn/DownloadListBtn.js
medialab/hyphe-browser
import './DownloadListBtn.styl' import React from 'react' import { FormattedMessage as T } from 'react-intl' export default ({ isDisabled, onClickDownload }) => ( <button className="download-list-btn" disabled={ isDisabled } onClick={ onClickDownload } > <T id="sidebar.contextual.downloadToCS...
src/components/molecules/FileStatus/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link} from 'components'; import Badge from 'material-ui/Badge'; import {palette} from 'styled-theme'; const Wrapper = styled.div ` position: relative; float: right; top:0%; right: 0%; .badge{ &.description{ margin-left: 1px; span{ ...