path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
internals/templates/app.js
jesus9ias/solar_system
/** * 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...
src/backup/components/List.js
zzzzail/order-system-front-end-demo
import React from 'react'; import {connect} from 'react-redux'; const List = ({name, text}) => { return ( <div className="list"> <div>{name}</div> <div>{text}</div> </div> ) } export default connect()(List)
demo/demo.js
spudly/react-deck
import Deck from '../src/Deck'; import cards from './cards.json'; import Card from 'react-card'; import React from 'react'; import ReactDOM from 'react-dom'; import classnames from 'classnames'; class DeckDemo extends React.Component { constructor (props) { super(props); this.state = { activeIndex: 0,...
tp-3/juan-pablo-gonzalez/src/shared/components/dataModifier/DataModifier.js
jpgonzalezquinteros/sovos-reactivo-2017
import React from 'react'; import PropTypes from 'prop-types'; import TinMask from './components/tinMask/TinMask'; import TinType from './components/tinType/TinType'; const type = { TINMASK: TinMask, TINTYPE: TinType }; const DataModifier = props => ( React.createElement(type[props.modifierType.toUpperCase()], ...
spec/javascripts/jsx/speed_grader/AssessmentAuditTray/components/AuditTrail/DateEventGroupSpec.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
src/components/Navbar.js
YannickBochatay/JSYG-starterkit
import React from 'react' import { Link } from 'react-router' import { FormattedMessage } from "react-intl" import LangChoice from "../containers/LangChoice" class Item extends React.Component { render() { let style = { li:{ display:"inline-block", padding:"0 10px" } } ret...
examples/basic/src/components/PushButton/PushButton.js
bluetidepro/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import './PushButton.css'; /** * An example-less button with custom display name. * @visibleName Push Button 🎉 */ export default function PushButton({ color, size, children }) { const styles = { color, fontSize: PushButton.sizes[size], }; retu...
wrappers/md.js
mongus/mongus.com
import React from 'react' import 'css/markdown-styles.css' import Helmet from "react-helmet" import { config } from 'config' module.exports = React.createClass({ propTypes () { return { router: React.PropTypes.object, } }, render () { const post = this.props.route.page.data return ( <...
client/src/components/map-container.js
josephstein/drone-flights
import React from 'react' import _ from 'lodash' import { connect } from 'react-redux' import { fetchFlights } from '../actions' import Map from './map' class MapContainer extends React.Component { componentDidMount() { this.props.fetchFlights() } render() { return ( <Map flights={this.props.fligh...
src/components/Transformer.js
lxgreen/flickr-viewr
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class Transformer extends Component { constructor(props) { super(props); this.state = { position: this.props.defaultPosition, rotation: this.props.defaultRotation, initialAngle: 0, ...
react-events-page/src/index.js
picatic/picatic-examples
import React from 'react' import ReactDOM from 'react-dom' import { BrowserRouter as Router, Route } from 'react-router-dom' import Home from './Home' import App from './App' ReactDOM.render( <Router> <div> <Route exact path="/" component={Home} /> <Route path="/:slug" component={App} /> </div> ...
examples/passing-props-to-children/app.js
rdjpalmer/react-router
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router, Route, Link } from 'react-router' import './app.css' const App = React.createClass({ contextTypes: { router: React.PropTypes.object.isRequired }, getInitialState() { return { tacos: [ { name: 'duc...
client/src/index.js
serban-petrescu/candidate-management
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import ReduxPromise from 'redux-promise'; import App from './components/App'; import reducers from './reducers'; import $ from 'jquery'; import './less/main.less' windo...
components/Search.js
sturquier/hyne
import React, { Component } from 'react'; import { View, TextInput, Button, TouchableOpacity } from 'react-native'; import { StackNavigator } from 'react-navigation'; import Result from './Result'; class Search extends Component { constructor(props) { super(props); this.state = { city: 'Paris' } } setCit...
app/renderer/views/DisplayMovies/MovieDetail/Title.js
blenoski/movie-night
import React from 'react' import styled from 'styled-components' export default ({ title }) => { return <TitleReadOnly>{title}</TitleReadOnly> } const TitleReadOnly = styled.h1` color: rgba(255, 255, 255, 1); `
src/modules/connect/connectMain/ConnectView.js
Florenz23/sangoo_04
import React, { Component } from 'react'; import { Container, Header, Title, Content, Button, Icon, List, ListItem, Text, Thumbnail, Left, Right, Body } from 'native-base'; import { LiestView } from 'realm/react-native' import styles from '../styles/styles'; import realm from "../db_ini" import { findInDb, findInDb...
internals/templates/containers/App/index.js
emise/hoosit
/** * * 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...
src/star/ui/acceptBidbutton/AcceptBidButton.js
flysonic10/initial-celestial-offering
import React from 'react' class AcceptBidButton extends React.Component { render() { let starIndex = this.props.starIndex; let minAmount = this.props.minAmount; return( <button onClick={(event) => this.props.onAcceptBid(event, starIndex, minAmount)}>Accept Bid</button> ) } } export default ...
packages/components/src/Layout/TwoColumns/TwoColumns.component.js
Talend/ui
import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import omit from 'lodash/omit'; import TabBar from '../../TabBar'; import WithDrawer from '../../WithDrawer'; import Inject from '../../Inject'; import theme from './TwoColumns.scss'; /** * @param {object} props react...
web/src/index.js
undemaduc/undemaduc
/* eslint-disable import/default */ import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import Root from './components/Root'; import configureStore from './store/configureStore'; require('./favicon.ico'); // Tel...
src/layouts/Navbar/components/Navbar.js
dziksu/songs-manager
import React, { Component } from 'react'; import { Link } from 'react-router'; import { connect } from 'react-redux'; import { firebase, helpers, firebaseConnect } from 'react-redux-firebase'; import "./Navbar.scss"; const { isLoaded, isEmpty, pathToJS, dataToJS } = helpers; class NavbarLayout extends Component{ con...
app/components/active_sensors/active_sensors.js
friend0/react_sensor_app
import React from 'react'; import SearchBar from '../common/SearchBar'; import Robot from './Robot'; import List from '../common/List'; const axios = require('../../../node_modules/axios'); export default class Live extends React.Component { constructor() { super(); this.getRobots = this.getRobots...
chrome/extension/devpanel/index.js
crysislinux/chrome-react-perf
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import Root from '../../../app/containers/Root'; import configureStore from '../../../app/store/configureStore'; const store = configureStore(); render( <Root store={store} />, document.getElementById('root') );
src/encoded/static/components/item-pages/UserView.js
4dn-dcic/fourfront
/** @preventMunge */ /* ^ see http://stackoverflow.com/questions/30110437/leading-underscore-transpiled-wrong-with-es6-classes */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import _ from 'underscore'; import Modal from 'react-bootstrap/esm/Modal'; import FormControl from 'react-boots...
app/javascript/mastodon/features/report/components/status_check_box.js
yukimochi/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; import noop from 'lodash/noop'; import StatusContent from '../../../components/status_content'; import { MediaGallery, Video } from '../../ui/util/async-component...
src/datepicker/Month.js
prometheusresearch/react-datetimepicker
/** * @copyright 2016-present Prometheus Research, LLC */ import noop from 'lodash/noop'; import React from 'react'; import moment from 'moment'; import {Button} from '../ui'; const MONTHS_SHORT = moment.monthsShort(); export default class Month extends React.Component { static propTypes = { month: React.P...
stories/color-picker.js
CommonActionForum/liqen-face
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import ColorPicker from '../client/components/annotators/color-picker' storiesOf('ColorPicker', module) .add('8 colors', () => { const list = [ { code: '#FFAB40', title:...
src/component/knight/KnightPage.js
NJU-itxia/front-end
import React, { Component } from 'react'; import { Navbar, Nav, NavItem, Glyphicon } from "react-bootstrap"; import { LinkContainer, IndexLinkContainer } from "react-router-bootstrap"; const style = { "marginBottom": 0, }; export default class App extends Component { state = { adminLoggedIn: true }; ren...
src/utils/childUtils.js
lawrence-yu/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export function createChildFragment(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; // Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments[k...
app/javascript/mastodon/components/avatar_composite.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarComposite extends React.PureComponent { static propTypes = { accounts: ImmutablePropTypes.list.isRequired, ani...
app/javascript/mastodon/components/icon_button.js
robotstart/mastodon
import React from 'react'; import { Motion, spring } from 'react-motion'; import PropTypes from 'prop-types'; class IconButton extends React.PureComponent { constructor (props, context) { super(props, context); this.handleClick = this.handleClick.bind(this); } handleClick (e) { e.preventDefault(); ...
src/Root.js
deguchi/mastobone
/** * @flow */ import React, { Component } from 'react'; import { createStore, applyMiddleware, compose } from 'redux'; import { AsyncStorage } from 'react-native'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux'; import reducers from './reducers'; import App from './App'; var isDebuggingIn...
wp-content/themes/adaycurated/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
SarahJune/wp-adc
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'));
src/utils/createContextWrapper.js
Azerothian/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return function (contextTypes) { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; }...
src/app/components/Examples.js
arraqib/react-weather
import React from 'react'; export default class Examples extends React.Component { constructor() { super(); } render() { return ( <div> <h4>Examples Component</h4> </div> ); } }
frontend/routes.js
anabiozz/blog
import React from 'react'; import IndexRoute from 'react-router/lib/IndexRoute'; // import IndexRedirect from 'react-router/lib/IndexRedirect'; import Route from 'react-router/lib/Route'; //Layouts import Layout from './containers/Layout'; //containers import Login from './containers/Login'; import LocalAuth from './co...
src/pages/404.js
scimusmn/app-template
import React from 'react'; import NoMatch from '@components/NoMatch'; function NotFoundPage() { return <NoMatch />; } export default NotFoundPage;
src/containers/Asians/BreaksCalculator/BreakingTeamPointsDistribution/index.js
westoncolemanl/tabbr-web
import React from 'react' import Card, { CardContent } from 'material-ui/Card' import SureBreakPoints from './SureBreakPoints' import BreakPointsTable from './BreakPointsTable' export default ({ result, numberOfBreakingTeams, numberOfRounds }) => { return ( <Card className={'overflow-x-scroll'} ...
src/containers/PetitionInfo.js
iris-dni/iris-frontend
import React from 'react'; import { connect } from 'react-redux'; import PetitionInfo from 'components/PetitionInfo'; import getPetitionInfo from 'selectors/petitionInfo'; const PetitionInfoContainer = (props) => ( <PetitionInfo {...props} /> ); const mapStateToProps = ({ petition }) => getPetitionInfo(petition); ...
src/Input.js
bbc/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', 'FormControls.S...
ditto/static/tidy/js/lib/state.js
Kvoti/ditto
// Wrap React.addons.update for common operations // // Use as follows // // <input onChange={state.set.bind(this, ['some', 'part', 'of', 'state'])} // // import React from 'react'; export const Arg = '__arg__'; export function set(...args) { let [path, e] = getChangePath(args); let value; if (!e.target) { ...
client/modules/App/components/DevTools.js
Amigos466/GITTER-REACT
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="ctrl-h" changePositionKey="ctrl-w" > <LogMonitor /> ...
imports/ui/dataTable/helpers.js
ctagroup/home-app
import '/imports/ui/dataTable/dataTableEditButton'; import '/imports/ui/dataTable/dataTableDeleteButton'; import '/imports/ui/dataTable/dataTableTextButton'; import '/imports/ui/dataTable/createButton'; import { fullName } from '/imports/api/utils'; import { formatDate } from '/imports/both/helpers'; import BlazeTempla...
app/components/Base.js
appbaseio-apps/gitxplore
import React, { Component } from 'react'; import { ReactiveBase, CategorySearch, ResultCard, MultiDropdownList, RangeSlider, SingleDropdownRange } from '@appbaseio/reactivesearch'; import './Base.styl'; class Base extends Component { constructor() { super(); this.state = { topics: [], showNav: false ...
src/button-content.js
anthonyjgrove/react-google-login
import React from 'react' const ButtonContent = ({ children, icon }) => ( <span style={{ paddingRight: 10, fontWeight: 500, paddingLeft: icon ? 0 : 10, paddingTop: 10, paddingBottom: 10 }}>{children}</span> ) export default ButtonContent
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Wallet/js/components/passwordprompt.js
patel344/Mr.Miner
import PropTypes from 'prop-types' import React from 'react' const PasswordPrompt = ({password, error, unlocking, actions}) => { const onPasswordChange = (e) => actions.handlePasswordChange(e.target.value) const onUnlockClick = () => actions.unlockWallet(password) if (unlocking) { return ( <span className="unl...
app/javascript/mastodon/components/status_content.js
esetomo/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { isRtl } from '../rtl'; import { FormattedMessage } from 'react-intl'; import Permalink from './permalink'; import classnames from 'classnames'; export default class StatusContent extends ...
src/items/components/show.js
rek/grammar-notes
import React from 'react' import {connect} from 'react-redux' import {v4} from 'node-uuid'; import { FormGroup, ControlLabel, FormControl, Button, ButtonToolbar } from 'react-bootstrap' import {ajax} from '../../utils' import Actions from '../actions' const Show = ({state, handleChange, handleEdit, handleSave}) ...
thinking-in-react/step-4.js
hackerrdave/nodeschool
import React from 'react'; export const ProductCategoryRow = React.createClass({ render() { return ( <tr> <th colSpan={2}>{this.props.category}</th> </tr> ); } }); export const ProductRow = React.createClass({ render() { const product = this.props.product; const style = { ...
frontend/src/repo-folder-trash.js
miurahr/seahub
import React from 'react'; import ReactDOM from 'react-dom'; import { navigate } from '@reach/router'; import moment from 'moment'; import { Utils } from './utils/utils'; import { gettext, siteRoot, mediaUrl, logoPath, logoWidth, logoHeight, siteTitle } from './utils/constants'; import { seafileAPI } from './utils/seaf...
app/scripts/CloseTrackMenu.js
hms-dbmi/4DN_matrix-viewer
import PropTypes from 'prop-types'; import React from 'react'; import ContextMenuItem from './ContextMenuItem'; import { getSeriesItems } from './SeriesListItems'; // Styles import '../styles/ContextMenu.module.scss'; const CloseTrackMenu = (props) => ( <div> {getSeriesItems(props.tracks, null, null, props.onC...
entry_types/scrolled/package/src/contentElements/inlineImage/InlineImage.js
tf/pageflow
import React from 'react'; import { Image, Figure, FitViewport, useContentElementLifecycle, useFile, usePortraitOrientation } from 'pageflow-scrolled/frontend'; export function InlineImage({configuration}) { const imageFile = useFile({ collectionName: 'imageFiles', permaId: configuration.id }); ...
src/components/antd/calendar/index.js
hyd378008136/olymComponents
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import FullCalendar from 'rc-calendar/lib/FullCalendar'; import { PREFIX_CLS } from './Constants'; import Header from './Header'; import { getComponentLocale, getLocaleCode } from '../_util/getLocale'; function noop() { return n...
frontend-web-v2/src/components/Header.js
ClubCedille/jardiniot
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import HamburgerMenu from 'react-hamburger-menu'; import Sidebar from 'react-sidebar'; import SidebarContent from './Sidebar'; class Header extends Component { constructor(props) { super(props); this.state = { isMenuOpen: false...
client/components/Form/FormGroup.js
alex-ta/Chat-Server
import React from 'react'; import classnames from 'classnames'; import PropTypes from 'prop-types'; function setType(key) { let type = 'text'; if (key.indexOf('email') > -1) { type = 'email'; } if (key.indexOf('password') > -1) { type = 'password'; } return type; } const FormGroup = ({ name, v...
js/components/signup/index.js
phamngoclinh/PetOnline_vs2
import React, { Component } from 'react'; import { Image, Alert, AsyncStorage } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Content, Text, Button, View, Icon, InputGroup, Input, List, ListItem, CheckBox, Spinner } from...
static/src/components/islands/IslandTrees.js
Mathboy19/airhornbot
// @flow // jscs:disable maximumLineLength import React from 'react'; type Props = { paused: boolean }; export default ({paused}: Props): React.Element => ( <svg className={`island trees ${paused ? 'paused' : ''}`} xmlns="http://www.w3.org/2000/svg" width="259px" height="276px" viewBox="0 0 259 276"> <g fill...
app/containers/Overview.js
7kfpun/AudienceNetworkReactNative
import React, { Component } from 'react'; import { BackHandler, FlatList, Platform, RefreshControl, ScrollView, StyleSheet, Text, TouchableOpacity, View, } from 'react-native'; import moment from 'moment-timezone'; import { AccessToken } from 'react-native-fbsdk'; import { bindActionCreators } from ...
src/components/panes.js
jorgerobles/LaserWeb4
/** * Panes module. * - Handle panes. * @module */ // React/Redux import React from 'react' import { connect } from 'react-redux' /** * Pane component. * * @extends module:react~React~Component * @param {Object} props Component properties. */ class Pane extends React.Component { /** * @type {Object}...
webpack-test2/src/components/Main.js
cooliean/react-study
require('normalize.css/normalize.css'); require('styles/App.css'); import React from 'react'; let yeomanImage = require('../images/yeoman.png'); class AppComponent extends React.Component { render() { return ( <div className="index"> <img src={yeomanImage} alt="Yeoman Generator" /> <div c...
static/src/containers/Dashboard.js
detailyang/cas-server
/** * @Author: BingWu Yang <detailyang> * @Date: 2016-04-20T23:43:35+08:00 * @Email: detailyang@gmail.com * @Last modified by: detailyang * @Last modified time: 2016-04-21T00:34:05+08:00 * @License: The MIT License (MIT) */ import React from 'react'; import { Nav, Header } from '../components'; import { connect ...
webpack/components/TemplateSyncResult/components/SyncedTemplate/InfoItem.js
theforeman/foreman_templates
import React from 'react'; import { ListView, OverlayTrigger, Tooltip } from 'patternfly-react'; import PropTypes from 'prop-types'; const InfoItem = ({ itemId, children, tooltipText }) => { const overlay = ( <OverlayTrigger overlay={tooltipText ? <Tooltip id={itemId}>{tooltipText}</Tooltip> : ''} pl...
assets/javascripts/kitten/components/information/tag/stories.js
KissKissBankBank/kitten
import React from 'react' import { Tag } from './index' import { DocsPage } from 'storybook/docs-page' import { FlashIconNext } from 'kitten' export default { title: 'Information/Tag', component: Tag, parameters: { docs: { page: () => <DocsPage filepath={__filename} importString="Tag" /> }, }, decorators...
src/components/screens/Network.js
whphhg/vcash-ui
import React from 'react' import { translate } from 'react-i18next' import { Route } from 'react-router-dom' import { inject, observer } from 'mobx-react' /** Components */ import DailyRewardChart from '../charts/DailyRewardChart.js' import DifficultyChart from '../charts/DifficultyChart.js' import Footer from '../Foo...
ReactJS/app/components/CommentList.js
aitch0083/extjs-and-more
import React from 'react'; import ReactDOM from 'react-dom'; import $ from 'jquery'; import {Comment} from 'app/components/Comment'; import _ from 'underscore'; export class CommentList extends React.Component{ constructor(props){ super(props); this._onEditClickHandler = this._onEditClickHandler.bind(this)...
docs/examples/like-button/src/scripts/main.js
alarner/au-flux
// import React from 'react'; // import ReactDOM from 'react-dom'; // import Button from './components/Button'; import { globals } from 'au-flux'; // import stores from './stores'; console.log(globals); // globals.set('stores', stores); {/*ReactDOM.render(<Button />, document.getElementById('main'));*/}
src/server.js
PtitNoony/abretonworkshop
/* eslint no-console: "off"*/ /* global __dirname */ import path from 'path'; import { Server } from 'http'; import Express from 'express'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { StaticRouter as Router } from 'react-router-dom'; import { App } from './components/App'; i...
src/parser/druid/feral/modules/azeritetraits/IronJaws.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { calculateAzeriteEffects } from 'common/stats'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyze...
components/Header.js
sunday-school/sundayschool.rocks
import React from 'react' import Nav from './Nav' import Church from './Church' const Header = ({children}) => <header className='bb cf mb3'> <div className='fl w-10'> <Church /> </div> <div className='fl w-60'> <h1 className='pa0 ma0'>{children}</h1> </div> <div className='fl w-30'> ...
src/routes/about/index.js
quyetvv/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/components/fields/PasswordStrengthIndicator.js
streamr-app/streamr-web
import React from 'react' import cx from 'classnames' import waitForZxcvbn from 'bundle-loader!zxcvbn' export default class PasswordStrengthIndicator extends React.Component { constructor (props) { super(props) this.state = { zxcvbn: () => ({ score: 0 }) } } componentDidMount () { waitFo...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/timeline/Timeline.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/components/SignUpForm/index.js
khankuan/asset-library-demo
import React from 'react'; import Button from '../Button'; import TextField from '../TextField'; import Text from '../Text'; export default class SignUpForm extends React.Component { static propTypes = { onSignUp: React.PropTypes.func.isRequired, } _handleSignUp = () => { if (this.props.onSignUp) { ...
react/features/mobile/audio-mode/components/AudioRoutePickerDialog.js
gpolitis/jitsi-meet
// @flow import _ from 'lodash'; import React, { Component } from 'react'; import { NativeModules, Text, TouchableHighlight, View } from 'react-native'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { hideDialog, BottomSheet } from '../../../base/dialog'; import { translate } from '../../.....
app/components/LoadingIndicator/index.js
pacog/recoreco
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', textAlign: 'center', marginTop: 50, paddingTop: 50, paddingBottom: 50 }, refresh: { display: 'inline-block', position: 'relative', }, }; const ...
client/routes/error/ErrorPage.js
kriasoft/FSharp-Server-Template
/** * ASP.NET Core Starter Kit * * 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 { Layout } from '../../components'; function ErrorP...
src/svg-icons/file/attachment.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let FileAttachment = (props) => ( <SvgIcon {...props}> <path d="M2 12.5C2 9.46 4.46 7 7.5 7H18c2.21 0 4 1.79 4 4s-1.79 4-4 4H9.5C8.12 15 7 13.88 7 12.5S8.12 10 9.5 10H17v2H9.41c-.55 0-.55 1 0 1H18c1.1 0 2-.9 2-2s-....
index.ios.js
fakerabbit/SenalesDelFinRNA
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class SenalesDelFinRNA2 extends Component { render() { return ( <View style={styles.c...
examples/universal/server/server.js
julen/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; import { fetch...
src/svg-icons/action/supervisor-account.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSupervisorAccount = (props) => ( <SvgIcon {...props}> <path d="M16.5 12c1.38 0 2.49-1.12 2.49-2.5S17.88 7 16.5 7C15.12 7 14 8.12 14 9.5s1.12 2.5 2.5 2.5zM9 11c1.66 0 2.99-1.34 2.99-3S10.66 5 9 5C7.34 5 6 ...
stories/Badge/DefaultBadge.js
skyiea/wix-style-react
import React from 'react'; import {Badge} from 'wix-style-react'; export default () => ( <div> <Badge>Default</Badge>&nbsp; <Badge type="primary">Primary</Badge>&nbsp; <Badge type="success">Success</Badge>&nbsp; <Badge type="info">Info</Badge>&nbsp; <Badge type="warning">Warning</Badge>&nbsp; ...
app/static/src/diagnostic/TestTypeResultForm_modules/NewPcbTestForm.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import Button from 'react-bootstrap/lib/Button'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import {findDOMN...
examples/huge-apps/routes/Messages/components/Messages.js
rubengrill/react-router
import React from 'react' class Messages extends React.Component { render() { return ( <div> <h2>Messages</h2> </div> ) } } export default Messages
app/src/components/Common/Title.js
nickdecooman/template-react-frontend
// @flow import React from 'react'; import { StyleSheet, css } from 'aphrodite/no-important'; import { type SheetDefinition, getStyle } from '../../utils/aphrodite'; type Props = { children: string, styleSheet?: { title?: SheetDefinition, }, }; const styles = StyleSheet.create({ title: { fontSize: '2...
webservice/src/main/resources/app/scripts/utils/TopologyUtils.js
hmcl/Streams
/** * Copyright 2017 Hortonworks. * * 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...
imports/ui/components/DocumentEditor.js
GreatFallz/base
/* eslint-disable max-len, no-return-assign */ import React from 'react'; import PropTypes from 'prop-types'; import { FormGroup, ControlLabel, FormControl, Button } from 'react-bootstrap'; import documentEditor from '../../modules/document-editor.js'; export default class DocumentEditor extends React.Component { c...
stories/LanguagePicker/index.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import Markdown from '../utils/Components/Markdown'; import AutoDocs from '../utils/Components/AutoDocs'; import CodeExample from '../utils/Components/CodeExample'; import ReadmeTestkit from '../../src/LanguagePicker/README.TESTKIT.md'; import Langu...
src/js/mixins/form/form_error_handler_mixin.js
rafaelfbs/realizejs
import React from 'react'; import _ from 'lodash'; import i18n from '../../i18n/i18n'; import PropTypes from '../../prop_types'; import { FormActions } from '../../actions'; import Flash from '../../components/flash/flash'; export default { propTypes: { errorMessage: PropTypes.string, baseErrorParam: PropTy...
web/src/components/SearchBar.js
blacktop/scifgif
import React from 'react'; class SearchBar extends React.Component { state = { term: '' }; onFormSubmit = event => { event.preventDefault(); this.props.onSubmit(this.state.term); }; render() { return ( <div className="ui segment search-bar"> <form onSubmit={this.onFormSubmit} class...
app/components/Footer/index.js
jdm85kor/sentbe
import React from 'react'; import { FormattedMessage } from 'react-intl'; import A from 'components/A'; import LocaleToggle from 'containers/LocaleToggle'; import Wrapper from './Wrapper'; import messages from './messages'; function Footer() { return ( <Wrapper> <section> <FormattedMessage {...mes...
assets/javascripts/kitten/components/form/field/components/checkbox.js
KissKissBankBank/kitten
import React from 'react' import { Checkbox } from '../../../form/checkbox' export const FieldCheckbox = props => <Checkbox {...props} />
src/app.js
townmi/ReactExamples
/** * @Created by Administrator * @Date 2015/12/14. * @author [haixiangtang@creditease.cn] */ import React from 'react'; import ReactDOM from 'react-dom'; import { Route } from 'react-router'; import App from './root'; const MOUNT_NODE = document.getElementById('reactApp'); let render = () => { const routes...
src/js/CreateStepper/Content/BasicDataForm/TagList.js
ludonow/ludo-beta-react
import React from 'react'; import styled from 'styled-components'; import DeleteIcon from 'material-ui/svg-icons/action/delete-forever'; import { grey200 } from 'material-ui/styles/colors'; import { CustomScrollBarCSS } from '../../../baseStyle'; // styled components const DeleteIconWrapper = styled.div` align-it...
client/sidebar/Item/skeletons/CondensedSkeleton.js
VoiSmart/Rocket.Chat
import { Box, Skeleton } from '@rocket.chat/fuselage'; import React from 'react'; import Condensed from '../Condensed'; const CondensedSkeleton = ({ showAvatar }) => ( <Box height='x28'> <Condensed title={<Skeleton width='100%' />} titleIcon={<Box mi='x4'>{<Skeleton width={12} />}</Box>} avatar={showAvata...
src/svg-icons/image/palette.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePalette = (props) => ( <SvgIcon {...props}> <path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.4...
src/home/Table.js
zhangxin840/mobile-env
import React, { Component } from 'react'; import _ from 'lodash'; import { Case } from './Case'; import { CaseCount } from './CaseCount'; var Browsers = React.createClass({ getInitialState: function() { return {}; }, componentDidMount: function() { }, render: function() { var browsers = []; for(...
docs/src/app/components/pages/components/Paper/ExampleSimple.js
igorbt/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleSimple = () => ( <div> <Paper style={style} zDepth={1} /> <Paper style={style} zDepth={2} /> <Paper style={s...
githubApp/js/Boy.js
anchoretics/ztf-work-app
/** * Created by lingfengliang on 2017/3/13. */ import React, { Component } from 'react'; import { StyleSheet, Text, View, Image, TouchableOpacity } from 'react-native'; import Girl from './Girl'; import NavigationBar from './Components/NavigationBar'; export default class Boy extends Component{...
public/src/routes/routes.js
white87332/react-redux-sample
import React from 'react'; import { Router, Route } from 'react-router'; import * as postsActions from '../actions/postsActions'; // async load component const async = bundle => (location, callback) => { bundle((component) => { callback(null, component.default); }); }; const postsListInit = (store, d...
public/components/DevTools.js
datpham23/tinder-wingman
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 defaultIsVisible={false} toggleVisibilityKey='ctrl-e' changePositionKey='ctrl...