path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/action/lock-outline.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOutline = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c...
example/examples/StaticMap.js
mvakulich/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, ScrollView, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_...
src/shared/route/index.js
Grace951/grace951.github.io
import HomePage from '../components/HomePage'; import AboutPage from '../components/AboutPage'; import PortfolioPage from '../components/PortfolioPage'; import DetailsPage from '../components/Portfolio/DetailsPage'; import F2EPage from '../components/Portfolio/F2EPage'; import GraphicPage from '../components/Por...
src/components/Torrent/StatusDetails/index.js
fcsonline/react-transmission
import React from 'react'; import Seeding from './Seeding'; import Checking from './Checking'; import Downloading from './Downloading'; import Error from './Error'; import Status from './Status'; function StatusDetails({ torrent }) { if (torrent.hasErrors) { return <Error torrent={torrent} />; } if (torren...
client/main.js
ibujs/Area51
// @flow /* eslint-env browser */ // Importing React and ReactDOM import React from 'react' import ReactDOM from 'react-dom' // Importing Material UI components below. import Paper from 'material-ui/Paper' import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import Typography f...
packages/material-ui-icons/src/ChromeReaderMode.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ChromeReaderMode = props => <SvgIcon {...props}> <path d="M13 12h7v1.5h-7zm0-2.5h7V11h-7zm0 5h7V16h-7zM21 4H3c-1.1 0-2 .9-2 2v13c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 15h-9V6h9v13z" /> </S...
L/my-app/src/components/bangumi/AnimeList.js
imuntil/React
import React from 'react' import PropTypes from 'prop-types' import cssModules from 'react-css-modules' import styles from './AnimeList.module.scss' import classNames from 'classnames/bind' import { Tag, Icon, Tooltip } from 'antd' import { SORTS } from '@/utils/constant' const cx = classNames.bind(styles) let Item = ...
src/routes/AuthorizedRoute/authorized-route.js
Mesamo/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Route, Redirect } from 'dva/router' import { connect } from 'dva' import { currentUser } from '../../services/login.service' class AuthorizedRoute extends React.Component { render() { const { path, exact, asyncComponent, location, dispa...
src/svg-icons/action/zoom-in.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionZoomIn = (props) => ( <SvgIcon {...props}> <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 1...
docs/src/components/Docs/Props/BlockRenderingProp/index.js
jpuri/react-draft-wysiwyg
import React from 'react'; export default () => ( <div> <h3>customBlockRenderFunc</h3> <div className="docs-desc"> Rendering of a blocks can be changed using customBlockRenderFunc. It should be a function that returns a react component. <br /> (Currently if customBlockRenderFunc is pr...
src/view/entry/browserSideFactory.js
VisitingLandmarks/visitingLandmarks
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; // import RouteDefinition from './routeDefinition'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import reducer from '../../redux/reducer/index'; im...
js/setup.js
kwoumn3/khemet
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import App from './App'; import configureStore from './configureStore'; function setup():React.Component { class Root extends Component { constructor() { super(); this.state = { isLoading: false, store...
src/Parser/Monk/Mistweaver/Modules/Items/Eithas.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules/Combatants'; import ItemHealingDone from 'Main/ItemHea...
src/views/Components/Tables/Tables.js
hungtruongquoc/shipper_front
import React, { Component } from 'react'; class Tables extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-lg-6"> <div className="card"> <div className="card-header"> <i className="fa...
web/src/Sign.js
Novemser/InMemoryTelecomService
/** * Created by kevin on 12/10/2016. */ import React from 'react'; import SimpleDialog from './Dialog'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; import {hashHistory } from 'react-router' import $ from 'jquery'; import Auth from './Auth' import API from './AP...
src/components/Container.js
hydro-c/methane
import React from 'react'; // react-hot-loader/docs/Troubleshooting.md // https://github.com/gaearon/react-hot-loader/blob/master/docs/Troubleshooting.md import '!style!css!sass!../styles/app.scss'; const Container = React.createClass({ render () { return ( <div className="container"> </div> ); ...
localprovider-redux-saga-ganaraj/src/randomGif/Container.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import * as actions from './actions' import localState from '../LocalProvider'; import reducer from './reducer'; import saga from './saga'; import createSagaMiddleware from 'redux-saga'; const sagaMiddleware = cr...
app/components/toast/index.js
waha3/react-cnode
import React, { Component } from 'react'; import './index.less'; export default class Toast extends Component { state = { show: false, status: false, title: '', content: '' } componentWillUnmount() { clearTimeout(this.time); } toastSuccess(content, title = 'Success', time = 1000) { ...
react-flux-mui/js/material-ui/src/svg-icons/action/pan-tool.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPanTool = (props) => ( <SvgIcon {...props}> <path d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
app/jsx/new_user_tutorial/trays/PagesTray.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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/components/Help/Help.js
amimof/base64-web
import React, { Component } from 'react'; import './Help.css'; class Help extends Component { render() { return ( <div className="Help"> <div className="ui secondary menu"> <div className="header item"> Usage </div> </div> <div className="ui segment"> <h2 className="ui header">Usage</h2> <div...
src/junior_profiles/JuniorProfileList.js
tadahmen/jrdev-job-hunt-FRONT
import React from 'react'; import jQuery from 'jquery'; import { Link } from 'react-router'; class JuniorProfileList extends React.Component { constructor(){ super(); this.state = { junior_profiles: [] }; } reloadList(event) { let component = this; jQuery.getJSON("https://powerful-wa...
plugins/Hosting/js/components/hoststatus.js
NebulousLabs/New-Sia-UI
import PropTypes from 'prop-types' import React from 'react' const HostStatus = ({ connectabilitystatus, workingstatus }) => { if (connectabilitystatus === 'checking' && workingstatus === 'checking') { return ( <div className='host-status'> <i className='fa fa-refresh fa-spin inactive-icon' /> ...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
igorbt/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; /** * This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`. */ export default class DatePi...
frontWeb/main/react/react-router/basic/dev/noMatchExample.js
skycolor/study
import React from 'react' import { BrowserRouter as Router, Route, Link, Switch, Redirect } from 'react-router-dom' const NoMatchExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Link to="/old-match">Old Match, to be redirected</Link></li> <li><L...
src/DropArea.js
diginatu/nagome-webui
import React, { Component } from 'react'; import {Icon} from 'react-onsenui'; import ons from 'onsenui'; // Only display and not catch actual dropping. export default class DropArea extends Component { constructor() { super(); this.state = {dropping: false}; // Stop to move in hole page. ...
packages/examples-todomvc-metareducer/containers/DevTools.js
kastigar/borex
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q'> <LogMonitor /...
client/src/js/components/Controls/Play.js
Siddharth11/iTunes-Remote
import React from 'react' import MdPlayArrow from 'react-icons/lib/md/play-arrow' const Play = () => ( <MdPlayArrow /> ) export default Play
scripts/administration/Administration.js
peletiah/goatFS-Client
/* Administration */ import React from 'react'; import autobind from 'autobind-decorator'; import Multiselect from 'react-widgets/lib/Multiselect'; @autobind class Administration extends React.Component { constructor() { super() this.state = { colors : ['orange', 'red', 'blue', 'purple'], startCol...
src/redux/utils/createDevToolsWindow.js
todvora/extrade
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/index.js
laduke/vigilant-doodle
import React from 'react'; import ReactDOM from 'react-dom'; import { createStore, applyMiddleware } from 'redux'; import { Provider } from 'react-redux'; import thunkMiddleware from 'redux-thunk'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import injectTapEventPlugin from 'react-tap-eve...
client/app/scripts/charts/node-shape-rounded-square.js
dilgerma/scope
import React from 'react'; import NodeShapeSquare from './node-shape-square'; // TODO how to express a cmp in terms of another cmp? (Rather than a sub-cmp as here). // HOC! export default function NodeShapeRoundedSquare(props) { return ( <NodeShapeSquare {...props} rx="0.4" ry="0.4" /> ); }
src/js/components/icons/base/Rewind.js
odedre/grommet-final
/** * @description Rewind SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
src/RenderCounter/Counter.js
Stupidism/stupid-rc-starter
import React from 'react'; import T from 'prop-types'; const styles = { counter: { display: 'inline-block', float: 'right', borderRadius: '8px', backgroundColor: '#f95', fontSize: '8pt', fontWeight: 'bold', textAlign: 'center', padding: '1px 5px', color: 'white', top: '2px', ...
Realization/frontend/czechidm-acc/src/content/connectorserver/RemoteServerConnectors.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import { Basic, Domain, Managers } from 'czechidm-core'; import { RemoteServerManager } from '../../redux'; import ConnectorTable from './ConnectorTable'; const manager = new RemoteServerManager(); /** * Connectors available on remote server. * *...
admin/src/App.js
zentrope/webl
// // Copyright (c) 2017 Keith Irwin // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published // by the Free Software Foundation, either version 3 of the License, // or (at your option) any later version. // // This program is distri...
src/mixins/helpers.js
iam4x/react-slick
'use strict'; import React from 'react'; import ReactTransitionEvents from 'react/lib/ReactTransitionEvents'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { var slideCount = React.Children.count(prop...
app.js
Code4Newark/newark-viz
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
src/Parser/Rogue/Common/Legendaries/DreadlordsDeceit.js
hasseboulen/WoWAnalyzer
import React from 'react'; import ITEMS from 'common/ITEMS'; import Combatants from 'Parser/Core/Modules/Combatants'; import Analyzer from 'Parser/Core/Analyzer'; import Wrapper from 'common/Wrapper'; class DreadlordsDeceit extends Analyzer { static dependencies = { combatants: Combatants, }; on_initialize...
packages/mineral-ui-icons/src/IconEqualizer.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconEqualizer(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProp...
src/routes/about/index.js
tarixgit/test
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 '../../compo...
js/react-components/components/CategoryList.js
JACooper/Forge-client
import React from 'react'; class CategoryList extends React.Component { constructor(props) { super(props); this.setActive = this.setActive.bind(this); this.addCategory = this.addCategory.bind(this); this.state = { newCategoryName: '', }; } componentWillMount() { this.props.getCat...
app/components/ClearButton/index.js
rapicastillo/beautifulrising-client
/** * * ClearButton * */ import React from 'react'; import styled from 'styled-components'; export default styled.button` outline: none; font-weight: 800; font-family: 'Avenir', 'Kaff', sans-serif; font-weight: 800; padding-${p=>p.theme.isArabic?'left':'right'}: 24px; text-transform: uppercase; padding-bottom: 20px; ...
src/components/Navigation/Navigation.js
Grusteam/spark-in-me
import React from 'react'; import ReactDOM from 'react-dom' import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Navigation.css'; import Link from '../Link'; import request from '../../core/request'; class Navigation extends React.Component { constructor(props...
components/webrtc/SocialSharing.js
slidewiki/slidewiki-platform
import PropTypes from 'prop-types'; import React from 'react'; import { Dropdown, Icon, Button } from 'semantic-ui-react'; import {ShareButtons, generateShareIcon} from 'react-share'; class SocialSharing extends React.Component { /* Props: roomURL: full URL to share currentSlideURL: full URL to share ha...
app/javascript/mastodon/components/missing_indicator.js
esetomo/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; const MissingIndicator = () => ( <div className='missing-indicator'> <div> <FormattedMessage id='missing_indicator.label' defaultMessage='Not found' /> </div> </div> ); export default MissingIndicator;
src/svg-icons/action/three-d-rotation.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThreeDRotation = (props) => ( <SvgIcon {...props}> <path d="M7.52 21.48C4.25 19.94 1.91 16.76 1.55 13H.05C.56 19.16 5.71 24 12 24l.66-.03-3.81-3.81-1.33 1.32zm.89-6.52c-.19 0-.37-.03-.52-.08-.16-.06-.29-....
client/components/settings/emails/index.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { get } from '../../../store'; import { translate as $t } from '../../../helpers'; import Alerts from './alert-list'; import EmailConfig from './config'; import Reports from './report-list'; function EmailsParameters(props) { let maybeEdito...
client/src/components/layout/header.js
martindavid/hackathon-starter
import React, { Component } from 'react'; import { NavLink } from 'react-router-dom'; import { Collapse, Navbar, NavbarToggler, NavbarBrand, Nav, NavItem, } from 'reactstrap'; import LoginButton from 'components/LoginButton'; class Header extends Component { constructor(props) { super(props); t...
pages/components/prompt.js
GallenHu/Hinote
/** * Prompt 组件 * 可以弹出文本输入框 * */ import React from 'react'; import PropTypes from 'prop-types'; export default class Prompt extends React.Component { constructor(props) { super(props); this.state = { show: true, }; } render() { const contentValue = this.props.value; const placehold...
docs/app/Examples/views/Statistic/Types/StatisticExampleTopLabel.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Statistic } from 'semantic-ui-react' const StatisticExampleTopLabel = () => ( <div> <Statistic> <Statistic.Label>Views</Statistic.Label> <Statistic.Value>40,509</Statistic.Value> </Statistic> </div> ) export default StatisticExampleTopLabel
src/svg-icons/av/airplay.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAirplay = (props) => ( <SvgIcon {...props}> <path d="M6 22h12l-6-6zM21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4v-2H3V5h18v12h-4v2h4c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); AvAirplay = pure(AvAirplay...
app/javascript/mastodon/components/load_gap.js
cybrespace/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap extends React.PureComponent { static propTypes...
frontend/src/utils/requireAuth.js
andres81/auth-service
import React from 'react'; import {connect} from 'react-redux'; export default function (ProtectedComponent) { class Authenticate extends React.Component { componentWillMount() { if (!this.props.isAuthenticated) { this.context.router.push('/'); } } ...
src/index.js
nlsandler/gridlock
import React from 'react'; import ReactDOM from 'react-dom'; import Puzzle from './components/Puzzle'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import './index.css'; ReactDOM.render( <Puzzle/>, document.getElementById('root') );
frontend/src/Components/Page/Sidebar/Messages/Messages.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React from 'react'; import MessageConnector from './MessageConnector'; import styles from './Messages.css'; function Messages({ messages }) { return ( <div className={styles.messages}> { messages.map((message) => { return ( <MessageCo...
pages/template.js
headwinds/porthole
import React, { Component } from 'react'; import { compose } from 'recompose'; import withRedux from 'next-redux-wrapper'; import { bindActionCreators } from 'redux'; import initializeStore from '../store/store'; import Main from '../apollo/layout'; import Header from '../components/Header'; import Submit from '../comp...
frontend/src/pages/index.js
djhi/boilerplate
import React from 'react'; import Head from 'next/head'; import Layout from '../app/public/PublicLayout'; export default () => ( <Layout> <Head> <title>The Application</title> <meta charSet="utf-8" /> <meta name="viewport" content="initial-scale=1.0, width=device-width" ...
src/components/common/header/Header.js
forkhacker/webapp-react
import React from 'react'; import Logo from './Logo'; import SearchBox from './SearchBox'; import UserActions from './UserActions'; import Loader from '../Loader'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as loginActions from '../../../actions/loginActions'; import {REDI...
analysis/warriorarms/src/modules/talents/Cleave.js
anom0ly/WoWAnalyzer
import { formatThousands } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellLink } from 'interface'; import Analyzer from 'parser/core/Analyzer'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import StatisticListBoxItem from 'parser/ui/StatisticListBoxItem'; import React from...
src/components/JoinChangers.js
PatrickHai/react-client-changers
import React from 'react'; class JoinChangers extends React.Component{ jumpUrl(){} closeTitle(){} render(){ return ( <aside className="layout_box box-center-v layer_dl" id="float_title"> <div className="logo"></div> <div className="txt_s box_col"> <p>常客</p> ...
src/components/common/Video.js
serlo-org/serlo-abc
import { propOr } from 'ramda'; import React, { Component } from 'react'; import { View } from 'react-native'; import { Video } from 'expo-av'; import Constants from 'expo-constants'; const styles = { container: { width: '100%', flex: 1, alignItems: 'center', justifyContent: 'center' } }; export d...
admin/client/App/components/Footer/index.js
Pop-Code/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { css } from 'glamor'; import { Container } from '../../elemental'; import theme from '../../../theme'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { app...
ignite/Examples/Components/i18nExample.js
mohammadhendy/DriverApp
// @flow import React from 'react' import { View, Text } from 'react-native' import ExamplesRegistry from '../../../App/Services/ExamplesRegistry' import I18n from 'react-native-i18n' // Example ExamplesRegistry.addPluginExample('I18n', () => <View> <Text style={{color: '#ffffff'}}>Locale: {I18n.defaultLocale}<...
frontend/src/Components/Link/Button.js
Radarr/Radarr
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { align, kinds, sizes } from 'Helpers/Props'; import Link from './Link'; import styles from './Button.css'; class Button extends Component { // // Render render() { const { classN...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
ankitsinghania94/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! </...
src/components/JobItem/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; import format from 'date-fns/format'; // components import {Card, CardHeader, CardText} from 'material-ui/Card'; import LocationIcon from 'material-ui/svg-icons/communication/location-on'; import BusinessIcon from 'material-ui/svg-icons/communicat...
src/js/app.js
gragland/instatype
import React from 'react'; import Results from './components/results.js'; import InputComponent from './components/input.js'; import Loading from './components/loading.js'; import rawStyle from './../less/style.less'; // For older versions of React (deprecated in 0.14) if (typeof React.initializeTouchEvents === 'funct...
src/index.js
emil-mi/token-crack
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
client/queuelist.js
YocketList/YocketList
import React from 'react'; import ReactDOM from 'react-dom'; import Queue from './queue'; const QueueList = (props) => { const list = props.queues.map(function(queue, ind) { return <Queue key={ind} link={queue} />; }); return <div>{list}</div>; }; export default QueueList;
src/TestIndex/PhaserTestIndex.js
builden/react-electron-boilerplate
import React from 'react'; import ReactDOM from 'react-dom'; import '../index.css'; import PhaserTest from '../PhaserTest'; console.log('start PhaserTestIndex'); ReactDOM.render(<PhaserTest />, document.getElementById('root'));
app/son.js
vijanny/react-native-DemoPrj
import React, { Component } from 'react'; import {View, AppRegistry, StyleSheet, Text,Image,Dimensions,TouchableHighlight,Alert,Animated,Easing,} from 'react-native'; import Header from './header'; import Modal from 'react-native-modalbox'; import AnimatedCircleProgress from './CircleProgressComponents/AnimatedCircleP...
src/components/HtmlRenderer.js
avshalomh/display-server
import React, { Component } from 'react'; require('../styles/full-screen-iframe.css'); class HtmlRenderer extends Component { componentDidMount = () => { this.updateIframe(); }; updateIframe() { var iframe = this.refs.iframe; iframe.contentDocument.open(); iframe.contentDocument.write(this.pr...
frontend/src/view-file-document.js
miurahr/seahub
import React from 'react'; import ReactDOM from 'react-dom'; import { seafileAPI } from './utils/seafile-api'; import { gettext, mediaUrl} from './utils/constants'; import FileView from './components/file-view/file-view'; import FileViewTip from './components/file-view/file-view-tip'; import Loading from './components/...
src/main/js/builder/views/components/SponsorTeamView.js
Bernardo-MG/dreadball-toolkit-webpage
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { injectIntl } from 'react-intl'; import Box from 'grommet/components/Box'; import Heading from 'grommet/components/Heading'; import DocumentPdfIcon from 'grommet/components/icons/base/DocumentPdf'; import SponsorAffinitiesList fr...
admin/client/components/List/ListFilters.js
andreufirefly/keystone
import React from 'react'; import filterComponents from '../../filters'; import CurrentListStore from '../../stores/CurrentListStore'; import Popout from '../Popout'; import { Pill } from 'elemental'; const Filter = React.createClass({ propTypes: { filter: React.PropTypes.object.isRequired, }, getInitialState () ...
actor-apps/app-web/src/app/components/dialog/ComposeSection.react.js
TimurTarasenko/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ActorClient from 'utils/ActorClient'; import { Styles, FlatButton } from 'material-ui'; import { KeyCodes } from 'constants/ActorAppConstants'; import ActorTheme from 'constants/ActorTheme'; import MessageAction...
src/svg-icons/av/playlist-play.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistPlay = (props) => ( <SvgIcon {...props}> <path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/> </SvgIcon> ); AvPlaylistPlay = pure(AvPlaylistPlay); AvPlaylistPlay.displayName = '...
js/react-ssr/src/app/containers/ListBySubject.js
Icokie/study
import React from 'react'; let ListBySubject = () => { return ( <div>list by subject</div> ); }; export {ListBySubject};
node_modules/@material-ui/core/es/internal/svg-icons/createSvgIcon.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import React from 'react'; import SvgIcon from '../../SvgIcon'; export default function createSvgIcon(path, displayName) { const Component = React.memo(React.forwardRef((props, ref) => React.createElement(SvgIcon, _extends({}, props, { ref: ref }), path)));...
src/svg-icons/social/domain.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialDomain = (props) => ( <SvgIcon {...props}> <path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v...
src/components/common/svg-icons/navigation/arrow-downward.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDownward = (props) => ( <SvgIcon {...props}> <path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"/> </SvgIcon> ); NavigationArrowDownward = pure(NavigationArrowDownward); Na...
src/components/Faq/index.js
chejen/GoodJobShare
import React from 'react'; import Helmet from 'react-helmet'; import { Section, Wrapper } from 'common/base'; import PageBanner from 'common/PageBanner'; import editorStyles from 'common/Editor.module.css'; import styles from './Faq.module.css'; import { HELMET_DATA } from '../../constants/helmetData'; const Faq = () ...
packages/material-ui-icons/src/NoteAdd.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let NoteAdd = props => <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z" /> </SvgIcon>; Not...
examples/custom-validation/app.js
optiopay/optiopay-form
import React from 'react'; import ReactDOM from 'react-dom'; import Formsy from 'formsy-react'; import MyInput from './../components/Input'; const currentYear = new Date().getFullYear(); const validators = { time: { regexp: /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/, message: 'Not valid ...
src/components/AboutPage.js
polinazolotukhina/redux-movieDB
import React from 'react'; import {Link} from 'react-router'; import '../styles/about-page.css'; // Since this component is simple and static, there's no parent container for it. const AboutPage = () => { return ( <div> <h2 className="alt-header">About</h2> <p> This example app is part of the...
temp/AsyncStorageTest.js
duangangqiang/GitHubTrending
import React, { Component } from 'react'; import { View, Text, TextInput, StyleSheet, AsyncStorage } from 'react-native'; import NavigationBar from '../js/common/NavigationBar'; import Toast, { DURATION } from 'react-native-easy-toast'; const KEY = 'test'; export default class AsyncStorageTest ex...
src/components/contact.js
basvandriel/WWW
import React from 'react'; import { Container } from 'react-bootstrap'; import { StyledSectionTitle, StyledParagraph } from '@styles/GlobalStyle'; import styled from 'styled-components'; import theme from '../theme'; import StyledSection from '@styles/Section'; const StyledContainer = styled(Container)` display...
webpack/move_to_pf/TypeAhead/TypeAheadInput.js
ares/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormControl } from 'patternfly-react'; class TypeAheadInput extends Component { constructor(props) { super(props); this.handleKeyPress = this.handleKeyPress.bind(this); } componentDidMount() { if (this.ref) { ...
server/sonar-web/src/main/js/components/ui/Avatar.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...
client/src/server/server.nashorn.js
Pitzcarraldo/spring-react-redux-universal-example
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { RoutingContext, match } from 'react-router'; import { Provider } from 'react-redux'; import createLocation from 'history/lib/createLocation'; import { fetchComponentDataBeforeRender } from '../common/api/fetchComponentDataBeforeRender';...
src/svg-icons/av/library-music.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
src/components/Feedback.js
kirillku/smartroompro
import React from 'react'; const Feedback = () => ( <div className="Feedback"> <h3>Please leave some feedback:</h3> <img src="/star-rating.png" alt="Rate this mode" /> <div className="input-group-lg"> <textarea id="text"/> </div> </div> ) export default Feedback
src/containers/card/index.js
jamjar919/bork
import React from 'react'; import PropTypes from 'prop-types'; const Card = props => ( <div className={`card ${props.className}`}> <h3 className="card-header">{props.title}</h3> {props.children} </div> ); Card.propTypes = { children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.element...
src/js/pages/HomePage.js
pk8est/dot
const shell = require('electron').shell import React, { Component } from 'react'; import fetch from 'node-fetch'; import socket from '../backend/socket'; socket.on('connect', function(){ socket.emit("add-listener"); }); class HomePage extends Component { constructor(props) { super(props); thi...
src/MenuItem.js
lo1tuma/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: React.PropTypes.string, onSelect...
src/index.js
latentflip/redux-form
import React from 'react'; import {connect} from 'react-redux'; import createAll from './createAll'; export const { actionTypes, blur, change, changeWithKey, destroy, focus, reducer, reduxForm, getValues, initialize, initializeWithKey, propTypes, reset, startAsyncValidation, startSubmit, ...
src/helpers.js
MaxKelsen/ory-slate-plugin
import Button from 'material-ui/Button' import React from 'react' export const makeTagNode = Tag => { const NodeComponent = ({ attributes, children, node }: { attributes: Object, children: any, node: any }) => { const align = node.data.get('align') const indent = node.data.get('in...
docs/src/CodeExample.js
mcraiganthony/react-bootstrap
import React from 'react'; export default class CodeExample extends React.Component { render() { return ( <pre className="cm-s-solarized cm-s-light"> <code> {this.props.codeText} </code> </pre> ); } componentDidMount() { if (CodeMirror === undefined) { ret...