path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/client/activity/UserActionContents.js
busyorg/busy
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import * as accountHistory from '../../common/constants/accountHistory'; const UserActionContents = ({ actionType, actionDetails }) => { if (actionType === accountHistory.CUSTOM_JSON) { // Special case: Follow, Unfollow, Reblo...
app/containers/App/index.js
RobinPayne/isitfriday
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) */ import React from 'react'; import Helmet from 'react-helmet'; // Import the CSS reset, which HtmlWebpackPlugin transfers to the build folder ...
src/svg-icons/navigation/expand-less.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationExpandLess = (props) => ( <SvgIcon {...props}> <path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z"/> </SvgIcon> ); NavigationExpandLess = pure(NavigationExpandLess); NavigationExpandLess.displa...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/assessment.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionAssessment.displayName = 'ActionAs...
test/specs/collections/Breadcrumb/BreadcrumbDivider-test.js
koenvg/Semantic-UI-React
import React from 'react' import BreadcrumbDivider from 'src/collections/Breadcrumb/BreadcrumbDivider' import * as common from 'test/specs/commonTests' describe('BreadcrumbDivider', () => { common.isConformant(BreadcrumbDivider) common.rendersChildren(BreadcrumbDivider) common.implementsIconProp(BreadcrumbDivi...
app/js/components/ui/containers/button.js
blockstack/blockstack-portal
import React from 'react' import { StyledButton, Buttons } from '@ui/components/button' import PropTypes from 'prop-types' import { Spinner } from '@ui/components/spinner' import { Link } from 'react-router' import ArrowRightIcon from 'mdi-react/ArrowRightIcon' import QrcodeIcon from 'mdi-react/QrcodeIcon' import Searc...
js/components/SignUp.js
GregSantulli/react-drum-sequencer
"use strict"; import React, { Component } from 'react'; import Api from "../actions/api.js" import $ from 'jquery' require('../../css/app.sass') require('../../css/bootstrap.css') class SignUp extends Component { constructor(props) { super(props); this.state = { hasSubmitted: false, ...
webapp/src/components/ShowCubeForm.js
ArnaudBrousseau/blockbin
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom' class ShowCubeForm extends Component { constructor(props) { super(props); this.state = { value: '0x...', cubeURL: undefined, shouldRedirect: false }; this.handleChange = this.handleChange.bind(t...
animation/src/water-ripples/index.js
alcat2008/web-demo
import React from 'react'; import { TransitionMotion, spring } from 'react-motion'; import './index.css'; const leavingSpringConfig = { stiffness: 60, damping: 15 }; class WaterRipples extends React.Component { constructor(props) { super(props); // initial state this.state = { mouse: [], now...
src/Collapse.js
justinanastos/react-bootstrap
import React from 'react'; import Transition from 'react-overlays/lib/Transition'; import domUtils from './utils/domUtils'; import CustomPropTypes from './utils/CustomPropTypes'; import deprecationWarning from './utils/deprecationWarning'; import createChainedFunction from './utils/createChainedFunction'; let capitali...
packages/react-dom/src/client/ReactDOMOption.js
mjackson/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 React from 'react'; import warning from 'shared/warning'; import {getToStringValue, toString} from './ToStringV...
src/components/Blog/Blog/Blog.js
easingthemes/notamagic
import React from 'react'; import data from '../data'; import BlogItem from '../BlogItem/BlogItem'; /** * React component implementation. * * @author dfilipovic * @namespace ReactApp * @class Blog * @extends ReactApp */ export class Blog extends React.Component { // -------------------------------------------...
clients/packages/admin-client/src/mobilizations/components/list/items/created-at.js
nossas/bonde-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage } from 'react-intl' /* eslint-disable camelcase */ const CreatedAt = ({ created_at, createdAt }) => { const date = new Date(Date.parse(created_at || createdAt)) return ( <div className='created-at px3 col col-2'> {`${...
node_modules/react-bootstrap/es/SafeAnchor.js
WatkinsSoftwareDevelopment/HowardsBarberShop
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
app/javascript/mastodon/features/ui/components/bundle.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const emptyComponent = () => null; const noop = () => { }; class Bundle extends React.PureComponent { static propTypes = { fetchComponent: PropTypes.func.isRequired, loading: PropTypes.func, error: PropTypes.func, children: PropTypes.fu...
src/encoded/static/components/viz/ChartDetailCursor/CursorComponent.js
4dn-dcic/fourfront
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import _ from 'underscore'; import * as vizUtil from '@hms-dbmi-bgm/shared-portal-components/es/components/viz/utilities'; import { console, isServerSide, layout, WindowEventDelegator } from '@hms-dbmi-bgm/shared-portal-components/es/components...
src/svg-icons/navigation/subdirectory-arrow-right.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationSubdirectoryArrowRight = (props) => ( <SvgIcon {...props}> <path d="M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z"/> </SvgIcon> ); NavigationSubdirectoryArrowRight = pure(Navigat...
src/components/Main.js
skyline10101/gallery-by-react
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; import ReactDOM from 'react-dom'; import ImgFigure from './ImgFigure'; import ControllerUnit from './ControllerUnit'; //获取图片相关数据 let imageDatas = require('json!../data/imageDatas.json'); //利用自执行函数,将图片名信息转成图片URL路径信息 imageDat...
app/javascript/mastodon/components/column_header.js
kazh98/social.arnip.org
import React from 'react'; import PropTypes from 'prop-types'; import { createPortal } from 'react-dom'; import classNames from 'classnames'; import { FormattedMessage, injectIntl, defineMessages } from 'react-intl'; import Icon from 'mastodon/components/icon'; const messages = defineMessages({ show: { id: 'column_h...
client/js/components/color-form.component.js
training4developers/react_06262017
import React from 'react'; import PropTypes from 'prop-types'; import { BaseComponent } from './base-component'; export class ColorForm extends BaseComponent { static propTypes = { onSubmitColor: PropTypes.func.isRequired, } componentDidMount() { this.newColorInput.focus(); } onClick = (e) => { ...
react-ui/src/components/base/SendMessage.js
MaGuangChen/resume-maguangchen
import React from 'react'; import { connect } from 'react-redux'; import { graphql } from 'react-apollo'; import { compose } from 'react-apollo'; import moment from 'moment'; import * as actions from '../../actions/actions'; import sendMessageMutation from '../../mutations/sendMessage'; import fetchUserMessage from '....
assets/search-employee-view/components/UserHome.js
janta-devs/nyumbani
import React, { Component } from 'react'; import SuggestedEmployees from './SuggestedEmployees'; import StatusUpdate from './StatusUpdate'; import SearchBar from './SearchBar' class UserHome extends Component { constructor( context, props){ super(context, props); } componentWillMount(){ } render () { return ...
app/src/containers/admin/EditorCode.js
ouxu/NEUQ-OJ
import React from 'react' import EditorCode from 'components/admin/EditorCode' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { editorCode} from 'actions' export default connect( state => ({ }), dispatch => bindActionCreators({editorCode}, dispatch), )(EditorCode)
react-dev/components/social_media_list.js
InsidiousMind/code.LiquidThink
import React from 'react'; import IconButton from 'material-ui/IconButton'; import { green900 } from 'material-ui/styles/colors'; import _ from 'lodash'; const iconStyles = { icon: { marginRight: 10, iconHoverColor: green900, }, hoveredStyle: { color: green900, }, linkStyle: { padding: 0, ...
docs/src/app/components/pages/components/TimePicker/ExampleSimple.js
verdan/material-ui
import React from 'react'; import TimePicker from 'material-ui/TimePicker'; const TimePickerExampleSimple = () => ( <div> <TimePicker hintText="12hr Format" /> <TimePicker hintText="12hr Format with auto ok" autoOk={true} /> <TimePicker format="24hr" hintText="24hr F...
src/px-chip/index.js
jonniespratley/px-components-react
import React from 'react'; import classnames from 'classnames'; import stylesheet from './px-chip.scss'; /** * px-chip component */ export default ({ style, label = 'px-chip', icon, selected, showIcon, children }) => { const baseClasses = classnames('px-chip'); const chipClasses = classnames('chip'...
client/src/components/billing/initial-checkout.js
hah-nan/papabear2
import React, { Component } from 'react'; import CheckoutForm from './checkout-form'; class InitialCheckout extends Component { render() { return ( <CheckoutForm plan={this.props.params.plan} /> ); } } export default InitialCheckout;
extensions/roc-package-web-app-react/src/app/server/reactRenderer.js
rocjs/roc-package-web-app-react
import config from 'config'; import debug from 'debug'; import nunjucks from 'nunjucks'; import serialize from 'serialize-javascript'; import PrettyError from 'pretty-error'; import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { match, applyRouterMiddleware } from ...
codes/chapter05/react-router-v4/advanced/demo03/app/routes.js
atlantis1024/react-step-by-step
import React from 'react'; import { BrowserRouter as Router, Route } from 'react-router-dom'; import App from './components/App'; import Login from './components/Login'; const Routes = () => ( <Router> <div> <Route path="/" component={App}/> <Route path="/login" component={Login}/> </div> </Rou...
examples/src/app.js
foxbroadcasting/react-select
/* eslint react/prop-types: 0 */ import React from 'react'; import ReactDOM from 'react-dom'; import Select from 'react-select'; import './example.less'; import Creatable from './components/Creatable'; import Contributors from './components/Contributors'; import GithubUsers from './components/GithubUsers'; import Cus...
information/blendle-frontend-react-source/app/modules/issue/containers/IssueContainer.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import IssueModel from 'models/issue'; import Settings from 'controllers/settings'; import AuthStore from 'stores/AuthStore'; import Analytics from 'instances/analytics'; import PagesIssueContainer from 'modules/issue/containers/PagesIssueContainer'; import...
src/app/app.js
hackerhouseparis/abie
import React from 'react' import {render} from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import { Router, Route, hashHistory } from 'react-router' import getMuiTheme from 'material-ui/styles/getMuiTheme' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import Proposal from ...
client/src/javascript/components/icons/Add.js
jfurrow/flood
import React from 'react'; import BaseIcon from './BaseIcon'; export default class AddMini extends BaseIcon { render() { return ( <svg className={`icon icon--add ${this.props.className}`} viewBox={this.getViewBox()}> <path d="M53.7 25.3h-19v-19h-9.4v19h-19v9.4h19v19h9.4v-19h19" /> </svg> ...
src/settings/SettingsPage.js
ipfs/webui
import React from 'react' import { Helmet } from 'react-helmet' import { connect } from 'redux-bundler-react' import { withTranslation, Trans } from 'react-i18next' import ReactJoyride from 'react-joyride' // Tour import { settingsTour } from '../lib/tours' import withTour from '../components/tour/withTour' import { ge...
client/src/components/PasswordChange/index.js
googleinterns/Pictophone
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import { Col, Form, Button } from 'react-bootstrap'; import { withFirebase } from '../Firebase'; import * as ROUTES from '../../constants/routes'; import './PasswordChange.css'; const INITIAL...
packages/cf-component-card/src/CardToolbarLink.js
koddsson/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'cf-component-link'; class CardToolbarLink extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick(e) { e.preventDefault(); this.props.onClick(); }...
src/parser/deathknight/blood/modules/spells/azeritetraits/EternalRuneWeapon.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer from 'parser/core/Analyzer'; import TraitStatisticBox, { STATISTIC_ORDER } from 'int...
src/ui/dashboard/components/user.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Button } from 'antd' import styles from './user.less' import CountUp from 'react-countup' import { color } from 'utils' const countUpProps = { start: 0, duration: 2.75, useEasing: true, useGrouping: true, separator: ',', } function User ({...
src/routes/Admin/components/Admin.js
altarit/cloudpolis-react
import React from 'react' import PropTypes from 'prop-types' import {Link} from 'react-router-dom' export class Admin extends React.Component { static propTypes = { name: PropTypes.string } render() { return ( <div className='container'> <h2>Admin: {this.props.name}</h2> <div> ...
frontend/src/pages/sys-admin/users/users-nav.js
miurahr/seahub
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from '@reach/router'; import { siteRoot, gettext, haveLDAP, isDefaultAdmin } from '../../../utils/constants'; const propTypes = { currentItem: PropTypes.string.isRequired }; class Nav extends React.Component { constructor(props) { ...
client/components/Navigation.js
gut-js/gut
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import { Link } from 'react-router'; // Components import SignIn from './SignIn'; import Register from './Register'; class Navigation extends React.Component { constructor(){ super(); this.openSignIn = this.openSignIn.bind(th...
test/PageItemSpec.js
AlexKVal/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import PageItem from '../src/PageItem'; describe('PageItem', function () { it('Should output a "list item" as root element, and an "anchor" as a child item', function () { let instance = ReactTestUtils.renderIntoDocument( <Pa...
blueocean-dashboard/src/main/js/components/stories/drop.js
alvarolobato/blueocean-plugin
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Dropdown } from '@jenkins-cd/design-language'; const a2z = 'ABCDEFGHIJKLM NOPQRSTUVWXYZ'; const style = { padding: 10, width: 200, }; function createOptions(text = 'Option', asObject = false) { const options = []; for...
site/demos/airbeds/src/components/App.js
appbaseio/reactivesearch
/* eslint-disable react/prop-types */ import React from 'react'; import { ReactiveBase, DataSearch } from '@appbaseio/reactivesearch'; import { ReactiveGoogleMap } from '@appbaseio/reactivemaps'; import { nav, container, rightCol, search, title } from '../styles'; import Filters from './Filters'; export default () =>...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
angyukai/boulderactive2016-landing-page
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Flickr.js
sani-banani/photo-location
import React from 'react'; import Actions from '../actions/Action'; import appStore from '../stores/AppStore'; require('styles//Flickr.less'); class Flickr extends React.Component { constructor(props) { super(props); this.state = { images: [], tag: 'russia' }; ...
components/Link.js
jumoel/reasonable-router
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { formatRoute } from './formatRoutes'; export class Link extends Component { routeFromName(to, params) { const routes = this.context.getRoutes(); const routeKey = Object.keys(routes).find( (routeKey) => routes[routeKey].name ...
client/src/components/shared/Icons/Meetup.js
FreeCodeCampBA/freecodecampba.github.io
import React from 'react' const Meetup = props => ( <svg viewBox="0 0 24 24" {...props}> <title>{'Meetup icon'}</title> <path d="M23.978 20.238c-.304-1.931-3.874-.444-4.096-2.559-.313-2.998 4.15-9.459 3.797-11.972-.313-2.255-1.841-2.73-3.165-2.756-1.284-.02-1.623.182-2.058.435-.253.146-.612.435-1.112-.041-.3...
lib/components/App/App.js
JorgeEdPerezGa/weatherly
import React, { Component } from 'react'; import CurrentWeather from '../Current/CurrentWeather.js'; import DataProps from '../DataProps'; import Search from '../Search/Search.js' import Welcome from '../Welcome/Welcome.js'; import styles from '../../../styles/Doc.css'; import TenDay from '../TenDay.js'; import API_KEY...
app/javascript/mastodon/features/generic_not_found/index.js
lynlynlynx/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator fullPage /> </Column> ); export default GenericNotFound;
src/common/components/Loading.js
chad099/react-native-boilerplate
// @flow import type { TextProps } from './Text'; import React from 'react'; import Text from './Text'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ loadingText: { defaultMessage: 'Loading', id: 'loading.loadingText', }, longLoadingText: { defaultMessage:...
src/components/SessionActivityTracker.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { MessageDialog, Icon } from 'patternfly-react' import style from './sharedStyle.css' import { msg } from '_/intl' import { logout } from '_/actions' const TIME_TO_DISPLAY_MODAL = 30 // 30 seconds class Session...
blueocean-material-icons/src/js/components/svg-icons/av/stop.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvStop = (props) => ( <SvgIcon {...props}> <path d="M6 6h12v12H6z"/> </SvgIcon> ); AvStop.displayName = 'AvStop'; AvStop.muiName = 'SvgIcon'; export default AvStop;
app/javascript/mastodon/features/direct_timeline/components/conversation.js
yi0713/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'mastodon/components/status_content'; import AttachmentList from 'mastodon/components/attachment_list'...
src/components/buttons/demos/Raised.js
isogon/styled-mdl
import React from 'react' import { Button } from '../../../' export default () => <Button raised>Raised</Button>
11-create-react-app/src/App.js
giftkugel/quick-react-workshop
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/...
springboot/GReact/src/main/resources/static/app/routes/forms/components/layouts/ContactsForm.js
ezsimple/java
import React from 'react' import UiValidate from '../../../../components/forms/validation/UiValidate' import MaskedInput from '../../../../components/forms/inputs/MaskedInput' import UiDatepicker from '../../../../components/forms/inputs/UiDatepicker' const validationOptions = { // Rules for form validation rules...
src/screens/Transitions.js
nanomish/a9
import React from 'react'; import {StyleSheet, ScrollView, Text} from 'react-native'; import Row from '../components/Row'; class Transitions extends React.Component { showCollapsingHeader = () => { this.props.navigator.showModal({ title: 'Collapsing Header', screen: 'example.Transitions.CollapsingHe...
app/containers/AppHub/Home/messages.js
vollmerr/app-hub
import React from 'react'; import styled from 'styled-components'; import Link from '../../../components/Link'; const Desc = styled.div` padding: 0 0 15px 15px; `; export default [ { name: 'The Badge Access Request System (BARS) is now live!', date: '2017/10/08', href: 'http://bars.technology.ca.go...
browserify-test/src/index.js
ryanmcgrath/react-iconpack
import React from 'react'; import {render} from 'react-dom'; import Icon from 'react-iconpack'; class TestComponent extends React.Component { render() { return <Icon uri="polymer/notification/disc_full" width="48" height="48"/>; } }; render(<TestComponent />, document.getElementById('test-node'));
src/server.js
kaiqigong/verdant-giggle
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; import morgan from 'morgan'...
src/components/MusicPlayer/music_list.js
TonCoder/react-music-player
import React from 'react'; import MusicListItem from './music_list_items'; function musicList(props) { let currentlyPlaying = props.currentlyPlaying; let albumSongs = props.albumSongs; var index = 0; const songs = albumSongs.map(function(data){ let isPlaying = false; if(c...
fields/explorer/components/FieldType.js
sendyhalim/keystone
import React from 'react'; import Markdown from 'react-markdown'; import Col from './Col'; import Row from './Row'; import FieldSpec from './FieldSpec'; const ExplorerFieldType = React.createClass({ getInitialState () { return { readmeIsVisible: !!this.props.readme, filter: this.props.FilterComponent.getDefa...
fields/types/location/LocationFilter.js
tony2cssc/keystone
import React from 'react'; import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental'; const INVERTED_OPTIONS = [ { label: 'Matches', value: false }, { label: 'Does NOT Match', value: true }, ]; function getDefaultValue () { return { inverted: INVERTED_OPTIONS[0].value, street: undefined, c...
app/packs/src/components/PermissionIcons.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; const PermissionIcons = ({pl}) =>{ return(pl>-1 ? <span> <i className="fa fa-newspaper-o"></i> &nbsp;{pl>0 ? <i className="fa fa-pencil-square-o"></i> : null} &nbsp;{pl>1 ? <i className="fa fa-share-alt"></i> : null} &nbsp;{pl...
spec/components/font_icon.js
VACO-GitHub/vaco-components-library
import React from 'react'; import FontIcon from '../../components/font_icon'; const FontIconTest = () => ( <section> <h5>Font Icons</h5> <p>lorem ipsum...</p> <FontIcon value="add"/> <FontIcon value="access_alarm"/> <FontIcon value="explore"/> <FontIcon value="zoom_in"/> <FontIcon>input<...
ReactNativeDemo/app/main/Navigator.js
zxpLearnios/ReactNativeDemo
/** * Created by jingnanzhang on 2017/5/31. */ // 这里只写tab页 import React, { Component } from 'react'; import { Button, Text, } from 'react-native'; import { TabNavigator, StackNavigator, TabBarBottom, }from 'react-navigation'; // npm install --save react-navigation 来安装词库 // 导入js类 import HomeP...
src/js/components/icons/base/View.js
odedre/grommet-final
/** * @description View 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. * @prope...
js/index.js
hihuz/mine-sweeper
import React from 'react'; import { render } from 'react-dom'; import { createStore } from 'redux'; import { Provider } from 'react-redux'; import throttle from 'lodash/throttle'; import { loadState, saveState } from './app-logic/localStorage'; import rootReducer from './reducers/root'; import App from './components/Ap...
views/prompt.js
JimLiu/black-screen
import _ from 'lodash'; import React from 'react'; import Autocomplete from './autocomplete'; import DecorationToggle from './decoration_toggle'; // TODO: Make sure we only update the view when the model changes. export default React.createClass({ getInitialState() { return { suggestions: [], ...
app/scripts/Mobilization/__tests__/MobilizationActions.spec.js
igr-santos/bonde-client
import React from 'react' import { expect } from 'chai' import { ADD_MOBILIZATION, EDIT_MOBILIZATION } from '../MobilizationActions' import * as MobilizationActions from '../MobilizationActions' describe('MobilizationActions', () => { describe('#progressUploadFacebookImage', () => { const result = Mobiliza...
src/components/InvestorTabs/InvestorTabs.js
medevelopment/updatemeadmin
import React from 'react'; import cx from 'classnames'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './InvestorTabs.css'; import Link from '../Link'; class InvestorTabs extends React.Component { render() { return ( <div className={s.root} role="navigation"> <Link...
tech_stack/src/components/ListItem.js
dunkvalio/ReactNative
import React, { Component } from 'react'; import { Text, TouchableWithoutFeedback, View, LayoutAnimation, UIManager } from 'react-native'; import { connect } from 'react-redux'; import { CardSection } from './common'; import * as actions from '../actions'; UIManager.setLayoutAnimationEnabledExperimental(true...
Router/router-demo/src/router/CustomLink.js
imuntil/React
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' const CustomLink = ({match}) => ( <Router basename={match.url}> <div style={{position: 'absolute', width:'100%', height: '200px'}}> <OldSchoolMenuLink activeOnlyWhenExact={true} to="/" label="Home" /> ...
admin/client/App/screens/List/components/Filtering/ListFiltersAdd.js
cermati/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Transition from 'react-addons-css-transition-group'; import classnames from 'classnames'; import ListFiltersAddForm from './ListFiltersAddForm'; import Popout from '../../../../shared/Popout'; import PopoutList from '../../../../shared/Popout/P...
examples/src/components/CustomRender.js
dhamaniasad/react-select
import React from 'react'; import Select from 'react-select'; var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropTypes.string, }, getInitialState () { return {}; }, setValue (value) { this.setState({ value }); console.log('Support level sel...
src/routes/error/index.js
yunqiangwu/kmadmin
import React from 'react' import { Icon } from 'antd' import styles from './index.less' import PropTypes from 'prop-types' import { connect } from 'dva' import { Loader } from 'components' const Error = ({ isHomePage }) => ( <div className="content-inner"> <Loader spinning={isHomePage} /> { !isHomePage && <d...
src/assets/scripts/components/Map/FacilityMap.js
Eastern-Research-Group/epa-digital-services-rfi-js
import React, { Component } from 'react'; import USMap from '../leaflet/USMap.js'; import { MONITORING_STATIONS } from '../../../data/MONITORING_STATIONS'; export default class FacilityMap extends Component { constructor(props) { super(props); this.state = { lat: this.props.lat, ...
src/main.js
icodeninja/statr
/* global chrome */ import React from 'react'; import ReactDOM from 'react-dom'; import Dispatcher from './lib/dispatcher'; import Home from './containers/home'; chrome.runtime.onMessage.addListener(message => { console.info(message); Dispatcher.dispatch(message); }); const rootEl = document.getElementById('ap...
admin/src/components/ItemsTableValue.js
lastjune/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var ItemsTableValue = React.createClass({ displayName: 'ItemsTableValue', propTypes: { className: React.PropTypes.string, exterior: React.PropTypes.bool, field: React.PropTypes.string, href: React.PropTypes.str...
src/components/Home.js
suranartnc/react-tutorial
import React, { Component } from 'react'; require('es6-promise').polyfill(); require('isomorphic-fetch'); import Search from './Search'; import ArticleList from './ArticleList'; export default class Home extends Component { constructor(props) { super(props); this.state = { articles: [] } this.getSear...
node_modules/eslint-config-airbnb/test/test-react-order.js
vietvd88/developer-crawler
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; import reactA11yRules from '../rules/react-a11y'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, rules: { // It is okay to import devDependencies in tests....
src/website/app/pages/Home/ThemePlayground.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import styled from '@emotion/styled'; import rgba from 'polished/lib/color/rgba'; import { componentStyleReset, pxToEm } from '../../../../library/styles'; import IconCheck from 'mineral-ui-icons/IconCheck'; import { ThemeProvider } from '../../../../library/themes'; type Props =...
public/js/components/profile/visitor/activityfeed/activityListComp.react.js
IsuruDilhan/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardMedia from 'material-ui/lib/card/card-media'; import CardText from 'material-ui/lib/card/card-text'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/...
src/containers/ROgre.js
mattschwartz/mattschwartz
import React from 'react' export default () => ( <div> <h1>ROgre</h1> </div> )
lib/controllers/recent-commits-controller.js
atom/github
import React from 'react'; import PropTypes from 'prop-types'; import {addEvent} from '../reporter-proxy'; import {CompositeDisposable} from 'event-kit'; import CommitDetailItem from '../items/commit-detail-item'; import URIPattern from '../atom/uri-pattern'; import RecentCommitsView from '../views/recent-commits-view...
src/svg-icons/communication/import-contacts.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
pages/index.js
jebeck/nefelion
import React from 'react'; import PropTypes from 'prop-types'; import Cloud from 'components/Cloud'; import wrapPage from 'hoc/wrapPage'; const Index = props => { const { status } = props; return <Cloud status={status} />; }; Index.propTypes = { status: PropTypes.oneOf(['entering', 'entered', 'exiting', 'exite...
app/components/LoadingIndicator/Circle.js
Dattaya/react-boilerplate-object
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const circleFadeDelay = keyframes` 0%, 39%, 100% { opacity: 0; } 40% { opacity: 1; } `; const Circle = (props) => { const CirclePrimitive = styled.div` width: 100%; heig...
src/App.js
azazdeaz/weasel-gui
import React, { Component } from 'react'; import {createStore} from 'redux' import {Provider} from 'react-redux' import reducer from './reducer' import BaseScreen from './BaseScreen' const store = createStore(reducer) export class App extends Component { render() { return ( <Provider store={store}> ...
client/components/App.js
kristiehoward/babel-translate-plugin
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <div> <h1>Hello World</h1> <h2>It is me</h2> </div> ); } }
newclient/scripts/components/admin/detail-view/project-declaration-summary/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
src/components/Metadata/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import Helmet from 'react-helmet' import favicon from "./favicon.png" const types = { text: "summary", image: "summary_large_image", video: "player", }; export default (props) => ( <Helmet> <meta property="og:title" content={ props.meta...
x.es6.js
rovolution/react-toggle
import React from 'react' export default React.createClass({ render() { return ( <svg width="10" height="10" viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"> <title> switch-x </title> <path d="M9.9 2.12L7.78 0 4.95 2.828 2.12 0 0 2.12l2.83 2.83L0 7.776 2.123 9.9 4.9...
day20_todoapp/src/index.js
eyesofkids/ironman2017
import React from 'react' import ReactDOM from 'react-dom' import App from './components/App' ReactDOM.render(<App />, document.getElementById('root'))
src/svg-icons/action/lock-outline.js
tan-jerene/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...
js/components/sideBar/index.js
bsisic/Mobilux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Content, Text, List, ListItem } from 'native-base'; import { setIndex } from '../../actions/list'; import navigateTo from '../../actions/sideBarNav'; import myTheme from '../../themes/base-theme'; import styles from './style'; ...
packages/icons/src/sp/Blogger.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function SpBlogger(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M11.408 6H36.61c2.975 0 5.408 2.433 5.408 5.408v25.2c0 2.976-2.433 5.408-5.408 5.408h-25.2C8.433 42.016 6 39.584 6 36.608v-25.2C6 8.433 8.434 6 11.40...
js/app.js
SimonErich/relay-test-client
import 'babel/polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; ReactDOM.render( <Relay.RootContainer Component={App} route={new AppHomeRoute()} />, document.getEl...
src/helpers/__tests__/makeRouteHooksSafe-test.js
ThatCheck/ReactProjectRaspberrySchool
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onE...