path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
components/tree/demo/basic.js
TDFE/td-ui
import React from 'react'; import Tree from '../index'; const TreeNode = Tree.TreeNode; export default class Basic extends React.Component { onSelect = (selectedKeys, info) => { console.log('selected', selectedKeys, info); } onCheck = (checkedKeys, info) => { console.log('onCheck', checkedKeys, info); }...
client/landing/components/home/CreationLoop/index.js
bryanph/Geist
import React from 'react' import ReactDom from 'react-dom' import classNames from 'classnames' import './styles.scss' const creationLoopItems = [ { name: "source", title: "Collect sources", content: ` A source can have many forms. Think of an article or a blog post, a video, an...
client/modules/App/__tests__/App.spec.js
Dokvel/outfit_ua
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
src/Tabs/Tabs.js
skystebnicki/chamel
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import ThemeService from '../styles/ChamelThemeService'; import classnames from 'classnames'; /** * Outer container for tabs */ class Tabs extends Component { static propTypes = { /** * Which in...
src/routes/Pokemon/components/FilterBox.js
farhan-repo/pokedex
import React from 'react' import './Bio.scss' const FilterBox = ({ onFilterChange }) => ( <div className='col-md-12'> <div className='space-bottom'> <div className='row'> <div className='col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3'> <input type='text' classNa...
dva-starter/src/index.js
wefine/reactjs-guide
// global window import { LocaleProvider } from 'antd'; import dva from 'dva'; import React from 'react'; import ReactDOM from 'react-dom'; import { addLocaleData, IntlProvider } from 'react-intl'; import './index.less'; /* eslint-disable global-require */ const language = (navigator.languages && navigator.languages[...
packages/ringcentral-widgets-docs/src/app/pages/Components/RegionSettingsAlert/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import RegionSettingsAlert from 'ringcentral-widgets/components/AlertRenderer/RegionSettingsAlert'; const props = {}; props.message = { message: 'test string', }; props.regionSettingsUrl = 'test string'; props.currentLocale = 'en-US'; /** * A example of `Regio...
test/unit/events-test.js
campinas-front-end/institucional
'use strict' import React from 'react' import { renderToString } from 'react-dom/server' import test from 'tape' import $ from 'whacko' test('test React DOM example', (assert) => { const html = renderToString(<div>Hey!</div>) assert.equal($(html).text(), 'Hey!') assert.end() })
src/components/App.js
NguyenManh94/circle-ci
import React from 'react' import { browserHistory, Router } from 'react-router' import { Provider } from 'react-redux' import PropTypes from 'prop-types' class App extends React.Component { static propTypes = { store: PropTypes.object.isRequired, routes: PropTypes.object.isRequired, } shouldComponentUpd...
app/javascript/mastodon/features/compose/components/privacy_dropdown.js
hugogameiro/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; import IconButton from '../../../components/icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spr...
client/src/pages/settings.js
BhaveshSGupta/FreeCodeCamp
import React from 'react'; import { Router } from '@reach/router'; import RedirectHome from '../components/RedirectHome'; import ShowSettings from '../client-only-routes/ShowSettings'; function Settings() { return ( <Router> <ShowSettings path='/settings' /> <RedirectHome default={true} /> </Rou...
client/components/FormSelect.js
dmolin/two-factor-auth
import React from 'react' const FormSelect = (props) => { const { input, label, type, id, placeholder, className, params, meta: { touched, error, warning }} = props const classes = `form-input ${className}` function onBlur(ev) { console.log("onblur", ev) input.onBlur() } return ( <div className...
src/AppBar.js
alexander183/wilks-web
import React from 'react'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; const WilksAppBar = () => ( <AppBar position="static"> <Toolbar> <Typography type="title" color="inherit"> Wilks Calcul...
app/scripts/charts/nodes-error.js
hustbill/network-verification-ui
import React from 'react'; import classnames from 'classnames'; export default function NodesError({children, faIconClass, hidden, mainClassName = 'nodes-chart-error'}) { const className = classnames(mainClassName, { hide: hidden }); const iconClassName = `fa ${faIconClass}...
src/History.js
Jae-Huh/react-calculator
import React from 'react'; import './History.css'; class History extends React.Component { render() { var historyList = this.props.history; if (historyList.length > 12) { historyList.shift(); } console.log(this.props.history) return ( <div className="History-window">{ this.pr...
styleguide/screens/Patterns/Cards/Cards.js
rdjpalmer/bloom
/* globals window: true */ import React, { Component } from 'react'; import cx from 'classnames'; import dedent from 'dedent'; import Specimen from '../../../components/Specimen/Specimen'; import { D, H, T, C } from '../../../components/Scaffold/Scaffold'; import Card from '../../../../components/Cards/Card/Card'; im...
website/irulez/src/components/admin_menu/inputs/CustomToolbarSelect.js
deklungel/iRulez
import React from 'react'; import IconButton from '@material-ui/core/IconButton'; import Tooltip from '@material-ui/core/Tooltip'; import CompareArrowsIcon from '@material-ui/icons/CompareArrows'; import IndeterminateCheckBoxIcon from '@material-ui/icons/IndeterminateCheckBox'; import BlockIcon from '@material-ui/icons...
src/hooks/useLoadingIndicator.js
sussol/mobile
/** * mSupply Mobile * Sustainable Solutions (NZ) Ltd. 2020 */ import React from 'react'; import { LoadingIndicatorContext } from '../context/LoadingIndicatorContext'; /** * Simple custom hook to return the runWithLoadingIndicator function. */ export const useLoadingIndicator = () => React.useContext(LoadingIndi...
components/toolbar/toolbarRow.js
react-material-design/react-material-design
import PropTypes from 'prop-types'; import React from 'react'; import '@material/toolbar/dist/mdc.toolbar.css'; const ToolbarRow = ({ centerElements, rightElements, leftElements, title }) => (<div className="mdc-toolbar__row"> <section className="mdc-toolbar__section mdc-toolbar__section--align-start"> ...
src/modules/Firebase/Logout/Logout.js
FrontendAwesome/air-potato
import React from 'react'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import firebase from 'firebase'; import { logout } from '../../../ducks/auth'; const auth = firebase.auth; export class Logout extends React.Component { logoutClick = async () => { const { dispatch }...
src/SplitButton.js
IveWong/react-bootstrap
/* eslint react/prop-types: [2, {ignore: "bsSize"}] */ /* BootstrapMixin contains `bsSize` type validation */ import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import DropdownStateMixin from './DropdownStateMixin'; import Button from './Button'; import Butto...
src/server.js
miketamis/locationPositioning
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './components/Html'; import locationService from './services/locationService'; import feathers from 'feath...
jenkins-design-language/src/js/components/material-ui/svg-icons/file/file-upload.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const FileFileUpload = (props) => ( <SvgIcon {...props}> <path d="M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z"/> </SvgIcon> ); FileFileUpload.displayName = 'FileFileUpload'; FileFileUpload.muiName = 'SvgIcon'; export default FileFileUpload;
react/src/components/Post.js
rumbleyam/morty-api
import React from 'react'; import {connect} from 'react-redux'; import Typography from 'material-ui/Typography'; import moment from 'moment'; import {withStyles} from 'material-ui/styles'; import MarkdownRenderer from './MarkdownRenderer'; import Paper from 'material-ui/Paper'; const styles = theme => ({ root : theme...
Examples/UIExplorer/js/ActivityIndicatorExample.js
imjerrybao/react-native
/** * Copyright (c) 2013-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * The examp...
src/components/ui/FullscreenLoader/index.js
meetfranz/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import injectSheet, { withTheme } from 'react-jss'; import classnames from 'classnames'; import Loader from '../Loader'; import styles from './styles'; export default @observer @withTheme @injectSheet...
src/routes/contact/Contact.js
joaquingatica/git-demo
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/js/components/item-children.js
UNECE/Classification-Explorer
import React from 'react'; import { sparqlConnect } from '../sparql/configure-sparql'; import { LOADED } from 'sparql-connect'; import Loading from './loading'; import { Link } from 'react-router'; import { uriToLink } from '../router-mapping'; import Export from './export.js'; function ItemChildren({ item, loaded, it...
src/website/app/demos/Flex/Flex/examples/justifyContent.js
mineral-ui/mineral-ui
/* @flow */ import styled from '@emotion/styled'; import React from 'react'; import { ignoreSsrWarning } from '../../../../../../library/utils/emotion'; import _Flex from '../../common/DemoFlex'; import FlexItem from '../../common/DemoFlexItem'; import _DemoLayout from '../../common/DemoLayout'; import type { StyledCom...
src/components/todo/todo.js
vinej/react-portal
import React, { Component } from 'react'; import { observer } from "mobx-react"; import { todoDone } from '../../actions/todo_actions'; import { pageDeleteRecord } from '../../actions/page_actions'; import { popupShow } from '../../actions/popup_actions'; import { dispatch } from '../../helpers/dispatcher'; import Todo...
node_modules/react-router/es6/Router.js
tacrow/tacrow
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/svg-icons/communication/message.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
src/lib/reactSafeRender.js
zoover/react-fluxible-utils
import React from 'react'; import safeRender from 'react-safe-render'; safeRender(React, { errorHandler: (err) => { console.error(`Error: ${err.displayName}.${err.method}() failed: ${err.error}`); }, }); export default React;
from-zero-to-vertical/src/components/atoms/PApp/PApp3.js
Muzietto/react-playground
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import TextField from '@material-ui/core/TextField'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; // cfr. https://codeburst.io/my-journey-to-make-styling-with-material-ui-right-6a44f7c...
client/modules/App/__tests__/App.spec.js
sharvit/my-blog-react
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
src/parser/druid/restoration/modules/features/Innervate.js
fyruna/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatNumber } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; c...
src/containers/LandingLayout/NotFound/NotFound.js
Venumteam/loafer-front
import React from 'react' import { Link } from 'react-router' export default function NotFound () { return ( <div className="abs-center wd-xl"> <div className="text-center mb-xl"> <div className="text-lg mb-lg">404</div> <p className="lead m0">We couldn't find this page.</p> <p>The ...
src/pages/projects/index.js
RadLikeWhoa/radlikewhoa.github.io
import React from 'react' import { graphql } from 'gatsby' import Layout from '../../components/layout' import SEO from '../../components/seo' import ProjectTeaser from '../../components/projectTeaser' import FilterButton from '../../components/filterButton' import { scrollToTop } from '../../components/footer' clas...
src/container/Home.js
iamdew/react-express-boilerplate
import React from 'react'; class Home extends React.Component { render() { return ( <div> Home page. </div> ) } } export default Home;
src/components/players/players-list-item.js
sunpietro/LeagueManager
import React, { Component } from 'react'; import '../../css/components/players/players-list-item.css'; class PlayerListItem extends Component { render() { const {player} = this.props; const imageUrl = !player.player_meta.image_url ? '/img/user-placeholder.png' : player.play...
src/svg-icons/image/timer.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimer = (props) => ( <SvgIcon {...props}> <path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
Craftodon/Craftodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import IconButton from '../../../components/icon_button'; import { changeComposeSensitivity } from '../../../actions/compose'; import Motion from '../../ui/util/optional_motion'; im...
mm-react/src/index.js
Ameobea/tickgrinder
import dva from 'dva'; import React from 'react'; import ReactDOM from 'react-dom'; import { LocaleProvider } from 'antd'; import enUS from 'antd/lib/locale-provider/en_US'; const GlobalState = require('./models/GlobalState'); const PlatformCommunication = require('./models/PlatformCommunication'); const Logging = re...
components/GoeeyRadio.js
brown-jones-industries/client
import React from 'react'; export default ({width, height, clicked, selected}) => { return ( <div className="radioButton"> <svg width={width || 50} height={height || 50} viewBox={"0 0 " + 125 + " " + 125} xmlns="http://www.w3.org/2000/svg" version="1.1" > ...
src/components/DescriptionList/DescriptionList.js
ascrutae/sky-walking-ui
/** * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may...
src/components/Map/index.js
Vizzuality/iadb
'use strict'; import './style.css'; import d3 from 'd3'; import $ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import helpers from '../../helpers'; class Map extends React.Component { constructor(props) { super(props); this.state = { codgov: props.codgov, date: pr...
themes/frontend/assets/reactjs/process/js/SearchCarDisplayController.js
fonea/velon
import React from 'react'; import Paper from 'material-ui/Paper'; import SearchCarDisplayMode from './SearchCarDisplayMode'; export default class SearchCarDisplayController extends React.Component { constructor(props) { super(props); this.displayMode = this.displayMode.bind(this); } displayMode(valu...
app/containers/NotFoundPage/index.js
DwightBe/Portfolio-2017
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
app/containers/HomePage/index.js
s0enke/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route */ import React from 'react'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import { createStructuredSelector } from 'reselect'; import { selectRepos, selectLoading, selectError, } from 'con...
src/routes.js
garden-aid/web-client
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import { Layout, Callback, Login, NotFound, UnderConstruction } from './components/app'; import Dashboard from './components/dashboard/Dashboard'; function requireAuth(store) { return (nextState, replace) => { const state = store.getSt...
node_modules/react-router/es6/RouteUtils.js
narmeen12/ecan
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; }; import React from 'react'; function isValidChild(object) { ...
modules/OAuth.js
marquesarthur/learning_react
// import React from 'react' // import { Nav, NavItem, NavDropdown, MenuItem, ProgressBar, } from 'react-bootstrap'; // import { OAuthSignInButton } from "redux-auth/bootstrap-theme"; // const html = ( // <div className="content"> // <OAuthSignInButton />; // </div> // ) // export default React.createClass({ // ...
src/app/utils/SlateEditor/Align.js
steemit/steemit.com
import React from 'react'; export default class Align extends React.Component { getAlignClass = () => { const { node } = this.props; switch (node.data.get('align')) { case 'text-right': return 'text-right'; case 'text-left': return 'text-left'...
clients/packages/admin-client/src/pages/admin/mobilizations/widgets/donation/container.js
nossas/bonde-client
import React from 'react'; import { connect } from 'react-redux'; import { Route } from 'react-router-dom'; import MobSelectors from '../../../../../mobrender/redux/selectors'; import { SettingsPageLayout, SettingsPageContentLayout, } from '../../../../../components/layout'; import { SettingsMenu } from '../../../...
openex-front/src/private/components/exercises/injects/InjectStatus.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as R from 'ramda'; import * as PropTypes from 'prop-types'; import withStyles from '@mui/styles/withStyles'; import Chip from '@mui/material/Chip'; import inject18n from '../../../../components/i18n'; const styles = () => ({ chip: { fontSize: 15, lineHeight:...
src/containers/LoginPage.js
nicknorm007/loginpage
import React from 'react'; import LoginForm from '../components/LoginForm'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import server from '../services/server'; class LoginPage extends React.Component { /** * Class constructor. */ constructor(props) { super(props); // set th...
src/main.js
zalando/taybl
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import Root from './components/Root.jsx' import { configure, getInitialState } from './store' import './styles/main.css' const initialState = getInitialState() const store = configure(initialState) const root = document....
app/account/ticket.js
Right-Men/Ironman
/** * Created by fandongyang on 2016/12/2. */ /** * Created by fandongyang on 2016/11/29. */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, Dimensions, ListView, Alert, TouchableHighlight, InteractionManager, } from 'react-native'; impo...
src/svg-icons/action/perm-camera-mic.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermCameraMic = (props) => ( <SvgIcon {...props}> <path d="M20 5h-3.17L15 3H9L7.17 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7v-2.09c-2.83-.48-5-2.94-5-5.91h2c0 2.21 1.79 4 4 4s4-1.79 4-4h2c0 2.97-2.17 5.43-5 ...
src/svg-icons/action/payment.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPayment = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V6c0-1.11-.89-2-2-2zm0 14H4v-6h16v6zm0-10H4V6h16v2z"/> </SvgIcon> ); ActionPay...
client/pages/Home/Solution/Provide/Provide.js
b3j0f/lechangement
import React, { Component } from 'react'; import './Provide.css'; class Provide extends Component { render() { return ( <div className="provide col s12 m6"> <h4>Vous avez des solutions ?</h4> <h5>Proposez-les pour ...</h5> <ul> <li>Gagner en visib...
console-ui/src/layouts/Header.js
alibaba/nacos
/* * Copyright 1999-2018 Alibaba Group Holding 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 applica...
developers.diem.com/src/pages/newsletter_form.js
libra/libra
import React from 'react'; import countryCodes from '@theme/ContactForm/country-codes'; import FormContainer from '@theme/ContactForm/form-container'; import Layout from '@theme/Layout'; const formFields = [{ items: [{ id: 'email', label: 'Email', type: 'email', required: true }, { id: 'intere...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/local-convenience-store.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsLocalConvenienceStore = (props) => ( <SvgIcon {...props}> <path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/> </SvgIcon> ); MapsLocalConvenienceStore.displayName = 'MapsLocalConvenience...
app/containers/TodoApp/components/TodoList.js
codazen/react-relay-graphql-starter-kit
/* @flow */ import React from 'react'; import Relay from 'react-relay'; import TodoItem from './TodoItem'; type TodoEdge = { node: { id: string, }, }; type Props = { todos: { edges: Array<TodoEdge>, // eslint-disable-line }, user: Object }; /** * Todo list component * Parent component: TodoApp ...
src/svg-icons/image/camera-front.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
app/modules/pages/components/DemoPage/index.js
anton-drobot/frontend-starter
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import { Helmet } from 'react-helmet'; import { bem } from 'app/libs/bem'; import DefaultLayout from 'app/modules/layout/components/DefaultLayout'; import Icon from 'app/modules/core/components/Icon'; import Grid from 'app/modules/layo...
pages/index.js
ua-oira/react-super-responsive-table
/* eslint-disable */ import React from 'react'; import Head from 'next/head'; import { LiveProvider, LiveEditor, LiveError, LivePreview } from 'react-live'; import { Table, Thead, Tbody, Tr, Th, Td } from '../src/index'; import '../src/SuperResponsiveTableStyle.css'; class App extends React.Component { render() { ...
src/tutorial-index.js
lambdablocks/blocks-front-react
import { parse } from 'query-string' import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import Tutorial from './components/Tutorial' import configureStore from './store/configureStore' const store = configureStore() const params = parse(location.search) const step = pars...
website/src/widgets/landing.js
explosion/spaCy
import React from 'react' import PropTypes from 'prop-types' import { StaticQuery, graphql } from 'gatsby' import { LandingHeader, LandingTitle, LandingSubtitle, LandingGrid, LandingCard, LandingCol, LandingDemo, LandingBannerGrid, LandingBanner, } from '../components/landing' impor...
src/svg-icons/social/location-city.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialLocationCity = (props) => ( <SvgIcon {...props}> <path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h...
vertex_ui/src/components/Timeline/TimelineItemBody.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import classNames from 'classnames'; import classes from './Timeline.scss'; const TimelineItemBody = props => { const { className, children, ...otherProps } = props; const timelineItemBodyClass = classNames(className, classes.TimelineItemBody); ...
client/src/index.js
Tapiiri/ChatBest
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
src/scripts/app/redux/containers/CarsContainer.js
vorobiovkirill/react-shopping-cart
import { addItemToCart, paginations, removeItemFromCart } from '../actions/actionsTypes'; import Cars from '../components/Cars'; import PropTypes from 'prop-types'; import React from 'react'; import _ from 'lodash'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; const mapStateToPro...
app/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
jefferchang/reactApp
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
examples/examples/BarChartStackedExample.react.js
ericgio/r-d3
import * as d3 from 'd3'; import React from 'react'; import {Axis, Bar, Chart} from '../../src'; import {getInnerHeight, getInnerWidth, translate} from '../../src/utils'; import stateData from '../data/statePopulations.csv'; /* example-start */ /** * Adapted from https://bl.ocks.org/mbostock/3886208 */ class BarCh...
src/svg-icons/maps/local-shipping.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
src/components/modal.js
camboio/ibis
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter as Router } from 'react-router-dom'; import { store } from '../index'; import { Provider } from 'react-redux'; class Modal extends React.Component { componentDidMount(){ this.modalTarget = document.createElement('div'); ...
app.js
trungtin/staticPage
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import 'babel/polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import Location from '....
cmd/elwinator/src/components/NewParamView.js
foolusion/choices
import React from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import NavSection from './NavSection'; import { namespaceURL, experimentURL } from '../urls'; import NewParam from './NewParam'; import { getExperiment } from '../reducers/experiments'; const NewParamView = ({ names...
src/components/common/navigation/Pages.js
justinkahrs/portfolio
import React from 'react'; import Work from '../../work/Work'; import Contact from '../../contact/Contact'; import About from '../../about/About'; import Music from '../../music'; export default { about: <About />, contact: <Contact />, music: <Music />, work: <Work />, };
app/javascript/mastodon/components/column_back_button_slim.js
yukimochi/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import ColumnBackButton from './column_back_button'; import Icon from 'mastodon/components/icon'; export default class ColumnBackButtonSlim extends ColumnBackButton { render () { return ( <div className='column-back-button--slim'> ...
src/index.js
joelprz/tudorVillage
/*eslint-disable import/default */ import 'babel-polyfill'; import React from 'react'; import {render} from 'react-dom'; import configureStore from './store/configureStore'; import {Provider} from 'react-redux'; import {Router, browserHistory} from 'react-router'; import routes from './routes'; import {loadSubjects} fr...
js/src/dapps/tokenreg/Inputs/Text/container.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
src/components/Share/index.js
korabh/quran.com-frontend
import React from 'react'; import { ShareButtons, generateShareIcon } from 'react-share'; import * as customPropTypes from 'customPropTypes'; const styles = require('./style.scss'); const { FacebookShareButton, TwitterShareButton } = ShareButtons; const FacebookIcon = generateShareIcon('facebook'); const TwitterIcon ...
client/src/index.js
atkien/demo-react
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { browserHistory, Router } from 'react-router'; import routes from './routes'; import configureStore from './configureStore.dev'; import './index.css'; const store = configureStore(); //console.log(store.getStat...
dva/wd2/src/routes/User/Register1Page.js
imuntil/React
import React from 'react' import { connect } from 'dva' import { Link } from 'dva/router' import { delay } from '@/utils/cts' import { getCode, isExist } from '@/services' import { Toast } from 'antd-mobile' import UInput from '@/components/Form/UInput' import UCode from '@/components/Form/UCode' import InputItem from ...
frontend/src/components/status/status.js
desihub/qlf
import React, { Component } from 'react'; import Card from '@material-ui/core/Card'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; const styles = { container: { flex: 1, display: 'flex', }, cardsItens: { flex: 1, padding: 5, margin: '1vh 1vw 1vh 1v...
node_modules/react-router/es6/Link.js
nolanelena/MyProjectSite-
'use strict'; 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) {...
app/javascript/mastodon/components/dropdown_menu.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
openex-front/src/private/components/exercises/lessons/ObjectiveForm.js
Luatix/OpenEx
import React, { Component } from 'react'; import * as PropTypes from 'prop-types'; import { Form } from 'react-final-form'; import Button from '@mui/material/Button'; import { TextField } from '../../../../components/TextField'; import inject18n from '../../../../components/i18n'; class ObjectiveForm extends Component...
example/examples/SetNativePropsOverlays.js
wannyk/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity, Dimensions, } from 'react-native'; import MapView, { Circle, Polygon, Polyline, ProviderPropType, } from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const ...
client/app/components/RestaurantPage/Common/RestaurantImgs.js
yanhao-li/menu-plus
import React from 'react'; import { Card, CardMedia, CardTitle } from 'material-ui/Card'; class RestaurantImgs extends React.PureComponent { render() { return ( <Card style={{ height: 250, width: 250, float: 'right', margin: 30 }}> <CardMedia overlay={<CardTitle title="more images"> </Car...
app/scenes/Info/components/Organiser/index.js
Thinkmill/react-conf-app
// @flow import React from 'react'; import { PixelRatio, StyleSheet, Text, TouchableHighlight, View, } from 'react-native'; import Avatar from '../../../../components/Avatar'; import theme from '../../../../theme'; type Props = { avatar: string, name: string, onPress: () => mixed, summary: string, }...
components/editor/TagSelectModal.js
postor/react-builder
import React from 'react' import { Modal, Button } from 'react-bootstrap' import Select2 from 'react-select' import Head from 'next/head' import PromiseModal from '../modal/PromiseModal' import tags from '../../static/editor/tags' import ComponentSelect from './ComponentSelect' export default class TagSelectModal ext...
src/app/resultado.js
hugotacito/tabelaebtt
import React from 'react'; import {Row, Col} from 'react-bootstrap'; import {calcular} from './calculador'; class ResultadoLinha extends React.Component { render() { let label = ''; let formatted = ''; let value = ''; const data = this.props.formData; if (data.ch && data.ano && data.classe && da...
src/components/ListItemComponent.js
tuomashatakka/tool-bar-gui
'use babel' import React from 'react' import prop from 'prop-types' const ListItem = item => { let remove = item.remove || (()=>{}) let onClick = item.action ? () => item.action(item) : null let onMouseDown = item.onMouseDown return <li className='list-item' onMouseDown={onMouseDown} on...
Rosa_Madeira/Revendedor/src/components/common/Card.js
victorditadi/IQApp
import React from 'react'; import { View } from 'react-native'; const Card = (props) => { return ( <View style={styles.containerStyle}> {props.children} </View> ); }; const styles = { containerStyle: { // borderWidth: 1, // borderRadius: 2, // borderColor: 'gray', // borderBottomWi...
app/components/Bank.js
seentaoInternetOrganization/reactDemo
import React from 'react'; import {Link} from 'react-router'; import BankStore from '../stores/BankStore' import BankActions from '../actions/BankActions'; import {first, without, findWhere} from 'underscore'; class Bank extends React.Component { constructor(props) { super(props); this.state = BankStore.getS...
src/index.js
nicholviton/dynamodb-example
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );