path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/react-error-overlay/src/components/Collapsible.js
christiantinauer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Element as ReactElement } from '...
src/routes/Logged/screens/Match/Match.js
rlesniak/tind3r.com
// @flow import React, { Component } from 'react'; import { observer, inject } from 'mobx-react'; import { observable } from 'mobx'; import { Link } from 'react-router-dom'; import { Scrollbars } from 'react-custom-scrollbars'; import cx from 'classnames'; import ReactTooltip from 'react-tooltip'; import MessageStore...
src/parser/paladin/retribution/modules/features/Checklist/Component.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist2'; import Rule from 'parser/shared/modules/features/Checklist2/Rule'; import Requirement from 'parser/shared/modul...
app/javascript/mastodon/features/community_timeline/index.js
summoners-riftodon/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
examples/async-data/app.js
keathley/react-router
import React from 'react'; import { history } from 'react-router/lib/HashHistory'; import { Router, Route, Link, Navigation } from 'react-router'; import { loadContacts, loadContact, createContact } from './utils'; import AsyncProps from 'react-router/lib/experimental/AsyncProps'; var Spinner = React.createClass({ r...
src/svg-icons/action/perm-data-setting.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionPermDataSetting = (props) => ( <SvgIcon {...props}> <path d="M18.99 11.5c.34 0 .67.03 1 .07L20 0 0 20h11.56c-.04-.33-.07-.66-.07-1 0-4.14 3.36-7.5 7.5-7.5zm3.71 7.99c.02-.16.04-.32.04-.49 0-.17-.01-.33-.0...
app/javascript/mastodon/components/avatar_overlay.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; class AvatarOverlay extends React.PureComponent { static propTypes = { staticSrc: PropTypes.string.isRequired, overlaySrc: PropTypes.string.isRequired, }; render() { const { staticSrc, overlaySrc } = this.props; const baseStyle = {...
Practicas/TicTac2/app.js
tonkyfiero/React_Ejercicios
import React from 'react'; import ReactDOM from 'react-dom'; import Game from './componentes/Game.js'; ReactDOM.render(<Game />,document.getElementById('root'));
src/interface/report/Results/ScrollToTop/index.js
sMteX/WoWAnalyzer
import React from 'react'; import { ReactComponent as Logo } from 'interface/images/logo.svg'; // This has an elevator music easter egg that occurs randomly once every 5 times. // Lazy load it to minimize bundle impact. This whole joke has a tiny amount of overhead. let elevator; async function loadElevator() { ele...
src/state/route/PrivateRoute.js
dannegm/danielgarcia
import React from 'react'; import { Route, Redirect } from 'react-router-dom'; import useAuth from '@/shared/hooks/useAuth'; // eslint-disable-next-line react/prop-types const PrivateRoute = ({ component: Component, ...rest }) => { const { isLoading, isAuthorized } = useAuth(); if (isLoading) { retur...
tests/Rules-isUrl-spec.js
optiopay/optiopay-form
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
test/setup.js
pburtchaell/react-input
import React from 'react'; import { shallow, render, mount } from 'enzyme'; global.React = React; global.shallow = shallow; global.render = render; global.mount = mount;
src/js/index.js
geraldchecka/bco_react_example
/* Libraries */ import React from 'react'; import { render } from 'react-dom'; /* Components */ import { MobilesPage } from './views'; /* CSS */ import '../css/style.css'; const mountNode = document.getElementById("parent"); render(<MobilesPage />, mountNode);
fixtures/dom/src/components/fixtures/input-change-events/RangeKeyboardFixture.js
mhhegazy/react
import React from 'react'; import Fixture from '../../Fixture'; class RangeKeyboardFixture extends React.Component { constructor(props, context) { super(props, context); this.state = { keydownCount: 0, changeCount: 0, }; } componentDidMount() { this.input.addEventListener('keydown'...
app/react-native/src/preview/components/StoryView/index.js
shilman/storybook
import React, { Component } from 'react'; import { View, Text } from 'react-native'; import style from './style'; export default class StoryView extends Component { constructor(props, ...args) { super(props, ...args); this.state = { storyFn: null, selection: {} }; this.storyHandler = this.selectStory.bi...
fields/types/relationship/RelationshipFilter.js
lastjune/keystone
import React from 'react'; var { Button, FormField, FormInput, InputGroup, SegmentedControl } = require('elemental'); import PopoutList from '../../../admin/src/components/PopoutList'; const TOGGLE_OPTIONS = [ { label: 'Linked To', value: true }, { label: 'NOT Linked To', value: false } ]; const RELATED_ITEMS = [ ...
packages/bonde-admin/src/pages/admin/mobilizations/templates/choose-custom/page.js
ourcities/rebu-client
import React from 'react' import { FormattedMessage } from 'react-intl' import * as paths from '@/paths' import { PageTabLayout } from '@/mobilizations/components' import { TemplateSelectableList } from '@/mobilizations/templates/components' import { Loading } from '@/components/await' class TemplatesChooseCustomPage...
tests/react/useReducer_hook.js
mroch/flow
// @flow import React from 'react'; { React.useReducer(); // Error: function requires another argument. } function reducer(state, action) { switch (action.type) { case "reset": return { count: action.payload }; case "increment": return { count: state.count + 1 }; case "decrement": r...
src/index.js
stphnrdmr/booster-generator
import React from 'react' import ReactDOM from 'react-dom' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' ReactDOM.render(<App />, document.getElementById('root')) registerServiceWorker()
public/js/index.js
valmassoi/lunch-n-learn-front-end-16
import React from 'react' import ReactDOM from 'react-dom' import { Router, browserHistory } from 'react-router' import routes from './routes' // File is larger with Redux const app = document.getElementById('app') ReactDOM.render( <Router history={browserHistory} routes={routes} /> , app )
src/pages/data/Data.js
HeliumLau/Hoop-react
import React from 'react'; import { Link } from 'react-router'; import './Data.less' export default class Data extends React.Component { render() { return ( <div> <nav className="data-navigations"> <ul> <li><Link to="/app/data/NBA" ac...
src/components/ChartWrapper.js
springload/reusable-d3-charts
import React from 'react'; import ReactDOM from 'react-dom'; /** * React bridge to a D3 chart. */ export default React.createClass({ displayName: 'ChartWrapper', propTypes: { Chart: React.PropTypes.func.isRequired, data: React.PropTypes.arrayOf(React.PropTypes.shape({ date: React...
.storybook/preview.js
cofacts/rumors-site
import React from 'react'; import { addDecorator } from '@storybook/react'; import { ThemeProvider } from '@material-ui/core/styles'; import CssBaseline from '@material-ui/core/CssBaseline'; import { lightTheme } from '../lib/theme'; import '../components/app.css'; // Mock next/router // @see https://github.com/vercel...
src/pages/Layout.js
elstgav/stair-climber
import React from 'react' import Helmet from 'react-helmet' import Config from 'src/config' const Layout = ({ children }) => <div id="AppContainer"> <Helmet {...Config.app.head} /> {children} </div> Layout.propTypes = { children: React.PropTypes.object, } export { Layout }
client/components/settings/weboob/index.js
bnjbvr/kresus
import React from 'react'; import { connect } from 'react-redux'; import { translate as $t } from '../../../helpers'; import { get, actions } from '../../../store'; class WeboobParameters extends React.PureComponent { constructor(props) { super(props); this.handleToggleAutoMergeAccounts = this.ha...
src/containers/DevToolsWindow.js
matteoantoci/expense-tracker
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; export default createDevTools( <LogMonitor /> );
src/components/Home/AccountInfo.js
franciskim722/crypy
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; const formatCreatedTime = (time) => { return moment(time).format('MMM Do YYYY, h:mm a'); }; const depository = (account, i, time) => { const { balances, official_name, } = account; return ( <div className="...
react/exercises/part_09/src/components/App.js
jsperts/workshop_unterlagen
import React from 'react'; import PropTypes from 'prop-types'; import { Route, Switch } from 'react-router-dom'; import './App.css'; import Header from './Header'; import NavBar from './NavBar'; import EditContactContainer from '../containers/EditContact'; import AddContactContainer from '../containers/AddContact'; im...
app/screens/channel_info/channel_info_header.js
mattermost/mattermost-mobile
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import Clipboard from '@react-native-community/clipboard'; import PropTypes from 'prop-types'; import React from 'react'; import {intlShape} from 'react-intl'; import { Platform, Text, Touchable...
examples/src/components/Virtualized.js
mcls/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
assets/index.js
jmhooper/documentation_badge
import React from 'react'; import ReactDOM from 'react-dom'; import App from './src/components/app'; require('./sass/main.scss'); ReactDOM.render( React.createElement(App), document.getElementById('js-app'), // eslint-disable-line no-undef );
src/components/inputs/Textarea.js
mersocarlin/react-app-components
import React from 'react' const Textarea = ({ onChange, ...rest }) => ( <textarea onChange={ev => onChange && onChange(ev.target.value, ev)} {...rest} /> ) export default Textarea
Cordial/app/containers/contact-container.js
AwesomePossum446/Cordial
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { View } from 'react-native'; import CardContainer from '../containers/card-container'; class ContactContainer extends Component { render() { // TODO: This assumes user only has one card return ( <View style={{flex...
app/jsx/assignments_2/teacher/components/Overrides/Override.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/HeightUpdater.js
manufont/react-swipeable-bottom-sheet
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class HeightUpdater extends Component { constructor(props){ super(props); this.onWindowResize = this.onWindowResize.bind(this); } onWindowResize(){ const height = window.innerHeight; if(height !== this.props.height){ this.pr...
src/components/FacebookTokenButton/index.js
korabh/quran.com-frontend
import React from 'react'; import { connect } from 'react-redux'; import { generateShareIcon } from 'react-share'; import { save } from 'redux/actions/auth'; import { push } from 'react-router-redux'; const styles = require('./style.scss'); const FacebookIcon = generateShareIcon('facebook'); const FacebookTokenButto...
src/routes/UIElement/iconfont/index.js
IssaTan1990/antd-admin
import React from 'react' import { Iconfont } from '../../../components' import { Table, Row, Col } from 'antd' import styles from './index.less' const iconlist = ['Cherry', 'Cheese', 'Bread', 'Beer', 'Beet', 'Bacon', 'Banana', 'Asparagus', 'Apple'] const IcoPage = () => <div className="content-inner"> <ul classNam...
Cordial/app/components/read-only-field.js
AwesomePossum446/Cordial
import React, { Component } from 'react'; import { View } from 'react-native'; import AutoLinkText from './auto-link-text'; export default class ReadOnlyField extends Component { render() { const {style, textStyle, value} = this.props; return ( <View style={style}> <AutoLinkText style={textStyle} numberOfL...
src/svg-icons/av/library-music.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
tech_stack/src/components/common/Input.js
dunkvalio/ReactNative
import React from 'react'; import { TextInput, View, Text } from 'react-native'; const Input = ({ label, value, onChangeText, placeholder, secureTextEntry }) => { const { inputStyle, labelStyle, containerStyle } = styles; return ( <View style={containerStyle}> <Text style={labelStyle}>{label}</Text> ...
src/routes/error/index.js
tigaly/antd-admin
import React from 'react' import { Icon } from 'antd' import styles from './index.less' const Error = () => <div className="content-inner"> <div className={styles.error}> <Icon type="frown-o" /> <h1>404 Not Found</h1> </div> </div> export default Error
examples/todos/src/index.js
lifeiscontent/redux
import React from 'react' import { render } from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import App from './components/App' import reducer from './reducers' const store = createStore(reducer) render( <Provider store={store}> <App /> </Provider>, document.getEle...
app/containers/CurrentTrack.js
jvelezpo/payfully-test
import React, { Component } from 'react'; import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import { getUserCurrentPlayback } from '../actions/index'; class CurrentTrack extends Component { constructor(props) { super(props) this.props.getUserCurrentPlayback() } render() { ...
src/js/components/header/devicenotifications.js
michaelatmender/gui
import React from 'react'; import { Link } from 'react-router-dom'; import pluralize from 'pluralize'; // material ui import DeveloperBoardIcon from '@mui/icons-material/DeveloperBoard'; import { MenderTooltipClickable } from '../common/mendertooltip'; const DeviceNotifications = ({ total, limit, pending }) => { c...
modules/IndexLink.js
hgezim/react-router
import React from 'react' import Link from './Link' const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
scripts/JSXExample.js
iest/react-explainer
import React from 'react'; const IMG_URL = 'http://www.placecage.com/250/300'; export default React.createClass({ render() { const hmm = true; return ( <div> <strong>Hello, from JSX!</strong> <p> One slightly annoying thing that still trips me up from time to time is that t...
src/components/iconWell.js
RadLikeWhoa/radlikewhoa.github.io
import React from 'react' import PropTypes from 'prop-types' const IconWell = ({ title, path, pattern, background, icon }) => ( <a href={path} className="project-link"> <div className="icon-well" data-pattern={pattern} style={{ backgroundColor: background }}> <img src={ico...
src/js/components/Pua/PuaMainScene2.js
FlexingDream/start_screen
import 'aframe'; import 'babel-polyfill'; import {Animation, Entity, Scene} from 'aframe-react'; import React from 'react'; import ReactDOM from 'react-dom'; import 'aframe-layout-component'; import Camera from './components/Camera'; import Cursor from './components/Cursor'; import Sky from './components/Sky'; import F...
frontend/src/components/common/Time.js
jf248/scrape-the-plate
import React from 'react'; import classNames from 'classnames'; import { withStyles } from '@material-ui/core'; import { formatMins } from 'utils'; const styles = () => ({ root: {}, }); Time.defaultProps = { component: 'span', }; function Time(props) { const { classes, className: classNameProp, co...
site/src/components/VisuallyHidden.js
sapegin/mrm
import React from 'react'; import PropTypes from 'prop-types'; import styles from './VisuallyHidden.module.css'; export const VisuallyHidden = ({ children, as: Component = 'span', ...rest }) => ( <Component className={styles.visuallyHidden} {...rest}> {children} </Component> ); VisuallyHidden.propTypes = { ch...
src/svg-icons/editor/format-color-reset.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12...
docs/app/Examples/elements/List/Types/ListExampleBulletedHorizontal.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleBulletedHorizontal = () => ( <List bulleted horizontal> <List.Item as='a'>About Us</List.Item> <List.Item as='a'>Sitemap</List.Item> <List.Item as='a'>Contact</List.Item> </List> ) export default ListExampleBulletedHor...
fixtures/attribute-behavior/src/App.js
prometheansacrifice/react
import React from 'react'; import {createElement} from 'glamor/react'; // eslint-disable-line /* @jsx createElement */ import {MultiGrid, AutoSizer} from 'react-virtualized'; import 'react-virtualized/styles.css'; import FileSaver from 'file-saver'; import { inject as injectErrorOverlay, uninject as uninjectError...
src/index.js
mojo706/bajeti
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/js/components/App.js
nathanbrennan/redux-async-example
import React from 'react' const App = () => <div>Hello World!</div> export default App
src/routes/index.js
nielsrowinbik/react-boilerplate
import Helmet from 'react-helmet'; import React from 'react'; import Route from 'components/Route'; import { Switch } from 'react-router-dom'; const Head = () => ( <Helmet titleTemplate="%s — openSEA" defaultTitle="openSEA" /> ); const MainRoutes = (props) => ( <div id="app"> <Head /> <Switch> <Route pa...
examples/example-react-native/index.android.js
rofrischmann/fela
import React from 'react' import { AppRegistry } from 'react-native' import { createRenderer } from 'fela-native' import { Provider } from 'react-fela' import App from './App' const renderer = createRenderer() const wrappedApp = () => ( <Provider renderer={renderer}> <App /> </Provider> ) AppRegistry.regist...
src/components/common/layouts/Container/Container.js
AlbertFazullin/redux-form-demo
import React from 'react'; import s from './container.pcss'; export default props => ( <div className={ s.wrapper }> { props.children } </div> ); export const Header = props => ( <header className={ s.wrapper__header } > { props.children } </header> ); export const Content = props => ( <div classNa...
docs/app/Examples/elements/Segment/Types/SegmentExampleSegment.js
ben174/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleSegment = () => ( <Segment> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentExampleSegment
src/routes/RegisterStore/components/index.js
EvanGee/ReduxApp
import React from 'react' import PropTypes from 'prop-types' import SignUpForm from "./SignUpForm" export const Page = ({setInfo, info}) => ( <div style={{ margin: '0 auto' }} > <h2>Register your store now! </h2> <SignUpForm/> {info} </div> ) Page.propTypes = { setInfo: PropTypes.func.isRequired, } ...
components/com_sppagebuilder/assets/reactjs/src/components/ColumnLayout.js
hoangyen201201/TrienLamOnline
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import LinkWithTooltip from '../helpers/tooltip'; import { Dropdown, MenuItem, FormControl } from 'react-bootstrap'; import { connect } from 'react-redux'; class ColumnLayout extends Component { constructor(props) { super(props); th...
features/homePage/views/navbar.js
zymokey/mission-park
import React from 'react'; import {Link} from 'react-router'; import { deAuthenticateUser, leaveChatRoom } from '../../../utils'; class Navbar extends React.Component { render(){ return( <nav className="app-navbar navbar navbar-default"> <div className="container-fluid"> <div className="navbar-header...
generators/app/templates/app/components/_App.js
leanne1/leanne1-yeoman
import React, { Component } from 'react'; export default class App extends Component { static propTypes = { children: React.PropTypes.node } render() { const { children } = this.props; return ( <div> { children } </div> ); } }
client/main.js
jacob-ebey/DashboardTemplate
import React from 'react'; import { render } from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { AppContainer } from 'react-hot-loader'; import App from './App'; // Needed for onTouchTap // http://stackoverflow.com/a/34015469/988941 injectTapEventPlugin(); render( <AppContainer> ...
app/javascript/mastodon/features/compose/components/poll_button.js
tri-star/mastodon
import React from 'react'; import IconButton from '../../../components/icon_button'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ add_poll: { id: 'poll_button.add_poll', defaultMessage: 'Add a poll' }, remove_poll: { id: 'poll_button...
client/modules/users/components/.stories/settings_password_forgot.js
kaibagoh/PitchSpot
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { setComposerStub } from 'react-komposer'; import SettingsPasswordForgot from '../settings_password_forgot.jsx'; storiesOf('users.SettingsPasswordForgot', module) .add('default view', () => { return ( <SettingsPassword...
redux-fly-mrefrem/src/index.js
slorber/scalable-frontend-with-elm-or-redux
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import { createStore, compose } from 'redux' import { Provider } from 'react-redux' import { enhanceStore } from 'redux-fly' import 'babel-polyfill' const composeEnhancers = typeof window === 'object' && window.__REDUX_DEVTOOLS_EXTE...
examples/client/routes.js
ninja/ninja
import {ArcExamples} from './components/arc'; import {IconExamples} from './components/icon'; import {IndexRoute, Route} from 'react-router'; import React from 'react'; import {Welcome} from './components/welcome'; export const routes = ( <Route path="/"> <IndexRoute component={Welcome}/> <Route component={A...
src/svg-icons/editor/format-textdirection-r-to-l.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatTextdirectionRToL = (props) => ( <SvgIcon {...props}> <path d="M10 10v5h2V4h2v11h2V4h2V2h-8C7.79 2 6 3.79 6 6s1.79 4 4 4zm-2 7v-3l-4 4 4 4v-3h12v-2H8z"/> </SvgIcon> ); EditorFormatTextdirectionRTo...
src/pages/index.js
j2xx/netease-music-h5
import React, { Component } from 'react'; import TabBar from '../containers/tab_bar'; export class App extends Component{ render() { return <div> {this.props.children} <div style={{height: '1rem'}}></div> <TabBar router={this.props.router}/> </div> } } export class PageNotFound extends...
src/js/components/Nav/stories/Collapsable.js
HewlettPackard/grommet
import React from 'react'; import { Anchor, Box, Header, Menu, Nav, ResponsiveContext } from 'grommet'; const CollapsableNav = () => ( // Uncomment <Grommet> lines when using outside of storybook // <Grommet theme={...}> <Header background="dark-1" pad="medium"> <Box direction="row" align="center" gap="smal...
src/components/DataTable/TableExpandRow.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * 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 cx from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import ChevronRight16 from '@carbon/icons-react/l...
react-ui/src/containers/StackOverflowBadges/StackOverflowBadges.js
hokustalkshow/find-popular
import React, { Component } from 'react'; import { Nav } from 'react-bootstrap'; import SortNavbar from '../../components/SortNavbar/SortNavbar'; import NavDropdownComponent from '../../components/NavDropdownComponent/NavDropdownComponent'; import { badgeMenuItems } from './menuItems'; import { bindActionCreators } fro...
stories/Card.js
LeagueDevelopers/react-hextech
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import { Card } from '../src'; storiesOf('Card', module).add('with text', () => ( <Card onClick={action('card-click')} /> ));
src/utils/CustomPropTypes.js
PeterDaveHello/react-bootstrap
import React from 'react'; const ANONYMOUS = '<<anonymous>>'; const CustomPropTypes = { isRequiredForA11y(propType){ return function(props, propName, componentName){ if (props[propName] === null) { return new Error( 'The prop `' + propName + '` is required to make ' + componentName + ' ...
src/svg-icons/action/room.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRoom = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z...
src/parser/paladin/holy/modules/talents/AuraOfSacrificeLivesSaved.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import fetchWcl from 'common/fetchWclApi'; import SpellIcon from 'common/SpellIcon'; import Analyzer from 'parser/core/Analyzer'; import LazyLoadStatisticBox, { STATISTIC_ORDER } from 'interface/others/LazyLoadStatisticBox'; import AuraOfSacrificeDamageRed...
packages/icons/src/md/action/PermCameraMic.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPermCameraMic(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M40 10c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H26v-4.18c5.67-.96 10-5.89 10-11.82h-4c0 4.41-3.59 8-8 8s-8-3.59-8-8h-4c0 5.93 4.33 10.86 10 11.82...
addons/themes/x-landing/includes/Sidebar.js
rendact/rendact
import React from 'react' const Sidebar = React.createClass({ render: function() { return ( <div className="col-md-4 new-section"> <div className="sidebar-grid wow fadeInUpBig animated" data-wow-delay="0.4s"> {this.props.getWidgets('Sidebar')} </div> </div> ) } }); export default Sidebar
src/index.js
michaelmilessmith/pizza-requirement-calculator
// @flow import App from './Components/App' import React from 'react' import ReactDOM from 'react-dom' import { createStore } from 'redux' import { Provider } from 'react-redux' import reducer from './reducer' const store = createStore( reducer, window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTE...
src/js/client.js
siunegu/react-fullstack-node-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './app.js'; import '../css/master.scss'; ReactDOM.render( <App/>, document.getElementById('root') )
src/browser/modules/Stream/SysInfoFrame/sysinfo-utils.js
akollegger/neo4j-browser
/* * Copyright (c) 2002-2020 "Neo4j," * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or ...
src/renderer/components/Wrapper/index.js
BeatPlus/Protonmail
import React from 'react'; import PropTypes from 'prop-types'; import styles from './styles.scss'; const Wrapper = ({ children }) => <div className={styles.container}> {children} </div>; Wrapper.propTypes = { children: PropTypes.node.isRequired, }; export default Wrapper;
imports/ui/components/CourseCreation.js
hanstest/hxgny
import { Meteor } from 'meteor/meteor' import React from 'react' import _ from 'lodash' import { Grid, Button, Header, Form, Modal, Table } from 'semantic-ui-react' import { insertCourse } from '../../api/courses/methods' import { stripId } from '../../api/data/utils' class CourseCreation extends React.Component { s...
src/App.js
Nymoth/aws-quiz
import React, { Component } from 'react'; import { Route, HashRouter } from 'react-router-dom' import getQuestions from './services/questions' import Layout from './components/Layout/'; import Home from './scenes/Home/'; import List from './scenes/List/'; import Quiz from './scenes/Quiz/'; import './App.css'; class A...
src/components/PasswordInput/PasswordInput.js
emanualjade/react-jade
import React from 'react'; import PropTypes from 'prop-types'; import ProgressBar from '../ProgressBar'; import EyeIcon from '../EyeIcon'; import TextInput from '../TextInput'; /** Password input with integrated label, quality tips, and show password toggle. */ class PasswordInput extends React.Component { construct...
frontend/src/components/partners/profile/modals/updateObservationSanction/updateSanctionObservationModal.js
unicef/un-partner-portal
import R from 'ramda'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { submit } from 'redux-form'; import { withRouter } from 'react-router'; import ControlledModal from '../../../../common/modals/controlledModal'; import { updatePartnerFlags...
react/features/filmstrip/components/web/ThumbnailWrapper.js
gpolitis/jitsi-meet
/* @flow */ import React, { Component } from 'react'; import { shouldComponentUpdate } from 'react-window'; import { getSourceNameSignalingFeatureFlag } from '../../../base/config'; import { getLocalParticipant } from '../../../base/participants'; import { connect } from '../../../base/redux'; import { shouldHideSelfV...
src/client/components/pages/entities/related-collections.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2021 Akash Gupta * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distr...
docs/components/components/SpinnerDocumentation.js
nikgraf/belle
import React from 'react'; import { Button, Card, Spinner } from 'belle'; import Code from '../Code'; import { propertyNameStyle, propertyDescriptionStyle } from '../../style'; const basicCodeExample = `<!-- basic spinner example --> <Spinner />`; const buttonCodeExample = `<!-- loading button example --> <Button pri...
src/svg-icons/image/brightness-4.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness4 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13...
src/js/ui/components/currency.js
hiddentao/heartnotes
import React from 'react'; import Classnames from 'classnames'; module.exports = React.createClass({ propTypes: { value: React.PropTypes.number.isRequired, currencyCode: React.PropTypes.string.isRequired, numDecimals: React.PropTypes.number, className: React.PropTypes.string }, getDefaultProps...
src/components/play/d3/D3.js
AndrewZures/ixora
import React, { Component } from 'react'; export default class D3 extends Component { render() { return ( <div> {this.props.children} </div> ); } }
ajax/libs/react-instantsearch/4.1.1/Connectors.js
jdh8/cdnjs
/*! ReactInstantSearch 4.1.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
src/components/app.js
aubinlrx/flux-react-boilerplate
import React from 'react'; export default class App { render() { return ( <h1>Hello World!!!</h1> ); } }
src/svg-icons/image/exposure.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageExposure = (props) => ( <SvgIcon {...props}> <path d="M15 17v2h2v-2h2v-2h-2v-2h-2v2h-2v2h2zm5-15H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM5 5h6v2H5V5zm15 15H4L20 4v16z"/> </...
ui/kirk/src/Routes/index.js
socx/Kirk
import React from 'react'; import { Route } from 'react-router-dom'; import Login from '../Login'; import Logout from '../Login/Logout'; import ForgotPassword from '../Login/ForgotPassword' import Home from '../Home'; import Contact from '../Contact'; import Dashboard from '../Dashboard'; import Finance from '../Finan...
assets/src/components/DmIcon/index.js
mmillet/mock-server
import React from 'react'; import classnames from 'classnames'; const DmIcon = React.createClass({ render() { var props = {...this.props}; props.className = classnames(`dm-icon dm-icon-${props.type}`, props.className); return <i {...props}></i>; } }); export default DmIcon;
client/src/containers/drived_counters_table/DrivedCountersTable.js
thewizardplusplus/vk-group-stats
import React from 'react' import {fetchCounters} from '../../actions/counters' import {connect} from 'react-redux' import StatefulCountersTable from '../../components/stateful_counters_table/StatefulCountersTable' function mapStateToProps(state, ownProps) { const group = state.groups.items.find(group => { return...
src/main.js
MaayanLab/L1000
import React from 'react'; import ReactDOM from 'react-dom'; import { createHistory } from 'history'; import { useRouterHistory } from 'react-router'; import Modal from 'react-modal'; import makeRoutes from './routes'; import Root from 'containers/Root'; import configureStore from 'store/configureStore'; import { load...