path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/svg-icons/content/content-copy.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentContentCopy = (props) => (
<SvgIcon {...props}>
<path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"/>
</SvgIcon>
);... |
src/shared/components/Products/Details/CommonDetails.js | Grace951/ReactAU | import React from 'react';
import { DetailsImage } from './DetailsImage';
import { DetailsTab } from './DetailsTab';
import { DetailsDesc } from './DetailsDesc';
let CommonDetails = ({data, match, ajaxState}) => {
if (ajaxState > 0) {
return (<div className="ajax-loading"><img src="/build/img/ajax-loader.gif" alt=... |
fields/components/CollapsedFieldLabel.js | xyzteam2016/keystone | import React from 'react';
import { Button } from 'elemental';
// NOTE marginBottom of 1px stops things jumping around
// TODO find out why this is necessary
function CollapsedFieldLabel ({ style, ...props }) {
const __style__ = {
marginBottom: 1,
paddingLeft: 0,
paddingRight: 0,
...style,
};
return (
<... |
src/js/admin/articles/filters/group-operation-select/group-operation-select.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import FilterSelect from '../filter-select'
const OPERATION_OPTIONS = [
{ value: '-1', title: '--选择操作--' },
{ value: 'on', title: '上线' },
{ value: 'off', title: '下线' },
{ value: 'move', title: '移动' },
{ value: 'del', title: '删除' },
]
const Gro... |
app/src/components/Carousel.js | zhangchenyue/r-uniquers | import React, { Component } from 'react';
import Slider from 'react-slick';
import '../assets/styles/Carousel.css'
import 'slick-carousel/slick/slick.css';
import 'slick-carousel/slick/slick-theme.css';
class Carousel extends Component {
render() {
var settings = {
dots: true,
infi... |
src/modules/Rooms/components/Controls/ControlsController.js | prjctrft/mantenuto | import React, { Component } from 'react';
import { connect } from 'react-redux';
import app from 'app';
import { makeCall,
updateUserMedia,
endCall
} from 'modules/Call/redux';
import {
patchRoom,
updateConnectionState,
updateControls,
// localVideoOn,
// localVideoOff,
// remoteVideoOn,
// remoteVide... |
docs/src/components/Demo/Demo.js | seek-oss/seek-style-guide | import styles from './Demo.less';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import { PageBlock, Section, Text } from 'seek-style-guide/react';
import Baseline from './Baseline/Baseline';
import Code from './Code/Code';
import flatten from 'lodash... |
Example/app/containers/App.js | sogilis/react-native-bluetooth | import React from 'react';
import Routes from '../lib/Routes';
import { createStore, applyMiddleware, combineReducers, compose, } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import * as reducers from '../reducers';
const reducer = combineReducers(reducers);
const store = cre... |
web/client/src/routes.js | wasong/cmpt433 | import React from 'react'
import Radium from 'radium'
import Dashboard from './Dashboard'
import Sidebar from './Sidebar'
const styles = {
display: 'flex',
minHeight: '100vh',
}
export default Radium(() => (
<div style={styles}>
<Sidebar />
<Dashboard />
</div>
))
|
app/containers/pages/Workshop/index.js | romainquellec/cuistot | /*
*
* Workshop
*
*/
import React from 'react';
import WorkshopComp from '../../../components/pages/Workshop';
// eslint-disable-next-line react/prefer-stateless-function
export class Workshop extends React.PureComponent {
render() {
return <WorkshopComp />;
}
}
export default Workshop;
|
app/components/ListItem/index.js | dbrelovsky/react-boilerplate | import React from 'react'
import styles from './styles.css'
function ListItem (props) {
return (
<li className={props.className || styles.item}>
<div className={styles.itemContent}>
{props.item}
</div>
</li>
)
}
ListItem.propTypes = {
className: React.PropTypes.string,
item: React... |
src/components/app.js | StephenGrider/JSPlaygrounds | import React, { Component } from 'react';
import SplitPane from 'react-split-pane';
import Editor from './editor';
import Viewer from './viewer';
export default class App extends Component {
render() {
const width = window.innerHeight;
return (
<SplitPane split="vertical" defaultSize={width}>
... |
src/js/admin/categories/category-table/category-table/category-table.js | ucev/blog | import React from 'react'
import { connect } from 'react-redux'
import CategoryLabel from '../category-label'
import CategoryRow from '../category-row'
import Table from '$components/tables/table'
import TableBody from '$components/tables/table-body'
import TableFoot from '$components/tables/table-foot'
const Categor... |
src/components/api/vkAuth.js | BudIT/vclub | import React, { Component } from 'react';
import SvgIcon from 'vclub/components/icons/SvgIcon';
import VkIcon from './icons/vk-icon.svg';
import styles from './vkAuth.css';
export default class VKLogin extends Component {
static propTypes = {
onLogin: React.PropTypes.func.isRequired,
idApp: React.PropTypes.n... |
src/Parser/Warrior/Arms/Modules/BuffDebuff/TacticianProc.js | hasseboulen/WoWAnalyzer | import React from 'react';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
const debug = false;
class TacticianProc extends Analyzer {
totalProcs = 0;
on_byPlayer_applybu... |
client/components/Grid/Footer.js | dimitri-a/wp2_budget | import React from 'react';
export default ({children})=> {
return (
<tfoot>{children}</tfoot>
);
};
|
src/home/root.component.js | CanopyTax/single-spa-examples | import React from 'react';
import Technology from './technology.component.js';
import Walkthroughs from './walkthroughs.component.js';
import {getBorder, showFrameworkObservable} from 'src/common/colored-border.js';
export default class HomeRoot extends React.Component {
constructor() {
super();
this.state =... |
src/svg-icons/image/crop.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
examples/shopping-cart/src/components/CartContainer.js | aldanor/nuclear-js | import React from 'react'
import Cart from '../../common/components/Cart'
import reactor from '../reactor'
import getters from '../getters'
import actions from '../actions'
export default React.createClass({
mixins: [reactor.ReactMixin],
getDataBindings() {
return {
products: getters.cartProducts,
... |
pootle/static/js/shared/components/Odometer.js | evernote/zing | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import OdometerLib from 'odometer';
import React from 'rea... |
src/elements/Step/StepDescription.js | Semantic-Org/Semantic-UI-React | import cx from 'clsx'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
} from '../../lib'
function StepDescription(props) {
const { children, className, content } = props
const classes = cx('d... |
node_modules/rc-switch/es/Switch.js | yhx0634/foodshopfront | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/help... |
src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshesInstantsSuggestion.js | FaideWW/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import SpellLink from 'common/SpellLink';
function suggest(when, suggestion) {
when(suggestion).addSuggestion((suggest, actual, recommended) => {
return suggest(<>You refreshed <SpellLink id={suggestion.spell.id} /> early {suggest... |
src/routes/Spotify/routes/User/components/UserView.js | CarlTheLandlord/spotify-checker | import React from 'react'
import './UserView.scss'
export const UserView = () => (
<div>
<h4>Welcome Authorized User!</h4>
</div>
)
export default UserView
|
blueocean-material-icons/src/js/components/svg-icons/editor/drag-handle.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorDragHandle = (props) => (
<SvgIcon {...props}>
<path d="M20 9H4v2h16V9zM4 15h16v-2H4v2z"/>
</SvgIcon>
);
EditorDragHandle.displayName = 'EditorDragHandle';
EditorDragHandle.muiName = 'SvgIcon';
export default EditorDragHandle;
|
frontend/src/components/partners/partnersFilter.js | unicef/un-partner-portal | import R from 'ramda';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { reduxForm } from 'redux-form';
import { connect } from 'react-redux';
import { browserHistory as history, withRouter } from 'react-router';
import { withStyles } from 'material-ui/styles';
import Grid from 'mat... |
src/pages/Sprint/components/BDC.js | Minishlink/DailyScrum | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { View, StyleSheet } from 'react-native';
import { format } from 'date-fns';
import { isEqual } from 'lodash';
import { Text, Card, Graph } from '../../../components';
import appStyle from '../../../appStyle';
import { bdcD... |
src/js/containers/MadLibber/placeholder_input.js | mathjoy/simpleReact | import React from 'react';
export default (props) => {
return (
<input type='text' placeholder={this.props.placeholder} required />
);
}
|
docs/src/examples/elements/Container/Variations/ContainerExampleAlignment.js | Semantic-Org/Semantic-UI-React | /* 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 textAlign='right'>Right A... |
src/svg-icons/action/assignment-late.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentLate = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-6 15h-2v-2h2v2zm0... |
src/Parser/Monk/Windwalker/Modules/Items/SoulOfTheGrandmaster.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
import ItemDamageDone from 'Main/ItemDamageDone';
clas... |
src/React/Widgets/InlineSvgIconWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
// Note the default icon uses the viewBox attribute to create a coordinate system,
// but does not specify height or width attributes on the svg element itself. This
// allows us to size the icon with the height/width props provided to this component.
// ... |
src/svg-icons/action/perm-data-setting.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDataSetting = (props) => (
<SvgIcon {...props}>
<path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0... |
src/svg-icons/hardware/keyboard-arrow-down.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardArrowDown = (props) => (
<SvgIcon {...props}>
<path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/>
</SvgIcon>
);
HardwareKeyboardArrowDown = pure(HardwareKeyboardArrowDown);
HardwareKey... |
fields/types/geopoint/GeoPointFilter.js | snowkeeper/keystone | import React from 'react';
import { FormField, FormInput, FormRow, SegmentedControl } from 'elemental';
const DISTANCE_OPTIONS = [
{ label: 'Max distance (km)', value: 'max' },
{ label: 'Min distance (km)', value: 'min' },
];
function getDefaultValue () {
return {
lat: undefined,
lon: undefined,
distance: {... |
src/components/Examples.js | stoeffel/recompose-examples | import React from 'react';
import Counter from './Counter';
import listOf from '../enhancers/listOf';
import withLog from '../enhancers/withLog';
import undoable from '../enhancers/undoable';
const examples = [{
Example: Counter,
name: 'Counter'
}, {
Example: listOf(Counter, 'counter'),
name: 'listOf(Counter)'... |
app/components/ConsoleToolbar.js | billyct/fil | import React from 'react';
import {connect} from 'react-redux';
import {setPreference} from 'actions/preferences';
import {getExtension} from 'helpers';
import {byExtension} from 'interpreters';
class ConsoleToolbar extends React.Component {
handleRunButton(event) {
event.preventDefault();
this.props.onRun(... |
src/components/ProjectPage/Info/index.js | jahammo2/portfolio-web_client | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Images from './Images';
import './index.scss';
import { List, Map } from 'immutable';
const propTypes = {
project: PropTypes.instanceOf(Map),
devices: PropTypes.instanceOf(List),
screenshots: PropTypes.instanceOf(List),
sideBa... |
simul/app/components/login.js | sf-red-pandas-2016/simul-react-native | import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
TextInput,
TouchableHighlight,
} from 'react-native';
import I18n from 'react-native-i18n'
class Login extends Component{
constructor(){
super();
this.state = {
name: "",
username: "",
password_digest: ... |
src/index.js | michaelghinrichs/school-working-days-calculator | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
app/app.js | ReelTalkers/reeltalk-web | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill'
// Load the favicon, the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./favicon.ico'
import 'file?name=[name].[ext]... |
app/containers/PermissionsErrorView/index.js | juanda99/arasaac-frontend | import React from 'react'
import View from 'components/View'
import { FormattedMessage } from 'react-intl'
import { PICTOGRAMS_URL } from 'services/config'
import H3 from 'components/H3'
import messages from './messages'
const PermissionsErrorView = () => (
<View left={true}>
<H3>{<FormattedMessage {...messages.... |
src/svg-icons/maps/rate-review.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsRateReview = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 14v-2.47l6.88-6.88c.2-.2.51-.2.71 0l1.77 1.77c.2.2.2.51 0 .71L8.47 14H6zm1... |
src/app/components/intro/intro.js | swcraftersclm/katangapp-frontend | /**
* Copyright 2016-today Software swcraftersclm
*
* 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 ... |
client/src/components/OverviewRateLabel.js | untoldwind/gotrack | import React from 'react'
import {formatRate} from './formats'
export default class OverviewRateLabel extends React.Component {
static propTypes = {
title: React.PropTypes.string.isRequired,
className: React.PropTypes.string,
rate: React.PropTypes.number.isRequired,
}
constructor(... |
examples/src/components/ValuesAsNumbersField.js | stephen/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.... |
src/svg-icons/av/remove-from-queue.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvRemoveFromQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/>
</SvgIcon>
);... |
src/components/Board/newBoard.js | motion123/mbookmakerUI | /**
* Created by tomihei on 17/03/31.
*/
import React from 'react';
import Dialog from 'material-ui/Dialog';
import FlatButton from 'material-ui/FlatButton';
import styles from './newBoard.css';
import Toggle from 'material-ui/Toggle';
import TextField from 'material-ui/TextField';
export default class NewBoard exte... |
app.js | omero/PokeMap | import React from 'react';
import PokeGame from './components/PokeGame';
React.render(<PokeGame />, document.getElementById('container-map'));
|
client/src/routes/NotFound.js | BenDiuguid/fantasy-fifa | import React from 'react';
const NotFound = () => (
<div className="NotFound">
<h1>This page can not be found</h1>
</div>
);
export default NotFound;
|
packages/eslint-config-react-native/test/rules/no-unused-styles/imported-styles/function-component/MyComponent.js | moxystudio/eslint-config | import React from 'react';
import { View } from 'react-native';
import styles from './styles';
const MyComponent = () => <View style={ styles.foo } />;
export default MyComponent;
|
docs/src/app/components/pages/components/Menu/ExampleDisable.js | mtsandeep/material-ui | import React from 'react';
import Paper from 'material-ui/Paper';
import Menu from 'material-ui/Menu';
import MenuItem from 'material-ui/MenuItem';
import Divider from 'material-ui/Divider';
const style = {
display: 'inline-block',
margin: '16px 32px 16px 0',
};
const MenuExampleDisable = () => (
<div>
<Pap... |
app/javascript/mastodon/features/ui/util/react_router_helpers.js | lynlynlynx/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { Switch, Route } from 'react-router-dom';
import ColumnLoading from '../components/column_loading';
import BundleColumnError from '../components/bundle_column_error';
import BundleContainer from '../containers/bundle_container';
// Small wrapper t... |
docs/src/examples/views/Advertisement/Types/AdvertisementExampleBannerTop.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Advertisement } from 'semantic-ui-react'
const AdvertisementExampleBannerTop = () => (
<Advertisement unit='top banner' test='Top Banner' />
)
export default AdvertisementExampleBannerTop
|
client/pc/src/components/Admin/TeacherAdmin.js | CongYunan/course_attendance | // 加载 React 相关组件
import React, { Component } from 'react';
// 加载 AntD 相关组件
import { Button, notification, Spin, Modal, Form, Input, Select } from 'antd';
// 加载自定义组件
import CommonTable from '../CommonTable';
// 加载自定义工具集
import { checkMapData } from '../../tools/Check';
// 加载 React-Redux 组件
import { connect } from 'react... |
src/view/About.js | sPyOpenSource/personal-website | import React, { Component } from 'react';
class About extends Component {
render() {
return (
<div className="container">
<div>
<img src="/img/DSC001952.jpg" height="386" width="290" alt="My face"/>
</div>
<div>
<h2>Biography</h2>
... |
src/svg-icons/action/done-all.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDoneAll = (props) => (
<SvgIcon {...props}>
<path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4... |
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/MediaList.js | jmanday/Master | 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/ContentBlocks/BlockParagraphCTAs/BlockParagraphCTAs.js | grommet/grommet-cms-content-blocks | // @flow
import React from 'react';
import Box from 'grommet/components/Box';
import { BlockButton } from '../BlockButton';
import { BlockParagraph } from '../BlockParagraph';
import { BlockContainer, CTABox } from './styles';
import uuid from '../Shared/uuid';
type Cta = {
label: string,
path: string,
assetType... |
client/src/components/home/SprintInformationPanelComponent.js | krzysztofkolek/github-bugtracker | 'use strict';
require('styles//SprintInformationPanel.scss');
import React from 'react';
import { connect } from "react-redux"
import {BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend} from 'Recharts';
const data = [
{name: 'Page A', uv: 10, pv: 0, amt: 0}
];
@connect((store) => {
return {
}... |
examples/with-redux/src/index.js | casesandberg/react-color | import React from 'react'
import ReactDOM from 'react-dom'
import { createStore } from 'redux'
import { reducer as app } from './reducer'
import { Provider } from 'react-redux'
import App from './App'
ReactDOM.render(
<Provider store={ createStore(app) }>
<App />
</Provider>,
document.getElementById('root')... |
src/components/pages/Landing/index.js | apedyashev/reactjs-jobs-aggregator | // libs
import React from 'react';
import {connect} from 'react-redux';
// actions
// components
class LandingPage extends React.Component {
render() {
return (<div>LandingPage</div>);
}
}
function select(/* state, ownProps */) {
return {
};
}
export default connect(select, {
})(LandingPage);
|
src/decorators.js | andywer/nuka-carousel | 'use strict';
import React from 'react';
const DefaultDecorators = [
{
component: React.createClass({
render() {
return (
<button
style={this.getButtonStyles(this.props.currentSlide === 0)}
onClick={this.props.previousSlide}>PREV</button>
)
},
... |
src/svg-icons/action/done-all.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDoneAll = (props) => (
<SvgIcon {...props}>
<path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4... |
node_modules/alt/test/alt-iso-test.js | fyafighter/informifly | import React from 'react'
import Alt from '../'
import AltContainer from '../AltContainer'
import AltIso from '../utils/AltIso'
import { assert } from 'chai'
const alt = new Alt()
const UserActions = alt.generateActions('receivedUser', 'failed')
const UserSource = {
fetchUser() {
return {
remote(state, i... |
src/svg-icons/action/print.js | pradel/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"/>
</... |
src/svg-icons/av/fiber-dvr.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberDvr = (props) => (
<SvgIcon {...props}>
<path d="M17.5 10.5h2v1h-2zm-13 0h2v3h-2zM21 3H3c-1.11 0-2 .89-2 2v14c0 1.1.89 2 2 2h18c1.11 0 2-.9 2-2V5c0-1.11-.89-2-2-2zM8 13.5c0 .85-.65 1.5-1.5 1.5H3V9h3.5c.8... |
src/svg-icons/notification/personal-video.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationPersonalVideo = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12z"/>
</SvgIcon>
);
Notifi... |
examples/CustomLibraryPicker/index.ios.js | thegamenicorus/react-native-phone-input | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import App from './app'
AppRegistry.registerComponent('CustomLibraryPicker', () => App); |
examples/few-dependencies/src/App.js | suevalov/code-splitting-in-react-apps-presentation | import React, { Component } from 'react';
import 'draft-js';
import 'emojione';
import logo from './logo.svg';
import './App.css';
function determineDate() {
import(/* webpackChunkName: "my-first-plugin" */ 'moment')
.then((moment) => {
console.log(moment().format());
});
}
determineDate();
class App... |
examples/counter/index.js | gaulucky92/redux | import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/ui/components/upload_area.js | TootCat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Motion from 'react-motion/lib/Motion';
import spring from 'react-motion/lib/spring';
import { FormattedMessage } from 'react-intl';
class UploadArea extends React.PureComponent {
static propTypes = {
active: PropTypes.bool,
onClose: PropT... |
src/shared/components/heroBanner/heroBanner.js | hollomancer/operationcode_frontend | import React from 'react';
import PropTypes from 'prop-types';
import styles from './heroBanner.css';
const HeroBanner = ({ imageSrc, title, subtitle }) => {
const bannerStyles = {
backgroundImage: `url(${imageSrc})`
};
return (
<div style={bannerStyles} className={styles.heroBanner}>
<div classNa... |
src/features/IntroModal/LearnMore.js | erhathaway/cellular_automata | import React from 'react';
import styled from 'react-emotion';
import ReactRouterPropTypes from 'react-router-prop-types';
import { router as routerSerivce } from '../../services';
const Container = styled('div')`
position: relative;
display: flex;
justify-content: center;
width: 100%;
background-color: inh... |
src/components/SurahsDropdown/index.js | quran/quran.com-frontend | import React, { Component } from 'react';
import * as customPropTypes from 'customPropTypes';
import LinkContainer from 'react-router-bootstrap/lib/LinkContainer';
import NavDropdown from 'react-bootstrap/lib/NavDropdown';
import MenuItem from 'react-bootstrap/lib/MenuItem';
import LocaleFormattedMessage from 'componen... |
fields/explorer/components/FieldType.js | linhanyang/keystone | import React from 'react';
import Markdown from 'react-markdown';
import Col from './Col';
import Row from './Row';
import FieldSpec from './FieldSpec';
const ExplorerFieldType = React.createClass({
getInitialState () {
return {
readmeIsVisible: !!this.props.readme,
filter: this.props.FilterComponent.getDefa... |
app/main.js | rlesniak/interview | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import { Provider } from 'react-redux';
import App from './components/App';
import createStore from './createStore';
const store = createStore();
const render = (Component) => {
ReactDOM.render(
<Prov... |
docs/src/app/components/pages/components/DatePicker/Page.js | manchesergit/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 datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
docs/src/app/components/pages/components/Snackbar/ExampleAction.js | kittyjumbalaya/material-components-web | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import TextField from 'material-ui/TextField';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
autoHideDur... |
src/svg-icons/action/swap-vertical-circle.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSwapVerticalCircle = (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 2zM6.5 9L10 5.5 13.5 9H11v4H9V9H6.5zm11 6L14 18.5 10.5 15H13v-4h2v4h2.5z"/>
... |
packages/bonde-admin/src/pages/admin/mobilizations/widgets/pressure/settings/adjustments/page.connected.js | ourcities/rebu-client | //
// @route /mobilizations/:mobilization_id/widgets/:widget_id/pressure
//
import React from 'react'
import { connect } from 'react-redux'
import { injectIntl, FormattedMessage } from 'react-intl'
import { graphql } from 'react-apollo'
import * as graphqlQueries from '@/graphql/queries'
import { Warning } from '@/comp... |
lib/server/server.js | stormojm/unesco-list | import Express from 'express';
const app = new Express();
import React from 'react';
import { match, RouterContext } from 'react-router';
app.use((req, res, next) => {
res.set('Content-Type', 'text/html')
.status(200)
.end(`<!doctype html><html><body>Hello World</body></html>`);
});
// start app
app.list... |
mdbreact/components/Collapse.js | ryanwashburne/react-skeleton | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
const SHOW = 'SHOW';
const SHOWN = 'SHOWN';
const HIDE = 'HIDE';
const HIDDEN = 'HIDDEN';
const DEFAULT_DELAYS = {
show: 350,
hide: 350
};
class Collapse extends Component {
constructor(props) ... |
app/components/LandingCH.js | chena/kiminonawa-web | import React from 'react';
import Button from 'muicss/lib/react/button';
import Form from 'muicss/lib/react/form';
import Input from 'muicss/lib/react/input';
import Textarea from 'muicss/lib/react/textarea';
import Container from 'muicss/lib/react/container';
import Divider from 'muicss/lib/react/divider';
import Row... |
js/Header.js | daninmotion/react-02 | import React from 'react'
import {connect} from 'react-redux'
import {setSearchTerm} from './actionCreators'
import {Link} from 'react-router'
class Header extends React.Component {
constructor (props) {
super(props)
this.handleSearchTermChange = this.handleSearchTermChange.bind(this)
}
handleSearchTermChange ... |
docs/src/pages/HomePage.js | gocreating/react-tocas | import React from 'react';
import { Helmet } from "react-helmet";
import ReactDisqus from 'react-disqus';
import PageLayout from '../utils/PageLayout';
import GithubButton from '../utils/GithubButton';
import ShareButtons from '../utils/ShareButtons';
import {
Slate,
Segment,
Header,
Images,
Image,
} from '..... |
client/src/App.js | blusclips/zonaster | import React, { Component } from 'react';
import { View, AsyncStorage } from 'react-native';
import {autobind} from 'core-decorators';
import {action, observable} from 'mobx';
import axios from 'axios';
import {observer} from 'mobx-react/native';
import { StackNavigator } from 'react-navigation';
import {Intro, Login, ... |
src/components/map/zoom-control.js | boundlessgeo/sdk | /*
* Copyright 2015-present Boundless Spatial Inc., http://boundlessgeo.com
* 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 ... |
source/client/components/visitor/layout/home-layout.js | lawshe/boda | import React from 'react';
import Grid from 'react-bootstrap/lib/Grid';
import glob from 'styles/app';
import local from './_styles';
import Footer from './footer';
import Menu from './menu';
/**
*
* The visitor homepage layout
*
* @param
*
* @return {ReactComponent}
*/
export default (props) => (
<di... |
src/web/forms/fields/MultiInput/RowComponent.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... |
src/index.js | mtraina/react-app | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App/>,
document.getElementById('root'));
|
examples/admin/src/components/FeaturedIn/index.js | aranja/tux | import React from 'react'
import './styles.css'
import githubLogo from './github.svg'
import aranjaLogo from './aranja.svg'
import jsconfisLogo from './jsconfis.svg'
import reactLogo from './react.svg'
const defaultCompanies = [
{ name: 'Github', logo: githubLogo, url: 'https://github.com' },
{ name: 'Aranja', lo... |
ajax/libs/react-instantsearch/4.1.1/Connectors.js | pvnr0082t/cdnjs | /*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.... |
node_modules/semantic-ui-react/src/modules/Search/SearchResults.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
customPropTypes,
getElementType,
getUnhandledProps,
META,
} from '../../lib'
function SearchResults(props) {
const { children, className } = props
const classes = cx('results transition', className)
const r... |
examples/chat-app/app/index.js | shanecav/horizon-redux | // @flow
'use strict'
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import { compose, applyMiddleware, createStore } from 'redux'
import createLogger from 'redux-logger'
import horizonRedux from './horizon/redux'
impo... |
app/javascript/mastodon/features/home_timeline/components/setting_text.js | 3846masa/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropTypes.string.isR... |
admin/client/components/EditForm.js | Redmart/keystone | import React from 'react';
import moment from 'moment';
import ConfirmationDialog from './ConfirmationDialog';
import Fields from '../fields';
import FormHeading from './FormHeading';
import AltText from './AltText';
import FooterBar from './FooterBar';
import InvalidFieldType from './InvalidFieldType';
import { Button... |
src/esm/components/structure/tables/single-entry-table/index.js | KissKissBankBank/kitten | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
var _excluded = ["className", "isSliding"],
_excluded2 = ["children", "headerRowProps"],
_excluded3 = ["className"],
_excluded4 = ["className"];
import Reac... |
src/routes/app/routes/charts/routes/bar/components/Bar.js | ahthamrin/kbri-admin2 | import React from 'react';
import ReactEcharts from 'components/ReactECharts';
import CHARTCONFIG from 'constants/ChartConfig';
import QueueAnim from 'rc-queue-anim';
const bar1 = {};
const bar2 = {};
const bar3 = {};
const bar4 = {};
const bar5 = {};
bar1.options = {
tooltip: {
trigger: 'axis'
},
legend: {... |
client/views/LandingPage/LandingPage.js | lakshyaranganath/pwa | import React from 'react';
import PropTypes from 'prop-types';
import isEmpty from 'lodash/isEmpty';
import { asyncConnect } from 'redux-connect';
import { bindActionCreators, compose } from 'redux';
import * as userActionCreators from '../../services/user/userActionCreators';
import UsersListAsync from './UserList/Use... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.