path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/routes/app.js
hhj679/mybition-web
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import { Layout } from '../components' import { classnames, config, menu } from '../utils' import { Helmet } from 'react-helmet' import '../themes/index.less' const { prefix } = config const { Header, Bread, Footer, Sider, style...
source/router.js
kole/football-pool
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory } from 'react-router'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import WeeklyGameList from '~/components/games/WeeklyGameLi...
src/views/Components/SocialButtons/SocialButtons.js
corbinpage/react-play
import React, { Component } from 'react'; class SocialButtons extends Component { render() { return ( <div className="animated fadeIn"> <div className="row"> <div className="col-12"> <div className="card"> <div className="card-header"> <strong>Soc...
src/Interpolate.js
yickli/react-bootstrap
// https://www.npmjs.org/package/react-interpolate-component // TODO: Drop this in favor of es6 string interpolation import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; const REGEXP = /\%\((.+?)\)s/; const Interpolate = React.createClass({ displayName: 'Interpolate', ...
showcase/color/line-chart-many-colors.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
frontend/src/AddMovie/AddNewMovie/AddNewMovieModalContentConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { addMovie, setAddMovieDefault } from 'Store/Actions/addMovieActions'; import createDimensionsSelector from 'Store/Selectors/createDimensionsSelector'; i...
src/scripts/components/header.js
jie/microgate
import React from 'react'; import AppBar from 'material-ui/AppBar'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import IconButton from 'material-ui/IconButton'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import MoreVertIcon from 'material-ui/svg-ico...
src/components/pages/Error.js
HurtowniaPixeli/pixelcms-client
import React from 'react' import T from '~/components/utils/T' const Error = () => ( <div className="page" id="pageError"> <div className="wrapper"> <h1 className="title"><span><T t="Error" /></span></h1> <div className="msg"> <T t="Error occured. We've been informed about this issue." /> ...
src/containers/Home/Home.js
melodylu/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // require the logo image both from client and server const logoImage = ...
Realization/frontend/czechidm-core/src/content/passwordpolicy/PasswordPolicies.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; import * as Basic from '../../components/basic'; import { PasswordPolicyManager } from '../../redux'; import PasswordPolicyTable from './PasswordPolicyTable'; const PASSWORD_POLICY_TABLE_UIKEY = 'passwordPoliciesTableUikey'; /** * Content with all pass...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js
Ten-Wang/hackfoldr-android
import React, { Component } from 'react'; class Foo extends Component { render() {} }
src/svg-icons/image/looks-3.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks3 = (props) => ( <SvgIcon {...props}> <path d="M19.01 3h-14c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 7.5c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5V15c0 1.11-.9 2-2 2h-4v...
src/Field.js
prometheusresearch/react-ui
/** * @copyright 2016-present, Prometheus Research, LLC * @flow */ import React from 'react'; import {style, css} from 'react-stylesheet'; import Block from './Block'; import Text from './Text'; import LabelText from './LabelText'; import ErrorText from './ErrorText'; import {fontSize} from './theme'; import {uniq...
src/svg-icons/action/settings-power.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsPower = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm2-22h-2v10h2V2zm3.56 2.44l-1.45 1.45C16.84 6.94 18 8.83 18 11c0 3.31-2.69 6-6 6s-6-2.69-6-6c0-2.17 1.16-4.06 2.88-...
fields/types/relationship/RelationshipColumn.js
andrewlinfoot/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#bbb', fontSize: '.8rem', fontWeight: 500, marginLeft: 8, }; var RelationshipColumn = React.createClass({ displayName: 'Rel...
fixtures/kitchensink/template/src/features/syntax/ObjectSpread.js
d3ce1t/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(baseUser) { return [ { id: 1, name: '...
static/src/components/Drawer.js
eltrufas/cosmico
import React from 'react'; const Drawer = ({ visible }) => ( <div hidden={!visible} className="drawer">Drawer</div> ); export default Drawer;
www/src/start.js
ctnitchie/ec2-dashboard
import 'bootstrap'; import 'es6-promise'; import 'isomorphic-fetch'; import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App/>, document.getElementById('app'));
app/containers/LocaleToggle/index.js
Third9/mark-one
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import Toggle from 'components/Toggle'; import Wrapper from './Wrapper'; import messages from './messages'; import { appLocales } from '../../i18n'; import { changeLocale } from ...
src/components/header.js
danielwrobert/danielwrobert.github.io
import React from 'react'; import { Link } from 'gatsby'; import styled from '@emotion/styled'; import useSiteMetadata from '../hooks/use-sitemetadata'; const HeaderContainer = styled.header` border-bottom: 1px solid #e8e8e8; width: 100%; `; const HeaderContent = styled.div` align-items: center; display: flex; ...
nativeExample/reactNativeDemo/index.android.js
zhanglizhao/react-native-knowledge
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ //导入模块 import React, { Component } from 'react'; //批量定义组件 import { AppRegistry, StyleSheet, Text, View } from 'react-native'; import reactNativeDemo,{Input} from './app'; //定义组件 /*export default class reactNativeDemo exten...
app/javascript/flavours/glitch/components/status.js
glitch-soc/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusPrepend from './status_prepend'; import StatusHeader from './status_header'; import StatusIcons from './status_icons'; import StatusContent from './status_content'; import StatusAction...
src/js/main_dealer_app.js
belgattitude/react-dealer
import React from 'react'; import ReactDOM from 'react-dom'; import DealerLocator from './dealer/dealer_locator'; const EIFFEL_TOWER_POSITION = { lat: 48.858608, lng: 2.294471 }; var dealerLoc = React.createElement(DealerLocator, { initialCenter: EIFFEL_TOWER_POSITION, locale: 'fr_FR', //source:...
content/theme/components/Stats/itemDetail.js
typesettin/NativeCMS
import React, { Component } from 'react'; import { StyleSheet, ScrollView, Text, View, Platform, ListView, Image, Dimensions, } from 'react-native'; import styles from '../../../../app/components/Styles/shared'; import layoutStyles from '../../../../app/components/Styles/layout'; import Icons from '../../../../app/comp...
examples/todoMVC/src/index.js
Sly777/React-UI-Debugger
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import reducer from './reducers' import 'todomvc-app-css/index.css' const store = createStore(reducer) render( <Provider store={store}> <App ...
src/svg-icons/action/open-in-new.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInNew = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> );...
src/svg-icons/action/redeem.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRedeem = (props) => ( <SvgIcon {...props}> <path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H4c-1.1...
index.ios.js
vijayviji/react-native-redux-todoapp
'use strict'; import React, { Component } from 'react'; import { AppRegistry, Navigator } from 'react-native'; import App from './src/app'; class TodoListApp extends Component { render() { return (<App />); } } AppRegistry.registerComponent('TodoListApp', () => TodoListApp);
src/javascripts/App.js
taydakov/url-shortener
/* Static dependencies */ import '../index.html'; // import '../stylesheets/style'; /* JS dependencies */ import React from 'react'; import { Router, Route, IndexRoute, Link } from 'react-router'; import { createHistory, useBasename } from 'history'; /** Components **/ import UrlShortenerApp from './components/UrlShor...
src/ui/pages/boards/Show.js
dhruv-kumar-jha/productivity-frontend
'use strict'; import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import translate from 'app/global/helper/translate'; import ProductivityLayout from 'app/components/layout/Productivity'; import Header from 'app/components/productivity/boards/Header'; import { message } from 'ant...
src/components/GuideView/GettingStarted.js
recharts/recharts.org
import React from 'react'; import { LineChart, Line, XAxis, YAxis, Tooltip, CartesianGrid } from 'recharts'; import Highlight from '../../utils/Highlight'; import renderCustomAxisTick from './CustomAxisTick'; import { localeGet } from '../../utils/LocaleUtils'; const data = [ { name: 'Page A', uv: 400, p...
src/view/components/ticket/Cell.js
Danny-Robinson/bt-bingo
import React, { Component } from 'react'; class Cell extends Component { constructor(props) { super(props); const { colour, cursor } = this.props; this.state = { dabbed: false, colour: colour, cursor: cursor }; this.dab = this.dab.bind(this); } component...
src/containers/Tractor/Tractor.js
gregsabo/beanstalk-tractor-trailer
import React from 'react'; import { Component } from 'react'; import { Link } from 'react-router'; import Helmet from 'react-helmet'; export default class Tractor extends Component { render() { return ( <div> <Helmet title="Tractor"/> <p> It is a Tractor. </p> <Lin...
src/components/pages/NewsView.js
merlingerin/f7news
import React from 'react'; import {Page, ContentBlock, Navbar, NavLeft, NavCenter, NavRight} from 'framework7-react'; import ReactHtmlParser, { processNodes, convertNodeToElement, htmlparser2 } from 'react-html-parser'; import {store} from '../../store'; import {connect} from 'react-redux'; import IconButton from 'mate...
src/components/Button/CircleButton/index.js
adammockor/fridge
import React from 'react'; import styles from './styles.scss'; export default function CircleButton ({children}) { return ( <a className={styles.root}>{children}</a> ); };
src/svg-icons/maps/terrain.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTerrain = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); MapsTerrain = pure(MapsTerrain); MapsTerrain.displayName = 'MapsTerr...
src/components/OptionsIntro/index.js
IDEOorg/steps-guide-builder
import React from 'react'; import PropTypes from 'prop-types'; import './index.less'; import Link from '../Link'; import FormattedMsg from '../../containers/FormattedMsg'; const OptionsIntro = (props) => { return ( <div className="options_intro_section"> <h1 className="options_intro_headline"> <For...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/queue.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvQueue = (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-2zm-1 9h-4v4h-2v-4H9V9h4V5h2v4h4v2z"/> </SvgIcon> ); AvQueue.displayName = 'AvQu...
src/svg-icons/av/skip-previous.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSkipPrevious = (props) => ( <SvgIcon {...props}> <path d="M6 6h2v12H6zm3.5 6l8.5 6V6z"/> </SvgIcon> ); AvSkipPrevious = pure(AvSkipPrevious); AvSkipPrevious.displayName = 'AvSkipPrevious'; AvSkipPrevious.mu...
website/pages/_app.js
rofrischmann/fela
import React from 'react' import { ThemeProvider } from 'react-fela' import Head from 'next/head' import { useRouter } from 'next/router' import Template from '../components/Template' import DocLayout from '../components/DocLayout' import FelaProvider from '../styling/FelaProvider' import theme from '../styling/theme'...
src/docs/components/RadioButtonDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import RadioButton from 'grommet/components/RadioButton'; import Form from 'grommet/components/Form'; import FormField from 'grommet/components/FormField'; import DocsArticle from '../../components/DocsArticl...
src/containers/Minutes.js
byoigres/minutes
import React from 'react'; import { FormattedMessage } from 'react-intl'; import styled from 'styled-components'; import { useDispatch } from 'react-redux'; import MinutesCounter from '../components/MinutesCounter'; import SquareGrid from '../components/SquareGrid'; import Header from '../components/Header'; import use...
webui/src/index.js
evoja/docker-Github-Gitlab-Auto-Deploy
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/app/components/pages/HomePage/HomePage.js
tvarner/PortfolioApp
import React, { Component } from 'react'; import './styles.css'; import HoverButton from '../../utilComponents/HoverButton/HoverButton'; // Since this component is simple and static, there's no parent container for it. export default class HomePage extends Component { getGifComponent(url, text) { const attr = 'ur...
hosted-demo/src/components/PageNavigation.js
learnapollo/pokedex-react
import React from 'react' export default class PageNavigation extends React.Component { static propTypes = { onClick: React.PropTypes.func.isRequired, isPrevious: React.PropTypes.bool.isRequired, } render () { return ( <div onClick={this.props.onClick} style={{ minWidth: 200 }...
src/ModalDialog.js
bvasko/react-bootstrap
/* eslint-disable react/prop-types */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const ModalDialog = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * A Callback fired when the header closeButton or non-static backdrop is ...
app/javascript/mastodon/features/ui/components/image_loader.js
codl/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, src: PropTypes.string.isRequired, previewSrc: PropTypes.string, width: PropTypes.number, ...
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/containers/LoginContainer/index.js
phiratio/Pluralsight-materials
/* * * LoginContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectLoginContainer from './selectors'; import Login from '../../components/Login'; import { login, cancelLogin } from './actions'; export class LoginContainer extends React.Component { // eslint-disable-line reac...
front-src/js/Message.js
QQorp/QQat
import React from 'react'; var Message = React.createClass({ render: function() { return ( <div className="Message"> <h3 className="messageAuthor" > {this.props.author} </h3> {this.props.children} </div> ); } }); module.exports = Message;
src/year-view.js
Rudeg/react-input-calendar
import React from 'react' import PropTypes from 'prop-types' import cs from 'classnames' import moment from 'moment' import 'moment-range' import Cell from './cell' import ViewHeader from './view-header' export default class YearsView extends React.Component { static propTypes = { date: PropTypes.object, mi...
App/components/common/TabIcon.js
keith527/InstantMessage
/** * Description: * Created by Xiaocheng Zuo on 2017-03-05 15:14:08 * @flow */ import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; import Icon from 'react-native-vector-icons/Ionicons'; export default class TabIcon extends React.Component { render() { return ( ...
client/src/Components/UserProfile/ClientEditForms/ClientInsuranceForm.js
teamcrux/EmploymentOptions
import React from 'react'; import { Field } from 'redux-form'; const renderErrField = ({ input, label, type, meta: { touched, error } }) => ( <div> <div className="err-output"> <input {...input} placeholder={label} type={type}/> {touched && error && <span>{error}</span>} </div> </div> ) const ...
src/icons/AndroidDelete.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidDelete extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M128,405.429C128,428.846,147.198,448,170.667,448h170.667C364.802,448,384,428.846,384,405.429V160H128V405.429z ...
packages/mcs-lite-ui/src/B/B.example.js
MCS-Lite/mcs-lite
import React from 'react'; import { storiesOf } from '@storybook/react'; import { withInfo } from '@storybook/addon-info'; import B from '.'; import P from '../P'; import Small from '../Small'; import Heading from '../Heading'; storiesOf('B', module) .add( 'API', withInfo({ text: '粗體。', inline: t...
client/src/modules/jeey/index.js
Jeff-Tian/jeey
'use strict'; import React from 'react'; import Client from '../../Client'; import classNames from 'classnames'; export default React.createClass({ saveJeey: function (event) { let self = this; event.preventDefault(); Client.saveJeey(this.state.jeey, this) .then(function (resu...
ui/src/components/ColorPicker/CustomColorPicker.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { List } from 'immutable'; import colorHelper from 'react-color/lib/helpers/color'; import { ColorWrap, EditableInput, Hue, Saturation, Swatch } from 'react-color/lib/components/common'; import { ChromePointer } from 'react-color/lib/components/chrom...
client/src/chart/ChartDetail.js
flyrightsister/boxcharter
/* * Copyright (c) 2017 Bonnie Schulkin. All Rights Reserved. * * This file is part of BoxCharter. * * BoxCharter 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 License, ...
src/components/story/TwoImages.js
danpersa/remindmetolive-react
import React from 'react'; import Row from '../base/Row'; import Col from '../base/Col'; import PropTypes from 'prop-types'; const TwoImages = (props) => { return ( <Row mb={40} mbXs={24}> <Col xs={12} sm={6} md={6} lg={6} mbXs={16}> <img className="border" alt={props.alt1} src={props.src1} /> ...
src/TableHeaderColumn.js
AllenFang/react-bootstrap-table
/* eslint default-case: 0 */ /* eslint guard-for-in: 0 */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classSet from 'classnames'; import Const from './Const'; import Util from './util'; import DateFilter from './filters/Date'; import TextFilter from './filters/Text'; import Rege...
examples/todos/index.js
tatsuhino/reactPractice
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import { IndexRoute, Link, Router, Route, hashHistory } from 'react-router' import todoApp from './reducers' import App from './components/App' import Test from './components/Test' imp...
docs/app/Examples/elements/List/Variations/ListExampleCelled.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, List } from 'semantic-ui-react' const ListExampleCelled = () => ( <List celled> <List.Item> <Image avatar src='http://semantic-ui.com/images/avatar/small/helen.jpg' /> <List.Content> <List.Header>Snickerdoodle</List.Header> An excellent compan...
src/icons/StayPrimaryLandscapeIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class StayPrimaryLandscapeIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M2.02 14L2 34c0 2.21 1.79 4 4 4h36c2.21 0 4-1.79 4-4V14c0-2.21-1.79-4-4-4H6c-2.21 0-3.98 1.79...
client/src/components/Icon/Icon.js
nimasmi/wagtail
import PropTypes from 'prop-types'; import React from 'react'; /** * Abstracts away the actual icon implementation (font icons, SVG icons, CSS sprite). * Provide a `title` as an accessible label intended for screen readers. */ const Icon = ({ name, className, title }) => ( <span> <span className={`icon icon-$...
src/settingsComponentObjects/ColumnChooser.js
ttrentham/Griddle
import React from 'react'; import { connect } from '../utils/griddleConnect'; import compose from 'recompose/compose'; import withHandlers from 'recompose/withHandlers'; import { visibleColumnPropertiesSelector, hiddenColumnPropertiesSelector } from '../selectors/dataSelectors'; import { toggleColumn as toggleColumnAc...
frontend/src/pages/org-admin/org-departments.js
miurahr/seahub
import React from 'react'; import '../../css/org-department-item.css'; class OrgDepartments extends React.Component { constructor(props) { super(props); } render() { return ( <div className="h-100 org-departments"> {this.props.children} </div> ); } } export default OrgDepartm...
assets/app/components/Sign/Signup/index.js
chernyshof/react-phoenix-users-boilerplate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import DocumentTitle from 'react-document-title'; import { SignupForm } from 'components'; export class Signup extends Component { render() { const { submittingForm } = this.props; return ( ...
components/SkipToContent/SkipToContent.js
EvanSimpson/evansimpson.github.io
import React, { Component } from 'react'; import styles from './SkipToContent.module.css'; class SkipToContent extends Component { render() { return ( <a href="#main" className={ styles.link }> Skip To Content </a> ); } } export default SkipToContent;
blueocean-material-icons/src/js/components/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); DeviceSignalCellularConnectedNoIntern...
src/js/components/icons/base/Filter.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/ResultPage/ResultPage.js
ArvinH/react-pwa-starterkit
import React from 'react'; import PropTypes from 'prop-types'; import GithubBox from '../../components/GithubBox'; const ResultPage = props => ( <div> <GithubBox data={props.data} userId={props.location.query.userId} /> </div> ); ResultPage.propTypes = { data: PropTypes.string, location: PropTypes.object,...
webpack/components/AnsibleRolesSwitcher/components/AnsibleRoleActionButton.js
theforeman/foreman_ansible
import React from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'patternfly-react'; const AnsibleRoleActionButton = ({ icon }) => ( <button href="#" className="role-add-remove-btn"> <Icon className="fa-2x" type="fa" name={icon} /> </button> ); AnsibleRoleActionButton.propTypes = { icon:...
testkit/test-common.js
skyiea/wix-style-react
import React from 'react'; import ReactTestUtils from 'react-dom/test-utils'; import {mount} from 'enzyme'; export const isTestkitExists = (Element, testkitFactory) => { const div = document.createElement('div'); const dataHook = 'myDataHook'; const elementToRender = React.cloneElement(Element, {dataHook}); co...
src/TextField.js
yyssc/ssc-grid
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import FormControl from 'react-bootstrap/lib/FormControl'; /** * 控件(control/widget)分类 * Command input: Button, Drop-down list, ... * Data input-output: Checkbox Color picker Combo box Cycle button Date Picker Grid view List box List buil...
src/components/recording/sidebar/BrushThicknessPicker.js
streamr-app/streamr-web
import React from 'react' import cx from 'classnames' import Mousetrap from '../../Mousetrap' import Brush from './Brush' export default ({ thicknesses, thicknessId, currentColor, onSelectThickness, onIncreaseThickness, onDecreaseThickness }) => { const thickness = thicknesses[thicknessId] return ( ...
docs/app/Examples/elements/Segment/Variations/SegmentExampleColoredInverted.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleColoredInverted = () => ( <div> <Segment inverted color='red'>Red</Segment> <Segment inverted color='orange'>Orange</Segment> <Segment inverted color='yellow'>Yellow</Segment> <Segment inverted color='olive'>Oli...
app/src/main.js
fikrimuhal/animated-potato
import './assets/css/base'; import {Router, Route, browserHistory, IndexRoute} from 'react-router'; import React from 'react'; import ReactDOM from 'react-dom'; import {log2} from './utils/' import * as pages from './pages/' import {AdminLayout, DefaultLayout, UserLayout, InterviewLayout} from './layouts/' import per...
src/routes/SingleEvent/components/SignupList/SignupList.js
peksi/ilmomasiina
import React from 'react'; import _ from 'lodash'; import './SignupList.scss'; import moment from 'moment-timezone'; export class SignupList extends React.Component { render() { const getAnswer = (answers, questionId) => { const answer = _.find(answers, { questionId }); return (answer == null ? '' : ...
src/FormControls/Static.js
natlownes/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
imports/ui/pages/SendBulkMail/SendBulkMail.js
jamiebones/Journal_Publication
import React from 'react'; import PropTypes from 'prop-types'; import { Table, Alert, Button , Col , Label , FormControl , Row , FormGroup , ButtonGroup , ButtonToolbar } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import { Bert } from 'meteor/themeteorchef:bert'; import { Link } from 'reac...
src/components/utilities/SearchBar.js
jackson-/colorforcode
import React from 'react' import { Form, FormGroup, FormControl, ControlLabel, Button, Col } from 'react-bootstrap' import PropTypes from 'prop-types' import './SearchBar.css' // see JobBoard container for example use of this component const SearchBar = props => ( <Form inline={props.inline} className='filter-cont...
packages/kickoff-scripts/fixtures/kitchensink/src/index.js
TryKickoff/create-kickoff-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById(...
admin/src/components/Portal.js
udp/keystone
import React from 'react'; module.exports = React.createClass({ displayName: 'Portal', portalElement: null, render: () => null, componentDidMount() { let p = document.createElement('div'); document.body.appendChild(p); this.portalElement = p; this.componentDidUpdate(); }, componentWillUnmount() { docume...
js/components/Inspector.js
pieroit/neural-react-component-demo
import React from 'react' import { VictoryScatter, VictoryAxis, VictoryChart } from 'victory' var Inspector = React.createClass({ sampleResponseProfile: function(){ var net = this.props.net var responseProfiles = [ [],[],[],[] ] var step = 0.1 var min = 0 ...
docs/app/Examples/elements/Input/Variations/InputExampleFluid.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleFluid = () => ( <Input fluid icon='search' placeholder='Search...' /> ) export default InputExampleFluid
application/views/Menu.js
anxolerd/PlannerVR
import React from 'react'; import { VrButton, Text, View, asset } from 'react-vr'; const DEG_IN_RAD = 57.2958; class MenuItem extends React.Component { constructor(props) { super(props); this.state = { isHovered: false, } } render = () => ( <VrButton ...
node_modules/react-bootstrap/es/Alert.js
joekay/awebb
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
src/app.js
xangxiong/xim-js
import Express from 'express'; import Webpack from 'webpack'; import React from 'react'; import config from '../webpack.config.js'; import path from 'path'; import favicon from 'serve-favicon'; import logger from 'morgan'; import cookieParser from 'cookie-parser'; import bodyParser from 'body-parser'; const env = pro...
templates/rubix/demo/src/routes/Inbox.js
jeffthemaximum/jeffline
import React from 'react'; import classNames from 'classnames'; import { withRouter } from 'react-router'; import { Row, Col, Icon, Grid, Label, Badge, Panel, Button, PanelLeft, PanelBody, ListGroup, LoremIpsum, ButtonGroup, ButtonToolbar, ListGroupItem, PanelContainer, } from '@sketchp...
springboot/GReact/src/main/resources/static/app/components/forms/inputs/XEditable.js
ezsimple/java
import React from 'react' import 'X-editable/dist/bootstrap3-editable/js/bootstrap-editable.js' import _ from 'lodash' export default class XEditable extends React.Component { componentDidMount() { this.xEditable() } componentDidUpdate() { this.xEditable() } xEditable = ()=> { const element = ...
fields/components/Lightbox.js
michaelerobertsjr/keystone
import React from 'react'; import blacklist from 'blacklist'; import Portal from '../../admin/client/App/shared/Portal'; import Transition from 'react-addons-css-transition-group'; const BODY = document.getElementsByTagName('body')[0]; var Lightbox = React.createClass({ displayName: 'Lightbox', propTypes: { backd...
client/components/Main.js
iamcaleberic/smoke-signal
import React from 'react'; import { Link } from 'react-router'; const Main = React.createClass({ render(){ return( <div> <h1> <Link to="/">Shadowgram</Link> </h1> {React.cloneElement(this.props.children, this.props)} </div> ) } }) export default Main;
client/src/components/Editor/ContentEditor.js
Wiredcraft/jekyllpro-cms
import React, { Component } from 'react'; import Form from 'react-jsonschema-form'; import ReactDOM from 'react-dom'; import moment from 'moment'; import Cookie from 'js-cookie'; import { Link } from 'react-router'; import Select from 'react-select'; import { parseYamlInsideMarkdown, retriveContent, serializeObj...
src/components/level/level-left.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from '../../helper/helper'; export default class LevelLeft extends Component { static propTypes = { style: PropTypes.object, children: PropTypes.any, className...
src/v0/demo/flexbox/index.js
huanganqi/wsapp
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, } from 'react-native'; class wsapp extends Component { render() { return ( <View style={style.container}> <View style={[style.fx_sub, style.fx_dir]}> <View style={style.fx_item}></V...
src/client/assets/js/nodes/datastores/webcam/node.js
me-box/platform-sdk
import React from 'react'; import Textfield from 'components/form/Textfield'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import {configNode} from 'utils/ReactDecorators'; @configNode() export default class Node extends React.Component { render() { const namep...
src/components/SelectInputLabelBox/SelectInputLabelBox.js
InsideSalesOfficial/insidesales-components
import React from 'react'; import styled, { ThemeProvider } from 'styled-components'; import _ from 'lodash'; import { RequiredText } from '../RequiredText/RequiredText'; import { isValued } from './utils'; import { checkDocumentEvent, openOptionsList, closeOptionsList, toggleOptionsListOnSearch } from '../SelectInpu...
docs/src/app/components/AppNavDrawer.js
rscnt/material-ui
import React from 'react'; import Drawer from 'material-ui/Drawer'; import {List, ListItem, MakeSelectable} from 'material-ui/List'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem';...
admin/client/App/screens/Item/index.js
matthieugayon/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/view/components/App/index.js
airtoxin/AnyScript
import React from 'react'; import { branch } from 'baobab-react/higher-order'; import util from 'util'; import { addScript, changeScript, onChangeUrlRegExp, deleteScript, } from '../../actions'; import Script from '../Script'; import Debug from '../Debug'; import Notify from '../Notify'; import Buttons from '.....
packages/blogs-example/client/components/shared/SignOutLink.js
charlieschwabacher/gestalt
import React from 'react'; import Relay from 'react-relay'; import {browserHistory} from 'react-router'; import {SignOut} from '../../mutations'; export default Relay.createContainer( ({session}) => <a onClick={() => Relay.Store.commitUpdate( new SignOut({session}), { onSuccess: ...