path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js | shengnian/shengnian-ui-react | import React from 'react'
import { Feed } from 'shengnian-ui-react'
const events = [
{
date: '1 Hour Ago',
image: '/assets/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
},
{
date: '4 days ago',
image: '/assets/images/avatar/small/helen.jpg',... |
client/node_modules/uu5g03/dist-node/bricks/loading.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import BaseMixin from '../common/base-mixin.js';
import ElementaryMixin from '../common/elementary-mixin.js';
import ContentMixin from '../common/content-mixin.js';
import ColorSchemaMixin from '../common/color-schema-mixin.js';
import './loading.less';
export const Loading = React.createCl... |
src/svg-icons/action/thumb-up.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionThumbUp = (props) => (
<SvgIcon {...props}>
<path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-... |
frontend-dev/src/containers/EditorApp/EditorApp.js | akeating14/data-viz | import React, { Component } from 'react';
import {DropdownButton, MenuItem} from 'react-bootstrap'
import Select from 'react-select';
import Editor from '../Editor/Editor';
import DisplayJsonTable from '../DisplayJsonTable/DisplayJsonTable';
import ChartNavbar from '../ChartNavbar/ChartNavbar';
import LineGraph from '.... |
app/stack/two/Keys/index.js | antgod/react-stack | import React from 'react'
import createFragment from 'react-addons-create-fragment'
const data = [{
sid: '600211',
name: 'Cam1',
}, {
sid: '600243',
name: 'Arcthur',
}, {
sid: '600225',
name: 'Echo',
}]
// 我们把 key 设成了序号,这么做的确不会报警告了,但这是非常低效的做法。我们在生产环境下常常犯这样的错误,这个 key 是每次用来做 Virtual DOM diff 的,
// 每一位同学都用... |
core/router.js | sloiselle/reptile | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/js/modules/DiagramBox.js | fredyagomez/reactjs-D3-V4-grommet |
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import * as d3 from 'd3';
export default class DiagramV1 extends Component {
constructor (props) {
super(props);
this.childHandleClick = this.childHandleClick.bind(this);
this.state = {fillOpacity: 1e-6, x: props.lett... |
node_modules/react-router/es6/Router.js | save-password/save-password.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 _objectWithoutProperties(obj, keys) { var target = {... |
lib/cli/src/frameworks/react/js/Header.stories.js | kadirahq/react-storybook | import React from 'react';
import { Header } from './Header';
export default {
title: 'Example/Header',
component: Header,
};
const Template = (args) => <Header {...args} />;
export const LoggedIn = Template.bind({});
LoggedIn.args = {
user: {},
};
export const LoggedOut = Template.bind({});
LoggedOut.args =... |
src/svg-icons/navigation/first-page.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFirstPage = (props) => (
<SvgIcon {...props}>
<path d="M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"/>
</SvgIcon>
);
NavigationFirstPage = pure(NavigationFirstPage);
NavigationFirstPag... |
app/javascript/components/Notification.js | Vizzuality/forest-atlas-landscape-cms | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
class Notification extends React.Component {
componentDidMount() {
this.setFocus();
if (this.props.autoCloseTimer !== -1) {
this.timer = setTimeout(this.props.onClose, this.props.autoCloseTimer * 1000);
... |
examples/huge-apps/app.js | 1000hz/react-router | import React from 'react';
import { history } from 'react-router/lib/HashHistory';
import { Router } from 'react-router';
import AsyncProps from 'react-router/lib/experimental/AsyncProps';
import stubbedCourses from './stubs/COURSES';
var rootRoute = {
component: AsyncProps,
// iunno?
renderInitialLoad() {
... |
src/modules/notifier/NotifierView.js | justinhaaheim/empower-app | /**
Name: NotifierView
Description:
TODO:
Copyright (c) 2017-present Justin Haaheim
This file is subject to the terms and conditions defined in
file 'LICENSE', which is part of this source code package.
********************************************** */
// @flow
import React, { Component } from 'react'... |
components/GuideSearchWidget/GuideSearchWidget.js | ben181231/skygear-doc | import _ from 'lodash';
import React, { Component } from 'react';
import Autosuggest from 'react-autosuggest';
import algoliasearch from 'algoliasearch';
import GuideSearchItem from './GuideSearchItem';
import { algoliaApplicationID, algoliaSearchApiKey } from '../../config';
import algoliaLogo from '../../static/im... |
src/components/table/TableCell.js | nullgr4vity/react-redux-table | import React from 'react';
class TableCell extends React.PureComponent {
render() {
if (!this.props.value) {
return (<td />);
}
return (
<td>{this.props.value}</td>
);
}
}
TableCell.propTypes = {
value: React.PropTypes.string
};
export default TableCell;
|
packages/wix-style-react/src/TableActionCell/docs/examples/DisabledPrimaryExample.js | wix/wix-style-react | import React from 'react';
import { classes } from '../TableActionCell.story.st.css';
import { TableActionCell } from 'wix-style-react';
const Example = () => (
<div className={classes.exampleRow}>
<TableActionCell
dataHook="story-primary-disabled"
primaryAction={{
text: 'Edit',
disa... |
client/src/javascript/components/general/Size.js | stephdewit/flood | import {FormattedNumber, injectIntl} from 'react-intl';
import React from 'react';
import {compute, getTranslationString} from '../../util/size';
class Size extends React.Component {
renderNumber(computedNumber) {
if (Number.isNaN(computedNumber.value)) {
return '—';
}
return <FormattedNumber val... |
pkg/ui/src/components/ResourceNotFoundPage.js | matt-deboer/kuill | import React from 'react'
import PropTypes from 'prop-types'
import {blueA400, grey200, grey600, grey700, redA700} from 'material-ui/styles/colors'
import { connect } from 'react-redux'
import { requestKinds } from '../state/actions/apimodels'
import { routerActions } from 'react-router-redux'
import {Card, CardHeader,... |
app/containers/NotFoundPage/index.js | sarea-alkebaly/way-finding | /**
* 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... |
demo/components/eventplanner/EventPlannerDemo.js | f0zze/rosemary-ui | import React from 'react';
import DemoWithSnippet from '../../layout/DemoWithSnippet';
import EventPlanner from '../../../src/components/eventplanner';
import events from './events';
import nonWorkingDays from './nonWorkingDays';
import MyEvent from './ExampleMyEventComponent';
export default class EventPlannerDemo ... |
app/containers/Css1/wall.js | ledminh/css-pages | import styled, {keyframes} from 'styled-components';
import React from 'react';
const Style = styled.div`
position: fixed;
top: 50%;
transform: translate(${props => (props.position === 'left')? '-100%' : '100%'}, -25%);
${props => (props.position === 'left')? 'left: 25%' : 'left: 75%'}
`;
const Front = style... |
app/pages/index/Auth/index.js | czy0729/react-alumni | /**
* 填写认证信息
* [!] 作为管理员创建的第4步时,成功后跳转到创建成功结果页
* [!] 作为用户加入校友录时,有留言字段,提交成功后,等待审核返回我的校友录
* [!] 取得当前用户的个人信息,并作为默认值
* @Date: 2017-03-08 10:53:49
* @Last Modified by: Administrator
* @Last Modified time: 2017-03-19 07:10:05
*/
'use strict';
import React from 'react';
import { form, observer } from 'decorators';
i... |
docs/app/Examples/elements/Container/Variations/ContainerExampleAlignment.js | clemensw/stardust | /* eslint-disable max-len */
import React from 'react'
import { Container, Divider } from 'semantic-ui-react'
const ContainerExampleAlignment = () => (
<div>
<Container textAlign='left'>
Left Aligned
</Container>
<Container textAlign='center'>
Center Aligned
</Container>
<Container t... |
example/examples/LiteMapView.js | ali-alamine/react-native-maps | import React from 'react';
import {
StyleSheet,
Dimensions,
ScrollView,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.0922;... |
spec/javascripts/jsx/gradezilla/default_gradebook/components/GradingPeriodFilterSpec.js | venturehive/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
src/components/gallery.js | osxi/nuclear-gallery | import Image from './image';
import React from 'react';
import getters from '../models/image/getters';
import reactor from '../reactor';
export default React.createClass({
mixins: [reactor.ReactMixin],
getDataBindings() {
return {
images: getters.images
}
},
render() {
var imageNodes = this... |
js/ShowCard.js | rajspselva/complete-intro-to-react | import React from 'react'
import { Link } from 'react-router'
const { string } = React.PropTypes
const ShowCard = React.createClass({
propTypes: {
poster: string.isRequired,
title: string.isRequired,
year: string.isRequired,
description: string.isRequired,
imdbID: string.isRequired
},
render ... |
src/components/IncomeTable.react.js | codeforamerica/nyc-january-project | "use strict";
import React, { Component } from 'react';
// Bootstrap
import { Table, Panel } from 'react-bootstrap';
export default class IncomeTable extends Component {
render() {
console.log('got here')
return(
<Panel>
<Table>
<thead>
<tr>
<th>Item</th>
... |
src/interface/home/NotFound.js | fyruna/WoWAnalyzer | import React from 'react';
import { Link } from 'react-router-dom';
const NotFound = () => (
<div className="container">
<h1>404: Content not found</h1>
<Link to="/">Go back home</Link>
</div>
);
export default NotFound;
|
src/containers/create_account.js | TedtheDev/Tic-Tac-Toe | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createPlayer } from '../actions/index';
import { bindActionCreators } from 'redux';
import { Redirect } from 'react-router-dom';
import RaisedButton from 'material-ui/RaisedButton';
import TextField from 'material-ui/TextField';
i... |
src/React/Widgets/SelectionEditorWidget/LegendIcon.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import SvgIconWidget from '../SvgIconWidget';
export default function render(props) {
if (!props.getLegend) {
return <span>{props.name}</span>;
}
const style = { fill: props.getLegend(props.name).color };
const newStyle = Object.assign(
{ ... |
envkey-react/src/components/env_manager/env_grid.js | envkey/envkey-app | import React from 'react'
import h from "lib/ui/hyperscript_with_helpers"
import EnvGridContent from './env_grid_content'
import LabelRow from './label_row'
import EntryForm from './entry_form'
export default function(props) {
const
renderAddVar = ()=>{
if(!props.isReadOnly &&
!(props.editingMulti... |
app/javascript/mastodon/components/status_content.js | pso2club/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { isRtl } from '../rtl';
import { FormattedMessage } from 'react-intl';
import Permalink from './permalink';
import classnames from 'classnames';
import PollContainer from 'mastodon/containe... |
screens/AppPortalScreen/index.js | nattatorn-dev/expo-with-realworld | import React from 'react'
import { ScrollView } from 'react-native'
import PropTypes from 'prop-types'
import AppPortal from './AppPortalContainer'
import { HeaderNavigation } from '@components'
const AppPortalScreen = ( { navigation } ) => (
<AppPortal navigation={navigation} />
)
AppPortalScreen.navigationOption... |
src/server.js | cheeselover/WCF2015 | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/svg-icons/content/clear.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentClear = (props) => (
<SvgIcon {...props}>
<path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/>
</SvgIcon>
);
ContentClear = pure(ContentClea... |
src/layouts/CoreLayout/CoreLayout.js | ronihcohen/magic-vote | import React from 'react'
import PropTypes from 'prop-types'
import Navbar from 'containers/Navbar'
import classes from './CoreLayout.scss'
import 'styles/core.scss'
export const CoreLayout = ({ children }) => (
<div className={classes.container}>
<Navbar />
<div className={classes.children}>{children}</div>... |
src/components/LoaderCentered.js | ademuk/features | import React from 'react';
import { Loader } from 'semantic-ui-react';
const LoaderCentered = () => {
return <Loader active inline='centered' />
};
export default LoaderCentered; |
modules/gui/src/app/home/body/process/recipe/classification/panels/classificationToolbar.js | openforis/sepal | import {Legend} from '../legend/legend'
import {RecipeActions} from '../classificationRecipe'
import {Retrieve} from './retrieve/retrieve'
import {Toolbar} from 'widget/toolbar/toolbar'
import {compose} from 'compose'
import {msg} from 'translate'
import {selectFrom} from 'stateUtils'
import {setInitialized} from 'app/... |
src/svg-icons/maps/directions-walk.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsWalk = (props) => (
<SvgIcon {...props}>
<path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-... |
acceptance/src/pages/TogglePage.js | Autodesk/hig | import React from 'react';
import Toggle from '@hig/toggle';
import Label from '@hig/label';
import Spacer from '@hig/spacer';
import ThemeRepeater from '../components/ThemeRepeater';
const states = [
{ label: "interactive", props: {} },
{ label: "on", props: { on: true } },
{ label: "disabled", props: { disabl... |
client/src/components/main-component.js | jesusreal/learn-with-jesus | import React from 'react';
import {
BrowserRouter as Router,
Route,
Link
} from 'react-router-dom';
import WordsSvc from '../words-service';
import {WORDS_LISTS_METADATA} from './../constants';
import GameComponent from './game/game-component';
import NewWordComponent from './new-word/new-word-component';
import... |
node_modules/react-color/examples/Sketch.js | together-web-pj/together-web-pj | 'use strict'
import React from 'react'
import reactCSS from 'reactcss'
import { SketchPicker } from 'react-color'
class SketchExample extends React.Component {
state = {
displayColorPicker: false,
color: {
r: '241',
g: '112',
b: '19',
a: '1',
},
};
handleClick = () => {
... |
app/main.js | raptiq/voting-app | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
let history = createBrowserHistory();
ReactDOM.render(<Router history={history}>{routes}</Router>, document.getElementById... |
packages/react/src/views/Default.js | wq/wq.app | import React from 'react';
import { useRouteInfo, useComponents } from '../hooks';
import { pascalCase } from 'pascal-case';
export default function Default() {
const { name } = useRouteInfo(),
{ View, Text, DebugContext } = useComponents();
return (
<View>
<Text>
T... |
src/components/Messages/Loading/index.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import SearchProgramaticSet from 'components/SearchProgramaticSet'
const Loading = ({ message = '', title = 'Loading' }) => (
<div className='Loading content'>
<SearchProgramaticSet open={false} />
<h1>{title}</h1>
<div className='sk-three-boun... |
src/pages/Boilerplates.js | marktani/react-native-express-1 | import React from 'react'
import markdown from 'markdown-in-js'
import markdownOptions from '../utils/MarkdownOptions'
import DefaultPage from './DefaultPage'
import { GithubRepositoryLink } from '../components'
const content = markdown(markdownOptions)`
Setting up a new React Native project can be very time-consumin... |
src/client/components/dialogs/SignInDialog.js | vanpaz/vbi | import React from 'react'
import Dialog from 'material-ui/lib/dialog'
import FlatButton from 'material-ui/lib/flat-button'
import bindMethods from '../../utils/bindMethods'
/**
* Usage:
*
* <SignInDialog ref="myDialog" />
*
* this.refs.myDialog.show()
* this.refs.myDialog.hide()
* this.refs.my... |
src/components/tooltip.js | KovDimaY/React-Highcharts | import React from 'react';
//possible position of tooltip
export const TOP = 'top';
export const RIGHT = 'right';
export const BOTTOM = 'bottom';
export const LEFT = 'left';
export default function Tooltip(props) {
const {
text,
addClass,
position = BOTTOM,
hoverElement = <span className="help__icon... |
components/page/footer/social.js | sgmap/inspire | import React from 'react'
const Social = () => (
<ul className='social'>
<li>
<a href='https://twitter.com/geodatagouv'>
<img src='/static/images/social/twitter.svg' alt='Twitter' />
</a>
</li>
<li>
<a href='https://github.com/etalab/geo.data.gouv.fr'>
<img src='/static/... |
addons/knobs/src/components/types/Text.js | enjoylife/storybook | import PropTypes from 'prop-types';
import React from 'react';
import Textarea from 'react-textarea-autosize';
const styles = {
display: 'table-cell',
boxSizing: 'border-box',
verticalAlign: 'middle',
height: '26px',
width: '100%',
outline: 'none',
border: '1px solid #f7f4f4',
borderRadius: 2,
fontSi... |
information/blendle-frontend-react-source/app/higher-order-components/withViewportSize.js | BramscoChill/BlendleParser | import React, { Component } from 'react';
import { debounce } from 'lodash';
import { wrapDisplayName } from 'recompose';
import { isMobileBreakpoint, isTabletBreakpoint } from 'helpers/viewport';
const defaultOptions = {
debounce: 10,
};
export default (options = defaultOptions) => ComposedComponent =>
class Wit... |
client-web/client-web/src/components/AccountNavbar.js | ppsari/final | import React from 'react';
import $ from 'jquery';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import axios from 'axios'
import './AccountNavbar.css'
import { logout } from '../helpers/auth';
import { listenRequest } from '../helpers/request';
import Notification from './Notificatio... |
examples/src/app.js | PetrGlad/react-select | /* eslint react/prop-types: 0 */
import React from 'react';
import Select from 'react-select';
import CustomRenderField from './components/CustomRenderField';
import MultiSelectField from './components/MultiSelectField';
import RemoteSelectField from './components/RemoteSelectField';
import SelectedValuesField from '... |
renderer/vectors/fullscreen.js | wulkano/kap | import React from 'react';
import Svg from './svg';
const FullscrenIcon = props => (
<Svg {...props}>
<path d="M3 5v4h2V5h4V3H5a2 2 0 0 0-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4a2 2 0 0 0 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5a2 2 0 0 0-2-2z"/>
</Svg>
);
export default FullscrenIcon;
|
src/svg-icons/maps/local-hospital.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalHospital = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-1 11h-4v4h-4v-4H6v-4h4V6h4v4h4v4z"/>
</SvgIcon>
);
MapsLocal... |
app/containers/FeaturePage/index.js | activedecay/musical-meme | /*
* FeaturePage
*
* List all the features
*/
import React from 'react';
import Helmet from 'react-helmet';
import messages from './messages';
import { FormattedMessage } from 'react-intl';
import H1 from 'components/H1';
import List from './List';
import ListItem from './ListItem';
import ListItemTitle from './Li... |
src/client/demo3/main.js | hihl/react-demo | /**
* Created by yzf on 16/5/30.
*/
import cc from './style.scss';
import React from 'react';
import ReactDOM from 'react-dom';
import { Components } from 'shieldBase';
const { DatePicker } = Components;
ReactDOM.render(<DatePicker />, document.getElementById('content'));
|
src/bootstrap/Wrapper.js | EehMauro/dyscalculia-web | import React from 'react';
import { connect } from 'react-redux';
import Helmet from 'react-helmet';
import { MuiThemeProvider } from 'material-ui/styles';
import { getTheme, colors } from '../conventions';
class Wrapper extends React.Component {
render () {
return (
<div>
<Helmet
title=... |
src/pages/shante.js | vitorbarbosa19/ziro-online | import React from 'react'
import BrandGallery from '../components/BrandGallery'
export default () => (
<BrandGallery brand='Shante' />
)
|
docs/server.js | andrew-d/react-bootstrap | import 'colors';
import React from 'react';
import express from 'express';
import path from 'path';
import Router from 'react-router';
import routes from './src/Routes';
import httpProxy from 'http-proxy';
import metadata from './generate-metadata';
import ip from 'ip';
const development = process.env.NODE_ENV !== 'p... |
packages/material-ui-icons/src/Brightness6.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Brightness6 = props =>
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z" />
... |
src/ui/components/Footer.js | notifapi/notifapi-web | import React from 'react';
import { Component } from 'react';
export default class Footer extends Component {
componentWillMount() {
this.props.doCurrentYear();
}
render() {
return(
<footer>
<div>© {this.props.currentYear} NotifAPI</div>
</footer>
... |
src/pages/404.js | asunny72/IdeaNation | import React from 'react'
import Layout from '../components/layout'
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
src/RIEBase.js | kaivi/riek | import React from 'react';
import PropTypes from 'prop-types';
const debug = require('debug')('RIEBase');
export default class RIEBase extends React.Component {
constructor(props){
super(props);
if (!this.props.propName) throw "RTFM: missing 'propName' prop";
if (!this.props.change) throw... |
templates/rubix/laravel/laravel-seed/src/common/footer.js | jeffthemaximum/Teachers-Dont-Pay-Jeff | import React from 'react';
import {
Row,
Col,
Grid,
} from '@sketchpixy/rubix';
export default class Footer extends React.Component {
state = {
version: 0
};
componentDidMount() {
this.setState({
version: document.body.getAttribute('data-version')
});
}
render() {
var year = ne... |
src/js/components/icons/status/CriticalStatus.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
const CLASS_ROOT = CSSClassnames.STATUS_ICON;
let _lastId = 0;
export defa... |
src/parser/hunter/beastmastery/modules/spells/azeritetraits/FeedingFrenzy.js | FaideWW/WoWAnalyzer | import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import StatTracker from 'parser/shared/modules/StatTracker';
import calculateBonusAzeriteDamage from 'parser/core/calculateBonusAzeriteDamage';
import { formatNumber, formatPercentage } from 'common/format';
import TraitStatisticBox, { STATISTIC_OR... |
app/javascript/mastodon/containers/mastodon.js | Chronister/mastodon | import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'reac... |
src/svg-icons/navigation/chevron-right.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationChevronRight = (props) => (
<SvgIcon {...props}>
<path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/>
</SvgIcon>
);
NavigationChevronRight = pure(NavigationChevronRight);
NavigationChevronRigh... |
src/scenes/home/codeSchools/onlineSchools/onlineSchools.js | miaket/operationcode_frontend | import _ from 'lodash';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Section from 'shared/components/section/section';
import SchoolCard from 'shared/components/schoolCard/schoolCard';
import ImageCard from 'shared/components/imageCard/imageCard';
import edxLogo from 'images/mooc... |
node_modules/react-bootstrap/es/HelpBlock.js | mohammed52/door-quote-automator | 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 ... |
frontend/src/routes.js | felipear89/promotion-admin | import React from 'react';
import { Router, Route, IndexRoute, hashHistory } from 'react-router';
// Containers
import Full from './containers/Full/'
import { onPromotionsEnter } from './routes_callback'
import Dashboard from './views/Dashboard/'
import NewPromotion from './views/promotion/new_promotion'
import ListP... |
app/javascript/mastodon/containers/mastodon.js | kirakiratter/mastodon | import React from 'react';
import { Provider, connect } from 'react-redux';
import PropTypes from 'prop-types';
import configureStore from '../store/configureStore';
import { INTRODUCTION_VERSION } from '../actions/onboarding';
import { BrowserRouter, Route } from 'react-router-dom';
import { ScrollContext } from 'reac... |
src/containers/SongSearchScreen.js | varmais/profitti | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { ScrollView } from 'react-native';
import { connect } from 'react-redux';
import AppStyles from '../helpers/Styles';
import SongButton from '../components/songs/SongButton';
import { resetSearchSongs } from '../redux/songs';
import Na... |
app/javascript/tagging/components/InnerComponents/CategoryModifier.js | ManageIQ/manageiq-ui-classic | import React from 'react';
import PropTypes from 'prop-types';
import { Column, FormGroup } from 'carbon-components-react';
import TagSelector from './TagSelector';
import TaggingPropTypes from '../TaggingPropTypes';
const CategoryModifier = ({
tagCategories,
onTagCategoryChange,
selectedTagCategory,
categoryL... |
experiments/react-webpack/src/index.js | roblarsen/flotsam-and-jetsam | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
examples/query-params/app.js | okcoker/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
node_modules/react-router/es6/RouteContext.js | HasanSa/hackathon | import warning from './routerWarning';
import React from 'react';
var object = React.PropTypes.object;
/**
* The RouteContext mixin provides a convenient way for route
* components to set the route in context. This is needed for
* routes that render elements that want to use the Lifecycle
* mixin to prevent trans... |
src/component/Projects/MinorProject.js | dentemple/developer-portfolio | import React from 'react'
import PropTypes from 'prop-types'
import ExternalLink from '../ExternalLink'
const ListItem = ({ children }) => {
return (
<li>
<b>{ children }</b>
</li>
)
}
const MinorProject = ({ minor }) => {
return (
<ListItem>
<ExternalLink
text={minor.name}
... |
src/ui/sidebar/component-inspection/editable-types/TypeSelect.js | circuitsim/circuit-simulator | import React from 'react';
import radium from 'radium';
import R from 'ramda';
const { PropTypes } = React;
const getStyles = ({COLORS}) => ({
outer: {
padding: '10px 0px',
width: '100%',
display: 'flex',
justifyContent: 'space-around'
},
options: {
// flexGrow: 1
cursor: 'pointer'
},
... |
app/javascript/mastodon/components/missing_indicator.js | increments/mastodon | import React from 'react';
import { FormattedMessage } from 'react-intl';
const MissingIndicator = () => (
<div className='regeneration-indicator missing-indicator'>
<div>
<div className='regeneration-indicator__figure' />
<div className='regeneration-indicator__label'>
<FormattedMessage id=... |
src/components/fields/TextAreaField.js | streamr-app/streamr-web | import React from 'react'
import cx from 'classnames'
import FieldErrors from './FieldErrors'
export default ({
id,
label,
className,
errors = [],
children,
...rest
}) => (
<div className={cx('field text-area-field', className, { errors: errors.length > 0 })}>
{label &&
<label htmlFor={id}>{... |
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js | jonobr1/cdnjs | /*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof def... |
html.js | hiasinho/trade-iq | import React from 'react'
import Helmet from "react-helmet"
import { prefixLink } from 'gatsby-helpers'
import mixpanel from './utils/mixpanel'
const BUILD_TIME = new Date().getTime()
module.exports = React.createClass({
propTypes () {
return {
body: React.PropTypes.string,
}
},
render () {
... |
Examples/UIExplorer/js/ActivityIndicatorExample.js | browniefed/react-native | /**
* Copyright (c) 2013-present, 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.
*
* The examp... |
src/svg-icons/image/movie-creation.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMovieCreation = (props) => (
<SvgIcon {...props}>
<path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z"/>
</SvgIcon>
);
ImageMovieCreati... |
src/svg-icons/action/copyright.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
src/components/document-cache.js | jorgerobles/LaserWeb4 | // Copyright 2016 Todd Fleming
//
// This program 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, either version 3 of the License, or
// (at your option) any later version.
//
// This program is dist... |
src/layouts/CoreLayout/CoreLayout.js | gabrielmf/SIR-EDU-2.0 | import React from 'react'
import Header from '../../components/Header'
import './CoreLayout.scss'
import '../../styles/core.scss'
export const CoreLayout = ({ children }) => (
<div>
<Header />
{children}
</div>
)
CoreLayout.propTypes = {
children : React.PropTypes.element.isRequired
}
export default Co... |
examples/counter/index.js | liubko/redux | import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
</Provider>,
document.getElementById('root')
);
|
Realization/frontend/czechidm-core/src/content/role/RoleAuditRoles.js | bcvsolutions/CzechIdMng | import React from 'react';
import Helmet from 'react-helmet';
import { connect } from 'react-redux';
//
import * as Basic from '../../components/basic';
import SearchParameters from '../../domain/SearchParameters';
import { RoleManager } from '../../redux/data';
import EntityRolesAuditTable from '../audit/EntityRolesAu... |
src/svg-icons/image/lens.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let 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 = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
src/containers/CategoricalList/CategoricalList.js | codaco/Network-Canvas | import React, { Component } from 'react';
import { compose } from 'redux';
import { throttle } from 'lodash';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { Flipper } from 'react-flip-toolkit';
import cx from 'classnames';
import { getCSSVariableAsString } from '@codaco/ui/lib/utils... |
src/svg-icons/communication/comment.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationComment = (props) => (
<SvgIcon {...props}>
<path d="M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/>
</SvgIcon>
);
Co... |
docs/src/examples/collections/Table/States/TableExampleDisabled.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleDisabled = () => (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Notes</Table.HeaderCell>
<... |
e2e-tests/gatsby-image/src/pages/index.js | mingaldrichgan/gatsby | import React from 'react'
import { Link } from 'gatsby'
import Layout from '../components/layout'
const IndexPage = () => (
<Layout>
<h1>Gatsby Image integration test</h1>
<h2>
Please navigate to <Link to="/fixed">/fixed</Link>,{` `}
<Link to="/fluid">/fluid</Link>, or <Link to="/traced">/traced... |
src/pages/Equipment.js | SkyJedi/SWRPG-Web-Character-Creator | import React, { Component } from 'react';
var Data = require('../data.json');
var Header = {Weapons: {Name: 'Name', Type: 'Type', Dam: 'Damage', Range: 'RangeValue', Price: 'Price'},
Armor: {Name: 'Name', Soak: 'Soak', Defense: 'Defense', Encum: 'Encumbrance', Price: 'Price'},
Gear: {Name: '... |
examples/customised/styleguide/components/SectionsRenderer.js | sapegin/react-styleguidist | import React from 'react';
import PropTypes from 'prop-types';
import Styled from 'rsg-components/Styled';
import Heading from 'rsg-components/Heading';
// Import default implementation from react-styleguidist using the full path
import DefaultSectionsRenderer from 'react-styleguidist/lib/client/rsg-components/Sections... |
src/user.js | cplusplus/cxxpoll | // Copyright 2015 Google 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 in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.