path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
docs/app/Examples/elements/Rail/Variations/RailExampleAttached.js | shengnian/shengnian-ui-react | import React from 'react'
import { Grid, Image, Rail, Segment } from 'shengnian-ui-react'
const RailExampleAttached = () => (
<Grid centered columns={3}>
<Grid.Column>
<Segment textAlign='center'>
<Image src='/assets/images/wireframe/paragraph.png' />
<Rail attached position='left'>
... |
static/tables/position-table.js | joequant/sptrader | import React from 'react';
import {Button} from 'react-bootstrap';
import {AgGridReact, reactCellRendererFactory} from 'ag-grid-react';
import {renderChar, renderNumber} from '../utils';
class PositionControl extends React.Component {
close() {
}
render() {
return (
<Button onClick={this.close.bind(this... |
apps/marketplace/components/SellerDashboard/Header.js | AusDTO/dto-digitalmarketplace-frontend | import React from 'react'
import PropTypes from 'prop-types'
import { NavLink } from 'react-router-dom'
import styles from './SellerDashboard.scss'
const Header = props => (
<div className={`${styles.header} row`}>
<div className="col-sm-12">
<div className={`row`}>
<div className="col-xs-12 col-md... |
src/components/ui/Text.js | arayi/SLions | /**
* Text
*
<Text h1>Hello World</Text>
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Text } from 'react-native';
// Consts and Libs
import { AppStyles } from '@theme/';
/* Compon... |
assets/javascripts/kitten/components/feedback/vertical-stepper/stories.js | KissKissBankBank/kitten | import React from 'react'
import { VerticalStepper } from './index'
import { Text } from 'kitten'
import { DocsPage } from 'storybook/docs-page'
export default {
title: 'Feedback/VerticalStepper',
component: VerticalStepper,
decorators: [
story => (
<div className="story-Container story-Grid story-Grid... |
frontend/app_v2/src/common/icons/Stop.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
function Stop({ styling }) {
return (
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" className={styling}>
<path d="M20.121 21.121H3.879c-.537-.021-.974-.349-1-1V3.879c.021-.539.349-.974 1-1h16.242l.078.003c.502.06.902.484.922.997v16.... |
src/components/App/index.js | Noviel/osnova-react-environment | // Created by snov on 16.02.2017.
//
// Application component
//
//=========================================================================
import React, { Component } from 'react';
import Helmet from 'react-helmet';
import config from '../../../config/app';
export default class App extends Component {
render() {
... |
client/src/index.js | mbb70/hera2 | import 'bootstrap/dist/css/bootstrap.css';
import 'bootstrap/dist/css/bootstrap-reboot.css';
import 'bootstrap/dist/css/bootstrap-grid.css';
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/integration/react';
import { stor... |
fields/types/boolean/BooleanFilter.js | Pylipala/keystone | import React from 'react';
import { SegmentedControl } from 'elemental';
const TOGGLE_OPTIONS = [
{ label: 'Is Checked', value: true },
{ label: 'Is NOT Checked', value: false }
];
var BooleanFilter = React.createClass({
getInitialState () {
return {
checked: this.props.value || TOGGLE_OPTIONS[0].value
};
... |
examples/react/src/ImageZoom.js | francoischalifour/medium-zoom | import React from 'react'
function ImageZoom({ zoom, src, alt, background }) {
const zoomRef = React.useRef(zoom.clone({ background }))
function attachZoom(image) {
zoomRef.current.attach(image)
}
return <img src={src} alt={alt} ref={attachZoom} />
}
export default ImageZoom
|
ui/src/app/components/appLogs.js | ridakk/node-log-server | import React from 'react';
import { deepOrange500 } from 'material-ui/styles/colors';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { Table, TableBody, TableHeader,
TableHeaderColumn, TableRow, TableRowColumn } from 'material-ui/Ta... |
fields/types/password/PasswordColumn.js | benkroeger/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var PasswordColumn = React.createClass({
displayName: 'PasswordColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
src/containers/Post.js | jade-press/jadepress-react-spa | import React from 'react'
import Post from '../components/Post'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import * as actions from '../actions'
import { types } from '../reducers'
class Po extends React.Component {
constructor(props) {
super(props)
}
static async fe... |
app/javascript/mastodon/features/notifications/components/setting_toggle.js | mhffdq/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Toggle from 'react-toggle';
export default class SettingToggle extends React.PureComponent {
static propTypes = {
prefix: PropTypes.string,
settings: ImmutablePropTypes.map.isReq... |
test-files/imports-fail.js | dabapps/eslint-config | import React from 'react';
import Dom from 'react-dom';
import nooo from '../base/test';
import { foo as fu } from './js-fail';
import { baz as bart } from './imports-pass';
import yaaaaa from '^/base/test-copy';
export const foo = 'bar';
export const baz = 'foo';
export default {
foo,
baz,
};
|
src/components/Main.js | krystalcampioni/krystalcampioni-portfolio | import React from 'react';
import Header from './Header';
var Main = React.createClass({
render: function(){
return(
<div>
<Header/>
{this.props.children}
</div>
)
}
});
module.exports = Main;
|
src/index.js | dragonman225/TODO-React | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import uuid from 'uuid/v4';
import TodoGroup from './components/todo_group';
import TodoList from './components/todo_list';
class App extends Component {
constructor(props) {
super(props);
this.state = {
todoLists: [],
s... |
app/routes.js | robogroves/ebp | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/home/HomePage';
import POReqTrans from './containers/production/port/POReqTrans';
import GenReceivers from './containers/production/gr/GenReceivers'
import ProdRep... |
modules/Router.js | sprjr/react-router | import React from 'react'
import warning from 'warning'
import createHashHistory from 'history/lib/createHashHistory'
import { createRoutes } from './RouteUtils'
import RoutingContext from './RoutingContext'
import useRoutes from './useRoutes'
import { routes } from './PropTypes'
const { func, object } = React.PropTyp... |
project/src/scenes/Admin/Tags/components/TaggedPost/TaggedPost.js | boldr/boldr | /* @flow */
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Link from 'react-router-dom/Link';
import { gql, graphql } from 'react-apollo';
import Loader from '@boldr/ui/Loader';
import ARTICLES_TAG_QUERY from '../../gql/articlesTag.graphql';
type Props = {
data: Object,
is... |
packages/material-ui-icons/src/Room.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Room = props =>
<SvgIcon {...props}>
<path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" />... |
assets/jqwidgets/demos/react/app/grid/filterrowcustomlistitems/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let data = generatedata(500);
let source =
{
localdata: data,
datafields:
... |
frontend/src/Artist/Index/Posters/Options/ArtistIndexPosterOptionsModalContent.js | lidarr/Lidarr | import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button ... |
src/server.js | KantanGroup/zuzu-sites | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present 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 path from 'path';
import express from 'express';... |
src/components/App/header.js | Betree/democracy-watcher | import React from 'react'
import { Link } from 'gatsby'
import NavigationMenu from './navigation_menu'
const Header = ({ siteTitle, entities, selectedEntity }) => (
<header className="navigation">
<div className="navigation-wrapper">
<Link className="main-logo" to="/">
<h1>{siteTitle}</h1>
</Link>
... |
components/Video/PlayBtn/PlayBtn.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import noop from '../../../utils/noop';
import ScreenReadable from '../../ScreenReadable/ScreenReadable';
import BtnContainer from '../../BtnContainer/BtnContainer';
import Icon from '../../Icon/Icon';
import css from './PlayBtn.css';
const PlayBtn = ({ p... |
src/components/PostListItem.js | bobwei/thewebapp-example | import React from 'react';
export default class PostListItem extends React.Component {
render() {
return (
<div className="list-item">
{this.props.post.text}
</div>
);
}
}
|
src/svg-icons/image/hdr-on.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOn = (props) => (
<SvgIcon {...props}>
<path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13... |
packages/editor/src/components/Icons/AlignCenter.js | strues/boldr | import React from 'react';
import Icon from './Icon';
const AlignCenter = props => (
<Icon viewBox="0 0 448 512" {...props}>
<path d="M352 44v40c0 8.837-7.163 16-16 16H112c-8.837 0-16-7.163-16-16V44c0-8.837 7.163-16 16-16h224c8.837 0 16 7.163 16 16zM16 228h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16... |
packages/icons/src/md/action/Theatres.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdTheatres(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M36 6h4v36h-4v-4h-4v4H16v-4h-4v4H8V6h4v4h4V6h16v4h4V6zM16 34v-4h-4v4h4zm0-8v-4h-4v4h4zm0-8v-4h-4v4h4zm20 16v-4h-4v4h4zm0-8v-4h-4v4h4zm0-8v-4h-4v4h4z... |
src/svg-icons/action/settings-input-antenna.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsInputAntenna = (props) => (
<SvgIcon {...props}>
<path d="M12 5c-3.87 0-7 3.13-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.87-3.13-7-7-7zm1 9.29c.88-.39 1.5-1.26 1.5-2.29 0-1.38-1.12-2.5-2.5-2.5S9.5 ... |
draft-js-mention-plugin/src/MentionSuggestionsPortal/index.js | draft-js-plugins/draft-js-plugins-v1 | import React, { Component } from 'react';
export default class MentionSuggestionsPortal extends Component {
componentWillMount() {
this.props.store.register(this.props.offsetKey);
this.updatePortalClientRect(this.props);
// trigger a re-render so the MentionSuggestions becomes active
this.props.set... |
components/modal/credits-modal/component.js | resource-watch/resource-watch | import React from 'react';
import PropTypes from 'prop-types';
class CreditsModal extends React.Component {
render() {
return (
<div className="c-credits-modal">
<h2>Credits</h2>
<div className="upper-container">
<div className="row">
<div className="column small-6">
... |
examples/auth-with-shared-root/components/About.js | nhunzaker/react-router | import React from 'react'
const About = React.createClass({
render() {
return <h1>About</h1>
}
})
export default About
|
internals/templates/containers/HomePage/index.js | spiridonov-oa/management-tool | /*
* HomePage
*
* This is the first thing users see of our App, at the '/' route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it and remove
* the l... |
src/scripts/components/status/Status.component.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 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 ... |
demo/grid/grid.js | kwangkim/react-mdl | import React from 'react';
import Grid, { Cell } from '../../src/Grid';
class Demo extends React.Component {
render() {
return (
<div style={{width: '80%', margin: 'auto'}}>
<Grid className="demo-grid-ruler">
<Cell col={1}>1</Cell>
<Cell ... |
sandbox/index.js | jedwards1211/react-bind-data | import React from 'react'
import ReactDOM from 'react-dom'
import BindData from '../src/BindData.js';
import BindDataSandbox from '../src/lib/BindDataSandbox.js';
const MyComp = (props) => <BindData {...props} data={props}>
<form>
<input type="text" name="title"/>
<h1>{props.title}</h1>
<fieldset name="... |
src/containers/DashboardJobsPage/index.js | apedyashev/react-universal-jobs-aggregator | // libs
import React from 'react';
import {PropTypes} from 'prop-types';
import {connect} from 'react-redux';
// sagas
import {sagas as jobsSagas} from 'modules/Jobs';
// components
import JobsList from 'components/JobsList';
/* eslint-disable import/first */
import SubscriptionsList from './components/SubscriptionsLis... |
app/client/index.js | jodyzhq/hyoa | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom'
import { browserHistory } from 'react-router'
import configureStore from 'src/store/configureStore'
import createRoutes from './routes'
import { Provider } from 'react-redux'
import _ from 'lodash'
import { syncHistoryWithStore } from ... |
scripts/setup.js | geobeyond/mapreacter | import 'jsdom-global/register'; //at the top of file , even , before importing react
import React from 'react';
import jsdom from 'jsdom';
Object.defineProperty(window, 'config', {
value: {
basemaps: ['mapbox', 'osm'],
mapbox: {
type: 'raster',
style: 'mapbox.satel... |
src/packages/@ncigdc/components/MutationsCount.js | NCI-GDC/portal-ui | // @flow
import React from 'react';
import GreyBox from '@ncigdc/uikit/GreyBox';
import ExploreLink from '@ncigdc/components/Links/ExploreLink';
const MutationsCount = ({ ssmCount, filters, isLoading = false }) => {
if (isLoading) {
return <GreyBox />;
}
return ssmCount ? (
<ExploreLink
merge
... |
src/setup.js | YouYII/EasyReader | //@flow
import React from 'react';
import { Scene,Router,DefaultRenderer } from 'react-native-router-flux';
import {View} from 'react-native';
import {Provider,connect} from 'react-redux';
require('./db');
import {Bookshelf,Search,Directory,Reader} from './containers';
let realm = realmFactory();
realm.write(()=>{
... |
src/client/common/components/loading-image.js | michigan-com/nova | 'use strict';
import React from 'react';
import { getRandomInt } from '../../lib/random';
export default class LoadingImage extends React.Component {
static defaultProps = {
blurbs: ['Loading...', 'Starting flux capacitor...', 'Calculating jump to light speed...'],
}
constructor(props) {
super(props);... |
src/common/Stepper/StepLabel.js | Syncano/syncano-dashboard | import React from 'react';
import { StepLabel, FontIcon } from 'material-ui';
import { colors as Colors } from 'material-ui/styles';
export default ({ activeStep, stepsCount, stepIndex, children }) => {
const isFirst = stepIndex === 0;
const isLast = stepIndex === stepsCount - 1;
const isStepCompleted = activeSt... |
docs/app/Examples/elements/Header/States/index.js | ben174/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const HeaderStatesExamples = () => (
<ExampleSection title='States'>
<ComponentExample
title='Disabled'
description='... |
src/public/components/tree/branch/index.js | Harrns/segta | import React from 'react'
export default class Branch extends React.Component {
constructor (props) {
super(props)
}
render () {
return (
<div className="branch" id={this.props.id} style={style.branch}>
<span className="arrow" style={style.arrow}>/</span>
<a href={this.props.url} >... |
Web Developer Skills/Learn ReactJS Part II/Unit 06 Stateless Functional Components/02 Stateless Functional Components and Props/GuineaPigs.js | ummahusla/codecademy-exercise-answers | import React from 'react';
export const GuineaPigs = (props) => {
let src = props.src;
return (
<div>
<h1>Cute Guinea Pigs</h1>
<img src={src} />
</div>
);
}
|
src/Backoffice/ButtonLayout/ButtonLayout.driver.js | skyiea/wix-style-react | import React from 'react';
import ReactDOM from 'react-dom';
import {isClassExists} from '../../../test/utils';
const buttonLayoutDriverFactory = ({element, wrapper, component}) => {
const getAttribute = (element, attribute) => element.getAttribute(attribute);
return {
exists: () => !!element,
doesCompone... |
wrappers/md.js | hollandmatt/rtmetals | import React from 'react'
import 'css/markdown-styles.css'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
router: React.PropTypes.object,
}
},
render () {
const post = this.props.route.page.data
r... |
src/app/routes.js | shawnmclean/redux-react-es6-tutorial | import React from 'react'
import {IndexRoute, Route} from 'react-router'
import {
App
} from 'containers'
|
src/svg-icons/maps/directions-transit.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsTransit = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.... |
src/index.js | davidbjourno/making-interactive-graphics | 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();
|
src/parser/druid/balance/modules/talents/Starlord.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatDuration, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import StatisticBox from 'interface/ot... |
src/components/PageOne.js | aurigadl/EnvReactAsk | import React from 'react'
import AdminFormUser from './AdminFormUser.js'
import AdminFormEmpresa from './AdminFormEmpresa.js'
import AdminFormUserRoles from './AdminFormUserRoles.js'
import AdminDocGestion from './AdminDocGestion.js'
import {Row, Tooltip, message, Layout,
Col, BackTop, Button, Icon, Input} from 'antd'... |
fields/components/columns/ArrayColumn.js | kumo/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
var ArrayColumn = React.createClass({
displayName: 'ArrayColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropType... |
src/encoded/static/components/lib/matrix-viz/Column.js | 4dn-dcic/fourfront | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { columnStyle } from './Styles.js';
export default class Column extends Component {
render() {
return (
<div className={this.props.className} style={columnStyle}>
{this.props.cells}
</div>
);
}
}
Column.propTypes = {
... |
src/icons/IosColorWandOutline.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class IosColorWandOutline extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M192.011,149.661l-34.043,34.041l256.097,256.096L448,405.757L192.011,149.661z M212.596,215.702l11.415-11.... |
src/svg-icons/device/battery-charging-90.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging90 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33V8h5.47L13 7v1h4V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M13 12.5h2L11 20v-5.5H9L12... |
node_modules/native-base/Components/Widgets/Tabs.js | paulunits/tiptap | /* @flow */
'use strict';
import React from 'react';
import NativeBaseComponent from '../Base/NativeBaseComponent';
import computeProps from '../../Utils/computeProps';
import ScrollableTabView from './../vendor/react-native-scrollable-tab-view';
export default class TabNB extends NativeBaseComponent {
getInitia... |
app/javascript/mastodon/components/column_header.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { createPortal } from 'react-dom';
import classNames from 'classnames';
import { FormattedMessage, injectIntl, defineMessages } from 'react-intl';
import Icon from 'mastodon/components/icon';
const messages = defineMessages({
show: { id: 'column_h... |
product-catalog/src/App.js | antonk7/React.js-Item-Catalog-Demo | import React, { Component } from 'react';
import Collapsible from 'react-collapsible';
import ProductCatalog from './components/productCatalog/ProductCatalog';
import logo from './logo.svg';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.state = { 'searchText' : ''... |
addons/a11y/src/components/Report/Tags.js | rhalff/storybook | import React from 'react';
import PropTypes from 'prop-types';
const styles = {
tags: {
display: 'flex',
flexWrap: 'wrap',
margin: '12px 0',
},
tag: {
margin: '0 6px',
padding: '5px',
border: '1px solid rgb(234, 234, 234)',
borderRadius: '2px',
color: 'rgb(130, 130, 130)',
fon... |
examples/query-params/app.js | buddhike/react-router | import React from 'react';
import { Router, Route, Link } from 'react-router';
var User = React.createClass({
render() {
var { query } = this.props.location;
var age = query && query.showAge ? '33' : '';
var { userID } = this.props.params;
return (
<div className="User">
<h1>User id: {u... |
docs/src/app/components/pages/components/TimePicker/ExampleInternational.js | igorbt/material-ui | import React from 'react';
import TimePicker from 'material-ui/TimePicker';
const TimePickerInternational = () => (
<div>
<TimePicker
hintText="Custom Labels"
okLabel="确定"
cancelLabel="取消"
/>
</div>
);
export default TimePickerInternational;
|
src/components/routes/user/admin.js | fredmarques/petshop | import './User.css';
import React, { Component } from 'react';
import { connect } from 'react-redux';
// import { loginAdmin, loginUser } from '../../../actions';
import { loginStatus, loginMode } from '../../../reducers/login';
import AdminContainer from '../admin/AdminContainer';
class Admin extends Component {
... |
front_end/front_end_app/src/client/todos/todos.react.js | Horizon-Framework/horizon | import Component from '../components/component.react';
import React from 'react';
import Todo from './todo.react';
export default class List extends Component {
static propTypes = {
actions: React.PropTypes.object.isRequired,
list: React.PropTypes.object.isRequired,
msg: React.PropTypes.object.isRequire... |
client/components/Activity.js | G100g/standuptodo | import React from 'react';
import moment from 'moment';
import { browserHistory } from 'react-router';
import { ListItem } from 'react-toolbox/lib/list';
const Activity = ({ title, date, id }) => {
function onClickSingle(id) {
browserHistory.push('/edit/'+id);
}
return (
<ListItem caption={title} lege... |
pootle/static/js/admin/components/Language/LanguageEdit.js | ta2-1/pootle | /*
* 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 React from 'react';
import LanguageForm from './La... |
app/entry.js | holyzard/holyzard.github.io | import React from 'react';
import { render } from 'react-dom';
import App from 'App';
render(<App />, document.getElementById('content'));
|
fields/types/imagerelationship/ImageRelationshipFilter.js | nickhsine/keystone | import async from 'async';
import React from 'react';
import xhr from 'xhr';
import { FormField, FormInput, SegmentedControl } from 'elemental';
import PopoutList from '../../../admin/client/components/PopoutList';
const TOGGLE_OPTIONS = [
{ label: 'Linked To', value: false },
{ label: 'NOT Linked To', value: true... |
app/javascript/mastodon/features/account/components/header.js | clworld/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from 'mastodon/components/button';
import ImmutablePureComponent from 'react-immutable-pure-component';
impo... |
src/index.js | nattySP/RNA | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import pako from 'pako';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
... |
modules/react-material-design/src/components/Tile.js | JedWatson/react-color | /* jshint node: true, esnext: true */
"use strict";
import React from 'react';
import ReactCSS from 'reactcss';
class Tile extends ReactCSS.Component {
classes() {
return {
'default': {
tile: {
fontSize: '16px',
padding: '16px',
display: 'flex',
justifyCont... |
example/main.js | dai-shi/react-compose-state | /* eslint-env browser */
import React from 'react';
import ReactDOM from 'react-dom';
import { composeWithState } from '../src/index';
const Counter = composeWithState({ counter: 1 })(({ counter, setCounter }) => (
<div>
<span>
Count:
{counter}
</span>
<button type="button" onClick={() => s... |
node_modules/react-scripts/template/src/App.js | lujinming1/hejicaoye | import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<h2>Welcome to React</h2>
... |
src/js/components/Employees/Form.js | appdev-academy/appdev.academy-react | import React from 'react'
import { Link } from 'react-router'
import ErrorsList from '../ErrorsList'
import BlueButton from '../Buttons/Blue'
import GreenButton from '../Buttons/Green'
export default class Form extends React.Component {
constructor(props) {
super(props)
this.state = {
file: '',
... |
apps/mk-app-root/action.js | ziaochina/mk-demo | import React from 'react'
import { action as MetaAction, AppLoader } from 'mk-meta-engine'
import config from './config'
import { history } from 'mk-utils'
import { getInitState } from './data'
class action {
constructor(option) {
this.metaAction = option.metaAction
this.config = config.current
... |
src/routes/Home/components/Content.js | adogpt/adogpt | import React from 'react'
import './HomeView.scss'
import SideBar from './Sidebar'
import Swipe from './Swipe'
import Msg from './Msg'
import {ModalContainer, ModalDialog} from 'react-modal-dialog';
import match from '../assets/itsamatch.png';
const url = 'https://adogpt.herokuapp.com/get-pet';
const url2 = 'https://a... |
app/scripts/containers/App.js | yas-okadatech/react_base | import React from 'react';
export default class App extends React.Component {
render() {
return (
<div>
<h1>React Base</h1>
{ this.props.children }
</div>
)
}
}
|
text-dream/webapp/src/components/cards/ShiftedReconstructComponent.js | PAIR-code/interpretability | /**
* @license
* Copyright 2018 Google LLC. All Rights Reserved.
* 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 a... |
src/svg-icons/action/book.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionBook = (props) => (
<SvgIcon {...props}>
<path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/>
</SvgIcon>
);
ActionBook = pure(ActionBook);
Ac... |
ReduxDemo/app.js | MisterZhouZhou/ReactNativeLearing | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import Home from './home';
import store from './store';
import { createStore } from 'redux';
export default class App extends Component {
reducer(state,action){
switch(action.type){
case 'add_todo':
return ... |
packages/native/src/components/screens/reports/ReportScreen.js | hwaterke/inab | import React from 'react'
import {StyleSheet, Text, View} from 'react-native'
export class ReportScreen extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>ReportScreen</Text>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
... |
src/svg-icons/image/edit.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageEdit = (props) => (
<SvgIcon {...props}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"/>
... |
js/common/Py404.js | weihanglo/pycontw-mobile | // This presentational + container component
// This component is no longer used in production.
import React from 'react'
import PropTypes from 'prop-types'
import {
StyleSheet,
View,
ViewPropTypes
} from 'react-native'
import {connect} from 'react-redux'
import {NavigationActions} from 'react-navigation'
import... |
docs-ui/components/alertMessage.stories.js | mvaled/sentry | import React from 'react';
import {storiesOf} from '@storybook/react';
// import {action} from '@storybook/addon-actions';
import {withInfo} from '@storybook/addon-info';
import AlertMessage from 'app/components/alertMessage';
storiesOf('UI|Alerts/AlertMessage', module)
.add(
'Default',
withInfo('Inline ale... |
src/components/QuestionSummary.js | quintel/etmobile | import React from 'react';
import PropTypes from 'prop-types';
import Choice from './Choice';
import ChoiceSummary from './ChoiceSummary';
/**
* Sorts the two choices in the most recent question so that the correct answer
* always appears first.
*/
const sortChoicesByCO2 = (a, b) => (a.delta < b.delta ? -1 : 1);
... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-number.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from './../common/common.js';
import {Button, Glyphicon} from './../bricks/bricks.js';
import TextInputMixin from './text-input-mixin.js';
import './number.less';
export default React.createClass({
mixins: [
BaseMixin,
ElementaryMixin,
Text... |
packages/wix-style-react/src/BarChart/test/BarChart.visual.js | wix/wix-style-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import BarChart from '../BarChart';
const tests = [
{
describe: 'sanity',
its: [
{
it: 'many items',
props: {
items: [1, 2, 3, 4, 5, 6, 7, 8, 9].map(n => ({
value: 250,
description... |
geonode/monitoring/frontend/src/components/atoms/map/index.js | mcldev/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import Datamap from 'datamaps';
import * as d3 from 'd3';
import styles from './styles';
import actions from './actions';
const mapStateToProps = (state) => ({
countryData: state.mapData.response,
interval: state... |
example/Example.js | joshjconlin/react-native-multi-slider-1 | 'use strict';
import React from 'react';
import {
StyleSheet,
View,
Text,
Slider,
Image,
Platform,
} from 'react-native';
import MultiSlider from '@ptomasroos/react-native-multi-slider';
import CustomMarker from './CustomMarker';
class Example extends React.Component {
state = {
sliderOneChanging:... |
examples/snapshot/Link.react.js | ide/jest | // Copyright 2004-present Facebook. All Rights Reserved.
import React from 'react';
const STATUS = {
HOVERED: 'hovered',
NORMAL: 'normal',
};
export default class Link extends React.Component {
constructor() {
super();
this.state = {
class: STATUS.NORMAL,
};
}
_onMouseEnter = () => {
... |
classic/src/scenes/wbfa/generated/FASUserCircle.pro.js | wavebox/waveboxapp | import React from 'react'
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
import { faUserCircle } from '@fortawesome/pro-solid-svg-icons/faUserCircle'
export default class FASUserCircle extends React.Component {
render () {
return (<FontAwesomeIcon {...this.props} icon={faUserCircle} />)
}
}
|
src/js/components/icons/base/History.js | odedre/grommet-final | /**
* @description History SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* @pr... |
packages/reactor-tests/src/tests/rel/RelGridColumn.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container, Grid, Column, WidgetCell, SparkLineLine } from '@extjs/ext-react';
export default class RelGridColumn extends Component {
store = Ext.create('Ext.data.Store', {
data: [
{ first: 'Mark', last: 'Brocato', trend: [1,2,3,4,3,2,1] }
... |
src/components/Footer/Footer.js | lottebijlsma/lottebijlsma.github.io | import React from 'react';
import './Footer.css';
const Footer = () => (
<footer className='content footer'>
<div className='footer-section'>
<h1 className='foot-txt'>© Lotte Bijlsma 2019</h1>
</div>
</footer>
);
Footer.defaultProps = {};
export default Footer;
|
app/javascript/mastodon/components/logo.js | tootsuite/mastodon | import React from 'react';
const Logo = () => (
<svg viewBox='0 0 216.4144 232.00976' className='logo'>
<use xlinkHref='#mastodon-svg-logo' />
</svg>
);
export default Logo;
|
app/javascript/mastodon/features/notifications/components/clear_column_button.js | gol-cha/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage } from 'react-intl';
import Icon from 'mastodon/components/icon';
export default class ClearColumnButton extends React.PureComponent {
static propTypes = {
onClick: PropTypes.func.isRequired,
};
render () {
return ... |
imports/client/components/Project/ProjectItem.js | evancorl/skate-scenes | import React from 'react';
import BuildingWithPoetic from './BuildingWithPoetic';
import ProjectInfoList from './ProjectInfoList';
const poeticUrl = 'http://www.poeticsystems.com';
class ProjectItem extends React.Component {
shouldComponentUpdate() {
return false;
}
render() {
const { project } = this... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.