path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/routes/Login/components/Register.js | SHBailey/echo-mvp | import React from 'react'
import classes from './Register.scss'
export const Register = () => (
<div>
<form>
<div>
<label for="name"> User Name: </label>
<input type="text" placeholder="Pick a User Name"/>
</div>
<div>
<label for="mail">E-mail:</label>
<input type="email" id=... |
src/svg-icons/image/looks.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooks = (props) => (
<SvgIcon {...props}>
<path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1... |
app/components/Dashboard/DashPie.js | mikeluz/flock | import React from 'react'
import {Link} from 'react-router'
import Chart from 'chart.js'
const countUserSubs = (subs) => {
let subsPerStatusArray = [0, 0, 0, 0];
subs.forEach(sub => {
if (sub.sub_status === "in process") {
subsPerStatusArray[0] += 1;
}
if (sub.sub_status === "accept... |
src/svg-icons/image/photo-size-select-small.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImagePhotoSizeSelectSmall = (props) => (
<SvgIcon {...props}>
<path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H... |
client/containers/App.js | danekszy/tttoe | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as actionCreators from '../actions/actionCreators';
import Main from '../components/Main';
function mapStateToProps(state) {
return {
players: state.players,
status: state.status,
checkboard: ... |
voting-web-views/src/js/Components/Navbar/Navbar.js | joaolrpaulo/eletronic-voting-system | import React from 'react';
import NavbarTemplate from './Navbar.rt';
export default class Navbar extends React.Component {}
Navbar.prototype.render = NavbarTemplate;
|
src/components/video_list.js | Robert-Zandberg/MovieFinder | /**
* Created by Robert on 16-5-2017.
*/
import React from 'react';
import VideoListItem from './video_list_item';
const VideoList = (props) => {
const videoItems = props.videos.map(( video) => {
return (
<VideoListItem
onVideoSelect={props.onVideoSelect}
key={... |
assets/src/containers/Applications/Frame/AppModal.js | mmillet/mock-server | /**
* Created by zhengguo.chen on 16/11/29.
*/
import React from 'react';
import classnames from 'classnames'
import STYLE from './style.less';
import brace from 'brace';
import AceEditor from 'react-ace';
import 'brace/mode/javascript';
import 'brace/theme/github';
import {APP_INITIAL_DATA} from 'constants/config'... |
test/server_side-test.js | gianu/react-flexbox-layout | import React from 'react';
import ReactDOMServer from 'react-dom/server';
import { createCustomClasses } from '../lib';
function createApp({ VLayout, VLayoutItem, HLayout, HLayoutItem }) {
return class App extends React.Component {
render() {
return (
<VLayout>
<VLayoutItem>
T... |
docs/src/app/components/pages/components/DropDownMenu/Page.js | rscnt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dropDownMenuReadmeText from './README';
import DropDownMenuSimpleExample ... |
src/components/Menu/index.js | kimshako/portfolio.shako.net | import React from 'react'
import { Container } from '..'
import menus from '../../data/menus'
import './styles.css'
const Menu = ({ tag, onTagSelect }) => (
<div className="Menu">
<Container>
{menus.map((menu, i) => (
<div key={i} className={`item ${tag === menu.tag && 'selected'}`} onClick={e => ... |
docs/app/Examples/collections/Table/Variations/TableExampleCollapsing.js | mohammed88/Semantic-UI-React | import React from 'react'
import { Table } from 'semantic-ui-react'
const TableExampleCollapsing = () => {
return (
<Table collapsing>
<Table.Header>
<Table.Row>
<Table.HeaderCell>Name</Table.HeaderCell>
<Table.HeaderCell>Status</Table.HeaderCell>
<Table.HeaderCell>Not... |
addons/storyshots/storyshots-core/stories/required_with_context/Button.stories.js | kadirahq/react-storybook | import React from 'react';
import { action } from '@storybook/addon-actions';
import { Button } from '@storybook/react/demo';
export default {
title: 'Button',
parameters: {
component: Button,
},
};
export const withText = () => <Button onClick={action('clicked')}>Hello Button</Button>;
export const with... |
test/plain-list/AutosuggestApp.js | moroshko/test-react-autosuggest | import React, { Component } from 'react';
import sinon from 'sinon';
import Autosuggest from '../../src/AutosuggestContainer';
import languages from './languages';
import { escapeRegexCharacters } from '../../demo/src/components/utils/utils.js';
import highlight from 'autosuggest-highlight';
function getMatchingLangu... |
src/browser/intl/IntlPage.react.js | nikolalosic/este-app--assignment | import Component from 'react-pure-render/component';
import Helmet from 'react-helmet';
import Locales from './Locales.react';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import {
FormattedDate,
FormattedMessage,
FormattedNumber,
FormattedRelative,
defineMessages
} f... |
ui/src/plugins/epl-dashboard/components/SystemOverview.js | mkacper/erlangpl | // @flow
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Row, Col, ListGroup, ListGroupItem } from 'react-bootstrap';
import Measure from 'react-measure';
import Chart from './SystemOverviewChart';
import './SystemOverview.css';
class SystemOverview extends Component {
sta... |
docs/public/static/examples/v35.0.0/magnetometer.js | exponent/exponent | import React from 'react';
import { Magnetometer } from 'expo-sensors';
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native';
export default class MagnetometerSensor extends React.Component {
state = {
MagnetometerData: {},
};
componentDidMount() {
this._toggle();
}
componentWill... |
src/containers/Intro.js | kdesterik/koendirkvanesterik.com | import React from 'react';
import { connect } from 'react-redux';
import Section from '../components/Section';
import Columns from '../components/Columns';
import Instruction from '../components/Instruction';
class Intro extends React.Component {
render() {
return (
<div className='intro'>
<Secti... |
autotuning/dashboard/src/helpers/ListItemLink.js | sassoftware/sas-viya-machine-learning | import React from 'react';
import ListItem from '@material-ui/core/ListItem';
import ListItemIcon from '@material-ui/core/ListItemIcon';
import ListItemText from '@material-ui/core/ListItemText';
import Typography from '@material-ui/core/Typography';
import {Link} from 'react-router-dom';
const styles = {
textItem:... |
scripts/index.js | hugobessaa/rx-react-pinch | import React from 'react';
import App from './App';
React.render(<App />, document.getElementById('root'));
|
4.ferfer/theCatApi-examples-master/react/breed-selection/App.js | Surufel/Personal | import React, { Component } from 'react';
import axios from 'axios';
import './App.css';
axios.defaults.baseURL = 'https://api.thecatapi.com/v1';
axios.defaults.headers.common['x-api-key'] = 'DEMO-API-KEY';
class App extends Component {
async getBreeds() {
const res = await axios('/breeds');
return res... |
node_modules/_antd@2.13.4@antd/es/dropdown/dropdown-button.js | ligangwolai/blog | import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from 'babel-runtime/helpers/i... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/wrap-text.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorWrapText = (props) => (
<SvgIcon {...props}>
<path d="M4 19h6v-2H4v2zM20 5H4v2h16V5zm-3 6H4v2h13.25c1.1 0 2 .9 2 2s-.9 2-2 2H15v-2l-3 3 3 3v-2h2c2.21 0 4-1.79 4-4s-1.79-4-4-4z"/>
</SvgIcon>
);
EditorWrapText.displayName = 'EditorWrapTe... |
src/components/tabBar/index.js | feralclaw/moe | import React, { Component } from 'react';
import TabBarItem from './item';
import './index.less';
class TabBar extends Component {
static get propTypes() {
return {
children: React.PropTypes.node
};
}
static get defaultProps() {
return {
children: null
... |
src/svg-icons/image/brightness-2.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness2 = (props) => (
<SvgIcon {...props}>
<path d="M10 2c-1.82 0-3.53.5-5 1.35C7.99 5.08 10 8.3 10 12s-2.01 6.92-5 8.65C6.47 21.5 8.18 22 10 22c5.52 0 10-4.48 10-10S15.52 2 10 2z"/>
</SvgIcon>
);
I... |
src/components/Event/Event.react.js | HackCWRU/HackCWRU-Website | import React from 'react';
import PropTypes from 'prop-types';
import styles from 'components/Event/Event.scss';
export default class Event extends React.Component {
render() {
return (
<div className={styles.event}>
<div className={styles.name}>
{this.props.name}
</div>
... |
examples/draft-0-10-0/tex/js/app.js | johnmpotter/draft-js | /**
* Copyright (c) 2013-present, Facebook, Inc. All rights reserved.
*
* This file provided by Facebook is for non-commercial testing and evaluation
* purposes only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCL... |
src/page/InputPage.js | jerryshew/react-uikits | import React, { Component } from 'react';
import {CN, TitleBlock} from '../util/tools';
import {NS, COLORS, SHAPE_SIZE} from '../constant';
import CodeView from './CodeView';
const makeInput = (cn='') => {
return <div className="field">
<input type="text" placeholder={cn ? cn : 'input...'} classNam... |
src/layout-v2/main-content/reserve.js | bblassingame/at-home-climate-website | import React from 'react'
import ReactGA from 'react-ga'
import PhoneIcon from './phone-icon.png'
const logPhoneClick = function() {
ReactGA.event({
category: 'Phone Link',
action: 'Click to Call'
})
}
const Reserve = () => {
return (
<div className='mc-sub-panel' >
<img className='mc-sub-pan... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet0BarSharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet0BarSharp');
|
animations/FadeAnimation.js | evetstech/react-native-animated-ptr | import React from 'react'
import {
View,
Animated,
Image,
UIManager
} from 'react-native'
export default class FadeAnimation extends React.Component {
constructor(props) {
super(props);
this.state = {
scrollY : this.props.scrollY,
isRefreshing: this.props.isRefreshing,
minPullDistan... |
src/www/js/demos/index_create_component.js | training4developers/bootcamp_04112016 | 'use strict';
import React from 'react';
import ReactDOM from 'react-dom';
// ES5 legacy only
// var HelloWorld = React.createClass({
// render: function() {
// return React.DOM.h1({ className: 'intuit' }, 'Hello World!');
// }
// });
// ES2015 Class Syntax - preferred when you have state and events
// class HelloW... |
views/components/App/index.js | KochiyaOcean/www.kochiyaocean.org | import React from 'react'
import '../../3rd/fss'
import mesh from '../../3rd/mesh'
import Header from '../Header'
import MainPage from '../MainPage'
// import Footer from '../Footer'
import en_US from '../../intl/en-US'
import zh_CN from '../../intl/zh-CN'
import zh_TW from '../../intl/zh-TW'
import ja_JP from '../..... |
src/containers/countInput.js | Harlantr/text-mod | import React, { Component } from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { changeCount } from '../actions/actions';
class CountInput extends Component {
constructor(props) {
super(props);
this.handleChange = this.handleChange.bind(this);
this.han... |
src/svg-icons/social/sentiment-satisfied.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialSentimentSatisfied = (props) => (
<SvgIcon {...props}>
<circle cx="15.5" cy="9.5" r="1.5"/><circle cx="8.5" cy="9.5" r="1.5"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S1... |
src/svg-icons/editor/border-clear.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderClear = (props) => (
<SvgIcon {...props}>
<path d="M7 5h2V3H7v2zm0 8h2v-2H7v2zm0 8h2v-2H7v2zm4-4h2v-2h-2v2zm0 4h2v-2h-2v2zm-8 0h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2v-2H3v2zm0-4h2V7H3v2zm0-4h2V3H3v2zm8 8h2v... |
src/item.js | wi2/sails-react-store | import React from 'react'
import ReactBase from './base.js'
import {ReactItemButtons} from './item-button.js'
import {StoreItem} from 'sails-store'
export default class ReactItem extends ReactBase {
static defaultProps = {
item: {},
buttons: []
}
static propTypes = {
item: React.PropTypes.object.isRe... |
priv/src/navbar.js | Blackrush/dofus.next | import React from 'react';
export default class extends React.Component {
render() {
return (
<nav className="navbar navbar-default">
<div className="container">
<div className="navbar-header">
<button type="button" className="navbar-t... |
app/index.js | benmccormick/trollbox | /* @flow */
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import {AppContainer} from './modules/app/app.container';
import {store} from './setup/store';
import {initializeUserData} from './setup/data';
initializeUserData(store);
ReactDOM.render(<Provider store={s... |
app/javascript/mastodon/components/avatar_composite.js | TheInventrix/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarComposite extends React.PureComponent {
static propTypes = {
accounts: ImmutablePropTypes.list.isRequired,
ani... |
modules/RouterContext.js | djkirby/react-router | import invariant from 'invariant'
import React from 'react'
import getRouteParams from './getRouteParams'
import { ContextProvider } from './ContextUtils'
import { isReactChildren } from './RouteUtils'
const { array, func, object } = React.PropTypes
/**
* A <RouterContext> renders the component tree for a given rou... |
docs/app/Examples/collections/Grid/index.js | clemensw/stardust | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
import ResponsiveVariations from './ResponsiveVariations'
const GridExamples = () => (
<div>
<Types />
<Content />
<Variations />
<ResponsiveVariations />
</div>
)
export de... |
app/components/filters.js | nypl-spacetime/logs-viewer | import React, { Component } from 'react';
import './logs-list.scss'
const Filters = React.createClass({
getInitialState: function() {
var types = new Set()
this.props.logs.forEach((log) => {
(log.logs || []).forEach((error) => {
types.add(error.error)
})
})
return {
type... |
webapp/src/routes/dashboard/components/user.js | templatetools/trace | import React from 'react'
import PropTypes from 'prop-types'
import { Button } from 'antd'
import CountUp from 'react-countup'
import { color } from 'utils'
import styles from './user.less'
const countUpProps = {
start: 0,
duration: 2.75,
useEasing: true,
useGrouping: true,
separator: ',',
}
function User (... |
src/containers/Question1Container.js | umgauper/USDA-UX-Challenge | import React from 'react'
import { connect } from 'react-redux'
import { addChildNames } from '../actions'
import Question1 from '../components/ChildrenQuestions/Question1'
const mapDispatchToProps = (dispatch) => {
return {
onNextClick: (namesArray, firstNamesArray) => {
dispatch(addChildNames(namesArray, firs... |
src/components/Input.js | dazhifu/react-touch-ui | import React from 'react';
import assign from 'object-assign'
import classnames from 'classnames';
import { View } from "./View.js"
import Utils from "./common/Utils.js"
import './Input.scss'
import IOSearch from 'react-icons/lib/io/ios-search';
import { Layout } from "../components/Layout.js"
import Confi... |
src/components/appbar.js | alphanumeric0101/pomodo-it | import React from 'react';
import AppBar from 'material-ui/lib/app-bar';
import IconButton from 'material-ui/lib/icon-button';
import Settings from 'material-ui/lib/svg-icons/action/settings';
import AddButton from 'material-ui/lib/floating-action-button';
import Add from 'material-ui/lib/svg-icons/content/add';
impo... |
playground/client/src/components/loadingAnimation/LoadingAnimation.js | JHerrickII/NewsTree | import React, { Component } from 'react';
import ReactLoading from 'react-loading';
export default class LoadingAnimation extends Component{
componentDidMount() {
}
componentWillUnmount(){
}
render() {
return(
<ReactLoading type="bars" color="#444" />
);
}
}
|
packages/react-router-website/modules/examples/PreventingTransitions.js | react-translate-team/react-router-CN | import React from 'react'
import {
BrowserRouter as Router,
Route,
Link,
Prompt
} from 'react-router-dom'
const PreventingTransitionsExample = () => (
<Router>
<div>
<ul>
<li><Link to="/">表单</Link></li>
<li><Link to="/one">页面 1</Link></li>
<li><Link to="/two">页面 2</Link></li... |
wrappers/json.js | tcpbros/tcpbros.github.io | import React from 'react'
import Helmet from 'react-helmet'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<div>
<Helmet
tit... |
app/routes.js | raptiq/voting-app | import React from 'react';
import {Route} from 'react-router';
import App from './components/app';
import Home from './components/home';
export default (
<Route component={App}>
<Route path='/' component={Home} />
</Route>
) |
src/widgets/bottomModals/ItemDetails.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/* eslint-disable import/prefer-default-export */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import PropTypes from 'prop-types';
import { ScrollView } from 'react-native';
import { formatExpiryDate } from '../../utilities';... |
front/app/app/rh-components/rh-PageModule.js | nudoru/React-Starter-2-app | import React from 'react';
const PageModule = ({style, title, headline, children, className=''}) => {
/*
<div className="rh-page-module-cta">
<button className="rh-button">Read more</button>
</div>
*/
style = 'rh-page-module' + (style ? ' rh-page-module-' + style : '') + ' ' + className;
title ... |
client/src/components/channels/ChannelCard.js | kevinladkins/newsfeed |
import React from 'react'
import {Link} from 'react-router-dom'
import Card from '../common/Card'
const ChannelCard = ({channel, articles, setArticleUrl}) => {
//finds articles associated with this channel
const articleObject = articles.find(articleObject => articleObject.name === channel.name);
//ma... |
src/routes/tests/index.js | fkn/ndo | import React from 'react';
import Layout from '../../components/Layout';
import Tests from './Tests';
const title = 'Tests';
function action({ store }) {
const { user } = store.getState();
if (!user) {
return { redirect: '/login' };
}
return {
chunks: ['tests'],
title,
component: (
<Layo... |
src/Parser/AfflictionWarlock/Modules/Features/AlwaysBeCasting.js | mwwscott0/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'Parser/Core/Modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import Icon from 'common/Icon';
import { formatPercentage } from 'common/format';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/Spell... |
src/index.js | fahmifachreza/fahmifachreza-portofolio | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom';
import App from './components/App';
ReactDOM.render(
<BrowserRouter>
<App />
</BrowserRouter>,
document.getElementById('root'),
);
|
src/views/GestionsComponents/Flottes/GestionDesFlottes.js | Cruis-R/GestionOutil | import React, { Component } from 'react';
import { TabContent, TabPane, Nav, NavItem, NavLink, Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
import classnames from 'classnames';
const data = [{
"id_flotte":"1",
"nom... |
src/svg-icons/social/public.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPublic = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9... |
src/index.js | bsansouci/sixteen-fs | import React from 'react';
import { App } from './app';
React.render(<App />, document.getElementById('root'));
|
src/components/common/svg-icons/editor/format-size.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatSize = (props) => (
<SvgIcon {...props}>
<path d="M9 4v3h5v12h3V7h5V4H9zm-6 8h3v7h3v-7h3V9H3v3z"/>
</SvgIcon>
);
EditorFormatSize = pure(EditorFormatSize);
EditorFormatSize.displayName = 'EditorFo... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js | gilesvangruisen/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
src/svg-icons/action/face.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFace = (props) => (
<SvgIcon {...props}>
<path d="M9 11.75c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-1.25-.56-1.25-1.25-1.25zm6 0c-.69 0-1.25.56-1.25 1.25s.56 1.25 1.25 1.25 1.25-.56 1.25-... |
tp-4/sebareverso/src/pages/home/HomePage.js | jpgonzalezquinteros/sovos-reactivo-2017 | import React from 'react';
import { Layout, Icon } from 'antd';
const { Header, Content } = Layout;
const HomePage = () => (
<Layout>
<Header style={{ background: '#fff', padding: 0 }}>
<Icon
className="trigger"
/>
</Header>
<Content style={{ margin: '24px 16px', padding: 24, backgrou... |
src/components/Init.js | literarymachine/crg-ui | import React from 'react'
import PropTypes from 'prop-types'
import I18nProvider from './I18nProvider'
import EmittProvider from './EmittProvider'
import App from './App'
const Init = ({locales, emitter, data, user }) => (
<I18nProvider locales={locales}>
<EmittProvider emitter={emitter}>
<App data={data} ... |
20161210/RN-test/src/pages/WebViewPage.js | fengnovo/react-native | import React, { Component } from 'react';
import {
StyleSheet,
PropTypes,
WebView,
BackAndroid,
Dimensions,
Text,
Image,
Platform,
TouchableOpacity,
View
} from 'react-native';
import CustomToolbar from '../components/CustomToolbar';
import {ToastShort} from '../utils/ToastUtils';
import LoadingV... |
src/svg-icons/action/extension.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionExtension = (props) => (
<SvgIcon {...props}>
<path d="M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V... |
demo/index.js | sapegin/react-pagify-preset-bootstrap | import React from 'react';
import ReactDOM from 'react-dom';
import hljs from 'highlight.js';
import App from './App.jsx';
const app = document.getElementsByClassName('demonstration')[0];
ReactDOM.render(<App />, app);
hljs.initHighlightingOnLoad();
|
src/views/Search.js | astrauka/expensable-r3 | import React from 'react';
export default class Search {
render() {
return (
<div>
<h1>Search</h1>
</div>
);
}
}
|
customView/node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/actual.js | TheKingOfNorway/React-Native | import React, { Component } from 'react';
class Foo extends Component {
render() {}
}
|
packages/react-router/modules/StaticRouter.js | d-oliveros/react-router | import warning from 'warning'
import invariant from 'invariant'
import React from 'react'
import PropTypes from 'prop-types'
import { addLeadingSlash, createPath, parsePath } from 'history/PathUtils'
import Router from './Router'
const normalizeLocation = (object) => {
const { pathname = '/', search = '', hash = '' ... |
app/javascript/mastodon/components/avatar.js | WitchesTown/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class Avatar extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
size: PropType... |
examples/InputRadio.js | jsbranco/react-materialize | import React from 'react';
import Input from '../src/Input';
export default
<div>
<Input name='group1' type='radio' value='red' label='Red' />
<Input name='group1' type='radio' value='yellow' label='Yellow' />
<Input name='group1' type='radio' value='green' label='Green' className='with-gap' />
<Input ... |
src/components/Common/ActivityStream.js | MattMcFarland/tw-client | import React from 'react';
import Widget from './Widget';
import moment from 'moment';
/*
<ul>
<li><span className="icon ion-chevron-down down"></span><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nunc rhoncus dapibus urna quis posuere. </p></li>
<li><span className="icon ion-ios-chatboxes-outline bl... |
actor-apps/app-web/src/app/components/dialog/messages/Document.react.js | Dreezydraig/actor-platform | import React from 'react';
import classnames from 'classnames';
class Document extends React.Component {
static propTypes = {
content: React.PropTypes.object.isRequired,
className: React.PropTypes.string
};
constructor(props) {
super(props);
}
render() {
const { content, className } = this.... |
addons/info/.storybook/config.js | enjoylife/storybook | import React from 'react';
import { configure, setAddon, addDecorator } from '@storybook/react';
import InfoAddon from '../src/';
addDecorator((story) => (
<div style={{padding: 20}}>
{story()}
</div>
));
setAddon(InfoAddon);
configure(function () {
require('../example/story');
}, module);
|
src/browser/intl/IntlPage.react.js | abelaska/este | import Helmet from 'react-helmet';
import Locales from './Locales.react';
import React, { Component } from 'react';
import linksMessages from '../../common/app/linksMessages';
import {
FormattedDate,
FormattedMessage,
FormattedNumber,
FormattedRelative,
defineMessages,
} from 'react-intl';
const messages = d... |
src/docs/TocHeader.js | FredBoat/fredboat.com | import React, { Component } from 'react';
import {Link} from 'react-router-dom'
import "./css/TocHeader.css";
class TocHeader extends Component {
render() {
if (this.props.activePage === this.props.page) {
document.title = this.props.name;
if (this.props.name === "Quickstart") docu... |
src/Select/Async.js | agutoli/react-styled-select | import React from 'react'
import PropTypes from 'prop-types'
class SelectAsync extends React.PureComponent {
constructor(props) {
super(props)
this.state = {
isLoading: false,
options: props.options
}
}
loadOptions = (term) => {
const { loadOptions } = this.props
const callback... |
src/svg-icons/action/trending-up.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingUp = (props) => (
<SvgIcon {...props}>
<path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/>
</SvgIcon>
);
ActionTrendingUp = pure(ActionTrendingUp);
ActionTrending... |
test/fixtures/basic/pages/css.js | dstreet/next.js | import React from 'react'
import style from 'next/css'
export default () => <div className={styles}>This is red</div>
const styles = style({ color: 'red' })
|
awsmobilecognitocustomui/App.js | adrianhall/blog-code | import React from 'react';
import { StackNavigator } from 'react-navigation';
import { Provider } from 'react-redux';
import { PersistGate } from 'redux-persist/es/integration/react';
import uuid from 'uuid';
import { persistor, store } from './src/redux/store';
import TaskDetailsScreen from './src/redux/components/Co... |
client/src/Components/oldMasterForm/FinancialInfo.js | teamcrux/EmploymentOptions | import React from 'react';
import { Field } from 'redux-form';
const FinancialInfo = () => {
return (
<div className="section">
<div>
<label htmlFor="consulted">Have you consulted a benefits professional?</label>
<label><Field name="consulted" id="consulted" component="input" type="checkbox... |
src/Topic.js | rdwrcode/myreact-demo | import React from 'react'
const Topic = ({ params }) => (
<div>
<h3>{params.topicId}</h3>
</div>
)
export default Topic
|
carbon-page/stories/task/card.js | ShotaOd/Carbon | import React, { Component } from 'react';
import Card from '../../src/task/Card';
export default story => {
story.add('Card', () => <div className="row">
<div className="col s3">
<Card title="testtest" text="storybook render properly" point={10} />
</div>
<div className="col s3">
<Card title=... |
app/react-icons/fa/glass.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaGlass extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m37.9 4.2q0 0.7-0.9 1.7l-14.1 14.1v17.1h7.1q0.6 0 1 0.5t0.4 1-0.4 1-1 0.4h-20q... |
examples/src/js/index.js | gevorgmakaryan/react-range-scale | /*jshint esversion: 6 */
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
(function () {
ReactDOM.render(<App />, document.getElementById('app'));
})();
|
src/components/Features.js | liron-navon/liron-navon.github.io | import React from 'react'
import PropTypes from 'prop-types'
import PreviewCompatibleImage from '../components/PreviewCompatibleImage'
const FeatureGrid = ({ gridItems }) => (
<div className="columns is-multiline">
{gridItems.map(item => (
<div key={item.text} className="column is-6">
<section clas... |
src/routes.js | nordsoftware/react-starter | import React from 'react';
import { IndexRoute, Route } from 'react-router';
import { requireAuth, requireGuest } from './helpers/auth';
import { HelloContainer } from './components/hello/hello';
import { LoginContainer } from './components/login/login';
import { LogoutContainer } from './components/logout/logout';
i... |
src/component/dictation-container/index.js | SpenGietz/dictate-it | import React from 'react';
import {connect} from 'react-redux';
import {Link, Redirect} from 'react-router-dom';
import {dictationFetchAllRequest, dictationDeleteRequest} from '../../action/dictation-actions.js';
import * as util from '../../lib/util';
import superagent from 'superagent';
export class DictationContai... |
src/svg-icons/action/find-in-page.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionFindInPage = (props) => (
<SvgIcon {...props}>
<path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5... |
js/components/App.react.js | tholapz/caverna | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*/
import React, { Component } from 'react';
import { connect } from 'react-redux';
import Logo from '../../img/logo.jpg';
class App extends Com... |
src/server/middlewares/router.js | arvigeus/studentlife | import React from 'react';
import { renderToStaticMarkup, renderToString } from 'react-dom/server';
import IsomorphicRouter from 'isomorphic-relay-router';
import createMemoryHistory from 'react-router/lib/createMemoryHistory';
import match from 'react-router/lib/match';
import { DefaultNetworkLayer } from 'react-relay... |
client/src/components/GoogleMap/GoogleMapContainer.js | bwuphan/raptor-ads | import React, { Component } from 'react';
import { connect } from 'react-redux';
import GoogleMapRender from './GoogleMap';
import { changeMarkerShowInfo } from '../../actions/googleMapActions';
class GoogleMapContainer extends Component {
constructor(props) {
super(props);
this.handleInfoWindow = this.hand... |
stories/components/tabs.stories.js | LN-Zap/zap-desktop | import React from 'react'
import { storiesOf } from '@storybook/react'
import { Tabs } from 'components/UI'
storiesOf('Components', module).addWithChapters('Tabs', {
subtitle: 'List of buttons formatted as tabs',
chapters: [
{
sections: [
{
sectionFn: () => (
<Tabs
... |
src/app/index.js | nileshp-cuelogic/react-redux-training | import React from 'react'
import { render } from "react-dom"
import store from './store/store'
import { Provider } from 'react-redux'
import { App } from './components/App'
render(<Provider store={store}><App /></Provider>, document.getElementById('div-app')); |
src/components/app.js | jeffgietz/rr_weather | import React, { Component } from 'react';
// App
// Searchbar
import SearchBar from '../containers/search_bar';
// ForecastList
import WeatherList from '../containers/weather_list';
// Chart
export default class App extends Component {
render() {
return (
<div>
<SearchBar />
... |
src/components/SegmentedControl.js | apisandipas/elemental | import classnames from 'classnames';
import React from 'react';
module.exports = React.createClass({
displayName: 'SegmentedControl',
propTypes: {
className: React.PropTypes.string,
equalWidthSegments: React.PropTypes.bool,
onChange: React.PropTypes.func.isRequired,
options: React.PropTypes.array.isRequired... |
jenkins-design-language/src/js/components/material-ui/svg-icons/notification/do-not-disturb-off.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const NotificationDoNotDisturbOff = (props) => (
<SvgIcon {...props}>
<path d="M17 11v2h-1.46l4.68 4.68C21.34 16.07 22 14.11 22 12c0-5.52-4.48-10-10-10-2.11 0-4.07.66-5.68 1.78L13.54 11H17zM2.27 2.27L1 3.54l2.78 2.78C2.66 7.93 2 9.89 2 12c0 5.52 4.4... |
src/Hexagon/Text.js | Hellenic/react-hexgrid | import React, { Component } from 'react';
import PropTypes from 'prop-types';
// TODO Text is a separate component so that it could wrap the given text inside the surrounding hexagon
class Text extends Component {
static propTypes = {
children: PropTypes.string,
x: PropTypes.oneOfType([
PropTypes.strin... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.