path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
frontend/src/components/ResultDetail.js | beelzebielsk/hoopla | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import '../styles/resultdetail.css';
import { Card, CardTitle, Icon } from 'react-materialize';
class ResultDetail extends Component {
render() {
return(
<Card
header={<CardTitle title="More Info"... |
app/javascript/mastodon/features/ui/components/actions_modal.js | rainyday/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import ImmutablePureComponent from 'react-immutable-pure-component';
import StatusContent from '../../../components/status_content';
import Avatar from '../../../components/avatar';
import Relative... |
fields/types/boolean/BooleanFilter.js | joerter/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const VALUE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false },
];
function getDefaultValue () {
return {
value: true,
};
}
var BooleanFilter = React.createClass({
propTypes: {
filter: React.Pro... |
front/src/components/SignUpForm.js | muhammad-awan/financial-news | import React from 'react'
import Field from './Field'
function submitSignUp(event, onSignUp){
event.preventDefault()
const form = event.target
const email = form.elements['email'].value
const password = form.elements['password'].value
onSignUp({ email, password })
}
export default function SignUpForm({
on... |
stories/DataTable/ExampleSortable.js | skyiea/wix-style-react | import React from 'react';
import DataTable from 'wix-style-react/DataTable';
import './Example.scss';
const style = {
width: '50%'
};
const baseData = [
{firstName: 'Meghan', lastName: 'Bishop'},
{firstName: 'Sara', lastName: 'Porter'},
{firstName: 'Deborah', lastName: 'Rhodes'},
{firstName: 'Walter', last... |
frontend/teg-web-ui/src/printer/jobQueue/JobQueue.story.js | tegh/tegh-daemon | import React from 'react'
import { storiesOf } from '@storybook/react'
import JobQueue from './JobQueue.view'
import {
drinkingGlass,
gear,
reprap,
robot,
} from './mocks/job.mock'
const baselineProps = {
jobs: [
drinkingGlass,
reprap,
gear,
robot,
],
machines: [{
status: 'READY',
... |
ZWRNProject/app/src/views/Demo/ShopCart/Footer.js | MisterZhouZhou/ReactNativeLearing | /**
* Created by sunny on 15/01/2017.
*/
/**
* Created by sunny on 15/01/2017.
*/
/**
* Created by tdzl2003 on 12/17/16.
*/
import React, { Component } from 'react';
import {
AppState,
StyleSheet,
View,
Text,
TouchableOpacity
} from 'react-native';
const styles = StyleSheet.create({
root: {
posi... |
src/routes.js | zunperior/wear4cast | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App,
Chat,
// Home,
// Widgets,
// About,
// Login,
LoginSuccess,
Outfits,
// Survey,
NotFound
} from 'containers... |
src/Menu/Menu.js | yurizhang/ishow | /* @flow */
import React from 'react';
import PropTypes from 'prop-types';
import {default as Component} from '../Common/plugs/index.js'; //提供style, classname方法
import '../Common/css/Menu.css';
import '../Common/css/Icon.css';
export default class Menu extends Component {
constructor(props) {
super(props);
... |
src/client/ui/app.js | FrozenWar/FrozenWar | import React, { Component } from 'react';
import GameView from './game/gameView.js';
export default class App extends Component {
render() {
return <div className='app'>
<GameView engine={this.props.engine} />
</div>;
}
}
|
app/components/ShoppingCartComponent.js | cdillon85/the-art-store | import React from 'react'
import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'
import Paper from 'material-ui/Paper'
import RaisedButton from 'material-ui/RaisedButton'
export default function ShoppingCartComponent (props) {
const divStyle = {
}
const ima... |
src/components/tools/median/median.component.js | GeoTIFF/geotiff.io | import React from 'react';
import ToolHeader from '../../shared/tool-header';
import ToolContent from '../../shared/tool-content';
import ToolResults from '../../shared/tool-results';
import ToolFooter from '../../shared/tool-footer';
import DrawGeometry from '../../shared/draw-geometry';
import ImportGeometry from '..... |
mealbotui/src/js/components/DayKitchenShift.js | qjflores/mealbot | import React, { Component } from 'react';
import {ShiftTicket} from './ShiftTicket';
import {ShiftLabel} from './ShiftLabel';
import './../../css/DayKitchenShift.css'
export class DayKitchenShift extends Component {
constructor(props) {
super(props);
this.state = {
shift: false
}
this.toggleShift = this.... |
webpack/scenes/Subscriptions/components/SubscriptionsTable/components/Table.js | ares/katello | import React from 'react';
import PropTypes from 'prop-types';
import { Table as PFtable } from 'patternfly-react';
import classNames from 'classnames';
import { createSubscriptionsTableSchema } from '../SubscriptionsTableSchema';
import { Table as ForemanTable, TableBody as ForemanTableBody } from '../../../../../move... |
www/frontend/node_modules/eslint-config-airbnb/test/test-react-order.js | lokiiart/upali-mobile | import test from 'tape';
import { CLIEngine } from 'eslint';
import eslintrc from '../';
import reactRules from '../rules/react';
import reactA11yRules from '../rules/react-a11y';
const cli = new CLIEngine({
useEslintrc: false,
baseConfig: eslintrc,
// This rule fails when executing on text.
rules: { indent: ... |
src/svg-icons/editor/pie-chart.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorPieChart = (props) => (
<SvgIcon {...props}>
<path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/>
</SvgIco... |
src/components/post/footer.js | Lokiedu/libertysoil-site | /*
This file is a part of libertysoil.org website
Copyright (C) 2015 Loki Education (Social Enterprise)
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, o... |
react/features/settings/components/web/audio/AudioSettingsPopup.js | jitsi/jitsi-meet | // @flow
import InlineDialog from '@atlaskit/inline-dialog';
import React from 'react';
import { areAudioLevelsEnabled } from '../../../../base/config/functions';
import {
getAudioInputDeviceData,
getAudioOutputDeviceData,
setAudioInputDeviceAndUpdateSettings,
setAudioOutputDevice as setAudioOutputDev... |
frontend/src/App/AppUpdatedModalContentConnector.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchUpdates } from 'Store/Actions/systemActions';
import AppUpdatedModalContent from './AppUpdatedModalContent';
function createMapStateToProps() {
... |
src/components/Events/EventListItem.js | llukasxx/school-organizer-front | import React from 'react'
export class EventsListItem extends React.Component {
constructor(props) {
super(props)
this.renderGroups = this.renderGroups.bind(this)
}
renderGroups() {
let listing = ""
const { groups } = this.props.event
if(groups.length > 0) {
groups.map((el) => {
... |
fields/types/numberarray/NumberArrayFilter.js | concoursbyappointment/keystoneRedux | import React from 'react';
import { findDOMNode } from 'react-dom';
import {
FormField,
FormInput,
FormSelect,
Grid,
} from '../../../admin/client/App/elemental';
const MODE_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label:... |
src/components/atoms/Button/_stories.js | ygoto3/artwork-manager | import React from 'react';
import { action } from '@storybook/addon-actions';
import {
Button,
PrimaryButton,
SecondaryButton,
DangerButton,
InfoButton,
} from './index';
module.exports = stories => (
stories
.add(
'size: xxs',
() => (
<Button xxs onClick={action('clicked')}>Button</Button... |
src/components/AboutView.js | janimattiellonen/munkirjat-v4 | import React from 'react';
import Immutable from 'immutable';
export default React.createClass({
render() {
return (
<div className="component">
<article>
<h1>About</h1>
<p>This is a personal virtual bookshelf created for helping me figurin... |
console-ui/src/pages/ServiceManagement/ServiceDetail/ServiceDetail.js | alibaba/nacos | /*
* Copyright 1999-2018 Alibaba Group Holding Ltd.
*
* 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 applica... |
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleResponsiveWidth.js | clemensw/stardust | import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const GridExampleResponsiveWidth = () => (
<div>
<Grid>
<Grid.Column mobile={16} tablet={8} computer={4}>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Grid.Column>
<Grid.Column mobile={1... |
packages/core/src/icons/components/Drag.js | iCHEF/gypcrete | import React from 'react';
export default function SvgDrag(props) {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
{...props}
>
<path
data-name="\u89D2\u4E38\u9577\u65B9\u5F62 5 \u306E\u30B3\u30D4\u30FC 14"
d="... |
src/components/header.js | donpinkus/boilerplate-single-server | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class Header extends Component {
renderLinks() {
if (this.props.authenticated) {
// show a link to sign out
return (
<li className="nav-item">
<Link className="nav-link" to="/signout"... |
examples/simple/components/ScrollHack.js | browniefed/react-scroll-monitor | import React from 'react';
import {ScrollSource} from 'library-boilerplate';
import ScrollContainer from './ScrollContainer';
import find from 'lodash/collection/find';
class ScrollHack extends React.Component {
render() {
return (
<div {...this.props} style={{overflow: 'auto', height: '100%'}}>
... |
src/client/components/header.js | illbexyz/oszoo | import React from 'react';
import AppBar from 'material-ui/lib/app-bar';
import FlatButton from 'material-ui/lib/flat-button';
import Dialog from 'material-ui/lib/dialog';
const Header = React.createClass({
getInitialState: () => ({ isDialogOpen: false }),
handleOpen() {
this.setState({ isDialogOpen: true })... |
src/views/components/ListItem.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import {Link} from 'react-router-dom';
import {SortableElement} from 'react-sortable-hoc';
import styles from './ListItem.css';
export const ListItem = (props) => {
const ItemElement = props.element,
LinkComponent = props.link ? Link : 'a',
itemConten... |
src/App/Body/Display/BackButton.js | ksmithbaylor/emc-license-summarizer | import React from 'react';
import RaisedButton from 'material-ui/lib/raised-button';
export default function BackButton({ goBack }) {
return (
<div className="print-hidden">
<RaisedButton
label="BACK TO START"
labelPosition="after"
labelStyle={style.label}
onTouchTap={goBack... |
app/javascript/mastodon/features/favourites/index.js | corzntin/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 { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
src/components/DetailContainer.js | mareklibra/userportal | import React from 'react'
import PropTypes from 'prop-types'
import sharedStyle from './sharedStyle.css'
const DetailContainer = ({ children, ...props }) => {
return (
<div className={`container-fluid ${sharedStyle['move-left-detail']} ${sharedStyle['detail-z-index']}`} {...props}>
{children}
</div>
... |
src/containers/AdminCreateBehaviourPage.js | merrettr/school-ui | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { push } from 'react-router-redux';
import { createBehaviour, fetchBehaviourCategories } from '../actions';
import BehaviourForm from '../components/BehaviourForm';
import Error from '../components/Error';
import Spinner from '../co... |
callisto_sample_project/static/callisto-sample-project/routes.js | aschn/callisto-sample-project | import React from 'react';
import {Route, IndexRoute, Redirect} from 'react-router';
import App from './components/App';
import CounterApp from './containers/CounterApp';
export default (
<Route path="/" component={App}>
<IndexRoute component={CounterApp} />
<Redirect from="*" to="/" />
</Route>
);
|
src/components/Note/Output/ExternalLinkNote.js | bibleexchange/be-front-new | import React from 'react';
import { Link } from 'react-router';
class ExternalLinkNote extends React.Component {
render() {
return (<div url={this.props.data.relatedObject.url} />);
}
}
module.exports = ExternalLinkNote;
|
frontend/src/components/recipes/edit/components/Step2/components/PreparationSection/PreparationSection.js | jf248/scrape-the-plate | import React from 'react';
import PreparationField from './PreparationField';
import { Section } from 'components/common';
function PreparationSection(props) {
const { inputProps, ...rest } = props;
const caption = 'Tip: You can paste multiple steps at once.';
const isError = !!inputProps.error;
return (
... |
src/js/app.js | halkeye/release-dashboard | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import WebFont from 'webfontloader';
import '../scss/app.scss';
import Root from './containers/Root.js';
WebFont.load({ google: { families: ['Roboto:400,700:latin', 'Roboto+Mono:400,700:latin'] } });
const elm = document.getElementById('cont... |
src/containers/ProgressBarContainer.js | rkhitin/pomidoro-timer | // @flow
import React from 'react'
import { connect } from 'react-redux'
import progressBarSchemeGenerator from '../utils/progressBarSchemeGenerator'
import ProgressBar from '../components/ProgressBar'
const ProgressBarContainer = ({
timer,
settings,
}: {
timer: TimerState,
settings: SettingsState,
}) => {
... |
src/routes/home/index.js | Light1c3/ResumeSite | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import Home from './Home';
impo... |
src/browser/index.js | 2rajpx/gitux | import React from 'react'
import { render } from 'react-dom'
import { Router, browserHistory, match } from 'react-router'
import { compose, applyMiddleware, createStore } from 'redux'
import { Provider } from 'react-redux'
import { syncHistoryWithStore } from 'react-router-redux'
import thunk from 'redux-thunk'
// impo... |
src/parser/monk/brewmaster/CONFIG.js | FaideWW/WoWAnalyzer | import React from 'react';
import { emallson } from 'CONTRIBUTORS';
import retryingPromise from 'common/retryingPromise';
import SPECS from 'game/SPECS';
import CHANGELOG from './CHANGELOG';
export default {
// The people that have contributed to this spec recently. People don't have to sign up to be long-time mai... |
src/components/Web/tournament.js | pritchardtw/ReactPersonalSite | import React, { Component } from 'react';
import Project from '../project';
export default class Tournament extends Component {
render() {
const images = [
'../../static/images/web/tournament1.png',
'../../static/images/web/tournament2.png',
'../../static/images/web/tournament3.png'
];
... |
examples/simple/src/modules/Products/index.js | one-market/appson | import * as R from 'ramda'
import t from 'prop-types'
import React from 'react'
import { addState, connectProps } from '@onemarket/appson'
import products from './states/products'
import AddProduct from './components/AddProduct'
const Products = ({ products, quantity }) => (
<div>
<h4>Showing: {quantity} produc... |
app/views/website/Page2/Page2.js | mariopeixoto/isomorphic-react-webpack-boilerplate | 'use strict';
import React from 'react';
class Page1 extends React.Component {
render() {
return (
<section>
Page 2
</section>
);
}
}
export default Page1;
|
app/javascript/mastodon/main.js | mosaxiv/mastodon | import * as registerPushNotifications from './actions/push_notifications';
import { default as Mastodon, store } from './containers/mastodon';
import React from 'react';
import ReactDOM from 'react-dom';
import ready from './ready';
const perf = require('./performance');
function main() {
perf.start('main()');
i... |
node_modules/react-bootstrap/es/Table.js | Chen-Hailin/iTCM.github.io | 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 ... |
src/components/navbar/overlay.js | szymonkaliski/SDF-UI | import React from 'react';
import './overlay.css';
export default ({ content, onClickClose }) => {
return <div className='overlay__wrapper'>
<div className='overlay__close' onClick={ onClickClose }>
CLOSE
</div>
<div className='overlay'>
{ content }
</div>
</div>;
};
|
src/renderer/views/nav.js | minodisk/markn | import React from 'react'
import fileStore from '../stores/file'
import historyStore from '../stores/history'
import historyAction from '../actions/history'
import menuAction from '../actions/menu'
export default class NavComponent extends React.Component {
displayName = 'NavComponent'
constructor (props) {
s... |
src/components/AlertForm/AlertForm.js | s-mironov31/react-web | import React, { Component } from 'react';
import withStyles from 'isomorphic-style-loader/lib/withStyles';
import s from './AlertForm.css';
import { autobind } from 'core-decorators';
class AlertForm extends Component {
constructor() {
super();
this.state = {
value: 'The default',
};
// this.o... |
src/parser/shaman/restoration/modules/talents/AncestralProtectionTotem.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import fetchWcl from 'common/fetchWclApi';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Icon from 'common/Icon';
import { formatDuration } from 'common/format';
import SPECS from 'game/SPECS';
import LazyLoadS... |
project/src/scenes/Admin/Navigation/components/NavigationEditor/NavigationEditor.js | strues/boldr | /* @flow */
import React from 'react';
import styled from 'styled-components';
import NavigationForm from '../NavigationForm';
export type Props = {
onFormSubmit?: Function,
initialValues?: {
position?: number,
link?: string,
name?: string,
},
};
const FormInner = styled.div`padding: 1em;`;
const Nav... |
app/javascript/mastodon/features/lists/index.js | pointlessone/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... |
examples/with-dynamic-import/components/Counter.js | BlancheXu/test | import React from 'react'
let count = 0
export default class Counter extends React.Component {
add () {
count += 1
this.forceUpdate()
}
render () {
return (
<div>
<p>Count is: {count}</p>
<button onClick={() => this.add()}>Add</button>
</div>
)
}
}
|
src/icons/FormatTextdirectionRToLIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class FormatTextdirectionRToLIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M20 20v10h4V8h4v22h4V8h4V4H20c-4.42 0-8 3.58-8 8s3.58 8 8 8zm-4 14v-6l-8 8 8 8v-6h24v-4H16... |
packages/site/templates/content/ContentNav.js | InventingWithMonster/redshift | import React from 'react';
import SiteLink from '~/components/layout/SiteLink';
import styled, { css, withTheme } from 'styled-components';
import { Centered } from '~/templates/global/grid';
import DropDownArrow from '~/components/icons/DropDownArrow';
import { fontSize, fontBold, lineHeight } from '~/styles/fonts';
i... |
src/component/templates/index.js | KaleoSoftware/generator-rr | import React from 'react'
const style = {
<%= name %>: {
}
}
export default () => (
<div style={styles.<%= name %>}>
</div>
)
|
src/svg-icons/social/sentiment-very-dissatisfied.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentVeryDissatisfied = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.47 2 12s4.47 10 9.99 10S22 17.53 22 12 17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8... |
docs/app/Examples/collections/Table/Types/TableExamplePagination.js | koenvg/Semantic-UI-React | import React from 'react'
import { Icon, Label, Menu, Table } from 'semantic-ui-react'
const TableExamplePagination = () => {
return (
<Table celled>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Header</Table.HeaderCell>
<Table.HeaderCell>Header</Table.HeaderCell>
<Tab... |
src/containers/Mail/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import DesktopView from './desktopView';
import MobileView from './mobileView';
import TabView from './tabView';
class Mail extends Component {
render() {
const { view, height } = this.props;
const MailView =
view === 'Des... |
src/components/Wizard/WizardStep.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
function WizardStep(props) {
const { children } = props;
const className = classnames('ui-wizard-step');
return (
<div className={className}>
{children}
</div>
);
}
WizardStep.propTypes = {
children: React.PropTypes.node,
};
Wi... |
src/index.js | tilastokeskus/deck-of-cards | import React from 'react';
import ReactDOM from 'react-dom';
import DeckFrame from './containers/DeckFrame';
import InfoFrame from './containers/InfoFrame';
require('styles/style.scss');
ReactDOM.render(
<div>
<DeckFrame />
<InfoFrame />
</div>,
document.getElementById('content')
);
if (__DEV__ && module.hot)... |
springboot/GReact/src/main/resources/static/app/components/ui/UiDialogLauncher.js | ezsimple/java | import React from 'react'
import ReactDOM from 'react-dom'
$.widget("ui.dialog", $.extend({}, $.ui.dialog.prototype, {
_title: function (title) {
if (!this.options.title) {
title.html(" ");
} else {
title.html(this.options.title);
}
}
}));
let UiDialogLaunc... |
saleor/static/js/components/variantPicker/VariantPicker.js | UITools/saleor | import _ from 'lodash';
import $ from 'jquery';
import classNames from 'classnames';
import { observer } from 'mobx-react';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import AttributeSelectionWidget from './AttributeSelectionWidget';
import QuantityInput from './QuantityInput';
impor... |
js/jqwidgets/demos/react/app/buttons/templates/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
class App extends React.Component {
render() {
let marginFloat = { float: 'left', marginLeft: 4 };
return (
<div>
<JqxButton value='Defaul... |
www/js/components/HomePage.js | grant/school-of-tech | import React, { Component } from 'react';
import HomeNavigation from './HomeNavigation';
import Button from './Button';
import Game from './Game';
class HomePage extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
data: React.PropTypes.object.isRequired,
};
render() {
... |
src/main-app.js | dickmancj/reporter | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './main.css';
function mainApp () {
ReactDOM.render(
<App />,
document.getElementById('appContainer')
);
}
document.addEventListener('DOMContentLoaded', mainApp);
|
examples/js/cell-edit/cell-edit-hook-table.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
/* eslint no-alert: 0 */
/* eslint guard-for-in: 0 */
/* eslint no-unused-vars: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0;... |
stories/components/syncDaily.js | wcastand/okami | import React from 'react'
import {Div} from 'glamorous'
import DailyCalendar from '../../src/components/daily'
import HoursLabels from '../../src/components/hoursLabels'
import {
Container,
HourLabel,
CalendarContainer,
Cell,
DayLabel,
Event,
DateDisplayer,
NowLine,
} from '../dummy'
export default (... |
src/containers/NotFound/NotFound.js | xkawi/react-universal-saga | import React from 'react';
export default function NotFound() {
return (
<div className="container">
<h1>Doh! 404!</h1>
<p>These are <em>not</em> the droids you are looking for!</p>
</div>
);
}
|
packages/react-scripts/fixtures/kitchensink/src/features/syntax/AsyncAwait.js | Place1/create-react-app-typescript | /**
* Copyright (c) 2015-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.
*/
import Rea... |
lib/Paneset/PaneResizeHandle.js | folio-org/stripes-components | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import css from './PaneResize.css';
const PaneResizeHandle = React.forwardRef(({ id, xpos, onMouseDown, active }, ref) => {
const handleMouseDown = (e) => {
onMouseDown(e, id);
};
return (
<div... |
springboot/GReact/src/main/resources/static/app/routes/forms/jcrop/components/OptionSetBtn.js | ezsimple/java | import React from 'react'
import classnames from 'classnames'
export default (props)=> {
return <button disabled={props.disabled}
className={classnames('btn blue-grey darken-2')} onClick={props.onSet} >
{props.label}
</button>
} |
src/components/popover/Popover.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import PopoverBody from './PopoverBody';
import PopoverHeader from './PopoverHeader';
import BaseView from '../../utils/rnw-compat/BaseView';
import { PLACEMENTS } from '../../utils/constants';
const propTypes = {
children: P... |
docs/app/Examples/elements/Rail/Types/RailExampleInternal.js | koenvg/Semantic-UI-React | import React from 'react'
import { Image, Rail, Segment } from 'semantic-ui-react'
const RailExampleInternal = () => (
<Segment textAlign='center'>
<Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
<Rail internal position='left'>
<Segment>Left Rail Content</Segment>
</Rail>
... |
src/svg-icons/device/battery-50.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBattery50 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M17 5.33C17 4.6 16.4 4 15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V13h10V5.33z"/><path d="M7 13v7.67C7 21.4 7.6 22 8.33 22h7.33c.74 0 ... |
src/components/HorseInfo/index.js | topguru/React-Equiaction | import React, { Component } from 'react';
import {
Text,
View,
ScrollView,
TouchableHighlight,
TextInput
} from 'react-native';
import styles from './style';
import { images, metrics } from '../../theme';
import LinearGradient from 'react-native-linear-gradient';
import Icon from 'react-native-vector-icons/... |
app/scripts/charts/node-networks-overlay.js | hustbill/network-verification-ui | import React from 'react';
import { scaleBand } from 'd3-scale';
import { List as makeList } from 'immutable';
import { connect } from 'react-redux';
import { getNetworkColor } from '../utils/color-utils';
import { NODE_BASE_SIZE } from '../constants/styles';
// Min size is about a quarter of the width, feels about r... |
app/containers/CalendarInput/Form.js | zebbra-repos/Zeiterfassung-medi | /*
*
* Form
*
*/
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { Field, reduxForm, formValueSelector, getFormSyncErrors } from 'redux-form/immutable';
import { TextField } from 'redux-form-material-ui';
impor... |
addons/centered/src/index.js | bigassdragon/storybook | import React from 'react';
const style = {
position: 'fixed',
top: 0,
left: 0,
bottom: 0,
right: 0,
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
};
export default function(storyFn) {
return <div style={style}>{storyFn()}</div>;
}
|
1l_React_ET_Lynda/Ex_Files_React_EssT/Ch06/06_02/start/src/index.js | yevheniyc/C | import React from 'react'
import { render } from 'react-dom'
import './stylesheets/ui.scss'
import { App } from './components/App'
import { Whoops404 } from './components/Whoops404'
import { Router, Route, hashHistory } from 'react-router'
window.React = React
render(
<Router history={hashHistory}>
<Route path="/"... |
admin/client/App/screens/List/components/ListColumnsForm.js | frontyard/keystone | import React from 'react';
import assign from 'object-assign';
import Popout from '../../../shared/Popout';
import PopoutList from '../../../shared/Popout/PopoutList';
import { FormInput } from '../../../elemental';
import ListHeaderButton from './ListHeaderButton';
import { setActiveColumns } from '../actions';
var... |
src/parser/druid/balance/CHANGELOG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Gebuz, Abelito75, Wing5wong, Viridis, Vetyst } from 'CONTRIBUTORS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import { change, date } from 'common/changelog';
export default [
change(date(2020, 4, 13), <>Added statistics for <SpellLink id={SPEL... |
src/components/Link/ExternalLink.js | cityofsurrey/polltal-app | import React from 'react'
import PropTypes from 'prop-types'
import Link from './Link'
/**
* Link to external resouce that will be open in a new browser tab
*/
const ExternalLink = ({ to, children }) => (
<Link
to={to}
target="_blank"
rel="noreferrer noopener"
>{children}</Link>
)
ExternalLink.prop... |
client/modules/core/components/newpost.js | mantrajs/meteor-mantra-kickstarter | import React from 'react';
class NewPost extends React.Component {
render() {
const {error} = this.props;
return (
<form className="new-post" onSubmit={this.createPost.bind(this)}>
<h2>Add New Post</h2>
{error ? <p style={{color: 'red'}}>{error}</p> : null}
<input ref="titleRef... |
src/app/components/imageableThumbnails.js | nazar/soapee-ui | import _ from 'lodash';
import React from 'react';
import { imageableThumbUrl } from 'resources/imageable';
export default React.createClass( {
render() {
return (
<div className="imageable-thumbnails clearfix">
{ _.map( this.props.images, this.renderImage ) }
... |
frontend/App.js | caiklaus/first-node-project | import React from 'react';
import Header from './component/Header';
import Footer from './component/Footer';
import TopicList from './component/TopicList';
export default class App extends React.Component {
render() {
return (
<div className="container">
<Header />
{this.props.children ? th... |
components/google_map.js | runesam/react-redux-next | import React from 'react';
import { compose, withProps } from 'recompose';
import {
withScriptjs,
withGoogleMap,
GoogleMap,
Marker
} from 'react-google-maps';
const MyMapComponent = compose(
withProps({
googleMapURL: 'https://maps.googleapis.com/maps/api/js?key=AIzaSyC4R6AN7SmujjPUIGKdyao2Kqitzr1kiRg',
... |
src/gatsby-theme-docz/components/index.js | smeijer/leaflet-geosearch | /* eslint-disable react/prop-types */
import React from 'react';
import * as headings from 'gatsby-theme-docz/src/components/Headings';
import { Link } from 'docz';
import { Code } from 'gatsby-theme-docz/src/components/Code';
import { Layout } from 'gatsby-theme-docz/src/components/Layout';
import { Playground } from ... |
src/components/hello.js | ntwcklng/react-tape | import React from 'react';
export default class Hello extends React.Component {
render() {
return (
<h1 className="cblue">Hello World</h1>
)
}
}
|
Tutorial/index.ios.js | bonniee/egghead-standalones | import React from 'react';
import {
AppRegistry
} from 'react-native';
// Pick which lesson you want
import DebuggingTutorial from './debugging';
import PlatformSpecific from './PlatformSpecific';
import LodashExample from './lodash-example';
import VideoExample from './video-example';
import ButtonExample from './b... |
src/js/components/icons/base/Mail.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... |
node_modules/react-bootstrap/es/MediaBody.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 ... |
src/client/components/upload/uploadTypePicker.component.js | DBCDK/dbc-ufo | import React from 'react';
export default function UploadTypePicker() {
return (
<div className="upload-select medium">
<h1 className="mb1">Hvordan du vil tilføje billeder?</h1>
<div className="buttons flex">
<a href="/image" id="select-image-upload" className="text-button">
<div cl... |
examples/src/components/ValuesAsNumbersField.js | jgautsch/react-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var ValuesAsNumbersField = React.createClass({
displayName: 'ValuesAsNumbersField',
propTypes: {
label: React.PropTypes.... |
definitions/npm/react-onclickoutside_v6.x.x/flow_v0.54.1-v0.56.x/test_react-onclickoutside_v6.x.x.js | flowtype/flow-typed | //@flow
import React from 'react';
import onClickOutside, { type OnClickOutsideProps, IGNORE_CLASS_NAME } from 'react-onclickoutside';
(IGNORE_CLASS_NAME: string);
class A extends React.Component<OnClickOutsideProps & { a: string }> {
render() {
return <div>{this.props.a}</div>;
}
}
const B = onClickOutside... |
docs/components/layout/Container.js | casesandberg/reactcss | 'use strict'
import React from 'react'
import reactCSS from 'reactcss'
export class Container extends React.Component {
render() {
const styles = reactCSS({
'default': {
cotainer: {
maxWidth: '880px',
padding: '0 14px',
margin: '0 auto',
height: '100%',
... |
platform/viewer/src/googleCloud/DatasetPicker.js | OHIF/Viewers | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import api from './api/GoogleCloudApi';
import DatasetsList from './DatasetsList';
import './googleCloud.css';
export default class DatasetPicker extends Component {
state = {
error: null,
loading: true,
datasets: [],
filte... |
docs/src/utils/PageLayout.js | gocreating/react-tocas | import React from 'react';
import Navigation from './Navigation';
import { Grid, Row, Column } from '../../../lib';
let PageLayout = ({ children }) => (
<Grid>
<Row column={1}>
<Column>
<Navigation />
</Column>
</Row>
<div className="ts fluid container">
<div className="ts conta... |
blueocean-material-icons/src/js/components/svg-icons/av/new-releases.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const AvNewReleases = (props) => (
<SvgIcon {...props}>
<path d="M23 12l-2.44-2.78.34-3.68-3.61-.82-1.89-3.18L12 3 8.6 1.54 6.71 4.72l-3.61.81.34 3.68L1 12l2.44 2.78-.34 3.69 3.61.82 1.89 3.18L12 21l3.4 1.46 1.89-3.18 3.61-.82-.34-3.68L23 12zm-10 5h... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.