path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
fields/components/DateInput.js
woody0907/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { d1.setHours(0, 0, 0, 0); d2.setHours(0, 0, 0, 0); return d1.getTime() === d2.getTime(); } m...
ui/app/index.js
mmadej85/todo-list
import './styles/app.css' import React from 'react'; import ReactDOM from 'react-dom'; import TaskBox from './components/TaskBox.jsx'; import {CONFIG} from './constants/constants'; ReactDOM.render(<TaskBox url={CONFIG.urlTasks} pollInterval={CONFIG.pollInterval} />, document.getElementById('root'));
src/containers/List/Page.js
LifeSourceUA/lifesource.ua
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { asyncConnect } from 'redux-connect'; import Helmet from 'react-helmet'; import * as Common from 'components/Common'; import Meta from './Meta'; @asyncConnect( [], ({ browser }) => { return { browser }; } ) /* es...
packages/react-interactions/events/src/dom/Keyboard.js
flarnie/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type { ReactDOMResponderEvent, ReactDOMResponderContext, } from 'shared/ReactDOMTypes'; import type {ReactE...
webapp/app/components/Restore/Table/index.js
EIP-SAM/SAM-Solution-Node-js
// // Table page save // import React from 'react'; import { Table } from 'react-bootstrap'; import ButtonPopover from 'components/ButtonPopover'; import Tr from 'components/Tr'; import Th from 'components/Th'; import Td from 'components/Td'; import RestoreInstantRestoreModal from 'containers/Restore/Table/ModalInstan...
src/client/index.js
dashukin/react-redux-template
import React from 'react'; import { hydrate } from 'react-dom'; import { ROOT_ELEMENT_ID } from 'config/application'; import get from 'lodash/get'; import { createAppStore } from 'src/client/store/store'; import { createServices } from 'src/common/services'; import { createClientHistory } from 'src/common/history'; i...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
Craftodon/Craftodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
blueocean-material-icons/src/js/components/svg-icons/image/collections-bookmark.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageCollectionsBookmark = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/> </SvgIcon> ); ImageCollections...
src/front-end/js/components/CV/Languages.js
aleksey-gonchar/iamamaze.me
import React from 'react' import createFragment from 'react-addons-create-fragment' import { isFetched } from '../../reducers/CVReducer.js' import CVActions from '../../actions/CVActions.js' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import marked from 'marked' import uuid from 'no...
app/components/Store/Category/CategoriesGrid/index.js
VineRelay/VineRelayStore
import React from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { createFragmentContainer, graphql } from 'react-relay'; import Grid from 'app/components/Store/Main/Grid'; const CategoryItem = styled.div` display: flex; flex-direction: column; cursor: pointer; `; co...
src/App.js
veenedu/ReactReduxTodo
import React, { Component } from 'react'; import './App.css'; import TodoForm from './components/TodoForm.react' import TodoList from './components/TodoList.react' import store from './redux/store'; import { Provider } from 'react-redux'; class App extends Component { render() { return ( <Provider store={...
src/controls/BlockType/index.js
jpuri/react-draft-wysiwyg
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { getSelectedBlocksType } from 'draftjs-utils'; import { RichUtils } from 'draft-js'; import LayoutComponent from './Component'; class BlockType extends Component { static propTypes = { onChange: PropTypes.func.isRequired, ...
src/shared/VerticalList/VerticalList.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types'; const VerticalList = ({ items = [] }) => { if (!items.length) { return <span /> } return ( <ul className="list-vertical"> {items.map((item, i) => ( <li key={i}> <article> <h3 className="au-display-md"><a hre...
Js/Ui/Components/Draft/PluginsContainer.js
Webiny/Webiny
import React from 'react'; import _ from 'lodash'; import Immutable from 'immutable'; import PluginBlock from './PluginBlock'; export default class PluginsContainer { constructor(plugins, editor, Draft) { this.Draft = Draft; this.editor = editor; this.plugins = plugins; this.config ...
app/components/ExercisesNew.js
henrikra/gym-diary
import React, { Component } from 'react'; import { reduxForm } from 'redux-form'; import { Input, ButtonInput } from 'react-bootstrap'; import { createExercise } from '../actions'; import InputField from './InputField'; class ProgramsNew extends Component { onSubmit = (props) => { this.props.createExercise(props) ...
src/components/Icons/SVG.js
bogas04/SikhJS
import React from 'react'; export default props => ( <svg width="25px" height="25px" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" xmlSpace="preserve" x="0px" y="0px" enableBackground="new 0 0 1000 1000" fill="white" {...props} ...
packages/reactor-kitchensink/src/examples/SplitButton/SplitButton.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Spacer, ToggleField, Container, Panel, Button, Menu, MenuItem, MenuRadioItem, SplitButton } from '@extjs/ext-react'; export default class SplitButtonExample extends Component { state = { style: '', type: 'text', round: false }; ...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupBasic.js
clemensw/stardust
import React from 'react' import { Button, Divider } from 'semantic-ui-react' const ButtonExampleGroupBasic = () => ( <div> <Button.Group basic> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> <Divider /> <Button.Group basic vertical> <Button>O...
src/views/clubLayout/Loading/Loading.js
VirtualClub/vclub
import React from 'react'; import styles from './Loading.css'; export default function Loading() { return ( <div className={styles.container}> <span>Загрузка приложения...</span> </div> ); }
examples/todo/js/components/TodoTextInput.js
SBUtltmedia/relay
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
src/svg-icons/av/shuffle.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvShuffle = (props) => ( <SvgIcon {...props}> <path d="M10.59 9.17L5.41 4 4 5.41l5.17 5.17 1.42-1.41zM14.5 4l2.04 2.04L4 18.59 5.41 20 17.96 7.46 20 9.5V4h-5.5zm.33 9.41l-1.41 1.41 3.13 3.13L14.5 20H20v-5.5l-2....
site/src/index.js
ideyuta/emojafy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; window.addEventListener('DOMContentLoaded', () => { const container = document.getElementById('app'); ReactDOM.render(<App />, container); });
src/web/common/NotFoundPage.js
whybug/whybug-server
import React from 'react'; import {Header} from './UI'; var {div} = React.DOM; export default React.createClass({ render() { return ( <div> <Header user={this.props.user}/> <div>Not found :-(</div> </div> ); } });
src/svg-icons/action/watch-later.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (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 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
src/library/authentication/components/AccessControl.js
zdizzle6717/react-flux-arc
'use strict'; import React from 'react'; import createUserStore from '../stores/UserStore'; import UserActions from '../actions/UserActions'; export default function(roleConfig) { let UserStore = createUserStore(roleConfig); class AccessControl extends React.Component { constructor() { super(); this.stat...
app/javascript/mastodon/components/collapsable.js
TootCat/mastodon
import React from 'react'; import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/spring'; import PropTypes from 'prop-types'; const Collapsable = ({ fullHeight, isVisible, children }) => ( <Motion defaultStyle={{ opacity: !isVisible ? 0 : 100, height: isVisible ? fullHeight : 0 }} style=...
src/components/CurrentUser.js
reindexio/reindex-starter-kit-react-auth0
import React from 'react'; import Relay from 'react-relay'; import User from './User'; const CurrentUser = (props) => ( <div> <h2>Current User</h2> <User user={props.viewer.user} /> </div> ); export default Relay.createContainer(CurrentUser, { fragments: { viewer: () => Relay.QL` fragment on ...
node_modules/react-native/local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
nauman-ahmad-qureshi/adsManagement
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
app/pages/index.js
tachyons-css/tachyons-generator
import React from 'react' import isPresent from 'is-present' import commaSplit from 'comma-split' import conf from '../config' const config = conf() import Layout from '../components/layout' export default class extends React.Component { constructor () { super() this.state = { config } } ha...
app/components/Permissions/UserAndBoundaryList.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import get from 'lodash.get'; import capitalize from 'lodash.capitalize'; import isEmpty from 'lodash.isempty'; import { Loading, Message } from '../common'; import { Pagination } from '../../containers/Users'; const UserAndBoundaryListView = (props) => {...
page/bici-stats/src/App.js
viticlick/bici-stats-cournha
import React, { Component } from 'react'; import Graficos from './components/graficos'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div class="container"> <div class="header clearfix"> <h3 class="text-muted">Bici Stats Coruña</h3> ...
app/containers/AuthLogin/CanvasBg/index.js
SakuB/Individual_website
import React, { Component } from 'react'; import styles from './styles.css'; import init from './canvas.js'; class CanvasBg extends Component { // eslint-disable-line componentDidMount() { init(); } render() { return ( <div className={styles.canvas_con}> <canvas id="Mycanvas" style={{ wi...
src/components/Feedback/Feedback.js
YumboRumbo/FlashCard
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import s from './Feedback.scss'; import withStyles from '../../decorators/withStyles'; @withStyles(s) class Feedback extends Component { render() { return ( <div className={s.root}> ...
docs/src/Anchor.js
insionng/react-bootstrap
import React from 'react'; const Anchor = React.createClass({ propTypes: { id: React.PropTypes.string }, render() { return ( <a id={this.props.id} href={'#' + this.props.id} className='anchor'> <span className='anchor-icon'>#</span> {this.props.children} </a> ); } }); e...
frontend/react/components/Notification.js
Dishant15/TechIntrest
import React from 'react'; import { connect } from 'react-redux'; import store from '../store'; @connect((store) => { return { notifications : store.notifications.notifications, count : store.notifications.noti_count, }; }) export default class NotificationList extends React.Component { renderNotification(){ ...
packages/es-components/src/components/containers/notification/Message.js
TWExchangeSolutions/es-components
import React from 'react'; import PropTypes from 'prop-types'; const propTypes = { emphasizedText: PropTypes.string, text: PropTypes.string.isRequired }; const defaultProps = { emphasizedText: undefined }; export function InlineMessage({ emphasizedText, text }) { return ( <span> {emphasizedText !==...
src/utils/intl-test.js
petorious/dmprov-app
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ //SOURCE: http://stackoverflow.com/questions/37021217/i...
server/src/components/Command.js
longtian/java-process-viewer
import React from 'react'; import socket from '../socket'; import { connect } from 'react-redux'; import { EXEC } from '../../constants'; class Command extends React.Component { constructor(...args) { super(...args); } componentDidMount() { const { uuid, command, host } = this.prop...
src/svg-icons/device/wifi-tethering.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceWifiTethering = (props) => ( <SvgIcon {...props}> <path d="M12 11c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 2c0-3.31-2.69-6-6-6s-6 2.69-6 6c0 2.22 1.21 4.15 3 5.19l1-1.74c-1.19-.7-2-1.97-2-3.45 0-2.21...
frontend/src/components/App/container.js
plusbeauxjours/nomadgram
import React from 'react'; import App from './presenter'; const Container = props => <App {...props} /> export default Container;
src/app/component/progress/progress.js
all3dp/printing-engine-client
import PropTypes from 'prop-types' import React from 'react' import propTypes from '../../prop-types' import cn from '../../lib/class-names' const Progress = ({classNames, value, max = 100}) => ( // The bar needs to be wrapped into a div because we need to set // the color property of the <progress> element to cu...
src/index.js
alexcpendleton/pondryhills.com
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import Routes from './Routes'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<Routes />, document.getElementById('root')); registerServiceWorker();
docs/src/app/components/pages/components/List/ExampleMessages.js
hai-cea/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar'; import {grey400, darkBlack, lightBlack} from 'material-ui...
src/Affix.js
zerkms/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import AffixMixin from './AffixMixin'; import domUtils from './utils/domUtils'; const Affix = React.createClass({ statics: { domUtils }, mixins: [AffixMixin], render() { let holderStyle = {top: this.state.affixPositionTop}; return (...
src/client.js
sunh11373/t648
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import createStore from './redux/create'; import ApiClient from './helpers/ApiClient'; import {Provider} from 'react-redux'; imp...
frontend/app/components/Loading/Loading.js
briancappello/flask-react-spa
import React from 'react' import { PageContent } from 'components/Content' import Spinner from './Spinner' export default () => ( <PageContent> <Spinner color="black"/> <strong>Loading...</strong> </PageContent> )
node_modules/react-icons/ti/calender.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const TiCalender = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.7 10.3v-0.3c0-2.8-2.3-5-5-5s-5 2.2-5 5h-3.4c0-2.8-2.2-5-5-5s-5 2.2-5 5v0.3c-1.9 0.7-3.3 2.5-3.3 4.7v15c0 2.8 2.2 5 5 5h20c2.8 0 5-2.2 5-5v-15c0-2.2-1.4-4-3.3-4.7...
assets/js/src/components/Charts/ContributorsComparison.js
nathandao/git.report
import React from 'react'; import _ from 'lodash'; import BaseChart from 'components/Charts/BaseChart'; class ContributorsComparison extends React.Component { getChartData() { let chartData = []; let contributorsData = _.filter(this.props.contributorsData, (data) => { let repoIndex = _.findIndex(this....
app/components/base/DevTools.js
mic-fadeev/postglass
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 /> </DockMonit...
src/components/LoadingView.js
francocorreasosa/ClimaUY
import React from 'react'; import { View, ActivityIndicator, } from 'react-native'; const styles = { container: { flex: 1, alignItems: 'center', justifyContent: 'center', }, indicatorContainer: { flex: 1, width: 80, maxHeight: 80, backgroundColor: '#ddd', alignItems: 'center',...
libraries/react-native/beginner/index.android.js
vivaxy/course
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class beginner extends Component { render() { return ( <View style={styles.container}> ...
lib/site/home-forum/topic-card/component.js
DemocracyOS/app
import React from 'react' import { Link } from 'react-router' import t from 't-component' import topicStore from 'lib/stores/topic-store/topic-store' export default ({ topic }) => ( <Link to={topic.url} className='topic-card'> <div className='topic-cover' style={{ backgroundImage: `ur...
app/containers/NotFoundPage/index.js
SpatialMap/SpatialMapDev
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/common/index.js
canonical-websites/build.snapcraft.io
// import global stylesheets before app renders import '../../node_modules/normalize.css/normalize.css'; import './style/base.css'; import { createNav } from '@canonical/global-nav'; import React from 'react'; import { render } from 'react-dom'; import Root from './root'; createNav({ maxWidth: '64.875rem', showLogi...
src/util/auth/check.js
simors/yjbAdmin
import React from 'react'; import {Redirect} from 'react-router-dom'; import AV from 'leancloud-storage'; import {store} from '../../store/persistStore'; import {appStateSelector} from '../../util/appstate' export function checkAuth(from) { // from is an location object const appState = store.getState(); let appS...
src/decorators/withViewport.js
ninnemana/node-battle
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/basic/View.js
sampsasaarela/NativeBase
/* @flow */ import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class ViewNB extends Component { render() { return ( <View ref={c => this._root = c} {...t...
src/views/Components/Tabs/Tabs.js
haromy/appSO
import React, { Component } from 'react'; import { TabContent, TabPane, Nav, NavItem, NavLink } from 'reactstrap'; import classnames from 'classnames'; class Tabs extends Component { constructor(props) { super(props); this.toggle = this.toggle.bind(this); this.state = { activeTab: '1' }; } ...
docs/src/app/components/pages/components/Popover/ExampleConfigurable.js
spiermar/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import RadioButton from 'material-ui/RadioButton'; import Popover from 'material-ui/Popover/Popover'; import {Menu, MenuItem} from 'material-ui/Menu'; const styles = { h3: { marginTop: 20, fontWeight: 400, }, block: { dis...
blueocean-material-icons/src/js/components/svg-icons/device/signal-wifi-2-bar.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalWifi2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M4.79 12.52l7.2 8.98H12l.01-.01 7.2-8.98C18.85 12.24 16.1...
src/components/fields/TextField.js
streamr-app/streamr-web
import React from 'react' import cx from 'classnames' import FieldErrors from './FieldErrors' export default ({ id, label, className, type = 'text', errors = [], children, ...rest }) => ( <div className={cx('field text-field', className, { errors: errors.length > 0 })}> <label htmlFor={id}>{labe...
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepositoryContent.js
snagoor/katello
import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Spinner, OverlayTrigger, Tooltip } from 'patternfly-react'; import { translate as __ } from 'foremanReact/common/I18n'; const EnabledRepositoryContent = ({ loading, disableTooltipId, disableRepository }) => ( <Spinne...
docs/app/Examples/views/Feed/Content/FeedExampleSummaryDate.js
ben174/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const FeedExampleSummaryDate = () => ( <Feed> <Feed.Event> <Feed.Label> <img src='http://semantic-ui.com/images/avatar/small/jenny.jpg' /> </Feed.Label> <Feed.Content> <Feed.Summary> You added <a>Jenny ...
app/javascript/src/components/packageBlocks/List.js
michelson/chaskiq
import React from 'react' import tw from 'twin.macro' import styled from '@emotion/styled' const ListWrapper = styled.div` ${() => tw`subpixel-antialiased bg-white overflow-hidden`} ${() => tw`my-2`} ${() => { return tw`border-b border-gray-200` }} ul{ ${() => tw`m-0 p-0`} } .list-item { ...
src/index.js
eldridger/Catalyst
import React from 'react'; import { App } from './App'; React.render(<App />, document.getElementById('root'));
actor-apps/app-web/src/app/components/DialogSection.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/js/components/plan/PlanFormTabs.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat Inc. * * 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...
good-old-react-authentication-flow/src/components/Table/index.js
strapi/strapi-examples
/** * * Table * */ import React from 'react'; import PropTypes from 'prop-types'; import TableHeader from '../TableHeader'; import TableRow from '../TableRow'; import TableEmpty from '../TableEmpty'; import './styles.scss'; const Table = (props) => { return ( <table className="table tableWrapper"> <Tabl...
app/components/SearchAddLabel/index.js
zillding/hangouts
/** * * SearchAddLabel * */ import React from 'react'; import IconButton from 'material-ui/IconButton'; import AddedIcon from 'material-ui/svg-icons/av/playlist-add-check'; const SearchAddLabel = () => ( <IconButton tooltip="Added" tooltipPosition="top-left" disabled > <AddedIcon /> </IconButto...
src/components/UserMenu/UserMenu.js
k2data/react-redux-starter-kit
// @flow import React from 'react' import { Menu, Dropdown, Icon } from 'antd' import styles from './UserMenu.css' const menu = ( <Menu> <Menu.Item key='0'> <a href='http://www.alipay.com/'>Your profile</a> </Menu.Item> <Menu.Item key='1'> <a href='http://www.taobao.com/'>Settings</a> </M...
pages/index.js
cable729/react-blog
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Home Page</h1> <p>Coming ...
frontend/src/lib/mui-components/ComboboxDialog/components/Chip.js
jf248/scrape-the-plate
import React from 'react'; import classnames from 'classnames'; import * as Mui from '@material-ui/core'; const styles = theme => ({ chip: { marginBottom: theme.spacing.unit, marginRight: theme.spacing.unit / 2, }, hasFocus: { backgroundColor: theme.palette.primary.main, }, }); function Chip(props...
src/Login.js
shaneosullivan/spotlist
import React, { Component } from 'react'; class Login extends Component { render() { return ( <div className="login"> <div className="background"> <div className="image i1"></div> <div className="image i2"></div> <div className="image i3"></div> <div classNam...
example/examples/CachedMap.js
azt3k/react-native-maps
import React from 'react'; import { Text, View, Dimensions, StyleSheet, ListView, TouchableOpacity, } from 'react-native'; import MapView from 'react-native-maps'; import flagImg from './assets/flag-blue.png'; const HORIZONTAL_PADDING = 12; const VERTICAL_PADDING = 6; class CachedMap extends React.Compon...
src/svg-icons/image/crop-square.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
app/components/Header/index.js
qiubit/lamp-experiment
import React from 'react'; import { FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import messages from './messages'; im...
routes.js
arpith/react-router-example
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/App'; import HomePage from './components/HomePage'; import AboutPage from './components/AboutPage'; const routes = ( <Route path='/' component={App}> <IndexRoute component={HomePage} /> <Route path='abou...
eGasAPP/www/lib/auth0-lock/support/design/index.js
egasJMLM/App-web
import React from 'react'; import ReactDOM from 'react-dom'; import Immutable from 'immutable'; import _ from '../../src/browser'; import Control, { store } from './control'; import * as ClientSettings from '../../src/core/client/settings'; import webAPI from '../../src/core/web_api'; const WebAPI = webAPI.constructor;...
examples/custom-server-hapi/pages/index.js
nikvm/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
app/assets/scripts/components/resolution-comparison.js
satsummit/landscape
import React from 'react' import MapComponent from './map' import _ from 'lodash' module.exports = React.createClass({ displayName: 'ResolutionComparison', propTypes: { title: React.PropTypes.string, maps: React.PropTypes.array, token: React.PropTypes.string, center: React.PropTypes.array }, ...
app/javascript/mastodon/features/ui/util/reduced_motion.js
summoners-riftodon/mastodon
// Like react-motion's Motion, but reduces all animations to cross-fades // for the benefit of users with motion sickness. import React from 'react'; import Motion from 'react-motion/lib/Motion'; import PropTypes from 'prop-types'; const stylesToKeep = ['opacity', 'backgroundOpacity']; const extractValue = (value) =>...
src/scenes/home/mentor/mentorDetails/mentorDetails.js
alexspence/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Modal from 'shared/components/modal/modal'; import styles from 'shared/components/modal/modal.css'; export default class MentorDetails extends Component { static defaultProps = { isOpen: false, onRequestClose: () => {}, ...
app/assets/scripts/components/groupings-list.js
ASL-19/civicdr
'use strict'; import React from 'react'; import GroupingCard from '../components/grouping-card'; var GroupingsList = React.createClass({ displayName: 'GroupingsList', propTypes: { groupings: React.PropTypes.array, onCreateGrouping: React.PropTypes.func }, render: function () { return ( <div ...
src/components/version-link/VersionLink.js
ipfs/webui
import React from 'react' const providers = { 'go-ipfs': { url: 'https://github.com/ipfs/go-ipfs' }, 'js-ipfs': { url: 'https://github.com/ipfs/js-ipfs' } } const findUrl = name => { const provider = providers[name] if (!provider) return null return provider.url } // formats an ipfs agentVersio...
src/svg-icons/image/flash-off.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashOff = (props) => ( <SvgIcon {...props}> <path d="M3.27 3L2 4.27l5 5V13h3v9l3.58-6.14L17.73 20 19 18.73 3.27 3zM17 10h-4l4-8H7v2.18l8.46 8.46L17 10z"/> </SvgIcon> ); ImageFlashOff = pure(ImageFlashOf...
src/pages/about.js
aberkow/gatsby-blog
import React from 'react'; import Link from 'gatsby-link'; import { BlogPostContent, BlogPostContainer } from '../utils/styles'; const About = () => <BlogPostContainer> <BlogPostContent> <h2>I'm Adam. Nice to meet you!</h2> <p>I'm a web developer based in West Hartford Connecticut. Believe it or no...
src/app/container/checkout-cart-done-partial.js
all3dp/printing-engine-client
import React from 'react' import {connect} from 'react-redux' import compose from 'recompose/compose' import * as selector from '../lib/selector' import {formatMaterialInfo} from '../lib/formatter' import CheckoutStepSection from '../component/checkout-step-section' import List from '../component/list' import ListIte...
src/components/Home.js
paulhoughton/react-pwa
import React from 'react'; export default () => ( <h1>Home Page</h1> );
app/scripts/common/Footer/footer.js
express-global-solutions/timesheet
import './footer.scss'; import React, { Component } from 'react'; class Footer extends Component { render() { return ( <div className="footer"> <div className="info container"> <div className="col-sm-6"> <p className="design">Design by Express Global LLC | All Rights Reserved</p> ...
react/features/overlay/components/web/OverlayFrame.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; declare var interfaceConfig: Object; /** * The type of the React {@code Component} props of {@link OverlayFrame}. */ type Props = { /** * The children components to be displayed into the overlay frame. */ children: React$Node, /** * In...
packages/material-ui-icons/src/BatteryCharging90TwoTone.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z" /><path d="M13 12.5h2L11 20v-5.5H9L12.47 8H7v12.67C7 21.4 7.6 22 8.33 22h7.33c....
src/js/components/icons/base/ServicePlay.js
odedre/grommet-final
/** * @description ServicePlay 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. *...
src/components/Main.js
wangzengkai/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.scss'); import React from 'react'; import ReactDOM from 'react-dom'; // 获取图片相关的数据 var imageDatas = require('../data/imageData.json'); // 利用自执行函数,将图片名信息转成图片URL路径信息 function getImageURL(imageDatasArr) { for (var i = 0; i < imageDatasArr.length; i++) { v...
src/compose/ComposeMenuContainer.js
nashvail/zulip-mobile
/* @flow */ import React from 'react'; import { StyleSheet, View } from 'react-native'; import { connect } from 'react-redux'; import { connectActionSheet } from '@expo/react-native-action-sheet'; import boundActions from '../boundActions'; import ComposeMenu from './ComposeMenu'; const ConnectedComposeMenu = connect...
src/containers/Home/Home.js
SQ1Labs/SQ1_LandingPage
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import { Hero, Logos, Clients, FeatureImage, GradientRow, Footer, MessagesProcessed } from 'components'; import TwilioLogo from '../../../static/twilio-logo.png'; import ImageOne from "../../../static/device-row-1.png"; import ImageTwo from "....
app/javascript/mastodon/features/favourited_statuses/index.js
lindwurm/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchFavouritedStatuses, expandFavouritedStatuses } from '../../actions/favourites'; import Column from '../ui/components/column'; import ColumnHeade...
src/components/DBTable/InnerTableSchemaUtils.js
RodgerLai/nodejs-nedb-excel
import React from 'react'; import { Form, Input, DatePicker, Select, Radio, InputNumber, Checkbox } from 'antd'; import moment from 'moment'; import Logger from '../../utils/Logger'; const FormItem = Form.Item; const RadioGroup = Radio.Group; const CheckboxGroup = Checkbox.Group; const Option = Select.Op...
bdocker/bnodejs/gatsby/blog/pages/index.js
waterbolik/prestudy
import React from 'react' import { Link } from 'react-router' import sortBy from 'lodash/sortBy' import get from 'lodash/get' import { prefixLink } from 'gatsby-helpers' import { rhythm } from 'utils/typography' import Helmet from "react-helmet" import { config } from 'config' import include from 'underscore.string/inc...
frontsrc/src/router.js
allForMoney/SysMng
import React from 'react'; import { Router, Route } from 'dva/router'; import Blank from './routes/Blank'; import LoginForm from './routes/LoginForm'; import ModifyConcat from './components/sysConfig/ModifyConcat'; import Advice from './components/sysConfig/Advice'; import ProjectBudget from './components/budget/Projec...
frontend/react-slingshot/src/components/AboutPage.js
ggchan0/git_diffed
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...