path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
components/TabBar.js | BDE-ESIEE/mobile | 'use strict';
import React from 'react';
import {
Text,
View,
TouchableOpacity
} from 'react-native';
import Icon from 'react-native-vector-icons/Ionicons';
//import Piwik from 'react-native-piwik';
import styles from './styles/tabbar.js';
class TabBar extends React.Component {
render () {
const tabToIco... |
src/components/SegmentedControl.js | beni55/elemental | import classnames from 'classnames';
import React from 'react';
module.exports = React.createClass({
displayName: 'SegmentedControl',
propTypes: {
className: React.PropTypes.string,
equalWidthSegments: React.PropTypes.bool,
onChange: React.PropTypes.func.isRequired,
options: React.PropTypes.array.isRequired... |
src/containers/WeatherContainer.js | Arinono/uReflect_POC_Electron01 |
import React from 'react';
import CircularProgress from 'material-ui/CircularProgress';
import CurrentDayWeather from '../components/CurrentDayWeather';
import NextDaysWeatherContainer from '../components/NextDaysWeatherContainer';
import Widget from './Widget';
var $ = require('jquery');
function weatherRequest() ... |
src/pages/job-listings/index.js | ChicagoJS/chicagojs.org | import React from 'react'
import { graphql } from 'gatsby'
import { Link } from 'gatsby'
import Layout from '../../components/Layout'
import { renderTechIconCorrectUrl } from '../../utils/index'
import './job-listings.css'
const JobPost = ({ postID, position, company, logoUrl, description, datePosted, technologies, ne... |
src/components/Bio.js | onchain-asia/onchain-asia.github.io | import React from 'react'
// Import typefaces
import 'typeface-montserrat'
import 'typeface-merriweather'
import profilePic from './profile-pic.jpg'
import { rhythm } from '../utils/typography'
class Bio extends React.Component {
render() {
return (
<p
style={{
marginBottom: rhythm(2.5)... |
scripts/components/pages/home/authrizationView.js | evilfaust/lyceum9sass | import React from 'react';
export default class AuthorizarionView extends React.Component {
constructor(props) {
super(props);
this.render = this.render.bind(this);
}
render() {
}
}
|
src/media/js/site/components/confirmButton.js | ziir/marketplace-content-tools | import React from 'react';
export default class ConfirmButton extends React.Component {
static propTypes = {
className: React.PropTypes.string,
initialText: React.PropTypes.string.isRequired,
confirmText: React.PropTypes.string,
isProcessing: React.PropTypes.bool,
onClick: React.PropTypes.func.i... |
src/Parser/Priest/Shadow/Modules/Items/Tier21_2set.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import HIT_TYPES from 'Parser/Core/HIT_TYPES';
import calculateEffecti... |
components/App/App.js | ritz078/react-component-boilerplate | import React from 'react'
import PropTypes from 'prop-types'
import styles from './App.scss'
export default function App (props) {
return <button className={styles.app} onClick={props.onClick}>Hello World</button>
}
App.propTypes = {
onClick: PropTypes.func
}
App.defaultProps = {
onClick () {}
}
|
src/js/components/RangeInput/stories/SimpleRange.js | grommet/grommet | import React from 'react';
import { Box, RangeInput } from 'grommet';
export const Simple = () => {
const [value, setValue] = React.useState(5);
const onChange = (event) => setValue(event.target.value);
return (
<Box align="center" pad="large">
<RangeInput value={value} onChange={onChange} />
</... |
fields/types/localfiles/LocalFilesField.js | jacargentina/keystone | import _ from 'lodash';
import bytes from 'bytes';
import Field from '../Field';
import React from 'react';
import ReactDOM from 'react-dom';
import { Button, FormField, FormInput, FormNote } from 'elemental';
const ICON_EXTS = [
'aac', 'ai', 'aiff', 'avi', 'bmp', 'c', 'cpp', 'css', 'dat', 'dmg', 'doc', 'dotx', 'dwg'... |
packages/ringcentral-widgets/components/MeetingSection/index.js | u9520107/ringcentral-js-widget | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss';
import styles from './styles.scss';
class MeetingSection extends Component {
constructor(...args) {
super(...args);
this.... |
src/src/Components/RulesEditor/components/Blocks/ConditionState.js | ioBroker/ioBroker.javascript | import React from 'react';
import Button from '@material-ui/core/Button';
import Dialog from '@material-ui/core/Dialog';
import DialogContent from '@material-ui/core/DialogContent';
import DialogContentText from '@material-ui/core/DialogContentText';
import DialogActions from '@material-ui/core/DialogActions';
import... |
docs/src/pages/demos/tabs/CenteredTabs.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import Paper from 'material-ui/Paper';
import Tabs, { Tab } from 'material-ui/Tabs';
const styles = {
root: {
flexGrow: 1,
},
};
class CenteredTabs extends React.Component {
state = {
value: 0... |
src/main/resources/static/bower_components/jqwidgets/demos/react/app/input/defaultfunctionality/app.js | dhawal9035/WebPLP | import React from 'react';
import ReactDOM from 'react-dom';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
class App extends React.Component {
render () {
let countries = new Array("Afghanistan", "Albania", "Algeria", "Andorra", "Angola", "Antarctica", "Antigua and Barbuda", "Argentina", "A... |
index.ios.js | libercata/RN_ZhihuDailyDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Home from './js/home';
AppRegistry.registerComponent('RN_ZhihuDailyDemo', () => Home);
|
src/components/StackedInfo/StackedInfo.js | hack-duke/hackduke-portal | import React from 'react'
import classes from './StackedInfo.scss'
class StackedInfo extends React.Component {
static propTypes = {
text: React.PropTypes.array.isRequired
}
renderRow (index) {
if (index + 1 < this.props.text.length) {
const question = this.props.text[index]
const answer = t... |
react-poc-guests/app/app.js | Meesayen/react-poc | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
// TODO constrain eslint import/no-unresolved rule to this block
// Load the manifest.json file and the .htaccess file
import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin... |
source/components/EditWarningModal.js | PitchInteractiveInc/hexagon-cartograms | import React from 'react'
const warningText = `You have made changes to your map.
Generating a new Tilegram or changing the resolution
of an existing Tilegram will overwrite those changes.`
export default function EditWarningModal(props) {
return (
<div
className='modal-edit-warning'
onClick={(ev... |
src/components/rankings/Rankings.js | AlanMorel/aria | import React from 'react';
import Config from '../../Config';
import Utility from '../../Utility';
import Banner from '../navigation/banner/Banner';
import Rankingslist from '../../components/rankings/rankingslist/Rankingslist';
class Rankings extends React.Component {
componentDidMount() {
Utility.setTi... |
JS/client.js | letsspeak/Stock | import React from 'react'
import ReactDOM from 'react-dom'
import { applyMiddleware, createStore } from 'redux'
import { Provider } from 'react-redux'
import { createLogger } from 'redux-logger'
import thunkMiddleware from 'redux-thunk'
import { BrowserRouter as Router, Route, browserHistory } from 'react-router-dom'... |
src/components/flags/Es.js | angeloocana/tic-tac-toe-ai | import React from 'react';
import Icon from 'react-icon-base';
const Ca = (props) => {
return (
<Icon {...props} viewBox="0 0 640 480">
<path fill="#c60b1e" d="M0 0h640v480H0z" />
<path fill="#ffc400" d="M0 120h640v240H0z" />
<path d="M127.27 213.35s-.49 0-.76-.152c-.27-.157-1.084-.927-1.084-.9... |
react/features/base/media/components/web/VideoTrack.js | KalinduDN/kalindudn.github.io | import React from 'react';
import { connect } from 'react-redux';
import AbstractVideoTrack from '../AbstractVideoTrack';
/**
* Component that renders a video element for a passed in video track.
*
* @extends AbstractVideoTrack
*/
class VideoTrack extends AbstractVideoTrack {
/**
* Default values for {@c... |
examples/pinterest/app.js | moudy/react-router | import React from 'react';
import { Router, Route, IndexRoute, Link } from 'react-router';
var PICTURES = [
{ id: 0, src: 'http://placekitten.com/601/601' },
{ id: 1, src: 'http://placekitten.com/610/610' },
{ id: 2, src: 'http://placekitten.com/620/620' }
];
var Modal = React.createClass({
styles: {
posi... |
client/js/components/paginated-widget-table.js | pvogel1967/relayClassTeam2_11012017 | import React from 'react';
import { createPaginationContainer, graphql } from 'react-relay';
import { WidgetViewRowContainer } from './widget-view-row';
export class WidgetTable extends React.Component {
constructor(props) {
super(props);
this.state = {
currentPage: 0,
lastPageLoaded: 0,
... |
app/components/Console.js | billyct/fil | import _ from 'underscore';
import React from 'react';
import OutputLine from 'components/OutputLine';
import ConsoleToolbar from 'components/ConsoleToolbar';
import ErrorLine from 'components/ErrorLine';
export default class Console extends React.Component {
renderLine(line, i) {
return <OutputLine
... |
src/admin/Header.js | rendact/rendact | import React from 'react';
import { getConfig } from '../utils';
import {ControlSidebar} from '../actions';
import _ from 'lodash';
import {connect} from 'react-redux'
let AdminHeader = React.createClass({
getInitialState: function(){
return {
goToProfile: false
}
},
getDefaultProps: function() {
... |
admin/client/App/elemental/DropdownButton/index.js | creynders/keystone | /* eslint quote-props: ["error", "as-needed"] */
import React from 'react';
import { css, StyleSheet } from 'aphrodite/no-important';
import Button from '../Button';
function DropdownButton ({ children, ...props }) {
return (
<Button {...props}>
{children}
<span className={css(classes.arrow)} />
</Button>... |
src/index.js | hank9653/reactMap | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import App from './components/app';
import reducers from './reducers';
const createStoreWithMiddleware = applyMiddleware()(createStore);
ReactDOM.render(
<Provi... |
src/@ui/forms/ResetPasswordForm.js | NewSpring/Apollos | import React from 'react';
import { View } from 'react-native';
import PropTypes from 'prop-types';
import { compose, mapProps, setPropTypes } from 'recompose';
import { withFormik } from 'formik';
import Yup from 'yup';
import withUser from '@data/withUser';
import { Text as TextInput } from '@ui/inputs';
import Butt... |
websocket/client/Client/node_modules/react-native/Libraries/Components/WebView/WebView.ios.js | prayuditb/tryout-01 | /**
* 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/components/Feedback/Feedback.js | tim-mays/react-heroku-sandbox | /*! 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... |
src/app/index.js | NemanjaManot/users | import React from 'react';
import { render } from 'react-dom';
import {Router, Route, browserHistory, IndexRoute} from "react-router";
import { Root } from "./components/Root";
import { Home } from "./Pages/Home";
import { Books } from "./Pages/Books";
import "./css/style.scss";
class App extends React.Component {
... |
src/app/common/UserInterface/components/Message.js | toxzilla/app | import React from 'react';
import shallowCompare from 'react-addons-shallow-compare';
import {classNames} from 'react-dom-stylesheet';
import Text from './Text';
export default class Message extends React.Component {
static displayName = 'Message'
static propTypes = {
id: React.PropTypes.string,
show: R... |
app/components/AddAd/AddAd.js | nauman-ahmad-qureshi/adsManagement | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
TextInput,
TouchableHighlight,
AsyncStorage,
View,
Navigator,
TouchableOpacity,
Platform,
Image,
Alert
} from 'react-native';
import ImagePicker from 'react-native-image-picker';
var FileUpload = require('N... |
classic/src/scenes/mailboxes/src/Scenes/AccountWizardScene/MailboxWizardScene/MailboxWizardScene.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import MailboxWizardSceneContent from './MailboxWizardSceneContent'
import { RouterDialog, RouterDialogStateProvider } from 'wbui/RouterDialog'
import { withStyles } from '@material-ui/core/styles'
co... |
src/views/components/player/index.js | zerubeus/sawt | import React from 'react';
import { connect } from 'react-redux';
import { audio, playerActions, getPlayer, getPlayerTrack, getPlayerTracklistCursor } from '../../../core/player';
import { Track } from '../../../core/tracks';
import { createShallowEqualSelector } from '../../../core/utils';
import AudioCurrentTime fro... |
lesson-7/todos/src/index.js | msd-code-academy/lessons | import React from 'react';
import ReactDOM from 'react-dom';
import { BrowserRouter } from 'react-router-dom'
import { createStore, applyMiddleware } from 'redux'
import { Provider } from "react-redux";
import logger from 'redux-logger'
import './styles/index.css';
import App from './components/App';
import registerS... |
stories/src/index.js | Vizzuality/care_usa | import React from 'react';
import ReactDOM from 'react-dom';
import { createStore, combineReducers, applyMiddleware, compose } from 'redux';
import { Provider } from 'react-redux';
import thunk from 'redux-thunk';
import router from './router';
import * as reducers from 'store';
import 'slick-carousel/slick/slick.css'... |
app/components/App.js | jpsierens/budget | // @flow
import React from 'react';
import { Link } from 'react-router';
const App = ({ children }: { children: Object }) =>
<div>
<h1>Budgets</h1>
{ children }
<footer>
<Link to="/">Budgets</Link>
<Link to="/about">About</Link>
</footer>
</div>;
export ... |
shared/container/DevTools/DevTools.js | nosu/chosei-kun | 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 />
... |
src/modules/Talk/components/ListenerFound.js | prjctrft/mantenuto | import React from 'react';
import { ClipLoader } from 'react-spinners';
import styles from './Talk.scss';
const ListenerFound = () =>
(
<div>
<h3>Listener found!</h3>
<p>Getting your connection ready.</p>
<ClipLoader
color={styles.brandWarning}
loading
size={100}
... |
tests/lib/rules/vars-on-top.js | morrissinger/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
blueocean-material-icons/src/js/components/svg-icons/image/filter-1.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageFilter1 = (props) => (
<SvgIcon {...props}>
<path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14z"/>
</SvgIcon>
);
ImageFilter1.displa... |
packages/vx-glyph/src/glyphs/Cross.js | Flaque/vx | import React from 'react';
import cx from 'classnames';
import { symbol, symbolCross } from 'd3-shape';
import Glyph from './Glyph';
import additionalProps from '../util/additionalProps';
export default function GlyphCross({
children,
className,
top,
left,
size,
...restProps
}) {
const path = symbol();
... |
demos/demo/src/components/Projects/index.js | FWeinb/cerebral | import React from 'react'
import {connect} from 'cerebral/react'
import listProps from '../../common/Collection/props/list'
import translations from '../../common/computed/translations'
import Project from '../Project'
export default connect(
listProps('projects', {t: translations}),
function Projects ({enterPres... |
views/decoration_toggle.js | bodiam/black-screen | import React from 'react';
export default React.createClass({
getInitialState() {
return {enabled: this.props.invocation.state.decorate};
},
handleClick(event) {
stopBubblingUp(event);
var newState = !this.state.enabled;
this.setState({enabled: newState});
this.prop... |
packages/reactor-tests/src/tests/ReplaceNodeWIthMarkup.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Container, Button } from '@extjs/ext-react';
export default class ReplaceNodeWithMarkup extends Component {
state = {
showChild: false
}
toggleChild = () => {
this.setState({ showChild: !this.state.showChild })
}
render() {
... |
packages/icons/src/md/places/Spa.js | suitejs/suitejs | import React from 'react';
import IconBase from '@suitejs/icon-base';
function MdSpa(props) {
return (
<IconBase viewBox="0 0 48 48" {...props}>
<path d="M30.99 19.27C30.62 13.69 28.36 8.24 24.12 4a24.376 24.376 0 0 0-7.1 15.27c2.56 1.37 4.93 3.12 6.98 5.25 2.05-2.13 4.42-3.89 6.99-5.25zM24 30.91C19.7 24.3... |
app/javascript/mastodon/features/getting_started/components/trends.js | kazh98/social.arnip.org | import React from 'react';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import Hashtag from 'mastodon/components/hashtag';
import { FormattedMessage } from 'react-intl';
export default class Trends e... |
js/src/dapps/githubhint/Loading/loading.js | immartian/musicoin | // Copyright 2015, 2016 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any la... |
src/svg-icons/notification/airline-seat-flat.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationAirlineSeatFlat = (props) => (
<SvgIcon {...props}>
<path d="M22 11v2H9V7h9c2.21 0 4 1.79 4 4zM2 14v2h6v2h8v-2h6v-2H2zm5.14-1.9c1.16-1.19 1.14-3.08-.04-4.24-1.19-1.16-3.08-1.14-4.24.04-1.16 1.19-1.1... |
src/components/AboutHeader/AboutHeader.js | Zoomdata/nhtsa-dashboard | import React, { Component } from 'react';
export default class AboutHeader extends Component {
render() {
return <div className="about-header">About</div>;
}
}
|
fields/types/email/EmailField.js | Redmart/keystone | import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/*
TODO:
- gravatar
- validate email address
*/
module.exports = Field.create({
displayName: 'EmailField',
renderValue () {
return this.props.value ? (
<FormInput noedit href={'mailto:' + this.props.value}>{this... |
index/components/AboutOntology.js | JDRomano2/VenomKB | import React from 'react';
const AboutOntology = () =>
<div className="jumbotron">
<div className="container">
<h2>About Venom Ontology</h2>
<h3>What is an ontology?</h3>
<p>
An ontology is a special kind of data structure that describes the <i>semantic meaning</i> of the concepts that ... |
src/common/SlideAnimationView.js | saketkumar95/zulip-mobile | /* flow */
import React, { Component } from 'react';
import { Animated } from 'react-native';
export default class SlideAnimationView extends Component {
state = {
animationIndex: new Animated.Value(0),
};
animate() {
const { easing, duration } = this.props;
this.state.animationIndex.setValue(0);
... |
src/pages/02-first-grid.js | MozillaDevelopers/playground | import React from 'react';
import Redirect from '../components/Redirect';
export default () => {
return (
<Redirect url="/css-grid/02-first-grid" />
);
};
|
app/javascript/flavours/glitch/features/lists/components/new_list_form.js | im-in-space/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import { changeListEditorTitle, submitListEditor } from 'flavours/glitch/actions/lists';
import IconButton from 'flavours/glitch/components/icon_button';
import { defineMessages, injectIntl } from 'react-intl';
const ... |
src/svg-icons/maps/directions.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirections = (props) => (
<SvgIcon {...props}>
<path d="M21.71 11.29l-9-9c-.39-.39-1.02-.39-1.41 0l-9 9c-.39.39-.39 1.02 0 1.41l9 9c.39.39 1.02.39 1.41 0l9-9c.39-.38.39-1.01 0-1.41zM14 14.5V12h-4v3H8v-4c0-.... |
src/client.js | brennanerbz/react-redux-universal-hot-example | /**
* 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 createLocation from 'history/lib/createLocation';
import cr... |
docs/src/app/pages/components/InlineEdit/ExampleInlineEditTooltip.js | GetAmbassador/react-ions | import React from 'react'
import InlineEdit from 'react-ions/lib/components/InlineEdit'
import Button from 'react-ions/lib/components/Button'
import style from './styles'
class ExampleInlineEditTooltip extends React.Component {
constructor(props) {
super(props)
}
state = {
value: 'Example value',
to... |
src/js/lib/initializers/index.js | StanleySong/react-html-markdown-editor | import 'babel-polyfill'
import React from 'react'
import ReactDOM from 'react-dom';
import { browserHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import Root from './Root'
import configureStore from '../store/configureStore'
const store = configureStore();
const history = sync... |
packages/playground/src/app/index.js | Talend/ui | /**
* Import theme.
* Being the first import is important, so that it is the default style
* and other style can override it
*/
import { createHistory, useBasename } from 'history';
import getRouter from '@talend/react-cmf-router';
import React from 'react';
import cmf from '@talend/react-cmf';
import { AppLoader, ... |
src/components/ElasticDemo/ElasticDemo.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
import ElasticSimple from 'components/ElasticSimple/ElasticSimple';
import Demo from 'components/Demo/Demo';
import DemoComponent from 'components/Demo/DemoComponent';
import DemoCode from 'components/Demo/DemoCode';
import Code from 'components/Code/Code'... |
src/docs/examples/Label/ExampleOptional.js | alopezitrs/ps-react-analo | import React from 'react';
import Label from 'ps-react/Label';
/** Optional label */
export default function ExampleOptional() {
return <Label htmlFor="test" label="test" />
}
|
Realization/frontend/czechidm-core/src/content/tree/type/TypeConfiguration.js | bcvsolutions/CzechIdMng | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
//
import * as Advanced from '../../../components/advanced';
import * as Basic from '../../../components/basic';
import * as Utils from '../../../utils';
import { TreeTypeManager, DataManager, SecurityManager } from '.... |
app/scripts/partials/PromptModal.react.js | darbio/auth0-roles-permissions-dashboard-sample | import React from 'react';
import BS from 'react-bootstrap';
export default class PromptModal extends React.Component {
render() {
return(
<BS.Modal {...this.props} animation={false} title={this.props.title}>
<div className="modal-body">
<p>{this.props.message}</p>
</div>
... |
src/components/ImageObject.js | allsportster023/imageViewer | /**
* Created by bslaugh on 7/7/17.
*/
import React from 'react';
import axios from 'axios';
import moment from 'moment';
import emptyImage from "../images/empty.png";
import redX from "../images/red_x.png";
import '../styles/main.css';
class ImageObject extends React.Component {
constructor(props) {
... |
docs/app/Examples/elements/Icon/Variations/IconExampleSize.js | koenvg/Semantic-UI-React | import React from 'react'
import { Icon } from 'semantic-ui-react'
const IconExampleSize = () => (
<div>
<Icon name='home' size='mini' />
<Icon name='home' size='tiny' />
<Icon name='home' size='small' />
<Icon name='home' size='small' />
<br />
<Icon name='home' />
<br />
<Icon name=... |
react-router-tutorial/lessons/14-whats-next/server.js | zerotung/practices-and-notes | import express from 'express'
import path from 'path'
import compression from 'compression'
import React from 'react'
import { renderToString } from 'react-dom/server'
import { match, RouterContext } from 'react-router'
import routes from './modules/routes'
var app = express()
app.use(compression())
// serve our sta... |
src/shared/welcome.js | tejans24/bball-stats-app | import React from 'react'
import ReactDOM from 'react-dom'
import Main from './Main/Main'
const mountnode = document.getElementById('react')
ReactDOM.render(<Main />, mountnode) |
examples/todomvc/index.js | mikeachen/redux | import 'babel-core/polyfill';
import React from 'react';
import { Provider } from 'react-redux';
import App from './containers/App';
import configureStore from './store/configureStore';
import 'todomvc-app-css/index.css';
const store = configureStore();
React.render(
<Provider store={store}>
{() => <App />}
... |
src/components/Sentence.js | ShangShungFoundation/tib_learn_app | import React, { Component } from 'react';
import TibText from '../lib/TibText.js'
const URL = 'https://sheets.googleapis.com/v4/spreadsheets/1D6NW7phdjwmz7bnncNgJcwNVgwn39SsOCVvZ403VilE/values/syllables_unique!A2:D4045?key=AIzaSyCSZo1p3NxY73vcsDo554y3chNSTp4uhqY'
const examplesURL = 'https://sheets.googleapis.com/v4/s... |
src/components/Comments.js | NYCJacob/react2you | import React, { Component } from 'react';
import * as _ from "lodash";
import { connect } from 'react-redux';
import {withRouter } from 'react-router-dom'
import PropTypes from 'prop-types';
import { fetchComments, newComment} from "../actions/index"
import SingleComment from './SingleComment'
import CommentForm from ... |
src/index.js | iarroyo5/react-starter-kit | import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App/>,
document.getElementById('app')
);
|
examples/counter/index.js | romeovs/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
MyBlog/BaymaxBlogFrontEnd/modules/Analysis.js | tyhtao1990/BaymaxHome | import React from 'react'
export default React.createClass({
render(){
return <div>Hello, this is analysis!</div>
}
}) |
src/react-child-root.js | experoinc/react-child-root | import React from 'react';
import {render, unmountComponentAtNode} from 'react-dom';
import getParentContext from './getParentContext';
import createRootComponent from './createRootComponent';
function renderElement(Root, content, instance, container) {
const context = getParentContext(instance);
const props =... |
react/features/chat/components/web/DisplayNameForm.js | jitsi/jitsi-meet | // @flow
import { FieldTextStateless } from '@atlaskit/field-text';
import React, { Component } from 'react';
import type { Dispatch } from 'redux';
import { translate } from '../../../base/i18n';
import { connect } from '../../../base/redux';
import { updateSettings } from '../../../base/settings';
import KeyboardA... |
src/components/Article/Article.js | askd/animakit | import React from 'react';
import PropTypes from 'prop-types';
import styles from './Article.css';
const Article = (props) => {
let className = styles.root;
if (props.accent) className += ` ${styles.rootAccent}`;
if (props.centered) className += ` ${styles.rootCentered}`;
return (
<article className={ cla... |
modules/dreamview/frontend/src/components/Scene/Geolocation.js | xiaoxq/apollo | import React from 'react';
import { inject, observer } from 'mobx-react';
@inject('store') @observer
export default class Geolocation extends React.Component {
render() {
const { geolocation } = this.props.store;
const x = geolocation.x ? geolocation.x.toFixed(2) : '?';
const y = geolocation.y ? geoloca... |
app/components/member/Row.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import Panel from '../shared/Panel';
import UserAvatar from '../shared/UserAvatar';
import OrganizationMemberRoleConstants from '../../constants/OrganizationMemberRoleConstants';
const AVATAR_SIZE = 40;
class Mem... |
node_modules/laravel-elixir/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | munfor/laravel-angular-cms | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
docs/src/pages/demos/tabs/TabsWrappedLabel.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import Typography from 'material-ui/Typography';
function TabContainer(props) {
return (
<Typography component="di... |
src/components/App.js | radu-m/no-press-react | /* eslint-disable import/no-named-as-default */
import React from 'react';
import PropTypes from 'prop-types';
import { Route } from 'react-router';
import { Switch, NavLink } from 'react-router-dom';
import HtmlFromJson from "./common/HtmlFromJson";
// This is a class-based component because the current
// version of... |
src/routes/account/index.js | terryli1643/daoke-react-c | import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'dva'
import { Row, Col } from 'antd'
import { routerRedux } from 'dva/router'
const Account = ({ dispatch, app }) => {
const { user } = app
const goAddressbook = (type) => {
dispatch(
routerRedux.push({
pathnam... |
src/EventRowMixin.js | martynasj/react-big-calendar | import PropTypes from 'prop-types';
import React from 'react';
import { findDOMNode } from 'react-dom';
import EventCell from './EventCell';
import getHeight from 'dom-helpers/query/height';
import { accessor, elementType } from './utils/propTypes';
import { segStyle } from './utils/eventLevels';
import { isSelected } ... |
packages/material-ui-icons/src/Gesture.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Gesture = props =>
<SvgIcon {...props}>
<path d="M4.59 6.89c.7-.71 1.4-1.35 1.71-1.22.5.2 0 1.03-.3 1.52-.25.42-2.86 3.89-2.86 6.31 0 1.28.48 2.34 1.34 2.98.75.56 1.74.73 2.64.46 1.07-.31 1.95-1.4 3.06-2.... |
tweets-component.js | manubamba/react-twitter | import React from 'react';
import {connect} from 'react-redux';
import Tweet from './tweet';
@connect(({tweets}) => ({
tweets
}))
export default class TweetsComponent extends React.Component {
static propTypes = {
tweets: React.PropTypes.object,
};
constructor(props) {
super(props);
}
render() ... |
src/components/App/App.js | danmindru/politically-correct-dumb-prototype-boiler | import React from 'react';
import { Link } from 'react-router';
export default React.createClass(
{
render: function(){
return (
<div>
<h1>BOOM!</h1>
<p>How's that prototype looking?</p>
<Link to={'about'}>Take me somewhere else</Link>
</div>
);
}
... |
app/javascript/mastodon/features/favourites/index.js | 5thfloor/ichiji-social | import React from 'react';
import { connect } from 'react-redux';
import ImmutablePureComponent from 'react-immutable-pure-component';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourit... |
app/js/components/location.js | Noah0x0/noah | 'use strict';
import React from 'react';
const getDisplayString = ({country, prefecture, river}) => {
return `${country}, ${prefecture}, ${river}`;
};
const getOption = (list) => {
return list.map((item, index) => {
return (
<option key={`${index}`} value={getDisplayString(item)}>
{getDisplaySt... |
definitions/npm/react-redux_v4.x.x/flow_v0.30.x-v0.52.x/test_Provider.js | mkscrg/flow-typed | // @flow
import React from 'react'
import { Provider } from 'react-redux'
// $ExpectError
<Provider />; // missing store
|
app/components/member/Edit/index.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import Relay from 'react-relay/classic';
import MemberEditForm from './form';
import MemberEditRemove from './remove';
class Edit extends React.PureComponent {
static displayName = "Member.Edit";
static propTypes = {
organizationMember: PropTypes... |
client/src/components/dashboard/Profile/Preferences/Social.js | no-stack-dub-sack/alumni-network | import APP_HOST from '../../../../assets/helpers/defineHost';
import FormField from './common/FormField';
import { isEqual } from 'lodash';
import ListItem from '../../common/ListItem';
import MessageBox from '../../common/MessageBox';
import React from 'react';
import Ribbon from '../Preferences/common/RibbonHeader';
... |
navigation/src/components/Home.js | tak3mat3k/react-native-navigation | import React from 'react'
import { View, Text, StyleSheet } from 'react-native'
class Home extends React.Component {
render() {
const { container } = styles
return (
<View style={container}>
<Text>Home</Text>
</View>
)
}
}
const styles = StyleSheet.create({
container: {
flex:... |
Users/Register.js | nyc-fiery-skippers-2017/AwesomeProject | import React, { Component } from 'react';
import {
StyleSheet,
TextInput,
Text,
AppRegistry,
View,
Button,
TouchableHighlight,
AsyncStorage,
} from 'react-native';
import axios from 'axios';
import styles from '../Style'
// import { StackNavigator } from 'react-navigation';
export default class Regi... |
www/src/components/navigation/header/AuthorizedButtons.js | cygwin255/SimpleSurvey | import React from 'react'
import { Link } from 'react-router-dom'
const AuthorizedButtons = ({name, logout}) => (
<ul className='navbar-nav'>
<li className='nav-item dropdown'>
<a className='nav-link dropdown-toggle'
href='#'
id='navbarDropdownMenuLink'
data-toggle='dropdown'
... |
__tests__/TestComponentWhichShouldThrow6.js | liegeandlief/whitelodge | 'use strict'
import React from 'react'
import {AddStoreSubscriptions} from '../src/'
class TestComponent extends React.Component {
render () {
return null
}
}
export default AddStoreSubscriptions(TestComponent, ['testStore'], window, 'Not just letters!!!1')
|
app/component/myGithubPage.js | lipeiwei-szu/ReactNativeOne | /**
* Created by lipeiwei on 16/10/28.
*/
import React from 'react';
import {
WebView,
ActivityIndicator,
View
} from 'react-native';
import BaseComponent from '../base/baseComponent';
import commonStyle from '../style/commonStyle';
const URL = 'https://github.com/lipeiwei-szu/ReactNativeOne/blob/master/READM... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.