path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/decorators/withViewport.js | sallen450/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
docs/src/app/components/pages/components/IconButton/ExampleTouch.js | igorbt/material-ui | import React from 'react';
import IconButton from 'material-ui/IconButton';
import ActionGrade from 'material-ui/svg-icons/action/grade';
const IconButtonExampleTouch = () => (
<div>
<IconButton tooltip="bottom-right" touch={true} tooltipPosition="bottom-right">
<ActionGrade />
</IconButton>
<IconB... |
RNLearning/z-day02/02-stick(ref).js | ivanl001/ReactNative-Learning | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
ListView,
Image,
TouchableOpacity
} from 'react-native';
// 导入外部的json数据
var Car = require('../json/Car.json');
var BListViewDem... |
src/components/MapContainer.js | benruehl/gatsby-kruemelkiste | import React from 'react'
import ReactDOM from 'react-dom'
class MapContainer extends React.Component {
render() {
return (
<div css={{
display: 'flex',
minHeight: '30em',
}}>
<iframe src="https://www.openstreetmap.org/export/embed.html?bbox=13.451471328735353%2C52.5439337932... |
client/src/components/dashboard/messaging/message-list.js | WebTalentTop/newsfere-mern | import React, { Component } from 'react';
const moment = require('moment');
import MessageItem from './message-item';
class MessageList extends Component {
render() {
return (
<div className="messages">
{this.props.displayMessages.map(data => <MessageItem
key={data._id}
message... |
client/components/admin-lte/Footer.js | karuppiah7890/Mail-for-Good | import React from 'react';
const Footer = (props) => { // eslint-disable-line no-unused-vars
return (
<footer className="main-footer">
<span>
<strong>A <a href="https://www.freecodecamp.com/">freeCodeCamp</a> initiative.</strong>
<i className="fa fa-free-code-camp pull-right" style={{ margi... |
mitmproxy/web/src/js/utils.js | x2Ident/x2Ident | import _ from 'lodash'
import React from 'react'
import shallowEqual from 'shallowequal'
window._ = _;
window.React = React;
export var Key = {
UP: 38,
DOWN: 40,
PAGE_UP: 33,
PAGE_DOWN: 34,
HOME: 36,
END: 35,
LEFT: 37,
RIGHT: 39,
ENTER: 13,
ESC: 27,
TAB: 9... |
src/components/common/svg-icons/places/ac-unit.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAcUnit = (props) => (
<SvgIcon {...props}>
<path d="M22 11h-4.17l3.24-3.24-1.41-1.42L15 11h-2V9l4.66-4.66-1.42-1.41L13 6.17V2h-2v4.17L7.76 2.93 6.34 4.34 11 9v2H9L4.34 6.34 2.93 7.76 6.17 11H2v2h4.17l-3.2... |
src/components/Callout.js | gakimball/react-inky | import React from 'react';
import PropTypes from 'prop-types';
import getAttrs from '../util/getAttrs';
export default function Callout(props) {
return (
<table {...getAttrs(props, ['children'], 'callout')}>
<tr>
<th className="callout-inner">{props.children}</th>
<th className="expander"/>... |
src/slides/index.js | philpl/talk-observe-the-future | import React from 'react'
import { Slide, Deck, Link, Image, Text } from 'spectacle'
import Intro from './intro'
import Me from './me'
import Company from './company'
import Observables from './observables'
import ESObservableSpec from './es-observable-spec'
import WhatAreObservables from './what-are-observables'
impo... |
src/svg-icons/action/flip-to-back.js | skarnecki/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... |
src/components/Header.js | RucaLove/GameifyYoSummah | import React from 'react';
const Header = ({}) => {
return (
<nav>
<div className="nav-wrapper amber darken-2">
<div className="col s12">
<a href="#" className="brand-logo animated flip">Epic Weekend</a>
</div>
</div>
</nav>
)
}
export default Header
|
examples/flux-utils-todomvc/js/app.js | lilien1010/flux | /**
* Copyright (c) 2014, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @flow
*/
'use s... |
src/svg-icons/action/donut-large.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionDonutLarge = (props) => (
<SvgIcon {...props}>
<path d="M11 5.08V2c-5 .5-9 4.81-9 10s4 9.5 9 10v-3.08c-3-.48-6-3.4-6-6.92s3-6.44 6-6.92zM18.97 11H22c-.47-5-4-8.53-9-9v3.08C16 5.51 18.54 8 18.97 11zM13 18.... |
src/svg-icons/hardware/desktop-mac.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareDesktopMac = (props) => (
<SvgIcon {...props}>
<path d="M21 2H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h7l-2 3v1h8v-1l-2-3h7c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 12H3V4h18v10z"/>
</SvgIcon>
);
HardwareDesktopM... |
app/components/Menu/Menu.js | cdiezmoran/playgrounds-desktop | /**
* Created on Tue Nov 8 2016
*
* Side-bar menu itself containing all of the side-bar's components.
*
* @flow
*/
import React, { Component } from 'react';
import MenuHeader from './MenuHeader';
import MenuList from './MenuList';
type Props = {
logout: () => void,
path: string
};
class Menu extends Component {... |
src/svg-icons/hardware/keyboard-hide.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareKeyboardHide = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4c-1.1 0-1.99.9-1.99 2L2 15c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 3h2v2h-2V6zm0 3h2v2h-2V9zM8 6h2v2H8V6zm0 3h2v2H8V9zm-1 2H... |
stories/TwitterTweetToButton.js | uraway/react-social-sharebuttons | import React from 'react';
import { text } from '@storybook/addon-knobs';
import { TwitterTweetToButton } from '../dist/index.es.js'
export default {
title: 'TwitterTweetToButton',
};
export const Basic = () => <TwitterTweetToButton user={text('user', 'uraway_')} text={text('text', '')} />;
|
components/Title.js | jkupcho/eri-blog | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
const Title = ({size, isSubtitle, className, children}) => {
const classes = classNames({ 'title': !isSubtitle, 'subtitle': isSubtitle, [`is-${size}`] : true }, className)
return (
<h1 className={classes}>{children... |
src/js/components/Layout.js | ilken/ChosenPokemons | import React from 'react';
import Header from '../components/layout/Header';
import Footer from '../components/layout/Footer';
import App from '../components/layout/App';
export default class Layout extends React.Component {
render () {
return (
<div>
<Header/>
<App/>
<Footer/>
... |
src/admin/pages/PagesNew.js | rendact/rendact | import React from 'react';
import NewContentType from '../lib/ContentTypeNew';
import Query from '../query';
let NewPage = React.createClass({
render: function() {
return <NewContentType
name="Page"
slug="pages"
postType="page"
postId={this.props.postId}
tableName="Post"
wi... |
app/containers/App/AppBody/index.js | josueorozco/parlay | import React from 'react';
import classNames from 'classnames';
/*
|--------------------------------------------------------------------------
| AppBody
|--------------------------------------------------------------------------
|
| Stateless component
|
*/
const AppBody = props => (
<div
id="view"
... |
packages/plugins/i18n/admin/src/components/CMListViewInjectedComponents/DeleteModalAdditionalInfos/index.js | wistityhq/strapi | import React from 'react';
import { useIntl } from 'react-intl';
import { Typography } from '@strapi/design-system/Typography';
import { getTrad } from '../../../utils';
import useHasI18n from '../../../hooks/useHasI18n';
const DeleteModalAdditionalInfos = () => {
const hasI18nEnabled = useHasI18n();
const { forma... |
client/components/Logo/Logo.js | djaracz/useless-app | import React, { Component } from 'react';
import styles from './logo.scss';
export default class Logo extends Component {
constructor(props) {
super(props);
}
render() {
return (
<section className={styles.logo} >
<h1>useless app</h1>
<h2>some w... |
docs/app/Examples/collections/Grid/Variations/GridStretchedEqualExample.js | jcarbo/stardust | import React from 'react'
import { Image, Grid, Segment } from 'stardust'
const { Column, Row } = Grid
const image = <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' />
const GridStretchedEqualExample = () => (
<Grid columns='equal'>
<Row stretched>
<Column>
<Segment>1</Segment>
... |
higher-demo/dva-antd/mockjs-demo/src/components/List.js | CFshuming/react-demo-gather | /**
* Created by chengfan on 2017/5/23.
*/
import React from 'react';
import PropTypes from 'prop-types';
import { Table } from 'antd';
const List = ({ index }) => {
const columns = [
{
title: 'Name',
dataIndex: 'name',
},
{
title: 'age',
dataIndex: 'age',
},
{
tit... |
web/src/content/about/Contact.js | ajmalafif/ajmalafif.com | import React from 'react'
import { globalHistory } from '@reach/router'
import tw, { css, theme } from 'twin.macro'
function encode(data) {
return Object.keys(data)
.map(key => encodeURIComponent(key) + '=' + encodeURIComponent(data[key]))
.join('&')
}
const Contact = class extends React.Component {
const... |
src/components/ChatApp/MessageSection/DialogSection.js | RMCoder198/chat.susi.ai | import Dialog from 'material-ui/Dialog';
import React, { Component } from 'react';
import Login from '../../Auth/Login/Login.react';
import SignUp from '../../Auth/SignUp/SignUp.react';
import ForgotPassword from '../../Auth/ForgotPassword/ForgotPassword.react';
import PropTypes from 'prop-types';
import Close from 'ma... |
src/svg-icons/image/looks-two.js | pomerantsev/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLooksTwo = (props) => (
<SvgIcon {...props}>
<path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 ... |
nlyyAPP/component/停止入组/整个研究/MLYjDshlb.js | a497500306/nlyy_APP |
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity,
Navigator,
ListView,
Alert
} from 'react-native';
//时间操作
var moment = require('moment');
moment().format();
var MLNavigatorBar = require('../../MLNavigatorBar/MLNavigatorBar');
v... |
wrappers/json.js | murej/ansambel | import React from 'react'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
module.exports = React.createClass({
propTypes () {
return {
route: React.PropTypes.object,
}
},
render () {
const data = this.props.route.page.data
return (
<DocumentTitle title... |
docs/app/Examples/modules/Sidebar/SlideAlong/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const SidebarVariationsExamples = () => (
<ExampleSection title='Slide Along'>
<ComponentExample
title='Left Slide Along'
... |
src/components/Login/Login.js | escudero89/my-npc-manager | import React from 'react';
import classnames from 'classnames';
import { Checkbox, RaisedButton, TextField} from 'material-ui';
import { Grid, Row, Col } from 'react-flexbox-grid';
import './style.css';
export default function Login(props) {
return (
<div className={classnames('Login', props.className)}>
... |
src/svg-icons/action/room.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionRoom = (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... |
client/index.js | topscores/react-ssr | import React from 'react'
import ReactDOM from 'react-dom'
import Hello from '../commons/Hello'
import collectCss from '../commons/collectCss'
const collectedCss = new Set()
const App = collectCss(collectedCss)(Hello)
ReactDOM.render(<App name="topscores" />, document.getElementById('root')) |
generators/component/templates/3/components/StatefulNoStyles.js | react-webpack-generators/generator-react-webpack | 'use strict';
import React from 'react';
class <%= component.className %> extends React.Component {
render() {
return (
<div className="<%= style.className %>">
Please edit <%= component.path %>/<%= component.fileName %> to update this component!
</div>
);
}
}
<%= component.className ... |
app/javascript/mastodon/components/setting_text.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
export default class SettingText extends React.PureComponent {
static propTypes = {
settings: ImmutablePropTypes.map.isRequired,
settingKey: PropTypes.array.isRequired,
label: PropT... |
src/components/Icon/Icon.js | wundery/wundery-ui-react | import React from 'react';
import classnames from 'classnames';
import { tweakable } from '../../decorators';
const FONTAWESOME4 = 'fontawesome4';
const DEVICONS = 'devicons';
const COLORS = {
sass: '#CD669A',
css3: '#007DC5',
html5: '#F05B31',
javascript: '#F8DC3D',
};
function Icon(props) {
const {
cl... |
packages/cf-component-icon/src/reactsvgs/File.js | jroyal/cf-ui | import React from 'react';
import PropTypes from 'prop-types';
const File = ({ className, label }) => (
<svg
className={className}
aria-label={label}
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16"
>
<polygon points="13.612 5.094 10.016 5.094 10.016 1.508 13.612 5.094" />
<path d="M1... |
component-starter-server/src/main/frontend/src/app/components/SelectDataset/SelectDataset.component.js | chmyga/component-runtime | /**
* Copyright (C) 2006-2020 Talend Inc. - www.talend.com
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... |
manifold/index.js | mkawalec/manifold | /* global window,document */
import 'manifold/bootstrap';
import fluxApp from 'fluxapp';
import React from 'react';
const appElement = document.getElementById('fluxapp-container');
const serverState = window.fluxAppState;
let context = fluxApp.createContext({
fetcher: require('fluxapp-fetch')('jquery'),
});
const ... |
src/svg-icons/device/battery-charging-30.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging30 = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v9.17h2L13 7v5.5h2l-1.07 2H17V5.33C17 4.6 16.4 4 15.67 4z"/><path d="M11 20v-5.5H7... |
app/javascript/flavours/glitch/features/account_timeline/components/header.js | Kirishima21/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import InnerHeader from 'flavours/glitch/features/account/components/header';
import ActionBar from 'flavours/glitch/features/account/components/action_bar';
import ImmutablePureComponent from 'rea... |
src/components/common/svg-icons/device/signal-wifi-1-bar-lock.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalWifi1BarLock = (props) => (
<SvgIcon {...props}>
<path d="M23 16v-1.5c0-1.4-1.1-2.5-2.5-2.5S18 13.1 18 14.5V16c-.5 0-1 .5-1 1v4c0 .5.5 1 1 1h5c.5 0 1-.5 1-1v-4c0-.5-.5-1-1-1zm-1 0h-3v-1.5c0-.8.7-1.5... |
client/signup/controller.js | ironmanLee/my_calypso | /**
* External Dependencies
*/
import React from 'react';
import page from 'page';
import qs from 'qs';
/**
* Internal Dependencies
*/
import i18n from 'lib/mixins/i18n';
import config from 'config';
import route from 'lib/route';
import analytics from 'analytics';
import layoutFocus from 'lib/layout-focus';
impor... |
modules/dreamview/frontend/src/components/common/RadioItem.js | xiaoxq/apollo | import React from 'react';
import classNames from 'classnames';
export default class RadioItem extends React.Component {
constructor(props) {
super(props);
this.setElementRef = (element) => {
this.elementRef = element;
};
this.handleKeyPress = this.handleKeyPress.bind(this);
}
componentDi... |
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js | kasra-co/material-ui | import React from 'react';
import LinearProgress from 'material-ui/LinearProgress';
const LinearProgressExampleSimple = () => (
<LinearProgress mode="indeterminate" />
);
export default LinearProgressExampleSimple;
|
src/modules/widget/FormControl.js | lenxeon/react | "use strict"
import React from 'react'
import classnames from 'classnames'
import { isEmpty, forEach } from './utils/objects'
import { format, toArray } from './utils/strings'
import merge from './utils/merge'
import Regs from './utils/regs'
import { requireCss } from './themes'
requireCss('form-control')
import { g... |
docs/app/Examples/modules/Progress/Variations/ProgressExampleInverted.js | ben174/Semantic-UI-React | import React from 'react'
import { Progress, Segment } from 'semantic-ui-react'
const ProgressExampleInverted = () => (
<Segment inverted>
<Progress percent={21} inverted label>
Uploading Files
</Progress>
<Progress percent={100} inverted label success>
success
</Progress>
<Progress p... |
client/routes.js | akshatsinha/keeporsell | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import App from './components/App'
import Greetings from './components/Greetings'
import BriefCard from './components/briefcard/BriefCard'
import SignupPage from './components/signup/SignupPage'
import LoginPage from './components/login/LoginPa... |
clients/libs/slate-editor-font-size-plugin/src/FontSizeMark.js | nossas/bonde-client | /* eslint-disable react/prop-types */
import React from 'react'
const FontSizeMark = ({ children, mark: { data } }) => (
<span
style={{
fontSize: parseInt(data.get('fontSize'), 10),
verticalAlign: 'middle'
}}
>
{children}
</span>
)
export default FontSizeMark
|
tests/react/hoc.js | facebook/flow | // @flow
import React from 'react';
function myHOC(
Component: React$ComponentType<{foo: number, bar: number}>,
): React$ComponentType<{foo: number}> {
return class extends React.Component<{foo: number}, {bar: number}> {
state = {bar: 2};
render() {
<Component />; // Error: `foo` is required.
... |
src/main/script/src/components/Category.js | EunBeeJo/auction | import React from 'react';
import { Tabs, Tab } from 'react-bootstrap';
class Category extends React.Component {
render() {
return(
<Tabs defaultActiveKey={2} id="uncontrolled-tab-example">
<Tab eventKey={1} title="의류">의류</Tab>
<Tab eventKey={2} title="가방">가방</Ta... |
fork/dynamic-cdn-webpack-plugin/test/fixtures/app/dir/single.js | Talend/ui | import React from 'react';
|
src/components/users/UserParts.js | ello/webapp | /* eslint-disable react/no-danger */
import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
import classNames from 'classnames'
import { RolesIcon, ShareIcon } from '../assets/Icons'
import { BadgeButton, MiniPillButtonProfile } from '../buttons/Buttons'
import Hint from '../hi... |
src/lib/PureComponent.js | panlw/react-lab | import assign from 'object-assign';
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import PureRenderMixin from 'react-addons-pure-render-mixin';
class PureComponent extends Component {
node(refId) {
const comp = refId ? this.refs[refId] : this;
return ReactDOM.findDOMNode(comp);
... |
web/src/js/__tests__/ducks/tutils.js | ddworken/mitmproxy | import React from 'react'
import { combineReducers, applyMiddleware, createStore as createReduxStore } from 'redux'
import thunk from 'redux-thunk'
import configureStore from 'redux-mock-store'
import { ConnectionState } from '../../ducks/connection'
import TFlow from './_tflow'
const mockStore = configureStore([thunk... |
PuppyPlayDate/index.android.js | Tooconfident/Puppy_PlayDate | /**
* Sample React Native App
* https://github.com/facebook/react-native
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class PuppyPlayDate extends Component {
render() {
return (
<View style={styles.container}>
<Text sty... |
src/common/Lib/RadioInput/index.js | NERC-CEH/irecord-app | import React from 'react';
import PropTypes from 'prop-types';
import {
IonItem,
IonLabel,
IonList,
IonRadioGroup,
IonRadio,
IonItemDivider,
} from '@ionic/react';
import { Trans as T } from 'react-i18next';
import './styles.scss';
class Component extends React.PureComponent {
onChange = e => {
const... |
docs/pages/api-docs/tab-list.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/tab-list';
const requireRaw = require.context('!raw-loader!./', false, /\/tab-list\.md$/);
export default function Page({ do... |
app/components/HomePage/index.js | ko-ok/bikes | /*
* 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 neccessity for you then you can refactor it and remove
* the ... |
src/parser/paladin/protection/modules/spells/Judgment.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import StatisticBox from 'interface/others/StatisticBox';
import SpellIcon from 'common/SpellIcon';
import Analyzer from 'parser/core/Analyzer';
import SpellUsable from 'parser/shared/modules/SpellUsable';
import HIT_TYPES from 'game/HIT_TYPES';
import { f... |
example/Components/AdvancedInstantValidation.js | 25th-floor/revalidation | /* @flow */
import React from 'react'
import Revalidation from '../../src/'
import Form from './Form'
import validationRules from '../validationRules'
export default class AdvancedInstantValidation extends React.Component {
constructor(props) {
super(props)
this.state = {form: { name: '', password: '', repe... |
src/index.js | cascada-io/island | import React from 'react';
import ReactDOM from 'react-dom';
import 'normalize.css';
import Root from './Root';
import registerServiceWorker from './utils/registerServiceWorker';
import injectTapEventPlugin from 'react-tap-event-plugin';
import configureStore from './store/configureStore';
import rootSaga from './sagas... |
lavalab/html/node_modules/react-bootstrap/es/PagerItem.js | LavaLabUSC/usclavalab.org | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
src/components/modules/Logo.js | migueliriano/react-anime-project | import React from 'react';
import { Link } from 'react-router-dom';
import logoImage from 'img/logo.png';
const Logo = () => <Link to="/" ><img src={logoImage} alt="logo Anime React" /> </Link>;
export default Logo;
|
source/components/Metric/Donations/index.js | everydayhero/impact-board | import React from 'react'
import numbro from 'numbro'
import { connect } from 'react-redux'
import { fetchDonationTotals } from '../../../store/actions/donationTotals'
class Donations extends React.Component {
componentDidMount () {
this.props.fetchDonationTotals(this.props.uids)
}
render () {
const {
... |
fields/types/select/SelectField.js | Freakland/keystone | import _ from 'underscore';
import Field from '../Field';
import React from 'react';
import Select from 'react-select';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
* - Custom path support
*/
module.exports = Field.create({
displayName: 'SelectField',
valueChanged (ne... |
packages/app/src/components/Header/index.js | SimonKinds/couples-diary | import React from 'react';
import { Link } from 'react-router-dom';
import './styles.css';
const containerClassname = location =>
`container ${location === 'center' ? 'center-content' : ''}`;
const Header = ({ location }) => (
<header className="main-header">
<div className={containerClassname(location)}>
... |
site/components/NavBar.js | randrianov/react-dnd | import React from 'react';
import { DOCS_DEFAULT, EXAMPLES_DEFAULT } from '../Constants';
import './NavBar.less';
const GITHUB_URL = 'https://github.com/gaearon/react-dnd';
const DOCS_LOCATION = DOCS_DEFAULT.location;
const EXAMPLES_LOCATION = EXAMPLES_DEFAULT.location;
export default class NavBar {
render() {
... |
components/Checkbox/stories.js | insane-ux/rebulma | // @flow
import React from 'react'
import { storiesOf } from '@kadira/storybook'
import Checkbox from './'
storiesOf('Checkbox', module)
.add('default', () => (
<Checkbox>Default Checkbox</Checkbox>
))
|
life3/static/react/src/LifeCardCreator.js | BoraDowon/Life3.0 | import React from 'react';
import 'whatwg-fetch'
import ApiUtils from "./ApiUtils";
class LifeCardCreator extends React.Component {
constructor(props) {
super(props);
this.state = {
selected_type: null,
typed_message: '',
warning_message: ''
}
}
... |
src/svg-icons/hardware/tablet.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareTablet = (props) => (
<SvgIcon {...props}>
<path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z"/>
</SvgIcon>
);
HardwareTablet = pure(Hardwa... |
src/views/whiteBoardRoom/WhiteBoardRoomStories.js | BudIT/vclub | /* eslint import/no-extraneous-dependencies: ["error", {"devDependencies": true}] */
// import React from 'react';
// import { storiesOf } from '@kadira/storybook';
//
// import initialState from 'vclub/redux/initialClubState';
//
// import WhiteBoardRoom from './WhiteBoardRoom';
//
// const book = storiesOf('views.whi... |
app/main.js | ramsaylanier/WordExpress | import React from 'react'
import { render } from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import Root from './root'
render(
<AppContainer>
<Root/>
</AppContainer>,
document.getElementById('root')
)
if (module.hot) {
module.hot.accept('./root', () => {
const NextRoot = require('./ro... |
app/containers/RepoListItem/index.js | gitlab-classroom/classroom-web | /**
* RepoListItem
*
* Lists the name and the issue count of a repository
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { FormattedNumber } from 'react-intl';
import IssueIcon from './IssueIcon';
import IssueLink from './IssueLink';
import L... |
website/src/pages/getting-started.js | IBM-Swift/kitura.io | import React from 'react';
import { graphql } from 'gatsby';
import Layout from '../components/layout';
import styles from './getting-started.module.css';
function GetStartedPage({
data,
}) {
return (
<Layout>
<section className={styles.pageSection}>
<div className={styles.m... |
src/components/body/menu/Menu.js | TechyFatih/Nuzlog | import React from 'react';
import { Panel, ButtonGroup, Button } from 'react-bootstrap';
import './Menu.css';
import Options from './options/Options';
import Boxes from './boxes/Boxes';
export default class Menu extends React.Component {
render() {
return (
<div id='menu'>
<Panel header='Menu' bs... |
examples/js/column-filter/number-options-filter-with-default-value.js | rolandsusans/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) {
const id = startId + i;
products.push({
id: id,
... |
web/src/components/Home.js | jinghang/react-todo-demo | import React from 'react'
const Home = () => (
<div>
<h2>Home!!!</h2>
</div>
)
export default Home
|
app/components/IssueIcon/index.js | huahuaxiong/console | import React from 'react';
function IssueIcon(props) {
return (
<svg
height="1em"
width="0.875em"
className={props.className}
>
<path d="M7 2.3c3.14 0 5.7 2.56 5.7 5.7S10.14 13.7 7 13.7 1.3 11.14 1.3 8s2.56-5.7 5.7-5.7m0-1.3C3.14 1 0 4.14 0 8s3.14 7 7 7 7-3.14 7-7S10.86 1 7 1z m1 3H6v... |
docs/app/Examples/addons/TextArea/index.js | mohammed88/Semantic-UI-React | import React from 'react'
import Usage from './Usage'
const TextAreaExamples = () => (
<div>
<Usage />
</div>
)
export default TextAreaExamples
|
src/components/settings/acl/index.js | golemfactory/golem-electron | import React from 'react';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import * as Actions from './../../../actions';
import ControlPanel from './ControlPanel';
import AddNodePanel from './AddNodePanel';
import SelectNodePanel from './SelectNodePanel';
import ConditionalRender f... |
js/components/pages/HomePage.react.js | lewiscowper/ethereum-app | /*
* HomePage
* This is the first thing users see of our App
*/
import { asyncChangeProjectName, asyncChangeOwnerName } from '../../actions/AppActions';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class HomePage extends Component {
render(... |
src/components/theme-legacy/petition-flag.js | MoveOnOrg/mop-frontend | import React from 'react'
import { Link } from 'react-router'
import PropTypes from 'prop-types'
export const PetitionFlag = ({
petition,
reasonsArray,
isOpen,
setOpen,
setClosed,
flagged,
submitFlag
}) => {
const reasons = reasonsArray.map(([reason, description]) => (
<span key={reason}>
<bu... |
webpack/ForemanTasks/Components/TasksDashboard/Components/TasksTimeRow/TasksTimeRow.js | ares/foreman-tasks | import React from 'react';
import PropTypes from 'prop-types';
import { Row } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import { translate as __ } from 'foremanReact/common/I18n';
import { timePropType } from '../../TasksDashboardPropTypes';
import { TASKS_DASHBOARD_AVAILABLE_TIMES }... |
app/javascript/mastodon/features/compose/components/search_results.js | Toootim/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import AccountContainer from '../../../containers/account_container';
import StatusContainer from '../../../containers/status_container';
import Link from 'react-router-dom/Link';
import... |
spec/components/Children/Ordering.js | beplus/reflay | import React from 'react'
import Layout from '../../../src/components/Layout'
import Box from '../../../src/components/Box'
const Ordering = () => (
<div>
<h3>Ordering HTML elements</h3>
<Layout direction='row'>
<Box className='box' flex='auto' order={-1}>
<p>[order="-1"]</p>
</Box>
... |
app/src/pages/LoginPage/index.js | udacityalumni/udacity-alumni-fe | import React from 'react';
import cssModules from 'react-css-modules';
import styles from './index.module.scss';
import { LoginContainer } from 'containers';
import { AppFooter } from 'components';
const LoginPage = () => (
<div className={styles.container}>
<LoginContainer />
<AppFooter />
</div>
);
expo... |
src/App.js | littleLane/Little-React | import React, { Component } from 'react';
import { Button } from 'antd';
import logo from './logo.svg';
import './App.less';
class App extends Component {
render() {
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
... |
mktplc/src/Artland.js | MakeCents-NYC/artland | import React, { Component } from 'react';
const urlForUsername = username =>
`https://api.github.com/users/${username}`
class Artland extends Component {
constructor(props) {
super(props)
this.state = {
requestFailed: false
}
}
componentDidMount() {
fetch(urlForUsername(this.props.user... |
src/www_frontend/components/index.js | luongthanhlam/react-boilerplate | import React from 'react';
import Router from 'universal-router';
import router from './router';
import Book from './Book';
export {
Book
}
export default new Router(router); |
src/svg-icons/device/graphic-eq.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceGraphicEq = (props) => (
<SvgIcon {...props}>
<path d="M7 18h2V6H7v12zm4 4h2V2h-2v20zm-8-8h2v-4H3v4zm12 4h2V6h-2v12zm4-8v4h2v-4h-2z"/>
</SvgIcon>
);
DeviceGraphicEq = pure(DeviceGraphicEq);
DeviceGraphi... |
src/routes.js | calvellido/reactjs-training | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import FuelSavingsPage from './containers/FuelSavingsPage'; // eslint-disable-line import/no-named-as-default
import AboutPage from './components/AboutPage';
im... |
src/components/Button/index.js | Gabri3l/react-firenze-boilerplate | import React from 'react';
import { func, string } from 'prop-types';
import StyledButton from './style';
const Button = ({ children, onClick }) => (
<StyledButton onClick={onClick}>{children}</StyledButton>
);
Button.propTypes = {
children: string.isRequired,
onClick: func.isRequired,
};
export default Button... |
test/regressions/tests/List/SecondaryActionCheckboxListItem.js | cherniavskii/material-ui | // @flow
import React from 'react';
import List, { ListItem, ListItemText, ListItemSecondaryAction } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
export default function SecondaryActionCheckboxListItem() {
return (
<div style={{ backgroundColor: '#fff', width: 300 }}>
<List>
... |
docs/app/Examples/views/Item/Variations/ItemExampleDivided.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button, Icon, Image as ImageComponent, Item, Label } from 'semantic-ui-react'
const paragraph = <ImageComponent src='http://semantic-ui.com/images/wireframe/short-paragraph.png' />
const ItemExampleDivided = () => (
<Item.Group divided>
<Item>
<Item.Image src='http://sem... |
client/app/scripts/components/nodes-resources/node-resources-metric-box-info.js | paulbellamy/scope | import React from 'react';
export default class NodeResourcesMetricBoxInfo extends React.Component {
humanizedMetricInfo() {
const { humanizedTotalCapacity, humanizedAbsoluteConsumption,
humanizedRelativeConsumption, showCapacity, format } = this.props.metricSummary.toJS();
const showExtendedInfo = sh... |
src/components/recipe/favorite.js | emilmannfeldt/ettkilomjol | import React from 'react';
import IconButton from '@material-ui/core/IconButton';
import FavoriteBorderIcon from '@material-ui/icons/FavoriteBorder';
import FavoriteIcon from '@material-ui/icons/Favorite';
import PropTypes from 'prop-types';
import { fire } from '../../base';
import { encodeSource } from '../../util';
... |
frontend/app/components/Phrasebook/states/successEdit.js | First-Peoples-Cultural-Council/fv-web-ui | import React from 'react'
import PropTypes from 'prop-types'
// REDUX
import { connect } from 'react-redux'
// REDUX: actions/dispatch/func
import { pushWindowPath } from 'reducers/windowPath'
import NavigationHelpers from 'common/NavigationHelpers'
const { string, object, func } = PropTypes
export class PhrasebookS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.