path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/app/components/pages/components/SelectField/ExampleSimple.js
ruifortes/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; const styles = { customWidth: { width: 150, }, }; /** * `SelectField` is implemented as a controlled component, with the current selection set through the `value` property. * The `Selec...
src/Parser/Druid/Restoration/Modules/Features/Dreamwalker.js
hasseboulen/WoWAnalyzer
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import { formatPercentage } from 'common/format'; import SpellIcon from 'common/SpellIcon'; import SPELLS from 'common/SPELLS'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combata...
src/parser/deathknight/blood/modules/talents/RapidDecomposition.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS/index'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import TalentStatisticBox from 'interface/others/TalentStatisticBox'; import STATISTIC_ORDER from 'interface/others/STATISTIC_ORD...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridDoublingExample.js
jamiehill/stardust
import React from 'react' import { Image, Grid } from 'stardust' const { Column } = Grid const image = <Image src='http://semantic-ui.com/images/wireframe/image.png' /> const GridDoublingExample = () => ( <Grid doubling columns={5}> <Column>{image}</Column> <Column>{image}</Column> <Column>{image}</Colu...
examples/src/components/DisabledUpsellOptions.js
keppelen/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var DisabledUpsellOptions = React.createClass({ displayName: 'DisabledUpsellOptions', propTypes: { label: React.PropType...
components/Replays/index.js
bmagic/acdh-client
import React from 'react' import PropTypes from 'prop-types' import Moment from 'react-moment' const Replays = (props) => { if (props.replays && props.replays.size > 0) { const replays = props.replays.map((replay, index) => { return <li key={index}><Moment locale='fr' format='DD/MM/YYYY'>{replay}</Moment><...
website/src/components/typography.js
explosion/thinc
import React from 'react' import classNames from 'classnames' import Tippy from '@tippy.js/react' import slugify from 'slugify' import { getStringChildren } from '../util' import classes from '../styles/typography.module.sass' export const H0 = ({ Component = 'h1', className, ...props }) => ( <Headline Component=...
packages/material/src/components/FlatFieldset.js
wq/wq.app
import React from 'react'; import Typography from '@material-ui/core/Typography'; import PropTypes from 'prop-types'; export default function FlatFieldset({ label, children }) { return ( <> <Typography color="textSecondary">{label}</Typography> {children} </> ); } FlatF...
react/features/chat/components/web/DisplayNameForm.js
gpolitis/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/pages/resume/jobs-and-clients/index.pt.js
angeloocana/angeloocana
import React from 'react'; import JobsAndClientsPage from '../../../components/Resume/JobsAndClientsPage'; import graphql from 'graphql'; export default (props) => <JobsAndClientsPage {...props} />; export const pageQuery = graphql` query ResumeJobsAndClientsPt { site { siteMetadata { resu...
app/app.js
dmitrykrylov/my-test-store
/** * 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...
fields/types/location/LocationColumn.js
matthieugayon/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const SUB_FIELDS = ['street1', 'suburb', 'state', 'postcode', 'country']; var LocationColumn = React.createClass({ displayName: 'LocationColumn', propTypes: { co...
src/components/app/screens/LandingPage.js
mailvelope/mailvelope-styleguide
import React, { Component } from 'react'; import FooterApp from '../FooterApp'; import 'bootstrap/dist/css/bootstrap.css'; import 'font-awesome/css/font-awesome.min.css'; import '../../../css/landing-page.css'; import icon from '../../../img/cryptography-icon48.png'; import screenshotgif from '../../../img/mailvelope_s...
src/js/components/blog/articlearea.js
axuebin/react-blog
import React from 'react'; import PropTypes from 'prop-types'; import ArticleList from './articlelist'; import ArticlePaging from './articlepaging'; import '../../../css/blog/articlearea.css'; const ArticleBanner = () => ( <div className="blog-article-banner"> <h2>欢迎来到我的博客,请指教 ~</h2> <p>找工作呀找工作呀 ~</p> </di...
app/js/app.js
arcsecw/myfd
import React from 'react'; import {render} from 'react-dom'; import { Router, Route, IndexRoute, hashHistory, } from 'react-router'; import { Icon, } from 'amazeui-react'; import 'whatwg-fetch' // style //import '../less/app.less'; // components import { Header, Sidebar, PageContainer, } from './compon...
tests/Rules-isUrl-spec.js
meraki/mki-formsy-react
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); class TestForm extends React.Component { render() { r...
client/src/javascript/components/general/Duration.js
jfurrow/flood
import {FormattedMessage} from 'react-intl'; import React from 'react'; export default class Duration extends React.Component { render() { let {suffix = null} = this.props; const {value: duration} = this.props; if (duration == null) { return null; } let content = null; if (suffix) { ...
src/browser/posts/PostPage.js
reedlaw/read-it
// @flow import linksMessages from '../../common/app/linksMessages'; import React from 'react'; import type { State, Post, User } from '../../common/types'; import { Box } from '../../common/components'; import { Title } from '../components'; import { connect } from 'react-redux'; const PostPage = () => ( <Box> ...
test/integration/jsconfig-paths/components/world.js
flybayer/next.js
import React from 'react' export function World() { return <>World</> }
src/components/Header.js
uyu423/vote_widget
import React from 'react'; import { Navbar, Nav, NavItem } from 'react-bootstrap'; import FontAwesome from 'react-fontawesome'; import { Link } from 'react-router'; import { LinkContainer } from 'react-router-bootstrap'; class Header extends React.Component { render() { const loginButton = ( <LinkContainer to="/...
example/src/pages/Home.js
ethanselzer/react-image-magnify
import React, { Component } from 'react'; import Helmet from 'react-helmet'; import Header from '../components/Header'; import 'bootstrap/dist/css/bootstrap.css'; import '../styles/app.css'; import { Clearfix, Col, Grid, Jumbotron, Nav, NavItem, Panel, Row } from 'react-bootstrap'; e...
information/blendle-frontend-react-source/app/modules/item/components/SignUpRewardDialog/index.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { compose, withState, withHandlers, setPropTypes, pure } from 'recompose'; import { Dialog } from '@blendle/lego'; import StepsPanel from 'components/StepsPanel'; import { formatCurrency } from 'instances/i18n'; import PresentContent from './PresentC...
src/DashboardDemo/SimpleTable.js
KageEnterprises/weed-wizard
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import TableCell from '@material-ui/core/TableCell'; import TableHead from '@material-ui/core/TableHead'...
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupColored.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleGroupColored = () => ( <Button.Group color='blue'> <Button>One</Button> <Button>Two</Button> <Button>Three</Button> </Button.Group> ) export default ButtonExampleGroupColored
elogy/frontend/src/app.js
Erikun/elogy
/* The main file that ties together the various components into an "app" */ import React from 'react'; import { BrowserRouter as Router, Route, Switch, } from 'react-router-dom' import Entry from './entry.js'; import EntryEditor from './entryeditor.js'; import Logbook from './logbook.js'; import LogbookEditor...
src/components/atoms/Label/index.stories.js
SIB-Colombia/dataportal_v2_frontend
import React from 'react' import { storiesOf } from '@kadira/storybook' import Label from '.' storiesOf('Label', module) .add('default', () => ( <Label>Hello</Label> )) .add('reverse', () => ( <Label reverse>Hello</Label> ))
front/src/components/body/chat/chat-window/MessagesList.js
litleleprikon/ds_chat
/** * Created by litleleprikon on 15/11/2016. * ___ __ ___ ___ __ * /\_ \ __/\ \__/\_ \ /\_ \ __/\ \ * \//\ \ /\_\ \ ,_\//\ \ __\//\ \ __ _____ _ __ /\_\ \ \/'\ ___ ___ * \ \ \ \/\ \ \ \/ \ \ \ /'__`\\ ...
src/modules/connect/connectDetail/components/ConnectDetailShareBox.js
Florenz23/sangoo_04
import React, { Component } from 'react'; import { CheckBox, List, Header, Title, Content, Button, Icon, IconNB, Card, CardItem, Text, Left, Right, Body, ListItem } from 'native-base'; import { View } from 'react-native' import styles from '../../styles/socialBox'; import contacts from '../../../../mock/contacts' im...
app/views/home/home.js
amite/js-links
import React, { Component } from 'react'; import styles from './home.pcss'; class Home extends Component { render() { return ( <main> <p className={styles.text}>It feels like home again</p> </main> ); } } export default Home;
test/integration/css-fixtures/url-global-asset-prefix-1/pages/_app.js
JeromeFitz/next.js
import React from 'react' import App from 'next/app' import '../styles/global1.css' import '../styles/global2.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/app.js
lxanders/react-clientside-example
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import Routes from './components/Routes'; import configureStore from './configureStore'; const store = configureStore(); const rootElement = document.getElementById('root'); ReactDOM.render( ...
src/containers/ADC/SLB/Session/Session.js
armaniExchange/wizard
// React & Redux import React, { Component } from 'react'; class Session extends Component { render() { return ( <section>Session</section> ); } } export default Session;
tests/react_modules/es6class-proptypes-module.js
MichaelDeBoey/flow
/* @flow */ import React from 'react'; import type {Node} from 'react'; class Hello extends React.Component<{name: string}> { defaultProps = {}; propTypes = { name: React.PropTypes.string.isRequired, }; render(): Node { return <div>{this.props.name}</div>; } } module.exports = Hello;
node_modules/react-router/es6/IndexLink.js
MichaelWiss/React_E
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; import React from 'react'; import Link from './Link'; /** *...
website/src/react-native/index.js
callstack-io/react-native
/** * 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. */ 'use strict...
client/app/components/MainSection.js
tiborv/tibomat
import React, { Component } from 'react'; import Question from '../components/Question'; import AreaQuestion from '../components/AreaQuestion'; import Result from '../components/Result'; import QuestionStore from '../stores/QuestionStore'; import PartyStore from '../stores/PartyStore'; export default class MainSectio...
src/trash/_Header/Header.js
jessamynsmith/MintWebApp
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/svg-icons/image/filter-b-and-w.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterBAndW = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16l-7-8v8H5l7-8V5h7v14z"/> </SvgIcon> ); ImageFilterBAndW = pure(Im...
client/extensions/woocommerce/woocommerce-services/views/shipping-label/label-purchase-modal/customs-step/package-row.js
Automattic/woocommerce-services
/** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { localize } from 'i18n-calypso'; import { map, uniq } from 'lodash'; import { ExternalLink } from '@wordpress/components'; /** * Internal dependencies */ import ItemRow from ...
src/index.js
yifanchen/react-startkit
//import App from './App' //import React from 'react' //import { render } from 'react-dom' //render(<App />, document.querySelector('.main')); console.log('123');
app/javascript/mastodon/features/getting_started/index.js
yukimochi/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/Parser/Hunter/Survival/Modules/Abilities.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import CoreAbilities from 'Parser/Core/Modules/Abilities'; import Wrapper from 'common/Wrapper'; import SpellLink from 'common/SpellLink'; class Abilities extends CoreAbilities { spellbook() { return [ { ...
examples/custom-server-micro/pages/b.js
nelak/next.js
import React from 'react' export default () => <div>b</div>
src/reducers/panes.js
DarklyLabs/LaserWeb4
/** * Panes reducer. * @module */ // React import React from 'react' // Actions import * as panesActions from '../actions/panes' export const PANES_INITIALSTATE='cam' /** * Handle visible state. * @function * @protected * @param {Array} panes The current panes collection. * @param {module:lib/redux-action~...
src/components/Feed.js
Jalissa/rss-feed-client
import React from 'react'; import FormattedDate from './FormattedDate'; import Bookmark from './Bookmark'; const Feed = (props) => { const onClick = () => { const feed = props.feed; if(feed.content || feed.description){ props.push(`/feed/${feed.id}/${encodeURIComponent(feed.title.toLowerCase().replace(...
src/application/client/index.js
lassombra/ribbonTrader
import Home from 'home'; import ReactDom from 'react-dom'; import React from 'react'; import { ApolloProvider} from 'react-apollo'; import client from 'graphqlClient'; ReactDom.render(<ApolloProvider client={client}> <Home /> </ApolloProvider>, document.getElementById('appTarget'));
src/frontend/welcome/components/StarterList.js
plotify/plotify
import List, { ListItem, ListItemIcon, ListItemText } from 'material-ui/List' import { createStory, openStory } from '../../story/actions' import CreateNewFolderIcon from '@material-ui/icons/CreateNewFolder' import FolderOpenIcon from '@material-ui/icons/FolderOpen' import PropTypes from 'prop-types' import React from...
index.js
rfarine/enzyme
import React from 'react'; import Root from './components/root'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, combineReducers } from 'redux'; import { reducer as formReducer } from 'redux-form'; import thunk from 'redux-thunk'; import createLogger from 'redux-logger'...
examples/src/components/CustomOption.js
kurilovvo/react-select
import React from 'react'; import Gravatar from 'react-gravatar'; var Option = React.createClass({ propTypes: { addLabelText: React.PropTypes.string, className: React.PropTypes.string, mouseDown: React.PropTypes.func, mouseEnter: React.PropTypes.func, mouseLeave: React.PropTypes.func, option: React.PropTy...
src/index.js
AquestTechnologies/menestrel
import React from 'react' class Casting { // TODO: extend Map ? actors = {} get = actor => { if (typeof actor === 'string') return this.actors[actor] if (typeof actor === 'function' && actor.id) return actor throw new Error(`Actor not found: ${actor}`) } add = (Component = 'div', { id = Ma...
src/components/theme-legacy/form/zip-or-postal-input.js
MoveOnOrg/mop-frontend
import React from 'react' import PropTypes from 'prop-types' const ZipOrPostalInput = ({ country, zipOnChange, postalOnChange }) => { if (country === 'United States') { return ( <input type='text' name='zip' placeholder='ZIP Code*' className='zip moveon-track-click' ...
examples/dashboard.js
dundalek/react-blessed-contrib
// Adapted from https://github.com/yaronn/blessed-contrib/blob/master/examples/dashboard.js import React, { Component } from 'react'; import blessed from 'blessed'; import { render } from 'react-blessed'; import { Grid, Donut, Sparkline, Bar, Table, Lcd, Line, Map, Log, Gauge } from '../src/index'; //dummy data var s...
client/src/app/components/profileForm.js
jhuntoo/starhackit
import _ from 'lodash'; import React from 'react'; import Checkit from 'checkit'; import TextField from 'material-ui/lib/text-field'; import TextArea from 'react-textarea-autosize'; import LaddaButton from 'react-ladda'; import SelectLangage from 'components/selectLanguage'; import ValidateProfileForm from 'services/va...
src/utils/createContextWrapper.js
justinanastos/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; }...
public/src/components/NotFound.js
alexisbellido/node-tests
import React from 'react'; class NotFound extends React.Component { render() { return ( <h2>Not found</h2> ) } } export default NotFound;
react-flux-mui/js/material-ui/src/svg-icons/hardware/headset.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadset = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h3c1.66 0 3-1.34 3-3v-7c0-4.97-4.03-9-9-9z"/> </SvgIcon> ...
docs/src/app/components/pages/components/SelectField/ExampleCustomLabel.js
spiermar/material-ui
import React from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; export default class SelectFieldExampleCustomLabel extends React.Component { constructor(props) { super(props); this.state = {value: 1}; } handleChange = (event, index, value) => t...
src/index.js
tony-luisi/eMazon-Me
import React from 'react' import { render } from 'react-dom' import { Router, Route, Link, browserHistory,IndexRoute } from 'react-router' import App from './components/App' import HomePage from './components/HomePage' import Store from './components/Store' import Item from './components/Item' render(( <Router hist...
index.js
jameshulse/Chippie
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/app'; import './styles/bulmaswatch.min.css'; import './styles/site.scss'; ReactDOM.render(<App />, document.getElementById('app')); if (module.hot) { module.hot.accept(); }
src/routes/home/index.js
L2D22/RPS
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; impo...
client/scripts/components/content-testimonials.js
rubeniskov/web-palomasafe
import React from 'react'; export default class ContentTestimonials extends React.Component { constructor(props) { super(props); } render() { return ( <section id="testmonials-light" className="e-block-ins e-block-skin" data-stellar-background-ratio="0.5"> <div className="container pt-sec...
src/index.js
janowak/react_presentation
import React from 'react'; var root = document.getElementById('root'); //React.render(<IsomorphicComponent />, root);
app/javascript/mastodon/features/account_timeline/index.js
verniy6462/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { refreshAccountTimeline, expandAccountTimeline } from '../../actions/timelines'; import StatusL...
src/DataContainer.js
curious-containers/cc-ui
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'lodash'; import { api } from './Api'; import { formatJSON } from './utils'; export default createReactClass({ propTypes: { params: PropTypes.object, }, getInitialState() { r...
src/decorators/withViewport.js
JimiHFord/web-based-card-game-engine
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = { width: 1366, height: 768 }; // Default ...
blueocean-material-icons/src/js/components/svg-icons/communication/call-split.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationCallSplit = (props) => ( <SvgIcon {...props}> <path d="M14 4l2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z"/> </SvgIcon> ); CommunicationCallSplit.displayName = 'Communication...
app/index.js
ritishgumber/dashboard-ui
'use strict'; require('./styles/index.scss') import React from 'react'; import ReactDOM from 'react-dom'; import Routes from './routes'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import {blue500} from 'material-ui/styles/colors'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; impo...
src/components/Auth.js
tableau-app/app
import React, { Component } from 'react'; import { Redirect, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import styled from 'styled-components'; import FlatButton from 'material-ui/FlatButton'; import Credentials from './Credentials'; import { signup, signin } from '../actions'; const ...
client/src/components/Pagination/Pagination.js
Velocies/raptor-ads
import React, { Component } from 'react'; import { Menu } from 'semantic-ui-react'; import { connect } from 'react-redux'; import range from 'lodash/range'; import { changeActiveItem } from './actions'; class Pagination extends Component { constructor(props) { super(props); this.handleClick = this.handleClic...
src/main/app/src/component/layout/Navigation.js
p632-sp-2017/microservice-catalog-frontend
import React from 'react'; import {Nav , NavItem} from 'react-bootstrap'; /** * A component to allow Page navigation */ const NavInstance = () =>( <Nav bsStyle="pills" activeKey={1}> <NavItem eventKey={1} href="/">Home</NavItem> <NavItem eventKey={2} href="/addService" title="Item">Add MicroService</NavIte...
src/components/search_bar.js
JenPhD/ReactYouTubeSearch
import React, { Component } from 'react'; class SearchBar extends Component { constructor(props) { super(props); this.state = { term: '' }; } render() { return ( <div className="search-bar"> <input value={this.state.term} onChange={event => this.onInp...
app/containers/goals/list.js
DeividasK/my-future-ai
import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import { firebaseConnect, helpers } from 'react-redux-firebase' import { Container, InputGroup, Input, InputGroupButton } from 'reactstrap' import PageHeading from 'components/helper/PageHeading' import SimpleList from ...
src/components/frontPageView.js
gordongordon/hom
import { Toast, WhiteSpace, WingBlank, Button } from 'antd-mobile'; import React from 'react'; // import MobxStore from 'mobxStore' import views from 'views'; //import FrontPageDisplay from 'frontPageDisplay' //import {FrontPageTabBar} from 'frontPageTabBar' import {inject, observer} from 'mobx-re...
app/javascript/mastodon/features/home_timeline/index.js
ashfurrow/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { expandHomeTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../comp...
scripts/ItemImage.js
krulmacius/sdasdasdasfgasdawsdwadawd
import React from 'react'; import axios from 'axios'; import ImageGallery from 'react-image-gallery'; import Alert from 'react-s-alert'; import 'react-s-alert/dist/s-alert-default.css'; import 'react-s-alert/dist/s-alert-css-effects/jelly.css'; import "react-image-gallery/styles/css/image-gallery.css"; var base_url...
src/components/common/button/RateButtonElement.js
goodjoblife/GoodJobShare
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import { Glike } from 'common/icons'; import styles from './RateButtonElement.module.css'; const RateButtonElement = ({ hover, active, onClick }) => ( <Glike className={cn(styles.container, { [styles.hover]: hover, ...
client/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Jmoreno1988/2mean
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
src/scenes/home/requestModal/requestModal.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import dateFormat from 'dateformat'; import PropTypes from 'prop-types'; import Form from 'shared/components/form/form'; import REQUEST_STATUSES from 'shared/constants/status'; import FormButton from 'shared/components/form/formButton/formButton'; import Modal from 'shared/comp...
blueocean-material-icons/src/js/components/svg-icons/device/add-alarm.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceAddAlarm = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9-9zm0 16c-3.87 0-7-3.13-7-7...
RNTest/RNWithOCDemo/node_modules/react-native/Libraries/Components/Keyboard/Keyboard.js
Tony0822/ReactNativeDemo
/** * 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...
jenkins-design-language/src/js/components/material-ui/svg-icons/image/nature-people.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ImageNaturePeople = (props) => ( <SvgIcon {...props}> <path d="M22.17 9.17c0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H6v-3h1v-4c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v4h1v5h16v-2h-3v-3.88c3.47-.41 6.17-3.36 6.17-6.95zM4.5 11c.83 0...
lib/Kohana.js
halilb/react-native-textinput-effects
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, Easing, Text, TextInput, TouchableWithoutFeedback, View, StyleSheet, } from 'react-native'; import BaseInput from './BaseInput'; export default class Kohana extends BaseInput { static propTypes = { /* * This is ...
src/demo/demo.component.js
justame/mobx-controller
import React from 'react'; import PropTypes from 'prop-types'; import {observer} from 'mobx-react'; import DemoCtrl from './demo.controller'; import {controller} from '../index'; @controller('demoCtrl', DemoCtrl) @observer class Demo extends React.Component { render() { const {demoCtrl} = this.props; return ...
src/components/auth/Login.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import { isDevMode, useLiveAPI } from '../../environment'; import Form from '../../lib/Form'; import { required, email } from '../../helpers/valid...
techCurriculum/ui/solutions/3.2/src/App.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writ...
src/components/Background/index.js
iris-dni/iris-frontend
import React from 'react'; import getClassNames from 'helpers/getClassNames'; import styles from './background.scss'; const Background = ({ image, color }) => ( <div style={image ? { backgroundImage: `url(${image})` } : {}} className={getClassNames(styles, [(image ? 'background-image' : 'background-color'), ...
integration/azure/authentication/azure-v1/auth-code-pkce/WorkflowGenExample/navigation/homenavigation.ios.js
advantys/workflowgen-templates
import React from 'react'; import { createBottomTabNavigator } from 'react-navigation'; import Ionicon from 'react-native-vector-icons/Ionicons'; import HomeStack from './HomeStack'; import WorkflowGenProfileStack from './WorkflowGenProfileStack'; export default createBottomTabNavigator( { Home: HomeStack, ...
examples/Sparkline/index.js
AlexMayants/react-jsx-highcharts
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render( <App />, document.getElementById('root') );
docs/src/app/components/pages/components/Tabs/Page.js
ArcanisCz/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tabsReadmeText from './README'; import tabsExampleSimpleCode from '!raw!....
src/components/Dialogs/LoginDialog/index.js
u-wave/web
import cx from 'clsx'; import React from 'react'; import PropTypes from 'prop-types'; import { useTranslator } from '@u-wave/react-translate'; import useMediaQuery from '@mui/material/useMediaQuery'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; import DialogContent fro...
packages/bonde-admin/src/pages/admin/mobilizations/widgets/form/settings/autofire/page.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { Loading } from '@/components/await' import { FormAutofire } from '@/mobilizations/widgets/components' const FormSettingsAutofirePage = props => !props.widget ? ( <Loading /> ) : ( <FormAutofire {...props} /> ) FormSettingsAutofirePage.propType...
src/get_week_periods.js
aymericbouzy/instantjob-calendar
import React from 'react' import { make_memoized, property_getter, range, hash_with_key, flatten_array, split_array, find_optimum_in_sorted_array, make_periods, make_slots, compare_date, } from 'common/utilities' import moment from 'common/moment' import tolerant_selector from 'common/tolerant_selector' import Peri...
react-client/src/LocationSearchForm.js
wfwalker/freesound-experiment
import React, { Component } from 'react'; import './SearchForm.css'; class LocationSearchForm extends React.Component { constructor(props) { super(props); this.state = {lat: '', long: ''}; this.handleLatChange = this.handleLatChange.bind(this); this.handleLongChange = this.handleLongChange.bind(this...
server/server.js
saltykovdg/mern-react-redux-nodejs-express-todo-list
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/renderer/components/Layouts/SettingsCategoryListItem.js
MovieCast/moviecast-desktop
import React, { Component } from 'react'; import ListItem from '@material-ui/core/ListItem'; import ListItemAvatar from '@material-ui/core/ListItemAvatar'; import ListItemText from '@material-ui/core/ListItemText'; import ListItemSecondaryAction from '@material-ui/core/ListItemSecondaryAction'; import Menu from '@mater...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
koba-lab/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Permalink from '../../../components/permalink'; import Avatar from '../../../components/avatar'; import DisplayName from '../../../components/display_name'; import IconButton from '../../../...
src/components/Goodyear/Goodyear.js
Hypnosphi/goodyear-react
import React, { Component } from 'react'; import Calendar from './Calendar'; import Input from './Input'; import formats from './formats.json'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './Goodyear.scss'; import moment from 'moment'; import 'moment/locale/ru'; moment.locale('ru'); ...
src/client/server.js
pgryko/meeting
import axios from 'axios'; import React from 'react'; import { renderToString } from 'react-dom/server'; import { createMemoryHistory, match, RouterContext } from 'react-router'; import { Provider } from 'react-redux'; import createRoutes from './routes/Routes'; import configureStore from './store/configureStore'; impo...
src/components/calculation/index.js
OpenChemistry/mongochemclient
import React, { Component } from 'react'; import { withStyles, Grid, Card, Typography, Fab } from '@material-ui/core'; import { wc } from '../../utils/webcomponent'; import { isNil, has } from 'lodash-es'; import Popover, { PopoverAnimationVertical } from '@material-ui/core/Popover'; import AssignmentIcon from '@ma...
src/svg-icons/image/rotate-left.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateLeft = (props) => ( <SvgIcon {...props}> <path d="M7.11 8.53L5.7 7.11C4.8 8.27 4.24 9.61 4.07 11h2.02c.14-.87.49-1.72 1.02-2.47zM6.09 13H4.07c.17 1.39.72 2.73 1.62 3.89l1.41-1.42c-.52-.75-.87-1.59-1....