path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/statics/Error401.js
ryanbaer/busy
import React from 'react'; import { Link } from 'react-router-dom'; import steemconnect from 'sc2-sdk'; import { FormattedMessage } from 'react-intl'; const Error401 = () => (<div className="main-panel"> <div className="container my-5"> <div className="ptl text-center"> <h1> <FormattedMes...
test/integration/AppBar/AppBar.spec.js
IsenrichO/mui-with-arrows
/* eslint-env mocha */ import React from 'react'; import {mount} from 'enzyme'; import {assert} from 'chai'; import AppBar from 'src/AppBar'; import IconButton from 'src/IconButton'; import FontIcon from 'src/FontIcon'; import getMuiTheme from 'src/styles/getMuiTheme'; describe('<AppBar />', () => { const muiTheme =...
src/components/Pub.js
ontappl/rn
import React from 'react'; import { View, StyleSheet, ListView, } from 'react-native'; import {NavigationBar,} from './NavigationBar'; import {LoadingIndicator,} from './LoadingIndicator'; import {TapSummary,} from './TapSummary'; import {PlainListSeparator,} from './PlainListRow'; export const Pub = ({i...
app/javascript/mastodon/features/ui/components/onboarding_modal.js
mosaxiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ReactSwipeableViews from 'react-swipeable-views'; import classNames from 'cl...
src/components/logo/logo.js
greaveselliott/rock-paper-scissors
import React from 'react' import './logo.scss'; function Logo() { return ( <h1 className="logo">Rock Paper Scissors.</h1> ) } export default Logo
client/src/components/MainHeader.js
BrianMehrman/rails_probe
import React from 'react'; import Header from 'grommet/components/Header'; import Button from 'grommet/components/Button'; import Title from 'grommet/components/Title'; import Menu from 'grommet/components/Menu'; import Checkbox from 'grommet/components/CheckBox'; import Box from 'grommet/components/Box'; import Power...
app/workstation/initialize.js
Coding/WebIDE-Frontend
/* eslint-disable no-await-in-loop */ import React from 'react' import { isFunction, isBoolean, isString } from 'utils/is' import config from '../config' import api from '../backendAPI' import { stepFactory } from '../utils' import i18n from 'utils/createI18n' import { loadPackagesByType, mountPackagesByType } from '.....
src/components/app.js
rogeriomil/ChuckJokes
import React, { Component } from 'react'; import CategoryList from '../containers/category-list'; import JokeContainer from '../containers/joke-container'; import Header from './Header'; export default class App extends Component { render() { return ( <div> <Header /> <di...
app/index.js
Kamahl19/image-min-app
import React from 'react'; import { render } from 'react-dom'; import { Router, Route } from 'react-router'; import App from './App'; import '../node_modules/uikit/dist/css/uikit.almost-flat.min.css'; import './style.css'; render(( <Router> <Route path="/" component={App} /> </Router> ), document....
src/screens/dashboard.js
SwimmyApp/project-swimmy-mockup
import React from 'react'; import {observer} from 'mobx-react'; import EventsList from '../components/eventsList'; import GroupsList from '../components/groupsList'; import DevTool from 'mobx-react-devtools'; class Dashboard extends React.Component { render() { const {store} = this.props; return ( <div>...
src/parser/warlock/affliction/modules/talents/SoulConduit.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands } from 'common/format'; import SpellLink from 'common/SpellLink'; import StatisticListBoxItem from 'interface/others/Stati...
firstProject/__tests__/index.ios.js
gergob/reactNativeSamples
import 'react-native'; import React from 'react'; import Index from '../index.ios.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
app/containers/Layout/Subheader/index.js
hlex/vms
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class Subheader extends Component { render() { return ( <div className="subheader-wrapper"> { this.props.children } </div> ); } } export default Subheader;
tests/layouts/CoreLayout.spec.js
flftfqwxf/react-redux-starter-kit
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...
examples/counter/devTools.js
angular-redux/ng-redux
import { createDevTools} from 'redux-devtools'; import { render } from 'react-dom'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import React from 'react' import { Provider } from 'react-redux'; const DevTools = createDevTools( <DockMonitor toggleVisibil...
docs/src/app/components/pages/components/Stepper/Page.js
nathanmarks/material-ui
import React from 'react'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import stepperReadmeText from './README.md'; import advancedReadmeText from './Advanced.md'; import HorizontalLinearStepper...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
andrejunges/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
test/client/components/Hello.spec.js
toomastahves/node-red-starter
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import { expect } from 'chai'; import { Hello } from 'client/components/Hello'; const setup = () => { const props = { message: 'hello' }; const renderer = TestUtils.createRenderer(); renderer.render(<Hello {...props} />); const o...
__tests__/index.ios.js
housseindjirdeh/git-point
import 'react-native'; import React from 'react'; import renderer from 'react-test-renderer'; import Index from '../index.ios'; // Note: test renderer must be required after react-native. it('renders correctly', () => { const tree = renderer.create(<Index />); });
src/ui/Row.react.js
klimesf/tile-puzzle-react-js
import React from 'react'; import Tile from './Tile.react.js'; export default class Row extends React.Component { render() { let tiles = []; this.props.tiles.forEach((tile) => { tiles.push(<Tile tile={tile} game={this.props.game} />); }); return <div className="row">{til...
docs/src/app/components/pages/components/Menu/ExampleNested.js
verdan/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; import Divider from 'material-ui/Divider'; import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; const style = { display: 'inline-block', mar...
src/components/common/header/AdminAppMenu.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { FormattedMessage, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { push } from 'react-router-redux'; import Menu from '@material-ui/core/Menu'; import MenuItem from '@material-ui/core/MenuItem'; import AppMenu from '....
node_modules/native-base/src/basic/Container.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import {ToastContainer as Toast} from './ToastContainer'; import {ActionSheetContainer as ActionSheet} from './Actionsheet'; im...
web-ui/src/component/SwapBinComponent.js
azadbolour/boardgame
/* * Copyright 2017-2018 Azad Bolour * Licensed under GNU Affero General Public License v3.0 - * https://github.com/azadbolour/boardgame/blob/master/LICENSE.md */ /** @module SwapBin */ import React from 'react'; import PropTypes from 'prop-types'; const ItemTypes = require('./DragDropTypes').ItemTypes; const D...
src/svg-icons/content/delete-sweep.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentDeleteSweep = (props) => ( <SvgIcon {...props}> <path d="M15 16h4v2h-4zm0-8h7v2h-7zm0 4h6v2h-6zM3 18c0 1.1.9 2 2 2h6c1.1 0 2-.9 2-2V8H3v10zM14 5h-3l-1-1H6L5 5H2v2h12z"/> </SvgIcon> ); ContentDeleteSwee...
cheesecakes/plugins/content-manager/admin/src/containers/SettingsPage/index.js
strapi/strapi-examples
/** * * SettingsPage */ import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators, compose } from 'redux'; import { createStructuredSelector } from 'reselect'; import cn from 'classnames'; import { get, sortBy } from 'lodash'; import PropTypes from 'prop-types'; import { onChange...
js/components/Pad.js
GregSantulli/react-drum-sequencer
"use strict"; import React, { Component } from 'react'; require('../../css/pad.sass') class Pad extends Component { constructor(props) { super(props); this.state = { position: this.props.position } } componentWillMount() { } componentWillUnmount() { } handlePadClick(){ this....
src/templates/tags.js
meerasahib/meerablog1
import React from 'react'; import styled from 'styled-components'; import GatsbyLink from 'gatsby-link'; import { rhythm } from '../utils/typography'; import { getColorFromString } from '../utils/color'; import Link from '../components/Link'; import Preview from '../components/Preview'; const List = styled.ul` dis...
src/AboutPage/AboutPage.js
yining1023/thesisBook
import React from 'react' import s from './styles.css' import {html, title} from './aboutClassindex.md' import SimpleHeader from '../components/Layout/SimpleHeader' import {Link, Route} from 'react-router-dom' import {AboutThesisPage} from './AboutThesisPage' import {AboutClassPage} from './AboutClassPage' import {Abou...
src/Popover/PopoverAnimationVertical.js
pradel/material-ui
import React from 'react'; import Paper from '../Paper'; import transitions from '../styles/transitions'; import propTypes from '../utils/propTypes'; function getStyles(props, context, state) { const {targetOrigin} = props; const {open} = state; const {muiTheme} = context; const horizontal = targetOrigin.horiz...
src/svg-icons/hardware/phone-android.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhoneAndroid = (props) => ( <SvgIcon {...props}> <path d="M16 1H8C6.34 1 5 2.34 5 4v16c0 1.66 1.34 3 3 3h8c1.66 0 3-1.34 3-3V4c0-1.66-1.34-3-3-3zm-2 20h-4v-1h4v1zm3.25-3H6.75V4h10.5v14z"/> </SvgIcon> ...
src/components/shop/SaleOrderHistory.js
mangal49/HORECA
import React from 'react'; import { connect } from 'react-redux'; import * as actions from '../../actions'; import DialogCancel from './DialogCancel' import OrderDetailHistory from './OrderDetailHistory' import SearchBar from '../SearchBar'; import { Scrollbars } from 'react-custom-scrollbars'; import MobileTearSheet...
src/components/Users/Orders.js
yangdongMC/kaola
import React from 'react'; import { connect } from 'dva'; import { Table, Pagination, Popconfirm, Button } from 'antd'; import { routerRedux } from 'dva/router'; import queryString from 'query-string'; import styles from './Users.css'; import { PAGE_SIZE } from '../../constants'; import UserModal from './UserModal'; f...
app/render/client.js
Xantier/nerd-stack
import React from 'react'; import Router from 'react-router'; import routes from '../components/routes'; import dataLoader from '../util/dataLoader'; import {get as getCached} from '../util/cache'; import rehydrate from '../util/rehydrate'; const token = rehydrate(); const renderState = { element: document.getEleme...
packages/ringcentral-widgets-docs/src/app/pages/Components/Badge/Demo.js
ringcentral/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import Badge from 'ringcentral-widgets/components/Badge'; /** * A simple example of `Badge` * By default, the default floats on right. */ const BadgeDemo = () => <Badge name="Badge">BadgeName</Badge>; export default BadgeDemo;
app/components/H3/index.js
nimzco/takemyidea-ui
import React from 'react'; class H3 extends React.Component { render() { return ( <h3>{ this.props.children }</h3> ); } } export default H3;
ui/js/chart/index.js
beni55/spigo
'use strict'; import React from 'react'; import $ from 'jquery'; import d3 from 'd3'; import reduce from 'lodash.reduce'; import each from 'lodash.foreach'; import bind from 'lodash.bind'; import tooltip from 'd3-tip'; import dispatcher from 'dispatcher'; import ChartStore from 'stores/chart'; import fisheye from 'lib...
app/root.js
anywhy/weidu
'use strict' import React from 'react'; import { Provider } from 'react-redux'; import configureStore from './store/ReduxStore'; import App from './containers/index'; const store = configureStore(); class Root extends React.Component { render() { return( <Provider store={store}> <App /> </Provider> ...
Example/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
SteloLabs/SteloCrypto.js
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
packages/ringcentral-widgets/components/AudioSettingsPanel/index.js
ringcentral/ringcentral-js-widget
import { all, find } from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Tooltip from 'rc-tooltip'; import InfoIcon from '../../assets/images/Info.svg'; import styles from './styles.scss'; import i18n from './i18n'; import BackHeader fr...
web/app/components/Footer/index.js
agapic/TwitchChatStreaming
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...messages.licenseMessage} /> </section> <section> </section> ...
__tests__/index.android.js
airloy/objective
import 'react-native'; import React from 'react'; import Index from '../index.android.js'; // Note: test renderer must be required after react-native. import renderer from 'react-test-renderer'; it('renders correctly', () => { const tree = renderer.create( <Index /> ); });
index.ios.js
Devnetik/react-native-skeleton
'use strict'; /** * Created by maluramichael on 13/09/16. */ import './ReactotronConfig'; import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import { Data } from './app'; import Application from './application'; class AppWrapper extends Com...
frontend/tests/components/threads/moderation/controls.js
1905410/Misago
import assert from 'assert'; import React from 'react'; // jshint ignore:line import Controls from 'misago/components/threads/moderation/controls'; // jshint ignore:line import * as testUtils from 'misago/utils/test-utils'; describe("Threads List Moderation Controls Display", function() { afterEach(function() { ...
mobile/App/Containers/ThemeScreen.js
JasonQSong/SoulDistance
// @flow import React from 'react' import { View, ScrollView, Text, Image } from 'react-native' import { Colors, Fonts, Images } from '../Themes' import R from 'ramda' // Styles import styles from './Styles/ThemeScreenStyle' // Colors const colors = R.keys(Colors) // Font Types const types = R.keys(Fonts.type) // Fo...
docs/src/app/app.js
kasra-co/material-ui
import React from 'react'; import {render} from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
src/Eventplanner/EventRowHOC.js
ctco/rosemary-ui
import React from 'react'; import PropTypes from 'prop-types'; import { findDOMNode } from 'react-dom'; import EventCell from './EventCell'; import getHeight from 'dom-helpers/query/height'; import { accessor, elementType } from './utils/propTypes'; import { segStyle } from './utils/eventLevels'; import { isSelected } ...
src/components/stars/index.js
buttercomponents/butter-base-components
import React from 'react'; import PropTypes from 'prop-types'; import style from './style.styl'; function getScore(count, max=5) { const top = count <= 10 ? 10 : 100; return (max * count) / top; } class Stars extends React.Component { static propTypes = { rating: PropTypes.number.isRequired, ...
src/svg-icons/action/cached.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCached = (props) => ( <SvgIcon {...props}> <path d="M19 8l-4 4h3c0 3.31-2.69 6-6 6-1.01 0-1.97-.25-2.8-.7l-1.46 1.46C8.97 19.54 10.43 20 12 20c4.42 0 8-3.58 8-8h3l-4-4zM6 12c0-3.31 2.69-6 6-6 1.01 0 1.97....
packages/docs/components/Examples/inline-toolbar/CustomInlineToolbarEditor/index.js
nikgraf/draft-js-plugin-editor
/* eslint-disable react/no-multi-comp */ import React, { Component } from 'react'; import Editor, { createEditorStateWithText } from '@draft-js-plugins/editor'; import createInlineToolbarPlugin, { Separator, } from '@draft-js-plugins/inline-toolbar'; import { ItalicButton, BoldButton, UnderlineButton, CodeB...
src/components/Jobs/Index.js
taiwoabegunde/developersmap
/** * Created by Raphson on 10/10/16. */ import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import {Link} from 'react-router'; import NavBar from '../NavBar/index'; import Footer from '../Footer/Index'; import Auth from '../../utils/auth'; import JobStore from '../../stores/JobStore'; import ...
src/components/editor.js
kenken64/StackupJSPlayground
import _ from 'lodash'; import React, { Component } from 'react'; import CodeMirror from 'react-codemirror'; import 'codemirror/mode/jsx/jsx'; import * as actions from 'actions'; import { connect } from 'react-redux'; class Editor extends Component { onCodeChange(code) { this.props.updateCode(code); } rende...
src/containers/auth/AuthLayoutContainer.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { inject, observer } from 'mobx-react'; import AuthLayout from '../../components/auth/AuthLayout'; import AppStore from '../../stores/AppStore'; import GlobalErrorStore from '../../stores/GlobalErrorStore'; import AppLoader from '../....
src/components/video_detail.js
xuan6/react-videos
import React from 'react'; const VideoDetail = ({video}) => { //check if data is loaded if(!video){ //if data is undefined will return loading div and stop here return <div>Loading...</div>; } const videoId = video.id.videoId; // const url = 'https://www.youtube.com/embed/'+videoId; const...
src/svg-icons/av/sort-by-alpha.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
web/portal/src/components/Form/Text/index.js
trendmicro/serverless-survey-forms
// CSS import styles from './style.css'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import Question from '../Question'; class Text extends PureComponent { render() { const { data, onClick } = this.props; return ( <div classNam...
src/components/home.js
djake1680/React-Weight-Calculator
import React, { Component } from 'react'; import Header from './header'; import WeightForm from './weight-form'; export default class App extends Component { render() { return ( <div> <Header /> <WeightForm /> </div> ); } }
templates/bootstrap/imports/ui/components/HelloWorld.js
Batistleman/mgb
import React from 'react'; export default function HelloWorld() { return <h1>Hello World</h1>; }
app/containers/SignIn/index.js
monkeyzealer/Webstore-FrontEnd
/* * * SignIn * */ import React from 'react'; import Helmet from 'react-helmet'; import {Link} from 'react-router'; import TextField from 'material-ui/TextField'; import {orange500, blue500, brown500, brown900, brown700,} from 'material-ui/styles/colors'; import Responsive from 'react-responsive'; import AppBar fr...
examples/flux-utils-todomvc/js/app.js
hoozi/flux
/** * Copyright (c) 2014, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @flow */ 'use s...
client/react/src/components/orderItem/OrderItemsView.js
peasy/peasy-js-samples
import React from 'react'; import { Link } from 'react-router-dom'; import OrderItemActions from '../../actions/orderItemActions'; import InventoryItemActions from '../../actions/inventoryItemActions'; import constants from '../../constants'; import ListViewBase from '../../components/common/ListViewBase'; let orderIt...
src/layouts/CoreLayout/CoreLayout.js
twelch/kit-client-react-intl-token-proxy
import React from 'react' import { connect } from 'react-redux' import AppBar from 'material-ui/AppBar' import Sidebar from 'containers/Sidebar' import '../../styles/core.scss' import { toggleSidebar, setSidebar } from 'modules/sidebar' class CoreLayout extends React.Component { static propTypes = { children: R...
src/components/MainHeader/MessageItem.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' import Link from '../../utils/Link' const MessageItem = ({href, imageUrl, title, time, message, onClick}) => { return ( <li > <Link href={href} onClick={onClick}> <div className='pull-left'> <img src={imageUrl} className='img-c...
client/app/scripts/components/debug-toolbar.js
paulbellamy/scope
/* eslint react/jsx-no-bind: "off" */ import React from 'react'; import Perf from 'react-addons-perf'; import { connect } from 'react-redux'; import { sampleSize, sample, random, range, flattenDeep, times } from 'lodash'; import { fromJS, Set as makeSet } from 'immutable'; import { hsl } from 'd3-color'; import debug f...
src/svg-icons/maps/local-car-wash.js
tan-jerene/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/pages/london-landmarks-half-marathon.js
kbariotis/kostasbariotis.com
import React from 'react'; import PropTypes from 'prop-types'; import { graphql } from 'gatsby'; import { Row, Col } from 'react-flexbox-grid'; import variables from '../components/blog/variables'; import IndexLayout from '../components/layouts/Index'; import Header from '../components/blog/Header'; import MetaTags fr...
app/javascript/mastodon/components/load_gap.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, defineMessages } from 'react-intl'; const messages = defineMessages({ load_more: { id: 'status.load_more', defaultMessage: 'Load more' }, }); export default @injectIntl class LoadGap extends React.PureComponent { static propTypes...
app/jsx/collaborations/Collaboration.js
venturehive/canvas-lms
/* * Copyright (C) 2016 - 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...
plugins/react/server/__test__/components/ComponentC.js
pure-ui/styleguide
import React from 'react'; export default () => <div></div>;
server/dashboard/js/components/Dashboard.react.js
timofey-barmin/mzbench
import React from 'react'; import DashboardStore from '../stores/DashboardStore'; import DashboardEdit from './DashboardEdit.react'; import DashboardOverview from './DashboardOverview.react'; import DashboardNav from './DashboardNav.react'; import LoadingSpinner from './LoadingSpinner.react'; class Dashboard extends ...
src/main/resources/static/bower_components/jqwidgets/jqwidgets-react/react_jqxdocking.js
dhawal9035/WebPLP
/* jQWidgets v4.5.0 (2017-Jan) Copyright (c) 2011-2017 jQWidgets. License: http://jqwidgets.com/license/ */ import React from 'react'; let jqxDocking = React.createClass ({ getInitialState: function () { return { value: '' }; }, componentDidMount: function () { let options = this.manageAttributes(); ...
apps/marketplace/components/Icons/Circle/Circle.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import PropTypes from 'prop-types' const Circle = props => ( <svg className={props.className} viewBox="0 0 24 24" width="20px" height="24px" xmlns="http://www.w3.org/2000/svg"> <path fill={props.colour} d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm0 22C6....
src/client/entity-editor/alias-editor/alias-editor-merge.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2019 Nicolas Pelletier * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is...
src/components/search_bar.js
fahadqazi/react-redux
import React, { Component } from 'react'; class SearchBar extends Component{ constructor(props) { super(props) this.state = { term: '' }; } render (){ return( <div className="search-bar"> <input onChange={event => this.onInputChange(event.target.value) }...
src/Components/OutputButtonGroup.js
MaxGraey/Assembleash
import React, { Component } from 'react'; import Button from 'react-bootstrap/lib/Button'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; import OverlayTrigger from 'react-bootstrap/lib/OverlayTrigger'; import tooltip from './Tooltip'; import RadioButtonGroup from './RadioButtonGroup'; ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/ComputedProperties.js
reedsa/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load(prefix) { return [ { id: 1, [`${prefi...
src/register.js
slopen/storybook-addon-mocha-runner
import React from 'react'; import addons from '@kadira/storybook-addons'; require ('mocha/mocha.css'); require ('../styles.css'); class MochaRunner extends React.Component { constructor (props) { super (props); this.state = {}; } componentDidMount () { const {channel} = this.props; channel.on ('addon-m...
client/components/FlassCommon/AppBar/Badge/BadgeHistory.js
Nexters/flass
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import styled from 'styled-components'; import color from '~/css/base/colors.scss'; import BadgeItem from './BadgeItem'; const Tabs = styled.ul` height: 40px; padding: 1rem 1rem; list-style: none; border-bott...
src/io/ui/components/MessageInput/index.js
rikukissa/chat-client
import React from 'react'; import Textarea from 'react-textarea-autosize'; import './index.styl'; const ENTER_KEY = 13; export default React.createClass({ onKeyDown(e) { if(e.keyCode === ENTER_KEY && !e.shiftKey) { this.onSubmit(e); } }, onSubmit(e) { e.preventDefault(); const $el = Reac...
ui/src/components/workflow/executions/WorkflowList.js
d3sw/conductor
import React, { Component } from 'react'; import { Link, browserHistory } from 'react-router'; import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, MenuItem, Popover, OverlayTrigger, ButtonGroup, Grid, Row, Col, Table } from 'react-bootstrap'; import {BootstrapTable, TableHeaderColumn} from...
source/components/textBlock.react.js
gcsousa/ThinkReact-sousa
import React from 'react'; const Row = require('react-bootstrap/lib/Row'); const Col = require('react-bootstrap/lib/Col'); const style = { color:"blue" } const Tweets = (date, text, user) => ( <div> <h2>{user}</h2> <div style={style}>{text}</div> {date} </div> ); export default Tweets;
src/routes.js
tykarol/redux-isomorphic-starter-kit
import React from 'react'; import { Route, Redirect, IndexRoute } from 'react-router'; import { App, HomePage, TestsPage, TestPage, NotFoundPage } from 'containers'; export default ( <Route path="/" component={App}> <IndexRoute component={HomePage} /> <Route path="/index" comp...
src/components/Feedback/Feedback.js
iamfrontender/resume
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback extends Component { render() { return ( <div className="Feedback...
client/dev-env/src/ui/posts/PostList.js
fernandoxu/react-express-api-demo
import React, { Component } from 'react'; import axios from 'axios'; import Settings from '../../settings'; import map from 'lodash/fp/map'; class PostList extends Component { constructor() { super(); this.state = { posts: [] } } componentWillMount() { axios.get(`${Settings.host}/posts`).then...
src/server.js
jacyzon/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel/polyfill'; import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from 'express'; import React from 'react'; import './core/Dispatcher'; import './stores/AppStore'; import db from './core/Database'; imp...
packages/icons/src/md/communication/RingVolume.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdRingVolume(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M47.41 34.34A33.873 33.873 0 0 0 24 25C14.93 25 6.68 28.55.59 34.34c-.37.36-.59.87-.59 1.42 0 .55.22 1.05.59 1.41l4.95 4.95c.36.36.86.59 1.41.59.5...
src/components/Markdown.js
casesandberg/react-docs
'use strict' import React from 'react' import ReactCSS from 'reactcss' import markdown from '../helpers/markdown' import Code from './Code' export class Markdown extends ReactCSS.Component { classes() { return { 'default': { markdown: { fontSize: '17px', lineHeight: '24px', ...
client/App/App.js
dfuruya/BuoyCheck
import React from 'react'; import { Link } from 'react-router'; class App extends React.Component { constructor(props) { super(); this.state = { favoritesList: [], buoysList: [], fetchError: false, }; } getChildContext() { return { favoritesList: this.state.favoritesList,...
src/components/form-login/form-login.story.js
dima-bu/b2b.core
import React from 'react'; import {storiesOf, action} from '@kadira/storybook'; import FormLogin from './form-login'; import {Provider} from 'react-redux'; import createStore from './../../store/createStore'; const onSubmit = callback => () => callback(); const initialState = {}; const store = createStore(initialStat...
web/dashboard/src/main.js
unicesi/pascani-library
import React from 'react'; import ReactDOM from 'react-dom'; import ReactRethinkdb from 'react-rethinkdb'; import RethinkdbConfig from '../rethinkdb.config'; import 'jquery'; import 'metro'; import App from './App'; // Open a react-rethinkdb session (a WebSocket connection to the server) ReactRethinkdb.DefaultSession...
src/svg-icons/action/restore.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
pootle/static/js/editor/containers/EditorContainer.js
evernote/zing
/* * Copyright (C) Pootle contributors. * Copyright (C) Zing contributors. * * This file is a part of the Zing project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react...
react-flux-mui/js/material-ui/src/svg-icons/communication/phonelink-erase.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkErase = (props) => ( <SvgIcon {...props}> <path d="M13 8.2l-1-1-4 4-4-4-1 1 4 4-4 4 1 1 4-4 4 4 1-1-4-4 4-4zM19 1H9c-1.1 0-2 .9-2 2v3h2V4h10v16H9v-2H7v3c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0...
master-detail-0.13.x/src/app.js
knowbody/react-router-playground
import React from 'react' import ReactDOM from 'react-dom' import Router from 'react-router' import ContactStore from './ContactStore' var { Route, DefaultRoute, NotFoundRoute, RouteHandler, Link } = Router var App = React.createClass({ getInitialState() { return { contacts: ContactStore.getCont...
src/client/routes.js
jmicmoore/merit-badge-university
import React from 'react'; import {BrowserRouter} from 'react-router-dom' import App from './App'; const Routes = () => { return ( <BrowserRouter basename='/merit-badge-university'> <App/> </BrowserRouter> ); }; export default Routes;
packages/icons/src/md/editor/Publish.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPublish(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M10 8v4h28V8H10zm0 20h8v12h12V28h8L24 14 10 28z" /> </IconBase> ); } export default MdPublish;
src/components/Article/CommentContainer.js
vkarpov15/shidoshi
import CommentInput from './CommentInput'; import CommentList from './CommentList'; import { Link } from 'react-router'; import React from 'react'; const CommentContainer = props => { if (props.currentUser) { return ( <div className="col-xs-12 col-md-8 offset-md-2"> <div> <list-errors err...
app/javascript/mastodon/components/autosuggest_emoji.js
salvadorpla/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
public/js/cat_source/es6/components/header/cattol/bulk_selection_bar/BulkSelectionBar.js
Ostico/MateCat
import React from 'react' import SegmentConstants from '../../../../constants/SegmentConstants' import SegmentStore from '../../../../stores/SegmentStore' class BulkSelectionBar extends React.Component { constructor(props) { super(props) this.state = { count: 0, segmentsArray: [], changingS...
src/components/Publish/index.js
dloa/alexandria-librarian
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import Dropzone from 'react-dropzone'; import _ from 'lodash'; import PublishActions from './actions'; import publishStore from './store'; /* Publisher Components */ import Table from './components/table'; import Register from ...