path stringlengths 5 195 | repo_name stringlengths 5 79 | content stringlengths 25 1.01M |
|---|---|---|
src/components/character/CharacterForm.js | billyafernandez/ReactReduxDemo | import React from 'react';
import TextInput from '../common/TextInput';
import TextAreaInput from '../common/TextAreaInput';
import SelectInput from '../common/SelectInput';
const CharacterForm = ({character, allCompanies, onSave, onChange, loading, errors}) => {
return (
<form>
<h1>Manage Supe... |
examples/todomvc/index.js | morgante/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/svg-icons/image/leak-add.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLeakAdd = (props) => (
<SvgIcon {...props}>
<path d="M6 3H3v3c1.66 0 3-1.34 3-3zm8 0h-2c0 4.97-4.03 9-9 9v2c6.08 0 11-4.93 11-11zm-4 0H8c0 2.76-2.24 5-5 5v2c3.87 0 7-3.13 7-7zm0 18h2c0-4.97 4.03-9 9-9v-2c-... |
src/containers/DevTools.js | Rkiouak/react-redux-python-stocks | 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-q' >
<LogMonitor />
</Dock... |
src/Footer.js | noedlm/png-site | import React, { Component } from 'react';
class Footer extends Component {
render() {
return (
<div className="d-flex jumbotron jumbotron-fluid section" id="contact-us">
<div className="container container-fluid">
<div className="row text-center">
<div className="col">
... |
client/app/bundles/timer/Timer/index.js | phosphene/react-on-rails-cherrypick | import React, { Component } from 'react';
import { Link } from 'react-router';
import { action } from 'mobx';
import { inject, observer } from 'mobx-react';
//import styles from './styles.css';
@inject("store") @observer
export default class Home extends Component {
constructor(props) {
super(props);
this.s... |
src/svg-icons/notification/no-encryption.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationNoEncryption = (props) => (
<SvgIcon {...props}>
<path d="M21 21.78L4.22 5 3 6.22l2.04 2.04C4.42 8.6 4 9.25 4 10v10c0 1.1.9 2 2 2h12c.23 0 .45-.05.66-.12L19.78 23 21 21.78zM8.9 6c0-1.71 1.39-3.1 3.1... |
app/components/H3/index.js | simon-johansson/PB-labz | import React from 'react';
function H3(props) {
return (
<h3 {...props} />
);
}
export default H3;
|
src/svg-icons/image/lens.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageLens = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2z"/>
</SvgIcon>
);
ImageLens = pure(ImageLens);
ImageLens.displayName = 'ImageLens';
Ima... |
src/svg-icons/maps/directions-boat.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsBoat = (props) => (
<SvgIcon {...props}>
<path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99... |
stories/core/Button.js | rentpath/react-ui | import React from 'react'
import { action } from '@storybook/addon-actions'
import { Button, ToggleButton } from 'react-ui-core/src/Button'
export const DefaultButton = (
<Button
onClick={action('Clicked the button!')}
>
Click Me
</Button>
)
export const ButtonWithColor = (
<Button
color="red"
... |
test/app.js | jturle/postcss-sketch | import React from 'react';
import { render } from 'react-dom';
import 'semantic-ui-css/semantic.min.css';
import styles from './test.css';
// Component Examples
import ButtonExample from './components/button';
import Menu from './components/menu';
class App extends React.Component {
render() {
return (
... |
js/react-native/merin_j/src/components/common/Card.js | petarov/sandbox | // abstract cards wrapper
import React from 'react';
import { View } from 'react-native';
const Card = (props) => {
const { containerStyle } = styles;
// props.children -> render calling container's children into card
return (
<View style={containerStyle}>
{props.children}
</View>
);
};
const ... |
index.ios.js | ethan605/react-native-zero | /**
* ZeroProj iOS entry point
* @providesModule ZeroProj.Entry.IOS
*/
/* eslint-disable no-unused-vars */
import React from 'react';
/* eslint-enable no-unused-vars */
import { AppRegistry } from 'react-native';
import App from './app';
export default function ZeroProj() {
return <App />;
}
AppRegistry.registe... |
src/components/ui/Spacer.js | KennethMa/Readhub-Client | import React from 'react';
import PropTypes from 'prop-types';
import { View } from 'react-native';
/* Component ==================================================================== */
const Spacer = ({ size }) => (
<View
style={{
left: 0,
right: 0,
height: 1,
marginTop: size - 1,
}}
... |
packages/@vega/communicator-system/src/components/views/Pointer.js | VegaPublish/vega-studio | // @flow
import React from 'react'
import {IntentLink} from 'part:@vega/core/router'
import styles from './styles/Pointer.css'
type Props = {
document: {
_id: string,
_type: string
},
node: {
path: Array<string>
}
}
export default function Pointer(props: Props) {
const {document, node} = props
... |
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestParameters.js | paweljedrzejczyk/create-react-app | /**
* 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.
*/
import Rea... |
src/svg-icons/action/perm-device-information.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermDeviceInformation = (props) => (
<SvgIcon {...props}>
<path d="M13 7h-2v2h2V7zm0 4h-2v6h2v-6zm4-9.99L7 1c-1.1 0-2 .9-2 2v18c0 1.1.9 2 2 2h10c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM17 19H7V5h10v14z"/>
... |
src/js/Components/Common/Pane.js | mattgordils/DropSplash | import React, { Component } from 'react';
import 'sass/components/common/pane';
import 'sass/setup/icons';
import ReactCSSTransitionGroup from 'react-addons-css-transition-group';
import InlineSVG from 'svg-inline-react/lib';
import BackArrow from 'assets/icons/arrow-2-back';
import CloseX from 'assets/icons/close-x';... |
examples/with-relay-modern/lib/withData.js | callumlocke/next.js | import React from 'react'
import initEnvironment from './createRelayEnvironment'
import { fetchQuery } from 'react-relay'
import RelayProvider from './RelayProvider'
export default (ComposedComponent, options = {}) => {
return class WithData extends React.Component {
static displayName = `WithData(${ComposedComp... |
src/js/pages/Layout/Layout.js | Dwardmr/Hearthpedia | import React from 'react';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import {
lightGreen500, lightGreen700, grey400,
deepOrange500, grey100 , grey500,
} from 'material-ui/styles/colors';
import Footer from '../../components/Footer/... |
src/containers/Clear/Clear.js | sadafk831/React-Native-Simple-Calculator | import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import store from '../../redux/store';
import { resetValue } from '../../redux/modules/calculator';
import NormalButton from '../../components/NormalButton/NormalButton';
export default class Clear ... |
client/node_modules/uu5g03/dist-node/common/tools.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import ReactDOM from 'react-dom';
import Environment from '../environment/environment.js';
import $ from 'jquery'
export const Tools = {};
Tools.events = {
lsi: 'UU5_Common_LsiMixin_lsiEvent',
highlight: 'UU5_Bricks_TextCorrector_highlightEvent',
dateTime: 'UU5_Bricks_DateTime_event',... |
src/components/topic/words/WordSimilarWordsContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { fetchTopicSimilarWords } from '../../../actions/topicActions';
import withFilteredAsyncData from '../FilteredAsyncDataContainer';
import WordSimilarWords from './WordSimilarWords';
const WordSimilarWordsConta... |
frontend/src/containers/AttackItem.js | dimriou/rupture | import React from 'react';
import { Link } from 'react-router';
import DeleteNotification from './DeleteNotification';
import axios from 'axios';
import GreenPC from '../img/green_pc.png'
import PlayPC from '../img/yellow_play_pc.png'
import PausePC from '../img/yellow_pause_pc.png'
export default class AttackItem ex... |
app/frontend/components/IndexPage.js | sainthkh/koreancademy | 'use strict';
import React from 'react';
export default class IndexPage extends React.Component {
render() {
return (
<div className="home">
IndexPage
</div>
);
}
}
|
browser/react/components/Room.js | TranscendVR/transcend | import React from 'react';
export default (props) => (
<a-entity>
<a-entity light="type: ambient; color: #ffffe0" position="0 0 0"></a-entity>
<a-entity geometry={`primitive: plane; width:${props.floorWidth}; height:${props.floorHeight}`}
rotation="-90 0 0"
material={`color:${pro... |
client/src/app/routes/forms/containers/FormLayouts.js | zraees/sms-project | import React from 'react'
import {Stats, BigBreadcrumbs, WidgetGrid, JarvisWidget} from '../../../components'
import CheckoutForm from '../components/layouts/CheckoutForm'
import OrderForm from '../components/layouts/OrderForm'
import ReviewForm from '../components/layouts/ReviewForm'
import RegistrationForm from '.... |
electron/app/routes.js | structuresound/tmake | // @flow
import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default (
<Route path="/" component={App}>
<IndexRoute component={HomePage} />
<R... |
modules/react-router-2.5.2/examples/auth-with-shared-root/app.js | nanyou-environment/enBackEnd | import React from 'react'
import { render } from 'react-dom'
import { browserHistory, Router } from 'react-router'
import routes from './config/routes'
render(<Router history={browserHistory} routes={routes}/>, document.getElementById('example'))
|
src/components/BookImage.js | claclacla/_Udacity_-Organize-your-bookshelves-using-ReactJS | import React from 'react';
const BookImage = function (props) {
var { imageLinks } = props;
var style = { width: 128, height: 193 };
if(imageLinks && imageLinks.thumbnail) {
style.backgroundImage = 'url(' + imageLinks.thumbnail + ')';
}
return (
<div className="book-cover" style={style}></div>
);... |
src/parser/shaman/restoration/modules/talents/Wellspring.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import SpellLink from 'common/SpellLink';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import { formatPercentage, formatDuration, formatNth } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticListBoxItem from 'interface/othe... |
stories/EmbeddedListFormDemo.js | de44/kb-ui | import React from 'react';
import PropTypes from 'prop-types';
import kb from '../src/kb-ui';
import { withState, compose } from 'recompose';
import FormDemo from './FormDemo';
const form = kb.form().fields([
kb.field('id').readOnly(true).defaultValue('asdf-1234-qwerty-567890'),
kb.field('name'),
kb.field('emai... |
examples/pages/counter-fluxible/client.js | jeffhandley/react-composition | import React from 'react';
import ReactDOM from 'react-dom';
import Counter from './containers/Counter';
import counterStore from './counterStore';
import Fluxible from 'fluxible';
import { getContainerState } from 'react-composite-pages/client';
const state = getContainerState('counter-fluxible');
const app = new Fl... |
src/App.js | jonathanconway/emojipedia2 | import React, { Component } from 'react';
import Header from './Header';
import Footer from './Footer';
import SearchBox from './SearchBox';
import SearchResults from './SearchResults';
import emojis from './emojis';
import './App.css';
class App extends Component {
constructor(props) {
super(props);
this.... |
springboot/GReact/src/main/resources/static/app/components/graphs/inline/EasyPieChartContainer.js | ezsimple/java | import React from 'react'
import ReactDOM from 'react-dom'
import 'script-loader!smartadmin-plugins/bower_components/jquery.easy-pie-chart/dist/jquery.easypiechart.min.js';
let EasyPieChartContainer = React.createClass({
componentDidMount: function(){
$('.easy-pie-chart', $(ReactDOM.findDOMNode(this))).e... |
app/addons/documents/rev-browser/components/revisiondiffarea.js | apache/couchdb-fauxton | // 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 writing, software
// distributed un... |
react/YoutubeSearchApp/test/test_helper.js | jacobuid/learning | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
examples/multiple-apps/app-bar/components/Root.js | Travix-International/frint | import React from 'react';
import { observe, streamProps } from 'frint-react';
import {
changeColor
} from '../actions/color';
import {
GREEN_COLOR,
RED_COLOR
} from '../constants';
class Root extends React.Component {
render() {
const codeStyle = {
color: this.props.color,
backgroundColor: th... |
src/components/Diabetes/DiabetesA.js | lethecoa/work-order-pc | import React from 'react';
import {Form, Radio, InputNumber, Row, Col} from 'antd';
import styles from './DiabetesA.less';
import {config} from '../../common'
import {MedicationInfo} from '../../components';
const FormItem = Form.Item;
const RadioGroup = Radio.Group;
const formItemLayout = {
labelCol: {
xs: {sp... |
wegas-app/src/main/node/wegas-react-form/src/Views/Interacting/eventselect.js | Heigvd/Wegas | import PropTypes from 'prop-types';
import React from 'react';
import Select from '../select';
import { getY } from '../../index';
const choices = currentValue => () => new Promise(resolve => {
const gmId = getY().Wegas.Facade.GameModel.cache.get('currentGameModelId');
getY().Wegas.Facade.GameModel.cache.sendR... |
src/pages/bands.js | KnightHawk3/BARBlog | import React from 'react'
import Link from 'gatsby-link'
const BandsPage = () => (
<div>
<h1>Bands</h1>
<ul>
<li>None yet :'(</li>
</ul>
</div>
)
export default BandsPage
|
examples/counter-react-redux/containers/CounterApp.js | jas-chen/rx-redux | import React, { Component } from 'react';
import { bindActionCreators } from 'rx-redux';
import { connect } from 'react-redux';
import Counter from '../components/Counter';
import * as CounterActions from '../actions/CounterActions';
@connect(state => ({
counter: state.counter
}))
export class CounterApp extends Com... |
packages/ringcentral-widgets/components/IconLine/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import Line from '../Line';
import IconField from '../IconField';
export default function IconLine(props) {
return (
<Line
className={props.className}
onClick={props.onClick}
noBorder={props.noBorder}>
<IconField
class... |
src/svg-icons/av/playlist-play.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvPlaylistPlay = (props) => (
<SvgIcon {...props}>
<path d="M19 9H2v2h17V9zm0-4H2v2h17V5zM2 15h13v-2H2v2zm15-2v6l5-3-5-3z"/>
</SvgIcon>
);
AvPlaylistPlay = pure(AvPlaylistPlay);
AvPlaylistPlay.displayName = '... |
RN/FlexBoxDemo/index.android.js | puyanLiu/LPYFramework | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class FlexBoxDemo extends Component {
render() {
return (
<View style={styles.container}>
<T... |
src/components/common/svg-icons/social/domain.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialDomain = (props) => (
<SvgIcon {...props}>
<path d="M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v... |
WebDev/BE/JS/electron/chatApp/src/Pages/Users/Users.js | ParkDyel/practice | import * as _ from 'lodash';
import React, { Component } from 'react';
import firebase from 'firebase';
import UserListComponent from '../../Components/UserList/UserList';
const firebaseConfig = {
apiKey: 'AIzaSyAguZYIeMIg-_SjNXuO3uDXFcD6IurqdAs',
databaseURL:'https://chatappapplication.firebaseio.com/',
};
expor... |
dashboard/app/components/MfaDeviceSelect/MfaDeviceSelect.js | tlisonbee/cerberus-management-service | import React from 'react'
import { Component } from 'react'
import Select from 'react-select'
export default class MfaDeviceSelect extends Component {
componentDidMount() {
var mfaDevices = this.props.mfaDevices;
if (!this.props.value && mfaDevices.length > 0) {
// choose the first val... |
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.ios.js | lprhodes/react-native | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
} from 'react-native';
export default class WelcomeText extends Component {
render() {
return (
<View style={styles.container}>
<Text style={styles.welcome}>
Welcome to React Native!
</... |
tests/helpers.js | sinnerschrader/babel-plugin-jsx-to-handlebars | import * as path from 'path';
import * as fs from 'fs';
import * as babel from 'babel';
import Handlebars from 'handlebars';
import React from 'react';
export function handlebars(file, data = {}) {
var dir = path.dirname(file);
let source = fs.readFileSync(file);
return compileTemplate(customRequire(dir, babelTr... |
src/containers/iceboxToolbar.js | ColdForge/icebox | import React, { Component } from 'react';
import { connect } from 'react-redux';
import * as actions from '../actions';
import { SORT_EXPIRATION, SORT_FOODGROUP, SORT_FOODNAME, ASCENDING, DESCENDING } from '../constants/sorts';
import { Toolbar, ToolbarGroup, ToolbarSeparator } from 'material-ui/Toolbar';
import ICONS ... |
app/javascript/mastodon/components/media_gallery.js | rutan/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { is } from 'immutable';
import IconButton from './icon_button';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { isIOS } from '../is_mobile';
import class... |
src/templates/blog-post.js | meerasahib/meerablog1 | import React from 'react';
import Helmet from 'react-helmet';
import styled from 'styled-components';
import Post from '../components/Post';
import Tags from '../components/Tags';
import About from '../components/About';
import { fadeInBottom } from '../css/animations';
import 'prismjs/themes/prism-okaidia.css';
co... |
src/components/Weui/tab/tab_body.js | ynu/res-track-wxe | /**
* Created by n7best
*/
import React from 'react';
import classNames from 'classnames';
export default class TabBody extends React.Component {
render() {
const {children, className, ...others} = this.props;
const cls = classNames({
weui_tab_bd: true
}, className);
... |
src/components.js | mvlach/tcomb-form | 'use strict';
import React from 'react';
import t from 'tcomb-validation';
import { compile } from 'uvdom/react';
import {
humanize,
merge,
getTypeInfo,
getOptionsOfEnum,
move,
UIDGenerator
} from './util';
import classnames from 'classnames';
const Nil = t.Nil;
const assert = t.assert;
const SOURCE = 'tc... |
index.ios.js | jimju/BNDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import app from './component/app';
export default class BNDemo extends Component {
render() {
return (
... |
src/components/Auth/ChangePassword/ChangePassword.react.js | isuruAb/chat.susi.ai | import React, { Component } from 'react';
import Paper from 'material-ui/Paper';
import RaisedButton from 'material-ui/RaisedButton';
import $ from 'jquery';
import './ChangePassword.css';
import PasswordField from 'material-ui-password-field';
import Dialog from 'material-ui/Dialog';
import PropTypes from 'prop-types'... |
src/App.js | Ken-2scientists/react-docker-starter | import React from 'react';
import ReactDOM from 'react-dom';
const App = (props) => (<h1>Hello, World!</h1>)
ReactDOM.render(<App />, document.getElementById('app'))
|
packages/material-ui-icons/src/FormatIndentIncrease.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let FormatIndentIncrease = props =>
<SvgIcon {...props}>
<path d="M3 21h18v-2H3v2zM3 8v8l4-4-4-4zm8 9h10v-2H11v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z" />
</SvgIcon>;
FormatIndentIncrease = pure(Fo... |
local_modules/react-component-redux/components/Container.js | pashaigood/react-component-redux | import React from 'react';
import * as functions from '../helpers/functions';
/**
* Root "smart" container for RCR app.
* @class
* @memberOf module:react-component-redux
* @extends React.Component
*/
class Container extends React.Component {
/**
* Construct new RCR component
*
* @constructor
* @pa... |
node_modules/_antd@2.13.4@antd/es/radio/radio.js | ligangwolai/blog | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
actor-apps/app-web/src/app/components/sidebar/RecentSectionItem.react.js | xiaotaijun/actor-platform | import React from 'react';
import classNames from 'classnames';
import DialogActionCreators from 'actions/DialogActionCreators';
import DialogStore from 'stores/DialogStore';
import AvatarItem from 'components/common/AvatarItem.react';
class RecentSectionItem extends React.Component {
static propTypes = {
di... |
react/pages/signin.js | Seanskiver/b2b_application | import React from 'react';
//import { Table } from 'react-bootstrap';
import {Form, FormControl, FormGroup, ControlLabel, Button, Table, Carousel, Jumbotron, Panel, Col} from 'react-bootstrap';
import { HashRouter as Router, Route, Link, Redirect } from 'react-router-dom';
class signin extends React.Component {
... |
frontend/navigation/SidebarButton.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {Button} from 'react-bootstrap';
const SidebarButton = ({children, ...rest}) => <Button bsSize="large" bsStyle="primary" {...rest}>{children}</Button>;
SidebarButton.propTypes = {
children: PropTypes.node.isRequired,
};
export default SidebarB... |
src/svg-icons/av/mic.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvMic = (props) => (
<SvgIcon {...props}>
<path d="M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-... |
src/components/pages/TransactionDetails.js | AlanVerbner/lightweight-eth-explorer | import React, { Component } from 'react';
import promisify from 'es6-promisify';
import TransactionInfoTable from '../ethereum/TransactionInfoTable';
import EthereumEntity from '../layout/EthereumEntity';
class TransactionDetails extends Component {
constructor(props) {
super(props);
this.state = {}
}
... |
src/components/Setting.js | TrueWill/embracer | import React from 'react';
import PropTypes from 'prop-types';
import { mapKeysToArray } from '../utils/mapUtils';
import { settings } from '../constants/settingOptions';
import Section from './Section';
export default function Setting({ setting, updateSetting }) {
const handleSettingChange = e => {
updateSettin... |
src/PageItem.js | omerts/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import SafeAnchor from './SafeAnchor';
const PageItem = React.createClass({
propTypes: {
href: React.PropTypes.string,
target: React.PropTypes.string,
title: React.PropTypes.string,
disabled: React.PropTypes.bool,
previous: React.Pr... |
app/javascript/mastodon/features/ui/components/column_loading.js | foozmeat/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import Column from '../../../components/column';
import ColumnHeader from '../../../components/column_header';
import ImmutablePureComponent from 'react-immutable-pure-component';
export default class ColumnLoading extends ImmutablePureComponent {
stat... |
react/features/filmStrip/components/FilmStrip.js | bickelj/jitsi-meet | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Container } from '../../base/react';
import Thumbnail from './Thumbnail';
import { styles } from './_';
/**
* React component for film strip.
*
* @extends Component
*/
class FilmStrip extends Component {
/**
* Impl... |
node_modules/antd/es/modal/confirm.js | ZSMingNB/react-news | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import ReactDOM from 'react-dom';
import classNames from 'classnames';
import Icon from '../icon';
import Dialog from './Modal';
import ActionButton from './ActionButton';... |
packages/react-jsx-highstock/src/components/HighchartsStockChart/HighchartsStockChart.js | AlexMayants/react-jsx-highcharts | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import Highcharts from 'highstock-release';
import BaseChart from 'react-jsx-highcharts/src/components/BaseChart';
class HighchartsStockChart extends Component {
static childContextTypes = {
chartType: PropTypes.string.isRequired
};
... |
app/containers/Sesizari/admin/index.js | code4romania/monitorizare-vot-votanti-client | import React from 'react';
import { createStructuredSelector } from 'reselect';
import Helmet from 'react-helmet';
import {
approveIncidentAction,
filterIncidentsAction,
getIncidentsByStatusAction,
rejectIncidentAction,
} from '../actions';
import {
getApprovedIncidents,
getPendingIncidents,
getRejectedIn... |
src/hoc.js | qur2/react-freezer-js | import React from 'react'
import Freezer from 'freezer-js'
import { morph, isFridge } from './state'
function getComponentName (Component) {
return Component.name ||
Component.displayName ||
'Component'
}
export function cool (Component, fridge) {
if (!fridge instanceof Freezer) {
throw new Error(`Tha... |
actor-apps/app-web/src/app/components/Login.react.js | wangkang0627/actor-platform | import _ from 'lodash';
import React from 'react';
import classNames from 'classnames';
import { Styles, RaisedButton, TextField } from 'material-ui';
import { AuthSteps } from 'constants/ActorAppConstants';
import Banner from 'components/common/Banner.react';
import LoginActionCreators from 'actions/LoginActionCre... |
chrome/extension/todoapp.js | Guadalsurfers/chrome-extension-bullshitmeter | import React from 'react';
import ReactDOM from 'react-dom';
import Root from '../../app/containers/Root';
chrome.storage.local.get('state', (obj) => {
const { state } = obj;
const initialState = JSON.parse(state || '{}');
const createStore = require('../../app/store/configureStore');
ReactDOM.render(
<R... |
docs/src/examples/addons/TextArea/index.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import Types from './Types'
import Usage from './Usage'
const TextAreaExamples = () => (
<div>
<Types />
<Usage />
</div>
)
export default TextAreaExamples
|
src/svg-icons/image/hdr-weak.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrWeak = (props) => (
<SvgIcon {...props}>
<path d="M5 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm12-2c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4... |
src/components/toggle/ThemeToggle.js | thibmaek/thibmaek.github.io | import React from 'react';
import { func, bool, string } from 'prop-types';
import ReactToggle from 'react-toggle';
import "react-toggle/style.css";
import styles from './ThemeToggle.module.css';
const Toggle = ({ defaultChecked, onToggle, value }) => (
<div className={styles.container}>
<span>{value} Mode</sp... |
app/javascript/mastodon/features/ui/components/modal_root.js | tootcafe/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { getScrollbarWidth } from 'mastodon/utils/scrollbar';
import Base from 'mastodon/components/modal_root';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './m... |
lib/layout/Paginator.js | rodrigocipriani/br-react-utils | var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des... |
webapp/src/component/header.js | hfcc/rflove | import './../css/unify/css/headers/header-v4-centered.css';
import React from 'react';
import { Link } from 'react-router';
import userAuthentication from '../helper/user_authentication.js';
export default class Header extends React.Component {
render() {
return (
<div className="header-v4">
... |
app/containers/ViewSubreddits/index.js | jasoncyu/always-be-bulking | /*
*
* ViewSubreddits
*
*/
import React from 'react';
import { connect } from 'react-redux';
import selectViewSubreddits from './selectors';
import styles from './styles.css';
export class ViewSubreddits extends React.Component { // eslint-disable-line react/prefer-stateless-function
render() {
return (
... |
plot/src/routes.js | tangr1/dd | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/HomePage';
import AboutPage from './components/AboutPage';
import NotFoundPage from './components/NotFoundPage';
import ChartPage from './containers/ChartPage';
import Tab... |
example/src/index.js | spart3b/redux-form-material-ui | import React from 'react'
import ReactDOM from 'react-dom'
import injectTapEventPlugin from 'react-tap-event-plugin'
import { Provider } from 'react-redux'
import { createStore, combineReducers } from 'redux'
import { reducer as reduxFormReducer } from 'redux-form'
import getMuiTheme from 'material-ui/styles/getMuiThem... |
src/Parser/Druid/Feral/Modules/Bleeds/RakeUptime.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Enemies from 'Parser/Core/Modules/Enemies';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import StatisticBox, { ST... |
app/viewControllers/Auth/UserRegistrationPage.js | Evyy/cffs-ui | 'use strict';
import React from 'react';
import {Link} from 'react-router';
import classnames from "classnames";
import AuthPage from './AuthPage';
import UserRegistrationForm from '../../forms/UserRegistrationForm';
class UserRegistrationPage extends React.Component {
constructor (props) {
super(props);... |
src/components/Submit.js | romagny13/react-form-validation | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { isFunction, isUndefined, hasClassName, addClassName, removeClassName } from '../common/util';
import { omit } from '../helpers/util';
/** Creates an input type submit disabled if the form has errors. */
class Submit extends Compon... |
src/components/app.js | RedZulu/ReduxArt | import React, { Component } from 'react';
import Audio from './audio';
import Background from './background';
import SpecialCats from './special';
import Flowers from './flower';
import BandText from './bandText';
import Eye from './eye';
export default class App extends Component {
componentDidMount(){
let spa... |
App/Tabs.js | adnanhemani/RideApp | 'use strict';
import React, { Component } from 'react';
import {
StyleSheet,
Text,
View,
Navigator,
ScrollView,
} from 'react-native'
import RideApplLogin from './App';
import RidesPage from "./RidesPage";
import Tabbar, { Tab, RawContent, IconWithBar, glypyMapMaker, Rawbar } from 'react-native-tabbar';
impo... |
src/components/LuckCard.js | kisnows/luckydraw | import React from 'react'
import Dialog from 'material-ui/Dialog'
import FlatButton from 'material-ui/FlatButton'
import PropTypes from 'prop-types'
import { Card, CardHeader, CardTitle, CardText } from 'material-ui/Card'
import Avatar from 'react-avatar'
export default class LuckCard extends React.Component {
rende... |
example/examples/AnimatedMarkers.js | Gogowego/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width / screen.height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
frontend/src/components/dialog/sysadmin-dialog/sysadmin-add-institution-member-dialog.js | miurahr/seahub | import React from 'react';
import PropTypes from 'prop-types';
import { Button, Modal, ModalHeader, ModalBody, ModalFooter } from 'reactstrap';
import { gettext } from '../../../utils/constants';
import UserSelect from '../../user-select.js';
const propTypes = {
toggle: PropTypes.func.isRequired,
addUser: PropType... |
chapter-09/weather_with_promise_middleware/src/App.js | mocheng/react-and-redux | import React, { Component } from 'react';
import {view as CitySelector} from './city_selector/';
import {view as Weather} from './weather/';
class App extends Component {
render() {
return (
<div>
<CitySelector />
<Weather />
</div>
);
}
}
export default App;
|
client/dashboard.js | chengethem/fangxia_WIT | import React from 'react';
import ReactDOM from 'react-dom';
import routes from '../apps/dashboard/routes/index';
import { Provider } from 'react-redux';
import configureStore from '../apps/dashboard/store/configureStore';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import injectTapEventPlugin f... |
ajax/libs/react-instantsearch/5.0.1/Dom.js | joeyparrish/cdnjs | /*! ReactInstantSearch 5.0.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :
... |
src/svg-icons/device/nfc.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceNfc = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 18H4V4h16v16zM18 6h-5c-1.1 0-2 .9-2 2v2.28c-.6.35-1 .98-1 1.72 0 1.1.9 2 2 2... |
src/components/Containers.react.js | cgvarela/kitematic | import $ from 'jquery';
import _ from 'underscore';
import React from 'react';
import Router from 'react-router';
import containerStore from '../stores/ContainerStore';
import ContainerList from './ContainerList.react';
import Header from './Header.react';
import metrics from '../utils/MetricsUtil';
import shell from '... |
examples/03 Nesting/Drop Targets/index.js | craigklem/react-dnd | import React from 'react';
import Container from './Container';
export default class NestingDropTargets {
render() {
return (
<div>
<p>
<b><a href='https://github.com/gaearon/react-dnd/tree/master/examples/03%20Nesting/Drop%20Targets'>Browse the Source</a></b>
</p>
<p>
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.