path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
public/app/components/application.js
vincent-tr/mylife-wine
'use strict'; import React from 'react'; import base from './base/index'; import MainTabs from './main-tabs'; import DialogErrorContainer from '../containers/dialog-error-container'; import DialogInfoContainer from '../containers/dialog-info-container'; const styles = { root: { position : 'fixed', top ...
app/hocs/withProgressChange.js
CityOfZion/neon-wallet
// @flow import React from 'react' import { compose } from 'recompose' import { withData, withError, withProgress, type Actions } from 'spunky' import { omit, castArray } from 'lodash-es' const DATA_PROP: string = '__data__' const ERROR_PROP: string = '__error__' const PROGRESS_PROP: string = '__progress__' type Prop...
ngiiedu-client/src/components/admin/school/list/popup/InfoPopup.js
jinifor/branchtest
import React from 'react'; import { connect } from 'react-redux'; import { actionSchoolInfoOpen } from '../../../../../actions/index'; //ํŒ์—…์ฐฝ import Dialog from 'material-ui/Dialog'; import RaisedButton from 'material-ui/RaisedButton'; import FlatButton from 'material-ui/FlatButton'; import { Table, TableBody...
src/parser/priest/holy/modules/talents/45/GuardianAngel.js
ronaldpereira/WoWAnalyzer
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import React from 'react'; import AbilityTracker from 'parser/shared/modules/AbilityTracker'; import Events from 'parser/core/E...
src/parser/mage/shared/modules/features/MirrorImage.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import TalentStatisticBox, { STATISTIC_ORDER } from 'interface/others/TalentStatisticBox'; import Analyzer from 'parser/core/Analyzer'; const INCANTERS_FLOW_EXPECTE...
src/DateFormatSpinnerInput/index.js
erisnuts/react-date-picker
import React from 'react' import Component from 'react-class' import { Flex, Item } from 'react-flex' import DateFormatInput from '../DateFormatInput' import assign from 'object-assign' import joinFunctions from '../joinFunctions' import assignDefined from '../assignDefined' import join from '../join' export default...
fields/types/code/CodeField.js
rafmsou/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormInput } from '../../../admin/client/App/elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on lodash */ // See ...
frontend/jqwidgets/jqwidgets-react/react_jqxpasswordinput.js
yevgeny-sergeyev/nexl-js
/* jQWidgets v5.7.2 (2018-Apr) Copyright (c) 2011-2018 jQWidgets. License: https://jqwidgets.com/license/ */ import React from 'react'; const JQXLite = window.JQXLite; export const jqx = window.jqx; export default class JqxPasswordInput extends React.Component { componentDidMount() { let options = this....
node_modules/react-bootstrap/es/Grid.js
okristian1/react-info
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/app/Examples/collections/Grid/ResponsiveVariations/GridExampleDeviceVisibility.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Grid, Segment } from 'semantic-ui-react' const GridExampleDeviceVisibility = () => ( <Grid> <Grid.Row columns={2} only='large screen'> <Grid.Column> <Segment>Large Screen</Segment> </Grid.Column> <Grid.Column> <Segment>Large Screen</Segment> ...
techCurriculum/ui/solutions/5.3/src/components/Card.js
tadas412/EngineeringEssentials
/** * Copyright 2017 Goldman Sachs. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to...
src/components/molecules/form-card-group.js
raulfdm/cv
import React from 'react'; import PropTypes from 'prop-types'; const FormCardGroup = ({ children, title }) => { return ( <React.Fragment> <section className="card"> <header className="card-header"> <h2 className="title is-3 card-header-title">{title}</h2> </header> <aside ...
installer/frontend/form.js
rithujohn191/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { dispatch as dispatch_ } from './store'; import { configActions, registerForm } from './actions'; import { toError, toIgnore, toAsyncError, toExtraData, toInFly, toExtraDataInFly, toExtraDataError } from './utils'; import...
src/routes/order/query/index.js
terryli1643/daoke-react-c
import React from 'react' import PropTypes from 'prop-types' import { routerRedux } from 'dva/router' import { connect } from 'dva' import List from './List' import Filter from './Filter' const Query = ({ location, dispatch, order, loading }) => { const { list, pagination, isMotion } = order const { pageSize } = p...
src/components/table/Table.js
MMMalik/react-show-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Header from './Header'; import Row from './Row'; import Cell from './Cell'; export default class Table extends Component { static propTypes = { rows: PropTypes.arrayOf(PropTypes.object), headers: PropTypes.arrayOf(...
app/jsx/context_cards/Rating.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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...
Console/app/node_modules/rc-time-picker/es/Select.js
RisenEsports/RisenEsports.github.io
import _defineProperty from 'babel-runtime/helpers/defineProperty'; 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-run...
lib/ui/src/components/notifications/item.js
storybooks/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; import { styled, lighten, darken } from '@storybook/theming'; import { Link } from '@storybook/router'; const baseStyle = ({ theme }) => ({ display: 'block', padding: '16px 20px', borderRadius: 10, fontSize: theme.typography.size.s1, fontWeight: ...
src/containers/Sales/CustomDetail/Order/Order.js
UncleYee/crm-ui
import React from 'react'; import TabItem from '../TabItem'; import Modal from 'react-bootstrap/lib/Modal'; import Button from 'react-bootstrap/lib/Button'; import {connect} from 'react-redux'; import {getCustomOrder} from 'redux/modules/custom'; import order from './order.png'; // ่ฎขๅ• @connect(state => ({ customOrde...
client/src/js/components/UserTile.js
muhammad-saleh/weightlyio
"use strict"; import React from 'react'; import UserStore from '../stores/UserStore'; import Constants from '../constants/Constants'; import AddWeight from './AddWeight'; import FloatingActionButton from 'material-ui/lib/floating-action-button'; import Card from './common/card'; export default class UserTile extends ...
client/src/components/setup-workflow/lists_configuration.js
safv12/trello-metrics
'use strict'; import React, { Component } from 'react'; import HTML5Backend from 'react-dnd-html5-backend'; import OpenLists from './open_lists'; import DoneLists from './done_lists'; import IgnoreLists from './ignore_lists'; import InprogressLists from './inprogress_lists'; const ListConfiguration = ({ignoreLists, o...
src/routes/not-found/NotFound.js
jessiepullaro414/kiwi
/** * 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-...
examples/counter/test/components/Counter.spec.js
jairtrejo/madera
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import { Counter } from '../../components/Counter.jsx'; test('it renders two buttons', t => { const wrapper = shallow(<Counter count={ 0 }/>); t.is(wrapper.find('button').length, 2); }) test('it c...
examples/with-mobx/pages/index.js
BlancheXu/test
import React from 'react' import Page from '../components/Page' export default class Counter extends React.Component { render() { return <Page title="Index Page" linkTo="/other" /> } }
es/components/Form/Button.js
welovekpop/uwave-web-welovekpop.club
import _extends from "@babel/runtime/helpers/builtin/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/builtin/objectWithoutProperties"; import cx from 'classnames'; import React from 'react'; import PropTypes from 'prop-types'; import MuiButton from "@material-ui/core/es/Button"; var Button = fun...
react-redux-tutorial/01-setting-up/modules/App.js
react-scott/react-learn
/** * Created by scott on 7/8/16. */ import React from 'react' export default React.createClass({ render() { return <div> Hello, React Router!</div> } })
src/containers/DashboardPage.js
dopry/netlify-cms
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { SIMPLE, EDITORIAL_WORKFLOW } from '../constants/publishModes'; import history from '../routing/history'; import UnpublishedEntriesPanel from './editorialWorkflow/UnpublishedEntriesPanel'; clas...
src/components/external/TestTimePicker.js
ChrisWhiten/react-rink
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import classNames from 'classnames'; import _ from 'lodash'; import './TestTimePicker.css'; class TestTimePicker extends React.Component { constructor(props) { super(props); this.state = { }; this.onStartCh...
src/components/Note/Thumbnail/DCRecording.js
bibleexchange/be-front-new
import React from 'react'; import { Link } from 'react-router'; class DCRecordingNoteComponent extends React.Component { render() { return ( <div className='recording'> <p>{this.props.recording.text}</p> </div> ); } } export default DCRecordingNoteComponent;
components/Video/PlayBtn/PlayBtn.js
NGMarmaduke/bloom
import PropTypes from 'prop-types'; import React from 'react'; import noop from '../../../utils/noop'; import ScreenReadable from '../../ScreenReadable/ScreenReadable'; import BtnContainer from '../../BtnContainer/BtnContainer'; import Icon from '../../Icon/Icon'; import css from './PlayBtn.css'; const PlayBtn = ({ p...
client/client.js
cesarandreu/quad-blog
// Polyfills import 'whatwg-fetch' import React from 'react' import debug from 'debug' import app from './app' const log = debug('quad-blog:client:bootstrap') // Get application node const mountNode = document.getElementById('app') // Debug messages if (process.env.NODE_ENV !== 'production') { debug.enable('quad-...
src/components/Register/Register.js
sbiliaiev/transport-kharkiv
import React from 'react'; export default class Register extends React.Component { render() { return(<p>Register</p>); } }
Badmeat/src/components/common/Spinner.js
jparr721/Badmeat
import React from 'react'; import { View, ActivityIndicator } from 'react-native'; const Spinner = (props) => { return ( <View style={styles.spinnerStyle}> <ActivityIndicator size={props.size || 'large'} /> </View> ) }; const styles = { spinnerStyle: { flex: 1, justifyContent: 'center', ...
react-family/src/router/router.js
DayangLee/Programming-learning
import React from 'react' import {BrowserRouter as Router, Route, Switch, Link} from 'react-router-dom' import Home from 'pages/Home/Home' import Page1 from 'pages/Page1/Page1' const getRouter = () => ( <Router> <div> <ul> <li><Link to="/">้ฆ–้กต</Link></li> <li><Link to="/page1">Pa...
test/test_helper.js
briceth/reactBlog
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
scripts/App.js
MarshalW/react-sortable
'use strict'; import React, { Component } from 'react'; import update from 'react/lib/update'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; import Item from './Item'; const style = { width: '400px' }; export default class App extends Component { construc...
docs/app/Examples/collections/Grid/Content/GridExampleRows.js
koenvg/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleRows = () => ( <Grid columns={3}> <Grid.Row> <Grid.Column> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column> <Image src='http://semantic-ui...
admin/client/App/elemental/DropdownButton/index.js
rafmsou/keystone
/* eslint quote-props: ["error", "as-needed"] */ import React from 'react'; import { css, StyleSheet } from 'aphrodite/no-important'; import Button from '../Button'; function DropdownButton ({ children, ...props }) { return ( <Button {...props}> {children} <span className={css(classes.arrow)} /> </Button> ...
src/parser/priest/shadow/modules/spells/Voidform.js
sMteX/WoWAnalyzer
import React from 'react'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import SpellIcon from 'common/SpellIcon'; import { TooltipElement } from 'common/Tooltip'; import Analyzer from 'parser/core/Analyzer'; import Haste from 'parser/sh...
app/components/Img/index.js
kaizen7-nz/gold-star-chart
/** * * Img.js * * Renders an image, enforcing the usage of the alt="" tag */ import React from 'react'; import PropTypes from 'prop-types'; function Img(props) { return ( <img className={props.className} src={props.src} alt={props.alt} /> ); } // We require the use of src and alt, only enforced by reac...
components/Message.js
athoof/odi
import React from 'react'; import { AppRegistry, StyleSheet, View, Text, Dimensions, TouchableOpacity, Modal, ScrollView, Image, TextInput, Button, } from 'react-native'; import _ from 'lodash'; // import io from 'socket.io-client'; // const socket = io('http://faharu.com:8000'); export default...
src/client/components/work/CompareBooks/CompareBooks.component.js
DBCDK/content-first
import React from 'react'; import {some} from 'lodash'; import TruncateMarkup from 'react-truncate-markup'; import Text from '../../base/Text'; import Button from '../../base/Button'; import T from '../../base/T'; import Icon from '../../base/Icon'; import BookCover from '../../general/BookCover/BookCover.component';...
app/components/Star.js
Toreant/monster_web
/** * Created by apache on 15-11-15. */ import React from 'react'; import StarActions from '../actions/StarActions'; import StarStore from '../stores/StarStore'; class Star extends React.Component { constructor(props) { super(props); this.state = StarStore.getState(); this.onChange = this...
src/components/Login/Login.js
sbiliaiev/transport-kharkiv
import React from 'react'; import { browserHistory } from 'react-router'; import { Grid, Row, Col, Form, FormGroup, FormControl, Checkbox, ControlLabel, Button } from 'react-bootstrap'; import Header from './../Header/Header'; import { logInUser } from './../../api/cloudservice'; import './Login.css'; export default c...
app/javascript/mastodon/features/ui/components/image_loader.js
lynlynlynx/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...
app/javascript/mastodon/features/compose/containers/warning_container.js
musashino205/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Warning from '../components/warning'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import { me } from '../../../initial_state'; const buildHashtagRE = () => { try { const HASHTAG_SEPARATORS = '_\\u00b7\...
react-flux-mui/js/material-ui/src/svg-icons/image/camera-front.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCameraFront = (props) => ( <SvgIcon {...props}> <path d="M10 20H5v2h5v2l3-3-3-3v2zm4 0v2h5v-2h-5zM12 8c1.1 0 2-.9 2-2s-.9-2-2-2-1.99.9-1.99 2S10.9 8 12 8zm5-8H7C5.9 0 5 .9 5 2v14c0 1.1.9 2 2 2h10c1.1 0 2-....
app/javascript/mastodon/containers/domain_container.js
cybrespace/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { blockDomain, unblockDomain } from '../actions/domain_blocks'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Domain from '../components/domain'; import { openModal } from '../actions/modal'; const messages = d...
app/javascript/mastodon/components/permalink.js
unarist/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, ...
src/component/textInput.js
sjcrank/viz-data-generator
import React from 'react'; import classNames from 'classnames'; import { StyleSheet, css } from 'aphrodite/no-important'; import StyleGuide from '../util/styleGuide'; const Styles = StyleSheet.create({ container: { display: 'inline-block', }, label: { display: 'inline-block', boxSha...
frontend/src/Calendar/Header/CalendarHeader.js
Radarr/Radarr
import moment from 'moment'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import * as calendarViews from 'Calendar/calendarViews'; import Icon from 'Components/Icon'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ...
_experiment/react-fetch-github-repo/v2-fetch-in-react-didmount/src/App.js
David-Castelli/react-testing
import React from 'react'; import ReactDOM from 'react-dom'; class FetchDemo extends React.Component { constructor(props) { super(props); // la parola 'super' รจ usata per chiamare funzioni dal parente di un oggetto // inizializzo lo state this.state = { repos: [] // setto l'array dei repo come vuoto }; }...
js/lessons/lesson5/CountdownTimer.js
leftstick/react-lesson
'use strict'; import React from 'react'; class CountdownTimer extends React.Component { constructor(props) { super(props); } render() { return ( <div> <span type='text'>TODO: the number to be counted</span> <button> Start ...
src/svg-icons/action/settings-brightness.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsBrightness = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02zM8 16h2.5l1.5 1.5 1.5-1.5H16v-2.5l1.5-1...
clients/web-client/src/components/IDE/Subject/index.js
rlods/CodingChallenge
import React from 'react' import Markdown from 'react-remarkable' var ReactMarkdown = require('react-markdown'); import './Subject.css' const Subject = props => <div className="subject"> <ReactMarkdown source={props.challenge.description} /> </div> export default Subject
src/components/common/svg-icons/image/brightness-4.js
abzfarah/Pearson.NAPLAN.GnomeH
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/Scrollable/Scrollable.js
collegepulse/material-react-components
import makeClass from 'classnames'; import PropTypes from 'prop-types'; import React from 'react'; import Styles from './Scrollable.css'; class Scrollable extends React.Component { render() { const firstChild = React.Children.only(this.props.children); return React.cloneElement(firstChild, { className:...
app/react-icons/fa/shopping-bag.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaShoppingBag extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m39.2 31.4l0.8 7q0.1 0.6-0.4 1.1-0.4 0.5-1 0.5h-37.2q-0.6 0-1-0.5-0.5-0....
fields/types/datearray/DateArrayFilter.js
cermati/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import moment from 'moment'; import DayPicker from 'react-day-picker'; import { FormInput, FormSelect, Grid, } from '../../../admin/client/App/elemental'; const PRESENCE_OPTIONS = [ { label: 'At least one element', value: 'some' }, { label: 'No e...
js/App/Components/TabViews/TabsView.android.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
examples/src/components/States.js
MattMcFarland/react-select
import React from 'react'; import Select from 'react-select'; const STATES = require('../data/states'); var StatesField = React.createClass({ displayName: 'StatesField', propTypes: { label: React.PropTypes.string, searchable: React.PropTypes.bool, }, getDefaultProps () { return { label: 'States:', sea...
src/components/Error.js
MMMalik/react-show-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class Error extends Component { static propTypes = { status: PropTypes.string } render() { const { status } = this.props; let content = ''; if (status === '404') { con...
src/App.js
jdhanesh/ftdpwa
import React from 'react' import { BrowserRouter, Route } from 'react-router-dom' import 'normalize.css' import promos from '../promo-contents.json' import solar from '../solarrose.json' import styles from './App.css' import Header from './components/Header/Header' import Footer from './components/Footer/Foo...
packages/v4/src/content/training/trainingCard/trainingCard.js
patternfly/patternfly-org
import React from 'react'; import { Card, CardTitle, CardHeader, CardBody, CardFooter, Button } from '@patternfly/react-core'; import ArrowRightIcon from '@patternfly/react-icons/dist/esm/icons/arrow-right-icon'; import CubesIcon from '@patternfly/react-icons/dist/esm/icons/cubes-icon'; import ClockIcon from '@patternf...
plugins/react/frontend/components/form/BaseSettings/index.js
carteb/carte-blanche
import React from 'react'; import Button from '../Button'; import styles from './styles.css'; const BaseSettings = ({ onChange, ...otherProps }) => { const onChangeToUndefined = () => { onChange({ value: undefined }); }; const onChangeToNull = () => { onChange({ value: null }); }; return ( <div ...
react/PreferencesIcon/PreferencesIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './Preferences.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function PreferencesIcon(props) { return <Icon markup={svgMarkup} {...props} />; } PreferencesIcon.displayName = 'PreferencesIcon';
docs/src/app/components/pages/components/Popover/ExampleSimple.js
tan-jerene/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleSimple extends React.Component { constructor(props) { super(props); ...
lib/index.js
gness1804/shoot-the-breeze
import React from 'react'; import { render } from 'react-dom'; import Application from './components/Application'; import firebase from './firebase'; require('./style.scss'); render(<Application/>, document.getElementById('application'));
docs/src/js/component/wrapper/play-pause.react.js
vwxyutarooo/react-video-icons
'use strict'; import React from 'react'; import PlayPause from 'play-pause'; export default class RppWrap extends React.Component { constructor(props) { super(props); this.state = this.__getInitialState(); } __getInitialState() { return { isPlay: false } } _handleClick() { console.d...
pkg/users/password-dialogs.js
martinpitt/cockpit
/* * This file is part of Cockpit. * * Copyright (C) 2020 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
src/svg-icons/image/filter-9.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter9 = (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 16H7V3h14v14zM15 5h-2c-1.1 0-2 .89-2 2v...
src/components/Blocks/Html/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import reactReplace from 'react-string-replace' import Sponsors from '../../Fragments/Sponsors' import Programs from '../../Fragments/Programs' import DonationMatch from '../../Fragments/DonationMatch' import TrackingControl from '../../Fragments/TrackingContr...
src/components/EditOnGithub.js
dunglas/calavera-react-client
import React from 'react'; import pathToGitHubMarkdown from 'helpers/PathToGitHubMarkdown'; import { Glyphicon } from 'react-bootstrap'; export default function({ pagepath }) { try { const url = pathToGitHubMarkdown(pagepath); return ( <span className="editongithub"> <a className="editongithub_...
test/hompage-test.js
melissa-c/Comms
import test from 'ava' import React from 'react' import {shallow, render, mount} from 'enzyme' import HomePage from '../src/components/homepage' import Header from '../src/components/header' test ('Homepage commponents adds to <HomePage> ', t => { const wrapper = shallow(<HomePage />) var homepg = wrapper.find('di...
docs/src/layouts/LoginLayout.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Button, Form, Grid, Header, Image, Message, Segment } from 'semantic-ui-react' const LoginForm = () => ( <Grid textAlign='center' style={{ height: '100vh' }} verticalAlign='middle'> <Grid.Column style={{ maxWidth: 450 }}> <Header as='h2' color='teal' textAlign='center'> ...
src/svg-icons/maps/person-pin.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
node_modules/native-base/src/basic/Left.js
tausifmuzaffar/bisApp
import React, { Component } from 'react'; import { View } from 'react-native'; import { connectStyle } from '@shoutem/theme'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; class Left extends Component { render() { return ( <View ref={c => this._root = c} {...this.props} /> ); } }...
src/svg-icons/action/account-balance.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalance = (props) => ( <SvgIcon {...props}> <path d="M4 10v7h3v-7H4zm6 0v7h3v-7h-3zM2 22h19v-3H2v3zm14-12v7h3v-7h-3zm-4.5-9L2 6v2h19V6l-9.5-5z"/> </SvgIcon> ); ActionAccountBalance = pure(ActionA...
es/svg-icons/CheckCircle.js
uplevel-technology/material-ui-next
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../SvgIcon'; /** * @ignore - internal component. */ let CheckCircle = props => React.createElement( SvgIcon, props, React.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 ...
website/src/components/guides/gradients/GradientsIllustrations.js
plouc/nivo
import React from 'react' import { useTheme } from 'styled-components' import { linearGradientDef } from '@nivo/core' import { ResponsiveBar } from '@nivo/bar' import { ResponsiveStream } from '@nivo/stream' import { ResponsiveTreeMap } from '@nivo/treemap' import { generateCountriesData } from '@nivo/generators' impor...
src/components/PostEditor.js
Hylozoic/hylo-redux
/* N.B.: in the database, Post has columns called "name" and "description". Below, we use "title" and "details" instead for CSS and user-facing text, because they make more sense. */ import React from 'react' import cx from 'classnames' import autoproxy from 'autoproxy' import { debounce, difference, compact, filt...
src/components/PricingRow/PricingRow.js
ben-miller/adddr.io
/** * adddr (https://www.adddr.io/) * * 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-types'; import withStyl...
src/client.js
shilu89757/react-redux-universal-hot-example
/** * THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER. */ import 'babel/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import Location from 'react-router/lib/Location'; import queryString from 'query-string'; import cre...
src/component/layout/SideBarUserItem.js
babizhu/webApp
/** * Created by liu_k on 2015/12/10. */ import React, { Component } from 'react'; import { Icon } from 'antd'; import styles from '../../css/layout/sidebar.scss' class SideBarUserItem extends Component { render() { let{ userData,iconMode} = this.props; //let user = this.props.userData; ...
packages/material-ui-icons/src/LaptopWindows.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let LaptopWindows = 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>; LaptopWindows...
src/components/CheshireCat.js
pieroit/cheshire-cat
import React from 'react' class CheshireCat extends React.Component { render() { let children = React.Children.map( this.props.children, child => { //console.log(child.type.name) return ( <child.type {...child.props} /> ) } ) return (...
components/qrScene.js
marxsk/zobro
import React from 'react'; import { StyleSheet, View, Text, TouchableOpacity, TouchableHighlight, VibrationIOS, Alert, } from 'react-native'; import Camera from 'react-native-camera'; import animalDb from '../animals'; import * as scenes from '../scenes'; import Dimensions from 'Dimensions'; var WINDOW_...
app/bootstrap.js
hichameyessou/blip
/** * Copyright (c) 2014, Tidepool Project * * This program is free software; you can redistribute it and/or modify it under * the terms of the associated License, which is identical to the BSD 2-Clause * License as published by the Open Source Initiative at opensource.org. * * This program is distributed in the...
src/svg-icons/notification/airline-seat-legroom-reduced.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomReduced = (props) => ( <SvgIcon {...props}> <path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1...
quiver_engine/quiverboard/src/components/Header/Header.js
wmkouw/quiver-time
import React from 'react'; import { IndexLink } from 'react-router'; import './Header.scss'; export const Header = () => ( <div> </div> ); export default Header;
reactjs/hello/src/index.js
guoxiaoyong/simple-useful
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ); } class Board extends React.Component { renderSquare(i) { return ( <Square value={t...
ui/src/core/components/FooterItem.js
Hajto/erlangpl
// @flow import React from 'react'; import { OverlayTrigger, Popover } from 'react-bootstrap'; type Props = { title: string, id: string, item: ?React$Element<any>, popover: ?React$Element<any> }; const FooterItem = ({ title, item, popover, id }: Props) => { return ( <div className="Footer-item"> ...
lib/components/term-group.js
wilsontayar/hyper
import React from 'react'; import {connect} from 'react-redux'; import Component from '../component'; import {decorate, getTermProps, getTermGroupProps} from '../utils/plugins'; import {resizeTermGroup} from '../actions/term-groups'; import Term_ from './term'; import SplitPane_ from './split-pane'; const Term = decor...
src/containers/Uielements/Tree/lineTree.js
EncontrAR/backoffice
import React from 'react'; import Tree from '../../../components/uielements/tree'; const TreeNode = Tree.TreeNode; export default function() { return ( <Tree showLine defaultExpandedKeys={['0-0-0']}> <TreeNode title="parent 1" key="0-0"> <TreeNode title="parent 1-0" key="0-0-0"> <TreeNode...
src/pages/AppInfo.js
cuebrick/TypeWriter
import React from 'react'; import { Link } from 'react-router-dom'; import PackageInfo from '../../package'; // import HomeImage from '../images/home.svg'; class AppInfo extends React.Component{ render(){ return( <div className="container"> <h3>Typing Play ์— ๋Œ€ํ•œ ์ •๋ณด</h3> <div className="app-info-item">์›์ข…์„ ...
admin/client/App/shared/FlashMessage.js
webteckie/keystone
/** * A single flash message component. Used by FlashMessages.js */ import React from 'react'; import { Alert } from 'elemental'; const FlashMessage = React.createClass({ propTypes: { message: React.PropTypes.oneOfType([ React.PropTypes.object, React.PropTypes.string, ]), type: React.PropTypes.string, ...
frontend/app/js/components/plugin/screen.js
serverboards/serverboards
import React from 'react' import plugin from 'app/utils/plugin' import Loading from '../loading' import {merge, to_keywordmap, match_traits, map_get} from 'app/utils' import PropTypes from 'prop-types'; import {SectionMenu} from 'app/components' import store from 'app/utils/store' import i18n from 'app/utils/i18n' impo...
tilapp/src/containers/Scenes/Auth/Screens/Welcome/index.js
tilap/tilapp
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Text, Button, View } from 'native-base'; import Paper from '~/components/Paper/'; class WelcomeScreen extends Component { render() { return ( <View> <Paper> <Text>...
app/javascript/mastodon/features/ui/components/mute_modal.js
gol-cha/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Toggle from 'react-toggle'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; import...
examples/src/components/RemoteSelectField.js
snowkeeper/react-select
import React from 'react'; import Select from 'react-select'; var RemoteSelectField = React.createClass({ displayName: 'RemoteSelectField', propTypes: { hint: React.PropTypes.string, label: React.PropTypes.string, }, loadOptions (input, callback) { input = input.toLowerCase(); var rtn = { options: [ ...