path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/notification/network-locked.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationNetworkLocked = (props) => ( <SvgIcon {...props}> <path d="M19.5 10c.17 0 .33.03.5.05V1L1 20h13v-3c0-.89.39-1.68 1-2.23v-.27c0-2.48 2.02-4.5 4.5-4.5zm2.5 6v-1.5c0-1.38-1.12-2.5-2.5-2.5S17 13.12 17 1...
src/utils/createPureComponent.js
stevenhauser/i-have-to-return-some-videotapes
import React from 'react'; import pureRenderMixin from 'react-addons-pure-render-mixin'; export function createPureComponent(proto) { return React.createClass({ mixins: [pureRenderMixin], ...proto }); };
node_modules/rc-slider/es/common/createSlider.js
ZSMingNB/react-news
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/help...
docs/examples/elements/Timeline.js
krebbl/react-svg-canvas
import React from 'react'; import Element from 'react-svg-canvas/Element'; import Text from 'react-svg-canvas/Text'; import Table from 'react-svg-canvas/Table'; import Milestone from './Milestone'; export default class Timeline extends Element { type = 'timeline'; static defaultProps = Object.assign({}, Element.d...
src/js/index.js
Fraina/React-Weather-Widget
require('../index.jade'); require('../css/application.sass'); import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from 'store/configureStore'; import App from 'containers/App'; const store = configureStore(); class Root extends Component { render() { return (...
app/javascript/mastodon/components/permalink.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
rekif/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
src/containers/SagaRef/SagaRef.js
redux-saga/redux-saga-devtools
import PropTypes from 'prop-types'; import React from 'react'; import styled from 'styled-components' import { withCapture } from '../../utils' import { connect } from 'react-redux' import { SET_SHARED_REF } from '../../store/constants' const SsagaRefContainer = styled.div` display: inline-block; cursor: pointer;...
docs/src/components/navbar.js
tapjs/node-tap
import React from 'react'; import {Flex} from 'rebass'; import styled from 'styled-components'; import {theme, breakpoints} from '../theme'; import hamburgerIcon from '../images/hamburger.svg'; import MobileNavbar from './mobileNavbar'; import NavLinks from './NavLinks'; import {Link as GatsbyLink} from 'gatsby'; cons...
app/components/ProgressBar/index.js
spiridonov-oa/management-tool
import React from 'react'; import ProgressBar from './ProgressBar'; function withProgressBar(WrappedComponent) { class AppWithProgressBar extends React.Component { constructor(props) { super(props); this.state = { progress: -1, loadedRoutes: props.location && [props.location.pathname]...
components/Animate/Sunrise.js
rdjpalmer/bloom
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import OnVisible from 'react-on-visible'; import cx from 'classnames'; import css from './Sunrise.css'; export default class Sunrise extends Component { static propTypes = { visible: PropTypes.bool, children: PropTypes.node, p...
project/src/scenes/Admin/Members/components/MemberCard/MemberCard.js
boldr/boldr
/* @flow */ import React from 'react'; import styled from 'styled-components'; import Button from '@boldr/ui/Button'; import Avatar from '@boldr/ui/Avatar'; import type { UserType } from '../../../../../types/boldr'; const MemListItem = styled.li` width: 100%; display: flex; margin-top: 10px; padding: 20px; ...
packages/ui-toolkit/src/tooltip/index.js
yldio/joyent-portal
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'styled-components'; import { Popper as BasePopper, Arrow } from 'react-popper'; import rndId from 'rnd-id'; import remcalc from 'remcalc'; import is from 'styled-is'; import style from './style'; const arrowClassName = r...
lib/site/help/sidebar/component.js
democracy-os-fr/democracyos
import React from 'react' import { Link } from 'react-router' import t from 't-component' import config from 'lib/config' const Sidebar = () => ( <div id='help-sidebar-container'> <div className='help-sidebar'> {Sidebar.articles.map((article, i) => ( <Link key={i} to={article.path}>{article.label}<...
test/utils/utils.js
skyiea/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; export const isClassExists = (element, className) => !!element && !!element.className.match(new RegExp('\\b' + className + '\\b')); // HOC that makes underlying component "controlled" export function makeControlled(Component) { return class Controlled...
src/Parser/Priest/Discipline/Modules/Items/Estel.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Atonement from '../Spell...
app/javascript/mastodon/features/ui/components/image_loader.js
sylph-sin-tyaku/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { LoadingBar } from 'react-redux-loading-bar'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, s...
entry_types/scrolled/package/src/frontend/inlineEditing/LayoutWithPlaceholder.js
tf/pageflow
import React from 'react'; import {LayoutWithoutInlineEditing} from '../layouts'; import {ContentElementInsertButton} from './ContentElementInsertButton'; import {useEditorSelection} from './EditorState'; import {postInsertContentElementMessage} from './postMessage'; export function LayoutWithPlaceholder(props) { c...
app/javascript/mastodon/features/follow_requests/components/account_authorize.js
dunn/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 '../../../...
client/bower_components/auth0-lock/src/i18n.js
jkennedy3161/flixview
import React from 'react'; import Immutable, { Map } from 'immutable'; import { format } from 'util'; import sync from './sync'; import * as l from './core/index'; import { dataFns } from './utils/data_utils'; const { get, set } = dataFns(['i18n']); import enDictionary from './i18n/en'; import { load, preload } from '....
lib/cli/generators/REACT_NATIVE/template/storybook/stories/index.js
nfl/react-storybook
/* eslint-disable import/no-extraneous-dependencies, import/no-unresolved, import/extensions */ import React from 'react'; import { Text } from 'react-native'; import { storiesOf } from '@storybook/react-native'; import { action } from '@storybook/addon-actions'; import { linkTo } from '@storybook/addon-links'; impo...
app/javascript/mastodon/features/ui/components/modal_loading.js
amazedkoumei/mastodon
import React from 'react'; import LoadingIndicator from '../../../components/loading_indicator'; // Keep the markup in sync with <BundleModalError /> // (make sure they have the same dimensions) const ModalLoading = () => ( <div className='modal-root__modal error-modal'> <div className='error-modal__body'> ...
docs/app/Examples/elements/Button/Types/ButtonExampleContentProp.js
shengnian/shengnian-ui-react
import React from 'react' import { Button } from 'shengnian-ui-react' const ButtonExampleContentProp = () => ( <Button content='Click Here' /> ) export default ButtonExampleContentProp
examples/todo/js/components/TodoApp.js
IlyasM/relayWorking
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ import AddTodoMut...
frontend/js/ui/table/index.js
roman901/Overheard
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import UITable from './component'; export default function (element) { ReactDOM.render( <UITable />, element ); };
src/scenes/UserConsole/scenes/WeatherStations/StationPanelContainer.js
adeira/connector-frontend
import React from 'react'; import StationPanel from './StationPanel'; import {connect} from 'react-redux'; const StationPanelContainer = class extends React.Component { render = () => { let {station} = this.props; if (!station) { // loading return null; } let lastRecord = station.records ? station.recor...
src/components/comment-list-item.component.js
dyesseyumba/git-point
// @flow /* eslint-disable no-nested-ternary */ import React, { Component } from 'react'; import { connect } from 'react-redux'; import styled from 'styled-components'; import { GithubHtmlView } from 'components'; import { Icon } from 'react-native-elements'; import ActionSheet from 'react-native-actionsheet'; import...
techCurriculum/ui/solutions/2.7/src/components/Card.js
jennybkim/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...
src/svg-icons/image/filter-8.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter8 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zm-8-2h2c1.1 0 2-.89 2-2v-1...
containers/App.js
jCarlosLopez/react-triple-triad
import React, { Component } from 'react'; import GameApp from './GameApp'; import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux'; import * as reducers from '../reducers'; const reducer = combineReducers(reducers); const store = createStore(reducer); export default class App exte...
stories/Loader/ExampleSizes.js
nirhart/wix-style-react
import React from 'react'; import Loader from 'wix-style-react/Loader'; const styles = { header: { display: 'flex', padding: '0 5x' }, button: { display: 'flex', flexDirection: 'column', justifyContent: 'center', height: '160px' }, text: { padding: '0 25px 0 5px' } }; export defa...
src/components/tcomb/TextInput.js
jeanlescure/detox-react-native-demo
/** * Text Input template for tcomb * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { View } from 'react-native'; // Components import { FormInput, FormLabel, FormValidationMessage } from '@ui/'; /* Component ================================...
src/store/createRoutes.js
neilff/smoker-js
import React from 'react'; import { Route } from 'react-router'; import App from 'containers/App'; import Dashboard from 'containers/Dashboard'; function createRoutes() { return ( <Route component={ App }> <Route path="/" component={ Dashboard } /> </Route> ); } export default createRoutes;
apps/root/action.js
fengzhike/acm_engine
import React from 'react' import { action as MetaAction, AppLoader } from 'mk-meta-engine' import config from './config' class action { constructor(option) { this.metaAction = option.metaAction this.config = config.current window.onhashchange = () => { const hash = document.loc...
pootle/static/js/auth/components/RequestPasswordResetForm.js
Finntack/pootle
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import assign from 'object-assign'; import React from 'rea...
src/components/WishItemsScreen.js
mstmustisnt/wishlist
/* * @providesModule WishItemsScreen * * */ import React from 'react'; import { observable, action } from 'mobx'; import { observer, inject } from 'mobx-react'; import { ListView, View, Alert } from 'react-native'; import { Container, Content, Text, Button, Card, CardItem, Fab, Icon, Body, List, ...
docs/src/app/components/pages/components/Dialog/ExampleModal.js
manchesergit/material-ui
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class DialogExampleModal extends React.Component { sta...
src/components/icons/ChevronDownIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const ChevronDownIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 100 100"> {props.title && <title>{props.title}</title>} <polygon points="71.21 32.32 50 53.54 28.79 32.32 21.72 39.39 50 67.68 78.28 39.39 71.21 32.32" /> </svg> )...
app/components/ClientListItemComponent.js
tjinauyeung/customization-requests-app
import React from 'react'; import ReactDOM from 'react-dom'; import moment from 'moment'; class ClientListItemComponent extends React.Component { shouldComponentUpdate() { return false; } handleClick(client) { //TODO Refactor Side effect document.querySelector('.container').scrollTop = 0; this.p...
admin/client/components/EditForm.js
nickhsine/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import ConfirmationDialog from './ConfirmationDialog'; import Fields from '../fields'; import FormHeading from './FormHeading'; import AltText from './AltText'; import FooterBar from './FooterBar'; import InvalidFieldType f...
blog/src/index.js
titusjin/reduxExp
<<<<<<< HEAD import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; import reducers from './reducers'; import routes from './routes'; import promise from 'redux-prom...
react/app/UserProfile.js
yogeshkhatri1989/hn
import React, { Component } from 'react'; import ReactFire from 'reactfire'; import DOMPurify from 'dompurify'; import Model from './Model'; class UserProfile extends Component { constructor(props) { super(props); this.state = {}; } componentWillMount() { ReactFire.componentWillMount.call(this); ...
lib/NavList/stories/BasicUsage.js
folio-org/stripes-components
/** * List Component: Basic Usage */ import React from 'react'; import NavList from '../NavList'; import NavListSection from '../../NavListSection'; import NavListItem from '../../NavListItem'; export default () => ( <div> <NavList> <NavListSection label="Settings" activeLink="#organization"> <N...
client/app/components/TodoTextInput.js
russll/facebook-starter-kit
/** * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNES...
examples/shopping-cart/src/components/CartContainer.js
colindresj/nuclear-js
import React from 'react' import Cart from '../../common/components/Cart' import reactor from '../reactor' import getters from '../getters' import actions from '../actions' export default React.createClass({ mixins: [reactor.ReactMixin], getDataBindings() { return { products: getters.cartProducts, ...
src/common/components/reduxed/Menu.js
ThinkingInReact/ThinkingInReact.xyz
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { openLoginForm } from 'actions//loginForm'; import { openBuyForm } from 'actions//buyForm'; import Links from 'content//Links.js'; class Menu extends Component { static defaultProps = ...
frontend/src/screens/landing/widgets/help/help.js
linea-it/qlf
import React from 'react'; import Paper from '@material-ui/core/Paper'; const styles = { container: { display: 'flex', justifyContent: 'center', }, main: { maxWidth: '70vw', height: 'calc(100vh - 223px)', overflowY: 'auto', hyphens: 'auto', wordWrap: 'break-word', fontSize: '1.2vw...
node_modules/react-router/es/IndexLink.js
LaurentEtienne/Kfe
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 createReactClass from 'crea...
app/components/Release.js
jackokerman/react-discogs-dj
import React from 'react'; import { Grid, Row, Col, Image } from 'react-bootstrap'; import ReleaseTitle from './ReleaseTitle'; import ReleaseHeader from './ReleaseHeader'; import TrackList from './TrackList.js'; export default class Release extends React.Component { render() { const { release } = this.props; ...
src/ButtonGroup.js
mcraiganthony/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import CustomPropTypes from './utils/CustomPropTypes'; const ButtonGroup = React.createClass({ mixins: [BootstrapMixin], propTypes: { vertical: React.PropTypes.bool, justified: React.PropTypes.b...
components/Progress.js
reneechar/React-Kanban
import React from 'react'; import ReactDOM from 'react-dom'; import {connect} from 'react-redux'; import {receiveTasks} from '../actions/kanbanActions'; import styles from './sass/items.scss'; import EditTask from './EditTask'; import EditButton from './EditButton'; import MoveQueueButton from './MoveQueueButton'; impo...
app/src/components/RSSPanels/RecentArticlesPanel.js
GetStream/Winds
import { Link } from 'react-router-dom'; import getPlaceholderImageURL from '../../util/getPlaceholderImageURL'; import { Img } from 'react-image'; import React from 'react'; import Panel from '../Panel'; import { connect } from 'react-redux'; import TimeAgo from '../TimeAgo'; import PropTypes from 'prop-types'; import...
src/js/components/Clickable.js
jhsu/spears-vr
import aframe from 'aframe'; import {Entity} from 'aframe-react'; import React from 'react'; const Clickable = React.createClass({ /* propTypes: { onMouseUp: React.PropTypes.func, onMouseDown: React.PropTypes.func, }, */ getDefaultProps() { return { onMouseDown: () => {}, onMouseUp: ...
app/features/quiz/QuizSession/QuizQuestion/Flyover.js
Kaniwani/KW-Frontend
import React from 'react'; import PropTypes from 'prop-types'; import getSrsRankName from 'common/utils/getSrsRankName'; import Icon from 'common/components/Icon'; import StreakIcon from 'common/components/StreakIcon'; import { SRS_RANKS } from 'common/constants'; import { white, orange, SRS_COLORS } from 'common/styl...
src/main.js
boyw165/react-vector-cross-product
import $ from 'jquery'; import React from 'react'; import App from './views/App'; $(function() { React.render( <App/>, document.getElementById('app') ); });
src/components/App.js
cedzz/react-redux-learn
import React from 'react' class Application extends React.Component { render() { return ( <div> <h1>WTF, React With Redux is awesome</h1> </div> ) } }; export default Application;
app/components/Home.js
jcarva/get_weather
import React from 'react' import GetCityContainer from '../containers/GetCityContainer' import Logo from './Logo' const Home = (props) => { return( <div id="home"> <Logo size="40%" title="Enter a City and Country" direction="column"/> <GetCityContainer/> </div> ) }; export default ...
src/Select.js
glowka/react-select
import React from 'react'; import ReactDOM from 'react-dom'; import Input from 'react-input-autosize'; import classNames from 'classnames'; import blacklist from 'blacklist'; import stripDiacritics from './utils/stripDiacritics'; import Async from './Async'; import Option from './Option'; import Value from './Value';...
docs/app/Examples/elements/Button/GroupVariations/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ButtonGroupVariationsExamples = () => ( <ExampleSection title='Group Variations'> <ComponentExample title='Vertical G...
admin/client/App/screens/List/components/ItemsTable/ItemsTableDragDrop.js
linhanyang/keystone
import React from 'react'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import { Sortable } from './ItemsTableRow'; import DropZone from './ItemsTableDragDropZone'; var ItemsTableDragDrop = React.createClass({ displayName: 'ItemsTableDragDrop', propTypes: { colum...
src/Form.js
greenteamer/form
import React, { Component } from 'react'; import ProfessionField from './ProfessionField'; import PhoneField from './PhoneField'; var professions = [ {id: 1, text: 'Парикмахерские услуги'}, {id: 2, text: 'Маникюр'}, {id: 3, text: 'Макияж', disabled: true}, {id: 4, text: 'Ремонтно-отделочные работы'}, {id: 5, tex...
frontend/src/Components/FileBrowser/FileBrowserModalContentConnector.js
lidarr/Lidarr
import _ from 'lodash'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { clearPaths, fetchPaths } from 'Store/Actions/pathActions'; import createSystemStatusSelector from 'Store/Selectors/createSystem...
stories/components/form/formCheckBox/index.js
tskuse/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import FormCheckBox from 'shared/components/form/formCheckBox/formCheckBox'; storiesOf('shared/components/form/formCheckBox', module) .add('Default', () => ( <FormCheckBox name="che...
entry_types/scrolled/package/src/frontend/inlineEditing/__stories__/EditableText-stories.js
tf/pageflow
import React from 'react'; import {DndProvider, useDrag} from 'react-dnd'; import {HTML5Backend} from 'react-dnd-html5-backend'; import {EditableText} from '../EditableText'; import {EditorStateProvider} from '../EditorState'; import {ContentElementEditorStateProvider} from '../ContentElementEditorStateProvider'; impo...
src/components/ReadingTime/index.js
fathomlondon/fathomlondon.github.io
import React from 'react'; import PropTypes from 'prop-types'; export function ReadingTime({ timeToRead }) { return ( <span title="Estimated read time"> {timeToRead === 1 ? '1 minute' : `${timeToRead} minutes`} read </span> ); } ReadingTime.propTypes = { timeToRead: PropTypes.number, };
web/client/configdev/src/config/Gpio.js
project-owner/Peppy
/* Copyright 2020-2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player 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 (at your option) a...
example/src/screens/types/LightBox.js
snapme/react-native-navigation
import React from 'react'; import {StyleSheet, View, Text, Dimensions, Button} from 'react-native'; class Lightbox extends React.Component { render() { return ( <View style={styles.container}> <View style={{flex: 8}}> <Text style={styles.title}>{this.props.title}</Text> <Text s...
src/components/onsen/ons-navigator/index.js
c58/onsenui-react
import invariant from 'invariant'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import StaticContainer from 'react-static-container'; import { isReactChildren } from 'react-router/lib/RouteUtils'; import { compilePattern } from 'react-router/lib/PatternUtils'; import getRouteParams ...
docs/app/Examples/elements/Rail/Types/RailExampleInternal.js
vageeshb/Semantic-UI-React
import React from 'react' import { Image, Rail, Segment } from 'semantic-ui-react' const RailExampleInternal = () => ( <Segment textAlign='center'> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail internal position='left'> <Segment>Left Rail Content</Segment> </Rail> ...
src/svg-icons/communication/screen-share.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationScreenShare = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.11-.9-2-2-2H4c-1.11 0-2 .89-2 2v10c0 1.1.89 2 2 2H0v2h24v-2h-4zm-7-3.53v-2.19c-2.78 0-4.61.85-6 2.72.56...
assets/javascripts/kitten/components/layout/grid/stories.js
KissKissBankBank/kitten
import React from 'react' import { Grid, GridCol } from './index' import { DocsPage } from 'storybook/docs-page' export default { title: 'Layout/Grid', component: Grid, decorators: [story => <div className="story-Container">{story()}</div>], parameters: { docs: { page: () => ( <DocsPage filep...
app/containers/LocaleToggle/index.js
belongapp/belong
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { selectLocale } from '../LanguageProvider/selectors'; import { changeLocale } from '../LanguageProvider/actions'; import { appLocales } from '../../i18n'; import { createSelector } from 'reselect'; import messages ...
src/svg-icons/action/lock.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
src/calendar.js
noahsug/input-moment
import cx from 'classnames' import injectSheet from 'react-jss' import blacklist from 'blacklist' import React from 'react' import range from 'lodash/range' import chunk from 'lodash/chunk' import color from 'color' const styles = theme => ({ weekHeader: { color: `${theme.colorPrimary} !important`, }, dayCel...
Code/V1/src/src/Start.js
neurotechuoft/MindType
import React, { Component } from 'react'; import SignUp from './SignUp'; import Login from './Login'; import logo from './welcome.png' class Start extends React.Component { constructor(props) { super(props); this.state = {display: 'welcome'}; this.handleLoginClick = this.handleLoginClick.bind(this)...
src/scripts/components/breadcrumb/Breadcrumb.component.js
kodokojo/kodokojo-ui-commons
/** * Kodo Kojo - Software factory done right * Copyright © 2017 Kodo Kojo (infos@kodokojo.io) * * 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 3 of the License, or * (at ...
src/components/Course/CoursesIndex.js
bibleexchange/be-front-new
import React from 'react'; import { Link } from 'react-router'; import { createFragmentContainer, graphql, } from 'react-relay/compat'; import CoursesWidget from './CoursesWidget'; import './CoursesIndex.scss'; class Index extends React.Component { componentWillMount(){ if(this.props.params.filter !==...
src/GodButtonExtermination.js
Visovsiouk/smite-random-picker
import React from 'react'; import { Button, Col } from 'react-bootstrap'; /*"Extermination"" button component*/ class GodButtonExtermination extends React.Component { constructor(props) { super(props); this.state = { exterminationActive: false }; this.handleExterminationclick = this.handleExterminationclic...
demo/src/ComplexDemo/PasswordForm.js
JoaoCnh/react-loki
import React from 'react'; import { withFormik } from 'formik'; import Yup from 'yup'; const PasswordForm = (props) => { const { // Formik HOC props values, touched, errors, isSubmitting, handleChange, handleBlur, handleSubmit, // Loki props ...
src/components/Time.js
chee/blogs
import React from 'react' const Time = ({date, ...props}) => { const dateObject = new Date(date) const dateTime = dateObject .toISOString() .replace(/...\..*/, '') .replace('T', ' ') const handsomeDate = dateObject .toDateString() .toLowerCase() return ( <time {...props} ...
packages/native/src/components/screens/budget/BudgetScreen.js
hwaterke/inab-native
import React from 'react'; import {View} from 'react-native'; import {MonthSelector} from './MonthSelector'; import {globalStyles} from '../../../constants/styles'; import {Banner} from '../../Banner'; import {BudgetList} from './BudgetList'; import {BudgetHeader} from './BudgetHeader'; export class BudgetScreen exten...
app/javascript/mastodon/features/account_timeline/components/header.js
gol-cha/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import InnerHeader from '../../account/components/header'; import ImmutablePureComponent from 'react-immutable-pure-component'; import MovedNote from './moved_note'; import { FormattedMessage } fro...
src/client/index.js
josebalius/react-isomorphic-starter
import React from 'react'; import Container from 'client/Container'; import {debugTools, store} from 'common/reduxInit'; React.render( <Container debugTools={debugTools} store={store} isServer={false} />, document.getElementById('root-view') );
node_modules/rc-calendar/es/date/DateTable.js
ZSMingNB/react-news
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import React from 'react'; import DateTHead...
src/index.js
Ameobea/noise-asmjs
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import injectTapEventPlugin from 'react-tap-event-plugin'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import store from './reducers'; import App from './App'; import { init } from 'src/interop'...
src/components/Footer/Footer/Footer.js
easingthemes/notamagic
import React from 'react'; import { IndexLink, Link } from 'react-router'; const Footer = () => ( <footer id="footer" className="footer-one center-block bg-light pt50 pb30"> <div className="container"> <div className="row"> <div className="col-md-3 col-xs-12 mb25"> <div className="navbar-brand-footer">...
packages/veritone-react-common/src/components/RefreshButton/index.js
veritone/veritone-sdk
import React from 'react'; import cx from 'classnames'; import IconButton from '@material-ui/core/IconButton'; import RefreshIcon from '@material-ui/icons/Refresh'; import { func, string, bool, shape, any } from 'prop-types'; import { withStyles } from '@material-ui/styles'; import styles from './styles/index'; class...
app/components/CardItem/DeleteButton.js
vlastoun/picture-uploader-crud
import React from 'react'; import PropTypes from 'prop-types'; import FlatButton from 'material-ui/FlatButton'; class DeleteButton extends React.Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } handleClick() { this.props.delete(this.props.id, this.props.title); ...
src/Containers/Disputes/DisputeResolution/Decision/index.js
kleros/kleros-front
import React from 'react' import Form from './Form' import './Decision.css' const Decision = props => { return ( <div className='Decision-container'> <div className='decision-header'> <h2>Your Decision</h2> <p>You have the following options:</p> </div> <div className='divider' /...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
mattydoincode/react-router
/*globals COURSES:true */ import React from 'react' import { Link } from 'react-router' class Sidebar extends React.Component { render() { let { assignments } = COURSES[this.props.params.courseId] return ( <div> <h3>Sidebar Assignments</h3> <ul> {assignments.map(assignment =>...
src/interface/home/Changelog/Panel.js
fyruna/WoWAnalyzer
import React from 'react'; import CORE_CHANGELOG from 'CHANGELOG'; import AVAILABLE_CONFIGS from 'parser/AVAILABLE_CONFIGS'; import Changelog from './index'; class ChangelogPanel extends React.PureComponent { constructor() { super(); this.state = { expanded: false, changelogType: 0, }; } ...
blueocean-material-icons/src/js/components/svg-icons/action/history.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionHistory = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9z...
server/sonar-web/src/main/js/apps/component-measures/home/AllMeasures.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
src/svg-icons/action/account-balance-wallet.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
node_modules/expo/src/LinearGradient.android.js
jasonlarue/react-native-flashcards
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { StyleSheet, View, processColor, requireNativeComponent, ViewPropTypes, } from 'react-native'; export default class LinearGradient extends Component { static propTypes = { start: PropTypes.oneOfType([ PropTypes...
component-starter-server/src/main/frontend/src/app/components/Schema/Schema.js
chmyga/component-runtime
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * 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...
src/components/Loader/index.js
unihackhq/skilled-acolyte-frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './index.scss'; class Loader extends React.Component { static propTypes = { noDelay: PropTypes.bool, inline: PropTypes.bool, } static defaultProps = { noDelay: false, inline: false, } ...
docs/src/pages/components/chips/OutlinedChips.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Avatar from '@material-ui/core/Avatar'; import Chip from '@material-ui/core/Chip'; import FaceIcon from '@material-ui/icons/Face'; import DoneIcon from '@material-ui/icons/Done'; const useStyles = makeStyles((theme) => ({ root: ...
graphwalker-studio/src/main/js/components/configpanel/element-group.js
KristianKarl/graphwalker-project
import React, { Component } from 'react'; import { connect } from "react-redux"; import { FormGroup, InputGroup, Switch, TextArea } from "@blueprintjs/core"; import { updateElement, setStartElement } from "../../redux/actions"; import Group from "./group"; class ElementGroup extends Component { render() { const ...
src/components/video_details.js
bashupoud/reactRedux
import React from 'react'; const VideoDetail=({video})=>{ if(!video){ return <div>Loading...</div>; } const videoId=video.id.videoId; //const url='https://youtube.com/embed/'+videoId; const url=`https://youtube.com/embed/${videoId}`; return( <div className="video-detail col-md-8"> <div classN...