path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
pages/table.js
ieugen/reactjs-universal-demo
"use strict"; import React from 'react' import Layout from './layout' class ComunityList extends React.Component { renderRows(data) { return data.map((row, index) => { return ( <tr key={index}> <td>{index + 1}</td> <td className="show-for...
node_modules/react-native-material-dropdown/node_modules/react-native-material-textfield/src/components/line/test.js
RahulDesai92/PHR
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Line from '.'; /* eslint-env jest */ [{ type: 'solid', color: 'black' }, { type: 'dotted', color: 'grey' }] .forEach(({ type, color }) => { it(`renders ${type} ${color} line`, () => { let line = renderer ...
packages/react/src/components/ListBox/ListBox.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import { settings } from 'carbon-components'; imp...
src/styles/themer/__tests__/withTheme.spec.js
instacart/Snacks
import React from 'react' import renderer from 'react-test-renderer' import withTheme from '../withTheme' import { defaultTheme, themePropTypes } from '../utils' // eslint-disable-next-line react/prefer-stateless-function class Test extends React.Component { static propTypes = { snacksTheme: themePropTypes } rend...
src/components/dialogs/DialogRenderables.js
ello/webapp
/* eslint-disable react/no-danger */ import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router' import ImageAsset from '../../components/assets/ImageAsset' import { DismissButton } from '../../components/buttons/Buttons' import { dialogStyle as baseDialogStyle } from './Dialog' imp...
src/App.js
yqy980210/verse-ink
import React from 'react'; import {ContentState, convertFromRaw, convertToRaw, Editor, EditorState, Entity, SelectionState} from 'draft-js'; import {BlockRender, renderSelectionChange, renderSelectionChange1} from "./Render"; import {InlineDecorator} from './inline/decorator'; import InlineStyleMap from './inline/style...
Realization/frontend/czechidm-app/test/layout/App-test.js
bcvsolutions/CzechIdMng
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import ShallowRenderer from 'react-test-renderer/shallow'; import Immutable from 'immutable'; import chai, { expect } from 'chai'; import dirtyChai from 'dirty-chai'; // import { Basic, Advanced } from 'czechidm-core'; import { App } from '../../s...
src/App.js
mschaeffner/react-getting-started
import React, { Component } from 'react'; import Heading from './Heading'; import UserItem from './UserItem'; import Searchbar from './Searchbar'; class App extends Component { constructor(props) { super(props); this.state = { users: null, keyword: '' }; } componentDidMount() { fetc...
node_modules/react-bootstrap/es/HelpBlock.js
ASIX-ALS/asix-final-project-frontend
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 ...
imports/startup/client/index.js
hwillson/shopify-hosted-payments
/* global document */ import { render } from 'react-dom'; import renderRoutes from './routes'; render(renderRoutes(), document.getElementById('app')); /* import React from 'react'; import { render } from 'react-dom'; import { Meteor } from 'meteor/meteor'; import PaymentContainer from '../../ui/containers/PaymentC...
tpl-plugin/components/Plugin.js
synthesis-js/react-synthesis
// Comment.js import React from 'react'; class Comment extends React.Component { constructor(props) { super(props); this.state = { postId: this.props.postData._id, comments: [], input: '' } this.getCommentsFromDB = this.getCommentsFromDB.bind(this); } componentDidMount() { // i...
showcase/plot/stacked-vertical-bar-chart.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/svg-icons/places/all-inclusive.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesAllInclusive = (props) => ( <SvgIcon {...props}> <path d="M18.6 6.62c-1.44 0-2.8.56-3.77 1.53L12 10.66 10.48 12h.01L7.8 14.39c-.64.64-1.49.99-2.4.99-1.87 0-3.39-1.51-3.39-3.38S3.53 8.62 5.4 8.62c.91 0 1.7...
example/src/Screens/Docs/shared/Browser/index.js
maisano/react-router-transition
import React, { Component } from 'react'; import { MemoryRouter as Router } from 'react-router-dom'; import BrowserWrapper from './Wrapper'; import BrowserTopBar from './TopBar'; import BrowserViewport from './Viewport'; const Browser = ({ children, defaultPathname }) => ( <Router initialEntries={[defaultPathname]}...
example/src/scroll.js
manufont/react-swipeable-bottom-sheet
import React from 'react'; import ReactDOM from 'react-dom'; import SwipeableBottomSheet from 'react-swipeable-bottom-sheet'; class App extends React.Component { render () { const styles={ title:{ backgroundColor: '#00bcd4', padding: '16px 0', boxSizing: 'border-box', color: 'white', minHeig...
src/svg-icons/maps/local-phone.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPhone = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-...
examples/huge-apps/components/Dashboard.js
tkirda/react-router
import React from 'react' import { Link } from 'react-router' class Dashboard extends React.Component { render() { const { courses } = this.props return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of you...
docs/src/app/components/pages/components/Slider/ExampleDisabled.js
pradel/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; const SliderExampleDisabled = () => ( <div> <Slider disabled={true} /> <Slider disabled={true} value={0.5} /> <Slider disabled={true} value={1} /> </div> ); export default SliderExampleDisabled;
react-ui/src/shared/Layout.js
EdwinJow/truthindata
import React, { Component } from 'react'; import '../css/main.css'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import { Link } from 'react-router' import injectTapEventPlugin...
website/src/components/explorables/season1/scorigami/index.js
jwngr/notreda.me
import _ from 'lodash'; import React from 'react'; import {Helmet} from 'react-helmet'; import ScorigamiChart from './ScorigamiChart'; import NewsletterSignupForm from '../../../common/NewsletterSignupForm'; import { P, Stat, Image, Title, Byline, Caption, Heading, Divider, Wrapper, Subtitle, St...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/rc-tabs/es/SwipeableInkTabBar.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import React from 'react'; import createReactClass from 'create-react-class'; import classnames from 'classnames'; import InkTabBarMixin from './InkTabBarMixin'; import SwipeableTabBarMixin from './...
src/svg-icons/content/remove.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemove = (props) => ( <SvgIcon {...props}> <path d="M19 13H5v-2h14v2z"/> </SvgIcon> ); ContentRemove = pure(ContentRemove); ContentRemove.displayName = 'ContentRemove'; ContentRemove.muiName = 'SvgIcon...
fields/types/datetime/DatetimeField.js
suryagh/keystone
import DateInput from '../../components/DateInput'; import Field from '../Field'; import moment from 'moment'; import React from 'react'; import { Button, FormField, FormInput, FormNote, InputGroup } from 'elemental'; module.exports = Field.create({ displayName: 'DatetimeField', focusTargetRef: 'dateInput', // d...
src/page/search/search-header/mixin/index.js
KleeGroup/focus-components
import React from 'react'; import actionBuilder from 'focus-core/search/action-builder'; import { advancedSearchStore } from 'focus-core/search/built-in-store'; import { component as SearchBar } from '../../../..//search/search-bar'; import referenceBehaviour from '../../../..//common/form/mixin/reference-behaviour';...
app/ReadingGank.js
AndryYu/ReadingGank
import React from 'react'; import { Provider } from 'react-redux'; import configureStore from './store/configure-store'; import Index from './containers/app'; import rootSaga from './sagas/index' const store = configureStore(); // run root saga store.runSaga(rootSaga); const App = () =>( <Provider store={store}>...
web/src/js/components/General/Scrollable.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import { Scrollbars } from 'react-custom-scrollbars' class Scrollable extends React.Component { render() { // Must either set a height or set autoHeight=true. // https://github.com/malte-wessel/react-custom-scrollbars return ( <Scrollbars...
src/svg-icons/places/kitchen.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesKitchen = (props) => ( <SvgIcon {...props}> <path d="M18 2.01L6 2c-1.1 0-2 .89-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.11-.9-1.99-2-1.99zM18 20H6v-9.02h12V20zm0-11H6V4h12v5zM8 5h2v3H8zm0 7h2v5H8z"/> ...
docs/src/app/components/pages/components/LinearProgress/ExampleDeterminate.js
rscnt/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; export default class LinearProgressExampleDeterminate extends React.Component { constructor(props) { super(props); this.state = { completed: 0, }; } componentDidMount() { this.timer = setTimeout(() => thi...
docs/app/Examples/collections/Grid/Types/GridExampleDividedPhrase.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleDividedPhrase = () => ( <Grid columns='three' divided> <Grid.Row> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/media-paragraph.png' /> </Grid.Column> <Grid.Column> <Im...
src/components/form/PasswordField.js
RelativeMedia/rm-frontend
import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' const PasswordField = ({ disabled, inputLg, input, label, placeholder, type, meta: {valid, touched, error} }) => { const classes = classNames('form-group', { 'has-error': (touched && !valid), 'has-success': (touc...
spec/coffeescripts/jsx/shared/modal-buttonsSpec.js
djbender/canvas-lms
/* * Copyright (C) 2015 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
docs/app/Examples/collections/Grid/Content/GridExampleRows.js
vageeshb/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRows = () => ( <Grid columns={3}> <Grid.Row> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column> <Image src='http://semantic-ui...
node_modules/react-router/es/RouteUtils.js
Rabbit884/reactapp
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) { ...
src/components/wrapper/map-finder/map-finder-result-list-component.js
rocachien/neptune-map-finder
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ListItem from './map-finder-result-list-item'; import TableComponent from '../../common/table/table-component'; import Icon from '../../common/icon/icon-component'; import Text from '../../common/text/text-component'; import Paging f...
monkey/monkey_island/cc/ui/src/components/report-components/security/StrongUsers.js
guardicore/monkey
import React from 'react'; import ReactTable from 'react-table' import {renderArray} from '../common/RenderArrays'; const columns = [ { Header: 'Powerful Users', columns: [ {Header: 'Username', accessor: 'username'}, {Header: 'Machines', id: 'machines', accessor: x => renderArray(x.machines)}, ...
src/apps/Traces/TracesListItem.js
Syncano/syncano-dashboard
import React from 'react'; import { Paper } from 'material-ui'; import { colors as Colors } from 'material-ui/styles'; import { ColumnList, TraceResult, TraceBigResult } from '../../common/'; const Column = ColumnList.Column; const TracesListItem = ({ item, onToggle, onLoadMore, visible = true }) => { const styles...
Realization/frontend/czechidm-core/src/content/module/Caches.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import { CacheManager, DataManager } from '../../redux'; import * as Utils f...
src/view/route/link.js
NaNuNoo/Matcha
import { withStyles } from 'material-ui/styles'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { changeRoute } from '../../action/route'; import styles from './link-styles'; export class _Link ext...
app/stores/__tests__/categoryStore-test.js
bryomckim/DMS-Frontend
import React from 'react'; import expect from 'expect'; import request from 'superagent'; import sinon from 'sinon'; import alt from '../../alt'; import CategoryActions from '../../actions/CategoryActions'; import CategoryStore from '../CategoryStore'; import AltTestingUtils from 'alt-utils/lib/AltTestingUtils'; descr...
src/components/Containers.react.js
kitematic/kitematic
import $ from 'jquery'; import _ from 'underscore'; import React from 'react'; import Router from 'react-router'; import containerStore from '../stores/ContainerStore'; import ContainerList from './ContainerList.react'; import Header from './Header.react'; import metrics from '../utils/MetricsUtil'; import {shell} from...
app/js/components/Timestamp.js
niksoc/srmconnect
import React from 'react'; import {pure} from 'recompose'; const Timestamp = (props) => { const monthStrings = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; const datetime = props.datetime.replace('T',' '); const date = datetime.split(' ')[0].split('-'); const d...
src/shared/components/linkButton/linkButton.js
miaket/operationcode_frontend
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { Link as ScrollLink } from 'react-scroll'; import styles from './linkButton.css'; const LinkButton = (props) => { const { link, text, theme, scrollLink, isExternal, ...otherProps ...
stories/demos/luxon.stories.js
jquense/react-big-calendar
import React from 'react' import moment from 'moment' import { Calendar, momentLocalizer } from '../../src' import Luxon from './exampleCode/luxon' export default { title: 'Examples', component: Calendar, parameters: { docs: { page: null, }, }, } const localizer = momentLocalizer(moment) export...
src/app/containers/Calculator/components/Button/spec/Button.spec.js
atSistemas/react-base
import React from 'react'; import { expect } from 'chai'; import { mount, shallow } from 'enzyme'; import Button from '../'; describe('Calculator / Components', () => { describe('<Button />', () => { it('Should has properties', () => { const component = mount(<Button type="number" value="C" onClick={()=...
information/blendle-frontend-react-source/app/modules/alerts/components/AlertManageDialog.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Dialog from 'components/dialogues/Dialogue'; import { translateElement, translate } from 'instances/i18n'; export default class ManageAlertDialog extends React.Component { static propTypes = { onClose: PropTypes.func.isRequired, onClickDel...
app/containers/newtabs.js
Judygc/Api_ActiveCollab
import React from 'react'; import _ from 'lodash'; import axios from 'axios'; //Formulario para la creación de nuevas tareas class newTabs extends React.Component { constructor(props) { super(props); this.guardar = this.guardar.bind(this); } guardar(){ axios.defaults.headers.post[...
src/views/target/Punch.js
airloy/objective
/** * Created by Layman(http://github.com/anysome) on 16/3/9. */ import React from 'react'; import {View, Text, StyleSheet, Modal, TouchableWithoutFeedback, Image} from 'react-native'; import Button from 'react-native-button'; import {analytics, styles, colors, px1, airloy, api, L, toast, hang} from '../../app'; imp...
l5/src/routes/settings.js
huang6349/rn
import React, { Component } from 'react'; import { View, Text, } from 'react-native'; import styles from '../router.style'; import { connect } from 'dva/mobile'; class Settings extends React.Component { render() { return ( <View style={styles['container']}> <Text>设置</Text> </View > );...
app/components/Icons/icons/icon-it_other.js
code4romania/monitorizare-vot-votanti-client
import React from 'react'; function IconItOther() { return ( <svg version="1.1" id="icon-it_other" x="0px" y="0px" viewBox="0 0 489.9 489.9"> <g> <path d="M391.2,469.994c3.4,3.4,7.8,5.1,12.3,5.1c4.3,0,8.7-1.6,12-4.9l69.3-67.8c3.3-3.2,5.1-7.6,5.1-12.3s-1.9-9-5.1-12.3l-69.3-67.8c-6.8-6.6-17.6-6.5-24....
src/app/containers/app.js
tuxsudo/react-starter
import React, { Component } from 'react'; import { connect } from 'react-redux'; import Helmet from 'react-helmet'; import { init as initNav } from '../actions/site-nav.js'; import AppView from '../views/AppView'; import { selectSiteNav, selectPageMeta } from '../store.js'; // argument 1 of react-redux `connect` maps...
src/components/input/text/__tests__/input-text-test.js
KleeGroup/focus-components
import TestUtils from 'react-dom/test-utils'; import React from 'react'; import ReactDOM from 'react-dom'; import Input from '../'; const { renderIntoDocument, Simulate } = TestUtils; import identity from 'lodash/utility/identity'; import { init } from 'focus-core/translation'; const i18nConfig = { resources: {...
src/components/krakenjs/original-wordmark/KrakenjsOriginalWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './KrakenjsOriginalWordmark.svg' /** KrakenjsOriginalWordmark */ function KrakenjsOriginalWordmark({ width, height, className }) { return ( <SVGDeviconInline classNa...
test/test_helper.js
Jaime691/ReactTube
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
app/containers/News/index.js
MathieuDebit/rise2016-app
/** * * News * */ import React from 'react'; import BaseAPI from 'api/base.js'; import localforage from 'localforage'; import Header from '../Header'; import GoTop from '../../components/GoTop'; import NewsArticle from './NewsArticle.js'; import loader from '../App/img/loader.png'; import styles from './styles.css';...
src/index.js
codeslinger/kenko
/* eslint-disable import/default */ import React from 'react'; import {render} from 'react-dom'; import {browserHistory} from 'react-router'; import {AppContainer} from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; import {syncHistoryWithStore} from 'reac...
js/AppNavigator.js
bsusta/HelpdeskAppTemplate
import React, { Component } from 'react'; import { StatusBar, Platform } from 'react-native'; import { connect } from 'react-redux'; import { StyleProvider, Drawer } from 'native-base'; import { actions } from 'react-native-navigation-redux-helpers'; import { Router, Scene } from 'react-native-router-flux'; import get...
js/app.js
iamchenxin/relay-starter-kit
import 'babel-polyfill'; import App from './components/App'; import AppHomeRoute from './routes/AppHomeRoute'; import React from 'react'; import ReactDOM from 'react-dom'; import Relay from 'react-relay'; ReactDOM.render( <Relay.Renderer environment={Relay.Store} Container={App} queryConfig={new AppHome...
src/components/Content.js
lapanoid/redux-devtools-gentest-plugin
import React, { Component } from 'react'; export default class Content extends Component { render() { return <div style={{ marginLeft:'20%', maxWidth:'80%', paddingLeft:'2em', paddingRight:'6em' }}>{this.props.children}</div>; } }
src/components/Login/index.js
escudero89/my-npc-manager
import React, { Component } from 'react'; import firebase from 'firebase'; import Login from './Login'; import './style.css'; export default class LoginContainer extends Component { constructor(props) { super(props); this.auth = this.auth.bind(this); } auth(email, password) { firebase.auth() ...
admin/client/App/shared/Popout/PopoutBody.js
rafmsou/keystone
/** * Render the body of a popout */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, className: React.PropTypes.string, scrollable: React...
src/js/components/gsim/class-details.js
UNECE/Model-Explorer
import React from 'react' import ServicesByGSIMInput from './services-by-input' import ServicesByGSIMOutput from './services-by-output' import { sparqlConnect} from 'sparql-connect' /** * Builds the query that retrieves the details for a GSIM class */ const queryBuilder = GSIMClass => ` SELECT ?label ?definition...
src/svg-icons/navigation-arrow-drop-right.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; let NavigationArrowDropRight = (props) => ( <SvgIcon {...props}> <path d="M9.5,7l5,5l-5,5V7z" /> </SvgIcon> ); NavigationArrowDropRight = pure(NavigationArrowDropRight); NavigationArrowDropRight.displayName = 'Navi...
src/scenes/catalogBookList.js
Seeingu/borrow-book
/* 不同类别的图书页 */ import React, { Component } from 'react'; import { Text, ListView, View, TouchableOpacity, Alert, Image, StyleSheet, RefreshControl, } from 'react-native'; import TimerMixin from 'react-timer-mixin'; import { connect } from 'react-redux'; import * as api from '../redux/constant/api'; ...
src/js/helpers/table.js
kukua/dashboard
import React from 'react' import _ from 'underscore' import { Table as DataTable, resolve } from 'reactabular' import date from './date' export class Table extends React.Component { getColumnSchema () { return _.map(this.props.columns, (column) => { var cell = {} if (column.key) { cell.property = column....
src/containers/PetitionImage.js
iris-dni/iris-frontend
import React from 'react'; import { connect } from 'react-redux'; import PetitionImage from 'components/PetitionImage'; import getPetitionImage from 'selectors/petitionImage'; const PetitionImageContainer = (props) => ( <PetitionImage {...props} /> ); const mapStateToProps = ({ petition }) => getPetitionImage(petit...
src/svg-icons/action/account-box.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBox = (props) => ( <SvgIcon {...props}> <path d="M3 5v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2H5c-1.11 0-2 .9-2 2zm12 4c0 1.66-1.34 3-3 3s-3-1.34-3-3 1.34-3 3-3 3 1.34 3 3zm-9 8c0-2 4-3...
MobileApp/node_modules/react-native-elements/example/src/views/forms_home.js
VowelWeb/CoinTradePros.com
import React, { Component } from 'react'; import { ScrollView, View, StyleSheet, Platform } from 'react-native'; import colors from 'HSColors'; import Icon from 'react-native-vector-icons/MaterialIcons'; import { Button, Text, FormInput, FormLabel, CheckBox, SearchBar, } from 'react-native-elements'; clas...
src/svg-icons/editor/monetization-on.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMonetizationOn = (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 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2...
src/js/components/UserAuthenticator.js
knowncitizen/tripleo-ui
/** * Copyright 2017 Red Hat 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...
src/components/text-editor/formatting-help/formatting-help.js
vFujin/HearthLounge
import React from 'react'; import Tr from "./formatting-help-tr"; import TrList from "./formatting-help-list-tr"; const FormattingHelp = () => { return ( <table className="formatting-help default-style"> <thead> <tr> <td>You type:</td> <td>You see:</td> </tr>...
src/mobile/Line/helpers/subcomps.js
Krizzu/react-progressor
import React from 'react'; import propTypes from 'prop-types'; import { View, StyleSheet } from 'react-native'; const Styles = StyleSheet.create({ Container: { position: 'relative', }, Absolute: { position: 'absolute', left: 0, top: 0, }, }); export const Container = ({ width, height, childre...
app/pages/lab/data-exports.spec.js
zooniverse/Panoptes-Front-End
import React from 'react'; import assert from 'assert'; import { shallow, render } from 'enzyme'; import DataExports, { Warning } from './data-exports'; import WorkflowClassificationExportButton from "./workflow-classification-export-button"; import DataExportButton from "../../partials/data-export-button"; import Ta...
packages/cp-frontend/src/components/service/delete.js
yldio/copilot
import React from 'react'; import PropTypes from 'prop-types'; import { ModalHeading, ModalText, Button } from 'joyent-ui-toolkit'; const ServiceDelete = ({ service, onCancelClick = () => {}, onConfirmClick = () => {} }) => ( <div> <ModalHeading> Deleting a service: <br /> {service.name} </ModalH...
app/hocs/Session/index.js
zebbra-repos/Zeiterfassung-medi
/* eslint-disable no-console */ /* * * Session * * Higher order component to ensure user is logged in * http://engineering.blogfoster.com/higher-order-components-theory-and-practice/ */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { bindRoutineCreat...
react/src/components/graph/Graph.js
VREMSoftwareDevelopment/bwmon
/* * Copyright (C) 2010 - 2020 VREM Software Development <VREMSoftwareDevelopment@gmail.com> * * 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: //w...
src/svg-icons/maps/local-car-wash.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalCarWash = (props) => ( <SvgIcon {...props}> <path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2...
src/components/StatusBarContainer/StatusBarContainer.js
alexhawkins/trackingWidget
'use strict'; import React from 'react'; import Ball from './BallComponent'; import 'styles//StatusBarContainer.scss'; class StatusBarContainer extends React.Component { constructor(props) { super(props); } render() { let statuses = {'ORDERED': 0, 'IN PREP': 1, 'READY FOR CARRIER' : 2, 'IN TRANSIT': ...
src/svg-icons/social/people-outline.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
rn-06-widthNheight.js
KyoungRan/react-native-ex-NDH
import React, { Component } from 'react'; import { StyleSheet, Text, View, StatusBar } from 'react-native'; export default class App extends Component { render() { return ( <View style={{ flex: 1 }}> <View style={styles.container}> <StatusBar hidden={true} />...
client/modules/Body.js
jde-maga/supermoube
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* Body.js :+: :+: :+: ...
src/components/Top-Nav/Top-Nav.js
dfala/high-club
import React from 'react' import { connect } from 'react-redux' import { Link } from 'react-router' import { actions as counterActions } from '../../redux/modules/counter' import styles from './TopNav.scss' const mapStateToProps = (state) => ({ counter: state.counter }) export class TopNav extends React.Component { ...
fields/types/datearray/DateArrayFilter.js
brianjd/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormInput, FormSelect, Grid, } from '../../../admin/client/App/elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No e...
src/components/Entry/ContributingSignatures/test.js
ProteinsWebTeam/interpro7-client
// @flow import React from 'react'; import ShallowRenderer from 'react-test-renderer/shallow'; import { ContributingSignatures } from '.'; const renderer = new ShallowRenderer(); describe('<ContributingSignatures />', () => { test('should render', () => { renderer.render( <ContributingSignatures ...
src/files/file-import-status/FileImportStatus.stories.js
ipfs/webui
import React from 'react' import { storiesOf } from '@storybook/react' import { checkA11y } from '@storybook/addon-a11y' import { action } from '@storybook/addon-actions' import { withKnobs // , boolean } from '@storybook/addon-knobs' import i18nDecorator from '../../i18n-decorator' import { FileImportStatus } fro...
blueocean-material-icons/src/js/components/svg-icons/image/music-note.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageMusicNote = (props) => ( <SvgIcon {...props}> <path d="M12 3v10.55c-.59-.34-1.27-.55-2-.55-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4V7h4V3h-6z"/> </SvgIcon> ); ImageMusicNote.displayName = 'ImageMusicNote'; ImageMusicNote.muiName = 'SvgIc...
admin/client/App/components/Navigation/Mobile/index.js
benkroeger/keystone
/** * The mobile navigation, displayed on screens < 768px */ import React from 'react'; import Transition from 'react-addons-css-transition-group'; import MobileSectionItem from './SectionItem'; const ESCAPE_KEY_CODE = 27; const MobileNavigation = React.createClass({ displayName: 'MobileNavigation', propTypes: ...
lib/index.js
erik0110/Weatherly
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './styles.scss' ReactDOM.render( <App />, document.getElementById('app') );
draft-js-buttons/src/utils/createBlockStyleButton.js
koaninc/draft-js-plugins
/* eslint-disable react/no-children-prop */ import React, { Component } from 'react'; import { RichUtils } from 'draft-js'; import unionClassNames from 'union-class-names'; export default ({ blockType, children }) => ( class BlockStyleButton extends Component { toggleStyle = (event) => { event.preventDefa...
client/components/dashboard/TweetModal.js
creativcoder/rio
import { Modal, Button, Popover, OverlayTrigger, Tooltip, Glyphicon } from 'react-bootstrap'; import React from 'react'; import Tweetbox from './Tweetbox'; const TweetModal = React.createClass({ getInitialState() { return { showModal: false }; }, close() { this.setState({ showModal: false }); }, open...
src/svg-icons/av/volume-mute.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvVolumeMute = (props) => ( <SvgIcon {...props}> <path d="M7 9v6h4l5 5V4l-5 5H7z"/> </SvgIcon> ); AvVolumeMute = pure(AvVolumeMute); AvVolumeMute.displayName = 'AvVolumeMute'; AvVolumeMute.muiName = 'SvgIcon'...
ui/src/main/js/components/__tests__/RoleQuota-test.js
rdelval/aurora
import React from 'react'; import { shallow } from 'enzyme'; import RoleQuota, { QUOTA_TYPE_MAP } from '../RoleQuota'; function createResources(cpus, mem, disk) { return [{ 'numCpus': cpus }, { 'ramMb': mem }, { 'diskMb': disk }]; } function initQuota() { const quota = {}; Object.keys(QUOTA_T...
test/FormGroupSpec.js
dozoisch/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import $ from 'teaspoon'; import FormControl from '../src/FormControl'; import FormGroup from '../src/FormGroup'; describe('<FormGroup>', () => { it('renders children', () => { let instance = ReactTestUtils.renderIntoDocument( ...
test/tests/Quiz-spec.js
DailyCheckup/DailyCheckup
import React from 'react'; import { expect } from 'chai'; import { shallow, mount, render } from 'enzyme'; import Quiz from './../../src/Components/Quiz/Quiz.jsx'; import Answers from './../../src/Components/Quiz/Answers.jsx'; const testQuestions = [{ a:"A) severe joint pain", answer:"A", b:"B) marked joint spac...
src/components/App/App.js
denysovkos/testtask
import React from 'react' import { HeaderContainer } from '../../containers' class App extends React.Component { constructor(props) { super(props) } componentWillMount() { this.props.loadOrders() } render() { let orders = this.props.orders.orders return( <div> <HeaderContai...
webdash/src/Tabs.js
ohsu-comp-bio/funnel
import React from 'react'; import PropTypes from 'prop-types'; import Tabs from '@material-ui/core/Tabs'; import Tab from '@material-ui/core/Tab'; import Typography from '@material-ui/core/Typography'; import Box from '@material-ui/core/Box'; import Paper from '@material-ui/core/Paper'; function TabPanel(props) { co...
browser/boot.js
tomgrooffer/basenji
import React from 'react' import { render } from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory, Router } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import { Provider } from 'react-redux' import configureStore from './configur...
src/components/obligee/BoundarySpecification.js
axmand/react-webpack-redux
import React, { Component } from 'react'; import InputCell from './InputCell' // import { Provider, connect } from 'react-redux' class BoundarySpecification extends Component { render() { var table=( <table className="mytable" height="373"> <tbody > <tr> <td width="108"><p>界址点位说明 </p><...
src/modules/backgrounds/space_background.js
Falieson/planetx-boilerplate-crater
/* Space: Random Stars - canvas generated background | planetx-backgrounds - [ ] standard star colors - [/] rainbow stars - [/] expansion/retraction - [~] big-bang / big-shrink - [ ] super-nova - [ ] flow Inspired by generateStar() by https://codepen.io/alexandredees/pen/wseEi */ /* eslint flowtype/requ...
src/Framework/Core/Form/Field/TextInput/__tests__/TextInput.component-test.js
NativeForms/framework-src
import React from 'react'; import { Input, Icon } from 'native-base'; // framework import TextInputComponent from '../TextInput.component'; import i18n from '../TextInput.i18n'; import schema from '../TextInput.schema'; //shared import { mountWithIntl } from '../../../../../../Shared/intl-enzyme-test-helper'; const ...
app/Components/App.js
gerbilsinspace/wikilynx
import React from 'react'; import Breadcrumbs from '../Containers/Breadcrumbs'; import CompletedGame from '../Containers/CompletedGame'; import CustomGame from '../Containers/CustomGame'; import Footer from './Footer.js'; import GameBoard from '../Containers/GameBoard'; import Header from '../Containers/Header'; impor...