path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Header/header.js | ziel5122/pdie | import React from 'react';
import Actions from './Actions';
import github from '../../img/github32.png';
import panafold from '../../img/panafold.jpg';
import styles from './styles';
const Header = () => (
<div style={styles.header}>
<div style={styles.left}>
<a href="http://panafold.co">
<img alt... |
src/js/admin/labels/label-table/label-row/label-row.js | ucev/blog | import React from 'react'
import moment from 'moment'
import PropTypes from 'prop-types'
import TableRow, { TableRowData } from '$components/tables/table-row'
import './label-row.style.scss'
const LabelRow = ({ id, name, articles, hotmark, addtime }) => {
addtime = moment.unix(addtime).format('YYYY-MM-DD')
retur... |
app/src/components/main.js | MartinKostadinov/FeTest-with-React-and-Redux | import React from 'react';
import SelectCategory from '../containers/select-category';
import ShowQuestions from '../containers/questions-container';
import ShowFinalScore from '../containers/score-screen';
class Main extends React.Component {
render() {
return (
<main>
<SelectCa... |
list/views/GridRowView.js | ExtPoint/yii2-frontend | import React from 'react';
import PropTypes from 'prop-types';
import {html} from 'components';
const bem = html.bem('GridView');
export default class GridRowView extends React.Component {
static propTypes = {
rowColumns: PropTypes.arrayOf(PropTypes.shape({
className: PropTypes.string,
... |
es/Modal/Backdrop.js | uplevel-technology/material-ui-next | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
frontend/src/components/pages/Error404.js | tdv-casts/website | // @flow
import React from 'react';
class Error404 extends React.Component {
render() {
return (
<div>
<h2>Oops!</h2>
<p>Die angegebene Seite existiert leider nicht!</p>
</div>
);
};
}
export default Error404; |
app/javascript/mastodon/features/compose/containers/warning_container.js | esetomo/mastodon | import React from 'react';
import { connect } from 'react-redux';
import Warning from '../components/warning';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import { me } from '../../../initial_state';
const mapStateToProps = state => ({
needsLockWarning: state.getIn(['compose', ... |
src/app/development/volume/StatusDistributionMultiples.js | cityofasheville/simplicity2 | import React from 'react';
import PropTypes from 'prop-types';
import { histogram } from 'd3-array';
import { nest } from 'd3-collection';
import { ResponsiveOrdinalFrame } from 'semiotic';
import Tooltip from '../../../shared/visualization/Tooltip';
import {
groupStatuses,
multiplesTitle,
getHistDomain,
} from ... |
app/javascript/mastodon/components/display_name.js | pfm-eyesightjp/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class DisplayName extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
};
render () {
const displayNameHtml = { __html: this.props.account.get('display_name_ht... |
docs/src/examples/modules/Dropdown/Content/DropdownExampleLabel.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Dropdown } from 'semantic-ui-react'
const DropdownExampleLabel = () => (
<Dropdown
text='Filter'
icon='filter'
floating
labeled
button
className='icon'
>
<Dropdown.Menu>
<Dropdown.Header icon='tags' content='Filter by tag' />
<Dropdown.Divi... |
src/components/ModalForm.js | JacksonBates/pair-frontend | import React from 'react';
import AddModalUsernameInput from './AddModalUsernameInput';
import AddModalAvailableTimeInput from './AddModalAvailableTimeInput';
import AddModalTextInput from './AddModalTextInput';
import ModalSelectionList from './ModalSelectionList';
const ModalForm = props => {
return (
<form on... |
packages/material-ui-icons/src/Http.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Http = props =>
<SvgIcon {...props}>
<path d="M4.5 11h-2V9H1v6h1.5v-2.5h2V15H6V9H4.5v2zm2.5-.5h1.5V15H10v-4.5h1.5V9H7v1.5zm5.5 0H14V15h1.5v-4.5H17V9h-4.5v1.5zm9-1.5H18v6h1.5v-2h2c.8 0 1.5-.7 1.5-1.5v-1c0-... |
src/components/InvalideProList.js | HuZai/react_settlement | // 失效商品列表
import React from 'react';
class InvalideProList extends React.Component{
constructor(props){
super(props)
this.state = {exceptionInventoryList:[{
"image":"/product/500/500/20/46/15932046.jpg",
"productId":15932046,
"quantity":1,
"name":"GUCCI/古驰女士帆布时尚印花单肩包400249KHNRN9674",
... |
app/javascript/mastodon/features/standalone/compose/index.js | dunn/mastodon | import React from 'react';
import ComposeFormContainer from '../../compose/containers/compose_form_container';
import NotificationsContainer from '../../ui/containers/notifications_container';
import LoadingBarContainer from '../../ui/containers/loading_bar_container';
import ModalContainer from '../../ui/containers/mo... |
src/components/thunderbird/signup.js | ScottDowne/donate.mozilla.org | import React from 'react';
import Email from '../email-input.js';
import {PrivacyPolicyCheckbox} from '../checkbox.js';
import {Country} from '../address-input.js';
import SubmitButton from '../submit-button.js';
var SIGNUP_SUBMITTING = 1;
var Signup = React.createClass({
mixins: [require('../../mixins/form.js')],
... |
examples/demos/basic.js | Incubity/react-big-calendar | import React from 'react';
import BigCalendar from 'react-big-calendar';
import events from '../events';
let Basic = React.createClass({
render(){
return (
<BigCalendar
{...this.props}
events={events}
defaultDate={new Date(2015, 3, 1)}
/>
)
}
})
export default Basic;
|
src/index.js | rimasg/todo-react-redux | import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-theme.css';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));... |
src/app/Playground/components/Playground.react.js | ryym/play-flex | import React from 'react';
import Canvas from './Canvas';
/**
* Render playground container.
*/
export default class Playground extends React.Component {
render() {
const { mapBoxes } = this.props;
return (
<div className="pg-playground">
<div className="pg-playground__draggable">
<... |
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/Base/Header/ComposeHeader.js | rswijesena/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you 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/li... |
templates/common/components/card/CardItem.js | willmendesneto/generator-reactor | 'use strict';
import React from 'react';
import { Link } from 'react-router';
import CardStore from '../../stores/card/CardStore';
import './cards.<%= cssExtension %>';
export default React.createClass({
getInitialState() {
return {
item: {}
};
},
componentDidMount() {
this.loadData();
},... |
src/bundles/SellerRegistration/EnterPasswordWidget.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import { Provider } from 'react-redux'
import RegisterComponent from '../../RegisterComponent'
import createStore from './redux/create'
import EnterPasswordForm from './components/EnterPasswordForm'
export const EnterPasswordWidget = (props) => {
const store = createStore(props)
return (... |
src/createBaseForm.js | setState/form | import React from 'react';
import {
argumentContainer, mirror,
getValueFromEvent, getErrorStrs,
hasRules, getParams,
isEmptyObject, flattenArray,
getNameIfNested,
flatFieldNames, clearVirtualField,
getVirtualPaths,
} from './utils';
import AsyncValidator from 'async-validator';
import warning from 'warnin... |
interface/app/app.js | dockerization/workshop-devfestby-2016 | import React from 'react';
import ReactDom from 'react-dom';
import VendingMachine from './components/VendingMachine.jsx';
import { Provider } from 'react-redux';
import configureStore from './store/configureStore.js';
const store = configureStore();
ReactDom.render(
<Provider store={store}>
<VendingMachine />
... |
components/Form/Select/Select.story.js | rdjpalmer/bloom | import React from 'react';
import { storiesOf, action } from '@storybook/react';
import { withKnobs, boolean } from '@storybook/addon-knobs';
import Select from './Select';
import Option from './Option';
import icons from '../../Icon/icons';
const stories = storiesOf('FormComponents', module);
stories.addDecorator(w... |
actor-apps/app-web/src/app/components/Deactivated.react.js | Jaeandroid/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
redux-architecture-jarvisaoieong/src/modules/counter/components/Counter.js | slorber/scalable-frontend-with-elm-or-redux | import React from 'react';
import {inc, dec} from '../actions';
export default (props) => {
const {model, dispatch} = props;
return (
<div>
<button
style={{width: '50px'}}
onClick={() => dispatch(inc())}
>
+
</button>
<span
style={{paddingLeft: '50px', pa... |
src/examples/list.js | JiaoJian1221/react-mdc-web | import React from 'react';
import {
Elevation, ListGroup, List, ListItem, ListItemIcon, ListItemText, ListDivider, ListGroupSubheader
} from '../components'
export class ListTest extends React.Component {
render() {
return (
<div>
<Elevation z={3} style={{padding: 5, width: '40%'}}>
<Li... |
dash/dash-renderer/src/components/core/Loading.react.js | plotly/dash | import {connect} from 'react-redux';
import React from 'react';
import PropTypes from 'prop-types';
function Loading(props) {
if (props.isLoading) {
return <div className='_dash-loading-callback' />;
}
return null;
}
Loading.propTypes = {
isLoading: PropTypes.bool.isRequired
};
export default... |
client/modules/QuestionType/components/Button/index.js | yagneshmodh/QuizeApp | import React, {PropTypes} from 'react';
import React from 'react';
import RaisedButton from 'material-ui/RaisedButton';
import style from './style.css';
const Button = ({label, onClick}) => {
return (
<div>
<RaisedButton className={style.buttonStyle} label={label} onClick={onClick} primary />... |
src/App.js | jdaudier/Timo-Plato | import React, { Component } from 'react';
import update from 'react-addons-update';
import { Form } from './Form';
import { CollectionView } from './CollectionView';
export class App extends Component {
constructor(props) {
super(props);
Notification.requestPermission();
this.state = {
... |
app/javascript/mastodon/features/ui/components/video_modal.js | Nyoho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from 'mastodon/features/video';
import ImmutablePureComponent from 'react-immutable-pure-component';
import Footer from 'mastodon/features/picture_in_picture/components/footer';
import... |
springboot/GReact/src/main/resources/static/app/routes/graphs/containers/ChartJs.js | ezsimple/java | import React from 'react'
import request from 'then-request'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import ChartJsGraph from '../../../components/graphs/chartjs/ChartJsGraph'
export default class ChartJs extends React.Component {
state = {};
componentWillMount() ... |
src/dumb/block_graph/ReadonlyArrowBlock.js | jeckhummer/wf-constructor | import React from 'react';
import {COLORS, WORKFLOW_GRID} from '../../styles';
export const ReadonlyArrowBlock = () => {
return(
<div style={{
paddingTop: '14px',
width: WORKFLOW_GRID.ARROW_BLOCK_WIDTH + 'px'
}}>
<div
style={{
text... |
src/App.js | ntwcklng/react-hot-boilerplate | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<h1>Hello, world.</h1>
);
}
}
|
src/components/Transport/PlayButton.js | bocasfx/Q | import React from 'react';
import { connect } from 'react-redux';
import './PlayButton.css';
import { toggleTransport } from '../../actions/Transport';
import { stopNodes, dequeueParticles } from '../../actions/Nodes';
import { bindActionCreators } from 'redux';
import PropTypes from 'prop-types';
class PlayButton ext... |
actor-apps/app-web/src/app/components/modals/create-group/Form.react.js | amezcua/actor-platform | import _ from 'lodash';
import Immutable from 'immutable';
import keymirror from 'keymirror';
import React from 'react';
import { Styles, TextField, FlatButton } from 'material-ui';
import CreateGroupActionCreators from 'actions/CreateGroupActionCreators';
import ContactStore from 'stores/ContactStore';
import Cont... |
src/routes/login/index.js | sbassan/Kingsthorpe | /**
* 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 Login from './Login';
e... |
src/svg-icons/image/camera.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCamera = (props) => (
<SvgIcon {...props}>
<path d="M9.4 10.5l4.77-8.26C13.47 2.09 12.75 2 12 2c-2.4 0-4.6.85-6.32 2.25l3.66 6.35.06-.1zM21.54 9c-.92-2.92-3.15-5.26-6-6.34L11.88 9h9.66zm.26 1h-7.49l.29.5 4... |
src/routes/admin-routes.js | thegazelle-ad/gazelle-front-end | /* eslint-disable react/jsx-filename-extension */
import { Route, IndexRedirect } from 'react-router';
import React from 'react';
import { AppController } from 'components/admin/AppController';
import { ArticleListController } from 'components/admin/ArticleListController';
import { CreateArticleController } from 'compo... |
src/client/todos/newtodo.react.js | cazacugmihai/este | import './newtodo.styl';
import Component from '../components/component.react';
import React from 'react';
export default class NewTodo extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequired,
newTodo: React.PropTypes.object.isRequired
... |
Realization/frontend/czechidm-core/src/components/advanced/MonitoringInfo/MonitoringInfo.js | bcvsolutions/CzechIdMng | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
//
import * as Basic from '../../basic';
import { MonitoringManager, DataManager, SecurityManager } from '../../../redux';
import AbstractEntityInfo from '../EntityInfo/AbstractEntityInfo';
import LongRunningTaskName f... |
src/modules/pages/HealthCheckPage/HealthCheckPage.js | hellofresh/janus-dashboard | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import SearchingContainer from '../../../components/SearchBar/searchContainer'
import HealthCheckContainer from './healthCheckContainer'
import Section from '../../Layout/Section/Section'
import Row from '../../Layout/R... |
src/main/resources/public/js/components/dropdown_menus/instance/instance-dropdown-header.js | SICTIAM/ozwillo-portal | import React from 'react';
import PropTypes from 'prop-types';
//Components
import CustomTooltip from '../../custom-tooltip';
//Config
import Config from '../../../config/config';
import {fetchServicesOfInstance} from "../../../actions/instance";
import customFetch from '../../../util/custom-fetch';
import { i18n }... |
src/client/index.js | safm/express-react-universal | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router } from 'react-router-dom';
import App from '../App';
const root = document.getElementById('root');
ReactDOM.render((
<Router>
<App />
</Router>
), root); |
front-end/src/index.js | lahdo/sentence-suggester | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter as Router, Route } from 'react-router-dom'
import AppsView from "./containers/AppsView";
import SentenceSuggester from './containers/SentenceSuggester.js';
import KeywordExtractor from './containers/KeywordExtractor.js';
import Sentime... |
src/components/common/svg-icons/editor/format-quote.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatQuote = (props) => (
<SvgIcon {...props}>
<path d="M6 17h3l2-4V7H5v6h3zm8 0h3l2-4V7h-6v6h3z"/>
</SvgIcon>
);
EditorFormatQuote = pure(EditorFormatQuote);
EditorFormatQuote.displayName = 'EditorFor... |
src/widgets/components/WidgetBranding/index.js | iris-dni/iris-frontend | import React from 'react';
import settings from 'settings';
import baseUrl from 'helpers/baseUrl';
import Logo from 'components/Logo';
import styles from './widget-branding.scss';
const LOGO_TEXT = settings.logo;
const LOGO_PATH = settings.logoPath;
const WidgetBranding = () => (
<p className={styles.root}>
<sp... |
Self/NavigatorDemo2.js | CoderJJMa/React-native-learn |
import React from 'react';
import {
// AppRegistry,
Text,
View,
Button,
} from 'react-native';
import { StackNavigator } from 'react-navigation';
/*
http://blog.csdn.net/lu1024188315/article/details/73550028
* StackNavigatorConfig
*
参数:
initialRouteName: 设置默认的页面组件,必须是上面已注册的页面组件
initia... |
react-frontend/src/LoginForm.js | aabmass/print-web | import React, { Component } from 'react';
import { Form, Button, Message } from 'semantic-ui-react'
const initialState = {
errors: []
};
class LoginForm extends Component {
constructor(props) {
super(props);
this.state = initialState;
// set up event handlers
this.handleSubmit = this.handleSubmi... |
client/extensions/woocommerce/woocommerce-services/components/labels-setup-notice/index.js | Automattic/woocommerce-connect-client | /** @format */
/**
* External dependencies
*/
import React from 'react';
import { connect } from 'react-redux';
import { localize } from 'i18n-calypso';
/**
* Internal dependencies
*/
import Card from 'components/card';
import QueryLabelSettings from 'woocommerce/woocommerce-services/components/query-label-setting... |
js/components/Notification.js | ecohealthalliance/GoodQuestion | import React from 'react';
import {
View,
Text,
TouchableOpacity,
} from 'react-native';
import Styles from '../styles/Styles';
const Notification = React.createClass({
propTypes: {
item: React.PropTypes.object.isRequired,
onPressed: React.PropTypes.func.isRequired,
},
/* Render */
render() {
... |
client/admin/info/BuildEnvironmentSection.stories.js | subesokun/Rocket.Chat | import React from 'react';
import { dummyDate } from '../../../.storybook/helpers';
import { BuildEnvironmentSection } from './BuildEnvironmentSection';
export default {
title: 'admin/info/BuildEnvironmentSection',
component: BuildEnvironmentSection,
decorators: [
(fn) => <div className='rc-old'>{fn()}</div>,
]... |
admin/src/react/template-add-page/index.js | sggdv/vegan | import $ from 'jquery';
import React, { Component } from 'react';
import ItemBox from './item-box';
import ClientBox from '../client-box';
import OptionGenerator from './option-generator';
import Trash from './trash';
import {
Col,
Form,
FormGroup,
FormControl,
Button,
ControlLabel,
Glyphicon,
Well,
Row,
Page... |
local-cli/templates/HelloNavigation/components/KeyboardSpacer.js | Ehesp/react-native | 'use strict';
/* @flow */
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import {
Platform,
View,
Keyboard,
LayoutAnimation,
UIManager,
} from 'react-native';
type Props = {
offset?: number,
}
type State = {
keyboardHeight: number
}
// Consider contributing this to the ... |
components/Panel/index.js | insane-ux/rebulma | // @flow
import React from 'react'
import cn from 'classnames'
export const Panel = ({
className,
children,
}: {
className?: string,
children?: any,
}) => (
<nav className={cn('panel', className)}>
{children}
</nav>
)
Panel.defaultProps = {
className: null,
children: null,
}
export const PanelHe... |
docs/components/home/Home.js | Scratch-it/react-color | 'use strict'
import React from 'react'
import ReactCSS from 'reactcss'
import HomeFeature from './HomeFeature'
import HomeDocumentation from './HomeDocumentation'
class Home extends ReactCSS.Component {
constructor() {
super()
this.state = {
primaryColor: '#194D33',
}
this.handleChange = t... |
src/components/Radial.react.js | cgvarela/kitematic | import React from 'react';
import classNames from 'classnames';
var Radial = React.createClass({
render: function () {
var percentage;
if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) {
percentage = (
<div className="percentage"><... |
frontend/src/qrcapt.js | wadobo/socializa | import React from 'react';
import { withRouter } from 'react-router';
import API from './api';
import { user } from './auth';
import { connected } from './connect';
import { translate } from 'react-i18next';
class QRCapt extends React.Component {
componentDidMount() {
var self = this;
var id = th... |
nlyyAPP/component/MLSelectionStudy/MLSelectionStudy.js | a497500306/nlyy_APP | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ScrollView,
ListView,
Alert
} from 'react-native';
var List = require('../..... |
app/containers/About.js | ashley-jelks-truss/DoDidDone | import React from 'react';
import BioContainer from '../components/About/BioContainer.js';
import { List } from 'immutable';
const userData = List([
{ userBio: 'Olivia Overscheduled',
userImageURL: 'http://i.imgur.com/RYBQAKA.jpg',
userContact: '(415) 864-8840' },
{ userBio: 'Tia Tudeux',
userImageURL: 'h... |
examples/with-sw-precache/pages/index.js | nelak/next.js | import React from 'react'
export default class extends React.PureComponent {
componentDidMount () {
if ('serviceWorker' in navigator) {
navigator.serviceWorker
.register('/service-worker.js')
.then(registration => {
console.log('service worker registration successful')
})
... |
packages/website/src/components/content/Paragraph.js | mucsi96/w3c-webdriver | import React from 'react';
import styled from 'styled-components';
const StyledParagraph = styled.p`
max-width: 42em;
`;
const Paragraph = ({ children }) => <StyledParagraph>{children}</StyledParagraph>;
export default Paragraph;
|
src/routes.js | DelvarWorld/some-game | import React from 'react';
import {IndexRoute, Route} from 'react-router';
import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth';
import {
App, GameContainer, Home, Editor, Login, LoginSuccess, NotFound,
} from 'containers';
export default (store) => {
const requireLogin = (nextState, r... |
public/src/checkers/checkers.container.js | MaciejSzaflik/CharadesAndStuff | import React from 'react';
import {Grid, Row, Col} from 'react-flexbox-grid';
export class Checkers extends React.Component {
render() {
return (
<Grid>
<Row>
<Col xs={12} md={8}>
<div id="canvasParent">
<canvas id="checkers" width="300" height="300"></canvas>
... |
exercise-06-solution/src/components/AddPokemonPreview.js | learnapollo/pokedex-react | import React from 'react'
import { Link } from 'react-router'
export default class AddPokemonPreview extends React.Component {
static propTypes = {
trainerId: React.PropTypes.string.isRequired,
}
render () {
return (
<Link
to={`/create/${this.props.trainerId}`}
style={{ minWidth: ... |
core/src/plugins/access.ajxp_conf/res/js/AdminWorkspaces/board/Dashboard.js | huzergackl/pydio-core | /*
* Copyright 2007-2017 Charles du Jeu - Abstrium SAS <team (at) pyd.io>
* This file is part of Pydio.
*
* Pydio 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... |
src/components/Chart.js | omarchacinortega13/react-redux-weather-map | import React from 'react';
import { Sparklines, SparklinesLine, SparklinesReferenceLine } from 'react-sparklines';
import _ from 'lodash';
function average(data) {
return _.round(_.sum(data)/data.length)
}
const Chart = (props) => {
return (
<div>
<Sparklines height={120} width={180} data={props.data}... |
src/svg-icons/notification/sync-disabled.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSyncDisabled = (props) => (
<SvgIcon {...props}>
<path d="M10 6.35V4.26c-.8.21-1.55.54-2.23.96l1.46 1.46c.25-.12.5-.24.77-.33zm-7.14-.94l2.36 2.36C4.45 8.99 4 10.44 4 12c0 2.21.91 4.2 2.36 5.64L4 20... |
web/demo/client/src/layout/components/sider/index.js | yinweiwen/study | import React, { Component } from 'react';
import {Menu, Icon} from 'antd';
class Sider extends Component {
constructor(props) {
super(props);
}
render() {
const { sections, dispatch, user, pathname } = this.props;
let items = sections.filter(s => typeof s.getNavItem == 'functi... |
src/utils/cloneChildren.js | koorchik/react-mdl | import React from 'react';
export default function(children, props) {
return React.Children.map(children, child => {
var p = typeof props === 'function' ? props(child) : props;
return React.cloneElement(child, p);
});
}
|
examples/pinterest/app.js | cgrossde/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
client/app/scripts/hoc/metric-feeder.js | dilgerma/scope | import React from 'react';
import d3 from 'd3';
import { OrderedMap } from 'immutable';
const makeOrderedMap = OrderedMap;
const parseDate = d3.time.format.iso.parse;
const sortDate = (v, d) => d;
const DEFAULT_TICK_INTERVAL = 1000; // DEFAULT_TICK_INTERVAL + renderTime < 1000ms
const WINDOW_LENGTH = 60;
/**
* Highe... |
app/components/children/viewer.js | asvigos/zenpseudo | import React from 'react';
import axios from 'axios';
import PropTypes from 'prop-types';
class Viewer extends React.Component{
constructor(props){
super(props);
this.state = {
entries: [],
editSelect: 'active',
textSelect: 'notActive',
plainText: 'active',
js: 'notActive',
python: 'notActive'... |
app/app/components/SideMenu/EntitiesProductSubMenu.js | lycha/masters-thesis | import React from 'react';
import {Link} from 'react-router';
class EntitiesProductSubMenu extends React.Component {
constructor(props) {
super(props);
this.displayName = 'EntitiesProductSubMenu';
}
onClick(e) {
this.props.onAnalysisSelected(this.props.entity, this.props.product);
... |
app/components/Toggle/index.js | iFatansyReact/react-boilerplate-imagine | /**
*
* LocaleToggle
*
*/
import React from 'react';
import Select from './Select';
import ToggleOption from '../ToggleOption';
function Toggle(props) {
let content = (<option>--</option>);
// If we have items, render them
if (props.values) {
content = props.values.map((value) => (
<ToggleOption key... |
src/components/Layout/Header/Archive.js | Apozhidaev/terminal.mobi | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { setArchive } from 'store/app/book/actions';
class Archive extends Component {
constructor(props) {
super(props);
this.handleInputChange = this.handleInputChange.bind(this);
}
handleInputChange(e) {
e.preventDe... |
src/js/components/Icon.js | ejoreo/portfolio-site | import React, { Component } from 'react';
class Icon extends Component {
propTypes: {
url: PropTypes.string,
alt: PropTypes.string,
height: PropTypes.number,
width: PropTypes.number
}
render() {
return (
<div className="Icon">
<span>
Icon
<img
... |
index.ios.js | ming-cho/react-native-demo | import {Provider} from 'react-redux';
import store from './src/redux/store';
import AppViewContainer from './src/modules/AppViewContainer';
import React from 'react';
import {AppRegistry} from 'react-native';
const ReactNativeDemo = React.createClass({
render() {
return (
<Provider store={store}>
... |
pkg/interface/link/src/js/components/links-list.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { LoadingScreen } from './loading';
import { MessageScreen } from '/components/lib/message-screen';
import { LinksTabBar } from './lib/links-tabbar';
import { SidebarSwitcher } from '/components/lib/icons/icon-sidebar-switch.js';
import { Route, Link } from 'react-router... |
src/client/components/CarouselWidget/CarouselWidget.js | vidaaudrey/trippian | import log from '../../log'
import React from 'react'
import {
Carousel, CarouselItem
}
from 'react-bootstrap'
import {
CarouselWidget as appConfig
}
from '../../config/appConfig'
// can handle two kinds of inputs
// ['imageURL', 'imageURL'] or
// [{src: 'imageURL', caption: '...', description: '...' }, {src: '... |
src/svg-icons/places/rv-hookup.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesRvHookup = (props) => (
<SvgIcon {...props}>
<path d="M20 17v-6c0-1.1-.9-2-2-2H7V7l-3 3 3 3v-2h4v3H4v3c0 1.1.9 2 2 2h2c0 1.66 1.34 3 3 3s3-1.34 3-3h8v-2h-2zm-9 3c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1... |
webpack/move_to_foreman/components/common/table/formatters/EntitlementsInlineEditFormatter.js | adamruzicka/katello | import React from 'react';
import { sprintf, translate as __ } from 'foremanReact/common/I18n';
import { KEYCODES } from 'foremanReact/common/keyCodes';
import { Table, FormControl, FormGroup, HelpBlock, Spinner } from 'patternfly-react';
import { validateQuantity } from '../../../../../scenes/Subscriptions/Subscriptio... |
app/javascript/mastodon/features/followers/index.js | Toootim/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 {
fetchAccount,
fetchFollowers,
expandFollowers,
} from '../../actions/account... |
src/components/ConnectionIndicator/index.js | welovekpop/uwave-web-welovekpop.club | import React from 'react';
import PropTypes from 'prop-types';
import { translate } from 'react-i18next';
import Card from '@material-ui/core/Card/Card';
import CardHeader from '@material-ui/core/CardHeader';
import OfflineIcon from './OfflineIcon';
const enhance = translate();
const ConnectionIndicator = ({ isConnec... |
assets/javascripts/kitten/components/form/field/components/error.js | KissKissBankBank/kitten | import React from 'react'
import { Text } from '../../../typography/text'
export const FieldError = ({ children, ...others }) => {
return (
<div className="k-u-margin-top-single">
<Text
tag="p"
color="error"
size="micro"
weight="regular"
lineHeight="normal"
s... |
src/server.js | Arunvirat/Logi-heroes | 'use strict';
import path from 'path';
import { Server } from 'http';
import Express from 'express';
import React from 'react';
import { renderToString } from 'react-dom/server';
import { match, RouterContext } from 'react-router';
import routes from './routes';
import NotFoundPage from './components/NotFoundPage';
/... |
src/web/components/InfoMessage.js | faalsh/Lama | import React from 'react';
import { StyleSheet, css } from 'aphrodite'
import '../assets/info.png'
class InfoMessage extends React.Component {
handleDismiss(){
this.props.actions.dismissError()
}
render() {
const styles = StyleSheet.create({
panel: {
position: 'fixed',
backg... |
app/components/FSBrowser/index.js | jakubrohleder/aurelius | /**
*
* FSBrowser
*
*/
import React from 'react';
import ImageWrapper from './ImageWrapper';
import styles from './styles.css';
import empty from './empty.svg';
export default function FSBrowser(props) {
const { fs, onEdit, onRemove } = props;
const handleChange = (oldName) => (newName) => {
onEdit(oldName,... |
examples/async/index.js | Zack-Tillotson/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/notifications/components/clear_column_button.js | res-ac/mstdn.res.ac | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
classic/src/scenes/wbui/TopLevelErrorBoundary.js | wavebox/waveboxapp | import React from 'react'
import { SUPPORT_URL } from 'shared/constants'
import pkg from 'package.json'
import WBRPCRenderer from 'shared/WBRPCRenderer'
// Stick to inline styles here to reduce dependencies for this
const styles = {
root: {
display: 'flex',
alignItems: 'center',
justifyContent: 'center',... |
src/page/table-demo.js | knledg/react-webpack-skeleton | import React from 'react';
import { Page, Panel, Table, TableHead, TableBody, TableRow, Button, EditableText, Pagination, Breadcrumbs } from 'react-blur-admin';
import { Link } from 'react-router';
import {Row, Col} from 'react-flex-proto';
export class TableDemo extends React.Component {
constructor(props) {
... |
node_modules/react-router/es/Router.js | iEnder/React-Blog | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _objectWithoutProperties(obj, keys) { var target = {... |
src/views/icons/UnMuteButtonIcon.js | physiii/open-automation | import React from 'react';
import IconBase from './IconBase.js';
import './StopButtonIcon.css';
export const UnMuteButtonIcon = () => (
<IconBase viewBox="0 0 20 20">
<path d="M9.344,2.593c-0.253-0.104-0.547-0.045-0.743,0.15L4.486,6.887H1.313c-0.377,0-0.681,0.305-0.681,0.681v4.916c0,0.377,0.304,0.681,0.681,0.681h3.... |
packages/cf-component-dropdown/example/basic/component.js | manatarms/cf-ui | import React from 'react';
import {
Dropdown,
DropdownLink,
DropdownSeparator
} from 'cf-component-dropdown';
import {
Button as ButtonUnstyled,
ButtonTheme,
ButtonGroup as ButtonGroupUnstyled,
ButtonGroupTheme
} from 'cf-component-button';
import { applyTheme } from 'cf-style-container';
const Button = ... |
app/javascript/mastodon/features/notifications/components/clear_column_button.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return (
<button className='text-btn column-he... |
examples/master-detail/app.js | BerkeleyTrue/react-router | import React from 'react'
import { render, findDOMNode } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, History, Route, IndexRoute, Link } from 'react-router'
import ContactStore from './ContactStore'
require('./app.css')
const history = useBasename(createHistory)({
basename:... |
src/components/app.js | endreujhelyi/React-Router-Redux-Form | import React, { Component } from 'react';
export default class App extends Component {
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/scripts/components/menu/Menu.component.story.js | ModuloM/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2016 Kodo Kojo (infos@kodokojo.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at ... |
node_modules/redbox-react/examples/react-transform-catch-errors/index.js | devinfountain/portfolio | import React from 'react'
import App from './components/App'
const root = document.getElementById('root')
React.render(<App />, root)
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.