path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/index.js
ryan-shaw/react-survey
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './containers/Root'; import injectTapEventPlugin from 'react-tap-event-plugin'; // import localforage from 'localforage...
src/svg-icons/maps/flight.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsFlight = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon>...
frontend/statements/Container.js
datoszs/czech-lawyers
import React from 'react'; import {RichText, Anchor, Msg, DefaultPageTitle} from '../containers'; import {StatementHeading} from '../components/statement'; import {STATEMENTS_ADVOCATES, STATEMENTS_PROCEEDINGS, STATEMENTS_CASES} from '../routes'; const params = { ending: '.', }; export default () => ( <section...
src/app/components/item/ItemsList.js
mazahell/eve-react-app
import React from 'react' import ReactTooltip from 'react-tooltip' const ItemsList = ({item, clickItem}) => { let randId = 'id-' + Math.ceil(Math.random() * 1000000000) return ( <div onClick={() => clickItem(item)} className='inline user_img' data-tip data-for={randId}> <img alt={item.item_name} ...
packages/containers/src/Form/Form.container.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import Immutable from 'immutable'; import { cmfConnect } from '@talend/react-cmf'; import BaseForm from '@talend/react-forms'; import classnames from 'classnames'; let DefaultArrayFieldTemplate = () => null; if (process.env.FORM_MOZ) { DefaultArrayFieldTe...
admin/client/components/ItemsTable/ItemsTableDragDropZone.js
tony2cssc/keystone
import React from 'react'; import CurrentListStore from '../../stores/CurrentListStore'; import DropZoneTarget from './ItemsTableDragDropZoneTarget'; import classnames from 'classnames'; var ItemsTableDragDropZone = React.createClass({ displayName: 'ItemsTableDragDropZone', propTypes: { columns: React.PropTypes.ar...
node_modules/reflexbox/docs/components/Readme.js
HasanSa/hackathon
import React from 'react' import cxs from 'cxs' import readme from '../../README.md' import { Box } from '../..' import { colors } from './style' const Readme = () => { const cx = cxs({ maxWidth: 640, h1: { margin: 0 }, h2: { marginTop: 32, marginBottom: 0 }, h3: { ma...
client/app/components/NewTopic.js
ParadeTo/dataguru-nodejs
import React from 'react'; import $ from 'jquery'; import {addTopic} from '../lib/client'; import {redirectURL} from '../lib/utils'; import TopicEditor from './TopicEditor.js'; export default class NewTopic extends React.Component { constructor(props) { super(props); this.state = {}; } render() { ...
packages/material-ui-icons/src/CallMade.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z" /></g> , 'CallMade');
Components/NewResourceMixin.js
tradle/tim
import React from 'react' import { // Text, View, TouchableOpacity, Image, DatePickerAndroid, Switch } from 'react-native' import SwitchSelector from 'react-native-switch-selector' import format from 'string-template' import t from 'tcomb-form-native' import _ from 'lodash' import dateformat from 'dateform...
src/components/shared/Validate.js
juandjara/open-crono
import React from 'react'; import PropTypes from 'prop-types'; function getValidationErrors( rules = [], model = {}, touched = {}, ignoreTouched = false ) { const rulesWithError = rules.filter(rule => { const [key, validator] = rule let ruleHasError = !validator(model) if(!ignoreTouched) { ruleHa...
fields/types/datearray/DateArrayField.js
Pop-Code/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
imports/ui/pages/AddPaperToJournalEdition/AddPaperToJournalEdition.js
jamiebones/Journal_Publication
/* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import { Meteor } from 'meteor/meteor'; import { withTracker } from 'meteor/react-meteor-data'; import { _ } from 'meteor/underscore'; import Papers from '../../../api/Papers/Papers'; import Journals from '../../../api/Journal/Journal';...
src/components/NavBar.js
happy-dev/petitbus_mobile
import React from 'react'; import { StyleSheet, Text, View, TouchableOpacity, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; const NavBar = React.createClass({ tabIcons: [], propTypes: { goToPage: React.PropTypes.func, activeTab: React.PropTypes.number, tabs: React...
app/jsx/bundles/context_modules.js
venturehive/canvas-lms
/* * Copyright (C) 2011 - 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...
app/javascript/mastodon/features/compose/components/navigation_bar.js
primenumber/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ActionBar from './action_bar'; import Avatar from '../../../components/avatar'; import Permalink from '../../../components/permalink'; import IconButton from '../../../components/icon_button...
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/rate-review.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const MapsRateReview = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm12 0h-7.5l2-2H18v2z"/> </SvgIcon...
src/pages/repl.js
frintjs/frint.js.org
import React from 'react'; const ReplPage = () => { return ( <div> <section className="editor-section"> <iframe sandbox="allow-modals allow-forms allow-popups allow-scripts allow-same-origin" src="https://codesandbox.io/embed/6MNkoppL" style={{ width: '100%', height: '...
docs/src/pages/demos/progress/LinearBuffer.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import { LinearProgress } from 'material-ui/Progress'; const styles = { root: { flexGrow: 1, }, }; class LinearBuffer extends React.Component { state = { completed: 0, buffer: 10, }; ...
spec/javascripts/jsx/account_course_user_search/UsersListSpec.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...
src/main.js
vamc-anne/react-redux-poc
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_N...
app/components/Print/index.js
IntAlert/chatplayer
/** * * Print * */ import React from 'react'; import styled from 'styled-components'; import './styles.css'; const ImageContainer = styled.div` text-align:center; `; const PrintLink = styled.a` display:block; text-align:center; background:#5cbfdc; color:#fff; text-decoration:none; border-radius:5px; ...
examples/03 Nesting/Drag Sources/Container.js
wagonhq/react-dnd
import React from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { ...
src/ButtonSelection/ButtonSelection.driver.js
nirhart/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactTestUtils from 'react-addons-test-utils'; import $ from 'jquery'; const buttonSelectionDriverFactory = ({element, wrapper, component}) => { const $component = $(element); const getButtonsNames = () => $component.find('span').map((index, ...
docs/app/Examples/collections/Table/Types/TableExampleStriped.js
mohammed88/Semantic-UI-React
import React from 'react' import { Icon, Table } from 'semantic-ui-react' const TableExampleStriped = () => { return ( <Table celled striped> <Table.Header> <Table.Row> <Table.HeaderCell colSpan='3'>Git Repository</Table.HeaderCell> </Table.Row> </Table.Header> <Table...
src/Slider.js
chris-gooley/react-materialize
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; class Slider extends Component { componentDidMount () { const { fullscreen, indicators, interval, transition } = this.props; $('.slider').slider({ full_width: fullscre...
src/routes/contact/index.js
tomasreichmann/cards
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 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 Contact from './Contact'...
src/icons/SignalCellularNullIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class SignalCellularNullIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M40 13.66V40H13.66L40 13.66M44 4L4 44h40V4z"/></svg>;} };
examples/mobile/src/index.js
BelkaLab/react-yearly-calendar
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; import { Calendar, CalendarControls } from 'react-yearly-calendar'; import './style.css'; class Demo extends React.Component { constructor(props) { super(props); const today = moment(); const customCSSclasses = { ...
tests/react_children/text.js
gabelevi/flow
// @flow import React from 'react'; class Text extends React.Component<{children: string}, void> {} class TextOptional extends React.Component<{children?: string}, void> {} class TextLiteral extends React.Component<{children: 'foo' | 'bar'}, void> {} <Text />; // Error: `children` is required. <TextOptional />; // O...
client/src/modules/dashboard/dashboard.view.js
euqen/spreadsheet-core
'use strict'; import React from 'react'; import SideBar from './../../components/sidebar'; import Header from './../../components/header'; import DaySchedule from './../schedule/components/day-schedule.view'; import counterpart from 'counterpart'; import Translate from 'react-translate-component'; import bind from './...
src/client/spinner.js
Ribeiro/hacker-menu
import React from 'react' export default class Spinner extends React.Component { render () { return ( <div className='spinner'> Loading... </div> ) } }
src/lib/utils.js
livedo/react-i18nify
import React from 'react'; export const replace = (translation, replacements) => { if (typeof translation === 'string') { let result = translation; Object.keys(replacements).forEach((replacement) => { result = result.split(`%{${replacement}}`).join(replacements[replacement]); }); return result;...
app/javascript/mastodon/features/ui/components/column_header.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class ColumnHeader extends React.PureComponent { static propTypes = { icon: PropTypes.string, type: PropTypes.string, active: PropTypes.bool, onClick: PropTypes.func, columnHeaderId...
src/views/components/history/index.js
EragonJ/Kaku
import React, { Component } from 'react'; import Player from '../../modules/Player'; import HistoryManager from '../../../modules/HistoryManager'; import TracksComponent from '../shared/tracks'; class HistoryComponent extends Component { constructor(props) { super(props); this.state = { tracks: [] ...
app/demos/ChartWithAxis.js
chunghe/React-Native-Stock-Chart
import React, { Component } from 'react'; import { InteractionManager, ScrollView, StyleSheet } from 'react-native'; import { VictoryAxis, VictoryLine, VictoryChart } from 'victory-chart-native'; import T from '../components/T'; import Loading from '../components/Loading'; import data from '../data'; class Char...
src/svg-icons/action/dashboard.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDashboard = (props) => ( <SvgIcon {...props}> <path d="M3 13h8V3H3v10zm0 8h8v-6H3v6zm10 0h8V11h-8v10zm0-18v6h8V3h-8z"/> </SvgIcon> ); ActionDashboard = pure(ActionDashboard); ActionDashboard.displayName...
Ch06/06_02/start/bulletin-board/src/App.js
MuhammadHafidzMisrudin/reactjs-basics
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
sc/src/main/javascript/bundles/homepage-species-summary-panel/index.js
gxa/atlas
import React from 'react' import ReactDOM from 'react-dom' import SpeciesSummaryPanel from 'species-summary-panel' import withFetchLoader from 'atlas-react-fetch-loader' const FetchLoadSpeciesSummaryPanel = withFetchLoader(SpeciesSummaryPanel) const render = (options, target) => { ReactDOM.render(<FetchLoadSpecies...
amp-pwa/src/index.js
pbakaus/amp-publisher-sample
/** @license * Copyright 2015 - present The AMP HTML Authors. All Rights Reserved. * * 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 ...
examples/with-mobx-state-tree/pages/_app.js
BlancheXu/test
import React from 'react' import { Provider } from 'mobx-react' import { getSnapshot } from 'mobx-state-tree' import App from 'next/app' import { initializeStore } from '../stores/store' export default class MyApp extends App { static async getInitialProps ({ Component, ctx }) { // // Use getInitialProps as ...
src/views/reminders/RemindersList.js
project-abigail/app
import React, { Component } from 'react'; import groupBy from 'lodash/groupBy'; import moment from 'moment'; import ReminderItem from './ReminderItem'; import './RemindersList.css'; class RemindersList extends Component { constructor(props) { super(props); this.state = { reminders: props.reminders, ...
docs/src/sections/GridPropsSection.js
yyssc/ssc-grid
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; export default function GridSection() { return ( <div className="bs-docs-section"> <h3><Anchor id="grid-props">属性</Anchor></h3> <PropTable component="Grid"/> </div> ); }
app/components/queue/firstDisplay.js
ritishgumber/dashboard-ui
/** * Created by Darkstar on 11/29/2016. */ import React from 'react'; import CreateQueue from './createQueue' class FirstDisplay extends React.Component { constructor(props){ super(props) } render() { return ( <div className="row"> <div className="col-sm-12 c...
components/catalog/pie.js
sgmap/inspire
import React from 'react' import PropTypes from 'prop-types' import {translate} from 'react-i18next' import {Pie} from 'react-chartjs-2' const colors = [ '#2185D0', '#00B5AD', '#21BA45', '#FBBD08', '#A333C8', '#e03997', '#F2711C', '#DB2828', '#a5673f', '#DDDDDD', '#000000' ] const formatData = (...
app/containers/LanguageProvider/index.js
Third9/mark-one
/* * * 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...
src/components/CQuiz/Answer.js
maloun96/react-admin
import ReactDOM from 'react-dom'; import React from 'react'; import {render} from 'react-dom'; // import axios from 'axios'; // import Form from './Form.js'; // import FinishQuiz from './FinishQuiz.js'; const style = {overflow: 'hidden'}; class Answer extends React.Component { constructor(props) { super(...
classic/src/scenes/mailboxes/src/Scenes/AppScene/ServiceTab/ServiceInfoDrawer/GoogleInboxToGmailHelper.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import { accountActions, accountStore } from 'stores/account' import { withStyles } from '@material-ui/core/styles' import shallowCompare from 'react-addons-shallow-compare' import ServiceInfoPanelActionButton from 'wbui/ServiceInfoPanelActionButton' import S...
src/scripts/components/base.js
jie/microgate
import React from 'react'; import muiTheme from './theme/theme'; export default class BaseReactComponent extends React.Component { getChildContext() { return { muiTheme: muiTheme }; } getCurrentPage() { if (this.props.location.query.page) { return parseInt(this.props.location.query.page)...
app/javascript/mastodon/features/generic_not_found/index.js
amazedkoumei/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
app/components/staff/inputForm.js
ongmin/batchtracker
import React from 'react' var inputForm = React.createClass({ propTypes: { onPostSubmit: React.PropTypes.func.isRequired, onInputChange: React.PropTypes.func.isRequired, recordStatus: React.PropTypes.array }, getInitialState: function () { return { queryBatchNumber: '', inputValueSKU:...
src/icons/font/AddCircleIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; /** * AddCircle button * * @param props * @param context * @returns {ReactDOM} * @constructor */ const AddCircleIcon = (props, context) => { let the...
client/components/Route.js
muiradams/routetogo
import React from 'react'; const Route = (props) => { const { keyStart, route } = props; function isEmpty(object) { return Object.keys(object).length === 0; } if (isEmpty(route)) return null; const { airports } = route; function renderAirports() { return airports.map((airport, index, array) => ...
flareth/app/client/js/EditDApps.js
Firescar96/Flare
import React from 'react'; import {Navbar} from './globals'; import Market from './Market.sol.js'; require('../sass/editDApps.scss'); var EditDApps = React.createClass({ createNewDApp: function(argument) { var ident = $("#ident").val() var fee = $("#fee").val() var hash = $("#hash").val() var classfi...
app/index.js
scherler/jenkins-plugin-site
import createAppStore from './createAppStore'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import { render } from 'react-dom'; import Application from './Application'; import App from './App'; import PluginDetail from './components/PluginDetail'; im...
cmd/elwinator/src/components/NewExperiment.js
13scoobie/choices
// @flow import React from 'react'; import { connect } from 'react-redux'; import { browserHistory } from 'react-router'; import { experimentAdd } from '../actions'; import { namespaceURL } from '../urls'; const NewExperiment = ({ namespaceName, dispatch }) => { let input; return ( <form onSubmit={e => { ...
src/svg-icons/device/airplanemode-active.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
node_modules/react-sortable/example-from-npm/index.js
Prash88/soccer-lineup
//block 1 import React from 'react'; import { Sortable } from 'react-sortable'; var ListItem = React.createClass({ displayName: 'SortableListItem', render: function () { return ( <div {...this.props} className="list-item">{this.props.children}</div> ) } }) var SortableListItem = Sortable(ListItem...
src/main/web/app/utilities.js
dhbw-timetable/rablabla
import React from 'react'; import moment from 'moment'; import { createMuiTheme } from 'material-ui/styles'; import yellow from 'material-ui/colors/yellow'; import Slide from 'material-ui/transitions/Slide'; import $ from 'jquery'; // = = = = B A C K E N D = = = = = // for local testing against staging backend const ...
src/components/Profiles/FirstPage.js
RahulDesai92/PHR
/** * Created by Rahuld on 2017/08/26 */ import React, { Component } from 'react'; import { Text, View, StyleSheet, ActivityIndicator, Image, Alert, ScrollView, KeyboardAvoidingView , TouchableOpacity } from 'react-native'; import { Na...
shared/modules/app/components/Terms.js
founderlab/fl-base-webapp
import React from 'react' export default () => ( <div> <h2>Website Terms and Conditions</h2> </div> )
src/svg-icons/image/straighten.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageStraighten = (props) => ( <SvgIcon {...props}> <path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/> </SvgIcon> ); ImageStr...
docs/src/app/components/pages/components/Card/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import cardReadmeText from './README'; import cardExampleWithAvatarCode from '!r...
actor-apps/app-web/src/app/components/sidebar/ContactsSectionItem.react.js
yangchenghu/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ...
src/svg-icons/editor/merge-type.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
client/modules/District/components/DistrictList/DistrictList.js
lordknight1904/bigvnadmin
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Table, Checkbox, Button } from 'react-bootstrap'; import { fetchDistricts, toggleDistrict } from '../../DistrictActions'; import { getDistricts, getCurrentPage, getCityId } from '../../DistrictR...
me_v0.2/src/components/form-types/htmlview.js
EdoMagen/project-s-v2
import React from 'react'; import FormTypes from './form-types'; const HtmlView = ({formField}) => ( <div dangerouslySetInnerHTML={{__html: formField.value}} /> ); // Init FormTypes.addItem('html_view', HtmlView); export default HtmlView;
packages/material-ui-icons/src/InvertColorsOff.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M20.65 20.87l-2.35-2.35-6.3-6.29-3.56-3.57-1.42-1.41L4.27 4.5 3 5.77l2.78 2.78c-2.55 3.14-2.36 7.76.56 10.69C7.9 20.8 9.95 21.58 12 21.58c1.79 0 3.57-.59 5.03-1.78l2.7 2.7L21 21.23l-.35-.36zM12 19....
examples/huge-apps/components/GlobalNav.js
sleexyz/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
js/components/loaders/Spinner.android.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import ProgressBar from 'ProgressBarAndroid'; export default class SpinnerNB extends Component { prepareRootProps() { const type = { height: 40, }; const defaultProps = { style: type, }; return computeProps(this.props, defaultProps); } ...
views/status_line.js
stefohnee/black-screen
import React from 'react'; export default React.createClass({ render() { return ( <div className="status-line"> <CurrentDirectory currentWorkingDirectory={this.props.currentWorkingDirectory}/> <VcsData data={this.props.vcsData}/> </div> ) ...
client-src/components/pages/InspectionDetails.js
Neil-G/InspectionLog
import React, { Component } from 'react'; import { Link } from 'react-router' require('./../../../public/custom.css') import Parts from './../parts' import Containers from './../../containers' import Forms from './../forms' var axios = require('axios') class InspectionDetails extends Component { constructor(){ ...
src/App.js
wlto/shopping-cart
import React, { Component } from 'react'; import { Route, Switch } from 'react-router-dom' import Home from './Home.js' import Checkout from './Checkout.js' class App extends Component { constructor(props) { super(props); this.state = { inventoryItems: props.data, cartItems: [], totalPrice:...
app/react-icons/fa/flask.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFlask extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m35.6 32.3q1.2 2 0.5 3.4t-3.2 1.4h-25.7q-2.4 0-3.1-1.4t0.5-3.4l11.2-17.7v-8.9h...
docs/src/editors/BsEditor/BsEditor.js
gocreating/redux-draft
import request from 'superagent'; import React, { Component } from 'react'; import { Editor, RichUtils } from 'draft-js'; import Col from 'react-bootstrap/lib/Col'; import ButtonToolbar from 'react-bootstrap/lib/ButtonToolbar'; import ButtonGroup from 'react-bootstrap/lib/ButtonGroup'; import { reduxDraft } from '../.....
ui/src/components/App.js
Ion-Petcu/StockTrainer
import React from 'react'; import AuthService from '../utils/AuthService' import Main from '../views/Main' import Login from '../views/Login' class App extends React.Component { constructor(props) { super(props); this.state = { 'view': AuthService.loggedIn() ? 'main' : 'landing' ...
frontend/src/views/Status/Status.js
rocknsm/docket
/* * Copyright (c) 2017, 2018 RockNSM. * * This file is part of RockNSM * (see http://rocknsm.io). * * 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/licens...
src/App.js
kad3nce/react-transform-boilerplate
import React, { Component } from 'react'; import { NICE, SUPER_NICE } from './colors'; class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 }; this.interval = setInterval(() => this.tick(), 1000); } tick() { this.setState({ counter: this.state.coun...
app/app.js
MichelHalmes/sankey
import React from 'react'; import ReactDOM from 'react-dom'; import request from 'superagent'; import {loadData, parseLevelData} from './utils.js' import SankeyChart from './SankeyChart'; import Slider from '../d3_drag_drop/slider'; import bootstrap from 'bootstrap/dist/css/bootstrap.css'; import style from './sanke...
src/client.js
chunkiat82/rarebeauty-ui
/** * 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 'whatwg-fetch'; import React from 'react'; impor...
pages/tutorials/index.js
pcm-ca/pcm-ca.github.io
import React from 'react' import { Link } from 'react-router' import Helmet from 'react-helmet' import { config } from 'config' import get from 'lodash/get' import _ from 'lodash' import Tutorial from '../../components/Tutorial' import { prefixLink } from 'gatsby-helpers' export default class Index extends React.Comp...
website/src/templates/mdx-renderer.js
spacy-io/spaCy
/** * Temporary hack to prevent this issue: * https://github.com/ChristopherBiscardi/gatsby-mdx/issues/244 */ import React from 'react' import { MDXTag } from '@mdx-js/tag' import { withMDXComponents } from '@mdx-js/tag/dist/mdx-provider' import { withMDXScope } from 'gatsby-mdx/context' const WrappedComponent = R...
node-life/build/build/react-native-life/ReactNativeLife/js/Components/ViewPagerAndroid/ViewPagerAndroid.js
CaMnter/front-end-life
/** * @author CaMnter */ import React from 'react'; import { Image, StyleSheet, Text, TouchableWithoutFeedback, TouchableOpacity, View, ViewPagerAndroid } from 'react-native'; import type {ViewPagerScrollState} from 'ViewPagerAndroid'; let PAGES = 5; let BGCOLOR = ['#fdc08e', '#fff6b9',...
src/Button.js
IndWalker/react-calc
import React, { Component } from 'react'; const Button = ( {text, handle} ) => { return <button className="calculator-key" onClick={handle}>{text}</button> } export default Button;
src/components/common/Header.js
DarylRodrigo/DarylRodrigo.github.io
import React from 'react'; import { Link } from 'gatsby'; import '../../assets/sass/main.scss'; const Header = () => ( <header id="header"> <Link className="title" to="/"> Hyperspace </Link> <nav> <ul> <li> <Link to="/">Work</Link> </li> <li> <Link...
app/components/toolbar/Title.js
cmilfont/zonaextrema
import React from 'react'; import { Link } from 'react-router'; export default class Title extends React.Component { render() { return ( <div className="zx-toolbar-title"> <Link className="zx-toolbar-logo" to="/"> <img src="/assets/images/biologo.png" alt="B...
src/js/components/ui/dropdown/DropdownToggle.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/interface/others/CooldownOverview.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Cooldown from './Cooldown'; const CooldownOverview = ({ fightStart, fightEnd, cooldowns }) => ( <div style={{ marginTop: -10, marginBottom: -10 }}> <ul className="list"> {cooldowns.map(cooldown => ( <li key={`${cooldown.spell.id...
src/svg-icons/maps/hotel.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsHotel = pure(MapsHot...
src/main.js
feedreaderco/web
import React from 'react'; import ReactDOM from 'react-dom'; import api from './api'; import Article from './components/Article'; import SubscribeButton from './components/SubscribeButton'; import UserLink from './components/UserLink'; const token = localStorage.token; const user = localStorage.user; const lib = api(u...
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/strikethrough-s.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorStrikethroughS = (props) => ( <SvgIcon {...props}> <path d="M7.24 8.75c-.26-.48-.39-1.03-.39-1.67 0-.61.13-1.16.4-1.67.26-.5.63-.93 1.11-1.29.48-.35 1.05-.63 1.7-.83.66-.19 1.39-.29 2.18-.29.81 0 1.54.11 2.21.34.66.22 1.23.54 1.69.94.47....
app/javascript/mastodon/features/compose/components/upload_progress.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
src/utils/DevTools.js
wanhongfu/p2p-book-library-frontend
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; const DevTools = createDevTools( <DockMonitor toggleVisibilityKey='Ctrl-H' changePositionKey='Ctrl-Q' defaultIsVisible...
src/js/renderer/components/Login.js
tongariboyz/5rolli
/* @flow */ import React from 'react'; import nbem from 'nbem'; /** * Login */ export default class Login extends React.Component { constructor() { super(); this.state = { apiKey: '', apiToken: '', boardUrl: '' }; } /** * render * @return {ReactElement} */ render(): ...
app/components/Loader/Loader.js
dmitru/react-redux-router-expense-tracker-example-app
/** * Created by dmitru on 6/5/16. */ import React from 'react' import styles from './Loader.scss' export default () => ( <div className={styles.loader}> Loading... </div> )
src/decorators/withViewport.js
inkless/react-small-project
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height:...
src/results.js
CMinusMinus/DerbyHacks
import React from 'react'; import ReactDOM from 'react-dom'; import {Paper, List, ListItem, Subheader} from 'material-ui'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentSend from 'material-ui/svg-icons/content/send'; import Co...
src/svg-icons/image/tonality.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTonality = (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 2zm-1 17.93c-3.94-.49-7-3.85-7-7.93s3.05-7.44 7-7.93v15.86zm2-15.86c1.03.13 2 .45 2.87....
source/client/components/form/RadioElement.js
achobanov/ReactJS-Fundamentals-lab
import React from 'react'; export default class RadioElement extends React.Component { render() { return ( <div className='radio radio-inline'> <input type='radio' name={ this.props.groupName } id={ this.props.value.toLowerCa...
src/layouts/SplitContentLayout/SplitContentLayout.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import * as styles from './styles'; import { Provider } from './Context'; import FixedLayer from './FixedLayer'; export default class SplitContentLayout extends React.PureComponent { static propTypes = { /** * Children should always be SplitCont...