path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
examples/DemoRotation.js
MrCheater/text-resize-and-word-wrap-provider
import React from 'react'; import { Text, textResizeAndWordWrap } from '../src'; import { randomContent } from './randomContent'; import Slider from 'rc-slider'; import 'rc-slider/assets/index.css'; @textResizeAndWordWrap export class DemoRotation extends React.Component { state = { rotation : 0, r...
EEG101/src/components/WhiteButton.js
tmcneely/eeg-101
// WhiteButton.js // A duplicate Button component for the early connector slides that is white instead of blue import React, { Component } from 'react'; import { Text, View, TouchableOpacity, StyleSheet, } from 'react-native'; import * as colors from "../styles/colors"; export default class WhiteButton extend...
client/channel/components/NotificationStatus.js
Sing-Li/Rocket.Chat
import React from 'react'; import { Box } from '@rocket.chat/fuselage'; export function NotificationStatus({ t = (e) => e, label, ...props }) { return <Box width='x8' aria-label={t(label)} borderRadius='full' height='x8' {...props} />; } export function All(props) { return <NotificationStatus label='mention-all' bg...
src/components/views/allot-user-list-view.js
HuangXingBin/goldenEast
import React from 'react'; import { Table, Button, Popconfirm } from 'antd'; import weiGuDong from '../../appConstants/assets/images/微股东.png'; import normalCard from '../../appConstants/assets/images/普卡.png'; import silverCard from '../../appConstants/assets/images/银卡.png'; import goldenCard from '../../appConstants/as...
src/app.js
AnastasiaJS/myTask-demo
/** * Created by SWSD on 2016-12-26. */ import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import configureStore from './redux/configureStore'; // 引入Ant-Design样式 & Animate.CSS样式 import 'antd/dist/antd.min.css' import App from './containers/App' const stor...
src/svg-icons/hardware/cast-connected.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareCastConnected = (props) => ( <SvgIcon {...props}> <path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ...
src/client/scripts/client.js
uttrasey/wt-namegame
import React from 'react'; import ReactDOM from 'react-dom'; import config from '../../../config/app'; import Game from '../../game'; var gameNode = document.getElementById('game'); ReactDOM.render(<Game url={config.apiUrl} roundCount={config.roundCount} />, gameNode);
docs/src/pages/demos/chips/ChipsArray.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import Paper from 'material-ui/Paper'; import TagFacesIcon from '@material-ui/icons/TagFaces'; const styles = theme => ({ root:...
node_modules/enzyme/src/version.js
jotamaggi/react-calendar-app
import React from 'react'; export const VERSION = React.version; const [major, minor] = VERSION.split('.'); export const REACT013 = VERSION.slice(0, 4) === '0.13'; export const REACT014 = VERSION.slice(0, 4) === '0.14'; export const REACT15 = major === '15'; export const REACT155 = REACT15 && minor >= 5;
src/common/components/repository-row/dropdowns/edit-config-dropdown.js
canonical-websites/build.snapcraft.io
import PropTypes from 'prop-types'; import React from 'react'; import { Row, Data, Dropdown } from '../../vanilla/table-interactive'; import getTemplateUrl from './template-url.js'; const EditConfigDropdown = ({ snap }) => { const templateUrl = getTemplateUrl(snap); return ( <Dropdown> <Row> <D...
inlineStyles/src/components/Example/Example.js
3mundi/React-Bible
import React from 'react'; import styles from './styles'; class Example extends React.Component { render() { return ( <p style={styles.announcement}>{this.props.content}</p> ); } } Example.propTypes = { content: React.PropTypes.string.isRequired }; export default Example;
js/src/views/Signer/signer.js
immartian/musicoin
// Copyright 2015, 2016 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 la...
__sites_/src/index.js
Vanthink-UED/react-core-image-upload
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app'; require('./less/vtui.less'); ReactDOM.render(<App />, document.getElementById('app'));
src-rx/src/components/JsonConfigComponent/ConfigImageUpload.js
ioBroker/ioBroker.admin
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import InputLabel from '@material-ui/core/InputLabel'; import FormHelperText from '@material-ui/core/FormHelperText'; import FormControl from '@material-ui/core/FormControl'; import ConfigGeneric from...
src/views/ContractBusiness/Guarantee/ExamineGuarantee.js
bruceli1986/contract-react
import React from 'react' import PageHeader from 'components/PageHeader' import GuaranteeBasicInfo from 'components/GuaranteeBasicInfo' import FileListTable from 'components/FileListTable' import TaskHandleForm from 'components/TaskHandleForm' import TaskHistory from 'components/TaskHistory' import formatter from 'util...
webui/pages/help.js
stiftungswo/izivi_relaunch
import React from 'react'; import { Container } from 'semantic-ui-react'; import App from '../components/AppContainer'; export default ({ ...rest }) => ( <App {...rest}> <Container> <h1>1. Titel</h1> <h2>1.1 Subtitel</h2> <p> Lorem ipsum dolor sit amet, consectetur adipisicing e...
src/svg-icons/notification/live-tv.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationLiveTv = (props) => ( <SvgIcon {...props}> <path d="M21 6h-7.59l3.29-3.29L16 2l-4 4-4-4-.71.71L10.59 6H3c-1.1 0-2 .89-2 2v12c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.11-.9-2-2-2zm0 14H3V8h18v12zM9 10v8...
src/components/async-img.js
jjmulenex/sdk
import React from 'react'; import PropTypes from 'prop-types'; import fetch from 'isomorphic-fetch'; /** * WARNING! This class uses a "mounted" member of state * which react recommends against. Changing that would make the * code a lot messier and this solution is otherwise a clean way * to get protected images. ...
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/NodesList/NodesList.js
KlusterKite/KlusterKite
import React from 'react'; import Relay from 'react-relay' import delay from 'lodash/delay' import { Popover, OverlayTrigger, Button } from 'react-bootstrap'; import Icon from 'react-fa'; import UpgradeNodeMutation from './mutations/UpgradeNodeMutation'; import './styles.css'; export class NodesList extends React....
app/javascript/mastodon/features/compose/components/navigation_bar.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
src/components/Loader/Loader.js
tyleriguchi/photoshop-battles
import React from 'react' import classes from './Loader.scss' export const Loader = (props) => { return ( <div className={classes['loading-div']}> <i className='fa fa-refresh fa-spin fa-4x'></i> </div> ) } export default Loader
docs/src/app/components/pages/components/SelectField/ExampleSimple.js
skarnecki/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; const styles = { customWidth: { width: 150, }, }; export default class SelectFieldExampleSimple extends React.Component { constructor(props) { super(props); this.state = {value...
app/utils/markdown.js
rapicastillo/beautifulrising-client
import React from 'react'; import { Link } from 'react-router'; export function RouterLink(props) { return ( props.href.match(/^(https?:)?\/\//) ? <a href={props.href} target={'_blank'}>{props.children}</a> : <Link to={props.href}>{props.children}</Link> ); }
modern_react_with_redux/test/test_helper.js
Mad-Labs/open-lab
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
app/components/Operation/index.js
Princess310/antd-demo
/* * Overwrite the component from antd Modal.operation * */ /* tslint:disable:no-unused-variable */ import React from 'react'; /* tslint:enable:no-unused-variable */ import ReactDOM from 'react-dom'; import { Modal } from 'antd-mobile'; export default function a(...args) { const actions = args[0] || [{ text: '确定' }]...
08-create-a-sidebar/components/Home/index.js
nodeyu/jason-react-router-demos-v4
import React from 'react'; class Home extends React.Component { render() { return ( <div> <h1>Home</h1> <p>This is home page.</p> </div> ); } } export default Home;
app/javascript/mastodon/features/direct_timeline/index.js
salvadorpla/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { mountConversations, unmountConversations, expandConversations } from '../../actions/conversations'; impo...
src/header/Header.js
tsengkasing/LottoStar
/** * Created by Think on 2017/5/17. */ import React from 'react'; import { Link } from 'react-router-dom'; import Paper from 'material-ui/Paper'; // import AutoComplete from 'material-ui/AutoComplete'; import Sign from './sign/Sign'; import Auth from '../Auth'; import './Header.css'; import logo from './lottostar...
src/parser/priest/holy/modules/talents/60/ShiningForce.js
sMteX/WoWAnalyzer
import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; // Example Log: /report/NcKyHD94nrj31tG2/10-Mythic+Zek'voz+-+Kill+(9:35)/3-旧时印月 class ShiningForce extends Analyzer { ...
src/scenes/Booking/index.js
galsen0/hair-dv-front
/** * Created by diop on 06/05/2017. */ import React from 'react'; import { Grid } from 'semantic-ui-react'; import ReservationCard from './components/ReservationCard/index'; import StepsReservation from './components/StepsReservation'; import CSSModules from 'react-css-modules'; import styles from './styles.scss'; ...
src/components/Icon/Banana.js
tehkaiyu/bananas
import React from 'react'; function Banana() { return ( <svg version="1.1" className="icon-banana" x="0px" y="0px" viewBox="0 0 208.6 334.7" xmlSpace="preserve" > <g> <path fill="#DCAB2C" d="M24.8,174.7c2.8,31.3,9.4,61.6,25.1,89.2c11.5,20,...
src/components/TextInputCSSModules/TextInputCSSModules.js
patchygreen/ps-react-patchygreen
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styles from './textInput.css'; /** Text input with integrated label to enforce consistency in layout, error display, label placement */ function TextInputCSSModules({htmlId, name, label, type = 'text', required = false,...
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/app.js
phiratio/Pluralsight-materials
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the manifest.json file and the .htaccess file import '!file?name=[name].[ext]!./manifest.json'; import 'file?name=[name].[ext]!./.htaccess';...
ui/src/pages/PeopleManagePage/IfiEditor/index.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { compose, setPropTypes, defaultProps } from 'recompose'; import IfiAccountEditor from './IfiAccountEditor'; import IfiMboxEditor from './IfiMboxEditor'; import IfiMboxShaEditor from './IfiMboxShaEditor'; import IfiOpenIdEditor from './IfiOpenIdEdito...
Magistrate/client/components/roles/roleSelector.js
Pondidum/Magistrate
import React from 'react' import SelectorDialog from '../SelectorDialog' var RoleSelector = React.createClass({ open() { this.refs.dialog.open(); }, render() { return ( <SelectorDialog name="Roles" collectionUrl="/api/roles/all" ref="dialog" {...this.props} /...
packages/@lyra/form-builder/src/FormBuilder.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import {FormBuilderInput} from './FormBuilderInput' import FormBuilderContext from './FormBuilderContext' // Todo: consider deprecating this in favor of <FormBuilderContext ...><FormBuilderInput .../></FormBuilderContext> export default class FormBuilder ext...
app/javascript/mastodon/components/load_pending.js
primenumber/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class LoadPending extends React.PureComponent { static propTypes = { onClick: PropTypes.func, count: PropTypes.number, } render() { const { count } = this.props; return ...
Tests/Components/FullButtonTest.js
tk1cntt/KanjiMaster
import test from 'ava' import React from 'react' import FullButton from '../../App/Components/FullButton' import { shallow } from 'enzyme' test('component exists', t => { const wrapper = shallow(<FullButton onPress={() => {}} text='hi' />) t.is(wrapper.length, 1) // exists }) test('component structure', t => { ...
resources/assets/js/components/lista-tipos/containers/ListaTipos.js
Uminks/Restaurant-Manager
import React, { Component } from 'react'; import RenderTipos from '../components/RenderTipos'; import ListaPlatos from '../../lista-platos/containers/ListaPlatos'; function ListaTipos(props) { return ( <div id="inicio" className="col-lg-12 col-md-12 col-sm-12 col-xs-12"> <ul> { p...
blueocean-material-icons/src/js/components/svg-icons/image/tonality.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageTonality = (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 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87.93H13v-.93zM13 7h5.24c.25.31.48.6...
src/components/listButton/index.js
jiriKuba/Calculatic
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, View, StyleSheet } from 'react-native'; class ListButton extends Component { render() { const { buttonTitle, onListButtonPress } = this.props; return ( <View style={styles.listButton}> <Button title={...
src/components/episode_detail.js
renedaniel/Viewer
import React from 'react'; import {Row, Col, MediaBox} from 'react-materialize'; import Loading from './loading'; const EpisodeDetail = ({episode}) => { if (!episode) { return <Loading error={false} />; } const titulo = episode.title_episode; const descripcion = episode.description_large; const imgUrl =...
app/containers/App.js
renjithgr/bootbar
import React, { Component } from 'react'; import { connect } from 'react-redux'; import downloadFile from '../actions/download'; export class App extends Component { componentDidMount() { console.log(this.props); // this.props.loadInitialData(); } downloadFile() { this.props.downloadFile(); } ...
pkg/ui/src/components/Header.js
matt-deboer/kuill
import React from 'react' import AppBar from 'material-ui/AppBar' import { Toolbar, ToolbarGroup, ToolbarSeparator } from 'material-ui/Toolbar' import { grey200, grey300, grey800, blueA200 } from 'material-ui/styles/colors' import { typography } from 'material-ui/styles' import { Link } from 'react-router-dom' import {...
src/app/core/atoms/icon/icons/graph.js
blowsys/reservo
import React from 'react'; const Graph = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><polygon points="8.42072818 16 19 16 19 18 5 18 5 7 7 7 7 14.5923011 11.9914126 9.60088846 13.9794087 11.5888846 18.2754001 7.29289322 19.6896137 8.70710678 13.9794087 14.4173117 11.9914126 12.4293156"/></g></g></svg>; export ...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/filter-9.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageFilter9 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v2c0 1.11.9 2 2 2h2v2h-4v2h4c1.1 0...
react/src/containers/AncestryApp/SerializedAncestry/index.js
sinfin/folio
import React from 'react' function SerializedItem ({ item, index }) { const prefix = `ancestry[${index + 1}]` const name = (field) => `${prefix}[${field}]` return ( <div> <input type='hidden' name={name('id')} value={item.id} /> <input type='hidden' name={name('position')} value={index + 1} /> ...
src/components/ImageSlider/index.js
jiangxy/react-antd-admin
import React from 'react'; import './index.less'; /** * 图片走马灯, 基本是抄的这个: https://github.com/xiaolin/react-image-gallery * 写样式真是太痛苦了...臣妾真的做不到啊... */ class ImageSlider extends React.PureComponent { state = { previousIndex: 0, currentIndex: 0, }; componentWillMount() { this.navButton = ( <spa...
node_modules/react-router/es6/RouterContext.js
SlateRobotics/slate-website
'use strict'; var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import invariant from 'invariant'; import Reac...
src/svg-icons/device/screen-lock-landscape.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceScreenLockLandscape = (props) => ( <SvgIcon {...props}> <path d="M21 5H3c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm-2 12H5V7h14v10zm-9-1h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c...
assets/javascript/components/app/header.js
colinjeanne/learning-site
import Constants from '../../constants/constants'; import React from 'react'; import TabbedNavigation from './tabbedNavigation'; import UserButton from './userButton'; const header = props => { const navigationElement = ( <TabbedNavigation id="mainNavigation" onSelect={props.onTabSe...
admin/client/App/screens/Item/index.js
snowkeeper/keystone
/** * Item View * * This is the item view, it is rendered when users visit a page of a specific * item. This mainly renders the form to edit the item content in. */ import React from 'react'; import { Container, Spinner } from 'elemental'; import { connect } from 'react-redux'; import { Link } from 'react-router'...
src/backward/Widgets/CardSwiper.js
chaitanya0bhagvan/NativeBase
/* @flow */ import React from 'react'; import clamp from 'clamp'; import { Animated, PanResponder } from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; import { View } from './View'; const SWIPE_THRESHOLD = 120; export default class CardSwiper extends NativeBaseComponent { constru...
assets/jqwidgets/demos/react/app/grid/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js'; class App extends React.Component { render() { let source = { datatype: 'xml', datafields: [ { name: 'ProductName', ...
src/svg-icons/action/alarm-on.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOn = (props) => ( <SvgIcon {...props}> <path d="M22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.0...
src/shared/components/Products/ProductsTblPage.js
Grace951/ReactAU
import React from 'react'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import update from 'immutability-helper'; import {productEditColDetail} from '../../Data/General'; import { ImageLoader } from '../Shared/ImageLoader'; import { SortableTbl } from '../Shared/SortableTbl'; import ...
modules/gui/src/app/home/body/process/recipe/indexChange/indexChangeImageLayer.js
openforis/sepal
import {MapAreaLayout} from 'app/home/map/mapAreaLayout' import {VisualizationSelector} from 'app/home/map/imageLayerSource/visualizationSelector' import {compose} from 'compose' import {getAvailableBands} from './bands' import {getPreSetVisualizations} from './visualizations' import {msg} from 'translate' import PropT...
client/src/js/routes/routes.js
ziyadparekh/relay-services
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from 'components/App'; import FuelSavingsPage from 'containers/FuelSavingsPage'; import AuthContainer from 'containers/AuthContainer'; // import AboutPage from './components/AboutPage.js'; // import NotFoundPage from './components/...
app/javascript/mastodon/features/followers/index.js
alarky/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchAccount, fetchFollowers, expandFollowers, } from '../../actions/account...
app/javascript/mastodon/features/blocks/index.js
RobertRence/Mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
src/routes/error/ErrorPage.js
LeraSavchenko/Maysternia
/** * 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-...
js/react-base-64/src/components/Base64Form.js
mhfa/bacon
import React, { Component } from 'react'; import base64 from 'base-64'; class Base64Form extends Component { constructor(){ super(); this.state = { processedVal: "", formVal: "", }; } render() { const test = 'test'; const placeholder = `this a ${test}`; return ( <d...
docs/src/scenes/Home/index.js
directlyio/redink
import React from 'react'; import { Gist } from 'components'; import styles from './styles.scss'; const Home = () => ( <div className={styles.wrapper}> <h1 className="heading"> RethinkDB model layer that makes complex business-logic easy </h1> <p className="paragraph"> Redink provides some si...
src/svg-icons/editor/insert-emoticon.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertEmoticon = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm...
public/client/routes/overview/containers/overview.js
Concorda/concorda-dashboard
'use strict' import React from 'react' import {connect} from 'react-redux' export const Overview = React.createClass({ render () { return ( <div className="page container-fluid"> <div className="row middle-xs page-heading"> <h2 className="col-xs-12 col-sm-6">Overview</h2> </div> ...
examples/sidebar/app.js
etiennetremel/react-router
import React from 'react'; 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>{category.name}</h1> {this.props.children || ( ...
src/components/Comment.js
afonsobarros/reactnd-project-readable
import React, { Component } from 'react'; import { connect } from 'react-redux' import themeDefault from '../theme-default'; import { Button, TextField } from 'material-ui'; import { updateNewComment, resetNewComment, showSnackbar } from '../actions/appState' import { addComment } from '../actions/comments' import * ...
src/svg-icons/av/videocam.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVideocam = (props) => ( <SvgIcon {...props}> <path d="M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z"/> </SvgIcon> ); AvVideocam = pure(AvVideocam); Av...
node_modules/react-router/es/Redirect.js
Snatch-M/fesCalendar
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
app/pages/index.js
kswOok/rankList
/** * Created by kswook on 01/03/2017. */ import React from 'react'; import {render} from 'react-dom'; import '../app.css' import Index from '../component/Index.js' render(<Index/>, document.getElementById('content'));
src/svg-icons/communication/screen-share.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
src/index.js
AlexanderAA/conceptnet
import 'babel-polyfill' import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { applyMiddleware, createStore } from 'redux'; import { createLogger } from 'redux-logger' import thunkMiddleware from 'redux-thunk'; import rootReducer from './reducers'; import App from ...
src/components/ChatApp/MessageComposer.react.js
DeveloperAlfa/chat.susi.ai
import * as Actions from '../../actions/'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Send from 'material-ui/svg-icons/content/send'; import Mic from 'material-ui/svg-icons/av/mic'; import UserPreferencesStore from '../../stores/UserPreferencesStore'; import MessageStore from '...
assets/javascripts/kitten/components/structure/cards/team-card/components/image.js
KissKissBankBank/kitten
import React from 'react' import classNames from 'classnames' import PropTypes from 'prop-types' import COLORS from '../../../../../constants/colors-config' import styled from 'styled-components' const imageHeight = 378 const imageWidth = 252 const StyledTeamCardImage = styled(({ styled, backgroundSource, ...props })...
src/views/Home/HomeView.js
dfala/high-club
import React from 'react' import { connect } from 'react-redux' import { actions as counterActions } from '../../redux/modules/counter' import styles from './HomeView.scss' import TopNav from '../../components/Top-Nav/Top-Nav' // We define mapStateToProps where we'd normally use // the @connect decorator so the data r...
src/svg-icons/action/favorite.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavorite = (props) => ( <SvgIcon {...props}> <path d="M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6...
examples/universal/server/server.js
edge/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path' import Express from 'express' import qs from 'qs' import webpack from 'webpack' import webpackDevMiddleware from 'webpack-dev-middleware' import webpackHotMiddleware from 'webpack-hot-middleware' import webpackConfig from '../webpack.config...
src/containers/ServiceBookingRangePage.js
onlinebooking/booking-frontend
import React from 'react'; import ErrorAlert from '../components/ErrorAlert'; import InvalidBookPeriod from '../components/InvalidBookPeriod'; import { connect } from 'react-redux'; import Spinner from '../components/Spinner'; import BookingSteps from '../components/BookingSteps'; import BookingRange from '../component...
src/Base.js
zscaiosi/front-petdevice
import React, { Component } from 'react'; import { Switch, Route } from 'react-router-dom'; import Login from './components/acesso/LoginComponent'; import CadastroWraper from './components/acesso/CadastroComponent'; import { connect } from 'react-redux'; import { Redirect } from 'react-router-dom'; import Home from './...
js/components/AppNavigator/SceneContainer.js
c-h-/universal-native-boilerplate
import React from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, } from 'react-native'; const styles = StyleSheet.create({ container: { flexGrow: 1, }, }); const SceneContainer = (props) => { const { children, } = props; return ( <View style={styles.container}> ...
packages/rmw-shell/src/pages/Roles/index.js
TarikHuber/react-most-wanted
import AccountBoxIcon from '@mui/icons-material/AccountBox' import Avatar from '@mui/material/Avatar' import Divider from '@mui/material/Divider' import ListItem from '@mui/material/ListItem' import ListItemAvatar from '@mui/material/ListItemAvatar' import ListItemText from '@mui/material/ListItemText' import React fro...
src/Home.js
marzolfb/rn-art-d3-examples
/* Copyright 2016 Capital One Services, LLC 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 agreed to in writing...
src/components/Pager.js
jade-press/jadepress-react-spa
import React from 'react' import { Link } from 'react-router' import { createUrl, host, publicRoute, maxLink, pageSize } from '../common/constants' import RPager from 'react-pagenav' export default class Pager extends React.Component { constructor (props) { super(props) } unitRender() { return (unit, index...
src/components/common/picgrid.js
liuyuanquan/kankan
import React from 'react'; import polyfill from 'babel-polyfill'; class PicGrid extends React.Component { constructor(props) { super(); this.props = props; this.state = { rowNum: this.props.content.rowNum, columnNumPerRow: this.props.content.columnNumPerRow, currentRow: 0, rowWidth: null } } com...
app/view/recommend_detail.js
togayther/react-stock
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import * as RecommendAction from '../action/recommend'; import Container from '../component/container'; import { Article } from 'react-weui'; class RecommendDetailApp...
ui/js/pages/user/User.js
ericsoderberg/pbc-web
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import Show from '../../components/Show'; import Section from '../../components/Section'; import Text from '../../components/Text'; import Image from '../../components/Image'; ...
public/js/src/component/icons/Download.js
Lucifier129/isomorphism-react-file-system
import React from 'react' import Icon from './Icon' export default class Download extends React.Component { render() { return <Icon {...this.props} type="icon-file-download" name="Download" /> } }
src/shared/HeroPicker/HeroTile.js
kashisau/enroute
/** * HeroTile.js */ import React from 'react'; import './HeroTile.scss'; import classnames from 'classnames'; class HeroTile extends React.Component { constructor(props) { super(props); this.state = { active: false }; this.changeArticle = this.changeArticle.bind(thi...
src/containers/App.js
spencerkordecki/initiative-tracker
import React, { Component } from 'react'; import InputRow from '../components/InputRow'; import Table from '../components/Table'; import '../styles/index.scss'; const initialState = { characters: [] }; class App extends Component { constructor(props) { super(props); this.state = initialState; } /** ...
docs/app/Examples/collections/Table/Variations/TableExampleFixedLine.js
mohammed88/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleFixedLine = () => { return ( <Table celled fixed singleLine> <Table.Header> <Table.Row> <Table.HeaderCell>Name</Table.HeaderCell> <Table.HeaderCell>Status</Table.HeaderCell> <Table.He...
app/containers/Admin/Messages/index.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; import MessagesStats from './components/MessagesStats'; import MessageTypeSelector from './components/MessageTypeSelector'; export class Messages extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <div> <MessagesStats ...
src/modules/texts/layouts/ReadingLayout/ReadingLayout.js
cltk/cltk_frontend
import React from 'react'; import classnames from 'classnames'; import { withRouter } from 'react-router'; import ReadingHeaderContainer from '../../containers/ReadingHeaderContainer'; import Footer from '../../../../components/navigation/Footer'; import CommentaryPanelContainer from '../../../commentary/containers/Co...
cheesecakes/plugins/content-type-builder/admin/src/components/PluginLeftMenuLink/index.js
strapi/strapi-examples
/** * * PluginLeftMenuLink * - Required props: * - {object} Link * * - Optionnal props: * - {function} renderCustomLink : overrides the behavior of the link * */ import React from 'react'; import PropTypes from 'prop-types'; import { NavLink } from 'react-router-dom'; import styles from './styles.scss'; c...
opentech/static_src/src/app/src/components/FullScreenLoadingPanel/index.js
OpenTechFund/WebApp
import React from 'react' import LoadingPanel from '@components/LoadingPanel' import './styles.scss'; const FullScreenLoadingPanel = () => ( <div className="full-screen-loading-panel"> <LoadingPanel /> </div> ); export default FullScreenLoadingPanel;
src/parser/warrior/fury/modules/azerite/RecklessFlurry.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { formatNumber, formatPercentage, formatThousands } from 'common/format'; import TraitStatisticBox from 'interface/others/TraitStatisticBox'; import SPELLS from 'common/SPELLS'; import { SELECTED_PLAY...
src/components/Link.js
leoasis/state-router
import React from 'react'; export default class Link extends React.Component { static contextTypes = { store: React.PropTypes.object, renderUrl: React.PropTypes.func, }; render() { return <a href={this.calculateUrl()} onClick={this.handleClick.bind(this)}> {this.props.children} </a>; } ...
src/articles/2017-01-31-UnlistedLogs/index.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Zerotorescue } from 'CONTRIBUTORS'; import RegularArticle from 'interface/news/RegularArticle'; export const title = "A note about unlisted logs"; export default ( <RegularArticle title={title} publishedAt="2017-01-31" publishedBy={Zerotorescue} > Because Warcr...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
taimur97/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
src/components/comments/VoteButton.js
streamr-app/streamr-web
import React from 'react' import cx from 'classnames' export default ({ isSignedIn, numVotes, userHasVoted, onUpvote, onUnvote }) => { return ( <div className={cx('vote-button', { active: userHasVoted, disabled: !isSignedIn })} onClick={() => (isSignedIn && userHasVoted) ? onUnvote() : onUp...
src/svg-icons/hardware/phone-iphone.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneIphone = (props) => ( <SvgIcon {...props}> <path d="M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1zm-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1...