path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
client/views/setupWizard/SideBar.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import SideBar from './SideBar'; export default { title: 'components/setupWizard/SideBar', component: SideBar, }; export const _default = () => ( <SideBar logoSrc='https://open.rocket.chat/images/logo/logo.svg' steps={[ { step: 1, title: 'Define the problem', }, { ...
imports/components/tusEquipos.js
nvasquez97/ElGol
'use strict'; import { Meteor } from 'meteor/meteor'; import React, { Component } from 'react'; import { Redirect } from 'react-router-dom'; import { createContainer } from 'meteor/react-meteor-data'; import TusJugadores from './tusJugadores.js'; import Equipo from './equipo.js'; import { Usuarios } from '../api/usuari...
WasteApp/js/components/loaders/ProgressBar.ios.js
airien/workbits
import React from 'react'; import { ProgressViewIOS } from 'react-native'; import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent'; export default class ProgressBarNB extends NativeBaseComponent { render() { const getColor = () => { if (this.props.color) { return this.p...
fixtures/packaging/systemjs-builder/prod/input.js
mhhegazy/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
docs/app/Examples/elements/Icon/Variations/IconExampleFlipped.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleFlipped = () => ( <div> <Icon flipped='horizontally' name='cloud' /> <Icon flipped='vertically' name='cloud' /> </div> ) export default IconExampleFlipped
src/svg-icons/maps/local-drink.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalDrink = (props) => ( <SvgIcon {...props}> <path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6....
docs/src/components/doc-sidebar.js
aldanor/nuclear-js
import React from 'react' import { BASE_URL } from '../globals' export default React.createClass({ //propTypes: { //navStructure: React.PropTypes.objectOf(React.PropTypes.shape({ //})) //}, render() { return ( <div className="docs-page--sidebar col l2"> <h3>{this.props.sectionTitle}</h...
client/src/index.js
the-gilsons/rubicon-app
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import redux from 'redux'; import {Provider} from 'react-redux'; import configStore from './store/configStore'; import App from './components/app'; import Home from './components/home'; const store = configStore(); ReactDOM.render( ...
src/containers/DatePicker.js
vpodolyan/documenter
import React from 'react'; import { connect } from 'react-redux' import { updateDocument } from '../actions' import { localeUtils } from '../utils/i18n' import DayPicker from 'react-day-picker' import '../../node_modules/react-day-picker/lib/style.css' class DatePicker extends React.Component { constructor() { ...
gatsby-strapi-tutorial/cms/plugins/email/admin/src/containers/App/index.js
strapi/strapi-examples
/** * * 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 from 'react'; import { Switch, Route } from 'react-router-dom'; import pluginId from '../../pluginId'; // Containers import ConfigPage from '.....
src/shared/components/MenuButton.js
devteamreims/4me.react
import React from 'react'; import MenuItem from 'material-ui/MenuItem'; import NotificationIcon from './NotificationIcon'; const styles = { selectedItem: { backgroundColor: 'rgba(255,255,255,0.2)', }, }; export const OrganButton = ({ isActive, transition, secondary, title, notifications, }) => { ...
resources/apps/frontend/src/components/Form/Select/PackageSelect.js
johndavedecano/PHPLaravelGymManagementSystem
import React from 'react'; import AsyncSelect from 'react-select/lib/Async'; import Select from 'react-select'; import {loadPackages, showPackage} from 'requests/packages'; export default class PackageSelect extends React.Component { state = { defaultValue: null, defaultOptions: [], }; static defaultPr...
src/Application/ModuleLoaderTest.js
enbock/Time-Tracker
import React from 'react'; export default class ModuleLoaderTest extends React.Component { render() { return React.createElement('div', null, 'module example'); } }
src/modules/users/components/Profile/Profile.js
cltk/cltk_frontend
import React from 'react'; import { Field, reduxForm } from 'redux-form'; import ProfileNav from '../ProfileNav'; import { required, maxLength } from '../../../../lib/formHelpers'; import './Profile.css'; const maxLength200 = maxLength(200); const maxLength2100 = maxLength(2100); class Profile extends React.Compon...
packages/wix-style-react/src/TimeTable/test/TimeTable.spec.js
wix/wix-style-react
import React from 'react'; import { createRendererWithUniDriver, cleanup } from '../../../test/utils/unit'; import TimeTable from '../TimeTable'; import { timeTablePrivateDriverFactory } from './TimeTable.private.uni.driver'; describe('TimeTable', () => { const render = createRendererWithUniDriver(timeTablePrivateD...
docs/src/GettingStartedPage.js
asiniy/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
src/index.js
flexiform/flexiform-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...
lib/components/Bootstrap.js
hanford/filepizza
import React from 'react' export default class Bootstrap extends React.Component { render() { return <script id="bootstrap" type="application/json" dangerouslySetInnerHTML={{ __html: this.props.data}} /> } }
src/client/components/UserProfileWidget/UserProfileWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import { CircleImageWidget } from '../index' const UserProfileWidget = ({ username, displayName, email, facebookId = 0, googleId = 0, picture }) => { return ( <div className="user-profile-widget"> <div className...
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/index.js
NeutroniumCore/Neutronium
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import { ready } from './mobxManager'; import 'bootstrap/dist/css/bootstrap.css'; ready.then(res => { ReactDOM.render(<App viewModel={res.vm.ViewModel}/>, document.getElementById('root'), res.ready); })
components/Icons/IconThoughts.js
nickroberts404/meadowlab
import React from 'react' export default function IconThoughts (props) { if(props.color){ return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 298 257"> <title>thoughtjar-icon-color</title> <g fill="none" fillRule="evenodd"> <rect width="298" height="106" fill="#F7DB64" fillOpacity=".2" rx="...
example/index.android.js
starlight36/react-native-map-linking
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import MapLinking from 'react-native-map-linking'; class Example extends Component { rend...
App.js
dyesseyumba/git-point
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import styled from 'styled-components'; import { AppRegistry, AsyncStorage, LayoutAnimation, StatusBar, Platform, } from 'react-native'; import { persistStore } from 'redux-persist'; import createEncryptor from 'redux-persist-tr...
src/components/Footer.js
Journey316/resume
import React, { Component } from 'react'; class Footer extends React.Component { render() { return ( <div>Footer</div> ); } } export default Footer;
docs/src/app/components/pages/components/Dialog/ExampleCustomWidth.js
verdan/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; const customContentStyle = { width: '100%', maxWidth: 'none', }; /** * The dialog width has been set to occupy the full width of browser throug...
source/component/listview/authorPostRow.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, Text, Image, TouchableHighlight } from 'react-native'; import _ from 'lodash'; import moment from 'moment'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import Config from '../../config'; import { decodeHTML, getBloggerAvatar } from '../../...
src/mui/list/DatagridBody.js
matteolc/admin-on-rest
import React from 'react'; import PropTypes from 'prop-types'; import shouldUpdate from 'recompose/shouldUpdate'; import { TableBody, TableRow } from 'material-ui/Table'; import DatagridCell from './DatagridCell'; const DatagridBody = ({ resource, children, ids, data, basePath, styles, rowStyle, options, rowOptions, ....
examples/react-native/components/Error.js
aksonov/react-native-router-flux
import React from 'react'; import {View, Text, StyleSheet, Animated, Dimensions} from 'react-native'; import Button from 'react-native-button'; import {Actions} from 'react-native-router-flux'; const {height: deviceHeight} = Dimensions.get('window'); const styles = StyleSheet.create({ container: { position: 'ab...
src/components/common/svg-icons/editor/format-color-text.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorText = (props) => ( <SvgIcon {...props}> <path fillOpacity=".36" d="M0 20h24v4H0z"/><path d="M11 3L5.5 17h2.25l1.12-3h6.25l1.12 3h2.25L13 3h-2zm-1.38 9L12 5.67 14.38 12H9.62z"/> </SvgIcon> );...
src/components/DataEntry/PickerView/components/PickerColumn.js
Aus0049/react-component
/** * Created by Aus on 2017/5/25. */ import React from 'react' import ZScroller from 'zscroller' import classNames from 'classnames' import '../style/picker-column.scss' // picker-view 中的列 class PickerColumn extends React.Component { constructor (props) { super(props); this.state = {}; } ...
client/util/react-intl-test-helper.js
eantler/google
/** * Components using the react-intl module require access to the intl context. * This is not available when mounting single components in Enzyme. * These helper functions aim to address that and wrap a valid, * English-locale intl context around them. */ import React from 'react'; import { IntlProvider, intlSha...
src/components/CalendarTree.js
jacobmischka/ics-merger
/* @flow */ import React, { Component } from 'react'; import type { Node, ElementType } from 'react'; import type { CalendarLike, CalendarTreeDef } from '../utils.js'; type Props = { calendars: {[string]: CalendarLike}, label?: Node, calendarTree?: CalendarTreeDef, render: (string, CalendarLike) => Node, keyPre...
src/shared/containers/PerformancePage/Performance/Performance-test.js
suranartnc/react-redux-universal-starter-kit
import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import sinon from 'sinon'; import Performance from 'shared/containers/PerformancePage/Performance'; import Article from 'shared/containers/PerformancePage/Article'; function setup(Component) { const articles = [ ...
ajax/libs/react-instantsearch/4.1.0-beta.3/Dom.js
BenjaminVanRyseghem/cdnjs
/*! ReactInstantSearch 4.1.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
src/components/Project/Index.js
iamraphson/mernmap
/** * Created by Raphson on 10/6/16. */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Link, hashHistory } from 'react-router'; import ProjectActions from '../../actions/ProjectActions'; import ProjectStore from '../../stores/ProjectStore'; import NavBar from '../NavBar/index'; i...
app/containers/Spa/index.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import { compose } from 'redux'; import { connect } from 'react-redux'; import { createStructuredSelector } from 'reselect'; import injectSaga from '../../utils/injectSaga'; import injectReducer from '../../utils/injectReducer'; import { shouldFetch } from...
src/components/Post/Tags/Tags.js
wpioneer/gatsby-starter-lumen
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import styles from './Tags.module.scss'; type Props = { tags: string[], tagSlugs: string[] }; const Tags = ({ tags, tagSlugs }: Props) => ( <div className={styles['tags']}> <ul className={styles['tags__list']}> {tagSlugs && tagS...
src/modules/editor/components/popovers/tooltip/Tooltip/Tooltip.js
CtrHellenicStudies/Commentary
import React from 'react'; import { connect } from 'react-redux'; // redux import editorActions from '../../../../actions'; // components import LinkTextInput from '../LinkTextInput'; import LemmaInput from '../LemmaInput'; import TooltipButtons from '../TooltipButtons'; import './Tooltip.css'; class Tooltip exten...
test/specs/util/LogUtilsSpec.js
thoqbk/recharts
import React from 'react'; import { expect } from 'chai'; import { warn } from '../../../src/util/LogUtils'; describe('LogUtils', () => { it('warn when format is null', () => { warn(true); }); it('warn when condition is false', () => { warn(false, 'format'); warn(false); warn(false, 'format wid...
src/components/Home/HomePage.js
AhmedJavaboy/volumental-react-app
import React from 'react'; import Header from '../Common/Header'; // Since this component is simple and static, there's no parent container for it. class HomePage extends React.Component { constructor(props) { super(props); this.state = { objcolor: 0xff0000 }; this.changeColor = this.changeColor.bind(thi...
sb-admin-seed-react/src/vendor/recharts/demo/component/PolarAngleAxis.js
Gigasz/tropical-bears
import React from 'react'; import {Surface, PolarAngleAxis} from 'recharts'; const ticks = [ { value: '100', angle: 20 }, { value: '200', angle: 80 }, { value: '300', angle: 120 }, { value: '400', angle: 180 }, { value: '500', angle: 240 }, { value: '600', angle: 290 }, ]; export default React.createClass...
components/EditProfile.js
TopOfTheFlops/client-side
import React from 'react' import editUserProfile from '../api/editUserProfile' import callCloudinary from '../widget' import Header from './Header' import Nav from './Nav' function EditProfile({state, dispatch}) { function editProfile (e) { e.preventDefault() var userInfo = { password: document.getEle...
manager/js/components/common/CardSection.js
dunkvalio/ReactNative
import React from 'react'; import { View } from 'react-native'; const CardSection = (props) => ( <View style={[styles.containerStyle, props.style]}> {props.children} </View> ); const styles = { containerStyle: { borderBottomWidth: 0, padding: 5, backgroundColor: '#fff', justifyContent: 'flex...
src/components/ui/Home/index.js
Starotitorov/online-notes
import React from 'react'; import { Link } from 'react-router'; import './index.scss'; const Home = () => <div className="site-wrapper"> <div className="site-wrapper-inner"> <div className="cover-container"> <div className="masthead clearfix"> <div className=...
src/components/ServerError.js
sedlareg/react-test
import React, { Component } from 'react'; const styles = { root: { textAlign: 'center' }, alert: { fontSize: 80, fontWeight: 'bold', color: '#e9ab2d' } }; class ServerError extends Component { render () { return ( <div style={styles.root}> <div style={styles.alert}>&#9888; </...
src/PageHeader.js
HPate-Riptide/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; class PageHeader extends React.Component { render() { const { className, children, ...props } = this.props; const [bsProps, elementProps] = splitBsProps(props); c...
js/src/views/Status/components/AutoComplete/AutoComplete.spec.js
jesuscript/parity
// Copyright 2015, 2016 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 la...
src/components/Dropdown/DropdownMenuWrapper.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; class DropdownMenuWrapper extends React.Component { static propTypes = { children: PropTypes.node, listenEvents: PropTypes.arrayOf(PropTypes.string), onClickOutside: PropTypes.func.isRequired }; static defaultProps = { listenEvents: ...
js/pages/tola_management_pages/country/components/edit_disaggregations.js
mercycorps/TolaActivity
import React from 'react' import { observer } from "mobx-react" import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd'; import classNames from 'classnames' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import HelpPopover from "../../../../components/helpPopover"; import { toJS } ...
src/Tooltip.js
collinwu/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const Tooltip = React.createClass({ mixins: [BootstrapMixin], propTypes: { /** * An html id attribute, necessary for accessibility * @...
src/svg-icons/hardware/laptop-windows.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopWindows = (props) => ( <SvgIcon {...props}> <path d="M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z"/> </SvgIcon> ); Hardwar...
tests/lib/rules/vars-on-top.js
dguo/eslint
/** * @fileoverview Tests for vars-on-top rule. * @author Danny Fritz * @author Gyandeep Singh * @copyright 2014 Danny Fritz. All rights reserved. * @copyright 2014 Gyandeep Singh. All rights reserved. */ "use strict"; //------------------------------------------------------------------------------ // Requiremen...
site/components/Cover.js
ntdb/react-dnd
import React from 'react'; import './Cover.less'; export default class Cover { render() { return ( <div className="Cover"> <div className="Cover-header"> <p className="Cover-description"> Drag and Drop for React </p> </div> </div> ); } }
src/components/forms.js
DarklyLabs/LaserWeb4
import React from 'react'; import ReactDOM from 'react-dom'; import { connect } from 'react-redux'; import Toggle from "react-toggle"; import 'react-toggle/style.css'; import '../styles/forms.css'; import Select from 'react-select' import { Tooltip, Overlay, OverlayTrigger, FormControl, InputGroup, ControlLabel, Form...
packages/react-scripts/fixtures/kitchensink/src/features/env/ShellEnvVariables.js
timlogemann/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; export default () => ( <span id="feature-shell-env-variables"> {process.env.REACT_APP_SHELL_ENV_MESSAG...
shared/tests/reducers/components.spec.js
kizzlebot/music_dev
import expect from 'expect'; import TestUtils from 'react-addons-test-utils'; import React from 'react'; import expectJSX from 'expect-jsx'; import { Link } from 'react-router'; import PostListItem from '../../components/Posts/PostListItem'; import PostCreateView from '../../components/Posts/PostCreateView'; expect.ex...
blueocean-material-icons/src/js/components/svg-icons/communication/call-split.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationCallSplit = (props) => ( <SvgIcon {...props}> <path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/> </SvgIcon> ); CommunicationCallSplit.displayName = 'Communication...
examples/todos-with-undo/containers/AddTodo.js
edge/redux
import React from 'react' import { connect } from 'react-redux' import { addTodo } from '../actions' let AddTodo = ({ dispatch }) => { let input return ( <div> <input ref={node => { input = node }} /> <button onClick={() => { dispatch(addTodo(input.value)) input.value...
examples/all-possible-containers/src/components/Modal.js
gaearon/react-hot-loader
import React from 'react'; import ReactDOM from 'react-dom'; const modalRootId = 'modal-root'; let modalRoot = document.getElementById(modalRootId); if (!modalRoot) { modalRoot = document.createElement('div'); modalRoot.id = modalRootId; document.body.appendChild(modalRoot); } const styles = { modal: { po...
codegraph-viewer/frontend/stories/viewer/artifacts.js
dnfeitosa/codegraph
import React from 'react'; import Colors from '../../app/components/colors'; const Node = ({ description, className }) => ( <div style={{display: 'inline-block', textAlign: 'center'}}> <div>{description}</div> <svg width="150px" height="50px"> <g className="nodes" transform="translate(...
client/src/components/auth/forgot_password.js
mikelearning91/seeme-starter
import React, { Component } from 'react'; import { getForgotPasswordToken } from '../../actions/auth'; class ForgotPassword extends Component { static contextTypes = { router: React.PropTypes.object, } componentWillMount() { if (this.props.authenticated) { this.context.router.push('/dashboard'); ...
test/immutable-field-component-spec.js
nikitka/react-redux-form
import React from 'react'; import { assert } from 'chai'; import Immutable from 'immutable'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import TestUtils from 'react-dom/test-utils'; import { actions, formReducer } from '../src'; import { modelReducer as immutableMod...
website/src/pages/index.js
suninformation/ymate-platform-v2
import React from 'react'; import clsx from 'clsx'; import Translate from '@docusaurus/Translate'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import styles from './index.module.css'; import HomepageFeatures from '../compo...
src/App.js
esseswann/react-tetris
import React from 'react' import { types, typeKeys, randomType } from './types' import { randomColor } from './colors' import Block from './Block' import { forEach, map, mapValues, keys, find, max, min, sum, uniqueId, toNumber, me...
src/js/components/ui/DateInput/DateInput.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import styles from './DateInput.scss'; import InfiniteCalendar from 'react-infinite-calendar'; import { INFINITE_CALENDAR_LOCALE_ES, INFINITE_CALENDAR_LOCALE_EN, INFINITE_CALENDAR_THEME, } from '../../../constants/InfiniteCalendar...
examples/js/basic/demo.js
neelvadgama-hailo/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import BasicTable from './basic-table'; import SingleColumnTable from './single-column-table'; import HoverStripedTable from './hover-striped-table'; import BorderlessTable from './borderless-table'; import ScrollTable from './scroll-table'; import LargeColumnTable fro...
src/client/app/shared/components/upload/dropzone.component.js
mapkiwiz/sectorisation
// based on https://github.com/paramaggarwal/react-dropzone, adds image preview // based on http://stackoverflow.com/questions/28750489/upload-file-component-with-reactjs import React from 'react'; import _ from 'lodash'; export class DropZone extends React.Component { fileInput; static propTypes = { onDrop:...
js/components/button/index.js
bengaara/simbapp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Container, Header, Title, Content, Button, Icon, Left, Right, Body, Text, List, ListItem } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { actions } from 'react-native-navigation-redux-helpers'; ...
src/parser/priest/shadow/modules/spells/VampiricEmbrace.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import ItemHealingDone from 'interface/others/ItemHealingDone'; import DamageTracker from...
src/containers/Home/Home.js
daixianceng/react-app-example
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; import { Media } from 'reactstrap'; import Pager from './../../components/Pager/Pager'; import { fetchPosts } from './../../actions/posts'; import config from './../../config'; import './Home.css'; ...
packages/react/src/components/organisms/Header/utility-items.js
massgov/mayflower
import React from 'react'; import propTypes from 'prop-types'; import GoogleTranslateElement from 'MayflowerReactButtons/GoogleTranslateElement'; import DecorativeLink from 'MayflowerReactLinks/DecorativeLink'; import IconBuilding from 'MayflowerReactBase/Icon/IconBuilding'; import IconLogin from 'MayflowerReactBase/Ic...
cycleweb-react/src/App.js
joequant/cycle-detector
import React, { Component } from 'react'; import {Button, FormControl, FormGroup, ControlLabel, Form} from 'react-bootstrap'; import logo from './logo.svg'; import blank from './blank.png'; import './App.css'; import request from 'request'; import url from 'url'; import 'whatwg-fetch'; function CycleLine(props) { ...
console-ui/src/pages/AuthorityControl/UserManagement/NewUser.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...
src/data-fields/read-only-text-field.js
apconic/aos-forms
import React from 'react'; import TextDataField from './text-data-field'; export default props => ( <TextDataField {...props} disabled /> );
app/components/ContourList/ContourList.js
zhrkian/SolarDataApp
import s from './ContourList.css' import React from 'react' import ContourEditModal from '../ContourEditModal/ContourEditModal' import ContourListItem from '../ContourListItem/ContourListItem' class ContourList extends React.Component { state = {} onOpenContourEditModal = contour => this.setState({ contourEditModa...
app/components/login-signup/FormInputButton.js
adrilo/headek
import React, { Component } from 'react'; export default class FormInputButton extends Component { render() { let inputContainerStyle = { lineHeight: '1.5em' }; return ( <p style={inputContainerStyle}> <button type={this.props.t...
react-lottie-network-aware-loading/src/components/CreditLink/index.js
GoogleChromeLabs/adaptive-loading
/* * Copyright 2019 Google LLC * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
docs/src/app/components/pages/components/Paper/ExampleRounded.js
rscnt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleRounded = () => ( <div> <Paper style={style} zDepth={1} rounded={false} /> <Paper style={style} zDepth={2} round...
webpack/scenes/Subscriptions/Details/SubscriptionDetailAssociations.js
ares/katello
import React from 'react'; import PropTypes from 'prop-types'; import { Table } from 'react-bootstrap'; import { translate as __ } from 'foremanReact/common/I18n'; import { urlWithSearch } from 'foremanReact/common/urlHelpers'; const SubscriptionDetailAssociations = ({ subscriptionDetails }) => { const searchQuery =...
app/components/Form/FieldSelect.js
vollmerr/app-hub
import React from 'react'; import PropTypes from 'prop-types'; import { ComboBox } from 'office-ui-fabric-react/lib/ComboBox'; import styled from 'styled-components'; import { metaProp, inputProp } from 'utils/propTypes'; import { isEmptyText } from 'utils/validate'; import theme from 'utils/theme'; import Field from...
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
liqk2014/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
src/photos/ducks/albums/index.spec.js
cozy/cozy-files-v3
import React from 'react' import { shallow } from 'enzyme' import { AlbumPhotosWithLoader } from './index' describe('Album view', () => { const AlbumPhotos = AlbumPhotosWithLoader({ children: null }) it('should show a loader', () => { const component = shallow(<AlbumPhotos data={[]} fetchStatus="loading" />) ...
test/specs/polar/PolarRadiusAxisSpec.js
thoqbk/recharts
import React from 'react'; import { expect } from 'chai'; import { Surface, PolarRadiusAxis } from 'recharts'; import { mount, render } from 'enzyme'; describe('<PolarRadiusAxis />', () => { const ticks = [ { value: 10, radius: 50 }, { value: 1000, radius: 100 }, { value: 20, radius: 150 }, { value: ...
modules/__tests__/transitionHooks-test.js
littlefoot32/react-router
/*eslint-env mocha */ /*eslint react/prop-types: 0*/ import expect, { spyOn } from 'expect' import React from 'react' import createHistory from 'history/lib/createMemoryHistory' import execSteps from './execSteps' import Router from '../Router' describe('When a router enters a branch', function () { var node, Dashbo...
Inspector/js/inspector.js
Jonahss/WebDriverAgent
/** * Copyright (c) 2015-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. */ import Rea...
js/components/icon/index.js
YeisonGomez/RNAmanda
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Left, Body, Right, Grid, Col, Row } from 'native-base'; import { openDrawer } from '../../actions/drawer'; i...
common/views/Components/Forms/Forms.js
sauleddy/HomePortal
import React, { Component } from 'react'; import { Button, ButtonDropdown, DropdownToggle, DropdownMenu, DropdownItem } from 'reactstrap'; class Forms extends Component { constructor(props) { super(props); this.state = {}; } render() { return ( <div className="animated fadeIn"> <div c...
tethys-ui-react/src/main/frontend/components/benchmark/TableRow.js
fridayy/tethys
/** * Created by bnjm on 1/29/17. */ import React from 'react'; import './Benchmark.css'; const TableRow = (props) => { return ( <tr> <td>{props.data.id}</td> <td>{props.data.label}</td> <td>{props.data.label}</td> <td>{props.data.la...
effcalculator/frontend/assets/js/routes/detectors/components/SingleInput.js
alvcarmona/efficiencycalculatorweb
/** * Created by alvarocbasanez on 31/07/17. */ import React from 'react'; const SingleInput = (props) => ( <div className="form-group"> <label className="form-label">{props.title}</label> <input className="form-input" name={props.name} type={props.inputType} ...
app/containers/LanguageProvider/index.js
swmerko/bindee_frontend
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
app/components/Img/index.js
czy0729/react-alumni
/** * AppImg 项目统一图片组件 * @version 170208 1.0 * @version 170301 1.1 [+] `empty` 支持默认图片 */ 'use strict'; import React from 'react'; import classNames from 'classnames'; import './index.less'; const prefixCls = 'components__img'; const AppImg = (props) => { const { src, size, empty, style, className, ...other } ...
packages/pix-web/src/ui/layout/row.js
madjam002/pix
import React from 'react' import styled from 'styled-components' const RowStyle = styled.section` display: flex; flex-direction: row; flex-wrap: wrap; ${props => props.alignContent ? `align-content: ${props.alignContent};` : null } ${props => props.alignItems ? `align-items: ${props.alignItems}...
src/packages/@ncigdc/uikit/SparkMeter.js
NCI-GDC/portal-ui
import React from 'react'; export default ({ value, width = 30, max = 30, style, ...props }) => ( <div style={{ width, height: 8, backgroundColor: `rgb(209, 209, 209)`, margin: '0 5px', borderRadius: 2, display: 'inline-block', pointerEvents: 'none', ...style, }...
src/js/components/meter/Arc.js
davrodpin/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React from 'react'; import { baseUnit, baseDimension, classRoot, translateEndAngle, arcCommands, polarToCartesian } from './utils'; import Graphic from './Graphic'; import CSSClassnames from '../../utils/CSSClassnames'; const CLASS_ROOT = cla...
src/svg-icons/file/create-new-folder.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileCreateNewFolder = (props) => ( <SvgIcon {...props}> <path d="M20 6h-8l-2-2H4c-1.11 0-1.99.89-1.99 2L2 18c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-1 8h-3v3h-2v-3h-3v-2h3V9h2v3h3v2z"/> </Svg...
public/js/components/feedback/feedback.react.js
rajikaimal/Coupley
import React from 'react'; import CardText from 'material-ui/lib/card/card-text'; import Card from 'material-ui/lib/card/card'; import Dialog from 'material-ui/lib/dialog'; import Snackbar from 'material-ui/lib/snackbar'; import FlatButton from 'material-ui/lib/flat-button'; import TextField from 'material-ui/lib/text-...
node_modules/react-bootstrap/es/BreadcrumbItem.js
saltypaul/SnipTodo
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
src/main.js
wwwiiilll/drinkstat
import React from 'react' import ReactDOM from 'react-dom' import injectTapEventPlugin from 'react-tap-event-plugin' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import makeRoutes from './rou...
docs/src/Root.js
yyssc/ssc-grid
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; const Root = createReactClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'i...
__tests__/components/button.js
builderscon/nanp
/* eslint-env jest */ import React from 'react' import Button from '../../src/components/button' // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer' it('renders correctly', () => { const tree = renderer.create( <Button title='button sample' onPress...