path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
lib/cli/test/snapshots/update_package_organisations/stories/index.js
rhalff/storybook
import React from 'react'; import { storiesOf, action, linkTo } from '@storybook/react'; import Button from './Button'; import Welcome from './Welcome'; storiesOf('Welcome', module) .add('to Storybook', () => ( <Welcome showApp={linkTo('Button')}/> )); storiesOf('Button', module) .add('with text', () => ( ...
src/components/buttons/loginout_button.js
frigg/frigg-hq-frontend
import React from 'react'; export default class LogInOutButton extends React.Component { render() { if (this.props.isAnonymous === false) { return ( <a href='/auth/logout/' className='button'>Logout</a> ); } return ( <a href='/auth/login/' className='button'>Login</a> ); }...
client/components/Issue/Label.js
Mignon-han/issue-processing
import React from 'react'; import './css/style.css'; import {Label} from 'react-bootstrap'; const handleColor = (color) =>{ return color.indexOf('#') > -1 ? color: '#' + color; } const LabelC = ({ name, color }) => ( <Label className="issue-label-position" style={{background:handleColor(color),marginRight: '10px'}...
src/Card/CardActions.js
pradel/material-ui
import React from 'react'; function getStyles() { return { root: { padding: 8, position: 'relative', }, action: { marginRight: 8, }, }; } class CardActions extends React.Component { static propTypes = { /** * If true, a click on this card component expands the card. ...
src/client/todos/list.react.js
jaegerpicker/GLDice
import * as actions from './actions'; import Component from '../components/component.react'; import React from 'react'; import Todo from './todo.react'; import immutable from 'immutable'; import {msg} from '../intl/store'; class List extends Component { static propTypes = { editables: React.PropTypes.instanceOf...
src/components/brand-list/brand-list.js
SupasitC/Pricetrolley
import React from 'react' import { Row, Col, FormGroup, Checkbox } from 'react-bootstrap' export default class BrandList extends React.Component { render() { const style = require('./brand-list.scss'); return ( <div className={style.BrandList}> <Row> <Col md={12}> <h5>Bran...
src/routes/FunctionProgram/index.js
janeluck/red
/** * Created by jane on 02/04/2017. */ import React from 'react' import _ from 'lodash' const str = 'name,age,hair\nMerble,35,red\nBob,64,blonde' const lameCSV = (str) => { return _.reduce(str.split('\n'), function (table, row) { table.push(_.map(row.split(','), function (c) { return c.trim() })) ...
src/client/menu.js
uptownhr/hacker-menu
import React from 'react' export default class Menu extends React.Component { handleOnClick (e) { e.preventDefault() this.props.onQuitClick() } render () { var statusText = 'v' + this.props.version var buttonText = 'Quit' if (this.props.status === 'update-available') { statusText += ' ...
src/scripts/components/Main.js
modesty/react2html
import React from 'react'; import Head from './Head'; import Header from './Header'; import Footer from './Footer'; const Main = props => { const { chrome, page, children } = props; const { rel, gaKey, title } = chrome; return ( <html> <Head {...chrome} /> <body data-track={gaKey}> <article className='...
modules/dreamview/frontend/src/components/Offlineview.js
jinghaomiao/apollo
import React from 'react'; import { inject, observer } from 'mobx-react'; import MainView from 'components/Layouts/MainView'; import ToolView from 'components/Layouts/ToolView'; import Loader from 'components/common/Loader'; import HOTKEYS_CONFIG from 'store/config/hotkeys.yml'; import WS from 'store/websocket'; @in...
app/javascript/mastodon/components/animated_number.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedNumber } from 'react-intl'; import TransitionMotion from 'react-motion/lib/TransitionMotion'; import spring from 'react-motion/lib/spring'; import { reduceMotion } from 'mastodon/initial_state'; const obfuscatedCount = count => { if (co...
tests/lib/rules/indent.js
jonathanKingston/eslint
/** * @fileoverview This option sets a specific tab width for your code * @author Dmitriy Shekhovtsov * @author Gyandeep Singh * @copyright 2014 Dmitriy Shekhovtsov. All rights reserved. * @copyright 2015 Gyandeep Singh. All rights reserved. */ "use strict"; //----------------------------------------------------...
src/SplitPane.js
asutherland/react-split-pane
'use strict'; import React from 'react'; import Pane from './Pane'; import Resizer from './Resizer'; import VendorPrefix from 'react-vendor-prefix'; let SplitPane = React.createClass({ propTypes: { minSize: React.PropTypes.number, orientation: React.PropTypes.string }, getInitialState(...
react-router-demo/lessons/12-navigating/modules/App.js
zhangjunhd/react-examples
import React from 'react' import NavLink from './NavLink' export default React.createClass({ render() { return ( <div> <h1>React Router Tutorial</h1> <ul role="nav"> <li><NavLink to="/" onlyActiveOnIndex>Home</NavLink></li> <li><NavLink to="/about">About</NavLink></li> ...
src/svg-icons/places/casino.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesCasino = (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-2zM7.5 18c-.83 0-1.5-.67-1.5-1.5S6.67 15 7.5 15s1.5.67 1.5 1.5S8.33 18 7.5 18z...
js/components/swipeCards/card.js
gectorat/react-native-app
import React, { Component } from 'react'; import { View, Text, Container, Content, Title, Icon, Header } from 'native-base'; import { Image,TouchableHighlight, TouchableWithoutFeedback } from 'react-native'; import Gallery from '../common/Gallery'; import FullCard from './fullCard'; import styles from './...
fields/types/date/DateColumn.js
rafmsou/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
imports/util/icons.js
irvinlim/free4all
import React from 'react'; import FontIcon from 'material-ui/FontIcon'; export const catIcon = (cat, style={}) => icon(cat.iconClass, style); export const icon = (className, style={}) => { if (className && className.substr(0,3) == "fa ") return <i className={ className } style={ style }></i>; else return ...
src/components/LinkButton.js
jcmnunes/josenunesxyz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; import styled, { css } from 'styled-components'; import iconCheveronRight from '../images/icon-cheveron-right.svg'; const LinkStyles = css` display: inline-flex; align-items: center; cursor: pointer; te...
classic/src/scenes/mailboxes/src/Components/MailboxTooltip/MailboxTooltip.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import shallowCompare from 'react-addons-shallow-compare' import { accountStore, accountActions } from 'stores/account' import { settingsStore } from 'stores/settings' import PrimaryTooltip from 'wbui/PrimaryTooltip' import MailboxTooltipContent from './Mailb...
src/Parser/FeralDruid/Modules/Talents/SavageRoarUptime.js
mwwscott0/WoWAnalyzer
import React from 'react'; import Module from 'Parser/Core/Module'; import Enemies from 'Parser/Core/Modules/Enemies'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import StatisticBox, { STATIS...
src/containers/workflow.js
namelos/react-demo
import React, { Component } from 'react'; import MD from '../components/MD'; export default class Workflow extends Component { render = () => <MD url="http://localhost:3000/workflow.md" /> }
mobile/js/features/login/index.js
lovelypig5/wms
import React from 'react'; import { AsyncStorage, Alert, Text, View, TextInput, TouchableOpacity } from 'react-native'; import Home from '../home'; import Goods from '../goods'; import DICT from '../../config/dict'; import API from '../../config/api'; import styles from '../../styles'; class Login extends React.Compon...
app/components/Footer.js
waste-mgmt/grace-shopper
import React from 'react'; import {Link} from 'react-router'; export const Footer = () => { return ( <div className="container-fluid"> <div className="row"> <hr /> <ul> <Link to='/contactUs'style={{cursor: "pointer"}}>Contact Us </Link> <i className="fa fa-2x fa-facebook-square" style={{c...
src/svg-icons/social/people.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeople = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2....
internals/templates/containers/LanguageProvider/index.js
douglasguerrero/Test
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
imports/ui/client/components/sidebar/Sidebar.js
hwillson/meteor-dropbox-blogger
import React from 'react'; import HtmlContent from '../../helpers/html_content'; const Sidebar = ({ content }) => ( <aside className="sidebar" dangerouslySetInnerHTML={HtmlContent.prepareForDisplay(content)} /> ); Sidebar.propTypes = { content: React.PropTypes.string, }; export default Sidebar;
src/parser/rogue/outlaw/modules/spells/Dispatch.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import DamageTracker from 'parser/shared/modules/AbilityTracker'; import BetweenTheEyesDamageTracker from './BetweenT...
app/index.js
kevyu/ctp_demo
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import { configureStore, history } from './store/configureStore'; import './app.global.css'; const store = configureStore(); render( <AppContainer> <Root store={...
src/index.js
phirefly/react-redux-starter
import _ from 'lodash'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import SearchBar from './components/search_bar'; import YTSearch from 'youtube-api-search'; import Dotenv from 'dotenv'; import VideoList from './components/video_list'; import VideoDetail from './components/video_detail...
src/pages/dynamic/Integer/Integer.js
hyy1115/react-redux-webpack2
import React from 'react' class Integer extends React.Component { render() { return ( <div>Integer</div> ) } } export default Integer
examples/huge-apps/routes/Calendar/components/Calendar.js
mozillo/react-router
import React from 'react' class Calendar extends React.Component { render() { const events = [ { id: 0, title: 'essay due' } ] return ( <div> <h2>Calendar</h2> <ul> {events.map(event => ( <li key={event.id}>{event.title}</li> ))} </ul> ...
site/pages/APIPage.js
nickknw/react-dnd
import React from 'react'; import Header from '../components/Header'; import PageBody from '../components/PageBody'; import SideBar from '../components/SideBar'; import StaticHTMLBlock from '../components/StaticHTMLBlock'; import { APIPages } from '../Constants'; export default class APIPage { render() { return ...
node_modules/react-router-dom/es/Link.js
danshapiro-optimizely/bandwidth
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components/LocationForm/index.js
cowback/charcode-client
import React from 'react' import Panel from '../Panel' import Input from '../Input' import Button from '../Button' class LocationForm extends React.Component { constructor(props) { super(props) } handleChange = ({ target }) => this.setState({ cep: target.value }) render() { return ( <Panel...
src/components/number-input.js
tylerlee/former
import BasicInput from 'components/basic-input'; import Cursors from 'cursors'; import React from 'react'; export default React.createClass({ mixins: [Cursors], render: function () { return <BasicInput {...this.props} type='number' />; } });
app/js/components/sidebar_view.js
team-418/main-website
import React from 'react'; import { render } from 'react-dom'; import { Link } from 'react-router'; import PrimaryNavigation from './primary_navigation'; import MainFooter from './main_footer'; class SidebarView extends React.Component{ constructor(props) { super(props); } render() { // var leftItems = ...
packages/components/src/EditableText/EditableText.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import EditableText from './EditableText.component'; const props = { text: 'Lorem ipsum dolor sit amet', onEdit: action('onEdit'), onSubmit: action('onSubmit'), onChange: action('onChange'), onCancel: action('onCancel'), }; export defa...
src/styles/withTheme.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import type { ComponentType } from 'react'; import createEagerFactory from 'recompose/createEagerFactory'; import wrapDisplayName from 'recompose/wrapDisplayName'; import createMuiTheme from './createMuiTheme'; import themeListener from './themeListener'; let defaultTheme; fu...
modules/RouteUtils.js
ryardley/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
components/Form/AutoComplete/Heading.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import css from './Heading.css'; const Heading = ({ className, children, ...rest }) => ( <span { ...rest } className={ cx(css.root, className) }>{ children }</span> ); Heading.propTypes = { className: PropTypes.string, ...
src/index.js
olemartin/chess-tournament-frontend
import 'babel-polyfill'; import 'isomorphic-fetch'; import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import injectTapEventPlugin from 'react-tap-event-...
client/desktop/app/components/teacher/classes/ClassData/LessonData.js
Jakeyrob/thumbroll
import React from 'react'; import api from '../../../../utils/api'; import moment from 'moment'; class LessonData extends React.Component { constructor(props){ super(props); this.state = { lessonId: this.props.params.lessonId, lessonName: this.props.location.state.lessonName, className: thi...
spec/components/checkbox.js
KerenChandran/react-toolbox
import React from 'react'; import Checkbox from '../../components/checkbox'; class CheckboxTest extends React.Component { state = { checkbox_1: true, checkbox_2: false, checkbox_3: true }; handleChange = (field, value) => { this.setState({...this.state, [field]: value}); }; handleFocus = ()...
third_party/prometheus_ui/base/web/ui/node_modules/reactstrap/es/InputGroupText.js
GoogleCloudPlatform/prometheus-engine
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; var _excluded = ["className", "cssModule", "tag"]; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { ...
src/components/views/messages/TextualBody.js
aperezdc/matrix-react-sdk
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2017 New Vector Ltd 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 la...
fields/types/markdown/MarkdownColumn.js
andreufirefly/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/client/components/ItemsTable/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTable/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.ob...
src/svg-icons/image/switch-camera.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchCamera = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5...
blueocean-material-icons/src/js/components/svg-icons/image/panorama-horizontal.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C18.18 5.16 15.09 5.7 12 5.7c-3.09...
admin/client/Signin/components/Brand.js
jacargentina/keystone
/** * Renders a logo, defaulting to the Keystone logo if no brand is specified in * the configuration */ import React from 'react'; const Brand = function (props) { // Default to the KeystoneJS logo let logo = { src: `${Keystone.adminPath}/images/logo.png`, width: 205, height: 68 }; if (props.logo) { // If th...
src/frontend/components/BernieLogo.js
al3x/ground-control
import React from 'react'; import {SvgIcon} from 'material-ui' export default class BernieLogo extends React.Component { static propTypes = { bottomSwooshColor : React.PropTypes.string, color: React.PropTypes.string } render() { return ( <SvgIcon {...this.props}> <g> <path stroke={this....
client/src/core-components/pagination.js
ivandiazwm/opensupports
import React from 'react'; import _ from 'lodash'; import Menu from 'core-components/menu'; class Pagination extends React.Component { static propTypes = { pages: React.PropTypes.number.isRequired, pageRangeDisplayed: React.PropTypes.number, marginPagesDisplayed: React.PropTypes.number, ...
src/routes/password/index.js
transitlinks/web-app
import { getLog } from '../../core/log'; const log = getLog('routes/password'); import React from 'react'; import ResetPassword from './ResetPassword'; import ErrorPage from '../../components/common/ErrorPage'; export default { path: '/reset-password/:code?', async action({ params, context }) { const { gra...
src/index.js
kaczmarekpawel/react-scripts-LargeList
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import 'bootstrap/dist/css/bootstrap.min.css'; import 'bootstrap/dist/css/bootstrap-theme.min.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/components/BenchPlayer/BenchPlayer.js
griffsauce/SportsStats
import React from 'react' type Props = { }; export class BenchPlayer extends React.Component { props: Props; render () { return ( <li> #{this.props.player.number} {this.props.player.First} {this.props.player.Last} <br/> {this.props.player.Position} </li> ) } } export default Be...
src/index.js
pbarbiero/enhanced-electron-react-boilerplate
// Modules import React from 'react'; import { render } from 'react-dom'; // Global CSS import "./assets/css/globals.css"; import './vendor/photon/css/photon.css'; // Grab all components dynamically import { components } from './components/components.js'; // Since we are using HtmlWebpackPlugin WITHOUT a template, w...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/transfer/list.js
bhathiya/test
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
containers/DashboardPage.js
hustlzp/react-redux-example
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Link } from 'react-router' import { fetchDashboardData } from '../actions/dashboard' export default class DashboardPage extends React.Component { componentDidMount() { const { dispatch } = th...
app/javascript/mastodon/features/ui/components/audio_modal.js
kirakiratter/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Audio from 'mastodon/features/audio'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { FormattedMessage } from 'react-intl'; import { previewState } from './vide...
src/modules/search/components/RefsDeclBrowser/RefsDeclBrowser.js
CtrHellenicStudies/Commentary
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; // import _s from 'underscore.string'; // components import SearchToolDropdown from '../SearchToolDropdown'; import RefsDeclSearchTermButton from '../RefsDeclSearchTermButton'; import LineRangeSlider from '../LineRangeSlider'; ...
src/static/components/Card/index.js
spiskommg/mm-v2
import React from 'react' import PropTypes from 'prop-types' import { CSSTransitionGroup } from 'react-transition-group'; import './style.scss'; const Card = ({ item }) => ( <CSSTransitionGroup transitionName="slide-up" transitionAppear={true} transitionAppearTimeout={300} transitionEnterTimeout...
src/svg-icons/image/exposure-plus-2.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposurePlus2 = (props) => ( <SvgIcon {...props}> <path d="M16.05 16.29l2.86-3.07c.38-.39.72-.79 1.04-1.18.32-.39.59-.78.82-1.17.23-.39.41-.78.54-1.17.13-.39.19-.79.19-1.18 0-.53-.09-1.02-.27-1.46-.18-.44-...
src/utils.js
pieroit/cheshire-cat
import React from 'react' let utils = { jsonPrettyPrint: function(obj) { let prettyJSON = JSON.stringify(obj, undefined, 4) return ( <pre> {prettyJSON} </pre> ) } } export default utils
docs/src/app/components/pages/discover-more/Showcase.js
rhaedes/material-ui
import React from 'react'; import Title from 'react-title-component'; import {GridList, GridTile} from 'material-ui/GridList'; import MarkdownElement from '../../MarkdownElement'; import showcaseText from './showcase.md'; const styles = { gridList: { margin: 10, }, gridTile: { cursor: 'pointer', }, }...
generators/app/templates/app/scripts/routes/index.js
linder0209/generator-webpack-react
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from '../containers/App'; import HomePage from '../containers/HomePage'; import AboutPage from '../containers/AboutPage'; import ExamplePage from '../containers/ExamplePage'; import FilmPage from '../containers/FilmPage'; import Perso...
src/interface/report/ProgressBar.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; const BACKGROUND_COLOR = 'rgba(0,0,0,.6)'; const FILL_COLOR = '#fb6d35'; const FULL_FILL_COLOR = '#1d9c07'; const ProgressBar = ({ width, height, percentage, style, ...others }) => { // We use round stroke so there is additional width created by the bor...
src/svg-icons/maps/directions-subway.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsSubway = (props) => ( <SvgIcon {...props}> <path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5...
views/main.js
w9jds/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import {TerminalLayout} from './compiled/src/views/TerminalLayout.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
ext/lib/site/thumbs-acerca/component.js
DemocraciaEnRed/vicentelopez
import React from 'react' import { Link } from 'react-router' export default function ThumbsVoto(props) { let styleIcono1 = { backgroundImage: `url(${props.texts['home-icono1-imagen']})` }, styleIcono2 = { backgroundImage: `url(${props.texts['home-icono2-imagen']})` }, styleIcono3 = { backgroundImage: `u...
modules/withRouter.js
nvartolomei/react-router
import React from 'react' import hoistStatics from 'hoist-non-react-statics' import { routerShape } from './PropTypes' function getDisplayName(WrappedComponent) { return WrappedComponent.displayName || WrappedComponent.name || 'Component' } export default function withRouter(WrappedComponent) { const WithRouter =...
awsmobilecognitocustomui/src/components/CenteredIcon.js
adrianhall/blog-code
import React from 'react'; import { StyleSheet, View } from 'react-native'; import Icon from 'react-native-vector-icons/FontAwesome'; const styles = StyleSheet.create({ container: { display: 'flex', alignItems: 'center', justifyContent: 'center', flexGrow: 1 } }); /** * React ...
src/components/ReportForm/index.js
bruceli1986/contract-react
import React from 'react' import ReportFormPayment from 'components/ReportFormPayment' import ReportFormGuarantee from 'components/ReportFormGuarantee' import './style.scss' /** 打印报表的表单*/ class ReportFrom extends React.Component { static propTypes = { processDefinitionId: React.PropTypes.string, businessId: ...
src/svg-icons/notification/airline-seat-recline-extra.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatReclineExtra = (props) => ( <SvgIcon {...props}> <path d="M5.35 5.64c-.9-.64-1.12-1.88-.49-2.79.63-.9 1.88-1.12 2.79-.49.9.64 1.12 1.88.49 2.79-.64.9-1.88 1.12-2.79.49zM16 19H8.93c-1.48 0...
app/containers/Main.js
shannonjohnstone/react-weather
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; // components import GetCityContainer from './GetCityContainer'; // styles import '../styles/main.css'; export default class Main extends Component { render() { return ( <div className="main-background"> <div className="header clea...
src/svg-icons/action/verified-user.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVerifiedUser = (props) => ( <SvgIcon {...props}> <path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/> </SvgIcon> ); ActionVerif...
spec/coffeescripts/jsx/grading/GradingPeriodTemplateSpec.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
example/src/js/components/App.js
dongsik-yoo/assemblyscript-live-loader
import React from 'react'; import microBenchmark from 'micro-benchmark'; import _ from 'lodash'; import Chart from './Chart'; import CalculatorJS from '../Calculator'; import CalculatorASC from '../../asc/Calculator.asc'; const CalculatorWASM = new CalculatorASC().exports; const factorialNumber = 1000; const factorial...
src/layouts/base.js
mr47/react-redux-kit
"use strict"; import React from 'react'; import { Link } from 'react-router' const BaseLayout = ({ children })=>{ return ( <div className="container"> <h1><Link to="/">React + Redux Demo</Link></h1> {children} </div> ) }; export { BaseLayout };
src/App.js
pawelgalazka/spaceroom
import React, { Component } from 'react'; import './App.css'; import { LeapProvider } from './leap' import SpaceRoom from './SpaceRoom' class App extends Component { constructor(props) { super(props) this.state = { style: {} } } render() { return ( <div className="App"> <Leap...
docs/src/app/components/pages/get-started/Usage.js
nathanmarks/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import usageText from './usage.md'; const Usage = () => ( <div> <Title render={(previousTitle) => `Usage - ${previousTitle}`} /> <MarkdownElement text={usageText} /> </div> ); export...
app/javascript/mastodon/components/radio_button.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class RadioButton extends React.PureComponent { static propTypes = { value: PropTypes.string.isRequired, checked: PropTypes.bool, name: PropTypes.string.isRequired, onChange: PropTypes....
information/blendle-frontend-react-source/app/modules/about/containers/PrivacyContainer.js
BramscoChill/BlendleParser
import React from 'react'; import Privacy from 'modules/about/components/Privacy'; import Auth from 'controllers/auth'; export default class PrivacyContainer extends React.Component { constructor(props) { super(props); this.state = { user: Auth.getUser(), trackingLoading: false, shareLoadi...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
Kirishima21/mastodon
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 '../../../...
BuyDemo/Component/Home/ZPHomeMiddleView.js
HAPENLY/ReactNative-Source-code-Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Image, TouchableOpacity } from 'react-native'; var Dimensions = require('Dimensions'); var {width} = Dimensions.get('w...
src/useStoreState.js
nheyn/react-async-dispatcher
/* @flow */ import React from 'react'; import getDispatcher from './getDispatcher'; import type { Dispatcher } from 'async-dispatcher'; import type { HigherOrderComponent } from 'react-async-dispatcher'; type State = { data: any, unsubscribe: () => void, }; /** * */ export default function useStoreState(store...
src/ZulipMobile.js
vishwesh3/zulip-mobile
/* @flow strict-local */ import React from 'react'; import '../vendor/intl/intl'; import StoreProvider from './boot/StoreProvider'; import TranslationProvider from './boot/TranslationProvider'; import StylesProvider from './boot/StylesProvider'; import CompatibilityChecker from './boot/CompatibilityChecker'; import Ap...
frontend/src/admin.js
wadobo/socializa
import React from 'react'; import { storeUser, user, logout } from './auth'; import API from './api'; import Loading from './loading'; import Bucket from './bucket'; import { translate } from 'react-i18next'; class Challenge extends React.Component { render() { var c = this.props.c; return ( ...
site/components/PageBody.js
zetkin/react-dnd
import React from 'react'; import './PageBody.less'; export default class PageBody { static propTypes = { hasSidebar: React.PropTypes.bool }; render() { var {hasSidebar, html, ...props} = this.props; return ( <div className={`PageBody ${hasSidebar ? 'PageBody--hasSidebar' : ''}`}> <div...
indico/web/client/js/jquery/widgets/jinja/datetime_widget.js
ThiefMaster/indico
// This file is part of Indico. // Copyright (C) 2002 - 2021 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {WTFDateTimeField} from 'indico...
src/containers/home/sections/SectionGrowthTab.js
phodal/growth-ng
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Text, View } from 'react-native'; import { List, ListItem } from 'react-native-elements'; import { Actions } from 'react-native-router-flux'; import * as shortid from 'shortid'; import Launch from '../../../components/discover/Launc...
app/src/Frontend/libs/weui/components/article/article.js
ptphp/ptphp
/** * Created by jf on 15/12/11. */ import React from 'react'; import classNames from 'classnames'; export default class Article extends React.Component { render() { const {className, children, ...others} = this.props; const cls = classNames({ weui_article: true, [class...
app/javascript/flavours/glitch/features/compose/components/dropdown_menu.js
glitch-soc/mastodon
// Package imports. import PropTypes from 'prop-types'; import React from 'react'; import spring from 'react-motion/lib/spring'; import ImmutablePureComponent from 'react-immutable-pure-component'; import classNames from 'classnames'; // Components. import Icon from 'flavours/glitch/components/icon'; // Utils. imp...
docs/src/app/components/pages/components/SelectField/Page.js
ngbrown/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import selectFieldReadmeText from './README'; import SelectFieldExampleSimple fr...
packages/icons/src/md/action/DateRange.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDateRange(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M18 22h-4v4h4v-4zm8 0h-4v4h4v-4zm8 0h-4v4h4v-4zm4-14c2.2 0 4 1.8 4 4v28c0 2.2-1.8 4-4 4H10c-2.22 0-4-1.8-4-4l.02-28c0-2.2 1.76-4 3.98-4h2V4h4v4h16V...
src/svg-icons/device/devices.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDevices = (props) => ( <SvgIcon {...props}> <path d="M4 6h18V4H4c-1.1 0-2 .9-2 2v11H0v3h14v-3H4V6zm19 2h-6c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V9c0-.55-.45-1-1-1zm-1 9h-4v-7h4v7z"/> </Sv...
source/demo/App.js
emilebres/react-flex-accordion
import React from 'react' import {FlexAccordionExample} from '../FlexAccordion/FlexAccordion.example' const styles = { header: { backgroundColor: '#2196f3', color: 'rgba(255,255,255,0.85)', margin: 0, padding: '1rem 0' }, container: { width: '800px', maxWidth: '100%', margin: '.5rem...
src/@ui/SecondaryNav/index.js
NewSpring/Apollos
import React from 'react'; import { StyleSheet } from 'react-native'; import PropTypes from 'prop-types'; import { withProps, compose } from 'recompose'; import withToggleLike from '@data/likes/withToggleLike'; import TabBar, { Link } from '@ui/TabBar'; import { share } from '@utils/content'; export { Link }; export ...
src/widgets/MeterWidget.js
domoticz/Reacticz
import React, { Component } from 'react'; import GenericWidget from './helpers/GenericWidget'; class MeterWidget extends Component { render() { return ( <GenericWidget class="MeterWidget" icon="equalizer" isOn={Number(this.props.value) > 0 } value1={this.props.value + (th...
src/components/Sidebar/index.js
bhavik3jain/LibertyMutual320Project
import React, { Component } from 'react'; import classNames from 'classnames'; import history from '../../core/history'; class Sidebar extends Component { constructor(props) { super(props); this.state = { accessDatabase: true, peerReview: true, processes: true, }; } render() { ...
js/components/table-cells/SRTypographicCell.js
iMaddin/Benkio
// @flow import React from 'react' import { Animated, Easing, StyleSheet, Text, TouchableOpacity, View } from 'react-native' import { SRColor } from '../../utilities/SRColor' // Animation Settings const maxScale = 1.5 const minScale = 0.5 const scaleYToValue = 1.2 const scaleYFromValue = 1 const scaleXToValue = 0....