path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
tests/layouts/CoreLayout.spec.js
hrnik/roofbar
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
src/components/Call.js
Dealman-LLC/Sheets-Credit-Judge
import React from 'react' import phone from '../images/phone.png' function Call(props) { return ( <div className={props.className} > <img src={phone} alt="Sheets Phone" style={{ float: 'left', height: 80, }} /> <div style={{ ...
src/interface/others/RestorationShamanSpreadsheet.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import PrePotion from 'parser/shared/modules/items/PrePotion'; import BaseHealerStatValues from 'parser/shared/modules/features/BaseHealerStatValues'; im...
test/ColSpec.js
erictherobot/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Col from '../src/Col'; describe('Col', function () { it('Should set Offset of zero', function () { let instance = ReactTestUtils.renderIntoDocument( <Col xsOffset={0} smOffset={0} mdOffset={0} lgOffset={0} /> ); ...
src/ui/components/PageProgress/index.js
burning-duck/twibral
import React from 'react' import styles from './styles.css' // View class PageProgress extends React.Component { elapsedPercent () { if (this.props.elapsed === 0) { return 0 } return this.props.elapsed * 100 / (this.props.total - 1) } render () { let percent = this.elapsedPercent() let...
src/components/SignIn.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { withState } from 'recompose'; import { Box, Flex } from '@rebass/grid'; import Container from './Container'; import StyledButton from './StyledButton'; import StyledCard from './StyledCard'; import StyledInput from './StyledInput'; import { H5, P,...
src/components/course/CourseForm.js
wowkin2/react-redux-sample
import React from 'react'; import TextInput from '../common/TextInput'; import SelectInput from '../common/SelectInput'; const CourseForm = ({course, allAuthors, onSave, onChange, saving, errors}) => { return ( <form> <h1>Manage Course</h1> <TextInput name="title" label="Title" ...
lib/serverRender.js
Brainpowered/advanced-react
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import App from './components/App'; const serverRender = () => { return ReactDOMServer.renderToString( <App /> ); }; export default serverRender;
src/server.js
BusyginCode/chat
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import ApiClient from './helpers/ApiClient'; import config from './config'; import favicon from 'serve-favicon'; import cookieParser from 'cookie-parser'; import compression from 'compression'; import httpProxy from 'http...
src/components/Header/Header.js
drbelfast/logme
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' export const Header = () => ( <div> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <Link to='/counter' activeClassName='route--active'> Counter </Link> </div...
client/components/Button/index.js
JohannesAnd/SKWebsite
import React from 'react'; import { ButtonComponent } from './elements'; export default function Button({ className, children, ...props }) { return ( <ButtonComponent className={className} {...props}> {children} </ButtonComponent> ); }
src/client/index.js
dtekcth/dfotose
import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; render( <AppContainer> <App /> </AppContainer>, document.getElementById('root') ); if (module.hot) { module.hot.accept('./App', () => { const NextApp = require('./A...
src/App/Mesa.js
yoLUkAsss/DEscrutinio
// react utilities import React, { Component } from 'react'; import { Button, Header, Container} from 'semantic-ui-react' import {withRouter} from 'react-router-dom' import AlertContainer from 'react-alert' import * as utils from '../utils/utils.js' import * as api from '../utils/api-call.js' import CustomTable from '...
src/Views/Home.js
charlesbao/jinjiu_mission_app
/** * Created by chalresbao on 16/11/24. */ import React, { Component } from 'react'; import {connect} from 'react-redux' import { Wrapper } from '../Components/FlexBox' import BottomNav from '../Components/BottomNav' import First from './Home/First' import Second from './Home/Second' import Dispatcher from '../Mod...
pages/index/index.js
hschlichter/react-demo
import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import { Provider } from 'react-redux'; import configureStore from '../../shared/store/serverstore'; import reducers from './reducers'; import Layout from './components/layout'; let router = express.Router(); router.get...
app/utilities/WorkspaceConverter.js
FermORG/FermionJS
const PAD_LENGTH = 3; const WORKSPACE_ID = 'workspace'; const TOP_LEVEL_NAME = 'App'; import { appParser, flattenStateProps } from './propsRecursor'; // import { cloneDeep } from 'lodash'; import cloneDeep from './cloneDeep'; import { getChildEvents, flattenEvents, insertMethods, insertThis } from './eventsRecursor'; i...
src/components/Icons/RMWIcon.js
petorious/dmprov-app
import React from 'react'; import SvgIcon from 'material-ui/SvgIcon'; const RMWIcon = (props) => { return ( <SvgIcon width={22} height={22} viewBox="0 0 600 600" {...props}> <path d="M195.607,226.063l39.777,10.658l-26.518,0.019c37.883,33.406,66.295,0,66.295,0 C244.855,211.427,195.607,226.063,195.607,226.063z"/...
js/jqwidgets/demos/react/app/kanban/headertemplate/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxKanban from '../../../jqwidgets-react/react_jqxkanban.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; class App extends React.Component { componentDidMount() { this.refs.myKanban.on('itemAttrClicked', (event) =>...
src/js/components/icons/base/Troubleshoot.js
odedre/grommet-final
/** * @description Troubleshoot SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. ...
tests/layouts/CoreLayout.spec.js
harijoe/redux-shooting-stars
import React from 'react' import TestUtils from 'react-addons-test-utils' import CoreLayout from 'layouts/CoreLayout/CoreLayout' function shallowRender (component) { const renderer = TestUtils.createRenderer() renderer.render(component) return renderer.getRenderOutput() } function shallowRenderWithProps (props...
spec/javascripts/jsx/account_course_user_search/CoursesListSpec.js
venturehive/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...
src/components/time.js
lowsky/spectacle
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Clock from './clock'; import Timer from './timer'; import { TimeContainer } from './time-components'; export default class Time extends Component { constructor() { super(); this.state = { timer: false }; } _renderClock()...
src/js/components/icons/base/AddChapter.js
odedre/grommet-final
/** * @description AddChapter SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * ...
src/components/Header/index.js
r1cebank/react-native-boilerplate
/* eslint-disable react/no-multi-comp */ import React from 'react'; import { Platform, TouchableOpacity, View, Image, ToolbarAndroid } from 'react-native'; import { Components, Colors } from '../../global/globalIncludes'; const { Text } = Components.Text; import Styles from './resources/styles'; const STATUS_BAR_HEI...
src/redux/utils/createDevToolsWindow.js
adammockor/fridge
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import DevTools from '../../containers/DevToolsWindow'; export default function createDevToolsWindow (store) { const win = window.open( null, 'redux-devtools', // give it a name so it reuses the same window ...
docs/src/app/components/pages/components/Slider/ExampleAxis.js
pomerantsev/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; /** * The orientation of the slider can be reversed and rotated using the `axis` prop. */ const SliderExampleAxis = () => ( <div style={{display: 'flex', height: 124, flexDirection: 'row', justifyContent: 'space-around'}}> <Slider style={{heig...
index/components/TargetAction.js
JDRomano2/VenomKB
import React from 'react'; import ReactTable from 'react-table'; import { Media } from 'react-bootstrap'; const modeOfAction = 'Inhibition'; class TargetAction extends React.Component { constructor(props) { super(props); this.state = { target: this.props.targetAction, modeOfAction: modeOfAction...
src/components/require_auth.js
skywindzz/higher-order-component
import React, { Component } from 'react'; import { connect } from 'react-redux'; export default function(ComposedComponent) { class Authentication extends Component { static contextTypes={ router: React.PropTypes.object } componentWillMount() { if(!this.props.authen...
src/main/resources/code/react/Apps/ManageRadars/ManageRadarsApp.js
artieac/technologyradar
'use strict' import jQuery from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import Reflux from 'reflux'; import { combineReducers, createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk' import { Provider } from 'react-redux'; import { BrowserRouter as Router, Route, Link...
docs/docs.js
gutenye/react-mc
import React from 'react' import Frame from 'react-frame-component' import styled from 'styled-components' import { times } from 'lodash' import Toolbar from '../src/Toolbar' import List from '../src/List' window.pd = console.log.bind(console) window.log = console.log.bind(console) window.DemoColumn = styled.div` d...
src/svg-icons/action/settings-cell.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsCell = (props) => ( <SvgIcon {...props}> <path d="M7 24h2v-2H7v2zm4 0h2v-2h-2v2zm4 0h2v-2h-2v2zM16 .01L8 0C6.9 0 6 .9 6 2v16c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V2c0-1.1-.9-1.99-2-1.99zM16 16H8V4h8v12z"...
src/components/sidebar.js
jorgerobles/LaserWeb4
/** * Sidebar module. * - Handle sidebar modules. * @module */ // React/Redux import React from 'react' import { connect } from 'react-redux' // Main components import Dock from './dock' import Panes from './panes' import Splitter from './splitter'; // Actions import * as panesActions from '../actions/panes' /*...
src/RadioButton/RadioButtonGroup.spec.js
mit-cml/iot-website-source
/* eslint-env mocha */ import React from 'react'; import {assert} from 'chai'; import {shallow} from 'enzyme'; import RadioButtonGroup from './RadioButtonGroup'; import getMuiTheme from '../styles/getMuiTheme'; describe('<RadioButtonGroup />', () => { const muiTheme = getMuiTheme(); const shallowWithContext = (no...
src/svg-icons/action/toll.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionToll = (props) => ( <SvgIcon {...props}> <path d="M15 4c-4.42 0-8 3.58-8 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zM3 12c0-2.61 1.67-4.83 4-5.65V4.26C3.5...
ignite/Examples/Containers/ignite-ir-boilerplate/GridExample.js
TylerKirby/Phrontis
import React from 'react' import { View, Text, ListView } from 'react-native' import { connect } from 'react-redux' // For empty lists // import AlertMessage from '../Components/AlertMessage' // Styles import styles from './Styles/GridExampleStyle' class GridExample extends React.Component { constructor (props) { ...
test/ApplicationList-test.js
RuiGeng/interview_test
import React from 'react'; import { shallow, mount, render } from 'enzyme'; import ApplicationListItem from '../src/ApplicationListItem.js'; import ApplicationList from '../src/ApplicationList.js'; describe("<ApplicationList />", function() { var imgs = [{ "id": 1, "src": "imgs/app/iweb.png" }, { ...
web_client/client-src/components/playerBar.js
RadioPi/RadioPi
import React, { Component } from 'react'; import $ from 'jquery'; /** Image pour les contrôles du player */ var next = require('../img/next.png'); var pause = require('../img/pause.png'); var previous = require('../img/previous.png'); export default class PlayerBar extends Component { constructor(props){ super(pro...
packages/react-jsx-highstock/test/components/RangeSelector/RangeSelector.spec.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import { mount } from 'enzyme'; import Highcharts from 'highstock-release'; import RangeSelector from '../../../src/components/RangeSelector/RangeSelector'; import { createMockChart } from '../../test-utils'; describe('<RangeSelector />', function () { let sandbox; beforeEach(function ...
app/javascript/mastodon/features/ui/components/column_loading.js
palon7/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Column from '../../../components/column'; import ColumnHeader from '../../../components/column_header'; const ColumnLoading = ({ title = '', icon = ' ' }) => ( <Column> <ColumnHeader icon={icon} title={title} multiColumn={false} focusable={fa...
fields/types/cloudinaryimage/CloudinaryImageFilter.js
lastjune/keystone
import classNames from 'classnames'; import React from 'react'; import { SegmentedControl } from 'elemental'; var PasswordFilter = React.createClass({ getInitialState () { return { checked: this.props.value || true }; }, toggleChecked (checked) { this.setState({ checked: checked }); }, renderTog...
lib/components/terms.js
spncrgr/hyper
import React from 'react'; import Component from '../component'; import {decorate, getTermGroupProps} from '../utils/plugins'; import CommandRegistry from '../command-registry'; import TermGroup_ from './term-group'; const TermGroup = decorate(TermGroup_, 'TermGroup'); const isMac = /Mac/.test(navigator.userAgent); e...
src/main.js
iilinegor/art-bazar
import ReactDOM from 'react-dom'; import React from 'react'; import { Router, Route, hashHistory, IndexRedirect } from 'react-router'; import All from './components/All.jsx'; import ProductFull from './components/product.jsx'; import Login from './components/Login.jsx'; import Help from './components/Help.jsx'; import...
src/svg-icons/action/reorder.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionReorder = (props) => ( <SvgIcon {...props}> <path d="M3 15h18v-2H3v2zm0 4h18v-2H3v2zm0-8h18V9H3v2zm0-6v2h18V5H3z"/> </SvgIcon> ); ActionReorder = pure(ActionReorder); ActionReorder.displayName = 'Action...
docs/app/Examples/elements/Image/Usage/index.js
vageeshb/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ImageUsageExamples = () => ( <ExampleSection title='Usage'> <ComponentExample title='Children' description='An ...
app/components/header.js
waha3/Electron-NeteaseCloudMusic
import React, { Component } from 'react'; import { remote, ipcRenderer } from 'electron'; import { Link } from 'react-router'; const app = remote.app; export default class Header extends Component { state = { placeholder: '搜索音乐,歌手,歌词,用户', backBtnDisabled: false, forwardDisabled: false } componentWil...
sample/__tests__/App-test.js
rturk/react-native-fontawesome
/** * @format */ import 'react-native'; import React from 'react'; import App from '../App'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { renderer.create(<App />); });
react/reactRedux/redux-master/examples/todos-with-undo/src/components/App.js
huxinmin/PracticeMakesPerfect
import React from 'react' import Footer from './Footer' import AddTodo from '../containers/AddTodo' import VisibleTodoList from '../containers/VisibleTodoList' import UndoRedo from '../containers/UndoRedo' const App = () => ( <div> <AddTodo /> <VisibleTodoList /> <Footer /> <UndoRedo /> </div> ) e...
src/components/CollectiveStatsCard.js
OpenCollective/frontend
import React from 'react'; import PropTypes from 'prop-types'; import { get, isEqual } from 'lodash'; import { defaultImage, defaultBackgroundImage } from '../constants/collectives'; import { imagePreview } from '../lib/utils'; import { Flex } from '@rebass/grid'; import Container from './Container'; import { P, Spa...
react/features/filmstrip/components/native/LocalThumbnail.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { View } from 'react-native'; import Thumbnail from './Thumbnail'; import styles from './styles'; /** * Component to render a local thumbnail that can be separated from the * remote thumbnails later. * * @returns {ReactElement} */ export default function LocalThumbnail...
src/views/Story.js
scarescrow/react-resource-center
import React, { Component } from 'react'; class Story extends Component { state = {} render () { return <h1>Story</h1> } } export default Story;
node_modules/native-base/__tests__/basic/Badge.ios.js
tausifmuzaffar/bisApp
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import { Badge } from './../../src/basic/Badge'; // import Icon from '../../../Components/Widgets/Icon'; // Note: test renderer must be required after react-native. jest.mock('Platform', () => { const Platform = require....
src/svg-icons/action/perm-phone-msg.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermPhoneMsg = (props) => ( <SvgIcon {...props}> <path d="M20 15.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-.66.25-1.01C8.7 6.45 8.5 5.2...
docs/static/js/37.586eb3c8.chunk.js
yurizhang/ishow
webpackJsonp([37],{201:function(n,e,t){var a=t(215);"string"===typeof a&&(a=[[n.i,a,""]]);var o={hmr:!1};o.transform=void 0;t(193)(a,o);a.locals&&(n.exports=a.locals)},207:function(n,e,t){var a=t(235);"string"===typeof a&&(a=[[n.i,a,""]]);var o={hmr:!1};o.transform=void 0;t(193)(a,o);a.locals&&(n.exports=a.locals)},208...
webapp/src/containers/search/resultsTable.js
nathandunn/agr
import React, { Component } from 'react'; import { Link } from 'react-router'; import style from './style.css'; import DetailList from './detailList'; import LogList from './logList'; import { makeFieldDisplayName } from '../../lib/searchHelpers'; import { NON_HIGHLIGHTED_FIELDS } from '../../constants'; const MATCH_...
src/app/Router.js
kolabdigital/notification_demo
import React from 'react'; import Home from './modules/home/components/Home'; import Birthdays from './modules/birthdays/components/Birthdays'; import { ConnectedRouter } from 'react-router-redux'; import { Route } from 'react-router'; export default class Router extends React.Component { render () { return ( ...
app/javascript/mastodon/components/setting_text.js
lindwurm/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; export default class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropT...
src/components/VmDetails/index.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { Alert, Card, CardBody } from 'patternfly-react' import { withMsg } from '_/intl' import styles from './style.css' import NavigationPrompt from 'react-router-navigation-prompt' import NavigationConfirmationModal from '../NavigationConfirmationModal'...
src/components/FuelSavingsTextInput.js
hanndbn/appDemo
import React from 'react'; import PropTypes from 'prop-types'; const FuelSavingsTextInput = (props) => { const handleChange = (e) => { props.onChange(props.name, e.target.value); }; return ( <input className="small" type="text" placeholder={props.placeholder} value={props.value} ...
react-flux-mui/js/material-ui/src/svg-icons/maps/terrain.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTerrain = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); MapsTerrain = pure(MapsTerrain); MapsTerrain.displayName = 'MapsTerr...
src/front-end/js/containers/App.js
aleksey-gonchar/iamamaze.me
import React from 'react' import { connect } from 'react-redux' import { PropTypes } from 'react' import AppActions from '../actions/AppActions.js' import { isFetched } from '../reducers/AppReducer.js' import { bindActionCreators } from 'redux' import About from '../pages/About.js' function select (state) { return ...
client/components/surveys/survey/SurveyPage.js
AnatolyBelobrovik/itechartlabs
import React from 'react'; import PropTypes from 'prop-types'; import SurveyForm from './SurveyForm'; const SurveyPage = ({ id, currentPage, pagesCount, isSubmited, onSubmitSurvey, hasPageNumbers, hasMandatoryLabel, hasProgressIndication, hasQuestionNumbers, uploadFileRequest, onSetPage, onAnsw...
website/irulez/src/components/admin_menu/fields/MultipleActionField.js
deklungel/iRulez
import React, { Component } from 'react'; import MultipleSelectionField from './MultipleSelectionField'; import ValueService from './../ValueService'; class MultipleActionField extends Component { valueService = new ValueService(); state = { options: [] }; componentDidMount() { this.getData(); ...
src/components/MediaList/BaseMediaList.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useVirtual } from 'react-virtual'; import itemSelection from 'item-selection/immutable'; import LoadingRow from './LoadingRow'; const { useCallback, useContext, useEffect, useMemo, useRef, useState, } = React; c...
simple-filer/src/renderer/components/react-split-pane/Pane.js
akabekobeko/examples-electron
import React from 'react'; import PropTypes from 'prop-types'; import stylePropType from 'react-style-proptype'; class Pane extends React.PureComponent { render() { const { children, className, split, style: styleProps, size, eleRef, } = this.props; const classes = ['...
spec/sections/TableSection.js
react-fabric/react-fabric
import React from 'react' import Table from '../../src/Table' const TableSection = () => ( <section> <h2>Table</h2> <Table fixed> <thead> <tr> <th>File name</th> <th>Location</th> <th>Modified</th> <th>Type</th> </tr> </thead> <tbody>...
MobileApp/node_modules/react-native-elements/src/header/__tests__/Title.js
VowelWeb/CoinTradePros.com
import React from 'react'; import { shallow } from 'enzyme'; import toJson from 'enzyme-to-json'; import Title from '../Title'; describe('Title Component', () => { it('should render without issues', () => { const component = shallow(<Title />); expect(component.length).toBe(1); expect(toJson(component))...
src/svg-icons/image/switch-camera.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageSwitchCamera = (props) => ( <SvgIcon {...props}> <path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5...
test/containers/table/TableTest.js
germohn/tarkvaraprojekt
/* eslint-disable no-undef */ import React from 'react'; import TableView from '../../../src/containers/table/Table'; import {shallow} from 'enzyme'; import sinon from 'sinon'; import CompanyRow from '../../../src/components/table/CompanyRow'; function generateFakeCompany() { return { 'slug': Math.random().toSt...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
wangkang0627/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
server/sonar-web/src/main/js/apps/overview/main/duplications.js
vamsirajendra/sonarqube
import React from 'react'; import { Domain, DomainHeader, DomainPanel, DomainNutshell, DomainLeak, MeasuresList, Measure, DomainMixin } from './components'; import { DrilldownLink } from '../../../components/shared/drilldown-link'; import { TooltipsMixin }...
InputToText/index.ios.js
jennselby/ReactNativeExamples
import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import SaveInput from './saveInput.js'; export default class InputToText extends Component { render() { return ( <SaveInput /> ); } } AppRegistry.registerComponent('InputToText', () => InputToText);
src/app/components/Status.js
cgrossde/Pullover
import React from 'react' import moment from 'moment' import { connect } from 'react-redux' import { Button, Col, Row, Table } from 'react-bootstrap' import store from '../services/Store' import { logout } from '../actions/Pushover' import { pushoverStatusSelector } from '../selectors/PushoverSelectors' import { rando...
project/src/scenes/Account/Login/Login.js
strues/boldr
/* @flow */ import React from 'react'; import Helmet from 'react-helmet'; import styled from 'styled-components'; import { Grid, Row, Col } from '@boldr/ui/Layout'; import type { AuthInput, AccountLoginResponse } from '../../../types/boldr'; import LoginForm from './LoginForm'; type Props = { onSubmit: AuthInput => ...
app/components/MenuLink/index.js
rapicastillo/beautifulrising-client
/** * * MenuLink * */ import React from 'react'; import styled from 'styled-components'; import { Link } from 'react-router'; export default styled(Link)` text-decoration: underline; font-weight: bold; text-transform: uppercase; color: #828486; display: block; padding-bottom: 0px; margin-bottom: 12px; ...
app/components/FilterSearchBar/index.js
seanng/jobmaster-web
/** * * FilterSearchBar * */ import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import messages from './messages'; function FilterSearchBar() { return ( <div> <FormattedMessage {...messages.header} /> </div> ); } FilterSearchBar.pro...
FirstApp/app/config/router.js
xizhouhezai/react-app
import React from 'react'; import { TabNavigator, StackNavigator } from 'react-navigation'; import { Icon } from 'react-native-elements'; import Feed from '../screens/Feed'; import Settings from '../screens/Settings'; import UserDetail from '../screens/UserDetail'; import Me from '../screens/Me'; export const FeedSta...
mob5/src/components/Contacts/ContactList/SectionHeader.js
leGoupil/mob5
import React from 'react'; import { View, Text, StyleSheet } from 'react-native'; const styles = StyleSheet.create({ container: { flex: 1, padding: 8, justifyContent: 'center', backgroundColor: '#EAEAEA', }, text: { fontSize: 13, }, }); export default SectionHeader = (props) => ( <View s...
src/routes/home/index.js
ImanMh/react-proto
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; i...
blueocean-material-icons/src/js/components/svg-icons/places/kitchen.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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"/> </SvgIcon> ); PlacesKitchen.dis...
frontend/src/index.js
rkorkosz/home-finances
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import store, { history } from './store'; import App from './containers/app'; ReactDOM.render( <Provider store={store}> <ConnectedRouter history={history}> <d...
src/components/Sidebar/index.spec.js
octoblu/zooids
import chai, { expect } from 'chai' import chaiEnzyme from 'chai-enzyme' import React from 'react' import sinon from 'sinon' import sinonChai from 'sinon-chai' import { mount, shallow } from 'enzyme' import Sidebar from './' chai.use(chaiEnzyme()) chai.use(sinonChai) describe('<Sidebar />', () => { })
examples/todomvc/test/components/Footer.spec.js
joaomilho/redux
import expect from 'expect' import React from 'react' import TestUtils from 'react-addons-test-utils' import Footer from '../../components/Footer' import { SHOW_ALL, SHOW_ACTIVE } from '../../constants/TodoFilters' function setup(propOverrides) { const props = Object.assign({ completedCount: 0, activeCount: ...
src/FormGroup.js
bbc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; class FormGroup extends React.Component { render() { let classes = { 'form-group': !this.props.standalone, 'form-group-lg': !this.props.standalone && this.props.bsSize === 'large', 'form-group-sm': !this.props.standalone && this.pr...
admin/src/components/PopoutBody.js
Freakland/keystone
import blacklist from 'blacklist'; import classnames from 'classnames'; import React from 'react'; var PopoutBody = React.createClass({ displayName: 'PopoutBody', propTypes: { children: React.PropTypes.node.isRequired, scrollable: React.PropTypes.bool, }, render () { let className = classnames('Popout__body'...
src/views/components/AutomationNotificationScreen.js
physiii/home-gateway
import React from 'react'; import PropTypes from 'prop-types'; import {withRoute} from './Route.js'; import NavigationScreen from './NavigationScreen.js'; import SettingsScreenContainer from './SettingsScreenContainer.js'; import Form from './Form.js'; import Button from './Button.js'; export class AutomationNotificat...
client/src/templates/Challenges/classic/DesktopLayout.js
jonathanihm/freeCodeCamp
import React, { Component } from 'react'; import { ReflexContainer, ReflexSplitter, ReflexElement } from 'react-reflex'; import PropTypes from 'prop-types'; const propTypes = { challengeFile: PropTypes.shape({ key: PropTypes.string }), editor: PropTypes.element, hasPreview: PropTypes.bool, instructions: ...
src/svg-icons/action/visibility.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionVisibility = (props) => ( <SvgIcon {...props}> <path d="M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-...
src/components/common/images/ImageGallery.js
ESTEBANMURUZABAL/my-ecommerce-template
/** * Imports */ import React from 'react'; /** * Component */ class ImageGallery extends React.Component { //*** Initial State ***// state = { selectedImage: 0 // Default to first image of the array }; //*** Component Lifecycle ***// componentDidMount() { // Component sty...
src/pages/docsHome/DocsHome.js
Synchro-TEC/site-apollo-11
import React from 'react'; const DocsHomePage = (props) => { return ( <div className='dm-content'> <h4 className='sv-title'>Documentation</h4> <p> We are working hard to improve and cover all Apollo-11 features, but this is a <b>Working In Progress</b> job. </p> <h5> Bugs ...
src/js/pages/Services.js
hadnazzar/ModernBusinessBootstrap-ReactComponent
import React from 'react'; import Subheading from '../components/Subheading'; import ImageFull from '../components/ImageFull'; import ServicePanels from '../components/Services/ServicePanels'; import ServiceList from '../components/Services/ServiceList'; import ServiceTabs from '../components/Services/ServiceTab...
codes/chapter05/react-router-v4/basic/demo06/app/components/Topics.js
atlantis1024/react-step-by-step
import React from 'react'; import { Link, Route, Switch } from 'react-router-dom'; class Topic extends React.PureComponent { render() { return ( <div> <h3>ID: {this.props.match.params.id}</h3> </div> ) } } class Topics extends React.PureComponent { render() { return ( <div>...
core/router.js
aleksie/codenames
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; ...
src/ImageControlsContainer.js
rexxars/imbo-demo
import React from 'react' import ImageControls from './ImageControls' class ImageControlsContainer extends React.Component { constructor() { super() this.state = {} this.handleResize = this.handleResize.bind(this) } componentDidMount() { this.handleResize() window.addEventListener('resize',...
assets/jqwidgets/demos/react/app/popover/modalpopover/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxPopover from '../../../jqwidgets-react/react_jqxpopover.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; class App extends React.Component { componentDidMount() { let data = new Array(); let firstNames...
packages/koot/React/component-extender.js
websage-team/super-project
import React from 'react'; import { connect } from 'react-redux'; // import { hot } from 'react-hot-loader' // import PropTypes from 'prop-types' import hoistStatics from 'hoist-non-react-statics'; import { getStore } from '../'; import { needConnectComponents } from '../defaults/defines-server'; // import { fro...
app/components/Header/index.js
shaggyshelar/CLA
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from './A'; import Img from './Img'; import NavBar from './NavBar'; import HeaderLink from './HeaderLink'; import Banner from './banner.jpg'; import messages from './messages'; class Header extends React.Component { // eslint-disable-l...
src/components/ContentList/ContentWrapper.js
adorris1/dorris-united
import React from 'react'; import DropDownMenu from 'material-ui/lib/DropDownMenu'; import MenuItem from 'material-ui/lib/menus/menu-item'; var MenuWrapper = React.createClass({ getInitialState: function(){ return {data:[],value:2}; }, handleChange: function (event) { this.setState({value: event.target.v...
components/Result.js
stucco/ui
import React from 'react' import cx from 'classnames' import Link from './Link' import history from '../core/history' import { connect } from 'react-redux' import { SET_VERTEX } from '../redux/actions' class Result extends React.Component { constructor (props) { super(props) this.state = { vertex: thi...
src/svg-icons/device/signal-wifi-1-bar-lock.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1BarLock = (props) => ( <SvgIcon {...props}> <path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5...
packages/stockflux-chart/src/index.js
ScottLogic/bitflux-openfin
import React from 'react'; import ReactDOM from 'react-dom'; import { OpenfinApiHelpers } from 'stockflux-core'; import App from './App'; const mountApp = () => { ReactDOM.render(<App />, document.getElementById('root')); }; if (OpenfinApiHelpers.getWindow()) { mountApp(); } else { console.error('This applicati...