path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
pages/profile.js | vinaypuppal/linklet-app | import React from 'react'
import NProgress from 'nprogress'
import Header from '../components/Header'
import FaGithub from 'react-icons/lib/fa/github'
import FaSignOut from 'react-icons/lib/fa/sign-out'
import ContainerPage from '../hocs/ContainerPage'
import PublicPage from '../hocs/PublicPage'
import { login, logou... |
client/app/components/playerList.js | dat2/hanabi-clone-web | import React from 'react'
import Player from './player'
class PlayerList extends React.Component {
render() {
let { players } = this.props
return (
<div>
{
players.map((p, pI) => (
<Player
key={pI}
player={p}
playerIndex={pI}
... |
pages/sass.js | murej/ansambel | import React from 'react'
import './example.scss'
import DocumentTitle from 'react-document-title'
import { config } from 'config'
export default class Sass extends React.Component {
render () {
return (
<DocumentTitle title={`${config.siteTitle} | Hi sassy friends`}>
<div>
<h1
... |
MobileApp/node_modules/react-native/local-cli/templates/HelloNavigation/views/welcome/WelcomeScreen.js | VowelWeb/CoinTradePros.com | 'use strict';
import React, { Component } from 'react';
import {
Image,
Platform,
StyleSheet,
} from 'react-native';
import ListItem from '../../components/ListItem';
import WelcomeText from './WelcomeText';
export default class WelcomeScreen extends Component {
static navigationOptions = {
title: 'Welc... |
internals/templates/appContainer.js | jdm85kor/sentbe | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
examples/todomvc/index.js | hetony/redux-devtools | import React from 'react';
import App from './containers/App';
import 'todomvc-app-css/index.css';
React.render(
<App />,
document.getElementById('root')
);
|
frontend/src/containers/HomePage.js | OpenCollective/opencollective-website | import React, { Component } from 'react';
import { connect } from 'react-redux';
import Numbro from 'numbro';
import 'numbro/dist/languages'
import formatCurrency from '../lib/format_currency';
import i18n from '../lib/i18n';
import LoginTopBar from '../containers/LoginTopBar';
import MailChimpInputSection from '../c... |
src/client/home/components/FilterOptions/FilterOptions.js | noahamar/smlscrn | import R from 'ramda';
import React from 'react';
import classNames from 'classnames/bind';
import styles from './FilterOptions.styl';
const cx = classNames.bind(styles);
export default class FilterOptions extends React.Component {
constructor() {
super();
}
render() {
const options = this.props.opt... |
src/components/Feedback/Feedback.js | lagache/e-voting-client | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 withStyles from 'isomorp... |
react/features/base/components/buttons/QuickActionButton.js | jitsi/jitsi-meet | // @flow
import { makeStyles } from '@material-ui/styles';
import React from 'react';
type Props = {
/**
* Label used for accessibility.
*/
accessibilityLabel: string,
/**
* Additional class name for custom styles.
*/
className: string,
/**
* Children of the component.
... |
examples/src/components/DisabledUpsellOptions.js | darrindickey/chc-select | import React from 'react';
import Select from 'react-select';
function logChange() {
console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments)));
}
var DisabledUpsellOptions = React.createClass({
displayName: 'DisabledUpsellOptions',
propTypes: {
label: React.PropType... |
docs/src/pages/customization/TypographyTheme.js | AndriusBil/material-ui | // @flow weak
import React from 'react';
import { MuiThemeProvider, createMuiTheme } from 'material-ui/styles';
import Typography from 'material-ui/Typography';
import Button from 'material-ui/Button';
function theme(outerTheme) {
return createMuiTheme({
typography: {
fontFamily:
'-apple-system,sy... |
src/index.js | ChronoBank/ChronoWAVES | import React from 'react';
import {Provider} from 'react-redux';
import ReactDOM from 'react-dom';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin from 'react-tap-event-plugin';
import './index.css';
import chronoTheme from './chrono-theme';
import store from './redux/st... |
src/frontend/components/copyable.js | mweibel/esrscan-desktop | import React from 'react'
import translation from './../translation'
const {clipboard} = require('electron')
export default class Copyable extends React.Component {
constructor () {
super()
this.state = {
'copied': false
}
}
onClick () {
var text = this.props.textToCopy || this.props.tex... |
src/views/Card/CardMeta.js | shengnian/shengnian-ui-react | import cx from 'classnames'
import _ from 'lodash'
import PropTypes from 'prop-types'
import React from 'react'
import {
childrenUtils,
customPropTypes,
getElementType,
getUnhandledProps,
META,
SUI,
useTextAlignProp,
} from '../../lib'
/**
* A card can contain content metadata.
*/
function CardMeta(pr... |
docs/client.js | Cellule/react-bootstrap | import 'bootstrap/less/bootstrap.less';
import './assets/docs.css';
import './assets/style.css';
import './assets/carousel.png';
import './assets/logo.png';
import './assets/favicon.ico';
import './assets/thumbnail.png';
import './assets/thumbnaildiv.png';
import 'codemirror/mode/htmlmixed/htmlmixed';
import 'codemir... |
src/components/Nav.js | limal/wolnik | import React from 'react';
import { Link } from 'gatsby';
export default function Nav({ onMenuToggle = () => {} }) {
return (
<nav id="nav">
<ul>
<li className="special">
<a
href="#menu"
onClick={e => {
e.preventDefault();
onMenuToggle()... |
src/Input.js | victorzhang17/react-bootstrap | import React from 'react';
import InputBase from './InputBase';
import * as FormControls from './FormControls';
import deprecationWarning from './utils/deprecationWarning';
class Input extends InputBase {
render() {
if (this.props.type === 'static') {
deprecationWarning('Input type=static', 'StaticText');
... |
src/components/TodoList.js | JarmoLaine/ModernWebDev | import React from 'react';
import Todo from './Todo';
const TodoList = ({ todos, onRemove, onToggle }) =>
<div>
<h2>{todos.count()} items in my todo list</h2>
<ul>
{todos
.map((todo, i) =>
<Todo
key={i}
... |
src/main/index.js | tomaszkepa/san-antonio-tourist | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(
<App />,
document.getElementById('app'),
);
|
app/javascript/mastodon/features/compose/components/privacy_dropdown.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { injectIntl, defineMessages } from 'react-intl';
import IconButton from '../../../components/icon_button';
import Overlay from 'react-overlays/lib/Overlay';
import Motion from '../../ui/util/optional_motion';
import spring from 'react-motion/lib/spr... |
js/components/inputgroup/regular.js | LetsBuildSomething/vmag_mobile |
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { actions } from 'react-native-navigation-redux-helpers';
import { Container, Header, Title, Content, Button, Icon, Text, Body, Left, Right, Input, Item } from 'native-base';
import { Actions } from 'react-native-router-flux';
imp... |
src/Badge.js | 15lyfromsaturn/react-materialize | import React from 'react';
import cx from 'classnames';
class Badge extends React.Component {
render() {
let {
className, newIcon, children, ...props
} = this.props;
let classes = {
badge: true,
'new': newIcon
};
return (
<span className={cx(classes, className)} {...prop... |
example/index.js | tether/react-download-ios | /**
* Dependencies.
*/
import React from 'react'
import ReactDOM from 'react-dom'
import Badge from '..'
/**
* Render badge.
*/
ReactDOM.render(
<Badge id="com.petrofeed.workidapp"/>,
document.querySelector('main')
)
|
client/src/components/SignupForm.js | richb-hanover/reactathon | import React from 'react';
import validator from 'validator';
import { FormErrors } from './partials';
import {
Button,
Input,
ButtonInput
} from 'react-bootstrap';
import { AppActions } from '../actions/AppActions';
import { AppStore } from '../stores/AppStore';
export class SignupForm extends React.Component... |
src/svg-icons/image/filter-center-focus.js | matthewoates/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageFilterCenterFocus = (props) => (
<SvgIcon {...props}>
<path d="M5 15H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zM12 9... |
src/layouts/Card/CardLayout.js | armaanshah96/lunchbox | import React from 'react'
import { IndexLink, Link } from 'react-router'
import PropTypes from 'prop-types'
import Avatar from 'material-ui/Avatar';
import Checkbox from 'material-ui/Checkbox';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import FileFolder from 'material-ui/FontIcon';
impor... |
app/components/Pages/Team.js | alexpell00/FRCUltimateManager | /*
* @Author: alexpelletier
* @Date: 2016-03-23 22:17:30
* @Last Modified by: alexpelletier
* @Last Modified time: 2016-03-24 05:44:31
*/
import React from 'react';
import request from 'superagent';
import MatchesTable from '../Elements/MatchesTable'
import PitStats from '../Elements/PitStats'
import RobotStats f... |
src/components/docs/callout.js | nordsoftware/react-foundation-docs | import React from 'react';
import Playground from 'component-playground';
import {
Colors,
Sizes,
Grid,
Cell,
Callout,
} from 'react-foundation';
export const CalloutDocs = () => (
<section className="callout-docs">
<Grid>
<Cell large={12}>
<h2>Callout</h2>
<div>
<h3>Ba... |
submissions/leoasis/src/JediSlot.js | staltz/flux-challenge | import React from 'react';
export default class JediSlot extends React.Component {
render() {
const { jedi } = this.props;
return <li className="css-slot">
{jedi && !jedi.fetching && <div style={jedi.isInCurrentPlanet ? { color: 'red' } : null}>
<h3>{jedi.name}</h3>
<h6>Homeworld: {jedi... |
Console/app/node_modules/rc-slider/es/common/Track.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
/* eslint-disable react/prop-types */
import React from 'react';
var Track = function Track(props) {
var className = props.className,
included = props.included,
vertical = props.vertical,
offset = props.offset,
length = props.length,
... |
docs/app/Examples/collections/Grid/Content/index.js | clemensw/stardust | import React from 'react'
import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample'
import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection'
const GridContentExamples = () => (
<ExampleSection title='Content'>
<ComponentExample
title='Rows'
description='A r... |
src/client.js | MeetDay/dreampark-web | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { match, Router, browserHistory, applyRouterMiddleware } from 'react-router';
import { syncHistoryWithStore } from 'react-router-redux';
import { ReduxAsyncConnect } from 'redux-async-connect'
import { useScroll ... |
src/components/LoginForm/LoginForm.js | Nuriddinkhuja/photoshare | import React, { Component } from 'react';
import { reduxForm, propTypes, Field } from 'redux-form';
import { Form, Input, Button } from 'semantic-ui-react';
import loginValidation from './loginValidation';
@reduxForm({
form: 'login',
validate: loginValidation
})
export default class LoginForm extends Comp... |
components/value_validation_component.js | KingHenne/react-common | import React from 'react';
import validate from '../utils/validate';
import validationStates from '../utils/validation_states';
// ValueValidationComponent is an abstract component.
// The static props of this class will not be inherited on IE <= 10,
// see: https://babeljs.io/docs/usage/caveats/#classes-10-and-below-... |
app/components/PreviewExperimentComponent.js | openexp/OpenEXP | // @flow
import React, { Component } from 'react';
import { Experiment } from 'jspsych-react';
import { Segment } from 'semantic-ui-react';
import callbackHTMLDisplay from '../utils/jspsych/plugins/callback-html-display';
import callbackImageDisplay from '../utils/jspsych/plugins/callback-image-display';
import {
par... |
src/layouts/layout-5-1.js | nuruddeensalihu/binary-next-gen | import React from 'react';
export default (components, className, onClick) => (
<div className={className} onClick={onClick}>
<div className="vertical">
{components[0]}
</div>
<div className="vertical">
{components[1]}
{components[2]}
{compone... |
src/components/PullRequest.js | nchaulet/bitbucket-team-pullrequests | import React from 'react';
import moment from 'moment';
import PullRequestDate from './PullRequestDate';
class PullRequest extends React.Component {
render() {
const {pr} = this.props;
const avatarStyle = {
marginRight: 10
};
const approved = pr.participants.reduce((... |
src/interface/ReportSelectionHeader.js | yajinni/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Trans } from '@lingui/macro';
import { ReactComponent as Logo } from 'interface/images/logo.svg';
import AlertWarning from 'interface/AlertWarning';
import { getReportHistory } from 'interface/selectors/repor... |
packages/react/src/components/SecondaryButton/SecondaryButton.js | carbon-design-system/carbon-components | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import Button from '../Button';
const SecondaryButton = (props) => <Button kind="secondary" {...props} />;
expor... |
app/js/todo/form.js | pengux/electron-react-starter | import React from 'react';
import TodoActions from './actions';
export default React.createClass({
create(e) {
e.preventDefault();
var task = this.refs.newTask.value;
TodoActions.create({"name": task});
},
render() {
return (
<form onSubmit={this.create}>
<label>
Add task
<input type="te... |
ui/src/common/BatchPlayButton.js | cloudsonic/sonic-server | import React from 'react'
import PropTypes from 'prop-types'
import {
Button,
useDataProvider,
useTranslate,
useUnselectAll,
useNotify,
} from 'react-admin'
import { useDispatch } from 'react-redux'
export const BatchPlayButton = ({
resource,
selectedIds,
action,
label,
icon,
className,
}) => {
... |
app/react-icons/fa/copyright.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCopyright extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m28.7 24v2.4q0 1.1-0.8 2t-2.1 1.3-2.7 0.8-2.6 0.2q-4.6 0-7.6-3.1t-3.1-7.7q... |
client/src/routes.js | Enter-36-chambers-of-wu-tang-fam/Ilera-health | // React
import React from 'react';
import ReactDOM from 'react-dom';
// React Router
import { Router, Route, IndexRoute } from 'react-router';
//Authentication Requirement
import PhysicianAuth from './auth-shared/higher-order-components/physician_auth.jsx';
import PatientAuth from './auth-shared/higher-order-compone... |
src/svg-icons/image/burst-mode.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBurstMode = (props) => (
<SvgIcon {...props}>
<path d="M1 5h2v14H1zm4 0h2v14H5zm17 0H10c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zM11 17l2.5-3.15L15.29 16l2.5-3.22L21 17H11z"/... |
app/javascript/src/client/sessions/destroy.js | rringler/billtalk | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { destroySession } from './actions';
class SessionDestroy extends Component {
componentWillMount() {
this.props.destroySession();
this.props.history.push('/');
}
render() {
return <div></div>;
}
}
export defau... |
node_modules/react-bootstrap/es/NavbarBrand.js | C0deSamurai/muzjiks | 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 ... |
demo/src/mockups/calculator/interfaces/calculator-interface.js | tuantle/hypertoxin | 'use strict'; // eslint-disable-line
import { Hf } from 'hyperflow';
import { Ht } from 'hypertoxin';
import React from 'react';
import ReactNative from 'react-native'; // eslint-disable-line
import EVENT from '../events/calculator-event';
const KEYPADLABELS = [
[ `C`, `7`, `4`, `1`, `0` ],
[ `±`, `8`, `5... |
modules/dqt/jsx/react.notice.js | aces/Loris | import React from 'react';
const NoticeMessage = (props) => {
let alert;
// Display load alert if alert is present
if (props.alertLoaded) {
alert = (
<div className='alert alert-success' role='alert'>
<button type='button'
className='close'
aria-label='Close'
... |
src/components/common/svg-icons/image/monochrome-photos.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageMonochromePhotos = (props) => (
<SvgIcon {...props}>
<path d="M20 5h-3.2L15 3H9L7.2 5H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 14h-8v-1c-2.8 0-5-2.2-5-5s2.2-5 5-5V7h8v12zm-3... |
src/demo/App.js | sergiocruz/react-logbook | import React, { Component } from 'react';
import { Link } from 'react-router';
import './App.css';
class App extends Component {
render() {
return (
<div className="App">
<div className="App-header">
<h1>React Logbook</h1>
<div className="App-intro">
<ul className="A... |
packages/material-ui-icons/src/DialerSip.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let DialerSip = props =>
<SvgIcon {...props}>
<path d="M17 3h-1v5h1V3zm-2 2h-2V4h2V3h-3v3h2v1h-2v1h3V5zm3-2v5h1V6h2V3h-3zm2 2h-1V4h1v1zm0 10.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.01.24l-2.2 2.2c-2.83-1... |
client/src/components/setup-workflow/inprogress_lists.js | safv12/trello-metrics | 'use strict';
import React from 'react';
import { DropTarget } from 'react-dnd';
import InprogressListsItem from './inprogress_list_item';
const listTarget = {
drop(props, monitor) {
const list = monitor.getItem();
props.onMoveList({
list: list.list,
destination: 'inprogressLists'
});
}
};
... |
src/index.js | sblesson/resume | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
src/components/Navbar/Navbar.js | bryanlelliott/bryan_site_react | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import './Navbar.less';
import React from 'react'; // eslint-disable-line no-unused-vars
... |
indico/web/client/js/jquery/widgets/jinja/duration_widget.js | indico/indico | // This file is part of Indico.
// Copyright (C) 2002 - 2022 CERN
//
// Indico is free software; you can redistribute it and/or
// modify it under the terms of the MIT License; see the
// LICENSE file for more details.
import React from 'react';
import ReactDOM from 'react-dom';
import {WTFDurationField} from 'indico/... |
js/components/sideBar/index.js | amandamfielding/Coffee-Shop-Mobile | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Image, View } from 'react-native';
import { Content, Text, List, ListItem, ProgressBar } from 'native-base';
import { firebaseApp } from "../auth/authentication";
import { Font } from 'exponent';
import FontAwesome from 'react-nat... |
examples/dynamic-segments/app.js | fiture/react-router | import React from 'react';
import { Router, Route, Link, Redirect } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/user/123">Bob</Link></li>
<li><Link to="/user/abc">Sally</Link></li>
</ul>
{this.props.children}
... |
src/components/Nav.js | jeremyburr/psyburr | import React from 'react'
import Radium from 'radium'
import NavLink from '../containers/NavLink.js'
const rowStyle = {
textAlign: 'center',
'@media (min-width: 320px)' : {
marginTop: '30px'
},
'@media (min-width: 375px)' : {
marginTop: '40px'
},
'@media (min-width: 414px)' : {
marginTop: '5... |
docs/app/Examples/elements/Header/Content/HeaderExampleSubheaderProp.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Header } from 'semantic-ui-react'
const HeaderExampleSubheaderProp = () => (
<Header as='h2' content='Account Settings' subheader='Manage your account settings and set email preferences' />
)
export default HeaderExampleSubheaderProp
|
js/src/components/Scene/SceneControls.js | scottdonaldson/voxcel | import React from 'react';
import CONFIG from '../../config';
import swal from 'sweetalert';
class SceneControls extends React.Component {
constructor() {
super();
}
takeSnapshot() {
let canvas = $(this.props.controlManager.canvas);
canvas.addClass('faded');
$.ajax({
url: CONFIG.imgurEndpoint,
type... |
app/app.js | projectcashmere/admin | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
// Needed for redux-saga es6 generator support
import 'babel-polyfill';
// Import all the third party stuff
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
impor... |
node_modules/react-bootstrap/es/MediaListItem.js | mohammed52/something.pk | 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 ... |
docs/app/Examples/views/Card/index.js | aabustamante/Semantic-UI-React | import React from 'react'
import Content from './Content'
import Types from './Types'
import Variations from './Variations'
const CardExamples = () => (
<div>
<Types />
<Content />
<Variations />
</div>
)
export default CardExamples
|
packages/xo-web/src/xo-app/settings/cloud-configs/index.js | vatesfr/xo-web | import _ from 'intl'
import ActionButton from 'action-button'
import decorate from 'apply-decorators'
import defined from '@xen-orchestra/defined'
import React from 'react'
import SortedTable from 'sorted-table'
import { addSubscriptions } from 'utils'
import { AvailableTemplateVars, DEFAULT_CLOUD_CONFIG_TEMPLATE } fro... |
src/index.js | chasm/tic-tac-routes | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { Router, Route } from 'react-router'
import { createHistory } from 'history'
import { syncReduxAndRouter } from 'redux-simple-router'
import store from './store'
import HomeView from './views/home'
import GamesVie... |
src/stories/mobile/cityInfo.js | Cirych/WeatherApp | import React from 'react';
import { storiesOf, addDecorator, action, linkTo } from '@kadira/storybook';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import MobileTearSheet from './MobileTearSheet';
import weatherData from '../api/data';
import forecastData from '../api/forecast';
import CityInf... |
src/components/callout/index.js | adrienlozano/stephaniewebsite | import React from 'react';
import Section from '~/components/section';
import styled from 'styled-components';
import Typography from '~/components/typography';
import PageSection from "~/components/page-section";
import CalloutButton from './button';
import withSettings from "~/enhancers/with-settings";
const Callout... |
test/components/WorldMap-test.js | davrodpin/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import {test} from 'tape';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import WorldMap from '../../src/js/components/WorldMap';
import CSSClassnames from '../../src/js/utils/CSSClassnames';
const CLASS_ROOT = CSSClas... |
packages/react-events/src/Drag.js | STRML/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import type {
ReactResponderEvent,
ReactResponderContext,
} from 'shared/ReactTypes';
import React from 'react';
... |
src/components/Html.js | Maryanushka/masterskaya | /**
* 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-... |
demo/containers/FormV1/Fields.js | vbait/vb-react-form | import React from 'react';
import PropTypes from 'prop-types';
import { Button, FormGroup, ControlLabel, FormControl, HelpBlock, Alert } from 'react-bootstrap';
import { VBForm, connectForm } from '../../../src/Forms';
const Actions = ({ form }) => {
const isValid = form.isValid();
return (
<Button type="submi... |
src/svg-icons/av/forward-10.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvForward10 = (props) => (
<SvgIcon {...props}>
<path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0... |
node_modules/react-router/es6/withRouter.js | TheeSweeney/ComplexReactReduxMiddlewareReview | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
import invariant from 'invariant';
import React from 'react';... |
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-v3-slider.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, ContentMixin, Tools} from './../common/common.js';
import {Glyphicon} from './../bricks/bricks.js';
import Slid from './../bricks/slider.js';
import InputMixin from './mixins/input-mixin.js';
import N... |
frontend/src/components/eois/details/overview/projectDetails.js | unicef/un-partner-portal | import React from 'react';
import PropTypes from 'prop-types';
import Typography from 'material-ui/Typography';
import Grid from 'material-ui/Grid';
import Button from 'material-ui/Button';
import { browserHistory as history } from 'react-router';
import SectorForm from '../../../forms/fields/projectFields/sectorField/... |
web/src/components/preview.js | ajmalafif/ajmalafif.com | import React from 'react'
import tw, { css } from 'twin.macro'
export const Preview = React.forwardRef(function Preview(props, ref) {
return (
<div
{...props}
tw="block relative bg-gradient-to-t"
css={{
height: 'max(40rem, 30vmin)',
marginTop: '-40rem',
'--tw-gradient-fr... |
test/index.js | zhbhun/react-window-kit | /**
* Created by zhbhun on 2015/9/17.
*/
import React from 'react';
import {Window, Modal, Confirm, Tip} from './bootstrap';
import assign from 'object-assign';
// modal demo
class ModalDemo extends React.Component {
constructor(props) {
super(props);
this.state = {
show: false
... |
service-worker-prototype/src/index.js | ericapisani/service-worker-prototype | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
public/containers/CourseList/UserPaymentBlock.js | ninjiangstar/hackSChedule | import React, { Component } from 'react';
import classnames from 'classnames';
import api from '../../utils/api-interface';
import StripeCheckout from 'react-stripe-checkout';
class UserPaymentBlock extends Component {
constructor(props) {
super(props);
this.state = {
errorMessage: '',
paymentInProgress: f... |
auth/src/components/common/CardSection.js | DaveWJ/LearningReact | /**
* Created by david on 2/22/17.
*/
import React from 'react';
import { View } from 'react-native';
const CardSection = (props) => {
return (
<View style={styles.containerStyle}>
{props.children}
</View>
);
};
const styles = {
containerStyle: {
borderBottomWidth: 1,
padding: 5,
ba... |
src/components/Icons/Mute/index.js | jmikrut/keen-2017 | import React from 'react';
import './Mute.css';
export default (props) => {
if (props.color) {
this.color = props.color;
} else {
this.color = '#4df7ca';
}
return (
<svg className="mute" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<polyline stroke={this.color} points="8.47 14.91 11.07 17.74... |
app/containers/CreateBundle.js | kaunio/gloso | // @flow
import React, { Component } from 'react';
import { withRouter } from 'react-router'
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import LanguagePair from '../components/LanguagePair';
import * as glosorActions from '../actions/glosorActions';
class HomePage extends Compon... |
src/components/Feedback/Feedback.js | hang-up/react-whatever | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
examples/huge-apps/routes/Grades/components/Grades.js | ArmendGashi/react-router | import React from 'react';
class Grades extends React.Component {
render () {
return (
<div>
<h2>Grades</h2>
</div>
);
}
}
export default Grades;
|
app/containers/App.js | pavelkomiagin/npmr | // @flow
import React, { Component } from 'react';
export default class App extends Component {
props: {
children: HTMLElement
};
render() {
return (
<div>
{this.props.children}
</div>
);
}
}
|
src/Register.js | RobertMcCoy/CodeCollaborator | import React, { Component } from 'react';
import './Register.css';
import './main.css';
import { Redirect } from 'react-router';
import axios from 'axios';
import validator from 'validator';
class Register extends Component {
constructor(props) {
super(props);
this.state = {
errors: {}... |
src/svg-icons/av/loop.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvLoop = (props) => (
<SvgIcon {...props}>
<path d="M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.... |
app/javascript/mastodon/features/ui/components/modal_loading.js | danhunsaker/mastodon | import React from 'react';
import LoadingIndicator from '../../../components/loading_indicator';
// Keep the markup in sync with <BundleModalError />
// (make sure they have the same dimensions)
const ModalLoading = () => (
<div className='modal-root__modal error-modal'>
<div className='error-modal__body'>
... |
client/src/components/ApartmentList/components/Apartment.js | uramen/apartments | import React, { Component } from 'react';
import FontAwesome from 'react-fontawesome'
import Tooltip from 'rc-tooltip';
import { Link } from 'react-router';
import 'rc-tooltip/assets/bootstrap.css';
import _ from 'lodash';
export default class Apartment extends Component {
constructor(props) {
super(props);
... |
client/modules/Post/__tests__/components/PostList.spec.js | caleb272/PollIt | import React from 'react';
import test from 'ava';
import { shallow } from 'enzyme';
import PostList from '../../components/PostList';
const posts = [
{ name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" },
{ name: 'Mayank', title: 'Hi Mern', slug: ... |
packages/cockpit/ui/src/components/Converter.js | iurimatias/embark-framework | import PropTypes from "prop-types";
import React from 'react';
import {
Card,
CardBody,
CardHeader,
Col,
FormGroup,
Input,
Row,
Label
} from 'reactstrap';
import CopyButton from './CopyButton';
import { calculateUnits } from '../services/unitConverter';
class Converter extends React.Component {
cons... |
CompositeUi/src/views/component/SectionHeader.js | kreta-io/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import './../../scss/components/_section-... |
docs/src/app/components/pages/components/AppBar/Page.js | igorbt/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import appBarReadmeText from './README';
import AppBarExampleIcon from './ExampleI... |
src/layouts/CoreLayout.js | terakilobyte/rumbl_front | import React from 'react';
import 'styles/core.scss';
export default class CoreLayout extends React.Component {
static propTypes = {
children : React.PropTypes.element
}
render () {
return (
<div className='page-container'>
<div className='view-container'>
{this.props.children}
... |
src/views/pages/admin-dashboard/admin-dashboard.js | Metaburn/doocrate | import React, { Component } from 'react';
import { OrderedMap } from 'immutable';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Redirect } from 'react-router';
import { firebaseDb } from 'src/firebase';
import { CSVLink } from 'react-csv';
import './admin-dashboard.css';
import B... |
website/src/pages/index.js | wix/react-native-navigation | import React from 'react';
import { Redirect } from '@docusaurus/router';
function Home() {
return <Redirect to="/react-native-navigation/docs/before-you-start/" />;
}
export default Home;
|
app/src/client/components/app/Notifications.js | dvdschwrtz/DockDev | import React from 'react';
import {Link} from 'react-router';
// import { remote } from 'electron';
const Notifications = ({ DOToken, updateToken }) => (
<div className="full-page">
<div className="notification-content">
<div className="list-group">
<a href="#" className="list-group-item active">
... |
src/components/search/AccountFilter.js | whphhg/vcash-ui | import React from 'react'
import { translate } from 'react-i18next'
import { inject, observer } from 'mobx-react'
/** Ant Design */
import Select from 'antd/lib/select'
@translate(['common'])
@inject('send', 'wallet')
@observer
class AccountFilter extends React.Component {
constructor(props) {
super(props)
... |
src/step-23/ReOrganize.js | gufsky/react-native-workshop | import React, { Component } from 'react'
import Highlight from 'react-syntax-highlight'
import Note from '../Note'
import structurePng from './Structure.png'
const HomeScreen = `import React from 'react'
import { connect } from 'react-redux'
import { searchBars } from './../store/actions/actions'
import {
AppRegist... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.