path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/svg-icons/device/signal-wifi-2-bar.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi2Bar = (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="M4.79 12.52l7.2 8.98H12l...
gbe/resources/assets/js/components/DetailLevelButtonPanel.js
DemocracyApps/GBE
/* React component to create an 'Account Type' panel of buttons for the 'page toolbar' of the app. */ import React from 'react'; var dispatcher = require('../common/BudgetAppDispatcher'); var stateStore = require('../stores/StateStore'); var ActionTypes = require('../constants/ActionTypes'); var ButtonPanel = requ...
docs/src/components/home/whyTap.js
isaacs/node-tap
import React from 'react'; import styled from 'styled-components'; import EncircledImage from '../EncircledImage'; import questionMark from '../../images/question-mark-2.gif'; const Content = styled.div` max-width: 700px; margin: auto; padding: 40px 20px 20px; `; const WhyTap = ({markdownData}) => { return( ...
stories/components/form/formPassword/index.js
NestorSegura/operationcode_frontend
import React from 'react'; import { storiesOf } from '@storybook/react'; import FormPassword from 'shared/components/form/formPassword/formPassword'; storiesOf('shared/components/form/formPassword', module) .add('Default', () => ( <FormPassword label="password" /> ));
docs/src/examples/modules/Popup/States/PopupExampleDisabled.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const PopupExampleDisabled = () => ( <Popup content='I will not render.' disabled trigger={<Button content='Button' />} /> ) export default PopupExampleDisabled
src/components/Html.js
Frenzzy/react-starter-kit
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
src/components/views/auth/VectorAuthFooter.js
vector-im/riot-web
/* Copyright 2015, 2016 OpenMarket Ltd Copyright 2019 New Vector Ltd 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 la...
logspace-frontend/src/main/modules/dashboards/components/DashboardsPage.react.js
Indoqa/logspace
// @flow import React from 'react' import MainMenuPage from '../../../commons/components/templates/MainMenuPage.react' class DashboardsPage extends React.Component { render() { return ( <MainMenuPage title="Dashboards" /> ) } } export default DashboardsPage
stories/RichTextAreaComposite/index.js
nirhart/wix-style-react
import React from 'react'; import {storiesOf} from '@kadira/storybook'; import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample'; import Markdown from '../utils/Components/Markdown'; import ReadMe from '../../src/RichTextAreaComposite/README.md'; import RichTextAreaCompositeExample from './RichT...
app/javascript/mastodon/features/community_timeline/index.js
esetomo/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshCommunityTimeline, ...
src/QuestionGroup.js
arunchaganty/briefly
import React, { Component } from 'react'; import {Panel, Glyphicon, Form, FormGroup, ToggleButton, ToggleButtonGroup, Col, ControlLabel} from 'react-bootstrap'; import './QuestionGroup.css' // Represents a dynamic question group. class QuestionGroup extends Component { render() { let elems = this.props.questio...
frontend/src/Settings/ImportLists/ImportListExclusions/ImportListExclusionsConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { deleteImportExclusion, fetchImportExclusions } from 'Store/Actions/settingsActions'; import ImportListExclusions from './ImportListExclusions'; functi...
packages/wix-style-react/src/Tabs/core/withItemMaxWidth/index.js
wix/wix-style-react
import React from 'react'; import * as TabPropTypes from '../constants/tab-prop-types'; import { getWidth } from '../utils'; const withMaxWidth = WrappedComponent => { const getMaxWidth = (items, containerWidth) => { const COMPACT_SIDE_MARGIN = 18; const marginsBetweenItems = COMPACT_SIDE_MARGIN * 2 * (item...
packages/ringcentral-widgets/components/TextInput/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; class TextInput extends Component { constructor(props) { super(props); this.state = { value: props.value, }; this.input = null; } componentW...
app/javascript/mastodon/components/display_name.js
KnzkDev/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; export default class DisplayName extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, others: ImmutablePropTypes.list, localDomain: PropTyp...
web_client/client-src/components/song_card.js
RadioPi/RadioPi
import React, { Component } from 'react'; import deletePicture from '../img/delete.png'; export default class SongCard extends Component { constructor(props) { super(props); } render() { var button; if(this.props.buttonPic !== undefined){ var button = (<td> <a href="" data={this.props.queuePos} onCl...
src/www/js/form-fields/text-input.js
nickolusroy/react_dnd
import React from 'react'; /** * TextInput(); * * Params: * * @param {string} type - type attribute for input element ("text" || "paragraph") * @param {string} name - name attribute for input element * @param {string} label - text label for element * @param {function} onChange - function to execute when the...
web/src/components/UserLoginComponent.js
undemaduc/undemaduc
import React, { Component } from 'react'; // import { Link } from 'react-router'; // import autoBind from 'react-autobind'; import LoginButtonComponent from './LoginButtonComponent'; class UserLoginComponent extends Component { constructor(props) { super(props); // autoBind(this); } login...
packages/ui/src/components/RatingIndicator.js
dino-dna/donut
import React from 'react' import { number } from 'prop-types' const RatingIndicator = ({ rating }) => { let emoji let label if (rating > 6 / 7) { emoji = '😎' label = 'great' } else if (rating > 5 / 7) { emoji = '🙂' label = 'good' } else if (rating > 4 / 7) { emoji = '😐' label = 's...
information/blendle-frontend-react-source/app/modules/deepdive/components/ItemInfoBar/index.js
BramscoChill/BlendleParser
import React from 'react'; import { string, number, bool } from 'prop-types'; import { pure } from 'recompose'; import { getProviderLogoUrl } from 'helpers/providerHelpers'; import { formatCurrency, translate } from 'instances/i18n'; import { Rows, Columns, CheckIcon } from '@blendle/lego'; import CSS from './style.scs...
app/addons/documentation/routes.js
garrensmith/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
src/components/aboutTop.js
ckwong93/TailsFromTheCrypt
import React, { Component } from 'react'; import sr from './scrollReveal.js' export default class AboutTop extends Component { props: Props; componentDidMount = () => { const config_title = { origin: 'top', duration: 500, delay: 150, distance: '300px', scale: 1, ...
src/svg-icons/action/lock-open.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLockOpen = (props) => ( <SvgIcon {...props}> <path d="M12 17c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm6-9h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6h1.9c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2H6c-1.1 ...
src/components/molecules/FileComment/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react'; import styled from 'styled-components'; import {Link, TitleSection, HomeTitle} from 'components'; import {Grid, Row, Col} from 'react-flexbox-grid'; import { Card, CardActions, CardHeader, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import FlatButton from 'material-u...
js/AppNavigator.js
yasster/Divide-react-native
import React, { Component } from 'react'; import { BackAndroid, StatusBar, NavigationExperimental } from 'react-native'; import { connect } from 'react-redux'; import { Drawer } from 'native-base'; import { actions } from 'react-native-navigation-redux-helpers'; import { closeDrawer } from './actions/drawer'; import...
src/docs/components/TextInputDoc.js
grommet/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import TextInput from 'grommet/components/TextInput'; import Form from 'grommet/components/Form'; import FormField from 'grommet/components/FormField'; import DocsArticle from '../../components/DocsArticle'; ...
packages/docs/components/Examples/undo/CustomUndoEditor/index.js
draft-js-plugins/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createUndoPlugin from '@draft-js-plugins/undo'; import editorStyles from './editorStyles.module.css'; import buttonStyles from './buttonStyles.module.css'; const theme = { undo: but...
docs/src/sections/ListViewSection.js
lzcmaro/react-ratchet
import React from 'react'; import Samples from '../Samples' import ReactPlayground from '../ReactPlayground' export default function ListViewSection() { return ( <div> <ReactPlayground id="table-views" title='List' desc='列表' codeText={Samples.ListView} /> <ReactPlayground title='Li...
src/pages/index.js
MozillaIndia/mozillaindia.github.io
import React from 'react' import { graphql } from 'gatsby' import Layout from '../components/layout' import SEO from '../components/seo' import Groups from '../components/groups' import { FaTwitterSquare, FaFacebookSquare, FaInstagram, FaBlog, FaDiscourse, FaTelegramPlane, FaEnvelope, } from 'react-icons...
frontend/app_v2/src/common/widgetIcons/Apps.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' function Apps({ styling }) { return ( <svg className={styling} viewBox="0 0 1200 1200" xmlns="http://www.w3.org/2000/svg"> <path d="M803.8-.398H398.46A127.416 127.416 0 00270.909 124.75v949.96a126.22 126.22 0 0037.203 88.953 126.198 126.198 0 008...
src/components/Deck.js
Djiit/vgmapper
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as userActions from '../actions/user'; import Profile from './Profile'; import './Deck.css'; class Deck extends Component { render() { const mainSection = this.props.user.curr...
src/Parser/Hunter/Shared/Modules/Features/FocusChart/Focus.js
enragednuke/WoWAnalyzer
//Based on Main/Mana.js and Parser/VengeanceDemonHunter/Modules/PainChart //Note: For those that might wish to add Boss Health in the future- some of the work is already done here: https://github.com/leapis/WoWAnalyzer/tree/focusChartBossHealth import React from 'react'; import PropTypes from 'prop-types'; import { Li...
src/components/counts/AvgWeekdayVol.js
availabs/avail_app_bootstrap
import React from 'react'; import StackedBarGraph from '../graphs/StackedBarGraph'; import directionCodes from '../utils/directionCodes'; class AvgWeekdayVol extends React.Component { render() { var data = this.props.data; var countDate = `${data.month}/${data.dayOfFirstData}/${data.year}`; var infoTable...
src/App/Navigation/Navigation.container.js
psychobolt/react-native-boilerplate
import { StackNavigator, DrawerNavigator } from 'react-navigation'; import React from 'react'; // app import HomeComponent from '../Home'; import framework from '../../Framework'; import NavHeaderContainer from './NavHeader'; import MenuComponent from './Menu'; const stackConfig = { headerMode: 'float', navigatio...
entry_types/scrolled/package/src/frontend/thirdPartyConsent/Toggle.js
tf/pageflow
import React from 'react'; import styles from './Toggle.module.css'; import ToggleOnIcon from '../icons/toggleOn.svg'; import ToggleOffIcon from '../icons/toggleOff.svg'; export function Toggle({id, checked, onChange}) { const Icon = checked ? ToggleOnIcon : ToggleOffIcon; return ( <button id={id} ...
src/components/ui/Menu.js
Tasemu/Simple-PGP
import React, { Component } from 'react'; import { observer, inject, PropTypes as MobxPropTypes } from 'mobx-react'; import { Link } from 'react-router'; import { css, StyleSheet } from 'aphrodite'; import { colours } from 'utils/constants'; const componentStyles = StyleSheet.create({ component: { display: 'flex...
src/App.js
lizlove/tender-buttons
import React from 'react'; import { BrowserRouter as Router, Route, Link } from 'react-router-dom'; import './App.css'; import AsyncAbout from './components/About'; import AsyncContact from './components/Contact'; import AsyncHome from './components/Home'; const App = () => ( <Router> <div className="is-loading...
src/views/components/ModalShelf.js
physiii/open-automation
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import Button from './Button.js'; import './ModalShelf.css'; export const ModalShelf = (props) => ReactDOM.createPortal(<React.Fragment> <div styleName="scrim" onClick={props.hide} /> <div styleName="modal"> <div style...
public/js/cat_source/es6/components/outsource/OpenJobBox.js
riccio82/MateCat
import React from 'react' class OpenJobBox extends React.Component { constructor(props) { super(props) } openJob() { return this.props.url } getUrl() { return ( window.location.protocol + '//' + window.location.host + this.props.url ) } render() { return ( <div classNam...
app/js/components/trainer-pokemon/trainer-pokemon-box.component.js
milk-shake/electron-pokemon
import React from 'react'; import ReactDOM from 'react-dom'; export default class BoxComponent extends React.Component { constructor(props) { super(props); } render() { return <div className="trainer-pokemon-box"> <span className="trainer-pokemon-box__name">{this.props.box.name}</span> </div> ...
src/CardSubtitle.js
reactstrap/reactstrap
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { mapToCssModules, tagPropType } from './utils'; const propTypes = { tag: tagPropType, className: PropTypes.string, cssModule: PropTypes.object, }; const defaultProps = { tag: 'div' }; const CardSubtitl...
app/index.js
FilipStenbeck/symbaroum
import React from 'react'; import { render } from 'react-dom' import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; import { Provider } from 'react-redux' import { Router, Route, browserHistory } from 'react-router' import AOS from 'aos'; import NpcContainer from './components/...
src/events/events.js
FederationOfFathers/ui
import React, { Component } from 'react'; import EventChannel from './event-channel' import EventHost from './event-host' class Events extends Component { isListableChannel = (channel) => { if (this.props.state.admin === true) { // admins host anywhere return true } if (this.props.state.verified === false) {...
webpack/scenes/AnsibleCollections/AnsibleCollectionsPage.js
snagoor/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import qs from 'query-string'; import { translate as __ } from 'foremanReact/common/I18n'; import { orgId } from '../../services/api'; import TableSchema from './AnsibleCollectionsTableSchema'; import ContentPage from '../../components/Conten...
src/parser/monk/mistweaver/modules/spells/essences/WayOfTheCrane.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Analyzer from 'parser/core/Analyzer'; import { formatNumber, formatPercentage } from 'common/format'; import StatTracker from 'parser/shared/modules/StatTracker'; import AzeritePowerStatistic from 'interface...
src/svg-icons/image/blur-on.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurOn = (props) => ( <SvgIcon {...props}> <path d="M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-...
src/components/RegisterForm.js
Leobuaa/online-disk
import React, { Component } from 'react'; import Helper from '../helper.js'; import 'whatwg-fetch'; class RegisterForm extends Component { constructor(props) { super(props); this.state = { validity: true, checkInfos: { username: null, email: null, password: null, }, ...
client/client.js
vidi-insights/vidi-metrics-web
'use strict' // importing REACT and REACT-DOM -our rendering engine import React from 'react' import ReactDOM from 'react-dom' // importing react routes import { Router, Route, IndexRoute, hashHistory } from 'react-router' import './index.html' import './assets/css/main.styl' // importin path components import Index ...
docs/src/pages/components/slider/DiscreteSliderSteps.js
lgollut/material-ui
import React from 'react'; import { makeStyles } from '@material-ui/core/styles'; import Typography from '@material-ui/core/Typography'; import Slider from '@material-ui/core/Slider'; const useStyles = makeStyles({ root: { width: 300, }, }); function valuetext(value) { return `${value}°C`; } export default...
src/routes/charts/Container.js
liufulin90/react-admin
import React from 'react' import PropTypes from 'prop-types' import styles from './Container.less' import { ResponsiveContainer } from 'recharts' const Container = ({ children, ratio = 5 / 2, minHeight = 250, maxHeight = 350 }) => <div className={styles.container} style={{ minHeight, maxHeight }}> <div style={{ marg...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-text-area.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin} from './../common/common.js'; import InputWrapper from './internal/input-wrapper.js'; import TextInput from './internal/text-input.js'; import TextInputMixin from './mixins/text-input-mixin.js' import ItemList from './internal/item-list.js'; import Back...
src/components/Header.js
NagsCodehub/React_NodeApp
import React from 'react'; const Header = ({ message }) => { return ( <h2 className="Header text-center"> {message} </h2> ); }; Header.propTypes = { message: React.PropTypes.string }; export default Header;
es/catalog/properties/property-checkbox.js
vovance/3d-demo
import React from 'react'; import PropTypes from 'prop-types'; import FormLabel from '../../components/style/form-label'; var tableStyle = { width: "100%", borderSpacing: "2px 0", marginBottom: "2px" }; var firstTdStyle = { width: '6em' }; var checkboxStyle = { margin: 0 }; export default function PropertyCheckbox(_r...
component-starter-server/src/main/frontend/src/app/components/DatasetDelete/DatasetDelete.component.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...
tests/components/mark-series-tests.js
Apercu/react-vis
import test from 'tape'; import React from 'react'; import {mount} from 'enzyme'; import MarkSeries from 'plot/series/mark-series'; import {testRenderWithProps, GENERIC_XYPLOT_SERIES_PROPS} from '../test-utils'; import Scatterplot from '../../showcase/plot/scatterplot'; import DynamicCrosshairScatterplot from '../../sh...
src/svg-icons/av/web-asset.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWebAsset = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm0 14H5V8h14v10z"/> </SvgIcon> ); AvWebAsset = pure(AvWebAsset); AvWebAss...
src/components/CarListView.js
fkoester/tachograph-app
import React from 'react'; import { View, ListView, Text, StyleSheet, TouchableOpacity, Image, } from 'react-native'; import { connect } from 'react-redux'; import { Actions } from 'react-native-router-flux'; import Icon from 'react-native-vector-icons/FontAwesome'; import I18n from 'react-native-i18n'; imp...
fields/types/datearray/DateArrayFilter.js
snowkeeper/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormField, FormInput, FormRow, FormSelect } from 'elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No element', value:...
src/docs/components/distribution/DistributionDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Distribution from 'grommet/components/Distribution'; import Button from 'grommet/components/Button'; import DocsArticle from '../../../components/DocsArticle'; Distribution.displayName = 'Distribution...
internals/templates/containers/LanguageProvider/index.js
ddobby94/szakdoge_admin
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/scripts/pages/NotFound/index.js
lenshq/lens_front
import React from 'react'; export default class NotFound { render() { return ( <section className='page'> <h1>There is no such page</h1> </section> ); } }
examples/counter/containers/CounterApp.js
xgrommx/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'redux/react'; import Counter from '../components/Counter'; import * as CounterActions from '../actions/CounterActions'; @connect(state => ({ counter: state.counter })) export default class CounterApp { render() { co...
packages/cf-component-link/example/basic/component.js
jroyal/cf-ui
import React from 'react'; import Link from 'cf-component-link'; class LinkComponent extends React.Component { handleClick() { console.log('handleClick!'); } render() { return ( <div> <p>Create a <code>Link</code> with a <code>to</code> prop:</p> <Link to="/">Link to /</Link> ...
src/parser/paladin/retribution/CONFIG.js
FaideWW/WoWAnalyzer
import React from 'react'; import { Juko8 } from 'CONTRIBUTORS'; import retryingPromise from 'common/retryingPromise'; import SPECS from 'game/SPECS'; import CHANGELOG from './CHANGELOG'; export default { // The people that have contributed to this spec recently. People don't have to sign up to be long-time mainta...
frontend/component/MarkdownEditor.js
laayoune/whoquan
import React from 'react'; import Codemirror from 'react-codemirror'; import 'codemirror/lib/codemirror.css'; import 'codemirror/mode/gfm/gfm'; import '../lib/style.css'; export default class MarkdownEditor extends React.Component { render() { return ( <Codemirror value={this.props.value} options={{ ...
src/components/project/baseInfo.js
lockys/Angelcrunch-react
import React from 'react'; import $ from 'jquery'; import Router from 'react-router'; import Mixin from 'react-mixin'; import connectToStores from 'alt/utils/connectToStores'; import AjaxMapping from 'utils/ajaxMapping'; import TitleHelper from 'utils/titleHelper'; import ProjectInfoStore from 'stores/project/projectI...
src/svg-icons/hardware/laptop-windows.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopWindows = (props) => ( <SvgIcon {...props}> <path d="M20 18v-1c1.1 0 1.99-.9 1.99-2L22 5c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2v1H0v2h24v-2h-4zM4 5h16v10H4V5z"/> </SvgIcon> ); Hardwar...
docs/app/Examples/collections/Grid/Variations/GridExampleInverted.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Segment } from 'shengnian-ui-react' const GridExampleInverted = () => ( <Grid columns='equal' divided inverted padded> <Grid.Row color='black' textAlign='center'> <Grid.Column> <Segment color='black' inverted >1</Segment> </Grid.Column> <Grid.Col...
src/svg-icons/image/timelapse.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTimelapse = (props) => ( <SvgIcon {...props}> <path d="M16.24 7.76C15.07 6.59 13.54 6 12 6v6l-4.24 4.24c2.34 2.34 6.14 2.34 8.49 0 2.34-2.34 2.34-6.14-.01-8.48zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.4...
docs/src/app/components/pages/components/Paper/Page.js
xmityaz/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 paperReadmeText from './README'; import PaperExampleSimple from './Exampl...
docs/src/sections/icon.js
ricsv/react-leonardo-ui
import React from 'react'; import Example from '../example'; import Props from '../props'; import Section from '../section'; import { Icon } from '../../../src/react-leonardo-ui'; const ICONS = [ 'sheet', 'object', 'image', 'clear-selections', 'selections-tool', 'bookmark', 'back', 'forward', 'histo...
storybook/stories/index.js
RodolfoSilva/DeVryCalc
import React from 'react' import { Text, View } from 'react-native' import { storiesOf } from '@storybook/react-native' import { action } from '@storybook/addon-actions' // import { linkTo } from '@storybook/addon-links' import Card from '../../src/components/Card' import Disciplina from '../../src/components/Discipl...
__components__/with-state.js
chambo-e/jest-shot
import React, { Component } from 'react'; export default class ComponentWithState extends Component { constructor() { super(); this.state = { snapPhrase: 'Should be snapshoted only when no setState' }; } render() { return ( <div>{this.state.snapPhrase}</div> ); } }
src/components/article/ShareBt.js
garfieldduck/twreporter-react
'use strict' import MobileDetect from 'mobile-detect' import React from 'react' // eslint-disable-next-line import styles from './ShareBt.scss' import { FacebookButton, TwitterButton } from 'react-social' class ShareBt extends React.Component { constructor(props) { super(props) this.state = { isDesktop...
packages/next/shared/lib/loadable.js
azukaru/next.js
/** @copyright (c) 2017-present James Kyle <me@thejameskyle.com> MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
src/components/Card/styles/Header.js
Bandwidth/shared-components
import React from 'react'; import PropTypes from 'prop-types'; import DefaultHeaderWrapper from './HeaderWrapper'; import DefaultCardHeaderText from './HeaderText'; class CardHeader extends React.Component { static propTypes = { /** * The text to be displayed in the header. Optional. Text is displayed in ...
src/svg-icons/notification/airline-seat-legroom-extra.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomExtra = (props) => ( <SvgIcon {...props}> <path d="M4 12V3H2v9c0 2.76 2.24 5 5 5h6v-2H7c-1.66 0-3-1.34-3-3zm18.83 5.24c-.38-.72-1.29-.97-2.03-.63l-1.09.5-3.41-6.98c-.34-.68-1.03-1....
src/backward/Base/NativeBaseComponent.js
chaitanya0bhagvan/NativeBase
/* @flow */ import React, { Component } from 'react'; import lightTheme from '../Themes/light'; export default class NativeBaseComponent extends Component { static contextTypes = { NBtheme: React.PropTypes.object, foregroundColor: React.PropTypes.string, } static propTypes = { NBtheme: React.PropTy...
internals/example/containers/ArticlePage/ArticlePage.stories.js
Frojd/react-sass-starterkit
/* global module */ import React from 'react'; import { storiesOf } from '@storybook/react'; import ArticlePage from './ArticlePage'; import data from './ArticlePage.data'; storiesOf('Containers|ArticlePage', module) .add('without data', () => <ArticlePage />) .add('with data', () => <ArticlePage {...data} /...
docs/app/Examples/elements/Segment/Types/SegmentExampleStacked.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleStacked = () => ( <Segment stacked> Pellentesque habitant morbi tristique senectus. </Segment> ) export default SegmentExampleStacked
source/client/components/article/ArticleCard.js
worminer/React.js-Financial-News
import React from 'react' import {Link} from 'react-router' import Helpers from '../../utilities/Helpers' class ArticleCard extends React.Component { render () { return ( <div className='container'> <div className='well'> <div className='media'> <div className="media-container...
src/routes/home/index.js
ziedAb/PVMourakiboun
/** * 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 Home from './Home'; i...
src/svg-icons/device/brightness-high.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBrightnessHigh = (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-3.31 0-6-2.69-6-6s2.69-6 6-6 6 ...
webapp/app/components/CreateGroup/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component create group // import React from 'react'; import { PageHeader } from 'react-bootstrap'; import CreateGroupForm from 'containers/CreateGroup/Form'; /* eslint-disable react/prefer-stateless-function */ export default class CreateGroup extends React.Component { componentWillUnmount() { this.props....
app/jsx/bundles/terms_of_service_modal.js
venturehive/canvas-lms
/* * Copyright (C) 2017 - 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...
aCommunity/test/helpers/shallowRenderHelper.js
william-yz/temp
/** * Function to get the shallow output for a given component * As we are using phantom.js, we also need to include the fn.proto.bind shim! * * @see http://simonsmith.io/unit-testing-react-components-without-a-dom/ * @author somonsmith */ import React from 'react'; import TestUtils from 'react-addons-test-utils'...
es6/Checkbox/CheckBox.js
yurizhang/ishow
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, des...
app/javascript/mastodon/features/notifications/components/filter_bar.js
tootcafe/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
src/components/options/OptionsText.js
m0sk1t/react_email_editor
import React from 'react'; const OptionsText = ({ block, language, onPropChange }) => { const fontSize = block.options.container.fontSize.match(/\d+/)?block.options.container.fontSize.match(/\d+/)[0]: '16'; return ( <div> <div> <label>{language["Custom style"]}: <input type="checkbox" checked={block.options...
src/svg-icons/image/flip.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFlip = (props) => ( <SvgIcon {...props}> <path d="M15 21h2v-2h-2v2zm4-12h2V7h-2v2zM3 5v14c0 1.1.9 2 2 2h4v-2H5V5h4V3H5c-1.1 0-2 .9-2 2zm16-2v2h2c0-1.1-.9-2-2-2zm-8 20h2V1h-2v22zm8-6h2v-2h-2v2zM15 5h2V3h-2v...
src/breadcrumb/index.js
aruberto/react-foundation-components
import PropTypes from 'prop-types'; import React from 'react'; import cx from 'classnames'; import cxBinder from 'classnames/bind'; import styles from './_styles.scss'; const cxStyles = cxBinder.bind(styles); export const Breadcrumb = ({ className, ...restProps, }) => { const classNames = cx(className, cxStyle...
src/native/todos/NewTodo.js
chad099/react-native-boilerplate
// @flow import React from 'react'; import newTodoMessages from '../../common/todos/newTodoMessages'; import { Box, TextInput } from '../../common/components'; import { addTodo } from '../../common/todos/actions'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { fields } from '../../comm...
src/charts/Bar.js
rsamec/react-pathjs-chart
import React from 'react'; import Colors from '../pallete/Colors.js'; import _ from 'lodash'; import Options from '../component/Options.js'; import fontAdapt from '../fontAdapter.js'; var Bar = require('paths-js/bar'); var Axis = require('../component/Axis'); function cyclic(coll, i) { return coll[i % coll.lengt...
src/client/assets/js/nodes/datastores/twitter/node.js
me-box/databox-sdk
import React from 'react'; import Textfield from 'components/form/Textfield'; import Cell from 'components/Cell'; import Cells from 'components/Cells'; import Select from 'components/form/Select'; import {configNode} from 'utils/ReactDecorators'; @configNode() export default class Node extends React.Component { ...
app/containers/Blog/index.js
rebeccavl/Rebecca-van-Loenen
/* * * Blog * */ import React from 'react'; import Helmet from 'react-helmet'; import Responsive from 'react-responsive'; import {Link} from "react-router"; import NavBar from "components/NavBar"; import Footer from "components/Footer"; export default class Blog extends React.PureComponent { constructor(pr...
src/svg-icons/image/collections-bookmark.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollectionsBookmark = (props) => ( <SvgIcon {...props}> <path d="M4 6H2v14c0 1.1.9 2 2 2h14v-2H4V6zm16-4H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 10l-2.5-1.5L15 12V4h5v8z"/>...
docs/static/js/20.52af722a.chunk.js
yurizhang/ishow
webpackJsonp([20],{201:function(n,e,t){var o=t(215);"string"===typeof o&&(o=[[n.i,o,""]]);var i={hmr:!1};i.transform=void 0;t(193)(o,i);o.locals&&(n.exports=o.locals)},202:function(n,e,t){"use strict";function o(n){c=n}function i(n,e){for(var t=n.split("."),o=c,i=0,r=t.length;i<r;i++){var a=t[i],l=o[a];if(i===r-1)retur...
App/Components/InterestsTile.js
FAC7/anna-freud-hub
import React from 'react' import { StyleSheet, TouchableHighlight, View, Text, Image } from 'react-native' import Dimensions from 'Dimensions' const { width } = Dimensions.get('window') import tick from '../Assets/Icons/tick.png' export default ({ setInterest, interest, chosenInterests }) => { const Activ...
fixtures/packaging/systemjs-builder/prod/input.js
mjackson/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
SESSIONTHREE/src/components/Header.js
dammyng/Reaction
import React from 'react' export class Header extends React.Component { render() { return ( <nav> <div className="nav-wrapper"> <a href="#" className="brand-logo">Logo</a> <ul id="nav-mobile" className="right hide-on-med-and-down"> <li> <a href="sass.html">Sass</...