path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/Main.js | ghostsnstuff/byte | import React from 'react';
import assign from 'object-assign';
import GameLayout from './components/GameLayout/GameLayout';
const { Component, StyleSheet } = React;
const backgroundColors = [
'#8BD47D', // green
'#B43CB0', // purple
'#3F51B5', // indigo
'#FFC107', // yellow
'#F44336', // orange-red
'#00BC... |
src/app/components/collapsible_demo/collaps_container.js | ROZ32/react-example | import React from 'react';
import image from '../../images/expand-vertical-4.svg';
import Collapsible from './collapsible';
import '../../styles/basic_demos.scss';
import '../../styles/collapsible_demo.scss';
export class CollapsibleContainer extends React.Component {
render() {
return (
<div>
<header>
... |
src/layout/hero.js | bokuweb/re-bulma | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styles from '../../build/styles';
import { getCallbacks } from '../helper/helper';
export default class Hero extends Component {
static propTypes = {
style: PropTypes.object,
children: PropTypes.any,
className: PropTypes... |
src/docs/reference/Accessibility.js | karatechops/grommet-docs | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import DocsArticle from '../../components/DocsArticle';
import Table from 'grommet/components/Table';
import Status from 'grommet/components/icons/Status';
export default class Accessibility extends Componen... |
react/src/index.js | museumary/Museumary | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/App';
import { BrowserRouter } from 'react-router-dom';
import './index.css';
ReactDOM.render((
<BrowserRouter>
<App />
</BrowserRouter>
), document.getElementById('root'));
|
app/jsx/gradebook/default_gradebook/components/LatePoliciesTabPanel.js | djbender/canvas-lms | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas 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, version 3 of the License.
*
* Canvas is distribut... |
src/routes/index.js | abkfenris/inferno-react | import React from 'react'
import { Route, IndexRoute } from 'react-router'
// NOTE: here we're making use of the `resolve.root` configuration
// option in webpack, which allows us to specify import paths as if
// they were from the root of the ~/src directory. This makes it
// very easy to navigate to files regardless... |
techCurriculum/ui/solutions/2.4/src/App.js | jennybkim/engineeringessentials | /**
* Copyright 2017 Goldman Sachs.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writ... |
src/views/HomeView/HomeView.js | pawelniewie/presento | import React from 'react'
import { connect } from 'react-redux'
import { Link } from 'react-router'
import { actions as counterActions } from '../../redux/modules/presentation'
import DuckImage from './Duck.jpg'
import classes from './HomeView.scss'
// We define mapStateToProps where we'd normally use
// the @connect ... |
source/component/button/single.js | togayther/react-native-cnblogs | import React, { Component } from 'react';
import Icon from 'react-native-vector-icons/Ionicons';
import ActionButton from 'react-native-action-button';
import { ComponentStyles, StyleConfig } from '../../style';
class SingleButton extends Component {
constructor(props) {
super(props);
}
renderButtonIcon()... |
tests/react_modules/es6class-types-module.js | gabro/flow | /* @flow */
import React from 'react';
type Props = {name: string};
class Hello extends React.Component<{}, Props, void>{
props: Props;
static defaultProps: {};
render(): React.Element<*> {
return <div>{this.props.name}</div>;
}
}
module.exports = Hello;
|
js/App.js | CineCor/CinecorReactNative |
import React, { Component } from 'react';
import AppNavigator from './AppNavigator';
import I18n from 'react-native-i18n';
I18n.fallbacks = true;
console.log(I18n.currentLocale())
class App extends Component {
render() {
return <AppNavigator />;
}
}
export default App;
|
src/icons/Clock.js | fbfeix/react-icons | import React from 'react';
import IconBase from './../components/IconBase/IconBase';
export default class Clock extends React.Component {
render() {
if(this.props.bare) {
return <g>
<g>
<path d="M255.988,32C132.285,32,32,132.298,32,256c0,123.715,100.285,224,223.988,224C379.703,480,480,379.715,480,256
C480,132.... |
app/javascript/mastodon/features/notifications/components/notifications_permission_banner.js | yukimochi/mastodon | import React from 'react';
import Icon from 'mastodon/components/icon';
import Button from 'mastodon/components/button';
import IconButton from 'mastodon/components/icon_button';
import { requestBrowserPermission } from 'mastodon/actions/notifications';
import { changeSetting } from 'mastodon/actions/settings';
import ... |
src/svg-icons/device/battery-charging-50.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceBatteryCharging50 = (props) => (
<SvgIcon {...props}>
<path d="M14.47 13.5L11 20v-5.5H9l.53-1H7v7.17C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V13.5h-2.53z"/><path fillOpacity=".3" d="M15.67 4H14V... |
src/mui/detail/ShowActions.js | marmelab/admin-on-rest | import React from 'react';
import { CardActions } from 'material-ui/Card';
import { ListButton, EditButton, DeleteButton, RefreshButton } from '../button';
const cardActionStyle = {
zIndex: 2,
display: 'inline-block',
float: 'right',
};
const ShowActions = ({ basePath, data, hasDelete, hasEdit, hasList })... |
src/components/Root/index.js | johnnyghost/react-redux-boilerplate | import React from 'react';
import { Provider } from 'react-redux';
import routes from 'routes';
import { Router, browserHistory } from 'react-router';
import configureStore from 'store/configureStore';
const store = configureStore();
/**
* <Root />
* The entry point component.
*
* @return {JSXElement}
*/
const R... |
src/js/components/Header.js | schabou/cheap-booze | import React from 'react';
import { Jumbotron } from 'react-bootstrap';
export default class Header extends React.Component {
constructor(props) {
super(props);
}
render() {
return(
<Jumbotron style={{'textAlign': 'center'}}>
<h1>Booze is expensive</h1>
... |
client/me/security/controller.js | tinkertinker/wp-calypso | /**
* External dependencies
*/
import React from 'react';
import page from 'page';
import i18n from 'i18n-calypso';
/**
* Internal dependencies
*/
import analytics from 'lib/analytics';
import notices from 'notices';
import userSettings from 'lib/user-settings';
import { setDocumentHeadTitle as setTitle } from 'st... |
src/app/components/layout/LanguagePickerDialog.js | meedan/check-web | import React from 'react';
import { PropTypes } from 'prop-types';
import { FormattedMessage, defineMessages, injectIntl, intlShape } from 'react-intl';
import Button from '@material-ui/core/Button';
import CircularProgress from '@material-ui/core/CircularProgress';
import TextField from '@material-ui/core/TextField';
... |
src/js/components/home/homefooter.js | axuebin/react-blog | import React from 'react';
import '../../../css/home/homefooter.css';
export default class HomeFooter extends React.Component {
render() {
return (
<div className="home-footer">
<p>®axuebin</p>
</div>
);
}
}
|
packages/xo-web/src/common/xo/migrate-vms-modal/index.js | vatesfr/xo-web | import BaseComponent from 'base-component'
import every from 'lodash/every'
import flatten from 'lodash/flatten'
import forEach from 'lodash/forEach'
import filter from 'lodash/filter'
import find from 'lodash/find'
import isEmpty from 'lodash/isEmpty'
import map from 'lodash/map'
import React from 'react'
import some ... |
packages/ringcentral-widgets/components/ActiveCallItemV2/index.js | ringcentral/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import sessionStatus from 'ringcentral-integration/modules/Webphone/sessionStatus';
import {
isInbound,
isRinging,
} from 'ringcentral-integration/lib/callLogHelpers';
import { isOnHold } from 'ringcen... |
src/svg-icons/social/plus-one.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPlusOne = (props) => (
<SvgIcon {...props}>
<path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/>
</SvgIcon>
);
SocialPlusOne = pure(SocialPlusOne);
SocialPlusOne.displayName = 'Social... |
src/index.js | Andumino/SimpleWeatherApp | if (module.hot) {
module.hot.accept();
}
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import configureStore from './store';
import { fetchLocation, fetchWeather } from './actions';
import App from './components/App/App';
//import './index.scss';
const store =... |
src/components/app.js | regMeet/ReactSelector | import React, { Component } from 'react';
import ReduxFormReactSelect from './reduxFormReactSelect';
export default class App extends Component {
render() {
return (
<div>
React simple starter
<ReduxFormReactSelect />
</div>
);
}
}
|
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSection.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Breadcrumb } from 'semantic-ui-react'
const BreadcrumbExampleSection = () => (
<Breadcrumb>
<Breadcrumb.Section link>Home</Breadcrumb.Section>
<Breadcrumb.Divider />
<Breadcrumb.Section active>Search</Breadcrumb.Section>
</Breadcrumb>
)
export default BreadcrumbExamp... |
ReactNativeExampleApp/node_modules/react-native/Libraries/Utilities/throwOnWrongReactAPI.js | weien/Auth0Exercise | /**
* Copyright (c) 2015-present, 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.
*
* @provides... |
src/client/routes.js | fk1blow/react-presentception | import React from 'react';
import {DefaultRoute, NotFoundRoute, Route} from 'react-router';
// usual routes found on a web app...
import App from './components/app';
import Home from './components/home';
import NotFound from './components/notfound';
import About from './components/about-page';
import Configuration fro... |
src/svg-icons/action/trending-flat.js | ichiohta/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionTrendingFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 12l-4-4v3H3v2h15v3z"/>
</SvgIcon>
);
ActionTrendingFlat = pure(ActionTrendingFlat);
ActionTrendingFlat.displayName = 'ActionTrendingFlat';
A... |
src/components/GithubButton/GithubButton.js | twomoonsfactory/custom-poll | import React from 'react';
const GithubButton = (props) => {
const {user, repo, type, width, height, count, large} = props;
let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`;
if (count) src += '&count=true';
if (large) src += '&size=large';
return (
<iframe
src=... |
src/helpers/UdTokenTagger.js | OCMC-Translation-Projects/ioc-liturgical-react | import React from 'react';
import PropTypes from 'prop-types';
import {
Button
, FormControl
, FormGroup
, Tab
, Tabs
, Well
} from 'react-bootstrap';
import FontAwesome from 'react-fontawesome';
import { get } from 'lodash';
import TreeNode from '../classes/TreeNode';
import LabelSelector from '../helper... |
src/browser/todos/TodosPage.js | robinpokorny/este | // @flow
import Buttons from './Buttons';
import NewTodo from './NewTodo';
import React from 'react';
import Todos from './Todos';
import linksMessages from '../../common/app/linksMessages';
import { Box, PageHeader, Title } from '../app/components';
import { FormattedMessage } from 'react-intl';
const TodosPage = () ... |
app/containers/constants/ToastContainer.js | Caraxiong/react-demo | import React from 'react'
import { connect } from 'react-redux'
import PropTypes from 'prop-types'
import { hideToastFun } from '../../actions/toastActions'
import Toast from '../../constants/Toast'
const ToastContainer = ({ bool , toastText , hideToastFun }) => (
<Toast bool = { bool } toastText = {toastText} onC... |
src/index.js | OscarYuen/apollo-error-catcher | import React from 'react';
import PropTypes from "prop-types";
const catchApolloError = function(WrappedComponent, ErrorComponent) {
return class ApolloErrorHandler extends React.Component {
static propTypes = {
data: PropTypes.shape({
error: PropTypes.object
})
... |
src/CHANGELOG.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import { Yajinni, Mamtooth, Zerotorescue, Putro, joshinator, Gebuz, ackwell, emallson, blazyb, Dambroda, Nalhan, Satyric, niseko, Khadaj, Fyruna, Matardarix, jos3p, Aelexe, Chizu, Hartra344, Hordehobbs, Dorixius, Sharrq, Scotsoo, HolySchmidt, Zeboot, Abelito75, Anatta336, HawkCorrigan, Amrux... |
src/components/helpers/input.js | VictorQD/react-pdf-viewer | import React from 'react';
const Input = props => (
<input
{...props}
data-name={props.name}
/>
);
Input.propTypes = {
name: React.PropTypes.string.isRequired
};
export default Input;
|
app/components/user-list.js | svtizg/svtizg.github.io | import React from 'react';
import { Link } from 'react-router';
const UserList = React.createClass({
render: function() {
return (
<ul className="user-list">
<li><Link to="users/2">Михаил Яндимиров</Link></li>
<li><Link to="users/1">Михаил Фалалеев</Link></li>
<li><Link to="users/3"... |
src/components/Link/Link.js | tonimoeckel/lap-counter-react | /**
* 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 PropTypes from 'prop-... |
src/components/app.js | neetuktoor/tossUP | import React from 'react';
import { BrowserRouter, Route, Switch, Redirect} from 'react-router-dom';
import { connect } from 'react-redux';
import Header from './Header';
import Footer from './Footer';
import Signup from './Signup';
import Login from './Login';
import Home from './Home';
import Profile from './Profile... |
src/components/LinkFrom.js | marksauter/reactd3 | // @flow
import React from 'react';
import { pure, compose } from 'recompose';
import { Link, withRouter } from 'react-router-dom';
import type { Location } from 'lib/reactRouterUtils';
import { from, cleanProps } from 'lib/reactRouterUtils';
type Props = {
to: string,
location: Location,
}
export const LinkFro... |
ache-dashboard/src/AlertMessage.js | ViDA-NYU/ache | import React from 'react';
class Messages {
data = [];
error(text) {
this.data.push({type:'error', message: text});
}
success(text) {
this.data.push({type:'success', message: text});
}
display() {
this.clearOldMessages();
for(let m of this.data) {
if(!m.firstShownAt)
m.fir... |
ui/js/pages/event/EventDetails.js | ericsoderberg/pbc-web |
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import moment from 'moment-timezone';
import { loadCategory, unloadCategory } from '../../actions';
import FormField from '../../components/FormField';
import FormFieldAdd from '../../components/FormFie... |
src/index.js | spartanhooah/BlogApp | import React from 'react';
import ReactDOM from 'react-dom';
import {Provider} from 'react-redux';
import {createStore, applyMiddleware} from 'redux';
import {BrowserRouter, Route, Switch} from 'react-router-dom';
import promise from 'redux-promise';
import reducers from './reducers';
import PostsIndex from './compone... |
src/js/components/Layer/stories/Form.js | HewlettPackard/grommet | import React from 'react';
import { Add, Close } from 'grommet-icons';
import {
Box,
Button,
FormField,
Grommet,
Heading,
Layer,
Select,
TextArea,
TextInput,
} from 'grommet';
import { grommet } from 'grommet/themes';
const suggestions = ['alpha', 'beta'];
export const FormLayer = () => {
const ... |
app/renderer/settings.js | pastak/electonic-ninetan | import React from 'react'
import ReactDOM from 'react-dom'
import SettingsApp from './components/SettingsApp'
(() => {
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<SettingsApp />, document.querySelector('#settingsApp'))
})
})()
|
src/components/HOC/ToggleSwitch.js | dkadrios/zendrum-stompblock-client | import React from 'react'
import PropTypes from 'prop-types'
import { Switch, FormControlLabel, FormGroup } from '@material-ui/core'
const ToggleSwitch = ({ checked, feature, handler }) => (
<FormGroup>
<FormControlLabel
control={<Switch
color="primary"
checked={checked}
onChange={(... |
server/sonar-web/src/main/js/apps/component-measures/details/drilldown/Breadcrumb.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
app/components/AppFooter/index.js | ahsan-virani/react-gcd-portal | import React from 'react';
import { FormattedMessage } from 'react-intl';
import Img from './Img';
import Footer from './Footer';
import { FooterBtn } from './FooterClass';
import { Link } from 'react-router';
import FootLogoImg from './foot-logo.png';
import NavBar from './NavBar';
import Ul from './Ul';
import './st... |
src/index.js | jbkly/passphrase | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import setWordArray from './wordlist';
setWordArray();
ReactDOM.render(<App />, document.getElementById('root'));
// If you want your app to work offline and l... |
src/parser/shared/modules/items/bfa/FirstMatesSpyglass.js | FaideWW/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import ITEMS from 'common/ITEMS/index';
import Analyzer from 'parser/core/Analyzer';
import HIT_TYPES from 'game/HIT_TYPES';
import Abilities from 'parser/core/modules/Abilities';
import { formatPercentage } from 'common/format';
/**
* First Mate's... |
public/src/puns/puns.container.js | MaciejSzaflik/CharadesAndStuff | import React from 'react';
export class Puns extends React.Component {
render() {
return (
<div>Kalambury</div>
)
}
} |
ui/src/index.js | AhmedAli7O1/docker-portal | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
app/javascript/mastodon/features/ui/components/video_modal.js | SerCom-KC/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import Video from '../../video';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class VideoModal extends ImmutablePureComponent {
static propTypes = {
m... |
elcri.men/src/pages/404.js | diegovalle/new.crimenmexico | import React from 'react';
import {useStaticQuery, graphql} from 'gatsby';
import Layout from '../components/layout';
import {useIntl, injectIntl, FormattedMessage, FormattedHTMLMessage} from 'react-intl';
import Img from 'gatsby-image';
import useBestImages from '../components/BestImages';
import LLink from '../compon... |
frontend/src/components/overview/nowplay.js | Kilte/scrobbler | import React from 'react';
function NowplayBar() {
return <div className="overview-nowplay-bar">
<span className="overview-nowplay-bar-item"></span>
<span className="overview-nowplay-bar-item"></span>
<span className="overview-nowplay-bar-item"></span>
<span className="overview-nowp... |
app/javascript/packs/components/shared/Form/index.js | NahlStudio/teamly-rails | import React from 'react';
function Form(props) {
return (
<form {...props}>
{props.children}
</form>
);
}
export default Form;
|
frontend/src/Components/FileBrowser/FileBrowserRow.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Icon from 'Components/Icon';
import TableRowCell from 'Components/Table/Cells/TableRowCell';
import TableRowButton from 'Components/Table/TableRowButton';
import { icons } from 'Helpers/Props';
import styles from './FileBrowserRow.css'... |
src/Navigation.js | BrendonSled/react-native-navigation | /*eslint-disable*/
import React from 'react';
import {AppRegistry} from 'react-native';
import platformSpecific from './deprecated/platformSpecificDeprecated';
import {Screen} from './Screen';
import PropRegistry from './PropRegistry';
const registeredScreens = {};
const _allNavigatorEventHandlers = {};
function reg... |
docs/src/components/Home/Home.js | seekinternational/seek-asia-style-guide | import React from 'react';
import { ScreenReaderOnly } from 'seek-asia-style-guide/react';
import Hero from './Hero/Hero';
import Preface from './Preface/Preface';
export default function Home() {
return (
<div>
<ScreenReaderOnly><h1>SEEK Style Guide</h1></ScreenReaderOnly>
<Hero />
<Preface />... |
containers/TodoList.js | FlorianEdelmaier/SimpleReduxDemo | import React from 'react';
import Todo from './Todo';
class TodoList extends React.Component {
render() {
return (
<ul>
{this.props.todos.map(todo =>
<Todo
key={todo.id}
text={todo.text}
... |
src/app/components/home/OneColumnTable.js | maullerz/eve-react | import React from 'react'
import SimpleList from "../blocks/_simple_list"
const OneColumnTable = ({data}) => {
return <table>
<thead>
<tr>
<th>{data.title}</th>
</tr>
</thead>
<tbody>
<tr>
<td className="t-a_l">
<SimpleList list={data.list} />
</td>
... |
test/helpers/shallowRenderHelper.js | abbr/ShowPreper | /**
* Function to get the shallow output for a given component
* As we are using phantom.js, we also need to include the fn.proto.bind shim!
*
* @see http://simonsmith.io/unit-testing-react-components-without-a-dom/
* @author somonsmith
*/
import React from 'react'
import ShallowRenderer from 'react-test-renderer... |
frontend/src/containers/VictimIP.js | dimkarakostas/rupture | import React from 'react';
export default class VictimIP extends React.Component {
constructor() {
super();
this.state = { sourceip: '' };
}
handleIP = () => {
this.setState({ sourceip: this.refs.victimip.value });
this.props.onUpdate(this.refs.victimip.value);
... |
newclient/scripts/components/admin/disclosure-filter-by-reviewer/reviewer/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
License, or (at your ... |
client/components/users/reset-password.js | ShannChiang/meteor-react-redux-base | import React from 'react';
export default class extends React.Component {
constructor(props) {
super(props);
this.state = {uiState: 'INIT'};
this.onSubmit = this.onSubmit.bind(this);
}
onSubmit(e) {
e.preventDefault();
this.setState({uiState: 'SENDING'});console.log(this._input.value);
t... |
packages/wix-style-react/src/Input/Affix/Affix.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './Affix.st.css';
import InputConsumer from '../InputConsumer';
import { FontUpgradeContext } from '../../FontUpgrade/context';
const Affix = ({ children, value }) => (
<InputConsumer consumerCompName={Affix.displayName}>
... |
examples/immutable/app.js | maludwig/react-redux-form | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from './store.js';
import UserForm from './components/user-form.js';
class App extends React.Component {
render() {
return (
<Provider store={store}>
<UserForm />
</Provider>
... |
src/server.js | NathanBWaters/website | import Express from 'express';
import React from 'react';
import ReactDOM from 'react-dom/server';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
import ApiC... |
src/js/components/icons/base/Cafeteria.js | kylebyerly-hp/grommet | // (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import CSSClassnames from '../../../utils/CSSClassnames';
import Intl from '../../../utils/Intl';
import Props from '../../../utils/Pro... |
src/components/identicon/Identicon.js | ipfs/webui | import React from 'react'
import ReactIdenticon from 'react-identicons'
import { colors } from 'ipfs-css/theme.json'
const identiconPalette = [colors.navy, colors.aqua, colors.gray, colors.charcoal, colors.red, colors.yellow, colors.teal, colors.green]
const Identicon = ({ size = 14, cid, className = 'v-btm' }) => <R... |
Magistrate/client/components/roles/createRoleDialog.js | Pondidum/Magistrate | import React from 'react'
import RoleDialog from './roleDialog'
var CreateRoleDialog = React.createClass({
open() {
var dialog = this.refs.dialog;
dialog.resetValues();
dialog.open();
},
onSubmit() {
var dialog = this.refs.dialog;
var values = dialog.getValue();
var json = JSON.strin... |
modules/About.js | Sinyupl/jieshao | import React from 'react'
export default React.createClass({
render(){
return <div>About</div>
}
})
|
src/svg-icons/image/add-a-photo.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageAddAPhoto = (props) => (
<SvgIcon {...props}>
<path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-... |
src/js/components/icons/base/Restaurant.js | odedre/grommet-final | /**
* @description Restaurant SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* ... |
src/Parser/Core/Modules/CastEfficiency.js | enragednuke/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import { formatPercentage } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import SpellHistory from 'Parser/Core/Modules/SpellHistory';
import Tab from 'Main/Tab';
import CastEfficiencyCompo... |
src/components/ProjectList.js | shunito/daisyconv | // jshint esversion:6
import React, { Component } from 'react';
import ReactDOM, { render } from 'react-dom';
export default class ProjectList extends Component {
_onClickOpenButton() {
var options = {
title: 'Open DAISY File',
filters: [
{name: 'DAISY', extensions:... |
src/routes.js | sivael/simpleBlogThingie | import React from 'react'
import { render } from 'react-dom'
import { Router, Route, browserHistory, IndexRoute } from 'react-router'
import App from 'components/App'
import Blog from 'containers/blog/Blog'
import About from 'components/About'
import Contact from 'components/Contact'
import PostView from 'co... |
docs/Footer.js | jxnblk/cxs | import React from 'react'
import Flex from './Flex'
import Box from './Box'
import Logo from './Logo'
import Link from './Link'
import Stats from './Stats'
const Footer = () => (
<footer>
<Flex
align='center'
wrap
mt={4}
pt={4}
pb={4}>
<Link
href='https://github.com/jx... |
src/app/components/feedItem.js | benigeri/soapee-ui | import moment from 'moment';
import React from 'react';
import { Link } from 'react-router';
import MarkedDisplay from 'components/markedDisplay';
import ImageableThumbnails from 'components/imageableThumbnails';
import UserAvatar from 'components/userAvatar';
export default React.createClass( {
render() {
... |
lib/Components/App.js | Kalikoze/weatherly | import React from 'react';
import { Welcome } from './Welcome';
import Search from './Search';
import { CurrentWeather } from './CurrentWeather';
import { SevenHours } from './SevenHours';
import { TenDays } from './TenDays';
import Key from '../utils/Key.js';
import '../../styles.css';
export default class App extend... |
src/native/todos/Header.js | VigneshRavichandran02/3io | /* @flow */
import type { State } from '../../common/types';
import R from 'ramda';
import React from 'react';
import theme from '../app/themes/initial';
import { FormattedMessage } from '../app/components';
import { StyleSheet, View } from 'react-native';
import { connect } from 'react-redux';
import { defineMessages ... |
public/client/routes/publicClientConf/containers/publicClientConf.js | Concorda/concorda-dashboard | 'use strict'
import React from 'react'
import {connect} from 'react-redux'
import {reduxForm} from 'redux-form'
import RadioGroup from 'react-radio-group'
import CheckboxGroup from 'react-checkbox-group'
import {validateInitConfig, saveInitConfig} from '../../../modules/client/actions/index'
import {validateEditClie... |
demos/forms-demo/src/index.js | FWeinb/cerebral | import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import Router from 'cerebral-router'
import app from './modules/app'
import simple from './modules/simple'
import checkout from './modules/chec... |
src/list/components/ListHeader.js | nheyn/react-stack-skeleton | /* @flow */
import React from 'react';
type Props = {
newItemValue: string,
onChangeNewItem: (e: SyntheticInputEvent) => void,
onCreateNewItem: (e: SyntheticInputEvent) => void,
};
const ENTER_KEY = 13;
/**
* The footer for the todo list.
*/
export default function ListHeader(props: Props): React.Element<*> ... |
blueocean-material-icons/src/js/components/svg-icons/action/home.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionHome = (props) => (
<SvgIcon {...props}>
<path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>
</SvgIcon>
);
ActionHome.displayName = 'ActionHome';
ActionHome.muiName = 'SvgIcon';
export default ActionHome;
|
app/components/DetailActionDropdown.js | Fresh-maker/razor-client | // @flow
import React, { Component } from 'react';
class DetailActionDropdown extends Component {
handleDropdownChange = (actionType)=> {
switch(actionType) {
case 'print':
console.log('window.print',window.print);
return window.print();
}
alert(''+actionType);
}
render() {
... |
src/svg-icons/image/camera-rear.js | igorbt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCameraRear = (props) => (
<SvgIcon {...props}>
<path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zm3-20H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V2c0-1.1-.9-2-2-2zm-5 6c-1.11 0-2-.9-2-2s.89-2 1.99-... |
src/components/Profiles/UpdateProfile.js | RahulDesai92/PHR | import React, { Component } from 'react';
import { Text,
View,
StyleSheet,
ActivityIndicator,
Image,
KeyboardAvoidingView ,
TouchableOpacity,
ScrollView
} from 'react-native';
import { NavigationActions } from 'react-navigation';
import customsty... |
src/entry.js | thojan02/my-first-jsp-app | /**
* src/entry.js
*/
console.log('We are live!');
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
import App2 from './components/app2';
ReactDOM.render(React.createElement(App2), document.getElementById('root')); |
web/src/pages/index.js | ajmalafif/ajmalafif.com | import React from 'react'
import { Link, graphql } from 'gatsby'
import {
mapEdgesToNodes,
filterOutDocsWithoutSlugs,
filterOutDocsPublishedInTheFuture,
} from '../lib/helpers'
import GraphQLErrorList from '../components/graphql-error-list'
import SEO from '../components/seo'
import Layout from '../containers/lay... |
code/web/node_modules/react-router/es6/IndexRoute.js | zyxcambridge/RecordExistence | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils';
import { component, components, falsy } from './InternalPropTypes';
var func = React.PropTypes.func;
/**
* An <IndexRoute> i... |
src/svg-icons/maps/local-pharmacy.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPharmacy = (props) => (
<SvgIcon {...props}>
<path d="M21 5h-2.64l1.14-3.14L17.15 1l-1.46 4H3v2l2 6-2 6v2h18v-2l-2-6 2-6V5zm-5 9h-3v3h-2v-3H8v-2h3V9h2v3h3v2z"/>
</SvgIcon>
);
MapsLocalPharmacy = pure... |
openex-front/src/private/components/integrations/Index.js | Luatix/OpenEx | import React from 'react';
import * as PropTypes from 'prop-types';
import { Route, Switch } from 'react-router-dom';
import Integrations from './Integrations';
import { errorWrapper } from '../../../components/Error';
const Index = () => (
<Switch>
<Route exact path="/integrations" render={errorWrapper(Integrat... |
js/components/card/card-showcase.js | ChiragHindocha/stay_fit |
import React, { Component } from 'react';
import { Image, Dimensions } from 'react-native';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Card, CardItem, Text, Thumbnail, Left, Right, Body, IconNB } from... |
src/Parser/Mage/Frost/Modules/Items/IceTime.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import { formatNumber } from 'common/format';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ItemDamageDone from 'Main/ItemDamageDone';
/**
* Ice Time:
* You... |
app/scripts/components/ui/checkbox/checkbox.js | bluedaniel/Kakapo-app | import React from 'react';
export default ({ checked, handleChange, label, name, dispatch }) => (
<label className="switch" htmlFor={name}>
<span className="switch-label">{label}</span>
<input
checked={checked}
id={name}
name={name}
onChange={() => dispatch(handleChange(!checked))}
... |
src/ui/components/Header.js | notifapi/notifapi-web | import React from 'react';
import { Component } from 'react';
export default class Header extends Component {
render() {
return(
<header role="banner" className="navbar navbar-custom navbar-static-top">
<div className="container">
<div className="navbar-head... |
src/svg-icons/social/group-add.js | IsenrichO/mui-with-arrows | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialGroupAdd = (props) => (
<SvgIcon {...props}>
<path d="M8 10H5V7H3v3H0v2h3v3h2v-3h3v-2zm10 1c1.66 0 2.99-1.34 2.99-3S19.66 5 18 5c-.32 0-.63.05-.91.14.57.81.9 1.79.9 2.86s-.34 2.04-.9 2.86c.28.09.59.14.91.... |
components/Moment/Moment.js | rdjpalmer/bloom | import PropTypes from 'prop-types';
import React from 'react';
import cx from 'classnames';
import Wrapper from '../Wrapper/Wrapper';
import css from './Moment.css';
import Icon from '../Icon/Icon';
const Moment = ({ icon, title, children, className }) => (
<Wrapper className={ cx(css.root, className) }>
<div ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.