path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
frontend/src/components/siteComponents/DesktopSettingsUI/index.js
webrecorder/webrecorder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { Button, ControlLabel, FormControl, FormGroup, Panel, ProgressBar } from 'react-bootstrap'; import { appendFlashVersion } from 'helpers/utils'; import Modal from 'components/Modal'...
packages/react-error-overlay/src/containers/StackFrame.js
ConnectedHomes/create-react-web-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import CodeBlock from './StackFrameCodeBlock'; import { getPrettyURL } from '../ut...
packages/reactor-tests/src/tests/rel/RelMenu.js
markbrocato/extjs-reactor
import React from 'react'; import { Container, Button, Menu, MenuItem } from '@extjs/ext-react'; export default function RelMenu() { return ( <Container> <div>This tests that the menu config is automatically set when a Menu appears inside a Button. The test should verify that the button has a m...
test/integration/with-router/pages/_app.js
BlancheXu/test
import App from 'next/app' import React from 'react' import HeaderNav from '../components/header-nav' export default class MyApp extends App { static async getInitialProps ({ Component, router, ctx }) { let pageProps = {} if (Component.getInitialProps) { pageProps = await Component.getInitialProps(ctx...
app/javascript/mastodon/features/compose/components/poll_form.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import IconButton from 'mastodon/components/icon_butt...
src/components/UndoRemoveAlert.js
danesparza/centralconfig-ui
// React import React, { Component } from 'react'; // The API utils import CentralConfigAPIUtils from '../utils/CentralConfigAPIUtils'; // Actions import ConfigActions from '../actions/ConfigActions'; // The stores import RemovedConfigStore from '../stores/RemovedConfigStore'; class UndoRemoveAlert extends Compone...
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js
ganquan0910/actor-platform
import React from 'react'; import classNames from 'classnames'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import AvatarItem from 'components/common/AvatarItem.react'; class RecentSectionItem extends React.Component { static propTypes = { di...
scripts/components/Header.js
BarukhOr/cuddly-giggle-reactjs
/* Header */ import React from 'react'; import autobind from 'autobind-decorator'; class Header extends React.Component{ render(){ return( <header className="top"> <h1>Catch <span className="ofThe"> <span className="of">of</span> <span className="the">the</span> ...
src/routes/home/Home.js
TodoWishlist/TodoWishlist
import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import styles from './Home.css'; import HomeImageHero from './HomeImageHero/HomeImageHero'; import HomeStory from './HomeStory/HomeStory'; import HomeBottomSignup from './HomeBottomSignup/HomeBottomSignup'; clas...
docs/src/examples/elements/Button/Types/index.js
Semantic-Org/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection' import ShorthandExample from 'docs/src/components/ComponentDoc/ShorthandExample' const ButtonTypesExamples = () => ( <ExampleSection...
src/container/RootContainer.js
jerryshew/test-redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configStore from '../store/configStore'; import UserTableContainer from './UserTableContainer'; import Counter from './Counter'; import DevTools from './DevTools'; export default () => ( <Provider store={configStore}> ...
src/components/Spendings.js
FrozenTear7/student-life-organizer
import React from 'react' import { connect } from 'react-redux' import { updateSpendings, subtractSpendings } from '../actions/spendingsActions' import renderField from './renderField' import { reduxForm, Field, reset } from 'redux-form' import moment from 'moment' import {required, positiveNumber} from '../utils/valid...
src/Scrollbars/defaultRenderElements.js
zxlin/react-custom-scrollbars
import React from 'react'; /* eslint-disable react/prop-types */ export function renderViewDefault({ scrollbarWidth, ...props }) { // eslint-disable-line no-unused-vars return <div {...props}/>; } export function renderTrackHorizontalDefault({ style, ...props }) { const finalStyle = { ...style, ...
src/NavItem.js
rapilabs/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
src/svg-icons/navigation/arrow-drop-down-circle.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowDropDownCircle = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 12l-4-4h8l-4 4z"/> </SvgIcon> ); NavigationArrowDropDownCircle =...
src/js/modules/danmu/UI/danmu.js
zacyu/bilibili-helper
/** * Author: DrowsyFlesh * Create: 2018/10/22 * Description: */ import _ from 'lodash'; import $ from 'jquery'; import PropTypes from 'prop-types'; import React from 'react'; import apis from '../apis.js'; import Url from 'url-parse'; import styled from 'styled-components'; import {Button} from 'Components/common/...
src/components/common/Select.js
nbkhope/componentes-controlados
import React from 'react'; // <Select // name="pais" // value={this.state.pais} // onChange={this.onPaisChange} // options={paisOptions} // /> const Select = ({ name, value, onChange, options }) => { const optionChoices = options.map(option => ( <option key={option.id} value={option.value}> {option...
src/notebook/components/cell/display-area/richest-mime.js
0u812/nteract
// @flow import React from 'react'; import { List as ImmutableList, Map as ImmutableMap } from 'immutable'; import { richestMimetype, transforms, displayOrder } from '../../transforms'; type Props = { displayOrder: ImmutableList<string>, transforms: ImmutableMap<string, any>, bundle: ImmutableMap<string, any>, ...
src/main.react.js
matthias-reis/react-xi
import React from 'react'; export default class Xi extends React.Component { render() { return ( <div> <section className="card card-primary card-inverse"> <div className="card-block"> <h2 className="card-title">Core Actions</h2> <p className="card-text"...
internals/templates/containers/App/index.js
thuantrinh/math_is_hard
/** * * 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) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
src/esm/components/graphics/icons/hourglass-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var HourglassIcon = function HourglassIcon(_ref) { var color...
frontend/app/components/Contributor/states/create.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' import FVButton from 'components/FVButton' import File from 'components/Form/Common/File' import Text from 'components/Form/Common/Text' import Textarea from 'components/Form/Common/Textarea' import StringHelpers from 'common/StringHelpers' import Contribut...
src/routes/account/Admin/List.js
pmg1989/dva-admin
import React from 'react' import PropTypes from 'prop-types' import { Modal, Menu } from 'antd' import { DataTable, DropMenu } from 'components' import { UPDATE, STATUS, DELETE } from 'constants/options' import styles from './List.less' const confirm = Modal.confirm function List ({ accountAdmin: { list, pa...
src/component/Tabs.js
BristolPound/cyclos-mobile-3-TownPound
import React from 'react' import { View } from 'react-native' import ScrollableTabView from 'react-native-scrollable-tab-view' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { navigateToTab, hideModal, closeConfirmation, modalState, modalOpened } from '../store/reducer/navigatio...
src/Parser/HolyPaladin/Modules/Traits/SacredDawn.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; import Combatants from 'Parser/Core/Modules...
docs/src/client-render.js
seekinternational/seek-asia-style-guide
// Polyfills import 'babel-polyfill'; import 'core-js/fn/array/fill'; import 'core-js/fn/array/includes'; import 'core-js/fn/array/from'; import 'core-js/fn/string/ends-with'; import 'core-js/fn/string/includes'; import 'core-js/fn/string/starts-with'; import 'core-js/fn/object/get-own-property-symbols'; import React ...
packages/spec/integration/lambda/index.js
xing/hops
import { render, withConfig } from 'hops'; import React from 'react'; import { Helmet } from 'react-helmet-async'; const App = withConfig(({ config }) => ( <> <Helmet> <link rel="icon" href="data:;base64,iVBORw0KGgo=" /> </Helmet> <h1>hello {config.subject}</h1> </> )); export default render(<Ap...
src/routes/shows/index.js
ma489/listify
import React from 'react'; import Shows from './Shows'; var radioService = require('../../lib/radio-service'); export default { path: '/shows/:stationId', async action({ path, render, params }) { var stationId = params.stationId; var shows = await radioService.getShows(stationId); return <Shows shows...
src/index.js
GTyexing/react-start-kit
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; import './index.css'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
app/containers/HomePage/index.js
vonkanehoffen/wp-react
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 and remove * the l...
src/svg-icons/image/flash-auto.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlashAuto = (props) => ( <SvgIcon {...props}> <path d="M3 2v12h3v9l7-12H9l4-9H3zm16 0h-2l-3.2 9h1.9l.7-2h3.2l.7 2h1.9L19 2zm-2.15 5.65L18 4l1.15 3.65h-2.3z"/> </SvgIcon> ); ImageFlashAuto = pure(ImageFla...
cerberus-dashboard/src/components/SecureFileForm/SecureFileForm.js
Nike-Inc/cerberus-management-service
/* * Copyright (c) 2020 Nike, inc. * * 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 ...
actor-apps/app-web/src/app/components/activity/UserProfile.react.js
bradparks/actor-platform___im_client_cross_platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import PeerStore from 'stores/PeerStore'; import DialogStore from 'stores/DialogStore'; import AvatarItem from...
ReactApp/src/Cards/Program/SundayProgram.js
hoh/FolkMarsinne
import React, { Component } from 'react'; import {blue100} from 'material-ui/styles/colors'; import {DayProgram} from './ProgramComponents' import {BandDescriptions} from './BandDescriptions' const sundayPlan = [ {hour: '', 'groups': []}, {hour: '11h00', 'groups':[false, {name: 'Vendée...
app/scripts/components/OrderForm.js
DDDas/reactjs-datagrid-widgets
import React from 'react'; import InputField from './InputField'; import OrderFluxStore from '../stores/flux/OrderFluxStore'; class OrderForm extends React.Component { constructor(props) { super(props); } render() { return ( <div> <div> <label>Order Id</label> ...
examples/todos/index.js
vizidrix/cqjs
import React from 'react' import ReactDOM from 'react-dom' import Todo from './components/Todo' import { System, View } from 'cqjs' import * as DOMAINDEF from './domains/Todo' const SYSTEM = new System(DOMAINDEF.DOMAIN) const rootEl = document.getElementById('root') function render() { ReactDOM.render( <Todo...
src/icons/VideocamOffIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class VideocamOffIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M42 13l-8 8v-7c0-1.1-.9-2-2-2H19.64L42 34.36V13zM6.55 4L4 6.55 9.45 12H8c-1.1 0-2 .9-2 2v20c0 1.1.9 2 ...
vertex_ui/src/components/Sidebar/components/Menu/Menu.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import { Link } from 'react-router'; import _ from 'underscore'; import classNames from 'classnames'; import velocity from 'velocity-animate'; import { SIDEBAR_STYLE_SLIM, SIDEBAR_STYLE_DEFAULT, SIDEBAR_STYLE_BIGICONS, } from 'layouts/AdminLayout...
src/pages/UserApp.js
CurtisMBSmith/web-frontend-proto
import React from 'react'; import UserBox from '../containers/UserBox'; import SideBar from '../containers/SideBar'; import { createTask } from '../actions'; const UserApp = () => { return ( <div> <SideBar /> <div className="main-panel" > <UserBox /> </div> </div> )}; export default UserApp;
src/routes/message/index.js
nambawan/g-old
import React from 'react'; import Layout from '../../components/Layout'; import { getSessionUser } from '../../reducers'; import updateNotificationStatus from '../notificationHelper'; import { loadMessage } from '../../actions/message'; import MessageContainer from './MessageContainer'; import { createRedirectLink } f...
src/layouts/CoreLayout/CoreLayout.js
shengnian/webpack2-react-redux-starter
import React from 'react' import Header from '../../components/Header' import './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='out-wrapper'> <Header /> <div className='row-fluid'> {children} </div> </div> ) CoreLayout.propTypes = {...
client/packages/core-dashboard-worona/src/dashboard/loading-dashboard-theme-worona/components/Theme/index.js
worona/worona-dashboard
import React from 'react'; import Footer from '../Footer'; import styles from './style.css'; export const Theme = ({ children }) => ( <div className={styles.app}> <div></div> <div className={styles.main}> {children} </div> <div className={styles.footer}> <Footer /> </div> </div> ); ...
assets/src/js/index.js
imperodesign/clever-pages-admin
'use strict' import 'babel-polyfill' import $ from 'jquery' import 'bootstrap' import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { ReduxRouter } from 'redux-router' import configureStore from './store/configureStore' const store = configureStore() render( <P...
app/components/LandingPage.js
jaimemarijke/carbon-zero-ui
import React from 'react'; import styles from './LandingPage.scss'; const LandingPage = () => ( <div className={styles.banner}> <div className={styles.headline}> <b>Zero</b> your carbon impact. </div> <div> <div className={styles.totalFootprint}> <div className={styles.d...
src/containers/devTools.js
ndxm/nd-react-scaffold
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q'> <Lo...
src/components/HeaderBar/CurrentDJ.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; function CurrentDJ({ className, dj }) { const { t } = useTranslator(); return ( <div className={className}> {t('booth.currentDJ', { user: dj.username })} </div> ); } CurrentDJ.p...
examples/huge-apps/routes/Profile/components/Profile.js
opichals/react-router
import React from 'react'; class Profile extends React.Component { render () { return ( <div> <h2>Profile</h2> </div> ); } } export default Profile;
demo/containers/forms.js
nbonamy/react-native-app-components
import React, { Component } from 'react'; import { StyleSheet, Alert, ScrollView, View, Text } from 'react-native'; import { theme, Input, Picker, PickerItem } from 'react-native-app-components'; export default class Forms extends Component { constructor(props) { super(props); this.state = { country:...
src/svg-icons/av/web-asset.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
docs/app/Examples/modules/Popup/Variations/PopupExampleOffset.js
shengnian/shengnian-ui-react
import React from 'react' import { Icon, Popup } from 'shengnian-ui-react' const PopupExampleOffset = () => ( <div> <Popup trigger={<Icon size='large' name='heart' circular />} content='Way off to the left' offset={50} position='left center' /> <Popup trigger={<Icon size='la...
packages/blog/client/index.js
matthias-reis/woodward
import React from 'react'; import jss from 'jss'; const styles = { hallo: { fontSize: 120, color: 'tomatored' } }; const { classes } = jss.createStyleSheet(styles).attach(); export default () => <h1 className={classes.hallo}>Hallo Woodward!</h1>;
envkey-react/src/components/shared/confirm_action.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" export default function({confirmText, onConfirm, onCancel, cancelLabel="Cancel", confirmLabel="Confirm"}) { return h.div(".confirm-action", [...
index.js
cuiyueshuai/react-native-radio-form
/** * react-native-radio-form * radio component for react native, it works on iOS and Android * https://github.com/cuiyueshuai/react-native-radio-form.git */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, Text, ScrollView, TouchableWithoutFeedback, Dimensions ...
src/components/heading/heading.js
bokuweb/re-bulma
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../../../build/styles'; import { getCallbacks } from '../../helper/helper'; export default class Heading extends Component { static propTypes = { style: PropTypes.object, children: PropTypes.any, className: ...
webpack/scenes/RedHatRepositories/components/SearchBar.js
ares/katello
/* eslint-disable import/no-extraneous-dependencies */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { Form, FormGroup } from 'react-bootstrap'; import { selectOrganizationProducts } from '../../../redux/OrganizationProducts/OrganizationP...
dispatch/static/manager/src/js/components/inputs/selects/SubsectionSelectInput.js
ubyssey/dispatch
import React from 'react' import { connect } from 'react-redux' import ItemSelectInput from './ItemSelectInput' import subsectionsActions from '../../../actions/SubsectionsActions' class SubsectionSelectInputComponent extends React.Component { listSubsections(query) { let queryObj = {} if (query) { ...
examples/demo-react-native/storybook/stories/CenterView/index.js
infinitered/reactotron
import React from 'react' import PropTypes from 'prop-types' import { View } from 'react-native' import style from './style' export default function CenterView (props) { return <View style={style.main}>{props.children}</View> } CenterView.defaultProps = { children: null } CenterView.propTypes = { children: Pro...
app/javascript/mastodon/components/permalink.js
SerCom-KC/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
src/CollapsibleMixin.js
leozdgao/react-bootstrap
import React from 'react'; import TransitionEvents from './utils/TransitionEvents'; const CollapsibleMixin = { propTypes: { defaultExpanded: React.PropTypes.bool, expanded: React.PropTypes.bool }, getInitialState(){ let defaultExpanded = this.props.defaultExpanded != null ? this.props.default...
src/components/Auth/Auth.js
wasong/hackr_matchr
import React from 'react' import { browserHistory } from 'react-router' import RaisedButton from 'material-ui/RaisedButton' import { AppBar } from 'material-ui' import css from './Auth.css' const Auth = (props) => { const { auth } = props.route const logOut = () => { auth.logout() browserHistory.push('/')...
app/components/ChatSiderBox/index.js
medevelopment/UMA
import React from 'react'; import { Link, browserHistory } from 'react-router'; import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import styled from 'styled-components'; import firebase from 'firebase'; import LoadingIndica...
server/sonar-web/src/main/js/apps/background-tasks/components/BackgroundTasksApp.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info 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, o...
src/svg-icons/file/cloud-done.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCloudDone = (props) => ( <SvgIcon {...props}> <path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96...
src/components/form/preview_item.js
n7best/react-weui
//1.0.0 components import React from 'react'; import PropTypes from 'prop-types'; import classNames from '../../utils/classnames'; /** * Preview Item for all purpose usage * */ const PreviewItem = (props) => { const { className, label, value, ...others } = props; const cls = classNames({ 'weui-for...
ui/src/views/Main.js
Ion-Petcu/StockTrainer
import React from 'react' import Header from '../components/Header' import NewsContainer from '../components/NewsContainer' import Portfolio from '../components/Portfolio' import StockChart from '../components/StockChart' import ApiRequest from '../utils/ApiRequest' import ApiStream from '../utils/ApiStream' import cst...
src/js/components/TextInput/stories/WithTags.js
grommet/grommet
import React from 'react'; import { FormClose } from 'grommet-icons'; import { Box, Button, Keyboard, Text, TextInput } from 'grommet'; const allSuggestions = ['sony', 'sonar', 'foo', 'bar']; const Tag = ({ children, onRemove, ...rest }) => { const tag = ( <Box direction="row" align="center" ...
src/client/pages/repositories/Repositories.js
developersdo/opensource
import React from 'react' import { Route, Redirect, Switch } from 'react-router-dom' import New from '~/pages/new-repositories/NewRepositories' import Popular from '~/pages/popular-repositories/PopularRepositories' import ByLanguage from '~/pages/repositories-by-language/RepositoriesByLanguage' import SubNavLink from '...
app/components/EditAdmins/index.js
dijahmac/JobWeasel-FrontEnd
/** * * EditAdmins * */ import React from 'react'; import './style.css'; import './styleM.css'; export default class EditAdmins extends React.PureComponent { constructor () { super (), this.state = { users: [], notification: "", } } componentWillMount() { this.getUsers(); } ge...
src/js/containers/Search.js
slavapavlutin/pavlutin-node
import React from 'react'; import Icon from 'react-fontawesome'; import { connect } from 'react-redux'; import { changeSearchTerm } from '../store/searchTerm/actions'; class Search extends React.Component { constructor() { super(); this.state = { inFocus: false }; this.handleFocus = this.handleFocus.bind...
src/routes.js
twreporter/twreporter-react
import Article from './containers/Article' import dataLoaders from './data-loaders/index' import FallbackPage from './containers/ServiceWorkerFallbackPage' import get from 'lodash/get' import Loadable from 'react-loadable' import PropTypes from 'prop-types' import React from 'react' import routesConst from './constants...
app/components/PrimaryBlock/PrimaryBlock.js
klpdotorg/tada-frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; import isEmpty from 'lodash.isempty'; import { Spinner } from '../../containers/common'; import { EditBlock } from '../../containers/PrimaryBlock'; import { CreateCluster } from '../../containers/PrimaryCluster'; const...
src/svg-icons/social/sentiment-very-satisfied.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialSentimentVerySatisfied = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm1...
src/server.js
yogakurniawan/cerebral-app
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import compression from 'compression'; import httpProxy from 'http-proxy'; import cookieParser from 'cookie-parser'; import path from 'path'; import createStore from './redux/create'; import...
src/components/RequestExecutor/index.js
evolving-cowboys/queensman
import React from 'react'; import './index.css'; const RequestExecutor = ({ enabled, loading, request, response, changeRequest, rpcCall, }) => ( <div className='RequestExecutor'> <div className='RequestExecutor-request'> <textarea className={` RequestExecutor-requestField ...
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/containers/AuthContainer.js
advantys/workflowgen-templates
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { AuthComponent as Auth } from '../components'; import { ActionCreators as UserActionCreators } from '../redux/user'; class AuthContainer extends Component { constructor (props) { ...
src/index.js
carlmanaster/stripes
import React from 'react' import ReactDOM from 'react-dom' import { browserHistory } from 'react-router' import Routes from './routes' import './index.css' ReactDOM.render( <Routes history={browserHistory} />, document.getElementById('root') )
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/complex/tabs.js
boquiabierto/wherever-content
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { branch, renderNothing, withHandlers } from 'recompose'; /** * The internal dependencies. */ import ComplexTab from 'fields/components/complex/tab'; /** * Render the navigation ...
src/icons/AndroidRadioButtonOn.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class AndroidRadioButtonOn extends React.Component { render() { if(this.props.bare) { return <g> <g id="Icon_21_"> <g> <path d="M256,152c-57.2,0-104,46.8-104,104s46.8,104,104,104s104-46.8,104-104S313.2,152,256,1...
src/containers/DevTools.js
Outc4sted/AlgorithmAtelier
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools(<LogMonitor />);
app/pages/Items/Item/Item.js
altiore/webpack_config_example
import React from 'react' import PropTypes from 'prop-types' const ItemPage = ({ styles, match }) => ( <div className={styles.wrapper}> This is a page: {match.path} </div> ) ItemPage.propTypes = { styles: PropTypes.object, match: PropTypes.shape({ path: PropTypes.string.isRequired, }).isRequired, } ...
src/svg-icons/folder.js
und3fined/material-ui
/* eslint-disable */ import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; let Folder = (props) => ( <SvgIcon {...props}> <path d="M10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8l-2-2z"/> </SvgIcon> ); Folder = pure(Folder); Folde...
assets/jqwidgets/jqwidgets-react/react_jqxmenu.js
juannelisalde/holter
/* jQWidgets v4.5.4 (2017-June) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export default class JqxMenu extends React.Component { componentDidMount() { let options = this.manageAttributes(); this.createCom...
examples/slorber-scalable-frontend/src/randomGifPairPair/RandomGifPairPair.js
ioof-holdings/redux-subspace
import React from 'react' import { SubspaceProvider } from 'react-redux-subspace' import { RandomGifPair } from '../randomGifPair' const RandomGifPairPair = () => ( <div> <SubspaceProvider namespace='randomGifPair1'> <RandomGifPair /> </SubspaceProvider> <SubspaceProvider namespace='randomGifPair2'...
src/parser/druid/feral/modules/azeritetraits/WildFleshrending.js
FaideWW/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { calculateAzeriteEffects } from 'common/stats'; import HIT_TYPES from 'game/HIT_TYPES'; import RACES from 'game/RACES'; import Analyzer from 'parser/core/Analyz...
js/components/home/categoryBar.js
hz47/expensesApp
import React, { Component } from 'react'; import { Animated, TouchableOpacity,Dimensions, PropTypes,StyleSheet, TouchableHighlight } from 'react-native'; import { View, Content, Text} from 'native-base'; import styles from './styles'; class CategoryBarChart extends Component { constructor(props) { su...
docs/app/Examples/elements/Button/Variations/ButtonExampleSize.js
koenvg/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleSize = () => ( <div> <Button size='mini'> Mini </Button> <Button size='tiny'> Tiny </Button> <Button size='small'> Small </Button> <Button size='medium'> Medium </Button> ...
src/svg-icons/maps/local-pizza.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPizza = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2...
src/components/footer.js
fiveinfinity/ic-crowdsale
import React from 'react'; import styles from '../stylesheets/footer.css'; export const Footer = (props) => { return ( <div className={styles.footer}> <div className={styles.content}> <i className="fa fa-copyright" aria-hidden="true"></i>I'M CONVENIENCED, LLC. All rights Reserved. </div> <div className...
pootle/static/js/admin/app.js
r-o-b-b-i-e/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 'imports?Backbone=>require("backbone")!backbone-mov...
src/ModalTitle.js
thealjey/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class ModalTitle extends React.Component { render() { return ( <h4 {...this.props} className={classNames(this.props.className, this.props.modalClassName)}> { this.props.children } </h4> ); } } ModalTitle.pr...
app/containers/App.js
mitchconquer/erb-sqlite-example
// @flow import React, { Component } from 'react'; import type { Children } from 'react'; export default class App extends Component { props: { children: Children }; render() { return ( <div> {this.props.children} </div> ); } }
templates/rubix/rails/rails-example/src/main.js
jeffthemaximum/jeffline
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './routes'; import render, { setRoutes } from '@sketchpixy/rubix/lib/others/router'; import { isBrowser } from '@sketchpixy/rubix'; if (isBrowser()) { render(routes, () => { console.log('Completed rendering!'); }); if (module.h...
components/RedditPost.js
turntwogg/final-round
import React from 'react'; import { MdLaunch } from 'react-icons/md'; import Typography from './Typography'; const RedditPost = ({ post }) => ( <div className="reddit-post"> <div className="reddit-post-content"> <Typography is="h4" className="reddit-post-title" style={{ margin: 0 }}> <a ...
src/js/page.js
banmunongtian/react-es6-webpack
import React from 'react'; import ReactDom from 'react-dom'; import '../css/img-styles.css'; export default class Hellos extends React.Component { constructor(props) { super(props) this.state = { id: 1 } } componentWillMont() { } render() { ...
src/EditorTest.js
builden/react-electron-boilerplate
import React, { Component } from 'react'; import MonacoContainer from './MonacoContainer'; import { Fill, Box, Flex } from './ui'; const supportLang = ['javascript', 'lua']; const themes = ['vs-dark', 'vs']; class EditorTest extends Component { state = { language: 'lua', theme: 'vs-dark', }; renderHeade...
src/client.js
PitayaX/pitayax-web
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill' import React from 'react' import ReactDOM from 'react-dom' import createHistory from 'history/lib/createBrowserHistory' import createStore from './redux/create' import ApiClient from './help...
examples/todomvc/index.js
iam4x/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
client/admin/layout/Full/Full.js
bigwisu/josspoll
import React, { Component } from 'react'; import Header from '../../components/Header/'; import Sidebar from '../../components/Sidebar/'; import Aside from '../../components/Aside/'; import Footer from '../../components/Footer/'; // import Breadcrumbs from 'react-breadcrumbs'; class Full extends Component { render(...
src/client/depcy-injection/node-modules.js
boris91/hype
import React from 'react'; import ReactDom from 'react-dom'; import * as ReactRedux from 'react-redux'; import * as ReactRouter from 'react-router'; import * as Redux from 'redux'; import ReduxThunk from 'redux-thunk'; import ReduxLogger from 'redux-logger'; export default { React, ReactDom, ReactRedux, ReactRoute...
test/fixtures/proton/index.js
develar/electron-builder
import React, { Component } from 'react'; import { render, Window, App, Button } from 'proton-native'; class Example extends Component { render() { return ( <App> <Window title="Example" size={{w: 300, h: 300}} menuBar={false}> <Button stretchy={false} onClick={() => console.log('Hello')...