path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/course/FinishCourse.js
TJCU-Dev/tjcu-site-frontend
import React from 'react'; import {grey200, grey400, grey800, grey900, grey600, red900} from 'material-ui/styles/colors'; import {Table, TableBody, TableHeader, TableHeaderColumn, TableRow, TableRowColumn} from 'material-ui/Table'; import IconButton from 'material-ui/IconButton'; export default class FinishCourse ext...
src/components/common/Admin.js
bharney/YogaMarieMills
import React from 'react'; import { Link } from 'react-router'; import ImageUpload from './ImageUpload'; const Admin = ({ uploadImage, saveAction, deleteAction, addAction, editAction, authorized }) => { return ( <div className="absolute top-15-right-1"> {authorized.authToken && addAction ? ...
src/common/components/ShowPlaintext.js
adamarthurryan/dubdiff
import React from 'react' const ShowPlaintext = (props) => { return <div> <pre style={{whiteSpace: 'pre-wrap'}}> {props.text ? props.text : props.diff ? diffToPre(props.diff) : null } </pre> </div> } export default ShowPlaintext function diffToPre (diff) { ...
public/js/components/profile/FileUpload.react.js
IsuruDilhan/Coupley
import React from 'react'; const FormUpload = React.createClass({ uploadFile: function (e) { var fd = new FormData(); fd.append( 'file', this.refs.file.getDOMNode().files[0] ); $.ajax({ type: 'POST', url: 'http://localhost:3000/api/profile/profilepic', ...
react-redux-tutorial/redux-undo-boilerplate/src/index.js
react-scott/react-learn
/*eslint-disable*/ import React from 'react' import ReactDOM from 'react-dom' import Root from './containers/Root' import createBrowserHistory from 'history/lib/createBrowserHistory' /*eslint-enable*/ const history = createBrowserHistory() ReactDOM.render( <Root history={history} />, document.getElementById('root...
packages/reactotron-app/App/index.js
rmevans9/reactotron
import React from 'react' import { render } from 'react-dom' import App from './Foundation/App' import './app.global.css' import injectTapEventPlugin from 'react-tap-event-plugin' injectTapEventPlugin() render( <App /> , document.getElementById('root') ) document.addEventListener('dragover', event => event.prev...
src/lib/formControl.js
yeojz/react-form-addons
// @flow import React from 'react'; import invariant from 'invariant'; import omit from 'lodash/omit'; import isEqual from 'lodash/isEqual'; type Props = { name: string, defaultValue: any, disabled: boolean, onChange: Function, onToggle: Function, value: any } type State = { value: any } const propKeys...
packages/react-dom/src/client/ReactDOMFiberOption.js
apaatsio/react
/** * Copyright (c) 2013-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import React from 'react'; import warning from 'fbjs/lib/warning'; let didWarnSelectedSetOnOption = false; function flatte...
src/components/forms/blog/RecentList.js
slkjse9/slkjse9.github.io
import React from 'react'; import { Link } from 'react-router-dom'; const routeConfig = require('../../posts/routes'); class RecentList extends React.Component { render() { return ( <div className="forms-blog-recent"> {routeConfig.map((object) => { if ((Date.now() - 5259492000) <= new Da...
test/client/app/components/pages/u2f/test-u2f.js
LINKIWI/apache-auth
/* global window */ import jsdom from 'jsdom'; import {mount, shallow} from 'enzyme'; import React from 'react'; import request from 'browser-request'; import sinon from 'sinon'; import test from 'tape'; import authStatus from '../../../../../../src/client/app/util/auth-status'; import browser from '../../../../../.....
src/components/containers/trading-particulars-container.js
HuangXingBin/goldenEast
import React from 'react'; import { DatePicker } from 'antd'; import './user-list-container.css'; import UserListTable from '../views/trading-particulars-list'; import { connect } from 'react-redux'; import store from '../../store'; import { updateShenWenSuoBoardMarketDetailsSearch } from '../../actions/app-interaction...
app/javascript/mastodon/features/account_gallery/components/media_item.js
gol-cha/mastodon
import Blurhash from 'mastodon/components/blurhash'; import classNames from 'classnames'; import Icon from 'mastodon/components/icon'; import { autoPlayGif, displayMedia, useBlurhash } from 'mastodon/initial_state'; import { isIOS } from 'mastodon/is_mobile'; import PropTypes from 'prop-types'; import React from 'react...
examples/js/basic/scroll-table.js
AllenFang/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/components/Field/InputNumber/index.js
thomasthiebaud/lundalogik
import React from 'react' import PropTypes from 'prop-types' import { Field } from 'redux-form' import InputNumber from './InputNumber' const InputNumberField = props => ( <Field name={props.name} placeholder={props.placeholder} component={InputNumber} error={props.error} /> ) InputNumberField.def...
examples/with-aphrodite/pages/index.js
arunoda/next.js
import React from 'react' import { StyleSheet, css } from 'aphrodite' if (typeof window !== 'undefined') { /* StyleSheet.rehydrate takes an array of rendered classnames, and ensures that the client side render doesn't generate duplicate style definitions in the <style data-aphrodite> tag */ StyleSheet.rehydrat...
docs/src/SupportPage.js
omerts/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; export default class Page extends React.Component { render() { return ( <div> <NavMain activePage="support" /> <PageHeader title="Nee...
react/features/welcome/components/WelcomePageSideBar.native.js
bgrozev/jitsi-meet
// @flow import React, { Component } from 'react'; import { SafeAreaView, ScrollView, Text } from 'react-native'; import { Avatar } from '../../base/avatar'; import { IconInfo, IconSettings, IconHelp } from '../../base/icons'; import { setActiveModalId } from '../../base/modal'; import { getLocalParticipant, ...
app/javascript/mastodon/features/mutes/index.js
robotstart/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { ScrollContainer } from 'react-router-scroll'; import Column from '../ui/components...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Card/ExampleControlled.js
pbogdan/react-flux-mui
import React from 'react'; import {Card, CardActions, CardHeader, CardMedia, CardTitle, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import Toggle from 'material-ui/Toggle'; export default class CardExampleControlled extends React.Component { constructor(props) { super(pro...
src/v2/stories/ConnectTwitter.stories.js
aredotna/ervell
import React from 'react' import { storiesOf } from '@storybook/react' import { Query } from '@apollo/client/react/components' import { gql } from '@apollo/client' import contactFragment from 'v2/components/ConnectTwitter/components/Contact/fragments/contact' import ConnectTwitter from 'v2/components/ConnectTwitter' i...
tests/Rules-isNumeric-spec.js
track0x1/formsy-react
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.props.getValue()} readOnly/>; } }); class TestForm extends React.Component { render() {...
ajax/libs/react-instantsearch/4.1.0-beta.2/Dom.js
jonobr1/cdnjs
/*! ReactInstantSearch 4.1.0-beta.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react"), require("react-dom")); else if(typeof def...
__sites_/src/components/doc/cn/crop-image.js
Vanthink-UED/react-core-image-upload
import React from 'react'; import vendor from '../../../lib/vendor'; import ReactCoreImageUpload from '../../../../../src/index'; import Highlight from 'react-highlight.js'; export default class CnCropImage extends React.Component { constructor(props) { super(props); this.state = { src: 'http://img1.v...
react/features/overlay/components/PageReloadOverlay.js
KalinduDN/kalindudn.github.io
import React from 'react'; import { connect } from 'react-redux'; import { translate } from '../../base/i18n'; import AbstractPageReloadOverlay from './AbstractPageReloadOverlay'; import OverlayFrame from './OverlayFrame'; /** * Implements a React Component for page reload overlay. Shown before the * conference is...
node_modules/react-router/es6/RouteContext.js
sauceSquatch/we_are_razorfish_experience
'use strict'; import warning from './routerWarning'; import React from 'react'; var object = React.PropTypes.object; /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin t...
src/client/src/routes/Search/components/searchView.js
aquibm/Research-Engine
import React from 'react'; import SearchBar from './searchBar'; import SearchResults from './SearchResults'; import Loader from '../../../components/loader'; import './searchView.scss'; /** * Responsible for painting and handling interactions with the search page. */ class SearchView extends React.Component { c...
src/components/HeaderGeneric.js
bow-paris/bow-paris.github.io
import React from 'react' const HeaderGeneric = props => ( <header id="header"> <h1>Generic</h1> <p>Ipsum dolor sit amet nullam</p> </header> ) export default HeaderGeneric
src/components/Header.js
cowlik/cowlik
import React from 'react'; import { NavLink } from 'react-router-dom'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import './Header.scss'; import app from '../data/app.json'; import work from '../data/work.json'; const Header = props => ( <header id="header"> <div className="container...
client/my-sites/people/controller.js
tinkertinker/wp-calypso
/** * External Dependencies */ import React from 'react'; import page from 'page'; import route from 'lib/route'; import get from 'lodash/get'; import i18n from 'i18n-calypso'; /** * Internal Dependencies */ import sitesList from 'lib/sites-list'; import PeopleList from './main'; import EditTeamMember from './edit...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
suxinde2009/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
components/FirstScreen.js
ganny26/angularUI
import React from 'react'; import { Text, View, StyleSheet, StatusBar, ScrollView } from 'react-native'; import { Card, ListItem, Button, SearchBar } from 'react-native-elements'; import * as Progress from 'react-native-progress'; import KnowledgeComponent from './KnowledgeComponent'; class FirstScreen extends React.Co...
examples/src/components/Fixed.js
kenfehling/react-designable-audio-player
import React from 'react'; import {connectAudioPlayer, TitleMarquee, TimeSlider} from 'react-designable-audio-player'; import './Fixed.css'; import tracks from '../tracks'; const AudioPlayer = ({play, stop, next, prev, isPlaying, timeElapsed}) => ( <div className="fixed container"> <div className="controls...
src/components/EditorToolbar/index.js
cantonjs/re-admin
import React from 'react'; import PropTypes from 'utils/PropTypes'; const EditorToolbar = (props) => ( <div className="editor-toolbar"> {props.font && <select className="ql-font" />} {props.size && <select className="ql-size" />} {props.bold && <button className="ql-bold" />} {props.italic && <button classNam...
src/routes/error/ErrorPage.js
zsu13579/pinterest-apollo
/** * 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-...
docs/app/Examples/elements/Rail/Variations/RailExampleAttached.js
mohammed88/Semantic-UI-React
import React from 'react' import { Grid, Image, Rail, Segment } from 'semantic-ui-react' const RailExampleAttached = () => ( <Grid centered columns={3}> <Grid.Column> <Segment textAlign='center'> <Image src='http://semantic-ui.com/images/wireframe/paragraph.png' /> <Rail attached position=...
examples/pagination-controlled/src/App.js
tannerlinsley/react-table
import React from 'react' import styled from 'styled-components' import { useTable, usePagination } from 'react-table' import makeData from './makeData' const Styles = styled.div` padding: 1rem; table { border-spacing: 0; border: 1px solid black; tr { :last-child { td { borde...
js/components/pages/ImportPage.react.js
wuyuanyi135/react-template
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Button } from 'react-bootstrap'; import EntryForm from '../components/EntryForm.react.js'; import * as actions from '../../actions/ImportFormActions.js'; import _ from 'lodash'; const validateForm = (data) => ( _.every([ ...
day17_todolist/src/components/TodoList.js
eyesofkids/ironman2017
//@flow import React from 'react' import TodoItem from './TodoItem' // 預先定義props的結構 type Props = { initText: string, } class TodoList extends React.Component { // 預先定義state的結構 state: { items: Array<string>, inputValue: string, } //建構式 constructor(props: Props) { //super是呼叫上層父...
js/src/File.js
syslo/file_publisher
import React from 'react' import {ControlLabel, Form, FormControl, FormGroup, InputGroup} from 'react-bootstrap' import {Button, ButtonToolbar, Panel, ListGroup, ListGroupItem} from 'react-bootstrap' import {Col, Glyphicon, Grid, Row} from 'react-bootstrap' import copy from 'copy-to-clipboard' import moment from 'mome...
app/javascript/mastodon/features/ui/components/block_modal.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import { makeGetAccount } from '../../../selectors'; import Button from '../../../components/button'; import { closeModal } from '../../../actions/modal'; impo...
docs/app/Examples/collections/Menu/Content/index.js
shengnian/shengnian-ui-react
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' // TODO: Add example with <Popup> after it will be added // TODO: Add example with <Search> after it will be added const Content = ()...
src/shared/views/topMenu/TopMenuLogo/TopMenuLogo.js
in-depth/indepth-core
import React from 'react' import styles from './topMenuLogo.css' const TopMenuLogo = () => { return ( <div className={styles.logoContainer}> <i className="fa fa-universal-access" aria-hidden="true" /> </div> ) } export default TopMenuLogo
src/svg-icons/image/linked-camera.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLinkedCamera = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="14" r="3.2"/><path d="M16 3.33c2.58 0 4.67 2.09 4.67 4.67H22c0-3.31-2.69-6-6-6v1.33M16 6c1.11 0 2 .89 2 2h1.33c0-1.84-1.49-3.33-3.33-3.3...
app/javascript/mastodon/components/avatar.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; import classNames from 'classnames'; export default class Avatar extends React.PureComponent { static propTypes = { account: ImmutablePropTyp...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleTrigger.js
ben174/Semantic-UI-React
import React from 'react' import { Dropdown, Icon } from 'semantic-ui-react' const trigger = ( <span> <Icon name='user' /> Hello, Bob </span> ) const DropdownTriggerExample = () => ( <Dropdown trigger={trigger}> <Dropdown.Menu> <Dropdown.Item disabled> Signed in as <strong>Bob Smith</s...
node_modules/react-sortable/example-real-world/js/SortableListItem.js
Prash88/soccer-lineup
import React from 'react'; //import { Sortable } from 'react-sortable'; import { SortableComposition as Sortable } from '../../src/SortableComposition'; var ListItem = React.createClass({ displayName: 'SortableListItem', proptypes:{ item: React.PropTypes.string.isRequired, }, render: function() { retu...
js/components/sideBar/index.js
hz47/expensesApp
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Content, Text, List, ListItem,Thumbnail } from 'native-base'; import { setIndex } from '../../actions/list'; import { closeDrawer } from '../../actions/drawer'; import { replaceOrPushRoute } from '../../actions/route'; import my...
src/components/Modal/index.js
jaruba/PowderPlayer
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import ModalStore from './store'; import ModalActions from './actions'; import FileStreamSelector from './components/fileStreamSelector'; import HistorySelector from './components/historySelector'; import URLContents from './comp...
examples/create-iterator-proptype/InvalidCallbackUsage.js
jackrzhang/react-custom-proptypes
import React from 'react'; import { createIteratorPropType } from './../../lib/custom-proptypes'; const InvalidCallbackUsage = props => ( <div>{props.text}</div> ); InvalidCallbackUsage.propTypes = { text: createIteratorPropType( prop => `A boolean value is required to validate ${prop}` ) }; export default...
src/docs/examples/RangeSlider/ExampleCustomValueStep.js
austinknight/ui-components
import React from 'react'; import RangeSlider from 'ui-components/RangeSlider'; /** Custom Value Step Range Slider */ export default function ExampleCustomValueStep() { return <RangeSlider minValue={0} maxValue={100} onRangeUpdate={() => {}} step={10} /> }
__mocks__/react-intl.js
uzh-bf/klicker-react
// ./__mocks__/react-intl.js import React from 'react' const Intl = require.requireActual('react-intl') const intl = { formatMessage: ({ defaultMessage }) => defaultMessage, } Intl.injectIntl = Node => { const renderWrapped = props => <Node {...props} intl={intl} /> renderWrapped.displayName = Node.displayName...
node_modules/react-error-overlay/lib/index.js
kishigo/recipes-react-redux
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import ReactDOM from 'react-dom'; import CompileErrorContainer from './containers/CompileErrorContainer'; im...
lib/cli/generators/REACT_NATIVE/template/storybook/stories/Welcome/index.js
bigassdragon/storybook
import React from 'react'; import { View, Text } from 'react-native'; export default class Welcome extends React.Component { styles = { wrapper: { flex: 1, padding: 24, justifyContent: 'center', }, header: { fontSize: 18, marginBottom: 18, }, content: { fontSiz...
components/Btn/Btn.story.js
NGMarmaduke/bloom
import React from 'react'; import { storiesOf, action } from '@storybook/react'; import Btn from './Btn'; import m from '../../globals/modifiers.css'; import Icon from '../Icon/Icon'; import Loader from '../Loader/Loader'; storiesOf('Btn', module) .add('Default button', () => ( <Btn onClick={ action('Button clic...
src/components/MoneyFormat.js
ratchagarn/react-styled-components
import React from 'react'; import styled from 'styled-components'; const THB = 'THB'; const USD = 'USD'; const JPY = 'JPY'; const pickBgColorByCurrency = () => ({ currency }) => { switch (currency) { case THB: return `background-color: blue;`; case USD: return `background-color: green;`; case JPY: retu...
app/src/components/Years.js
alpcanaydin/heygidi
import React, { Component } from 'react'; import { Link } from 'react-router'; import './Years.css'; class Years extends Component { render() { const years = [ 2017, 2016, 2015, 2014, 2013, 2012, 2011, 2010, 2009, 2008, 2007, 2006, 2005, 2004, 2003, 2002, 2001, 2000, 1999, 1998, 1997 ]; ...
examples/todomvc/containers/App.js
pascience/redux
import React, { Component } from 'react'; import TodoApp from './TodoApp'; import { createRedux } from 'redux'; import { Provider } from 'redux/react'; import * as stores from '../stores'; const redux = createRedux(stores); export default class App extends Component { render() { return ( <Provider redux={...
src/interface/icons/FingerprintFilled.js
FaideWW/WoWAnalyzer
import React from 'react'; // https://thenounproject.com/term/fingerprint-scan/1159911/ // Created by IconsGhost from the Noun Project const Icon = ({ ...other }) => ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 91 91" {...other}> <path d="M19.963,13.482c0.555,0,1.107-0.138,1.615-0.407c7.332-4.026,15.4-...
fixtures/attribute-behavior/src/index.js
jzmq/react
import './index.css'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; ReactDOM.render(<App />, document.getElementById('root'));
fields/types/email/EmailColumn.js
cermati/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var EmailColumn = React.createClass({ displayName: 'EmailColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
src/svg-icons/notification/sms-failed.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSmsFailed = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z"/> </SvgIcon> ); NotificationSmsFail...
node_modules/react-bootstrap/es/Clearfix.js
ivanhristov92/bookingCalendar
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 ...
src/index.js
Bestbrains/refract
import React from 'react'; import { shallow } from 'enzyme'; export function Wrap(ComponentUnderTest) { let renderedInstance; const setInstance = (instance) => renderedInstance = instance; const getInstance = () => renderedInstance; let Refracted = RefractFactory(setInstance, ComponentUnderTest); ...
components/lights_switcher.js
kapone89/MonteOfficeExpo
import React, { Component } from 'react'; import { observer } from 'mobx-react/native'; import { Container, Header, Content, Title, Icon, Button, Spinner, Col, Row, Grid, Left, Right, Body } from 'native-base'; import { Button as RneButton } from 'react-native-elements'; import { Switch, Platform } from 'react-native';...
src/pages/graph/Tarjan/Tarjan.js
hyy1115/react-redux-webpack3
import React from 'react' class Tarjan extends React.Component { render() { return ( <div>Tarjan</div> ) } } export default Tarjan
client/component/redirect-edit/match/language.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import TableRow from '../table-row'; const MatchLanguage = ( { data, onChange } ) => { const { language } = data; return ( <TableRow ti...
resources/js/components/Pagination/Pagination.js
DoSomething/northstar
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import PageLink from './PageLink'; /** * Determine if there are multiple page links for pagination, apart * from previous/next links and current page. * * @param {array} pageLinks * @returns boolean */ function h...
src/Parser/EnhancementShaman/Modules/Items/Tier20_2set.js
mwwscott0/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Combatants from 'Parser/Core/Modules/Combatants'; import Module from 'Parser/Core/Module'; class Tier20_2set exte...
devmgmtui/src/components/common/Sidebar.js
projectOpenRAP/OpenRAP
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom' import { connect } from 'react-redux' import * as actions from '../../actions/auth' import { Sidebar, Menu, Icon } from 'semantic-ui-react' class SideNav extends Component { constructor(props){ super(props); ...
fields/types/relationship/RelationshipFilter.js
frontyard/keystone
import _ from 'lodash'; import async from 'async'; import React from 'react'; import { findDOMNode } from 'react-dom'; import xhr from 'xhr'; import { FormField, FormInput, SegmentedControl, } from '../../../admin/client/App/elemental'; import PopoutList from '../../../admin/client/App/shared/Popout/PopoutList'; ...
app/javascript/flavours/glitch/features/ui/components/audio_modal.js
Kirishima21/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Audio from 'flavours/glitch/features/audio'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Footer from 'flavours/glitch/f...
node_modules/react-error-overlay/lib/containers/StackFrame.js
lujinming1/hejicaoye
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...
src/scripts/pages/Homepage.js
Fourwinged/react-quizz
/* Homepage ** ** The home page */ import React from 'react'; import {Link} from 'react-router'; import {connect} from 'react-redux'; import Meta from '../shared/components/Meta'; import Title from '../shared/components/Title'; // We create a React component class class Homepage extends React.Component { // The...
app/javascript/mastodon/components/account.js
mecab/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import DisplayName from './display_name'; import Permalink from './permalink'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'rea...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
frnk94/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
stories/react/Accordion.stories.js
onap-sdc/sdc-ui
import React from 'react'; import Examples from './utils/Examples.js'; import Accordion from '../../src/react/Accordion.js'; import HTMLBasic from '../../components/accordion/accordion-basic.html'; let examples = { Basic: { jsx: <Accordion title='Accordion Title'><div>Accordion body</div></Accordion>, ...
frontend/src/modules/machinery/components/TranslationSource.js
jotes/pontoon
/* @flow */ import React from 'react'; import type { MachineryTranslation } from 'core/api'; import type { Locale } from 'core/locale'; import GoogleTranslation from './GoogleTranslation'; import MicrosoftTranslation from './MicrosoftTranslation'; import SystranTranslation from './SystranTranslation'; import Microso...
AtomCodeAnnotations/src/help-button.js
jneuendorf/code-annotations
import React from 'react' import {Image, StyleSheet, TouchableOpacity} from 'react-native' import PropTypes from 'prop-types' import {Navigation} from 'react-native-navigation' export default class HelpButton extends React.PureComponent { static propTypes = { deepLinkParams: PropTypes.object.isRequired, ...
app/components/Profile/ProgressMetric.js
liuyanghejerry/react-westworld
import React from 'react'; import styled from 'styled-components'; import ProgressBar from './ProgressBar'; import Label from './Label'; function ProgressMetric({ title, value }) { const StyledSpan = styled.span` margin-right: 10px; `; return ( <StyledSpan> <Label>{title}:</Label> <ProgressBa...
app/javascript/mastodon/features/followers/index.js
yukimochi/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import LoadingIndicator from '../../components/loading...
src/components/Card/Card.js
tuckerconnelly/carbon-ui
import React from 'react' import PropTypes from 'prop-types' import { View } from 'react-native' import Uranium from 'uranium' import { Elevation, Breakpoints, Colors, connectTheme } from '../../index' /** * A card is a sheet of material that serves as an entry point to more detailed * information. * * import R...
src/main.js
guidiego/webpack-todolist
import React from 'react'; import DOM from 'react-dom'; import Board from 'views/Board'; let root = document.getElementById('app'); DOM.render(<Board />, root);
src/components/Settings/Settings.react.js
DravitLochan/accounts.susi.ai
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import RaisedButton from 'material-ui/RaisedButton' import PropTypes from 'prop-types' class Settings extends Component { handleSave = (event) => { this.props.history.push('/', { showLogin: true }); } render() { const sub...
react-ui/src/components/SignupForm.js
sebastienrohan/full-stack-react-heroku-starter
import React from 'react' import PropTypes from 'prop-types' import { Link } from 'react-router-dom' import { Card, CardText } from 'material-ui/Card' import RaisedButton from 'material-ui/RaisedButton' import TextField from 'material-ui/TextField' const SignupForm = ({ onSubmit, onChange, errors, user }) => (...
src/App/Components/GitItem.js
ccubed/Vertinext
import React from 'react'; import Spinner from 'react-spinkit'; class Gititem extends React.Component { constructor(props){ super(); } render() { var repoNodes = []; if( this.props.data.length > 0 ){ this.props.data.forEach(function(repo){ repoNodes.push(<li className="collectio...
src/react.js
muffinresearch/redux
import React from 'react'; import createAll from './components/createAll'; export const { Provider, Connector, provide, connect } = createAll(React);
App/node_modules/react-navigation/lib-rn/views/Drawer/DrawerNavigatorItems.js
Dagers/React-Native-Differential-Updater
import React from 'react'; import { View, Text, Platform, StyleSheet } from 'react-native'; import TouchableItem from '../TouchableItem'; var babelPluginFlowReactPropTypes_proptype_Style = require('../../TypeDefinition').babelPluginFlowReactPropTypes_proptype_Style || require('prop-types').any; var babelPluginFlowRe...
web/components/screens/Invite/index.fixture.js
skidding/flatris
// @flow import React from 'react'; import Invite from '.'; export default { default: ( <Invite disabled={false} gameId="1337" onPlay={() => console.log('Play')} /> ), disabled: ( <Invite disabled={true} gameId="1337" onPlay={() => console.log('Play')} /> ), };
examples/todo/js/components/Todo.js
michaelchum/relay
/** * 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...
P/lixil/src/pages/Detail.js
imuntil/React
import React from 'react' import {Breadcrumb, Col, Row, Spin} from 'antd' import {Link} from 'react-router-dom' import {getProductDetail} from '../reducers/products' import {fetchProDetail, clearProDetail} from '../actions' import {URL} from '../service' import {connect} from 'react-redux' import './Detail.css' const I...
src/components/ProposalInput/PollOptionPreview.js
nambawan/g-old
// @flow import React from 'react'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './PollOptionPreview.css'; import Button from '../Button'; import Box from '../Box'; import { ICONS } from '../../constants'; import Label from '../Label'; import ProposalBody from './ProposalBody'; import typ...
src/containers/Asians/Registration/_components/AppBar/index.js
westoncolemanl/tabbr-web
import React from 'react' import { connect } from 'react-redux' import Link from 'react-router-dom/Link' import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import Button from 'material-ui/Button' import RegistrationInstitutionsButton from './RegistrationInstitutionsButton' export defa...
example/js/app.js
c58/marsdb-sync-client
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import * as MarsClient from 'marsdb-sync-client'; import Collection from 'marsdb'; import DDPTestComponent from './components/DDPTestComponent'; // Configure Mars stack MarsClient.configure({ url: 'ws://localhost:3000' }); Collection...
react/tic-tac-toe/src/App.js
saramic/learning
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
example/src/screens/Login.js
khanhqd/SuperSale2.0
import React, { Component } from 'react'; import { Text, View, TouchableOpacity, StyleSheet, Alert, Platform, Image, Dimensions, ScrollView, Animated, TouchableHighlight, StatusBar } from 'react-native'; var {height, width} = Dimensions.get('window'); import { Navigation } from 'react-native-n...
src/components/about/AboutPage.js
HunorMarton/drag-and-drop
import React from 'react'; const AboutPage = () => ( <div id="about"> <h2>Drag & Drop template</h2> <p> This page is using React, Redux and RxJS. </p> <h4>Source</h4> <code><a href="https://github.com/HunorMarton/drag-and-drop"> https://github.com/HunorMarton/drag-and-drop </a></c...
docs/src/modules/components/AppFrame.js
lgollut/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { useSelector } from 'react-redux'; import Router, { useRouter } from 'next/router'; import { rewriteUrlForNextExport } from 'next/dist/next-server/lib/router/rewrite-url-for-export'; import { withStyles, useTheme } from '@material-ui/core/styles'; i...
src/svg-icons/action/thumb-up.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbUp = (props) => ( <SvgIcon {...props}> <path d="M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-...
react/gameday2/components/LivescoreDisplay.js
phil-lopreiato/the-blue-alliance
import React from 'react' import PropTypes from 'prop-types' import AutoScale from './AutoScale/AutoScale' import PowerupCount from '../../liveevent/components/PowerupCount' import CountWrapper from './CountWrapper' class LivescoreDisplay extends React.PureComponent { state = { currentTime: undefined, } com...
src/svg-icons/action/info.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInfo = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"/> </SvgIcon> ); ActionInfo = pure(ActionInfo); ActionI...