path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/customization/StylesOverridingInlineExample.js
ArcanisCz/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingInlineExample = () => ( <Checkbox name="StylesOverridingInlineExample" label="Checked the mail" style={{ width: '50%', margin: '0 auto', border: '2px solid #FF9800', backgroundColor: '#ff...
packages/fyndiq-component-productlist/src/wrapper.js
fyndiq/fyndiq-ui
import React from 'react' import PropTypes from 'prop-types' import styles from '../styles.css' export class Wrapper extends React.Component { static propTypes = { children: PropTypes.arrayOf(PropTypes.element).isRequired, openMultiples: PropTypes.bool, } static defaultProps = { openMultiples: false...
src/app/AppRenderer.native.js
kuzzmi/rmndrz
import React from 'react'; import { View, StyleSheet, } from 'react-native'; import { Header } from '../modules/header'; import { RemindersInput } from '../modules/remindersInput'; import { RemindersList } from '../modules/remindersList'; export default function(props, { reminders, editing }) { return ( ...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js
formatlos/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
src/App.js
Miloucodaisseur/task_manager
import React from 'react'; import { Link } from 'react-router'; class App extends React.Component { render() { var navigation = { height: '60px', backgroundColor: '#00ADB0', paddingTop: '8px', paddingBottom: '10px', paddingLeft: '20px' }; ...
src/components/NotFoundPage.js
Squatt/MediaMixProject
// src/components/NotFoundPage.js import React from 'react'; import { Link } from 'react-router'; export default class NotFoundPage extends React.Component { render() { return ( <div className="not-found"> <h1>404</h1> <h2>Page not found!</h2> <p> <Link to="/">Go back to t...
src/layouts/fr.js
angeloocana/tic-tac-toe-ai
import React from 'react'; import graphql from 'graphql'; import Layout from './_layout'; import { addLocaleData } from 'react-intl'; import messages from '../data/messages/fr'; import fr from 'react-intl/locale-data/fr'; import 'intl/locale-data/jsonp/fr'; addLocaleData(fr); export default (props) => ( <Layout ...
client/analytics/components/partials/RegionSelector.js
Haaarp/geo
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { analytics } from './../../../actions'; import FilterList from 'konux/common/components/FilterList'; class RegionSelector extends React.Component { constructor(map, data){ super(map, data)...
src/svg-icons/device/battery-charging-60.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryCharging60 = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V11h3.87L13 7v4h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9l1...
js/components/login/index.js
laurar07/onMy6
import React, { Component } from 'react'; import { Image, Text } from 'react-native'; import { connect } from 'react-redux'; import { Container, Content, InputGroup, Input, Button, Icon, View } from 'native-base'; import { replaceRoute } from '../../actions/route'; import { setUser } from '../../actions/user'; import...
tests/Rules-minLength-spec.js
christianalfoni/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/server.js
hasibsahibzada/quran.com-frontend
/* global webpack_isomorphic_tools */ import express from 'express'; import PrettyError from 'pretty-error'; import React from 'react'; import ReactDOM from 'react-dom/server'; import { match } from 'react-router'; import { ReduxAsyncConnect, loadOnServer } from 'redux-connect'; import createHistory from 'react-router/...
docs/app/Examples/elements/Image/Variations/ImageExampleSpaced.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment, Image } from 'semantic-ui-react' const src = '/assets/images/wireframe/image.png' const ImageExampleSpaced = () => ( <div> <Segment> <p> Te eum doming eirmod, nominati pertinacia <Image src={src} size='mini' spaced /> argumentum ad his. Ex eam alia ...
src/svg-icons/action/tab-unselected.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionTabUnselected = (props) => ( <SvgIcon {...props}> <path d="M1 9h2V7H1v2zm0 4h2v-2H1v2zm0-8h2V3c-1.1 0-2 .9-2 2zm8 16h2v-2H9v2zm-8-4h2v-2H1v2zm2 4v-2H1c0 1.1.9 2 2 2zM21 3h-8v6h10V5c0-1.1-.9-2-2-2zm0 14h2v...
sam-front/src/components/SearchResultDialog.js
atgse/sam
import React from 'react'; import { Link } from 'react-router'; import RaisedButton from 'material-ui/RaisedButton'; import LoadingIndicator from './LoadingIndicator'; import { Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn, } from 'material-ui/Table'; import isEmpty from 'lodash/isE...
packages/vx-demo/pages/dots.js
Flaque/vx
import React from 'react'; import Show from '../components/show'; import Dots from '../components/tiles/dots'; export default () => { return ( <Show component={Dots} title="Dots"> {`import React from 'react'; import { Group } from '@vx/group'; import { GlyphCircle } from '@vx/glyph'; import { GradientPinkR...
admin/client/App/components/Navigation/Secondary/NavItem.js
trentmillar/keystone
/** * A navigation item of the secondary navigation */ import React from 'react'; import { Link } from 'react-router'; const SecondaryNavItem = React.createClass({ displayName: 'SecondaryNavItem', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, href: React.PropType...
src/routes/ui/MediaPlayer/index.js
pmg1989/dva-admin
import React from 'react' import { Row, Col, Tabs } from 'antd' import MediaPlayer from 'components/MediaPlayer' import VideoPlayer from 'components/MediaPlayer/VideoPlayer' import AudioPlayer from 'components/MediaPlayer/AudioPlayer' import CirclePlayer from 'components/MediaPlayer/CirclePlayer' const TabPane = Tabs....
server/frontend/components/CenteredLayout/CenteredLayout.js
SchadkoAO/FDTD_Solver
import React from 'react'; import styles from './CenteredLayout.css'; export const CenteredLayout = ({ children }) => ( <div className={styles.container}> {children} </div> ); export default CenteredLayout;
pollard/components/SearchSongButton.js
spencerliechty/pollard
import React, { Component } from 'react'; export default class SearchSongButton extends Component { render() { const { isSearching, onClick, } = this.props; const buttonClass = isSearching ? 'btn-secondary' : 'btn-primary'; const className = buttonClass + " btn col-xs-10 col-xs-offset-1 ...
src/components/ModalWindow/index.js
iris-dni/iris-frontend
import React from 'react'; import styles from './modal-window.scss'; import settings from 'settings'; import Overlay from 'components/Overlay'; import CloseButton from 'components/CloseButton'; const Modal = ({ active, title, children, hideModalWindow }) => ( <div aria-hidden={!active} className={styles.root}> <...
examples/custom-server-express/pages/index.js
giacomorebonato/next.js
import React from 'react' import Link from 'next/link' export default () => ( <ul> <li><Link href='/b' as='/a'><a>a</a></Link></li> <li><Link href='/a' as='/b'><a>b</a></Link></li> </ul> )
lib/components/Search/Search.js
JorgeEdPerezGa/weatherly
import React from 'react'; import App from '../App/App.js'; import CurrentWeather from '../Current/CurrentWeather.js'; import locations from '../../utility/Locations.js'; import Trie from '../Trie.js'; export default class Search extends React.Component { constructor(props) { super(props); this.state = { ...
examples/App.js
sthawali/react-overlays
import React from 'react'; import Button from 'react-bootstrap/lib/Button'; import Editor from 'component-playground'; import PropTable from './PropTable'; import ModalExample from '../webpack/example-loader!./Modal'; import OverlaySource from '../webpack/example-loader!./Overlay'; import PortalSource from '../webpa...
src/index.js
kouumou/gallery-by-react
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; //import App from './components/Main'; import ComponentHeader from './components/header'; import ComponentFooter from './components/footer' import BodyIndex from './components/bodyindex' import 'antd/dist/antd.css'; // Rend...
client/admin/users/UsersPage.js
Sing-Li/Rocket.Chat
import { Button, ButtonGroup, Icon } from '@rocket.chat/fuselage'; import React from 'react'; import Page from '../../components/basic/Page'; import VerticalBar from '../../components/basic/VerticalBar'; import { useTranslation } from '../../contexts/TranslationContext'; import { useRouteParameter, useRoute } from '.....
src/index.js
yang-zhang-syd/React-Wechat-E2E-Test-With-Fake-Api
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import { Router, hashHistory} from 'react-router'; import routes from './routes'; import './components/weui.css'; import * as storeConfig from './store'; render( <Provider store={storeConfig.store}> <Router history...
src/ui/components/Button.js
exponentjs/xde
/** * @flow */ import React from 'react'; import { StyleSheet, css } from 'aphrodite/no-important'; import StyleConstants from 'xde/ui/StyleConstants'; import LoadingIndicator from 'react-loading-indicator'; type Props = { styles?: Array<any> | any, children?: any, isLoading?: boolean, renderRightIcon: () ...
js/components/App.react.js
Freizeitler/curcooma-game
/** * * 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, { Component } from 'react'; import { connect } from 'react-redux'; import PageHeader from './organisms/PageHeader/PageHeader.rea...
src/index.js
watsonink/obscure-harbor-78183
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app/App'; import DevTools from './DevTools'; import { Provider } from 'react-redux'; import configureStore from './configureStore'; const store = configureStore(); let Root; if (process.env.NODE_ENV === 'development') { Root = () => ( ...
frontend/src/components/welcome/components/OurStack.js
worknenjoy/gitpay
import React from 'react' import { FormattedMessage } from 'react-intl' import styled from 'styled-components' import { Chip, Typography, } from '@material-ui/core' import PropTypes from 'prop-types' const data = [ { label: 'React.js', url: 'https://reactjs.org/' }, { label: 'Material-ui', url: 'https://mate...
pootle/static/js/admin/components/ItemTable.js
pavels/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import ItemTableRow from './It...
app/app.js
andyzeli/Bil
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
packages/react-scripts/template/src/index.js
maletor/create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import * as serviceWorker from './serviceWorker'; ReactDOM.render(<App />, document.getElementById('root')); // If you want your app to work offline and load faster, you can change // unregister() to register()...
redux-distributed/todomvc-pouchdb/src/index.js
jurassix/react-examples
import React from 'react' import { render } from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux' import { Provider } from 'react-redux' import App from './containers/App' import reducer from './reducers' import thunk from 'redux-thunk'; import pouchdbStoreEnhancer from 'redux-pouchdb-store-enh...
client/src/App.js
rikukissa/sql-exercises
import React, { Component } from 'react'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { BrowserRouter, HashRouter, Route, Link } from 'react-router-dom'; import { getUser, getUsers, getExerciseLists } from './state'; import HomeView from './modules/Home/View'; import Exercise...
app/containers/NotFoundPage/index.js
monkeyzealer/Webstore-FrontEnd
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * */ import React from 'react'; export default class NotFound extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { return ( <h1> 404: Not Found ...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
noumanberlas/prime-react
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text...
test/setup.js
Chris927/u5-r2-query
import React from 'react' import renderer from 'react-test-renderer' function createNodeMock() { // You can return anything from this function. // For example: return { focus() { // Do nothing } } } global.render = component => { // TODO: wrapping pointless, so far const wrapped = <div>{ co...
gatsby-strapi-tutorial/cms/admin/admin/src/containers/LeftMenu/index.js
strapi/strapi-examples
/* * * LeftMenu * */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import LeftMenuHeader from '../../components/LeftMenuHeader'; import LeftMenuLinkContainer from '../../components/LeftMenuLinkContainer'; import LeftMenuFooter from '../../components/LeftMenu...
ee/client/audit/FilterDisplay.js
VoiSmart/Rocket.Chat
import { Box } from '@rocket.chat/fuselage'; import React from 'react'; const FilterDisplay = ({ users, room, startDate, endDate, t }) => ( <Box display='flex' flexDirection='column' alignItems='stretch' withTruncatedText> <Box withTruncatedText>{users ? `@${users[0]} : @${users[1]}` : `#${room}`}</Box> <Box with...
packages/cp-frontend/src/components/manifest/manifest.js
yldio/copilot
import React from 'react'; import { FormGroup, FormMeta, Button } from 'joyent-ui-toolkit'; import { Row } from 'react-styled-flexboxgrid'; import remcalc from 'remcalc'; import { Field } from 'redux-form'; import { MEditor } from './editors'; import StyledFormLabel from './label'; const ButtonsRow = Row.extend`margin...
src/modules/Auth/RequireNotLoggedIn.js
hdngr/mantenuto
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; export class RequireNotLoggedInComponent extends Component { static propTypes = { push: PropTypes.func.isRequired, tryingAuth: PropTypes.bool.isReq...
lib/HotKeys.js
JohnC-80/react-hotkeys
import PropTypes from 'prop-types'; import React from 'react'; import createReactClass from 'create-react-class'; import ReactDOM from 'react-dom'; import FocusTrap from './FocusTrap'; import HotKeyMapMixin from './HotKeyMapMixin'; import isBool from 'lodash.isboolean'; import isObject from 'lodash.isobject'; import i...
scripts/main.js
CheshireSwift/launching-swiftly
import React from 'react' import ReactDOM from 'react-dom' import Main from '../views/main.jsx' window.onload = function () { ReactDOM.render(<Main />, document.getElementById('app')) }
client/pages/adminpage/config.js
mickael-kerjean/nuage
import React from 'react'; import { FormBuilder } from '../../components/'; import { Config } from '../../model/'; import { format } from '../../helpers'; export class ConfigPage extends React.Component { constructor(props){ super(props); this.state = { form: {} }; } c...
frontend/src/containers/PublicTopBar.js
carlosascari/opencollective-website
import React from 'react'; import { connect } from 'react-redux'; import logout from '../actions/session/logout'; class PublicTopBar extends React.Component { showSession() { const { session, logout } = this.props; const redirect = `/`; if(session && session.isAuthenticated) { return ( <...
app/components/Img/index.js
mhoffman/CatAppBrowser
/** * * Img.react.js * * Renders an image, enforcing the usage of the alt="" tag */ import React from 'react'; import PropTypes from 'prop-types'; function Img(props) { return ( <img className={props.className} src={props.src} alt={props.alt} /> ); } // We require the use of src and alt, only enforced b...
src/components/Header.js
raghu666/Reactapp
import React from 'react'; import { Link, NavLink } from 'react-router-dom'; // The Header creates links that can be used to navigate // between routes. const Header = () => ( <header> <nav className="navbar navbar-toggleable-md"> <button className="navbar-toggler navbar-toggler-right" type="button"...
src/svg-icons/notification/phone-paused.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationPhonePaused = (props) => ( <SvgIcon {...props}> <path d="M17 3h-2v7h2V3zm3 12.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.59l2.2-2.21c.28-.26.36-.65.25-1C...
mealbotui/src/App.js
qjflores/mealbot
import React, { Component } from 'react'; import './App.css'; import Web3 from 'web3'; import _ from 'lodash'; import AppNavTab from './js/components/AppNavTab'; var ETHEREUM_CLIENT = new Web3(new Web3.providers.HttpProvider("http://localhost:8545")) var mealBonContractABI = [{"constant":true,"inputs":[],"name":"g...
client-react/src/server.js
diman84/Welthperk
import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import favicon from 'serve-favicon'; import compression from 'compression'; import cookieParser from 'cookie-parser'; import httpProxy from 'http-proxy'; import path from 'path'; import PrettyError from 'pretty-error'; im...
components/animals/jespakBojovny.adult.js
marxsk/zobro
import React, { Component } from 'react'; import { Text } from 'react-native'; import styles from '../../styles/styles'; import InPageImage from '../inPageImage'; import AnimalText from '../animalText'; import AnimalTemplate from '../animalTemplate'; const IMAGES = [ require('../../images/animals/jespakBojovny/01.j...
src/Badge.js
Terminux/react-bootstrap
import React from 'react'; import ValidComponentChildren from './utils/ValidComponentChildren'; import classNames from 'classnames'; import tbsUtils from './utils/bootstrapUtils'; const Badge = React.createClass({ propTypes: { pullRight: React.PropTypes.bool }, getDefaultProps() { return { pullRig...
lib/index.js
sanack/atom-jq
/** @babel */ import React from 'react' import { render, unmountComponentAtNode } from 'react-dom' import { store } from './store' import { App } from './components/App' import { log, clear } from './debug' import subscriptions from './subscriptions' const rootDOMId = 'atom-jq-root' let rootDOMNode = null export def...
src/components/d3components/Empty.js
nbuechler/friendly-finder
import React from 'react'; import d3 from 'd3'; import _ from 'underscore'; export default class Empty extends React.Component { constructor (props) { super(props); this.state = { }; } render () { return ( <text x={0} y={this.props.height/2} fontFamily="Lato" fontSize="20px" fill="white">Sorry,...
src/components/AddTodo.js
FrozenTear7/student-life-organizer
import React from 'react' import { reduxForm, Field, reset } from 'redux-form' import { addTodo } from '../actions/todoActions' import { connect } from 'react-redux' import renderField from './renderField' import { required } from '../utils/validateForm' const submitTodo = (values, dispatch) => { dispatch(addTodo(...
src/app/views/taskList.js
AntJanus/hRPG-lite-redux
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { addTask } from '<actions>/actions'; //components import Task from './task'; class TaskList extends Component { constructor(props) { super(props); } addTask(name) { const { dispatch, auth, tasks } = this.props; ...
src/containers/_base/index.js
timludikar/component-library
import React from 'react'; import Header from '../../components/header'; import Section from '../../components/section'; import styles from './stylesheet/_base.styl'; const BaseContainer = ({ title, className, children, }) => ( <Section title={title} className={className}> <Header size={2} className={[st...
client/src/index.js
Hypheme/harmonized.js-example
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
Faw.Web.Client/src/routes/Achivment/Index/components/Achivment.js
Demenovich-A-J/Family-s-adventure-world
import React from 'react' import { Grid, Cell, FABButton, Icon } from 'react-mdl' import AchivmentList from './AchivmentList' import { Link } from 'react-router' import './Achivment.scss' export const Achivment = (props) => ( <Grid> <Cell col={12} className='-achivment-list'> <AchivmentList achivm...
blueocean-material-icons/src/js/components/svg-icons/communication/phonelink-lock.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationPhonelinkLock = (props) => ( <SvgIcon {...props}> <path d="M19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm-8.2 10V9.5C10.8 8.1 9.4 7 8 7S5.2 8.1 5.2 9.5V11c-.6 0-1.2.6-1.2 1.2v3.5c0 ...
common/routes/PostList/components/PostListItem.js
witt86/ERE
import React from 'react' import { Link } from 'react-router' import { StyleSheet, css } from 'aphrodite' const PostListItem = ({ post }) => ( <div className={css(styles.root)}> <h3><Link to={`/post/${post.slug}`} className={css(styles.title)}> {post.title} </Link></h3> </div> ) const styles = StyleSheet.crea...
client/src/app/admin/panel/staff/admin-panel-view-staff.js
ivandiazwm/opensupports
import React from 'react'; import history from 'lib-app/history'; import {connect} from 'react-redux'; import _ from 'lodash'; import i18n from 'lib-app/i18n'; import API from 'lib-app/api-call'; import SessionActions from 'actions/session-actions'; import StaffEditor from 'app/admin/panel/staff/staff-editor'; import...
src/index.js
lulei90/react-cue
import CueBox from './CueBox' import React from 'react' import Model from './Model' const CueBoxCtrl =CueBox.renderBox(); const Cue = CueBoxCtrl.create({ msg(content,time,icon){ return this.add({ content, time, icon }) }, alert(content,click,title){ ...
src/containers/Tables/antTables/tableViews/simpleView.js
EncontrAR/backoffice
import React, { Component } from 'react'; import Table from '../../../../components/uielements/table'; export default class SimpleView extends Component { render() { return ( <div className="isoSimpleTable"> <Table pagination={false} columns={this.props.tableInfo.columns} ...
src/layouts/PrimaryLayout.js
algernon/mad-tooter
// @flow /* The Mad Tooter -- A Mastodon client * Copyright (C) 2017 Gergely Nagy * * 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 * License, or (at your o...
app/container/root/index.js
RizzleCi/Library-manager
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import * as BookActions from '../../actions/book.action' import * as UserActions from '../../actions/user.action' import { Layout, Modal, Table, Button, Select, Input, Cascader, message as Message } from 'antd' c...
src/clincoded/static/components/gene_disease_summary/experimental.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { external_url_map } from '../globals'; class GeneDiseaseEvidenceSummaryExperimental extends Component { constructor(props) { super(props); this.state = { mounted: false, sortC...
vertex_ui/src/components/RightSidebar/components/OverlayContent/OverlayContent.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import classNames from 'classnames'; const OverlayContent = props => { const { active, children, className, style, ...otherProps } = props; const contentClass = classNames( { active: active, }, 'right-sidebar-extra-content', ...
techCurriculum/ui/solutions/4.7/src/components/TextInput.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
web/src/components/NavigationComponent.js
undemaduc/undemaduc
import React from 'react'; import { Link } from 'react-router'; import autoBind from 'react-autobind'; class Navigation extends React.Component { constructor(props) { super(props); autoBind(this); } isLoggedin() { const { user, luser } = this.props.user; return ...
dcc-portal-ui/app/scripts/oncololliplot/js/react-components/Lolliplot.js
icgc-dcc/dcc-portal
import React, { Component } from 'react'; import { object } from 'prop-types'; import { connect } from 'react-redux'; import LolliplotChart from './LolliplotChart'; import Toolbar from './Toolbar'; import Tooltip from './Tooltip'; import Backbone from './Backbone'; import Minimap from './Minimap'; import Loading from '...
src/svg-icons/editor/format-textdirection-r-to-l.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
src/components/Doctor/DoctorLanguages.js
aspsoluciones/mcw-client
import React from 'react'; const DoctorLanguages = ({languages, language}) => { if(languages && languages.length) { return(<div> <strong className="color-mcwDark">{language.languages}</strong> { languages.map((language, i) => { ...
src/components/Page.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
examples/transitions/app.js
ThibWeb/react-router
import React from 'react'; import { Router, Route, Link, History, Lifecycle } from 'react-router'; var App = React.createClass({ render() { return ( <div> <ul> <li><Link to="/dashboard">Dashboard</Link></li> <li><Link to="/form">Form</Link></li> </ul> {this.props...
frontend/jqwidgets/jqwidgets-react/react_jqxeditor.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxEditor extends React.Component { componentDidMount() { let options = this.manageA...
src/redux/utils/createDevToolsWindow.js
cluk3/SkyProgrammingTest
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import DevTools from '../../containers/DevToolsWindow' export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window `...
src/containers/Home/Home.js
Romsters/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 = ...
src/components/GridContainer/CellRenderers/StateCellRenderer.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; export default class DefaultMetricCellRenderer extends Component { constructor(props) { super(props); this.stateAbbreviationLookup = { Alabama: 'AL', Alaska: 'AK', Arizona: 'AZ', Arkansas: 'AR', California: 'CA', Colorado: 'CO', ...
common/app/provide-store.js
TheeMattOliver/FreeCodeCamp
/* eslint-disable react/display-name */ import React from 'react'; import { Provider } from 'react-redux'; export default function provideStore(element, store) { return React.createElement( Provider, { store }, element ); }
app/components/PowerToggle.js
desheffer/equalizer
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import style from './PowerToggle.css'; export default class PowerToggle extends Component { static propTypes = { power: PropTypes.bool.isRequired, setPower: PropTypes.func.isRequired, }; handlePowerToggle = (evt)...
client/index.js
nko5/lisezmoi
import io from 'socket.io-client' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore, combineReducers } from 'redux' import App from './comps/app' import * as reducers from './reducers' import * as actions from './action-creators' const store = create...
blueocean-material-icons/src/js/components/svg-icons/av/volume-up.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvVolumeUp = (props) => ( <SvgIcon {...props}> <path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z...
src/icons/IosContact.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosContact extends React.Component { render() { if(this.props.bare) { return <g> <path d="M256,48C141.1,48,48,141.1,48,256c0,114.9,93.1,208,208,208c114.9,0,208-93.1,208-208C464,141.1,370.9,48,256,48z M256,4...
src/parser/shaman/restoration/CombatLogParser.js
fyruna/WoWAnalyzer
import React from 'react'; import Panel from 'interface/others/Panel'; import RestorationShamanSpreadsheet from 'interface/others/RestorationShamanSpreadsheet'; import Feeding from 'interface/others/Feeding'; import CoreCombatLogParser from 'parser/core/CombatLogParser'; import HealingEfficiencyDetails from 'parser/c...
server/sonar-web/src/main/js/apps/overview/components/LeakPeriodLegend.js
Builders-SonarSource/sonarqube-bis
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/app.js
nielsrowinbik/react-boilerplate
import * as stores from './stores'; import { injectGlobal, ThemeProvider } from 'styled-components'; import { BrowserRouter } from 'react-router-dom'; import { createStore } from 'mobx-app'; import MainApp from 'routes'; import { Provider } from 'mobx-react'; import React from 'react'; import theme from './theme'; con...
src/index.js
favorit/esnext-quickstart
import React from 'react'; import App from './app/App'; React.render(<App />, document.body);
packages/logos/src/fedora.js
yldio/joyent-portal
import React from 'react'; import calcFill from './fill'; export default ({ fill = null, light = false, disabled = false, colors = {}, ...rest }) => ( <svg id="svg4300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...rest} > <defs> <style dangerouslySetInnerH...
src/components/toolbar/index0.js
MissingNotes/MissingNotesDauber
import React from 'react' import styles from './style.css' import Button from '../button' import {connect} from 'dva' import Contextmenu from '../contextmenu' class Toolbar extends React.PureComponent { constructor(props) { super(props) this.handleHighlight = this.handleHighlight.bind(this) this.handleAd...
docs/app/Examples/elements/Input/Variations/InputExampleRightLabeledTag.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleRightLabeledTag = () => ( <Input icon='tags' iconPosition='left' label={{ tag: true, content: 'Add Tag' }} labelPosition='right' placeholder='Enter tags' /> ) export default InputExampleRightLabeledTag
app/javascript/mastodon/features/following/index.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
tp-react/src/User.js
detienne11/imie
import React, { Component } from 'react'; class User extends Component { constructor(props) { // console.log("User :",props); super(props); this.state = { user: this.props.user }; } render() { let user = this.state.user; console.log("User",user); if (user == null){...
src/js/components/icons/base/Login.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...
React Native/Demos/douApp/iOS_views/common/webview.js
AngryLi/note-iOS
/** * Created by fulihui2 on 16/9/8. */ import React from 'react'; import Util from './../common/util'; import Header from './header'; import { WebView, View } from 'react-native'; export default class MyWebView extends React.Component { render() { return ( <View {...this.props}> ...
day23_lifecycle/src/components/TodoAddForm.js
eyesofkids/ironman2017
//@flow import React from 'react' //匯入Props靜態類型的定義 import type { TodoAddFormProps } from '../definitions/TodoTypeDefinition.js' const TodoAddForm = ({ placeholderText, onItemAdd }: TodoAddFormProps) => { //給Flow檢查用的,這個參照值一開始都是null,渲染前是不確定值,所以用any let titleField: any = null return ( <div> <input ...
source/Components/Header/View.es6.js
mod-ui/mod-ui-todo-mvc
import React from 'react'; import Constants from "Events/Constants.json"; import Styles from "./Styles"; import addTodo from "Events/AddTodo"; const ENTER_KEY_CODE = 13; class NewTodoInput extends React.Component { constructor (props) { super(props); this.state = { value: "" ...
src/index.js
etshi/optiopay-form
import formDataToObject from 'form-data-to-object'; import PropTypes from 'prop-types'; import React from 'react'; import utils from './utils'; import validationRules from './validationRules'; import Wrapper, { propTypes } from './Wrapper'; /* eslint-disable react/no-unused-state, react/default-props-match-prop-types...