path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
app/components/YoutubeNotice/index.js
zillding/hangouts
/** * * YoutubeNotice * */ import React from 'react'; import styles from './styles.css'; const YoutubeNotice = () => ( <p className={styles.youtubeNotice}> * Use above control buttons to make sure actions are sync across all users in the room. </p> ); export default YoutubeNotice;
src/components/render-clip/render-clip-2d.js
raulsebastianmihaila/crizmas-components
import React from 'react'; import propTypes from 'prop-types'; import {getFitContentValue, getStickyValue} from '../../utils.js'; const {createElement} = React; const fitContentValue = getFitContentValue(); const stickyValue = getStickyValue(); export default class RenderClip2D extends React.Component { construct...
src/server.js
prgits/react-product
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
react-router-tutorial/lessons/04-nested-routes/index.js
zerotung/practices-and-notes
import React from 'react' import { render } from 'react-dom' import { Router, Route, hashHistory } from 'react-router' import App from './modules/App' import About from './modules/About' import Repos from './modules/Repos' render(( <Router history={hashHistory}> <Route path="/" component={App}/> <Route path=...
src/widgets/History/components/CustomizedAxisTick.js
rocket-internet-berlin/RocketDashboard
import React from 'react'; import constants from '../../../config/constants'; const CustomizedAxisTick = props => { const { x, y, stroke, payload } = props; // eslint-disable-line return ( <g transform={`translate(${x},${y})`}> <text x={0} y={0} dy={16} textAnchor="end" fill={constants.chartColor.tickC...
src/components/Forms/NewOffer.js
andresmechali/shareify
import React from 'react'; import PropTypes from 'prop-types'; import axios from 'axios'; import { withApollo } from 'react-apollo'; import CREATE_ITEM from '../../utils/queries/CREATE_ITEM'; import classNames from 'classnames'; import validateInput from '../../utils/formValidation'; import Input from '../../compo...
scripts/routes.js
stylecoder/flux-react-router-example
'use strict'; import React from 'react'; import { Route } from 'react-router'; import App from './App'; import RepoPage from './pages/RepoPage'; import UserPage from './pages/UserPage'; export default ( <Route name='explore' path='/' handler={App}> <Route name='repo' path='/:login/:name' handler={RepoPage} /> ...
front_end/front_end_app/src/client/components/editable.react.js
carlodicelico/horizon
import './editable.styl'; import Component from '../components/component.react'; import React from 'react'; import Textarea from 'react-textarea-autosize'; import classnames from 'classnames'; import immutable from 'immutable'; import {msg} from '../intl/store'; const State = immutable.Record({ isEditing: false, v...
src/entypo/Typing.js
cox-auto-kc/react-entypo
import React from 'react'; import EntypoIcon from '../EntypoIcon'; const iconClass = 'entypo-svgicon entypo--Typing'; let EntypoTyping = (props) => ( <EntypoIcon propClass={iconClass} {...props}> <path d="M16,4H4C2.899,4,2,4.9,2,6v7c0,1.1,0.899,2,2,2h4l4,3v-3h4c1.1,0,2-0.9,2-2V6C18,4.9,17.1,4,16,4z M6,10....
modules/Home/Logo.js
cloudytimemachine/frontend
import React from 'react' const Logo = ({props}) => { return ( <div className="logo"> <img className="img-responsive" src="images/ctm_logo.png" alt="Cloudy Time Machine Logo" /> </div> ) } export default Logo;
src/components/PeerInfoTitle/PeerInfoTitle.js
dialogs/dialog-web-components
/* * Copyright 2019 dialog LLC <info@dlg.im> * @flow strict */ import React from 'react'; import Icon from '../Icon/Icon'; import classNames from 'classnames'; import Markdown from '../Markdown/Markdown'; import decorators from './decorators'; import styles from './PeerInfoTitle.css'; export type PeerInfoTitleProp...
src/index.js
marcosfede/random-quote-machine
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider' import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); ReactDOM.render( <MuiThemeProvider> <App /> </MuiThemeP...
src/js/components/button/button.js
working-minds/realizejs
import React, { Component } from 'react'; import PropTypes from '../../prop_types'; import i18n from '../../i18n/i18n'; import { autobind, mixin } from '../../utils/decorators'; import Icon from '../icon/icon'; import CssClassMixin from '../../mixins/css_class_mixin'; import RequestHandlerMixin from '../../mixins/requ...
app/containers/HomePage1/index.js
dedywahyudi/lilly-contentful
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; // import RichTextEditor from 'react-rte'; import { Link } from 'react-router'; // import { Checkbox, Grid, Modal, Icon } from 'semantic-ui-react'; import ReactModal from 'react-modal'; import Sortable from 'react-sortable...
frontend/react-stack/react/aluraflix/src/index.js
wesleyegberto/courses-projects
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Switch, Route } from 'react-router-dom'; import './index.css'; import Home from './pages/Home'; import Pagina404 from './pages/Pagina404'; import CadastroVideo from './pages/CadastroVideo'; import CadastroCategoria from './pages/Cada...
client/src/components/Explorer/ExplorerPanel.js
mikedingjan/wagtail
import PropTypes from 'prop-types'; import React from 'react'; import FocusTrap from 'focus-trap-react'; import { STRINGS, MAX_EXPLORER_PAGES } from '../../config/wagtailConfig'; import Button from '../Button/Button'; import LoadingSpinner from '../LoadingSpinner/LoadingSpinner'; import Transition, { PUSH, POP } from...
examples/cra-ts-kitchen-sink/src/stories/docgen-tests/jsdoc/jsdoc.js
storybooks/react-storybook
/* eslint-disable react/no-unused-prop-types */ /* eslint-disable react/require-default-props */ import React from 'react'; import PropTypes from 'prop-types'; export const JsDocProps = () => <div>JSDoc with PropTypes!</div>; JsDocProps.propTypes = { /** * should not be visible since it's ignored. * @ignore ...
containers/animalScene.js
marxsk/zobro
import React from 'react'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import AnimalScene from '../components/animalScene'; import {setLastAnimal, setReaderLevel} from '../actions' const mapStateToProps = (state) => { return { configuration: state.configuration, } } const m...
frontend/src/containers/BackupDetails/subpage/StatsContent.js
XiaocongDong/mongodb-backup-manager
import React, { Component } from 'react'; import BackupStats from 'components/BackupStats'; export default class StatsContent extends Component { render() { return ( <div className="stats-content"> <BackupStats backupConfig={ this.props.backupConfig }/> </div> ...
docs/src/GettingStartedPage.js
victorzhang17/react-bootstrap
import React from 'react'; import CodeExample from './CodeExample'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import Anchor from './Anchor'; export default class Page extends React.Component { render() { return ( <div> <NavMa...
_reference_dup-src-ignore/index.js
Ankiewicz/veteran-mentor
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import PlayerReducer from './reducers/player'; import Scoreboard from './containers/Scoreboard'; const store = createStore( PlayerReducer, window.devToolsExtension && window.d...
docs/src/PaginationPage.js
jsbranco/react-materialize
import React from 'react'; import Row from '../../src/Row'; import Col from '../../src/Col'; import ReactPlayground from './ReactPlayground'; import PropTable from './PropTable'; import store from './store'; import Samples from './Samples'; import pagination from '../../examples/Pagination'; class PaginationPage exten...
src/components/Label/Label.js
ggrumbley/ghg-react
import React from 'react'; import PropTypes from 'prop-types'; /** Label with required field display, htmlFor, and block styling */ const Label = ({ htmlFor, label, required }) => { return ( <label style={{display: 'block'}} htmlFor={htmlFor}> { label } { required && <span style={{color: 'red'}}> *</span> } ...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/source/src/app/components/FormComponents/CheckboxOrRadioGroup.js
lakmali/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...
src/components/docker/original/DockerOriginal.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './DockerOriginal.svg' /** DockerOriginal */ function DockerOriginal({ width, height, className }) { return ( <SVGDeviconInline className={'DockerOriginal' + ' ' + c...
LogFileReader/log-viewer-fe/app/containers/NavBar/index.js
luungoc2005/LogFileReader
import React from 'react'; import { Menu } from 'semantic-ui-react'; import { HOME_ITEM } from './constants'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'react-intl'; import { makeSelectActiveItem } from './selectors'; import { changeActiveItem } fro...
src/browser/components/fxbml.js
chad099/react-native-boilerplate
// @flow // Higher order component for Facebook XFBML. // Examples // https://gist.github.com/steida/04a39dfa1043e1451044ba8370743b0c // https://gist.github.com/steida/b19a1858e38007651a616ae44244ca52 import React from 'react'; const xfbml = (WrappedComponent: any) => class Wrapper extends React.Component { el...
lab-nodejs/lab-nodejs-react-ux/src/components/Comp2/index.js
rojarsmith/Lab
import React from 'react'; import { Link } from "react-router-dom"; const Comp2 = () => { return ( <div>Comp2 <div style={{ width: '50vw', height: '2160px', border: '2px #cccccc dashed' }}></div> Comp2 END </div> ...
src/components/Header/Header.js
ademuk/flyguy-flux
import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Component { render() { return <Navigation/>; } } export default Head...
src/components/need/BookingAgent/ResidentInspect.js
lethecoa/work-order-pc
import React from 'react'; import {Form, DatePicker, Input, Radio, Checkbox} from 'antd'; import moment from 'moment'; import {config, fun} from '../../../common'; import CarryMaterial from '../../formItme/CarryMaterial/CarryMaterial'; import styles from './ResidentInspect.less'; const RadioGroup = Radio.Group; const ...
website/src/pages/404.js
frontyard/keystone
import React, { Component } from 'react'; import Container from '../../components/Container'; import { compose } from 'glamor'; import Link from 'gatsby-link'; import Header from '../../components/Header'; import theme from '../../theme'; import Footer from './components/home/Footer'; const Body = () => ( <div classN...
src/components/topic/summary/StoryTotalsSummaryContainer.js
mitmedialab/MediaCloud-Web-Tools
import PropTypes from 'prop-types'; import React from 'react'; import { injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import MenuItem from '@material-ui/core/MenuItem'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemIcon from '@material-ui/core/ListI...
ReactNative/appB - Copy/App.js
tahashahid/cloud-computing-2017
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ /*import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', a...
src/svg-icons/action/flip-to-back.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlipToBack = (props) => ( <SvgIcon {...props}> <path d="M9 7H7v2h2V7zm0 4H7v2h2v-2zm0-8c-1.11 0-2 .9-2 2h2V3zm4 12h-2v2h2v-2zm6-12v2h2c0-1.1-.9-2-2-2zm-6 0h-2v2h2V3zM9 17v-2H7c0 1.1.89 2 2 2zm10-4h2v-2h-2...
packages/reactor-kitchensink/src/examples/PivotGrid/RangeEditorPlugin/RangeEditorPlugin.js
markbrocato/extjs-reactor
import React, { Component } from 'react'; import { Container, PivotGrid, Toolbar, Button } from '@extjs/reactor/modern'; import SaleModel from '../SaleModel'; import { generateData } from '../generateSaleData'; Ext.require(['Ext.pivot.plugin.RangeEditor']); export default class RangeEditorPlugin extends Component { ...
src/components/icons/CautionFilledIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const CautionFilledIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M0 0h24v24H0z" fill="none" /> <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" /> ...
frontend/app_v2/src/components/GridListToggle/GridListTogglePresentation.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' // FPCC import useIcon from 'common/useIcon' function GridListTogglePresentation({ accentColor, isGridView, setIsGridView }) { return ( <div className="ml-6 bg-gray-100 p-0.5 rounded-lg flex items-center"> <button type="button" o...
app/javascript/mastodon/features/compose/containers/sensitive_button_container.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { changeComposeSensitivity } from 'mastodon/actions/compose'; import { injectIntl, defineMessages, FormattedMessage } from 'react-intl'; const messages = defineMessages({ ...
src/app/core/atoms/icon/icons/star-half.js
blowsys/reservo
import React from 'react'; const StarHalf = (props) => <svg {...props} viewBox="0 0 24 24"><g><g><path d="M12,17.27 L5.82,21 L7.46,13.97 L2,9.24 L9.19,8.63 L12,2 L14.81,8.63 L22,9.24 L16.54,13.97 L18.18,21 L12,17.27 Z M12,7.12519767 L12,7.12519767 L12,14.9339482 L15.1554708,16.8384638 L14.3180455,13.2487686 L17.1076664...
packages/react/src/components/forms/InputSlider/index.js
massgov/mayflower
/** * InputSlider module. * @module @massds/mayflower-react/InputSlider * @requires module:@massds/mayflower-assets/scss/01-atoms/01-atoms/helper-text */ import React from 'react'; import PropTypes from 'prop-types'; import Input from 'MayflowerReactForms/Input'; import CompoundSlider from 'MayflowerReactForms/Comp...
app/javascript/mastodon/features/generic_not_found/index.js
rutan/mastodon
import React from 'react'; import Column from '../ui/components/column'; import MissingIndicator from '../../components/missing_indicator'; const GenericNotFound = () => ( <Column> <MissingIndicator /> </Column> ); export default GenericNotFound;
frontend/src/components/editor/attachments/list.js
1905410/Misago
// jshint ignore:start import React from 'react'; import Attachment from './attachment'; export default function(props) { return ( <ul className="list-unstyled editor-attachments-list"> {props.attachments.map((item) => { return ( <Attachment item={item} key={item.id || item.key} {...props...
modules/IndexRoute.js
hgezim/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
src/components/Search/AdvancedSearch.js
terryli1643/thinkmore
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import styles from './Search.less' import { DatePicker, Input, Select, Button, Icon } from 'antd' import moment from 'moment'; const { RangePicker } = DatePicker; const dateFormat = 'YYYY/MM/DD'; class AdvancedSearch extends...
assets/javascript/components/editActivity/activityLink.js
colinjeanne/learning-site
import { activityLinkPropType } from './../propTypes'; import React from 'react'; const activityLink = props => { return ( <section className="activityLink"> <span>{props.activityLink.title}</span> <span> (<a href={props.activityLink.uri}>{props.activityLink.uri}</a>...
src/interface/statistics/components/RadarChart/SvgWrappingText.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { select } from 'd3-selection'; class SvgWrappingText extends React.PureComponent { static propTypes = { children: PropTypes.string.isRequired, width: PropTypes.number.isRequired, }; elem = null; constructor() { super(); th...
src/client/app/home.react.js
srhmgn/markdowner
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; class Home extends Component { render() { return ( <DocumentTitle title="Home"> <div> <h1>Home</h1> </div> </DocumentTitle> ); } } expor...
client/src/js/component/AdminAuthHandler.js
lologarithm/fastbible
import React from 'react'; const {div, span, h1} = React.DOM; import component from 'component'; import {routeNames} from 'constants'; import {RouteHandler, Router} from './router-jsx'; import LeftNav from './LeftNav'; export default component({ displayName: 'LoginView', mixins: [Router.State, Router.Navigat...
example/examples/DraggableMarkers.js
palexs/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import PriceMarker from './PriceMarker'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4...
templates/react/components/foo/Create.js
api-platform/generate-crud
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link, Redirect } from 'react-router-dom'; import PropTypes from 'prop-types'; import Form from './Form'; import { create, reset } from '../../actions/{{{lc}}}/create'; class Create extends Component { static propTypes = { e...
main.js
lublank/blank-react
/** * main.js入口文件,把App和redux建立联系,Provider是react-redux的组件, * 用于将store和视图绑定在一起,Store就是那个唯一的State树。当Store发生变化时, * 整个App就会做出相应的变化,这里的会传进Provider的props.children里。 */ import React from 'react'; import {createStore} from 'redux'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import App from './Ap...
icandevit/src/components/Nav.js
yeli-buonya/icandevit.io
import React from 'react'; import logo from '../header.svg'; import { Link } from 'react-router-dom'; import { Collapse, Col, Row, Grid, Jumbotron, Media, MenuItem, NavDropdown, Navbar, NavbarToggler, NavbarBrand, PageHeader, Image, Nav, NavItem, NavLink } from 'react-bootstrap'; class ...
app/assets/scripts/components/workshop-fold.js
openaq/openaq.github.io
'use strict'; import React from 'react'; var WorkshopFold = React.createClass({ displayName: 'WorkshopFold', render: function () { return ( <section className='workshop-fold'> <div className='inner'> <header className='workshop-fold__header'> <h1 className='workshop-fold__t...
components/toolbar/index.js
react-material-design/react-material-design
import '@material/toolbar/dist/mdc.toolbar.css'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import classNames from 'classnames'; import { MDCToolbar } from '@material/toolbar'; import ToolbarRow from './toolbarRow'; class Toolbar extends Component { static propTypes = { c...
actor-apps/app-web/src/app/components/dialog/messages/MessageItem.react.js
liruqi/actor-platform-v0.9
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import VisibilitySensor from 'react-visibility-sensor'; import DialogActionCreators from 'actions/DialogActionCreators';...
app/client/src/components/ActionSettingsContainer/ActionSettingsContainer.js
uprisecampaigns/uprise-app
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { graphql, compose } from 'react-apollo'; import camelCase from 'camelcase'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import { Step, Stepper, StepButton, StepContent,...
examples/forms-bootstrap/src/components/forms-destroy-wizard-generic/Hook.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import config from './config'; export default createReactClass({ displayName: 'Hook', propTypes: { model: PropTypes.object.isRequired }, render: function() { const { model } = this.props;...
src/SField.js
thr-consulting/controls
// @flow import React from 'react'; import type {ChildrenArray} from 'react'; import {connectToMessageContainer} from 'react-input-message'; import {Form} from 'semantic-ui-react'; type Props = { for: string, messages: Object, children?: ChildrenArray<*>, }; /** * A SemanticUI field with error markings. * @clas...
client/modules/App/components/DevTools.js
caleb272/ProjectAccent
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
static/src/index.js
tmc/parsesearch
import React from 'react'; import SearchApp from './SearchApp'; React.render(<SearchApp className={ClassName} />, document.getElementById('root'));
src/controls/InputError.js
amvmdev/amvm-ui
import React from 'react'; const styles = { 'position': 'absolute', 'bottom': '-28px', 'top': 'auto', 'zIndex': '1000' } function displaySingleMessage(error) { return (<li className="parsley-required" key={error}>{error}</li>); }; const InputError = ({error}) => { if (error && typeof (error) =...
Electron-vanillaJS-HTML/app.js
arishuynhvan/SPi-Reader
'use strict'; /** An example */ import React from 'react'; import {render} from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import Main from './src/Main'; // Our custom react component import style from './css/main.scss'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/9889...
app/routes.js
LeagueDevelopers/lol-skins-viewer
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import TabbedContainer from 'containers/TabbedContainer'; import App from 'containers/App'; import Skins from 'containers/Skins'; import Settings from 'containers/Settings'; import ReleaseNotes from 'containers/ReleaseNotes'; export default...
docs/src/app/components/pages/components/Menu/Page.js
ArcanisCz/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 menuReadmeText from './README'; import MenuExampleSimple from './ExampleS...
app/javascript/mastodon/features/follow_requests/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/components/basicComponent/CheckboxTag/CheckboxTag.js
SmiletoSUN/react-redux-demo
/***************************************************************** * 青岛雨人软件有限公司©2016版权所有 * * 本软件之所有(包括但不限于)源代码、设计图、效果图、动画、日志、 * 脚本、数据库、文档均为青岛雨人软件或其附属子公司所有。任何组织 * 或者个人,未经青岛雨人软件书面授权,不得复制、使用、修改、分发、 * 公布本软件的任何部分。青岛雨人软件有限公司保留对任何违反本声明 * 的组织和个人采取法律手段维护合法权益的权利。 **************************************************...
src/svg-icons/image/wb-sunny.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbSunny = (props) => ( <SvgIcon {...props}> <path d="M6.76 4.84l-1.8-1.79-1.41 1.41 1.79 1.79 1.42-1.41zM4 10.5H1v2h3v-2zm9-9.95h-2V3.5h2V.55zm7.45 3.91l-1.41-1.41-1.79 1.79 1.41 1.41 1.79-1.79zm-3.21 13.7...
src/components/pages/yunbook/EditView.js
yiweimatou/yishenghoutai
import React from 'react' import { Field } from 'redux-form' import { RaisedButton,MenuItem,Tabs,Tab} from 'material-ui' import TextField from '../../ReduxForm/TextField' import SelectField from '../../ReduxForm/SelectField' import AreaSelect3 from '../../AreaSelect3' import EditLblView from './EditLblView' const styl...
src/svg-icons/av/surround-sound.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSurroundSound = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zM7.76 16.24l-1.41 1.41C4.78 16.1 4 14.05 4 12c0-2.05.78-4.1 2.34-5.66l1.4...
node_modules/react-paginate/react_components/BreakView.js
wiflsnmo/react_study2
'use strict'; import React from 'react'; const BreakView = (props) => { const label = props.breakLabel; const className = props.breakClassName || 'break'; return ( <li className={className}> {label} </li> ); } export default BreakView;
packages/material-ui-icons/src/LocalPharmacy.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LocalPharmacy = props => <SvgIcon {...props}> <path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z" /> </SvgIcon>; LocalPharmacy = pure(Local...
src/components/Section/MoreOverlay.js
ndlib/beehive
import React from 'react' import createReactClass from 'create-react-class' const MoreOverlay = createReactClass({ style: function () { return { position: 'absolute', bottom: '0', left: '0', zIndex: '2', height: '60px', lineHeight: '60px', width: '100%', textAlign...
client/index.js
vibhas77/Student-Wallet
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); const mountApp = document.getEleme...
src/components/portal/Single/_base.js
chaoticbackup/chaoticbackup.github.io
import React from 'react'; import { observable } from "mobx"; import { observer, inject } from 'mobx-react'; import { Link } from 'react-router-dom'; import API from '../../SpreadsheetData'; import { RarityIcon, Ability } from '../../Snippets'; import s from '../../../styles/app.style'; // own "name" display function ...
src/client/spinner.js
kukhckr/hacker-menu
import React from 'react' export default class Spinner extends React.Component { render () { return ( <div className='spinner'> Loading... </div> ) } }
src/routes.js
djfm/ps-translations-interface-mockup
/** * 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 Router from 'react-routi...
src/applications/my-education-benefits/config/form.js
department-of-veterans-affairs/vets-website
import React from 'react'; import { createSelector } from 'reselect'; // Example of an imported schema: // import fullSchema from '../22-1990-schema.json'; // eslint-disable-next-line no-unused-vars import commonDefinitions from 'vets-json-schema/dist/definitions.json'; import preSubmitInfo from 'platform/forms/preSub...
src/components/Unit/SvgUnit.js
wfp/ui
import React from 'react'; import { InvalidSvg } from './InvalidUnit'; const SvgUnit = (value, props) => { const { style, ...other } = props; if (value) return ( <text className={props.className} {...other}> <tspan style={style}>{value.before} </tspan> <tspan style={style}>{value.value}<...
src/renderer/main.js
p4sh4/electron-react-sample-app
/* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; import Main from './components/Main'; ReactDOM.render(<Main />, document.getElementById('app'));
examples/huge-apps/routes/Course/routes/Assignments/components/Assignments.js
rubengrill/react-router
import React from 'react' class Assignments extends React.Component { render() { return ( <div> <h3>Assignments</h3> {this.props.children || <p>Choose an assignment from the sidebar.</p>} </div> ) } } export default Assignments
src/components/Artboard.js
weaintplastic/react-sketchapp
/* @flow */ import React from 'react'; import PropTypes from 'prop-types'; import StyleSheet from '../stylesheet'; import ViewStylePropTypes from './ViewStylePropTypes'; const propTypes = { // TODO(lmr): do some nice warning stuff like RN does style: PropTypes.shape({ ...ViewStylePropTypes, }), name: PropT...
docs/src/app/components/pages/components/Stepper/VerticalNonLinearStepper.js
frnk94/material-ui
import React from 'react'; import { Step, Stepper, StepButton, StepContent, } from 'material-ui/Stepper'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; /** * A basic vertical non-linear implementation */ class VerticalNonLinear extends React.Component {...
src/client/components/NavWidget/NavWidget.js
vidaaudrey/trippian
import log from '../../log' import React from 'react' import { Link } from 'react-router' import { SearchBoxWidget, LocaleMenuWidget } from '../index' import { FormattedMessage } from 'react-intl' import { UserMenuWidget } from '../index' import { NavWidget as appConfig } from '../../config/appConfig' func...
fixtures/react_native_windows_e2e_app/src/Films.js
callstack-io/haul
import React from 'react'; import { Text, FlatList } from 'react-native'; import { Query } from 'react-apollo'; import gql from 'graphql-tag'; export default function Films() { return ( <Query query={gql` { allFilms { title } } `} > {({ loadin...
app/components/ErrorLine.js
zoo1/fil
import React from 'react'; export default class ErrorLine extends React.Component { render() { let block = "console__error-line", error = this.props.error; return ( <div className={block}> <pre className={block + "__description"}> {error} </pre> </div> ); ...
src/ButtonToolbar.js
glenjamin/react-bootstrap
import classNames from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import { createBootstrapComponent } from './ThemeProvider'; class ButtonToolbar extends React.Component { static propTypes = { /** * @default 'btn-toolbar' */ bsPrefix: PropTypes.string, /** ...
dashboard-ui/app/components/drawer/cloudEvent.js
CloudBoost/cloudboost
/* eslint-disable no-undef */ import React from 'react'; import { Card, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'; class CloudEvent extends React.Component { constructor () { super(); this.state = { }; } copyToClipboard = (element) => () => { var $temp = $('<input>')...
public/js/11D.js
ritchieanesco/frontendmastersreact
/* Setting application state */ import React from 'react' // type annotataions for data const {string} = React.PropTypes const ShowCard = React.createClass({ propTypes: { poster: string, title: string, year: string, description: string }, render () { // destructuring - e6 feature const {...
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
Havi4/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
client/src/containers/about/About.js
Edvinas01/chat-rooms
import React from 'react'; const About = () => { return ( <div> <h1>About</h1> <p> Chat Rooms is a simple ReactJS chat application which uses JWTs to authenticate. This application is based on awesome ReactJS starter project which you can find <a ...
node_modules/react-native/local-cli/templates/HelloNavigation/views/MainNavigator.js
gunaangs/Feedonymous
'use strict'; /** * This is an example React Native app demonstrates ListViews, text input and * navigation between a few screens. * https://github.com/facebook/react-native */ import React, { Component } from 'react'; import { StackNavigator } from 'react-navigation'; import HomeScreenTabNavigator from './HomeS...
src/client/pages/me.react.js
jaegerpicker/GLDice
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import Logout from '../auth/logout.react'; import React from 'react'; import immutable from 'immutable'; import requireAuth from '../auth/requireauth.react'; import {msg} from '../intl/store'; @requireAuth class Me...
src/client/pages/Layout.js
callmeJozo/MKRN
import React from 'react'; import { Link } from 'react-router'; import { Button, Icon, Menu, Dropdown, message, notification } from 'antd'; import AuthStore from "../stores/auth"; import UserStore from "../stores/user"; const DropdownButton = Dropdown.Button; AuthStore.init(); class Layout extends React.Component { ...
js/components/inputgroup/error.js
ChiragHindocha/stay_fit
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, IconNB, Item, Input } from 'native-base'; import { Actions } from 'react-native-router-flu...
app/containers/LanguageProvider/index.js
dvm4078/dvm-blog
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'...
source/components/Tour.react.js
BeethovensWerkstatt/VideApp
import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import TourSteps from '../tour/tourSteps.js'; import {eohub} from './../_modules/eo-hub'; import Popper from 'popper.js'; //Tours //var Drop = require('tether-drop'); let TourException = (count) => { console.log('emi...
redux-form/example-fieldArrays/jsx/FieldArraysForm.js
Muzietto/react-playground
import React from 'react' import { Field, FieldArray, reduxForm } from 'redux-form' import validate from './validate' const renderField = ({ input, label, type, meta: { touched, error } }) => ( <div> <label>{label}</label> <div> <input {...input} type={type} placeholder={label} /> {touched && err...
src/Parser/Core/Modules/NetherlightCrucibleTraits/SecureInTheLight.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import HealingDone ...
app/javascript/mastodon/features/ui/index.js
SerCom-KC/mastodon
import classNames from 'classnames'; import React from 'react'; import { HotKeys } from 'react-hotkeys'; import { defineMessages, injectIntl } from 'react-intl'; import { connect } from 'react-redux'; import { Redirect, withRouter } from 'react-router-dom'; import PropTypes from 'prop-types'; import NotificationsContai...
react/Autosuggest/Autosuggest.demo.js
seek-oss/seek-style-guide
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Autosuggest from './Autosuggest'; import styles from '../TextField/TextField.less'; import classnames from 'classnames'; import fieldMessageOptions from '../FieldMessage/FieldMessage.demoFragment'; import fieldLabelOptions from '../Fie...