path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
index.android.js | octopitus/RNAnimatedBarChart | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import ChartContainer from './src/ChartContainer'
export default class RNBarChart extends Component {
render(... |
app/js/typer.js | mattiaslundberg/typer | import React from 'react'
import Input from './components/input'
import StatusDisplay from './components/status-display'
import ResultDisplay from './components/result-display'
export default class Typer extends React.Component {
constructor(props) {
super(props)
this.state = {
typedSequence: "",
... |
src/components/stories/Icon.js | radekzz/netlify-cms-test | import React from 'react';
import { Icon } from '../UI';
import { storiesOf } from '@kadira/storybook';
const style = {
width: 600,
margin: 20,
fontSize: 30
};
storiesOf('Icon', module)
.add('Default View', () => (
<div style={style}>
<Icon type="bold"/>
<Icon type="italic"/>
<Icon type=... |
app/app/pages/fetch/component.js | snowkeeper/systemjs-reactjs-hot-reload | import React from 'react';
import Fetch from './fetch';
import Debug from 'debug'
let debug = Debug('lodge:app:pages:fetch:component');
export default (page, returnType, options) => {
class GenericFetch extends React.Component {
constructor(props) {
super(props)
this.displayName = 'Generic ' + page
this.s... |
node_modules/rc-hammerjs/es/Hammer.js | prodigalyijun/demo-by-antd | 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/inherits';
import React, { Component } from 'react';
im... |
node_modules/react-router/modules/RouteUtils.js | Maxwelloff/react-football | import React from 'react'
import warning from './routerWarning'
function isValidChild(object) {
return object == null || React.isValidElement(object)
}
export function isReactChildren(object) {
return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild))
}
function checkPropTypes(componen... |
src/development/index.js | RedgooseDev/react-photo-layout-editor | import React from 'react';
import ReactDOM from 'react-dom';
import PhotoLayoutEditor from '../PhotoLayoutEditor';
import * as util from './util';
import '../PhotoLayoutEditor/style/app.scss';
import './index.scss';
class App extends React.Component {
constructor(props)
{
super(props);
this._photoLayoutEditor ... |
src/views/syllabus/Aspect.js | bostontrader/senmaker | // @flow
import React from 'react'
import LessonNavigator from './LessonNavigator'
import {VerbdPanelLevel} from '../../data/dictionary/verbd/VerbdConstants'
function Aspect(props:Object):Object {
const style:Object = {
border: '1px solid black',
margin: '5px'
}
const q:Object = props.... |
react/life-cycle/src/LifeCycle.js | kobeCan/practices | import React from 'react';
class LifeCycle extends React.Component {
constructor (props) {
super(props);
}
state = {
color: 'red'
}
/* 当组件第一次挂载的时候 */
// 1.
componentWillMount = () => {
console.log('componentWillMount');
}
// 2. 在render之后执行
componentDidMount = () => {
console.log('componentDidMount');... |
src/components/ChartBase.js | somonus/react-echarts | import React, { Component } from 'react';
export default class ChartBase extends Component {
static propTypes = {
hasChart: React.PropTypes.bool,
};
constructor(props) {
super(props);
if (this.props.hasChart !== true) {
throw new Error('There is no Chart wrapper.');
}
}
render() {
... |
egghead-redux/redux-app/src/components/app2.js | Mad-Labs/open-lab | import React, { Component } from 'react';
import Debug from './debug';
import {runTestSuite} from '../reducers/multipleCountersReducer';
class App2 extends Component {
render() {
return (
<div>
<h1>Test add/remove counters</h1>
<Debug result={runTestSuite()} />
</div>
);
}
}
e... |
node_modules/react-sparklines/src/SparklinesCurve.js | aleksandrsmolin/react-redux-weather | import React from 'react';
export default class SparklinesCurve extends React.Component {
static propTypes = {
color: React.PropTypes.string,
style: React.PropTypes.object
};
static defaultProps = {
style: {}
};
render() {
const { points, width, height, margin, co... |
src/svg-icons/hardware/sim-card.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareSimCard = (props) => (
<SvgIcon {...props}>
<path d="M19.99 4c0-1.1-.89-2-1.99-2h-8L4 8v12c0 1.1.9 2 2 2h12.01c1.1 0 1.99-.9 1.99-2l-.01-16zM9 19H7v-2h2v2zm8 0h-2v-2h2v2zm-8-4H7v-4h2v4zm4 4h-2v-4h2v4zm0... |
webui/components/users/FormInsurance.js | stiftungswo/izivi_relaunch | import React from 'react';
import { Grid } from 'semantic-ui-react';
import AutoField from 'uniforms-semantic/AutoField';
import SubmitField from 'uniforms-semantic/SubmitField';
import ErrorsField from 'uniforms-semantic/ErrorsField';
import AutoForm from 'uniforms-semantic/AutoForm';
import FormMaskedInput from '../.... |
pootle/static/js/admin/components/Search.js | translate/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 cx from 'classnames';
import React from 'react';
i... |
geonode/contrib/monitoring/frontend/src/components/cels/geonode-data/index.js | simod/geonode | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { getResponseData } from '../../../utils';
import AverageResponseTime from '../../molecules/average-response-time';
import MaxResponseTime from '../../molecules/max-response-time';
import TotalRequests from '../... |
admin/client/components/ItemsTable/ItemsTable.js | Tangcuyu/keystone | import React from 'react';
import classnames from 'classnames';
import Columns from '../../columns';
import CurrentListStore from '../../stores/CurrentListStore';
import ListControl from '../List/ListControl';
import TableRow from './ItemsTableRow';
import DrapDrop from './ItemsTableDragDrop';
const TABLE_CONTROL_COL... |
dataTool/stories/examples/index.js | bitmoremedia/mygi | import React from 'react'
import { storiesOf } from '@kadira/storybook'
import globalStyles from '../../src/global-styles';
globalStyles();
import ButtonToggle from './ButtonToggle'
import ButtonToggleModal from './ButtonToggleModal'
import SearchUtility from './SearchUtility'
storiesOf('Toggle Display', module)
.... |
front/app/app/rh-components/rh-Spinner.js | nudoru/React-Starter-2-app | import React from 'react';
const Spinner = ({type}) => {
let cls = ['spinner'];
if(type) {
cls.push(type);
}
return (<div className={cls.join(' ')}></div>)
};
export default Spinner; |
src/pages/404.js | jgaehring/jgaehring.github.io | import React from 'react';
import Layout from '../components/Layout';
const NotFoundPage = () => (
<Layout>
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
app/javascript/mastodon/features/explore/links.js | musashino205/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Story from './components/story';
import LoadingIndicator from 'mastodon/components/loading_indicator';
import { connect } from 'react-redux';
import { fetchTrendingLinks } from 'mastodon/act... |
src/components/amount-input.js | mozilla/donate.mozilla.org | import React from 'react';
var AmountInput = React.createClass({
contextTypes: {
intl: React.PropTypes.object
},
getInitialState: function() {
var amount = this.props.amount;
if (amount) {
amount = this.context.intl.formatNumber(amount);
}
return {
inputValue: amount
};
},
... |
src/svg-icons/maps/terrain.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsTerrain = (props) => (
<SvgIcon {...props}>
<path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/>
</SvgIcon>
);
MapsTerrain = pure(MapsTerrain);
MapsTerrain.displayName = 'MapsTerr... |
src/containers/app.js | mrGGoodbye/react-redux-API-unsplash | // подключаем необходимые модули React и Unsplash
import React from 'react';
import { connect } from 'react-redux'
import { action_SET_list_photos } from '../actions';
import {unsplash} from '../../src/index.js';
import {Router, Route, hashHistory, Link} from 'react-router';
// счетчик страниц и количества фоток на ка... |
src/pages/components/Books/utils.js | H3yfinn/finbarmaunsell.com | // @flow
import React from 'react'
import type { _Book } from './types'
// Note that this is different from `renderWiki` in the Elm,
// as we cannot return an Html.Attribute msg (attribute assignment)
// as a single value in JS in the same way that we can in Elm.
export const deduceUrl = (book: _Book) => book.wiki || ... |
app/javascript/mastodon/components/animated_number.js | tri-star/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedNumber } from 'react-intl';
import TransitionMotion from 'react-motion/lib/TransitionMotion';
import spring from 'react-motion/lib/spring';
import { reduceMotion } from 'mastodon/initial_state';
const obfuscatedCount = count => {
if (co... |
examples/todomvc/containers/Root.js | ariporad/redux | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import rootReducer from '../reducers';
const store = createStore(rootReducer);
export default class Root extends Component {
render() {
return (
<Provider... |
WorldMoodTracker/js/components/Header.js | kavithaenair/kavithaenair.github.io | import React from 'react';
import styles from '../../../css/bootstrap.min.css';
import customStyles from '../../css/style.css';
export default class Header extends React.Component {
render() {
return (
<nav className={[styles.navbar].join(' ')}>
<div className={styles.container}... |
src/js/components/dailyTracker/UnitTimer.js | angelm/sinuous | import React from 'react';
class UnitTimer extends React.Component {
constructor(props) {
super(props);
let time = new Date();
time.setMinutes(props.unitDuration || 25);
time.setSeconds(0);
this.state = {
timeoutId: null,
remainingTime: time
... |
client/App.js | Trulsabe/reactLinuxMern | /**
* Root Component
*/
import React from 'react';
import { Provider } from 'react-redux';
import { Router, browserHistory } from 'react-router';
import IntlWrapper from './modules/Intl/IntlWrapper';
// Import Routes
import routes from './routes';
// Base stylesheet
require('./main.css');
export default function A... |
src/LabelNumberDisplay/index.js | christianalfoni/ducky-components | import React from 'react';
import PropTypes from 'prop-types';
import Icon from '../Icon';
import Typography from '../Typography';
import classNames from 'classnames';
import styles from './styles.css';
function LabelNumberDisplay(props) {
return (
<div className={classNames(styles.outerWrapper, props.classNam... |
Backup/AwesomeProject/components/TaskList.js | victorditadi/IQApp | import React, { Component } from 'react';
import { View, TextInput, Text, Button, AlertIOS } from 'react-native';
import HeaderIQMail from './Faixa';
import { Container, Content, InputGroup, Input } from 'native-base';
export default class TaskList extends Component{
constructor(){
super();
this.state = {
... |
src/components/header/ThemeSwitcher.js | TechyFatih/Nuzlog | import React from 'react';
import { ToggleButton, ToggleButtonGroup } from 'react-bootstrap'
const stylesheet = document.getElementById('bootstrap');
export default class ThemeSwitcher extends React.Component {
constructor(props) {
super(props);
this.state = {value: 'default'};
this.onChange = this.onCh... |
part4/src/components/Button/index.js | vulcan-estudios/web-testing | import React from 'react';
function Button (props = {}) {
const { className, icon } = props;
let { children } = props;
let cls = 'mybutton';
if (className) {
cls += ` ${className}`;
}
if (icon) {
children = (
<i className='myicon' />
);
}
return (
<button className={cls}>
... |
src/svg-icons/action/schedule.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSchedule = (props) => (
<SvgIcon {...props}>
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H... |
pkg/interface/groups/src/js/components/lib/group-sidebar.js | ngzax/urbit | import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { GroupItem } from '/components/lib/group-item';
import { Sigil } from '/components/lib/icons/sigil';
import { SidebarInvite } from '/components/lib/sidebar-invite';
import { Welcome } from '/components/lib/welcome';
impor... |
src/svg-icons/navigation/fullscreen-exit.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NavigationFullscreenExit = (props) => (
<SvgIcon {...props}>
<path d="M5 16h3v3h2v-5H5v2zm3-8H5v2h5V5H8v3zm6 11h2v-3h3v-2h-5v5zm2-11V5h-2v5h5V8h-3z"/>
</SvgIcon>
);
NavigationFullscreenExit = pure(NavigationF... |
src/components/Main.js | diaotai/gallery | require('normalize.css/normalize.css');
require('styles/App.scss');
var imageDatas=require("../data/imageDatas.json")
import React from 'react';
// let yeomanImage = require('../images/1.jpg');
//将图片名信息转化为图片URL信息
function genURLImageData(datas){
for(let i=0;i<datas.length;i++)
{
let singleImageData=datas[i];... |
src/index.js | alexras/truepeacein.space | import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './views/App';
import DocumentTitle from 'react-document-title';
import './index.css';
ReactDOM.render(
(
<DocumentTitle title='truepeacein.space | Metroid Password Generator'>
<App />
</Document... |
examples/huge-apps/routes/Calendar/components/Calendar.js | moudy/react-router | import React from 'react';
class Calendar extends React.Component {
render () {
var events = [{
id: 0, title: 'essay due'
}];
return (
<div>
<h2>Calendar</h2>
<ul>
{events.map(event => (
<li key={event.id}>{event.title}</li>
))}
</ul>
... |
src/components/Select/Select-story.js | jzhang300/carbon-components-react | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Select from '../Select';
import SelectItem from '../SelectItem';
import SelectItemGroup from '../SelectItemGroup';
const selectProps = {
onChange: action('onChange'),
className: 'some-... |
app/javascript/mastodon/features/community_timeline/components/column_settings.js | sylph-sin-tyaku/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { injectIntl, FormattedMessage } from 'react-intl';
import SettingToggle from '../../notifications/components/setting_toggle';
export default @injectIntl
class ColumnSettings extends React.... |
client/src/components/UploadField/UploadFieldItem.js | open-sausages/silverstripe-asset-admin | import i18n from 'i18n';
import React, { Component } from 'react';
import CONSTANTS from 'constants';
import fileShape from 'lib/fileShape';
import { fileSize } from 'lib/DataFormat';
import PropTypes from 'prop-types';
class UploadFieldItem extends Component {
constructor(props) {
super(props);
this.handle... |
frontend/src/Settings/DownloadClients/DownloadClients/DownloadClients.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Card from 'Components/Card';
import FieldSet from 'Components/FieldSet';
import Icon from 'Components/Icon';
import PageSectionContent from 'Components/Page/PageSectionContent';
import { icons } from 'Helpers/Props';
import translate f... |
src/routes.js | tylerchilds/pokedex | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './pages/app';
import Type from './pages/type';
import PokemonList from './pages/pokemon-list';
import Pokemon from './pages/pokemon';
const routes = (
<Route path="/" component={ App }>
<IndexRoute component={ PokemonL... |
javascript/ShareAdmin/AuthKeyForm.js | AppStateESS/stories | 'use strict'
import React from 'react'
import PropTypes from 'prop-types'
import InputField from '@essappstate/canopy-react-inputfield'
const AuthKeyForm = ({host, update, save}) => {
if (!host) {
return <div></div>
}
return (<div>
<InputField value={host.authkey} change={update} placeholder="Paste in au... |
node_modules/semantic-ui-react/src/elements/List/ListContent.js | SuperUncleCat/ServerMonitoring | import cx from 'classnames'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
createShorthandFactory,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useValueAndKey,
useVerticalAlignProp,
} from '../../lib'
import ListDescription from './ListDescripti... |
docs/src/components/Playground/Playground.js | seekinternational/seek-asia-style-guide | import styles from './Playground.less';
import React, { Component } from 'react';
import {
Alert,
TextField,
Button,
ButtonGroup,
StarIcon,
MailIcon,
PageBlock,
Section,
AsidedLayout,
Columns,
Card,
CardGroup,
Text,
Positive,
Critical,
Secondary,
Strong,
Footer
} from 'seek-asia-st... |
pages/index.js | turntwogg/final-round | import React from 'react';
import { Row, Col, useTheme } from '@turntwo/react-ui';
import LazyLoad from 'react-lazyload';
import { FaAngleDoubleRight } from 'react-icons/fa';
import Page from '../components/Page';
import PageContent from '../components/PageContent';
import Container from '../components/Container';
imp... |
src/routes/error/index.js | AntonyKwok/react-starter-kit | /**
* 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 React from 'react';
import ErrorPage from './Err... |
information/blendle-frontend-react-source/app/modules/issue/components/Region.js | BramscoChill/BlendleParser | import React from 'react';
import PropTypes from 'prop-types';
import Link from 'components/Link';
function getStyle({ region }) {
return {
left: `${region.position[0]}%`,
right: `${100 - region.position[2]}%`,
top: `${region.position[1]}%`,
bottom: `${100 - region.position[3]}%`,
position: 'abso... |
src/components/upload-form.js | coding-lemur/nodefilestore | import React from 'react';
import Dropzone from 'react-dropzone';
import AddFilesButton from './add-files-button';
import EmptyFiles from './empty-files';
import FilesList from './files-list';
import FilesActionArea from './files-action-area';
import ResultContainer from './result-container';
import DataService from '... |
newclient/scripts/components/modal/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
rallyboard-v2/client/src/LoadingStatus.js | tylerjw/rallyscores | import React, { Component } from 'react';
import {
Progress,
Segment,
Header
} from 'semantic-ui-react';
class LoadingStatus extends Component {
render() {
const { status } = this.props;
let percent = 0;
if (status === 'started') {
percent = 25;
} else if (status === 'pending') {
p... |
redux/todoList/src/main.js | yuanzhaokang/myAwesomeSimpleDemo | import AppContainer from './appContainer';
import ReactDOM from 'react-dom';
import React from 'react';
ReactDOM.render(<AppContainer />, document.getElementById('app')); |
app/src/components/Footer/Social/index.js | AlexandreBourdeaudhui/abourdeaudhui.fr | /*
* Package Import
*/
import React from 'react';
/*
* Local Import
*/
/*
* Code
*/
const links = [
{
label: 'Twitter',
url: 'https://twitter.com/qlex_',
img: '/images/twitter.svg',
},
{
label: 'LinkedIn',
url: 'https://www.linkedin.com/in/alexandrebourdeaudhui/',
img: '/images/l... |
src/components/Sidebar/Contacts/Contacts.js | ryanermita/ryanermita.github.io | // @flow strict
import React from 'react';
import { getContactHref, getIcon } from '../../../utils';
import Icon from '../../Icon';
import styles from './Contacts.module.scss';
type Props = {
contacts: {
[string]: string,
},
};
const Contacts = ({ contacts }: Props) => (
<div className={styles['contacts']}>... |
modules/experimental/AsyncProps.js | jeffreywescott/react-router | import React from 'react';
import invariant from 'invariant';
var { func, array, shape, object } = React.PropTypes;
var contextTypes = {
asyncProps: shape({
reloadComponent: func,
propsArray: array,
componentsArray: array
})
};
var _serverPropsArray = null;
function setServerPropsArray(array) {
inv... |
src/svg-icons/action/copyright.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCopyright = (props) => (
<SvgIcon {...props}>
<path d="M10.08 10.86c.05-.33.16-.62.3-.87s.34-.46.59-.62c.24-.15.54-.22.91-.23.23.01.44.05.63.13.2.09.38.21.52.36s.25.33.34.53.13.42.14.64h1.79c-.02-.47-.11-... |
src/svg-icons/content/flag.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentFlag = (props) => (
<SvgIcon {...props}>
<path d="M14.4 6L14 4H5v17h2v-7h5.6l.4 2h7V6z"/>
</SvgIcon>
);
ContentFlag = pure(ContentFlag);
ContentFlag.displayName = 'ContentFlag';
ContentFlag.muiName = '... |
node_modules/react-bootstrap/es/NavItem.js | skinsshark/skinsshark.github.io | 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/decorators.js | rgerstenberger/nuka-carousel | 'use strict';
import React from 'react';
const DefaultDecorators = [
{
component: React.createClass({
render() {
return (
<button
style={this.getButtonStyles(this.props.currentSlide === 0)}
onClick={this.props.previousSlide}>PREV</button>
)
},
... |
src/app/views/myRecipes.js | nazar/soapee-ui | import _ from 'lodash';
import React from 'react';
import Reflux from 'reflux';
import { Link } from 'react-router';
import meStore from 'stores/me';
import meActions from 'actions/me';
import RecipeListItem from 'components/recipeListItem';
import Spinner from 'components/spinner';
export default React.createClas... |
.storybook/LoginStories.js | buaya91/just-us-blog | import React from 'react'
import { storiesOf, action } from '@kadira/storybook'
import LoginForm from '../src/login/LoginForm'
import LoginPopUp from '../src/login/LoginPopUp'
import { actions } from './testProps'
storiesOf('Login', module)
.add('form only', () => (
<LoginForm />
))
.add('with Popup', () => ... |
packages/material-ui-icons/src/ExpandLess.js | cherniavskii/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<g><path d="M12 8l-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14z" /></g>
, 'ExpandLess');
|
imports/ui/containers/AdminContainer.js | scimusmn/map-stories | /**
* Container for the admin view where we control and manage image data
*/
// import React from 'react';
import { Meteor } from 'meteor/meteor';
import { composeWithTracker } from 'react-komposer';
import { Loading } from '../components/loading.js';
import { Images } from '../../api/images/images.js';
import { Imag... |
src/js/modules/Home.js | fredyagomez/reactjs-D3-V4-grommet |
import React from 'react';
import Section from 'grommet/components/Section';
import Tiles from 'grommet/components/Tiles';
import Tile from 'grommet/components/Tile';
import Header from 'grommet/components/Header';
import Footer from 'grommet/components/Footer';
import Image from 'grommet/components/Image';
im... |
src/components/CompanyAndJobTitle/WorkExperiences/ExperienceEntry.js | goodjoblife/GoodJobShare | import React from 'react';
import PropTypes from 'prop-types';
import { Link } from 'react-router-dom';
import cn from 'classnames';
import FontAwesomeIcon from '@fortawesome/react-fontawesome';
import faLock from '@fortawesome/fontawesome-free-solid/faLock';
import { Heading, P } from 'common/base';
import i from 'com... |
src/components/type-list.js | tylerchilds/pokedex | import React from 'react';
import TypeLink from '../components/type-link';
import ALL_TYPES from '../data/types';
export default class TypeList extends React.Component {
render() {
return (
<div>
{ALL_TYPES.map((type, key) => (
<TypeLink type={type} key={key} />
))}
</div>
... |
src/client/assets/js/features/driver/components/Data/Data.js | me-box/databox-sdk | import React from 'react';
import DataType from './DataType';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { actionCreators as driverActions, selector } from '../../';
@connect(selector, (dispatch) => {
return{
actions: bindActionCreators(driverActions, dispatch),
... |
src/Parser/DemonHunter/Shared/Modules/Items/SoulOfTheSlayer.js | hasseboulen/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import ItemLink from 'common/ItemLink';
import SPECS from 'common/SPECS';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from ... |
bdocker/bnodejs/gatsby/web/pages/less.js | waterbolik/prestudy | import React from 'react'
import './example.less'
import Helmet from 'react-helmet'
import { config } from 'config'
export default class Less extends React.Component {
render () {
return (
<div>
<Helmet
title={`${config.siteTitle} | Hi lessy friends`}
/>
<h1
cla... |
pootle/static/js/auth/components/AuthContent.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 assign from 'object-assign';
import React from 'rea... |
examples/with-why-did-you-render/scripts/wdyr.js | flybayer/next.js | import React from 'react'
if (process.env.NODE_ENV === 'development') {
if (typeof window !== 'undefined') {
const whyDidYouRender = require('@welldone-software/why-did-you-render')
whyDidYouRender(React, {
trackAllPureComponents: true,
})
}
}
|
app/containers/DevTools.js | Kahrstrom/skillocate-react | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor toggleVisibilityKey="ctrl-h"
changePositionKey="ctrl-w">
<LogMonitor />
</D... |
packages/material-ui-icons/src/BatteryCharging80Sharp.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v5h4.93L13 7v2h4V4z" /><path d="M13 12.5h2L11 20v-5.5H9L11.93 9H7v13h10V9h-4v3.5z" /></React.Fragment>
, 'BatteryCharging80Sharp');
|
packages/stdind/src/main.js | istarkov/pbl | import { AppContainer } from 'react-hot-loader';
import { Observable } from 'rxjs';
import React from 'react';
import { render } from 'react-dom';
import webfontloader from 'webfontloader';
import setObservableConfig from 'recompose/setObservableConfig';
import 'normalize.css/normalize.css';
import './main.sass';
impor... |
src/pages/Login.js | prodigalyijun/demo-by-antd | import React from 'react';
import { Icon, Form, Input, Button, message } from 'antd';
import { post } from '../utils/request';
import style from '../styles/login-page.less';
const FormItem = Form.Item;
class Login extends React.Component {
constructor() {
super();
this.handleSubmit = this.handleSu... |
src/containers/Forms/FormsWithValidation/index.js | EncontrAR/backoffice | import React, { Component } from 'react';
import Form from '../../../components/uielements/form';
import Input from '../../../components/uielements/input';
import PageHeader from '../../../components/utility/pageHeader';
import Box from '../../../components/utility/box';
import LayoutWrapper from '../../../components/u... |
examples/named-components/render/client.js | dlmr/react-router-redial | import { useRedial } from 'react-router-redial';
import React from 'react';
import { render } from 'react-dom';
import { Router, browserHistory, applyRouterMiddleware } from 'react-router';
// Render the app client-side to a given container element:
export default (container, routes) => {
const forcePageReloadOnErr... |
src/client.js | createspb/obsvtr | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient from '.... |
packages/wix-style-react/src/ContactItemBuilder/ContactItemBuilder.js | wix/wix-style-react | import React from 'react';
import { classes } from './ContactItemBuilder.st.css';
import Avatar from '../Avatar/Avatar';
import Text from '../Text';
import { dataHooks } from './ContactItemBuilderDataHooks';
import PropTypes from 'prop-types';
import deprecationLog from '../utils/deprecationLog';
export const ContactI... |
src/containers/Contact/index.js | benceg/dani | import React from 'react';
import { asyncConnect } from 'redux-connect';
import get from 'lodash/get';
import Color from 'color';
import { componentWillMount } from 'react-lifecycle-decorators';
import {
fetchContent,
resetForm,
sendForm
} from './actions';
import ReactMarkdown from 'react-markdown';
import Hel... |
src/components/LayerStylesCarousel/LayerStyleItem.js | MinisterioPublicoRJ/inLoco-2.0 | import React from 'react'
const LayerStyleItem = ({layer, style, index, onStyleClick}) => {
let itemClassName = 'layer-styles-carousel--list-item'
if (layer && layer.selectedLayerStyleId === index) {
itemClassName += ' selected'
}
function styleClick() {
return onStyleClick(layer, ind... |
pkg/interface/link/src/js/components/lib/channel-sidebar.js | jfranklin9000/urbit | import React, { Component } from 'react';
import { Route, Link } from 'react-router-dom';
import { GroupItem } from './group-item';
import { SidebarInvite } from '/components/lib/sidebar-invite';
import { Welcome } from '/components/lib/welcome';
import { alphabetiseAssociations } from '../../lib/util';
export class ... |
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js | boneyao/actor-platform | import React from 'react';
import { PureRenderMixin } from 'react/addons';
import AvatarItem from 'components/common/AvatarItem.react';
var ContactItem = React.createClass({
displayName: 'ContactItem',
propTypes: {
contact: React.PropTypes.object,
onSelect: React.PropTypes.func
},
mixins: [PureRende... |
src/layouts/index.js | btthomas/blakeandanna | import React from 'react'
import PropTypes from 'prop-types'
import Link from 'gatsby-link'
import Helmet from 'react-helmet'
import pages from '../pageList.js'
import Burger from './burger.js'
import './index.css'
const Header = () =>
<div
id="top-bar"
style={{
marginBottom: '1rem',
}}
>
<d... |
frontend/src/components/common/hoc/withCountryName.js | unicef/un-partner-portal |
// eslint-disable-next-line
import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
const withCountryName = ComposedComponent => connect(
(state, ownProps) => ({
countryName: state.countries[ownProps.code],
}),
)(ComposedComponent);
withCountryName.propTypes = ... |
src/components/input-group/InputGroupPrepend.js | ProAI/react-essentials | import React from 'react';
import PropTypes from 'prop-types';
import BaseView from '../../utils/rnw-compat/BaseView';
const propTypes = {
children: PropTypes.node.isRequired,
};
const InputGroupPrepend = React.forwardRef((props, ref) => (
<BaseView
{...props}
ref={ref}
essentials={{ className: 'input... |
src/components/article/slideshow/thumbnails.js | hanyulo/twreporter-react | /*eslint-disable no-console*/
'use strict'
import classNames from 'classnames'
import styles from './thumbnails.scss'
import React from 'react'
// lodash
import get from 'lodash/get'
import map from 'lodash/map'
const defaultThumbnailWidth = 56
const Thumbnail = (props) => {
const { alt, customClassName, greyOut, ... |
frontend/src/Album/Search/AlbumInteractiveSearchModal.js | lidarr/Lidarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import AlbumInteractiveSearchModalContent from './AlbumInteractiveSearchModalContent';
function AlbumInteractiveSearchModal(props) {
const {
isOpen,
albumId,
albumTitle,
onModalClose
} = props... |
src/js/templates/index.js | julianburr/wp-react-theme | import React, { Component } from 'react';
import Header from '../components/header';
import Footer from '../components/footer';
import 'styles/index.scss';
export default class Index extends Component {
render () {
return (
<div className="wrap-all">
<Header />
<div className="content">
... |
src/svg-icons/device/screen-rotation.js | kasra-co/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenRotation = (props) => (
<SvgIcon {...props}>
<path d="M16.48 2.52c3.27 1.55 5.61 4.72 5.97 8.48h1.5C23.44 4.84 18.29 0 12 0l-.66.03 3.81 3.81 1.33-1.32zm-6.25-.77c-.59-.59-1.54-.59-2.12 0L1.75 8.11c... |
src/common/components/Button.js | sikhote/davidsinclair | // @flow
import type { ColorProps, Theme } from '../themes/types';
import type { TextProps } from './Text';
import Box from './Box';
import React from 'react';
import Text, { computeTextStyle } from './Text';
import isReactNative from '../../common/app/isReactNative';
export type ButtonProps = ColorProps & TextProps &... |
examples/animations/app.js | mattydoincode/react-router | import React from 'react'
import { render } from 'react-dom'
import ReactCSSTransitionGroup from 'react-addons-css-transition-group'
import StaticContainer from 'react-static-container'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const h... |
src/parser/shared/modules/earlydotrefreshes/EarlyDotRefreshesSuggestionByCount.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import { SpellLink } from 'interface';
import React from 'react';
function suggest(when, suggestion) {
when(suggestion).addSuggestion((suggest, actual, recommended) =>
suggest(
<>
You refreshed <SpellLink id={sugge... |
src/components/Weather/Weather.js | andresol/sollieweb | import React from 'react'
import { Link } from 'react-router'
export class Weather extends React.Component {
getTitle () {
return this.title
}
getValue () {
return this.name
}
render () {
return (
<div>
<h2>{this.getTitle()}</h2>
<div className='live wind'>{this.getValue()... |
assets/js/app.js | ChrisBr/duell-um-die-geld | import React from 'react';
import ReactDOM from 'react-dom';
import GameContainer from './react/gameContainer'
window.jQuery = window.$ = require('../bower_components/jquery/dist/jquery.min.js');
//import bootstrapJs from '../bower_components/bootstrap/dist/js/bootstrap.min.js';
import bootstrapStyles from '../bower_c... |
imports/ui/components/header/header-notifications.js | irvinlim/free4all | import React from 'react';
import { browserHistory } from 'react-router';
import * as Colors from 'material-ui/styles/colors';
import Badge from 'material-ui/Badge';
import IconButton from 'material-ui/IconButton';
import Popover from 'material-ui/Popover';
import NotificationsList from './notifications-list';
import ... |
wisewit_front_end/public/js/userAuth/user_controller.js | emineKoc/WiseWit | 'use strict'
import React from 'react';
import SessionStore from './session_store.js';
import AuthActions from './auth_actions.js';
let UserControls = React.createClass({
handleLogout(e) {
e.preventDefault();
AuthActions.logout();
},
render() {
if (SessionStore.isLoggedIn()) {
return (
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.