path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/routes/Profile.route.js
ali404/calculator-on-steroids
import React from 'react' import LoggedIn from './_helpers/LoggedIn.route' import UserStore from '../stores/UserStore' import UserActions from '../actions/UserActions' import FunctionsDisplayerContainer from '../components/FunctionsDisplayer/FunctionsDisplayerContainer.react' import {Link} from 'react-router' e...
react/features/toolbox/components/native/Toolbox.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { View } from 'react-native'; import { SafeAreaView } from 'react-native-safe-area-context'; import { ColorSchemeRegistry } from '../../../base/color-scheme'; import { Platform } from '../../../base/react'; import { connect } from '../../../base/redux'; import { StyleType } ...
src/components/Schedule.js
wearespindle/quickly.press
import React, { Component } from 'react'; import { inject, observer } from 'mobx-react'; class Schedule extends Component { componentWillMount() { const { store } = this.props; store.schedules.fetch(); } render() { const { store, match } = this.props; const { familyId } = match.params; cons...
examples/InputRadio.js
chris-gooley/react-materialize
import React from 'react'; import Input from '../src/Input'; import Row from '../src/Row'; export default <Row> <Input name='group1' type='radio' value='red' label='Red' /> <Input name='group1' type='radio' value='yellow' label='Yellow' /> <Input name='group1' type='radio' value='green' label='Green' class...
src/components/cards/right-container/topbar.js
vFujin/HearthLounge
import React from 'react'; import IconFilter from "../filters/icon-filter"; const Topbar = ({filters, inDeckCreation, handleIconClick}) => { return ( <div className="topbar"> <IconFilter header={false} filter="cost" filters={filters} tooltip={false} wrapper_class="topbar-left" handleIconClick={handl...
src/FadeMixin.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import domUtils from './utils/domUtils'; import deprecationWarning from './utils/deprecationWarning'; // TODO: listen for onTransitionEnd to remove el function getElementsAndSelf (root, classes){ let els = root.querySelectorAll('.' + classes.join('.')); els = [].map.call(els, function(e...
src/containers/Home/Home.js
TonyJen/react-redux-universal-hot-example
import React, { Component } from 'react'; import { Link } from 'react-router'; import { CounterButton, GithubButton } from 'components'; import config from '../../config'; import Helmet from 'react-helmet'; export default class Home extends Component { render() { const styles = require('./Home.scss'); // req...
app/assets/javascripts/components/MainMenu.js
rnplay/rnplay-web
import React, { Component } from 'react'; import classNames from 'classnames'; import Backdrop from './backdrop'; export default class MainMenu extends Component { renderUserActions() { const { isUserLoggedIn } = this.props; if (isUserLoggedIn) { return ( <div className="editor-main-menu__ro...
src/Parser/HolyPaladin/Modules/Traits/JusticeThroughSacrifice.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Module from 'Parser/Core/Module'; import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing'; i...
src/components/Auth/LoginForm.js
rjmreis/react-redux-starter
import React from 'react'; import { Card, CardActions } from 'react-toolbox/lib/card'; import { Button } from 'react-toolbox/lib/button'; import { Input } from 'react-toolbox/lib/input'; import style from './style.scss'; // eslint-disable-line const LoginForm = ({creds, login, onChange}) => { return ( <form onS...
docs/src/app/components/pages/components/TimePicker/Page.js
lawrence-yu/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 timePickerReadmeText from './README'; import TimePickerExampleSimple from...
src/main/internal/adaption/react/isValidElement.js
mcjazzyfunky/js-surface
// external import import React from 'react' // --- isValidElement ----------------------------------------------- const isValidElement = React.isValidElement // --- exports ------------------------------------------------------ export default isValidElement
src/components/common/svg-icons/notification/sd-card.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSdCard = (props) => ( <SvgIcon {...props}> <path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/> </SvgIcon> ); NotificationS...
src/components/ListView/ListTitle.js
STMU1320/dedao-demo
import React from 'react' import { Icon } from 'components' import { config } from 'utils' import styles from './style.less' function ListTitle ({ children, onBack }) { return (<h3 className={styles.listTitle}> { typeof onBack === 'function' && <Icon onClick={onBack} type={config.icon.arrow} style={{ transform:...
src/components/SimonStartButton.js
vcostin/simon-game
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class SimonStartButton extends Component { render() { return ( <div className="start-button-container"> <div className="start-button-wrapper"> <button className="action-button start-button" onClick={this.props.o...
docs/src/app/components/pages/components/DatePicker/ExampleDisableDates.js
owencm/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; function disableWeekends(date) { return date.getDay() === 0 || date.getDay() === 6; } function disableRandomDates() { return Math.random() > 0.7; } /** * `DatePicker` can disable specific dates based on the return value of a callback. *...
src/scripts/components/paginate.js
jie/microgate
import React from 'react'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import DoneIcon from 'material-ui/svg-icons/action/done'; import ArrowBackIcon from 'material-ui/svg-icons/navigation/arrow-back'; import ArrowForwardIcon from 'material-ui/svg-icons/navigation/arrow-forward'; impor...
app/javascript/mastodon/features/blocks/index.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll-4'; import Column from '../ui/componen...
src/Refova.js
nmbrone/refova
import React from 'react'; import { reduceValues, reduceErrors, reduceChanged, isEqualObjects, getComponentName, getKeyValueFromElement, } from './helpers'; const defaultMap = () => ({}); const noop = () => {}; export default function Refova( { mapPropsToValues = defaultMap, submit = noop, v...
src/components/tabs/tabs.js
slaweet/lisk-nano
import React from 'react'; import { Tab, Tabs as ToolboxTabs } from 'react-toolbox'; import styles from './tabs.css'; const getTabs = (isDelegate, tabs) => tabs.filter(t => t.id !== 'forging' || isDelegate); const getIndex = (history, tabs) => tabs.map(t => t.id) .indexOf(history.location.pathname.split('/')[2]...
client/src/components/Hero/Hero.js
nrandecker/nightlife
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { logIn, logOut, setCurrentUser } from '../../modules/session'; import { going, setNotification } from '../../modul...
src/Button.js
tanbo800/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import getGrid from './higherorder/grid' import { requireCss } from './themes' requireCss('buttons') @getGrid class Button extends React.Component { static displayName = 'Button' static propTypes = { children: React.PropTypes.any, ...
docs/app/Examples/modules/Dropdown/Variations/DropdownExampleScrolling.js
koenvg/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' import { getOptions } from '../common' const DropdownExampleScrolling = () => ( <Dropdown placeholder='Select choice' scrolling options={getOptions(15)} /> ) export default DropdownExampleScrolling
app/javascript/mastodon/features/follow_requests/index.js
TootCat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
blueocean-material-icons/src/js/components/svg-icons/communication/rss-feed.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const CommunicationRssFeed = (props) => ( <SvgIcon {...props}> <circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17 7.07 7.07h2.83c0-5.47-4.43-9.9-9...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
fhqs/site
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/shared/components/form/formPassword/formPassword.js
tskuse/operationcode_frontend
import React, { Component } from 'react'; import FormInput from '../formInput/formInput'; class FormPassword extends Component { render() { return ( <FormInput {...this.props} inputType="password" ref={(child) => { this.inputRef = child; }} /> ); } } export default Form...
src/components/AudioPlayer/components/AudioPlayer.js
altarit/cloudpolis-react
import React from 'react' import PropTypes from 'prop-types' import {toMMSS, trackLink} from '../../../modules/formatUtils' export class AudioPlayer extends React.Component { static propTypes = { title: PropTypes.string, artist: PropTypes.string, src: PropTypes.string, duration: PropTypes.string, ...
src/components/sidebar.js
pingf/BSIDK
import React from 'react'; import ReactDOM from 'react-dom'; const CANCEL_DISTANCE_ON_SCROLL = 20; const styles = { root: { position: 'absolute', top: 0, left: 0, right: 0, bottom: 0, overflow: 'hidden', }, sidebar: { zIndex: 2, position: 'absolute', top: 0, bottom: 0, ...
frontend/js/components/map/locationControl.js
mcallistersean/b2-issue-tracker
import React from 'react'; import ReactDOM from 'react-dom'; import L from 'leaflet'; import { MapControl } from 'react-leaflet'; export default class LocationControl extends MapControl { componentWillMount() { const locationControl = L.control({position: 'topleft'}); const jsx = ( <div className='lea...
src/components/Counter/Counter.js
plugged/react-starter
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { increment } from 'actions/counterActions'; @connect( state => ({ count: state.counter.count }), dispatch => ({ increment: () => dispatch(increment()) }) ) class Counter extends React.PureComponent { co...
client/component/schema/filter/types/integer.js
johngodley/search-regex
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; /** * Internal dependencies */ import Logic from '../logic'; import IntegerInput from 'component/integer-input'; function FilterInteger( props ) { const { disabled, item, onChange, schema, fetchData } = pr...
src/shared/universal/components/App/About/About.js
DAppx/SharpReact
/* */ import React from 'react'; import Helmet from 'react-helmet'; function About() { return ( <div style={{ textAlign: 'center' }}> <Helmet title="About" /> 甘霖医生荣誉出品 Produced with ❤️ </div> ); } export default About;
information/blendle-frontend-react-source/app/components/GeneralError.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import { translate, translateElement } from 'instances/i18n'; import zendesk from 'instances/zendesk'; class GeneralError extends React.Component { static propTypes = { title: PropTypes.string, message: PropTypes.string, }; _onContactClick =...
src/components/Sobre.js
wescleymatos/iRango
import React, { Component } from 'react'; import NavBar from './NavBar'; class Sobre extends Component { render() { return ( <div className="row"> <NavBar menu="sobre" /> <div className="col-lg-12"> <p>O projeto <strong>iRango</strong> faz parte da iniciativa Fullstack Academy - ...
app/containers/App.js
chrigu/braukontrol-react
// @flow import React, { Component } from 'react'; export default class App extends Component { props: { children: HTMLElement }; render() { return ( <div> {this.props.children} </div> ); } }
components/inline-script.js
kentcdodds/glamorous-website
import React from 'react' export default InlineScript function InlineScript({fn, vars}) { const code = toStringFn(fn, vars) return <script dangerouslySetInnerHTML={{__html: code}} /> } function toStringFn(fn, vars = {}) { return `(function(){${replaceAll(fn.toString(), vars)};${fn.name}()})()` } function repl...
src/components/navigation/NavBar.js
belaczek/BeerCheese-client
import React, { Component } from 'react'; import { Navbar, NavbarToggler, Collapse, Nav, NavItem, NavLink, NavbarBrand, Button } from 'reactstrap'; import { Link } from 'react-router'; import localizedTexts from '../../text_localization/LocalizedStrings'; import { css } from 'glamor'; import Cart from '...
examples/query-params/app.js
nottombrown/react-router
import React from 'react' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' const history = useBasename(createHistory)({ basename: '/query-params' }) class User extends React.Component { render() { let { userID } = this.props.params let { query } = thi...
src/index.js
vrunjeti/airvolution-client
import React from 'react' import { render } from 'react-dom' import './styles/styles.scss' class App extends React.Component { render() { return ( <div> <h1>HELLO WORLD</h1> </div> ) } } render( <App />, document.getElementById('app') )
test/e2e/nonce-head-manager/app/pages/csp.js
zeit/next.js
import React from 'react' import Head from 'next/head' const Page = () => { const [counter, setCounter] = React.useState(0) const [useSrc1, setUseSrc1] = React.useState(true) return ( <> <Head> <script nonce="abc123" src={useSrc1 ? '/src-1.js' : '/src-2.js'} /> </Head> <h1 id="h1">...
tests/baselines/reference/tsxStatelessComponentDefaultProps.js
RyanCavanaugh/TypeScript
//// [tsxStatelessComponentDefaultProps.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react'; interface Props { text: string; } function BackButton(_props: Props) { return <div /> } BackButton.defaultProps = { text: 'Go Back', }; let a = <BackButton /> //// [tsxStatelessComponen...
test/client.js
beedeez/reactjs-md-editor
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import Example from './views/example'; class App extends Component { render() { return (<Example />); } } ReactDOM.render(<App/>, document.getElementById('app'));
src/js/EmailConfirm/index.js
ludonow/ludo-beta-react
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import styled from 'styled-components'; import Dialog from 'material-ui/Dialog'; import Formsy from 'formsy-react'; import axios from '../axios-config'; import DiscardAlert from '../components/DiscardAlert'; import StepperCloseIco...
packages/react/src/components/Menu/MenuRadioGroup.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-types'; import MenuGroup from './MenuGroup'; import MenuRadioGroupOptions from './MenuRadioG...
src/app.js
TackleboxBeta/betabox-seed
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import feathers from 'feathers/client'; import hooks from 'feathers-hooks'; import rest from 'feathers-rest/client'; import socketio from 'feathers-socketio/client'; import authentication from 'feathers-authentication-client'; import io from ...
stories/SideBar/ExampleStandard.js
skyiea/wix-style-react
import React from 'react'; import SideBar from 'wix-style-react/SideBar'; const items = [ {title: 'Home', id: '1'}, {title: 'Submenu1', id: '2', children: [ {title: 'Submenu1.1', id: '2.1'}, {title: 'Submenu1.2', id: '2.2'}, {title: 'Submenu1.3', id: '2.3'} ]}, {title: 'Submenu2', id:...
react-flux-mui/js/material-ui/src/svg-icons/notification/event-available.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationEventAvailable = (props) => ( <SvgIcon {...props}> <path d="M16.53 11.06L15.47 10l-4.88 4.88-2.12-2.12-1.06 1.06L10.59 17l5.94-5.94zM19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 ...
ajax/libs/react-instantsearch/4.1.0-beta.5/Dom.js
pvnr0082t/cdnjs
/*! ReactInstantSearch 4.1.0-beta.5 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
packages/ringcentral-widgets/components/EntityButton/index.js
u9520107/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import Spinner from '../Spinner'; import Button from '../Button'; import styles from './styles.scss'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; export default function EntityButton({ clas...
packages/web/examples/SingleList/src/index.js
appbaseio/reactivesearch
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { ReactiveBase, SingleList, ReactiveList, SelectedFilters } from '@appbaseio/reactivesearch'; import './index.css'; class Main extends Component { render() { return ( <ReactiveBase app="good-books-ds" url="https://a03a1c...
src/search_bar.js
nikitadeshmukh02/testVsCode
import React, { Component } from 'react'; // const SearchBar =() => // { // return <input/>//React.createElement // } Functional Component Dump Component class SearchBar extends Component//Class Component Ability to comuniate other comp //and maintain state. Here extends Component gives SearchBar class bunch of func...
src/routes/chart/barChart/index.js
zhangjingge/sse-antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Row, Col, Card, Button } from 'antd' import Container from '../Container' import { BarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip, Legend, } from 'recharts' const data = [ { name: 'Page A', uv: 4000, pv: 2400, am...
packages/react-widgets/src/Footer.js
haneev/react-widgets
import React from 'react'; import PropTypes from 'prop-types'; import Button from './Button'; import { date as dateLocalizer } from './util/localizers'; import * as CustomPropTypes from './util/PropTypes'; const propTypes = { disabled: PropTypes.bool, readOnly: PropTypes.bool, value: PropTypes.instanceOf(Date), ...
components/astronautsList.js
maielo/techfides_interview
import React, { Component } from 'react'; import AstronautItem from './AstronautItem.js'; class AstronautsList extends Component { handleEditAstronaut ( astronaut ) { this.props.handleEditAstronaut( astronaut ); } handleRemoveAstronaut ( astronaut ) { this.props.handleRemoveAstronaut( a...
src/components/Html.js
MxMcG/tourlookup-react
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
actor-apps/app-web/src/app/components/common/AvatarItem.react.js
VikingDen/actor-platform
import React from 'react'; import classNames from 'classnames'; class AvatarItem extends React.Component { static propTypes = { image: React.PropTypes.string, placeholder: React.PropTypes.string.isRequired, size: React.PropTypes.string, title: React.PropTypes.string.isRequired }; constructor(pro...
src/utils/childUtils.js
w01fgang/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...
src/svg-icons/action/delete-forever.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
src/NavItem.js
apkiernan/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import SafeAnchor from './SafeAnchor'; import createChainedFunction from './utils/createChainedFunction'; const propTypes = { active: React.PropTypes.bool, disabled: React.PropTypes.bool, role: React.PropTypes.string, href: React.PropTypes.string...
game-new/src/utils/diff.js
d07RiV/d3planner
import React from 'react'; import { isPlainObject } from './common'; function firstKey(value) { const isArray = Array.isArray(value); if (isArray || isPlainObject(value)) { const items = (isArray ? value : Object.values(value)); for (let item in items) { const key = firstKey(item); if (key) ret...
examples/Pagination.js
15lyfromsaturn/react-materialize
import React from 'react'; import Pagination from '../src/Pagination'; export default <Pagination items={10} activePage={2} maxButtons={8}/>;
docs/src/app/components/pages/components/SvgIcon/ExampleSimple.js
ngbrown/material-ui
import React from 'react'; import {blue500, red500, greenA200} from 'material-ui/styles/colors'; import SvgIcon from 'material-ui/SvgIcon'; const iconStyles = { marginRight: 24, }; const HomeIcon = (props) => ( <SvgIcon {...props}> <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z" /> </SvgIcon> ); const SvgIco...
node_modules/antd/es/card/index.js
prodigalyijun/demo-by-antd
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; var __rest = this && this.__rest || function (s, e) { var t = {}; for (var p in s) { if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; }if (s != null && type...
examples/js/advance/disable-toastr-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { const id = startId + i; jo...
website/src/pages/Tutorials/react-basics.js
pshrmn/curi
import React from "react"; import { Link } from "@curi/react-dom"; import { TitledPlainSection, HashSection, HashAside, Paragraph, CodeBlock, Outline, Note, IJS, Cmp, CodeSandboxDemo, ScrollableTable } from "../../components/tutorial/common"; let demoMeta = { title: "Demo", hash: "demo" }; ...
src/svg-icons/device/signal-wifi-0-bar.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/> </SvgIcon> ); DeviceSignalWifi...
app/javascript/mastodon/components/autosuggest_input.js
Kirishima21/mastodon
import React from 'react'; import AutosuggestAccountContainer from '../features/compose/containers/autosuggest_account_container'; import AutosuggestEmoji from './autosuggest_emoji'; import AutosuggestHashtag from './autosuggest_hashtag'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from...
docs/app/Examples/elements/Label/Types/LabelExampleFloating.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon, Label, Menu } from 'semantic-ui-react' const LabelExampleFloating = () => ( <Menu compact> <Menu.Item as='a'> <Icon name='mail' /> Messages <Label color='red' floating>22</Label> </Menu.Item> <Menu.Item as='a'> <Icon name='users' /> Friends ...
src/routes/Blog/components/Blog.js
townmi/bis
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router'; import './Blog.scss'; class Blog extends Component { constructor(props) { super(props); this.init(); } init () { const id = this.props.params.id; this.props.location.state = "blog";...
stories/components/loadingbolt.stories.js
LN-Zap/zap-desktop
import React from 'react' import { storiesOf } from '@storybook/react' import { boolean } from '@storybook/addon-knobs' import { Page } from 'components/UI' import Loading from 'components/Loading' storiesOf('Components', module).addWithChapters('LoadingBolt', { subtitle: 'Animation to indicate application is loadin...
src/Paper/Paper.js
skystebnicki/chamel
/** * Paper is a concept taken from google Material design standards */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ThemeService from '../styles/ChamelThemeService'; /** * Small application component */ class Paper extends Component { /** * Set accepted properties *...
src/routes/Workshop/components/WorkshopView.js
eunvanz/handpokemon2
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import validator from 'validator' import { fromJS } from 'immutable' import keygen from 'keygenerator' import { findIndex } from 'lodash' import { toast } from 'react-toastify' import ContentContainer...
frontend/modules/browse/components/ListRecipes.js
rustymyers/OpenEats
import React from 'react' import PropTypes from 'prop-types'; import { Link } from 'react-router-dom' import Ratings from '../../recipe/components/Ratings'; require("./../css/list-recipes.scss"); const ListRecipes = ({ data, format }) => { const getRecipeImage = (recipe) => { if (recipe.photo_thumbnail) { ...
packages/@lyra/form-builder/src/utils/fallback-preview/PreviewArray.js
VegaPublish/vega-studio
// @flow import React from 'react' import {PreviewAny} from './PreviewAny' type Props = { value: Array<*>, maxDepth?: number, _depth?: number } export function PreviewArray(props: Props) { const {value, maxDepth = 4, _depth = 0, ...rest} = props if (_depth >= maxDepth) { return ( <span> Arr...
docs/app/Examples/elements/Header/Variations/HeaderExampleInverted.js
ben174/Semantic-UI-React
import React from 'react' import { Header, Segment } from 'semantic-ui-react' const HeaderExampleInverted = () => ( <Segment inverted> <Header as='h4' inverted color='red'>Red</Header> <Header as='h4' inverted color='orange'>Orange</Header> <Header as='h4' inverted color='yellow'>Yellow</Header> <Hea...
app/components/SiteProfitability/components/SiteProfitabilityChart1/Legend.js
tblazina/analytics_project
import React, { Component } from 'react'; import styles from './styles.css'; export default class Legend extends Component { legendBox(data, index) { const rectTranslate = `translate(0, ${index * 24})`; return ( <rect className={styles.rect} key={data} width={13} height=...
pwa/src/components/activities/index.js
cmilfont/biohacking
import React from 'react'; import { connect } from 'react-redux'; import actions from 'api/actions'; import List from './list'; class Container extends React.Component { state = { selectedDate: new Date, } componentDidMount() { this.props.fetchTodayActivities(); } handleDateChange = (selectedDate) ...
src/containers/HotDetail/component/ToolBar/ToolBar.js
MeetDay/dreampark-web
import React from 'react'; import PropTypes from 'prop-types'; export default class ToolBar extends React.Component { static propTypes = { price: PropTypes.number.isRequired, onClickBuyTicketNow: PropTypes.func.isRequired, onClickAddToCart: PropTypes.func, }; render() { con...
src/scenes/home/codeSchools/stateSortedSchools/stateSortedSchools.js
miaket/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Section from 'shared/components/section/section'; import Select from 'react-select'; import SchoolCard from 'shared/components/schoolCard/schoolCard'; import styles from './stateSortedSchools.css'; import stateOptions from './stateOpti...
app/components/pipeline/schedules/Form.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import Relay from 'react-relay/classic'; import FormTextField from '../../shared/FormTextField'; import FormTextarea from '../../shared/FormTextarea'; import ValidationErrors from '../../../lib/ValidationErrors'; class Form extends React.Component { sta...
modules/react-move/src/components/Move.js
socialtables/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; export class Move extends ReactCSS.Component { classes() { return { 'default': { outer: { opacity: this.props.inStartOpacity, transform: this.props.inStartTransform, transition: this.props.inSt...
client/src/js/components/Form.js
5ika/Toku
import React from 'react'; class Form extends React.Component { constructor(props) { super(props); this.state = { char_count: 0 }; this.onKeyUp = this.onKeyUp.bind(this); this.addPost = this.addPost.bind(this); } onKeyUp() { const length = $('.con...
web/src/Dashboard/Home/Team/Team.js
wasong/cmpt433
import React from 'react' import PropTypes from 'prop-types' import Radium from 'radium' import Divider from 'material-ui/Divider' import FlatCard from 'components/FlatCard' const styles = { title: { fontSize: 18, margin: '0 0 5px', color: '#b1b1b1', }, teamCard: { height: 500, margin: '0 40...
src/components/scientists.js
cosmowiki/cosmowiki
import React from 'react'; import Notes from './notes'; import LetterLinks from './chunks/letter-links'; import {Summary} from './chunks/summary'; const ScientistsComponent = ({groupedScientists}) => { const allFirstLetters = Object.keys(groupedScientists); const groupsIterable = allFirstLetters.map(key => grouped...
fields/types/numberarray/NumberArrayFilter.js
creynders/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const MODE_OPTIONS = [ { label: 'Exactly', value: 'equals' }, { label: 'Greater Than', value: 'gt' }, { label: 'Less Than', value: 'lt' }, { label: 'Between', value: 'between'...
src/svg-icons/social/plus-one.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPlusOne = (props) => ( <SvgIcon {...props}> <path d="M10 8H8v4H4v2h4v4h2v-4h4v-2h-4zm4.5-1.92V7.9l2.5-.5V18h2V5z"/> </SvgIcon> ); SocialPlusOne = pure(SocialPlusOne); SocialPlusOne.displayName = 'Social...
src/svg-icons/maps/terrain.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTerrain = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); MapsTerrain = pure(MapsTerrain); MapsTerrain.displayName = 'MapsTerr...
client/modules/users/components/loginUser.js
johngonzalez/abcdapp
import React from 'react'; import ReactDOM from 'react-dom'; import {FormControl, FormGroup, Button} from 'react-bootstrap'; class Login extends React.Component { static propTypes() { return { login: this.propTypes.func, error: this.propTypes.string }; } constructor(props) { super(props);...
src/Badge/index.js
reactivers/react-mcw
/** * Created by muratguney on 01/04/2017. */ import React from 'react' import PropTypes from 'prop-types'; import IconButton from '../IconButton' export default class Badge extends React.Component { static propTypes = { iconName: PropTypes.string, style: PropTypes.object, badgeStyle: Pr...
public/js/components/profile/ProfilePic.react.js
TRomesh/Coupley
import React from 'react'; import IconMenu from 'material-ui/lib/menus/icon-menu'; import MenuItem from 'material-ui/lib/menus/menu-item'; import IconButton from 'material-ui/lib/icon-button'; import RaisedButton from 'material-ui/lib/raised-button'; import MoreVertIcon from 'material-ui/lib/svg-icons/navigation/more-v...
app/javascript/mastodon/features/ui/components/media_modal.js
h3zjp/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl, FormattedMessage } fr...
src/universalRouter.js
soidid/we-vote-10
import React from 'react'; import Router from 'react-router'; import createRoutes from './views/createRoutes'; import { Provider } from 'react-redux'; const getFetchData = (component = {}) => { return component.WrappedComponent ? getFetchData(component.WrappedComponent) : component.fetchData; }; export func...
alarm/js/AddAlarm.js
leglars/wakeup
/** * Created by leglars on 2017/5/2. */ import React from 'react'; import { View, Text, StyleSheet, DatePickerIOS, Button, TouchableHighlight, TextInput, } from 'react-native'; import { Link } from 'react-router-native'; // connect to redux import ActionCreator from './redux/a...
src/svg-icons/device/signal-wifi-1-bar.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M6.67 14.86L12 21.49v.01...
src/utils/createContextWrapper.js
cgvarela/react-bootstrap
import React from 'react'; /** * Creates new trigger class that injects context into overlay. */ export default function createContextWrapper(Trigger, propName) { return contextTypes => { class ContextWrapper extends React.Component { getChildContext() { return this.props.context; } ...
Frontend/src/containers/signin_form.js
vinitraj10/Django-React-Blog
/* eslint-disable no-class-assign */ /* eslint-disable react/destructuring-assignment */ /* eslint-disable react/prop-types */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import { withRouter } from 'react-router-dom'; import { Field, reduxForm } from 'redux-form'; import { renderInp...
src/svg-icons/navigation/close.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose = pure(Navig...
src/main.js
vkurlyan/repogit
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // ======================================================== // Store Instantiation // ======================================================== const initialState...
examples/infinite-scrolling/config/react.js
lore/lore
/** * Configuration file for React * * This file is where you define overrides for the default mounting behavior. */ // import React from 'react'; // import ReactDOM from 'react-dom'; // import { Provider } from 'react-redux'; // import { Router } from 'react-router'; export default { /** * ID of DOM Elemen...