path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
maodou/events/client/components/events.js | ShannChiang/USzhejiang | import React from 'react';
import {Link} from 'react-router';
import moment from 'moment';
import Loading from 'client/components/common/loading';
export default (props) => {
const T = props.context.T;
return (
<div className="container" style={{ paddingTop: '60px'}}>
<div className="row">
{
... |
stories/components/login/index.js | NestorSegura/operationcode_frontend | import React from 'react';
import createHistory from 'history/createBrowserHistory';
import { Router } from 'react-router';
import { storiesOf } from '@storybook/react';
import Login from 'shared/components/login/login';
const history = createHistory();
storiesOf('shared/components/login', module)
.add('Basic', ()... |
blueocean-material-icons/src/js/components/svg-icons/device/bluetooth.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const DeviceBluetooth = (props) => (
<SvgIcon {...props}>
<path d="M17.71 7.71L12 2h-1v7.59L6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 11 14.41V22h1l5.71-5.71-4.3-4.29 4.3-4.29zM13 5.83l1.88 1.88L13 9.59V5.83zm1.88 10.46L13 18.17v-3.76l1.88 1.88z"/>
<... |
app/components/H3/index.js | itimofeev/hustledb-ui | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/components/Assets/Pins/ComingSoon.js | Ftornik/forwardteam.space | import React, { Component } from 'react';
import svg from 'lib/svg';
@svg({
width: 600,
height: 584
})
export default class Challenger extends Component {
render = () => {
const st2Style = {
opacity: '0.3'
};
/* eslint-disable */
return (
<g>
... |
src/components/SpeedDials.js | vonubisch/Cordova-PhoneGap-Babel-React-Hotloader-Webpack-OnsenUI-FontAwesome | import React from 'react';
import {
Page,
Toolbar,
BackButton,
SpeedDial,
SpeedDialItem,
Fab,
Icon
} from 'react-onsenui';
class SpeedDials extends React.Component {
renderToolbar() {
return (
<Toolbar>
<div className="left">
<Bac... |
app/components/LoadingIndicator/index.js | 7ruth/PadStats2 | import React from 'react';
import Circle from './Circle';
import Wrapper from './Wrapper';
const LoadingIndicator = () => (
<Wrapper>
<Circle />
<Circle rotate={30} delay={-1.1} />
<Circle rotate={60} delay={-1} />
<Circle rotate={90} delay={-0.9} />
<Circle rotate={120} delay={-0.8} />
<Cir... |
src/svg-icons/communication/call-missed.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationCallMissed = (props) => (
<SvgIcon {...props}>
<path d="M19.59 7L12 14.59 6.41 9H11V7H3v8h2v-4.59l7 7 9-9z"/>
</SvgIcon>
);
CommunicationCallMissed = pure(CommunicationCallMissed);
CommunicationC... |
Splash.js | dcy0701/ReactNativeServer | 'use strict';
import React from 'react';
import {
AsyncStorage,
Image,
StyleSheet,
Text,
View,
Dimensions,
} from 'react-native';
var Animated = require('Animated');
var WINDOW_WIDTH = Dimensions.get('window').width;
var DataRepository = require('./DataRepository');
var repository = new DataRepository(... |
src/js/components/character/character-details.js | trwalker/marvel-react | import React from 'react';
class CharacterDetails extends React.Component {
constructor(props) {
super(props);
this.characterId_ = props.params.characterId;
}
render() {
return <div>Details Here!!!! - Character: {this.characterId_}</div>
}
}
export default CharacterDetails;
|
index.android.js | WholeFoodsCoop/ReactMobileApp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ScrollView,
Dimensions
} from 'react-native';
import NavBar from './NavBar.js';
import PageAds from './PageAds.js';
import PageHom... |
assets/jqwidgets/demos/react/app/editor/fluidsize/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js';
class App extends React.Component {
render() {
return (
<JqxEditor width={'100%'} height={'95%'} tools={'bold italic underline | left center right'}>
... |
modules/dreamview/frontend/src/components/StatusBar/DrivingMode.js | jinghaomiao/apollo | import React from 'react';
import classNames from 'classnames';
import UTTERANCE from 'store/utterance';
export default class DrivingMode extends React.PureComponent {
componentWillUpdate() {
UTTERANCE.cancelAllInQueue();
}
render() {
const { drivingMode, isAutoMode } = this.props;
UTTERANCE.speak... |
node_modules/react-autosuggest-legacy/examples/src/TrackLinks/TrackLinks.js | mannyng/ceap | import React, { Component } from 'react';
export default class TrackLinks extends Component {
componentDidMount() {
if (typeof analytics !== 'object') {
return;
}
const links = this.refs.children.querySelectorAll('a');
const linksCount = links.length;
for (let i = 0; i < linksCount; i++) ... |
docs/src/app/components/pages/components/RefreshIndicator/Page.js | rscnt/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 refreshIndicatorReadmeText from './README';
import RefreshIndicatorExampl... |
app/components/IssueIcon/index.js | davecyen/react-boilerplate-material | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
app/components/UGFooterSitemap/UGBtnSubscribe.js | perry-ugroop/ugroop-react-dup2 | /**
* Created by Ber on 02/12/16.
*/
import React from 'react';
const UGBtnSubscribe = (props) => <button type="submit" className={`btn btn-default ${props.className}`}>
{props.children}
</button>;
UGBtnSubscribe.propTypes = {
className: React.PropTypes.any,
children: React.PropTypes.any,
};
export default U... |
fields/types/select/SelectField.js | suryagh/keystone | import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
valueChanged (newValue) {
// TODO: This should be natively handled by the Selec... |
src/applications/static-pages/contact-chatbot-cta/components/App/index.js | department-of-veterans-affairs/vets-website | // Node modules.
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
const restrictWidgetStorageKey = 'restrict-chatbot-cta';
const displayThreshold = 50;
export const App = () => {
// restrict view to roughly 50% of users
const restrictDisplay = () => {
const... |
src/views/UserManage/UserTable.js | halo-design/halo-optimus | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { Table, Modal } from 'antd'
import Spin from 'COMPONENT/effects/Spin'
import { formatDateTime, checkBtnList } from 'UTIL/filters'
import PreviewBox from './PreviewBox'
import BindRoleBox from './BindRoleBo... |
src/esm/components/graphics/icons/bold-icon/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["color", "title"];
import React from 'react';
import PropTypes from 'prop-types';
export var BoldIcon = function BoldIcon(_ref) {
var color = _ref.co... |
client/src/App.js | no-stack-dub-sack/alumni-network | import './styles/App.css';
import '../node_modules/flag-icon-css/css/flag-icon.css';
import AppContainer from './components/AppContainer';
import FlashMessagesList from './components/flash/FlashMessagesList';
import HomePage from './components/HomePage';
import LoginPage from './components/signup/LoginPage';
import Na... |
internals/templates/containers/HomePage/index.js | gihrig/react-boilerplate-logic | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' 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 and remove
* the l... |
node_modules/react-select/examples/src/components/RemoteSelectField.js | yomolify/cc-server | import React from 'react';
import Select from 'react-select';
var RemoteSelectField = React.createClass({
displayName: 'RemoteSelectField',
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
loadOptions (input, callback) {
input = input.toLowerCase();
var rtn = {
options: [
... |
fields/components/columns/IdColumn.js | pr1ntr/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var IdColumn = React.createClass({
displayName: 'IdColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
list: React.PropTypes.obje... |
examples/counter/index.js | chicoxyzzy/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')
);
|
packages/generator-fluxible/app/templates/components/About.js | pablolmiranda/fluxible | import React from 'react';
class About extends React.Component {
render() {
return (
<div>
<h2>About</h2>
<p>This is a description of the site.</p>
</div>
);
}
}
export default About;
|
docs/app/Examples/elements/List/Content/ListExampleHeader.js | shengnian/shengnian-ui-react | import React from 'react'
import { List } from 'shengnian-ui-react'
const ListExampleHeader = () => (
<List>
<List.Item>
<List.Header>New York City</List.Header>
A lovely city
</List.Item>
<List.Item>
<List.Header>Chicago</List.Header>
Also quite a lovely city
</List.Item>
... |
src/Main/App.js | Yuyz0112/WoWAnalyzer | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link, browserHistory } from 'react-router';
import ReactTooltip from 'react-tooltip';
import makeWclUrl from 'common/makeWclUrl';
import getFightName from 'common/getFightName';
import AVAILABLE_CONFIGS from 'Parser/AVAILABLE_CONFI... |
src/App.js | ncuillery/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/components/shop/CatalogList.js | mangal49/HORECA | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router';
import Loading from '../Loading';
import { GridList, GridTile } from 'material-ui/GridList';
import IconButton from 'material-ui/IconButton';
import Subheader from 'material-ui/Subheader';
import StarBord... |
src/CardTitle.js | SiDevesh/React-Native-Material-Cards | import React from 'react';
import {
StyleSheet,
Text,
View,
Image,
} from 'react-native';
const CardTitle = (props) => {
const newStyle = props.style || {};
const newTitleStyle = props.titleStyle || {};
const newSubtitleStyle = props.subtitleStyle || {};
const newAvatarStyle = props.avatarStyle || {};
... |
internals/templates/app.js | shiftunion/bot-a-tron | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].... |
app/jsx/bundles/dashboard_card.js | djbender/canvas-lms | /*
* Copyright (C) 2015 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
blueocean-material-icons/src/js/components/svg-icons/maps/zoom-out-map.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const MapsZoomOutMap = (props) => (
<SvgIcon {...props}>
<path d="M15 3l2.3 2.3-2.89 2.87 1.42 1.42L18.7 6.7 21 9V3zM3 9l2.3-2.3 2.87 2.89 1.42-1.42L6.7 5.3 9 3H3zm6 12l-2.3-2.3 2.89-2.87-1.42-1.42L5.3 17.3 3 15v6zm12-6l-2.3 2.3-2.87-2.89-1.42 1.42 ... |
examples/server-rendering/shared/components/Welcome.js | amazeui/amazeui-react | import React from 'react';
import {
Button,
ButtonToolbar,
} from './AMUIReact';
export class Welcome extends React.Component {
render() {
return (
<div>
<h2>
请点击上面的链接查看演示。
</h2>
</div>
);
}
}
|
entry_types/scrolled/package/src/frontend/index.js | tf/pageflow | import './webpackPublicPath';
import './polyfills';
import './globalNotices.module.css';
import React from 'react';
import ReactDOM from 'react-dom';
import {Entry} from './Entry';
import {setupI18n} from './i18n';
import './global.module.css';
import styles from './foregroundBoxes/GradientBox.module.css';
import ... |
src/icons/SignalCellularNoSimIcon.js | kiloe/ui | import React from 'react';
import Icon from '../Icon';
export default class SignalCellularNoSimIcon extends Icon {
getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M37.98 10c0-2.21-1.77-4-3.98-4H20l-4.68 4.68L38 33.36 37.98 10zM7.3 7.76L4.76 10.3 10 15.55V38... |
src/layout/Footer.js | r-daneelolivaw/planetdrupal | import React from 'react';
const Footer = () => (
<footer className="footer">
<div className="container">
<div className="content has-text-centered">
<p />
</div>
</div>
</footer>
);
export default Footer;
|
imports/ui/pages/Sign/pages/Login/components/Content.js | ShinyLeee/meteor-album-app | import { Meteor } from 'meteor/meteor';
import { Accounts } from 'meteor/accounts-base';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Button from 'material-ui/Button';
import Input from 'material-ui/Input';
import { validateEmail } from '/imports/utils';
import Modal from '/impor... |
src/browser/offline/OfflinePage.js | sikhote/davidsinclair | // @flow
import type { State } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { connect } from 'react-redux';
import { Box, PageHeader, Text } from '../../common/components';
import { Title } from '../components';
type OfflinePageProps = { onlin... |
FloatingLabel.js | APSL/react-native-floating-label | import React from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
Animated,
TouchableWithoutFeedback,
} from 'react-native'
import t from 'tcomb-form-native'
const Textbox = t.form.Textbox
class FloatingLabel extends Textbox {
constructor (props) {
super(props);
this.state = {
fieldFo... |
lib/form/templates/flat/datepicker.js | bjyas/react-native-rnkit | import React from 'react'
import { View, Text, DatePickerIOS, StyleSheet, Image, TouchableOpacity, Modal } from 'react-native';
const style = StyleSheet.create({
container: {
flex: 1,
alignItems: 'stretch',
justifyContent: 'flex-end',
backgroundColor: 'transparent'
},
dateBox: {
justifyConten... |
src/index.js | cardotrejos/calculator | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import rootReducer from './ducks';
import App from './components/App';
import './index.css';
const store = createStore(rootReducer);
ReactDOM.render(
<Provider store={store}>
... |
src/Examples/StaticPage/OutputTreeView.js | 509dave16/resource-aggregate-utility | /**
* @file A tree view that displays the ouptout from trasnforming a collection of
* resources using an one of the resource aggregation utility funtions
*
* @see {@link https://github.com/chenglou/react-treeview/blob/master/demos/uncontrolled.js} for source that is component is based off of.
*/
import React fr... |
src/components/icons/CallForward.js | austinknight/ui-components | import React from 'react';
export default function CallForward(props) {
return (
<svg
{...props.size || { width: '24px', height: '24px' }}
{...props}
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
{props.title && <title>{props.title}</title>}
<path d="M14 4l2.29 ... |
docs/app/Examples/elements/Segment/Variations/SegmentExampleVeryPadded.js | shengnian/shengnian-ui-react | import React from 'react'
import { Segment } from 'shengnian-ui-react'
const SegmentExampleVeryPadded = () => (
<Segment padded='very'>
Very padded content.
</Segment>
)
export default SegmentExampleVeryPadded
|
ui/src/shared/components/GraphTips.js | brianbaker/chronograf | import React from 'react'
import ReactTooltip from 'react-tooltip'
const GraphTips = React.createClass({
render() {
const graphTipsText =
'<p><b>Graph Tips:</b><br/><br/><code>Click + Drag</code> Zoom in (X or Y)</p><p><code>Shift + Click</code> Pan Graph Window</p><p><code>Double Click</code> Reset Graph ... |
src/components/Chat/Input/EmojiSuggestion.js | u-wave/web | import React from 'react';
import PropTypes from 'prop-types';
import ListItemAvatar from '@mui/material/ListItemAvatar';
import ListItemText from '@mui/material/ListItemText';
import Suggestion from './Suggestion';
import emojiUrl from '../../../utils/emojiUrl';
const shortcode = (emoji) => `:${emoji.shortcode}:`;
f... |
level0/client/containers/App.js | vulcan-estudios/react-examples | // Los contenedores son componentes de React que tienen acceso al estado y conocen
// la lógica de la aplicación.
// El contenedor principal es quien inicia toda la aplicación, el componente raíz.
import React, { Component } from 'react';
import database from 'client/database';
import Title from 'client/components/Ti... |
packages/wix-style-react/src/Table/DataTable/docs/ExampleSortableOldDesign.js | wix/wix-style-react | import React from 'react';
import DataTable from '..';
import './Example.scss';
const style = {
width: '966px',
};
const baseData = [
{ firstName: 'Meghan', lastName: 'Bishop' },
{ firstName: 'Sara', lastName: 'Porter' },
{ firstName: 'Deborah', lastName: 'Rhodes' },
{ firstName: 'Walter', lastName: 'Jennin... |
src/web/components/Stats/StatsList.js | asha-nepal/AshaFusionCross | /**
* Copyright 2017 Yuichiro Tsuchiya
*
* 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 agr... |
index.js | sgillespie/beer-recipe-adapter | import { DebugPanel, DevTools, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import React from 'react';
import Recipe from './containers';
import { render } from 'react-dom';
import store from './store';
const state = {
targets: {
efficiency: 0.7,
gravity: 1.055,
... |
client/src/app.js | Nauktis/inab | import createLogger from 'redux-logger';
import thunk from 'redux-thunk';
import transactionReducer from './reducers';
import { applyMiddleware, createStore } from 'redux';
import { render } from 'react-dom';
import ReduxModal from 'react-redux-modal';
import React from 'react';
import Main from './components/Main';
im... |
docs/app/Examples/elements/List/Types/ListExampleIconShorthand.js | aabustamante/Semantic-UI-React | import React from 'react'
import { List } from 'semantic-ui-react'
const ListExampleIconShorthand = () => (
<List>
<List.Item icon='users' content='Semantic UI' />
<List.Item icon='marker' content='New York, NY' />
<List.Item icon='mail' content={<a href='mailto:jack@semantic-ui.com'>jack@semantic-ui.com... |
src/svg-icons/communication/stay-current-landscape.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationStayCurrentLandscape = (props) => (
<SvgIcon {...props}>
<path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/>
</SvgIcon>
);
Communicat... |
stories/FormTextField.js | yayoc/react-textfield | import React from 'react';
import { storiesOf } from '@kadira/storybook';
import FormWrapper from '../examples/FormWrapper';
import TextFieldWrapper from '../examples/TextFieldWrapper';
import { usernameValidators, passwordValidators, emailValidators } from './validators';
storiesOf('FormTextField', module)
.addWith... |
src/svg-icons/action/watch-later.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionWatchLater = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/>
</SvgIcon>
);
ActionWatchLater = pure(Ac... |
packages/wix-style-react/stories/CardLayout/index.story.js | wix/wix-style-react | import React from 'react';
import LinkTo from '@storybook/addon-links/react';
import {
title,
description,
columns,
table,
importExample,
code,
} from 'wix-storybook-utils/Sections';
import { storySettings } from './storySettings';
import FormExampleRaw from '!raw-loader!./FormExample';
import EmptyStateE... |
examples/redux-events/src/DayCell.js | Hanse/react-calendar | /* eslint-disable react/prop-types */
import React from 'react';
import moment from 'moment';
import cx from 'classnames';
import { connect } from 'react-redux';
const DayCell = ({ day, classNames, events }) => (
<div
className={cx(
'Calendar-grid-item',
day.isSame(moment(), 'day') && 'Calendar-grid... |
src/svg-icons/action/zoom-out.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionZoomOut = (props) => (
<SvgIcon {...props}>
<path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 ... |
src/components/Project/index.js | xenotime-india/CV | import React from 'react'
import './style.scss'
class Project extends React.Component {
render() {
const { html, frontmatter } = this.props
return (
<div
className="page-content"
dangerouslySetInnerHTML={{ __html: html }}
/>
)
}
}
export default Project
|
test/frux-test.js | raulmatei/frux | import test from 'ava';
import frux from '../src/frux';
import React, { Component } from 'react';
import { counter } from './fixtures';
let actions = {};
let getters = {};
test.beforeEach(() => {
const registry = frux.initialize({
options: { debug: true },
counter
});
actions = registry.actions;
gett... |
app/js/components/PanelShell.js | blockstack/blockstack-portal | import React from 'react'
import PropTypes from 'prop-types'
import StyledPanel from '@styled/onboarding'
import Show from '@components/Show'
import SyncIcon from 'mdi-react/SyncIcon'
import { animated, Spring } from 'react-spring'
import Spinner from '@components/styled/Spinner'
const renderItems = (items, view) =>
... |
app/jsx/assignments_2/student/components/DateTitle.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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/d3components/ToolTip.js | nbuechler/studious-display | import React from 'react';
import d3 from 'd3';
import _ from 'underscore';
export default class ToolTip extends React.Component {
constructor (props) {
super(props);
this.state = { };
}
render () {
var ttRectWidth = this.props.ttRectWidth,
ttRectHeight = this.props.ttRectHeight,
scal... |
src/svg-icons/editor/vertical-align-center.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorVerticalAlignCenter = (props) => (
<SvgIcon {...props}>
<path d="M8 19h3v4h2v-4h3l-4-4-4 4zm8-14h-3V1h-2v4H8l4 4 4-4zM4 11v2h16v-2H4z"/>
</SvgIcon>
);
EditorVerticalAlignCenter = pure(EditorVerticalAlig... |
src/app/App.js | GoldStarPDX/GoldStar | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import Routes from './Routes';
import { checkForToken } from '../auth/actions';
import Footer from './Footer';
import './App.css';
class App extends Component {
componentDidMou... |
frontend/src/components/organizationProfile/edit/projectImplementation/partnerProfileProjectImplementationBankingInfo.js | unicef/un-partner-portal | import React from 'react';
import { formValueSelector, FormSection } from 'redux-form';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import RadioForm from '../../../forms/radioForm';
import TextFieldForm from '../../../forms/textFieldForm';
import { visibleIfNo, BOOL_VAL } from '../../../.... |
src/svg-icons/action/print.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPrint = (props) => (
<SvgIcon {...props}>
<path d="M19 8H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zm-3 11H8v-5h8v5zm3-7c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1zm-1-9H6v4h12V3z"/>
</... |
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultProps.js | MichaelDeBoey/flow | // @flow
import React from 'react';
class MyComponent extends React.Component<DefaultProps, Props> {
static defaultProps: DefaultProps = {};
defaultProps: T;
static props: T;
static state: T;
a: T;
b = 5;
c: T = 5;
method() {}
}
const expression = () =>
class extends React.Component<DefaultProps, ... |
src/views/Repo.js | isaaguilar/pumpkin-basket | import React from 'react'
export default React.createClass({
render() {
const { userName, repoName } = this.props.params
return (
<div>
<h2>{userName} / {repoName}</h2>
</div>
)
}
})
|
packages/material-ui-icons/src/CardTravel.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M20 6h-3V4c0-1.11-.89-2-2-2H9c-1.11 0-2 .89-2 2v2H4c-1.11 0-2 .89-2 2v11c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zM9 4h6v2H9V4zm11 15H4v-2h16v2zm0-5H4V8h3v2h2V8h6v2h2V8h3v6z" /></g>
,... |
src/app/component/upload-model-list/upload-model-list.story.js | all3dp/printing-engine-client | import React from 'react'
import {storiesOf} from '@storybook/react'
import range from 'lodash/range'
import UploadModelList from '.'
import UploadModelItem from '../upload-model-item'
import UploadModelItemError from '../upload-model-item-error'
import UploadModelItemLoad from '../upload-model-item-load'
import Link ... |
src/svg-icons/editor/border-horizontal.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderHorizontal = (props) => (
<SvgIcon {...props}>
<path d="M3 21h2v-2H3v2zM5 7H3v2h2V7zM3 17h2v-2H3v2zm4 4h2v-2H7v2zM5 3H3v2h2V3zm4 0H7v2h2V3zm8 0h-2v2h2V3zm-4 4h-2v2h2V7zm0-4h-2v2h2V3zm6 14h2v-2h-2v2z... |
frontend/src/components/Text.js | Yacenko/PetsInHome | import React from 'react';
/**
* Component to show texts in an application
* @param props
* @returns {XML}
* @constructor
*/
const Text = (props) => {
const text = props.text || '';
let arrStr = text.split('/n');
const atLastArray = arrStr.map((item, index) =>
<p key={index} className='paragraph' danger... |
project/react-ant-multi-pages/src/pages/index/containers/FunderProdMgmt/Item/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
admin/app/assets/javascripts/components/containers/WorldBank.js | ievgenen/workingstats | import React from 'react';
import {
Row,
Col,
Card,
CardHeader,
CardBody,
} from 'reactstrap';
import TaskBoard from '../containers/TaskBoard'
const WorldBank = () => (
<div className={'mt-3'}>
<Row>
<Col>
<Card className={"wb-form"}>
<CardHeader className={'cardHeader'}>
... |
Paths/React/05.Building Scalable React Apps/8-react-boilerplate-building-scalable-apps-m8-exercise-files/After/app/containers/HomePage/index.js | phiratio/Pluralsight-materials | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' 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 neccessity for you then you can refactor it and remove
* the ... |
client/src/js/configurator/Configurator.js | FlorianDe/MotivationalStairs | import React from 'react';
class Configurator extends React.Component {
render() {
return <h1>Configurator</h1>;
}
}
export default Configurator; |
apps/chat_app/web/static/js/app.js | nemanja-m/ex-chat | import React from 'react';
import { render } from 'react-dom';
import { Provider } from 'react-redux';
import createHistory from 'history/createBrowserHistory';
import configureStore from './store';
import Root from './containers/Root';
const history = createHistory();
const store = configureStore(history);
render(
... |
docs-ui/components/mutedBox.stories.js | looker/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
// import {action} from '@storybook/addon-actions';
import {withInfo} from '@storybook/addon-info';
import MutedBox from 'app/components/mutedBox';
storiesOf('Muted Box', module)
.add('default', withInfo('Default')(() => <MutedBox statusDetails=... |
webapp-src/src/TopMenu/DataSourceList.js | babelouest/taliesin | import React, { Component } from 'react';
import { NavDropdown, MenuItem } from 'react-bootstrap';
import StateStore from '../lib/StateStore';
import i18n from '../lib/i18n';
class DataSourceList extends Component {
constructor(props) {
super(props);
this.state = { currentDataSource: props.dataSource, dataSou... |
client/app/src/containers/App/index.js | gk95/nightlux | import React from 'react';
import {
BrowserRouter,
Link,
Route,
Switch,
} from 'react-router-dom';
import {
ApolloClient,
ApolloProvider,
createNetworkInterface,
} from 'react-apollo';
import style from './style.css';
import Home from 'Containers/Home';
import Category from 'Containers/Category';
impor... |
lib/utils/plugins.js | mike-engel/hyperterm | import { remote } from 'electron';
import { connect as reduxConnect } from 'react-redux';
// we expose these two deps to component decorators
import React from 'react';
import Notification from '../components/notification';
import notify from './notify';
// remote interface to `../plugins`
let plugins = remote.requir... |
src/pages/Dashboard.js | TASnomad/Fallon-react-native-app | import React, { Component } from 'react';
import {
AsyncStorage,
Dimensions,
Image,
Modal,
ScrollView,
StyleSheet,
View,
Text,
RefreshControl,
} from 'react-native';
const window = Dimensions.get('window');
import DatePicker from 'react-native-datepicker';
import LightBox from 'react... |
src/index.js | saadq/flow-timer | /**
* @flow
*/
import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import App from './app/App'
import store from './app/store'
const root = document.querySelector('#root')
if (root) {
render(
<Provider store={store}>
<App />
</... |
src/components/sidebar-actions/action-layout/action-layout.js | mpigsley/sectors-without-number | import React from 'react';
import PropTypes from 'prop-types';
import { toastr } from 'react-redux-toastr';
import copy from 'copy-to-clipboard';
import { intlShape } from 'react-intl';
import ExportModal from 'components/export-modal';
import SidebarContainer from 'primitives/container/sidebar-container';
import Ent... |
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js | tan-jerene/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import Toggle from 'material-ui/Toggle';
const optionsStyle = {
maxWidth: 255,
marginRight: 'auto',
};
/**
* This example allows you to set a date range, and to toggle `autoOk`, and `disableYearSelection`.
*/
export default class DatePi... |
src/js/pages/Proposals/Leisure/AvailabilityDatesPage.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/availability-dates.scss';
import connectToStores from "../../../utils/connec... |
src/routes.js | captainill/react-redux-universal-hot-example | 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,
Survey,
NotFound,
} from 'containers';
export default (store) ... |
src/containers/payments/show.js | amiuhle/kasisto | import React from 'react'
import { connect } from 'react-redux'
import ShowPayment from '../../views/payments/show'
import {
getPaymentById
} from '../../reducers'
const render = props => {
return <ShowPayment {...props} />
}
const mapStateToProps = (state, { match }) => ({
payment: getPaymentById(state, mat... |
src/NavItem.js | roadmanfong/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import BootstrapMixin from './BootstrapMixin';
import SafeAnchor from './SafeAnchor';
const NavItem = React.createClass({
mixins: [BootstrapMixin],
propTypes: {
linkId: React.PropTypes.string,
onSelect: React.PropTypes.func,
active: React... |
frontend/src/components/Posts/index.js | moyuyc/isomorphic-blog | /**
* Created by Moyu on 16/10/20.
*/
import React from 'react';
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
import {Map} from 'immutable'
import Post from '../Post'
class Posts extends React.Component {
constructor(props) {
super(props);
}
shouldComponentUpd... |
src/components/ArticlePreview.js | Seeingu/medium-demo | /*
文章标题、点赞数、简介
用户头像、用户名、时间
*/
import React from 'react';
import styled from 'styled-components';
import { Link } from 'react-router-dom';
import { getUser } from '../reducers';
import {
FlexTruncate,
PRIMARY_COLOR,
DARK_GRAY,
LIGHT_GRAY,
Avatar,
CustomAuthorLink,
media
} from '../styl... |
src/components/Header/Header.js | mje0002/originReact | import React from 'react'
import { IndexLink, Link } from 'react-router'
import './Header.scss'
export const Header = () => (
<div>
<h1>React Redux Starter Kit</h1>
<IndexLink to='/' activeClassName='route--active'>
Home
</IndexLink>
{' · '}
<Link to='/counter' activeClassName='route--activ... |
src/components/views/PostDetail.js | ello/webapp | import React from 'react'
import PropTypes from 'prop-types'
import Editor from '../editor/Editor'
import PostContainer from '../../containers/PostContainer'
import StreamContainer from '../../containers/StreamContainer'
import { MainView } from '../views/MainView'
import { loadRelatedPosts } from '../../actions/posts'... |
example/scripts/LAB.js | signalwerk/colorLab | import React, { Component } from 'react';
import Slider from 'rc-slider';
import InputNumber from 'rc-input-number';
import 'rc-slider/assets/index.css';
import PropTypes from 'prop-types';
import colorlab from '../../dist/colorlab';
import style from './LAB.css';
// http://colorizer.org/
export default class Lab e... |
docs/src/examples/elements/Placeholder/Content/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Message } from 'semantic-ui-react'
import ComponentExample from 'docs/src/components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/src/components/ComponentDoc/ExampleSection'
const PlaceholderContentExamples = () => (
<ExampleSection title='Content'>
<Compone... |
app/components/Profile/UserCard.js | dvm4078/dvm-blog | import React from 'react';
import PropTypes from 'prop-types';
export default class UserCard extends React.Component { //eslint-disable-line
static propTypes = {
profile: PropTypes.object,
fetched: PropTypes.bool,
};
componentDidMount() {
setTimeout(() => {
console.log(this.props.profile);
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.