path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
js/jqwidgets/demos/react/app/chart/100stackedareaseries/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxChart from '../../../jqwidgets-react/react_jqxchart.js';
class App extends React.Component {
render() {
let source =
{
datatype: 'tab',
datafields: [
{ name: 'Date' },
... |
lib/PressRippleAnimation.js | timomeh/react-native-material-bottom-navigation | import React from 'react'
import PropTypes from 'prop-types'
import { Animated, Dimensions, Platform } from 'react-native'
import * as easings from './utils/easing'
export default class PressRippleAnimation extends React.PureComponent {
static propTypes = {
x: PropTypes.number.isRequired,
y: PropTypes.numbe... |
packages/storybook-cmf/src/register.js | Talend/ui | import React from 'react';
import addons from '@storybook/addons';
export default function register() {
addons.register('react-storybook-cmf', api => {
const channel = addons.getChannel();
addons.addPanel('react-storybook-cmf/panel', {
title: 'CMF',
render: () => (
<div>
{channel} {api}
</div>
... |
acceptance/src/components/Nav.js | Autodesk/hig | import React from 'react';
import { Link } from 'react-router-dom';
function Nav({ routes }) {
return (
<nav>
<ul style={{ display: "flex" }}>
{routes.map(r => (
<div key={r.path} style={{ padding: "4px" }}>
<Link to={r.path}>{r.label}</Link>
</div>
))}
... |
src/app/Header.js | jiv-e/preact-widget-boilerplate | import React from 'react'
import logo from '../assets/logo.svg'
const Header = () => (
<div className="app-header">
<img src={logo} className="app-logo" alt="logo" />
<h1>Preact widget boilerplate</h1>
</div>
)
export default Header |
app/static/scripts/main.js | joshleeb/Tobio-PreRelease | import LandingView from './landingView/main.js';
import Layout from './layout/main.js';
import React from 'react';
import ReactDOM from 'react-dom';
require('./style/global.scss');
ReactDOM.render(
<Layout><LandingView /></Layout>,
document.getElementById('tobioweb')
);
|
fields/types/textarray/TextArrayFilter.js | matthieugayon/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormSelect } from 'elemental';
const MODE_OPTIONS = [
{ label: 'Contains', value: 'contains' },
{ label: 'Exactly', value: 'exactly' },
{ label: 'Begins with', value: 'beginsWith' },
{ label: 'Ends with', value: 'endsWith'... |
docs/src/app/components/pages/components/Toggle/Page.js | verdan/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 toggleReadmeText from './README';
import ToggleExampleSimple from './Exam... |
app/components/CountdownTimer/index.js | markmadej/foosball-ref | /*
* CountdownTimer
*
* This component represents the number of seconds left on a given rod.
* When clicked, this starts counting down the time.
*
*/
import React from 'react';
export default class CountdownTimer extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function
render() {
... |
src/components/ActivityIndicator.js | dingbat/react-native-mock | /**
* https://github.com/facebook/react-native/blob/master/Libraries/Components/ActivityIndicator/ActivityIndicator.js
*/
import React from 'react';
import NativeMethodsMixin from '../mixins/NativeMethodsMixin';
import View from './View';
import ColorPropType from '../propTypes/ColorPropType';
const { PropTypes } = ... |
packages/material-ui-icons/src/RepeatOne.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let RepeatOne = props =>
<SvgIcon {...props}>
<path d="M7 7h10v3l4-4-4-4v3H5v6h2V7zm10 10H7v-3l-4 4 4 4v-3h12v-6h-2v4zm-4-2V9h-1l-2 1v1h1.5v4H13z" />
</SvgIcon>;
RepeatOne = pure(RepeatOne);
RepeatOne.muiN... |
src/EditTextField.js | ml7757/To-Do-React | import React from 'react';
import { Link } from 'react-router';
class EditTextField extends React.Component {
constructor() {
super();
this.props = {
isEditable: true
};
this.state = {
editing: false,
value: ""
};
}
textChanged(event) {
console.log(this.refs.input.val... |
src/index.js | andela-milesanmi/mai-docs | import 'babel-polyfill';
import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import store from './store';
import Routes from './components/Routes.jsx';
import { setDefaultHeader } from './utils/helper';
import '../node_modules/materialize-css/dist/js/materialize.min';... |
routes.js | Sigfried/minerva | import React from 'react';
import { Route } from 'react-router';
import App from './containers/App';
import PatientViz from './components/PatientViz';
//import UserPage from './containers/UserPage';
//import RepoPage from './containers/RepoPage';
export default (
<Route path="/" component={App}>
<Route path="/pa... |
src/components/BricksList.js | pjamieson/react-redux-landing-page | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { selectTechnology } from '../actions/index.js';
import { Button } from 'reactstrap';
import './BricksList.css';
class BricksList extends Component {
renderList() {
return this.prop... |
app/index.js | PHPiotr/phpiotr4 | import React from 'react';
import {hydrate} from 'react-dom';
import {AppContainer, setConfig} from 'react-hot-loader';
import {Provider} from 'react-redux';
import {BrowserRouter as Router} from 'react-router-dom';
import 'isomorphic-fetch';
import configureStore from './configureStore';
import reducers from './reduce... |
app/containers/SettingsPage/TableEmployment.js | zebbra-repos/Zeiterfassung-medi | import React from 'react';
import PropTypes from 'prop-types';
import moment from 'moment';
class EmploymentSettingTable extends React.PureComponent {
render() {
const genRows = (sectionIndex) => {
const rows = [];
this.props.employments.forEach((employment, index) => {
const hours = ((emplo... |
src/utils/createContextWrapper.js | collinwu/react-bootstrap | import React from 'react';
/**
* Creates new trigger class that injects context into overlay.
*/
export default function createContextWrapper(Trigger, propName) {
return function (contextTypes) {
class ContextWrapper extends React.Component {
getChildContext() {
return this.props.context;
}... |
app/tabs/TabsView.ios.js | future-challenger/react-native-dribbble-app | /*
Created by Uncle Charlie, 2016/12/24
@flow
*/
import React from 'react'
import {
TabBarIOS,
Navigator
} from 'react-native'
import {connect} from 'react-redux'
import {switchTab} from '../actions'
class TabsView extends React.Component {
onTabSelect(tab) {
if(this.props.tab !== tab) {
this.pr... |
app/containers/PanelContainer/index.js | mwksl/HL7 | /*
*
* PanelContainer
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectPanelContainer from './selectors';
import styles from './styles.css';
export class PanelContainer extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
... |
app/javascript/mastodon/features/lists/index.js | rutan/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../compo... |
fields/types/relationship/RelationshipColumn.js | vokal/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.createClass({
displayName: 'Rel... |
client/src/components/BackButton/tests/BackButton-story.js | open-sausages/silverstripe-asset-admin | import React from 'react';
// eslint-disable-next-line import/no-extraneous-dependencies
import { storiesOf } from '@storybook/react';
import { Component as BackButton } from 'components/BackButton/BackButton';
storiesOf('AssetAdmin/BackButton', module)
.add('Default', () => (
<BackButton />
))
.add('With ba... |
postcss-with-react/app/routes.js | sunitJindal/react-tutorial | import React from 'react';
import IndexRoute from 'react-router/lib/IndexRoute';
import Route from 'react-router/lib/Route';
import App from './index';
import ProductList from './components/ProductList/container/ProductList';
import Product from './components/Product/container/Product';
export default (
<Route path... |
src/controls/History/index.js | jpuri/react-draft-wysiwyg | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { EditorState } from 'draft-js';
import LayoutComponent from './Component';
export default class History extends Component {
static propTypes = {
onChange: PropTypes.func.isRequired,
editorState: PropTypes.object,
modal... |
src/EasyDay.js | hwstovall/easy-day | //Library dependencies
import React from 'react';
import classNames from 'classnames';
/**
* _
* | |
* ___ __ _ ___ _ _ ______ __| | __ _ _ _
* / _ \/ _` / __| | | |______/ _` |/ _` | | | |
* | __/ (_| \__ \ |_| | | (_| | (... |
admin/src/components/Popout.js | geminiyellow/keystone | import classnames from 'classnames';
import React from 'react';
import { Button, Checkbox, InputGroup, SegmentedControl } from 'elemental';
import Portal from './Portal';
const Transition = React.addons.CSSTransitionGroup;
const sizes = {
arrowHeight: 12
};
var Popout = React.createClass({
displayName: 'Popout',
p... |
src/js/components/n-panel.js | bradwoo8621/parrot2 | import React from 'react'
import ReactDOM from 'react-dom'
import jQuery from 'jquery'
import classnames from 'classnames'
let $ = jQuery;
import {Envs} from '../envs'
import {Layout} from '../layout/layout'
import {NCollapsibleContainer, NHierarchyComponent} from './n-component'
class NPanelHeader extends NCollapsibl... |
js/components/radio/index.js | bengaara/simbapp |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container, Header, Title, Content, Button, Icon, List, ListItem, Radio, Text,Left,Right,Body } from 'native-base';
import { openDrawer } from '../../actions/drawer';
import styles from './styles';
class NHRadio extends Componen... |
src/client.js | kingpowerclick/kpc-web-backend | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createStore from './redux/create';
import ApiClient from './helpers/ApiClient';
import io from 'socket.io-client';
import... |
javascripts/entry.js | MitchLillie/brewhome | // require('../less/main.less')
//
// 'use strict'
//
// import React from 'react'
// import ReactDOM from 'react-dom'
// // var nano = require('nano')('https://brewhome.cloudant.com/hops/_all_docs')
// // var db = nano.use('hops')
//
// import HopSection from './components/hops/HopSection'
// import MaltSection from '... |
src/client/components/pages/entities/publisher.js | bookbrainz/bookbrainz-site | /*
* Copyright (C) 2017 Ben Ockmore
*
* 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 distr... |
node_modules/react-router/es/Router.js | aggiedefenders/aggiedefenders.github.io | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor) { if (!(insta... |
react-ui/src/components/UpdateShipping/UpdateShipping.js | morewines/refund-calculator-bigcommerce | import React from 'react';
//CSS
import './UpdateShipping.css';
//Modules
import FaEdit from 'react-icons/lib/fa/edit';
const UpdateShipping = ({
updateShippingCost,
handleShippingCostUpdate,
handleShippingSubmit
}) => {
return (
<div className="update-shipping-wrapper">
<h4>Update Shipping Cost</h... |
js/ExponentTestsApp.js | jolicloud/exponent | /**
* Copyright 2015-present 650 Industries. All rights reserved.
*
* @providesModule ExponentTestsApp
*/
import React from 'react';
import {
AppRegistry,
View,
} from 'react-native';
import FrameTests from 'FrameTests';
AppRegistry.registerComponent('FrameTests', () => FrameTests);
class ExponentTestsApp ext... |
src/Title.js | WindProphet/emu8086 | import React, { Component } from 'react';
import './Title.css'
class Title extends Component {
render() {
return (
<div className="title">
<a href="/">
<img src="symbol.png" alt="emu8086" style={{height: '50px', width: '100px', position: 'absolute', top: '3px', marginLeft: '20px'}}/>
... |
src/components/ImageUpload/ImageUpload.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
import AvatarEditor from 'react-avatar-editor';
import { defineMessages, FormattedMessage } from 'react-intl';
import withStyles from 'isomorphic-style-loader/withStyles';
import s from './ImageUpload.css';
import Box from '../Box';
import Button from '../B... |
app/javascript/mastodon/features/compose/components/text_icon_button.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
const iconStyle = {
height: null,
lineHeight: '27px',
width: `${18 * 1.28571429}px`,
};
export default class TextIconButton extends React.PureComponent {
static propTypes = {
label: PropTypes.string.isRequired,
title: PropTypes.string,
... |
src/routes/UIElement/dropOption/index.js | zhangjingge/sse-antd-admin | import React from 'react'
import { DropOption } from '../../../components'
import { Table, Row, Col, Card, message } from 'antd'
const DropOptionPage = () => <div className="content-inner">
<Row gutter={32}>
<Col lg={8} md={12}>
<Card title="默认">
<DropOption menuOptions={[{ key: '1', name: '编辑' }, ... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | ea-zhongxiaochun/angularStudy | import React from 'react';
// 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';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
Examples/Example.ChromiumFx.Mobx.UI/View/mainview/src/component/CommandButton.js | David-Desmaisons/Neutronium | import React, { Component } from 'react';
import { observer } from 'mobx-react';
import { Command } from './Command';
@observer
export default class CommandButton extends Component {
constructor(props) {
super(props);
this.handleClick = this.handleClick.bind(this);
this.command = new Command(this.props.c... |
src/svg-icons/action/assessment.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssessment = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/>
</SvgIcon>
);
ActionA... |
js/router/index.js | th0m4sb/networking-app | 'use strict';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { addNavigationHelpers, StackNavigator } from 'react-navigation';
import AppScreen from '../app';
const mapNavigationParamsToProps = (SomeComponent) => {
return (props) => {
const {navigation} = props;
con... |
src/js/components/icons/base/SocialFacebook.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
client/src/components/loading/Loading.js | thewizardplusplus/vk-group-stats | import React from 'react'
import CircularProgress from 'material-ui/CircularProgress'
import './loading.css'
export default class Loading extends React.Component {
render() {
return <div className="Loading-container">
<CircularProgress />
</div>
}
}
|
node_modules/react-bootstrap/es/MediaList.js | firdiansyah/crud-req | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
docs/app/Examples/elements/List/Variations/ListExampleCelledHorizontal.js | ben174/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleCelledHorizontal = () => (
<List celled horizontal>
<List.Item>About Us</List.Item>
<List.Item>Contact</List.Item>
<List.Item>Support</List.Item>
</List>
)
export default ListExampleCelledHorizontal
|
src/modules/components/icons/Close.js | ruebel/synth-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import Icon from './Icon';
const Close = ({
height = '24',
styleName,
width = '24',
fill = '#4682b4'
}) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width={width}
height={height}
className={styleName}
vi... |
src/routes.js | cjroebuck/react-redux-universal-hot-example | import React from 'react';
import {Route} from 'react-router';
import {
App,
Home,
Widgets,
About,
Login,
RequireLogin,
LoginSuccess,
Survey,
NotFound,
} from 'containers';
export default function(store) {
return (
<Route component={App}>
<Route path="/" component={Hom... |
packages/icons/src/md/action/TrendingDown.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdTrendingDown(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<polygon points="32 36 36.59 31.41 26.83 21.66 18.83 29.66 4 14.83 6.83 12 18.83 24 26.83 16 39.41 28.59 44 24 44 36" />
</IconBase>
);
}
export d... |
techCurriculum/ui/solutions/7.1/src/components/CardForm.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* 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/Containers/Disputes/DisputeResolution/Information/index.js | kleros/kleros-front | import React from 'react'
import TruncatedTextBox from '../../../../Components/TruncatedTextBox'
import './Information.css'
const Information = props => {
return (
<div className='information'>
<div className='information-box'>
<h2>Information</h2>
<TruncatedTextBox
text={props.te... |
src/components/image.js | eyeccc/eyeccc.github.io | import React from 'react';
import { useStaticQuery, graphql } from 'gatsby';
import Img from 'gatsby-image';
/*
* This component is built using `gatsby-image` to automatically serve optimized
* images with lazy loading and reduced file sizes. The image is loaded using a
* `StaticQuery`, which allows us to load the ... |
admin/client/App/screens/Item/components/RelatedItemsList/RelatedItemsList.js | cermati/keystone | import React from 'react';
import { Link } from 'react-router';
import { Alert, BlankState, Center, Spinner } from '../../../../elemental';
import DragDrop from './RelatedItemsListDragDrop';
import ListRow from './RelatedItemsListRow';
import { loadRelationshipItemData } from '../../actions';
import { TABLE_CONTROL_C... |
src/svg-icons/action/alarm-add.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
gatsby-strapi-tutorial/cms/plugins/upload/admin/src/containers/HomePage/index.js | strapi/strapi-examples | /*
*
* HomePage
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
// import { createStructuredSelector } from 'reselect';
import { injectIntl } from 'react-intl';
import { bindActionCreators, compose } from 'redux';
import { isEmpty } from 'lodash';
// You ... |
docs/src/app/components/pages/components/Badge/Page.js | ngbrown/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 badgeReadmeText from './README';
import BadgeExampleSimple from './Exampl... |
docs/app/Examples/collections/Message/Variations/MessageColorExample.js | jamiehill/stardust | import React from 'react'
import { Message } from 'stardust'
const MessageColorExample = () => (
<div>
<Message color='red'>Red</Message>
<Message color='orange'>Orange</Message>
<Message color='yellow'>Yellow</Message>
<Message color='olive'>Olive</Message>
<Message color='green'>Green</Message>... |
app/javascript/components/Filters/FormFilter/component.js | thecartercenter/elmo | import React from 'react';
import PropTypes from 'prop-types';
import Select2 from 'react-select2-wrapper/lib/components/Select2.full';
import { inject, observer } from 'mobx-react';
import 'react-select2-wrapper/css/select2.css';
import { getItemNameFromId, parseListForSelect2 } from '../utils';
import FilterOverlayT... |
test/integration/client-navigation/pages/stateless.js | azukaru/next.js | import React from 'react'
export default () => <h1>My component!</h1>
|
dapps/templates/demo/app/components/blockchain.js | iurimatias/embark-framework | import EmbarkJS from 'Embark/EmbarkJS';
import SimpleStorage from '../../embarkArtifacts/contracts/SimpleStorage';
import React from 'react';
import {Form, FormGroup, Input, HelpBlock, Button, FormText} from 'reactstrap';
class Blockchain extends React.Component {
constructor(props) {
super(props);
this.st... |
src/views/WidgetList/widgets/Stack/StackWidget.js | GovReady/GovReady-Agent-Client | import React, { Component } from 'react';
import { PropTypes as PT } from 'prop-types';
class StackWidget extends Component {
systemTable (systemData, assessmentState) {
return (
<div className='table-responsive'>
<table className='table'>
<tbody>
<tr>
<th>Os</t... |
src/components/common/svg-icons/image/looks-one.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksOne = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14h-2V9h-2V7h4v10z"/>
</SvgIcon>
);
ImageLooksOne = pure(ImageLooksOn... |
app/containers/NotFoundPage/index.js | ScoutingIJsselgroep/Jotihunt | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*/
import React from 'react';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import messages from './messages';
import {Helmet} from "react-helmet";
const image = require('./index.... |
src/pages/cerom.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Cerom' />
)
|
examples/huge-apps/components/App.js | rubengrill/react-router | /*globals COURSES:true */
import React from 'react'
import Dashboard from './Dashboard'
import GlobalNav from './GlobalNav'
class App extends React.Component {
render() {
return (
<div>
<GlobalNav />
<div style={{ padding: 20 }}>
{this.props.children || <Dashboard courses={COURSES... |
blueocean-material-icons/src/js/components/svg-icons/image/crop-7-5.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageCrop75 = (props) => (
<SvgIcon {...props}>
<path d="M19 7H5c-1.1 0-2 .9-2 2v6c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V9c0-1.1-.9-2-2-2zm0 8H5V9h14v6z"/>
</SvgIcon>
);
ImageCrop75.displayName = 'ImageCrop75';
ImageCrop75.muiName = 'SvgIcon';
ex... |
internals/templates/notFoundPage/notFoundPage.js | Rohitbels/KolheshwariIndustries | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
src/route/NoMatch/index.js | hustlrb/yjbAdmin | /**
* Created by yangyang on 2017/9/3.
*/
import React from 'react'
const NoMatch = () => <div>404, can't find page</div>
export default NoMatch |
src/js/pages/Proposals/Leisure/TypePage.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import translate from '../../../i18n/Translate';
import TopNavBar from '../../../components/TopNavBar/TopNavBar.js';
import '../../../../scss/pages/proposals/leisure/type.scss';
import StepsBar from "../../../components/ui/StepsBar/StepsBar";... |
app/components/shared/loadingIndicator.js | nypl-registry/browse | import React from 'react'
const LoadingIndicator = React.createClass({
getDefaultProps () {
return {
message: 'Loading ...'
}
},
renderSpinner () {
return (
<div className='spinner'>
<div className='bounce1'></div>
<div className='bounce2'></div>
<div className='b... |
src/features/ViewMenuItems/Views/AttributeHeader.js | erhathaway/cellular_automata | import React from 'react';
import styled, { css } from 'react-emotion';
import PropTypes from 'prop-types';
// has not docked
const ContainerNotDocked = css`
font-size: 15px;
`;
// dock right
const ContainerVerticalRight = css`
text-align: right;
`;
const Container = styled('h1')`
color: rgba(156,156,156,1);
... |
src/modules/pages/calendar/Menu.js | lenxeon/react | require('../../../css/menu.less')
import React from 'react';
class Menu extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false
};
}
render(){
return(
<div id="menu">
<div className="pure-menu">
<a className="pure-menu-heading" h... |
components/TitleSwitch/index.js | haaswill/open-wallet-app | import React from 'react';
import {
Switch,
Text,
View
} from 'react-native';
import styles from './styles';
const TitleSwitch = ({
containerStyle,
onChange,
title,
titleStyle,
value,
...rest
}) => (
<View style={[styles.container, containerStyle]}>
<Text style={[styles.title, titleStyle]}... |
src/components/seo.js | Smittey/smittey.github.io | /**
* SEO component that queries for data with
* Gatsby's useStaticQuery React hook
*
* See: https://www.gatsbyjs.org/docs/use-static-query/
*/
import React from 'react';
import PropTypes from 'prop-types';
import Helmet from 'react-helmet';
import { useStaticQuery, graphql } from 'gatsby';
function SEO({
des... |
src/templates/country.js | jackblackCH/zululo | import React from 'react';
import List from '../components/list';
import {connect} from 'react-redux';
const countryTemplate = (props) => {
const currentCountry = props.countries.find(country => country.name === props.params.country);
const items = props.items.filter(item => item.country_code === currentCount... |
src/components/svg/Logo.js | JoeTheDave/onitama | import PropTypes from 'prop-types';
import React from 'react';
export const Logo = ({ fillColor, styles, width }) => {
const height = width * 495 / 150;
return (
<div style={{ position: 'absolute', ...styles }}>
<svg width={`${height}px`} height={`${width}px`} viewBox="0 0 495 150" preserveAspectRatio="x... |
src/names/list/NameListHeader.js | VasilyShelkov/ClientRelationshipManagerUI | import React from 'react';
import { cyan500 } from 'material-ui/styles/colors';
export default ({ countId, nameCount, title, Icon }) => (
<div style={{ textAlign: 'center', marginTop: '10px' }}>
<Icon style={{ height: '100px', width: '100px' }} color={cyan500} />
<div style={{ display: 'flex', justifyContent... |
src/js/utils/router-mapping.js | UNECE/Model-Explorer | import React from 'react'
/*
React router doesn't support dot (.) in the URL (it won't load the page if we
access it directly). We translate dots to underscores.
*/
//It will be called when building the URL
const pointToUnderscore = str => {
//We throw an error if the original string contains an underscore (safety
... |
app/dress.js | wvicioso/dapr | import React, { Component } from 'react';
import {
Navigator,
StyleSheet,
Text,
TextInput,
ScrollView,
TouchableOpacity,
View,
Image,
ListView
} from 'react-native';
const Carousel = require('react-native-carousel');
const SideMenu = require('react-native-side-menu');
export default class Dress exte... |
docs/src/NotFoundPage.js | jesenko/react-bootstrap | import React from 'react';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const NotFoundPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="" />
<PageHeader
title="404"
subT... |
frontend/src/components/Metadata.js | mathemage/urednicci | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button, ButtonGroup, ButtonToolbar, Panel } from 'react-bootstrap';
import {
all, compose, contains, either, filter, flatten, head, keys, is, isEmpty, isNil, join, map,
mergeAll, pick, pluck, reject, t... |
src/App.js | abdulhannanali/graphql-sandbox | import React, { Component } from 'react';
import GraphiQL from 'graphiql';
import fetch from 'isomorphic-fetch';
import Schema from './schema.js';
import { graphql } from 'graphql';
GraphiQL.Logo = class Logo extends Component {
render() {
let style = {
fontWeight: 800,
fontSize: 16,
color: "#2... |
node_modules/react-bootstrap/es/FormControlFeedback.js | yeshdev1/Everydays-project | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/AdvancedDownloadWrapper.js | springload/reusable-d3-charts | import React from 'react';
import ReactDOM from 'react-dom';
import d3 from 'd3';
/**
* React bridge to a D3 chart.
*/
export default React.createClass({
propTypes: {
id: React.PropTypes.string.isRequired,
dataset: React.PropTypes.object.isRequired,
filterFrom: React.PropTypes.number,
... |
src/pages/app/update-account.js | getinsomnia/insomnia.rest | import React from 'react';
import PropTypes from 'prop-types';
import * as session from '../../lib/session';
import App from '../../lib/app-wrapper';
class ChangeAccountDetails extends React.Component {
constructor(props) {
super(props);
const { whoami } = this.props;
this.state = {
loading: false... |
examples/library/src/index.foobar.js | carteb/carte-blanche | import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Root from './containers/Root';
render(
<AppContainer>
<Root />
</AppContainer>,
document.getElementById('root')
);
if (module.hot) {
module.hot.accept('./containers/Root', () => {
// ... |
ios_views/scanBarCode.js | zhongzhu/aizengshu | 'use strict';
import React, { Component } from 'react';
import {
AppRegistry,
Dimensions,
StyleSheet,
Text,
TouchableHighlight,
View,
AlertIOS
} from 'react-native';
import Camera from 'react-native-camera';
export default class ScanBarCode extends Component {
render() {
return (
<View style... |
src/parser/demonhunter/havoc/modules/resourcetracker/FuryDetails.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Tab from 'interface/others/Tab';
import SPELLS from 'common/SPELLS';
import { formatPercentage, formatNumber } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import ResourceBreakdown fro... |
src/components/timeblocks_picker.js | Scya597/Caltcha | // caltcha-timeblocks-picker
// Dependencies: react-bootstrap
// Props:
// [Input]
// minDuration,
// allowOnly: Array,
// hasNext: has next day,
// nextOffset,
// selectedBlocks: Array,
// [Output]
// onBlockClick: return selected Array, need a function to process,
import React, { Component } from 'react';
import { C... |
app/client/components/left-pane/index.js | ziliwesley/electron-pouchdb-react | import React from 'react';
import { Container, Tabs } from 'amazeui-react';
import CandidateList from './candidate-list.jsx';
import FavoriteList from './favorite-list.jsx';
import SearchBox from './search-box.jsx';
import SettingPanel from './setting-panel.jsx';
import Component from '../base-component.jsx';
export d... |
blueocean-material-icons/src/js/components/svg-icons/image/lens.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageLens = (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 2z"/>
</SvgIcon>
);
ImageLens.displayName = 'ImageLens';
ImageLens.muiName = 'SvgIcon';
export default ImageLens;
|
src/js/react/components/App/Register.js | mandricore/react-vue2-apollo | import React from 'react';
import { graphql } from 'react-apollo';
import gql from 'graphql-tag';
import { hashHistory } from 'react-router';
import { Button, Modal, OverlayTrigger, NavItem, Form, FormControl, FormGroup, Row, Col, ControlLabel} from 'react-bootstrap';
import config from './../../../config';
const Crea... |
src/collections/Form/Form.js | aabustamante/Semantic-UI-React | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useKeyOnly,
useWidthProp,
} from '../../lib'
import FormButton from './FormButton'
import FormCheckbox from './FormCheckb... |
assets/jqwidgets/demos/react/app/treegrid/columncheckboxes/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js';
class App extends React.Component {
componentDidMount() {
this.refs.myTreeGrid.expandRow(1);
this.refs.myTreeGrid.expandRow(2);
}
render () {
// pre... |
src/svg-icons/maps/restaurant.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRestaurant = (props) => (
<SvgIcon {...props}>
<path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/>
</SvgIcon>
)... |
stories/textfield.stories.js | isogon/styled-mdl | import React from 'react'
import { storiesOf } from '@storybook/react'
import wrapStory from './decorators/wrapStory'
import Error from '../src/components/textfield/demos/Error.js'
import HelperText from '../src/components/textfield/demos/HelperText.js'
import MultiLine from '../src/components/textfield/demos/MultiLin... |
frontend/src/components/pages/NotFound/NotFound.js | thebillkidy/Brewr-Site | import MainLayout from '../../layouts/MainLayout';
import React from 'react';
export default class NotFound extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<MainLayout>
Not Found
</MainLayout>
);
}
}
|
frontend/modules/base/components/Footer.js | rustymyers/OpenEats | import React from 'react'
import {
injectIntl,
intlShape,
FormattedMessage
} from 'react-intl';
require("../css/footer.css");
class Footer extends React.Component{
render() {
return (
<footer className="footer print-hidden">
<div className="container">
<p className="text-mute... |
app/main.js | palmerev/can-i-eat-this | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.