path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/components/forms/system/DirList.js
theogravity/beatbox-player
import React from 'react' import Immutable from 'immutable' import RefreshIndicator from 'material-ui/lib/refresh-indicator' import List from 'material-ui/lib/lists/list' import Divider from 'material-ui/lib/divider' import ListItem from 'material-ui/lib/lists/list-item' import FontIcon from 'material-ui/lib/font-icon'...
js/src/dapps/githubhint/Loading/loading.js
nipunn1313/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any lat...
src/views/Settings/Settings.js
giux78/daf-dataportal
import React, { Component } from 'react'; import { connect } from 'react-redux' import { isAdmin } from '../../utility'; import { Modal, } from 'react-modal-bootstrap' import themes from './data/Themes' import Select from "react-select"; import { serviceurl } from '../../config/serviceurl' class Settings extends ...
src/svg-icons/maps/local-library.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLibrary = (props) => ( <SvgIcon {...props}> <path d="M12 11.55C9.64 9.35 6.48 8 3 8v11c3.48 0 6.64 1.35 9 3.55 2.36-2.19 5.52-3.55 9-3.55V8c-3.48 0-6.64 1.35-9 3.55zM12 8c1.66 0 3-1.34 3-3s-1.34-3-3-3-...
docs/app/Examples/elements/Segment/Variations/SegmentExampleColored.js
koenvg/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleColored = () => ( <div> <Segment color='red'>Red</Segment> <Segment color='orange'>Orange</Segment> <Segment color='yellow'>Yellow</Segment> <Segment color='olive'>Olive</Segment> <Segment color='green'>Gree...
fields/types/url/UrlField.js
rafmsou/keystone
import React from 'react'; import Field from '../Field'; import { GlyphButton, FormInput } from '../../../admin/client/App/elemental'; module.exports = Field.create({ displayName: 'URLField', statics: { type: 'Url', }, openValue () { var href = this.props.value; if (!href) return; if (!/^(mailto\:)|(\w+\:\...
src/routes/error/index.js
LeraSavchenko/Maysternia
/** * 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 ErrorPage from './Err...
src/svg-icons/action/delete-forever.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDeleteForever = (props) => ( <SvgIcon {...props}> <path d="M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1....
src/index.js
stevecd/mpcnc_calc_react
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import About from './About'; import { Router, Route, hashHistory } from 'react-router'; // import createBrowserHistory from 'history/lib/createBrowserHistory'; ReactDOM.render(( <Router history={hashHistory}> <Route path="/" co...
docs/src/sections/MenuItemSection.js
egauci/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function MenuItemSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> <...
app/scripts/HiGlassComponent.js
hms-dbmi/4DN_matrix-viewer
import React from 'react'; import PropTypes from 'prop-types'; import { select, clientPoint } from 'd3-selection'; import { scaleLinear } from 'd3-scale'; import slugid from 'slugid'; import * as PIXI from 'pixi.js'; import ReactDOM from 'react-dom'; import ReactGridLayout from 'react-grid-layout'; import { ResizeSenso...
client/src/templates/Challenges/components/ResetModal.js
otavioarc/freeCodeCamp
import React from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { Button, Modal } from '@freecodecamp/react-bootstrap'; import ga from '../../../analytics'; import { isResetModalOpenSelec...
docs/src/components/item-filter-example.js
balloob/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import StateViewer from './state-viewer' import ExampleStep from './example-step' import Browser from './browser' const reactor = new Reactor({ debug: true, expose: 'itemFilterReactor' }); reactor.registerStores({ typeFilter: Sto...
frontend/src/InteractiveImport/ReleaseGroup/SelectReleaseGroupModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button from 'Components/Link/Bu...
app/components/Textarea/index.js
matteoterrinoni/portfolio
/** * * Textarea * */ import React from 'react'; import { baseKey } from 'components/Editing/model'; // import styled from 'styled-components'; class Textarea extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function static key = baseKey + 'textarea'; render() { const { label, value...
upgrade-guides/v0.12-v0.13/es6/src/components/ShowLoadingScreen.js
lore/lore
/** * This component shows the loading screen. It does so by removing any classes it * has, which will revert it back to it's default state, which is visible. **/ import React from 'react'; import PropTypes from 'prop-types'; export default class ShowLoadingScreen extends React.Component { /* * This compone...
client/components/ui/foldable-panel.js
bnjbvr/kresus
import React from 'react'; import PropTypes from 'prop-types'; class FoldablePanel extends React.Component { constructor(props) { super(props); this.state = { expanded: props.initiallyExpanded }; this.handleToggleExpand = this.handleToggleExpand.bind(this); } h...
src/card/Card.js
hersonls/never-going-back-again
import React, { Component } from 'react'; import moment from 'moment'; class Card extends Component { render() { return ( <div className="mdl-card mdl-shadow--2dp"> <div className="mdl-card__title"> <h2 className="mdl-card__title-text">{this.props.area.name}</h2> </div> <...
actor-apps/app-web/src/app/components/modals/MyProfile.react.js
dut3062796s/actor-platform
import React from 'react'; import { KeyCodes } from 'constants/ActorAppConstants'; import MyProfileActions from 'actions/MyProfileActionCreators'; import MyProfileStore from 'stores/MyProfileStore'; import AvatarItem from 'components/common/AvatarItem.react'; import Modal from 'react-modal'; import { Styles, TextFi...
src/components/content-modules/LandingPageGallery.js
Khaledgarbaya/chocolate-free-website
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'gatsby'; class LandingPageGallery extends Component { render() { const { data } = this.props; console.log({ data }); return ( <div className="flex flex-wrap w-full"> {data.fields.images['en-U...
client/views/room/Announcement/Announcement.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import Announcement from '.'; export default { title: 'room/Announcement', component: Announcement, }; export const Default = () => <Announcement announcement='Lorem Ipsum Indolor' />;
EKSY/App/Components/Common/CardSection.js
EksyApp/eksy
import React from 'react'; import { View, StyleSheet, } from 'react-native'; import {detailColor} from '../../Theme' import {StyleShape} from '../../Utils/PropTypeShapes' export const CardSection = (props) => ( <View {...props} style={[styles.container, props.style]}> </View> ); export default CardSection...
site/partials/PlayGround.js
quark-ui/quark-ui
import 'codemirror/lib/codemirror.css'; import 'codemirror/theme/material.css'; import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { transform } from 'babel-standalone'; import classnames from 'classnames'; import 'codemirror/mode/jsx/jsx'; import PropTypes from 'prop-types'; import Tra...
SmartDemo/ReactComponent/node_modules/react-native/Libraries/Image/Image.ios.js
HarrisLee/React-Native-Express
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
docs/src/examples/views/Comment/Content/CommentExampleMetadata.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Comment, Icon } from 'semantic-ui-react' const CommentExampleMetadata = () => ( <Comment.Group> <Comment> <Comment.Avatar as='a' src='/images/avatar/small/stevie.jpg' /> <Comment.Content> <Comment.Author>Stevie Feliciano</Comment.Author> <Comment.Met...
src/components/music/detail.js
scholtzm/arnold
import React, { Component } from 'react'; import { Modal, Image, Button } from 'semantic-ui-react'; import PlayAlbumButton from './play-button.js'; import SongStore from '../../stores/song-store.js'; import { getSongs } from '../../actions/song-actions.js'; import SongTable from './song-table.js'; class AlbumDetail ex...
docs/src/app/components/pages/components/List/ExampleSettings.js
pancho111203/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import Checkbox from 'material-ui/Checkbox'; import Toggle from 'material-ui/Toggle'; const style...
react/render_visible_dom/src/App.js
kobeCan/practices
import React from 'react'; import './App.css'; const rows = []; for (let i = 0; i < 1000; i++) { rows[i] = <div className={`item item-${i}`} key={i}>{`item-${i}`}</div>; } class App extends React.Component { constructor (props) { super(props); this.state = {}; } render () { return <div id="app"> <Scroll...
packages/components/src/CollapsiblePanel/CollapsiblePanel.stories.js
Talend/ui
import React from 'react'; import { action } from '@storybook/addon-actions'; import CollapsiblePanel from './CollapsiblePanel.component'; import { ActionButton } from '../Actions'; const keyValueContent = [ { label: 'Content1', description: 'Description1', }, { label: 'Content2', description: 'Description...
examples/todomvc/index.js
drstarry/redux
import 'babel-core/polyfill'; import React from 'react'; import Root from './containers/Root'; import 'todomvc-app-css/index.css'; React.render( <Root />, document.getElementById('root') );
components/Deck/ContentPanel/AttachQuestions/AttachQuestionsItem.js
slidewiki/slidewiki-platform
import React from 'react'; import PropTypes from 'prop-types'; import AttachQuestionsAnswersList from './AttachQuestionsAnswersList'; import updateSelectedQuestions from '../../../../actions/attachQuestions/updateSelectedQuestions'; import {connectToStores} from 'fluxible-addons-react'; import AttachQuestionsModalStor...
src/ui/form/password/password-story.js
josmardias/frontend-boilerplate
import React from 'react' import { storiesOf } from '@kadira/storybook' import Password from '.' storiesOf('ui.Form.Password', module) .add('Default', () => ( <Password /> ))
dynamic-react-router demo/src/Components/Header/index.js
gabriel-lopez-lopez/dynamic-react-route
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; class Header extends Component { constructor(props) { super(props); } render () { return ( <nav> <ul> <li> <h3>dynamic-react-router</h3...
app/private/indexerApp/imports/ui/components/FileList.js
ericvrp/GameCollie
import React from 'react'; import PropTypes from 'prop-types'; import { browserHistory } from 'react-router'; import { ListGroup, ListGroupItem, Alert } from 'react-bootstrap'; import { Meteor } from 'meteor/meteor'; import Files from '../../api/files/files'; import container from '../../modules/container'; const hand...
app/pages/Search.js
EleTeam/Shop-React-Native
/** * ShopReactNative * * @author Tony Wong * @date 2016-08-13 * @email 908601756@qq.com * @copyright Copyright © 2016 EleTeam * @license The MIT License (MIT) */ import React from 'react'; import { StyleSheet, View, Text, TextInput, Image, ListView, ScrollView, Animated, To...
docs/app/Examples/views/Comment/Variations/CommentExampleMinimal.js
vageeshb/Semantic-UI-React
import React from 'react' import { Button, Comment, Form, Header } from 'semantic-ui-react' const CommentExampleMinimal = () => ( <Comment.Group minimal> <Header as='h3' dividing>Comments</Header> <Comment> <Comment.Avatar as='a' src='http://semantic-ui.com/images/avatar/small/matt.jpg' /> <Comm...
ReactJS_NoteApp/node_modules/react-router/es/Route.js
canhphong/canhphong.github.io
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
src/parser/hunter/marksmanship/modules/Abilities.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import CoreAbilities from 'parser/core/modules/Abilities'; class Abilities extends CoreAbilities { spellbook() { const combatant = this.selectedCombatant; return [ { spell: SPELLS.AIMED_SHO...
packages/react-router-website/examples/NoMatch.js
rafrex/react-router
import React from 'react' import Route from 'react-router/Route' import Switch from 'react-router/Switch' import Router from 'react-router-dom/BrowserRouter' import Link from 'react-router-dom/Link' const NoMatchExample = () => ( <Router> <div> <ul> <li><Link to="/">Home</Link></li> <li><Li...
src/components/task.js
frigg/frigg-hq-frontend
import React from 'react'; import stripAnsi from 'strip-ansi' export default class Task extends React.Component { constructor() { super(); this.state = {show: false}; this.handleClick = this.handleClick.bind(this); } handleClick() { if (this.props.task.pending) return; const state = this.sta...
src/components/sort-contacts/sort-contacts.js
HendrikThePendric/webpack-demo
import React, { Component } from 'react'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import { connect } from 'react-redux'; import { updateSortProp } from '../../actions'; import {F_NAME_ASC, F_NAME_DESC, L_NAME_ASC, L_NAME_DESC, PHONE_ASC, PHONE_DESC, CUSTOM} from '...
app/components/layout/dynamic/conditionalRender.js
communicode-source/communicode
import React from 'react'; import PropTypes from 'prop-types'; export default class Notifier extends React.Component { constructor(props) { super(props); this.props = props; } render() { if(this.props.render !== true) { return null; } return ( ...
app/react-icons/fa/arrow-circle-left.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaArrowCircleLeft extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m31.6 21.4v-2.8q0-0.6-0.5-1t-1-0.5h-11.2l4.3-4.2q0.4-0.4 0.4-1t-0.4-...
node_modules/react-select/examples/src/components/NumericSelect.js
rblin081/drafting-client
import React from 'react'; import createClass from 'create-react-class'; import PropTypes from 'prop-types'; import Select from 'react-select'; var ValuesAsNumbersField = createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: PropTypes.string }, getInitialState () { return { options: [ {...
src/admin/components/Main/index.js
u-wave/web
import React from 'react'; import Alert from '@mui/material/Alert'; import Motd from '../../containers/Motd'; const Main = () => ( <div> <Alert severity="warning"> The admin interface is not yet done and most things do not work. </Alert> <Motd /> </div> ); Main.propTypes = {}; export default Ma...
components/User/User.js
yabeow/sinhvienuit
import React from 'react'; import PropTypes from 'prop-types'; import { Alert, Image, ImageBackground } from 'react-native'; import { Header, Title, Body, View, Text, Button, Container, Icon, Toast, Content, ListItem, Left, Right, Card, CardItem, } from 'native-base'; import Spinner from '...
src/stores/WheelStore.js
vsherms/LifeCoach
import React from 'react'; import {extendObservable} from 'mobx'; import { Button, Glyphicon } from 'react-bootstrap'; import { browserHistory } from 'react-router'; const dateFormat = require('dateformat'); export default class WheelStore { constructor(){ extendObservable(this, { segs: [ {value: '...
packages/react-error-overlay/src/components/Header.js
appier/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React from 'react'; import { red } from '../styles'; const headerStyle = { fontSize: '2em', fontFamily: 'sans-se...
src/routes/admin/index.js
murthymuddu/murthy-umg
/** * 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 Layout from '../../co...
06-testing-redux/src/Greeter.js
dtanzer/react-basic-examples
import React from 'react'; import { connect } from 'react-redux'; import GreeterActions from './GreeterActions'; export class Greeter extends React.Component { render() { return ( <div> <input type="text" value={this.props.toGreet} onChange={ this.props.toGreetChanged }/> <p>{this.props.gr...
app/containers/Root.js
innFactory/aws-session-token-gui
// @flow import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import Routes from '../routes'; type RootType = { store: {}, history: {} }; export default function Root({ store, history }: RootType) { return ( <Provider store={store}> <...
src/containers/challenges/Card/CardView.js
OlivierVillequey/hackathon
/** * Challenge View Screen * - The individual recipe screen * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View, StyleSheet, TouchableOpacity, } from 'react-native'; import { Icon ...
stories/style.js
yiminghe/css-animation
import anim from '../src'; import React from 'react'; import ReactDOM from 'react-dom'; import { storiesOf } from '@storybook/react'; const style = ` .box { background:red; width:100px; height:100px; } `; let show = true; function toggle() { const t = document.getElementById('t'); const b = document.getEle...
src/components/Features.js
sfoubert/cdsbf75
import React from 'react' import PropTypes from 'prop-types' const FeatureGrid = ({ gridItems }) => ( <div className="columns is-multiline"> {gridItems.map(item => ( <div key={item.image} className="column is-6"> <section className="section"> <p className="has-text-centered"> ...
react/src/components/Filters/BaseFilter.js
museumary/Museumary
/* --BaseFilter.js-- Higher order component that acts as an enhancer for the model filters ArtistsFilter WorksFilter VenuesFilter TypesFilter Contains all the default buttons / options for filtering. State: Sateless component that recieves its props from masterf...
modules/gui/src/app/home/user/userSession.js
openforis/sepal
import {Form, form} from 'widget/form/form' import {Layout} from 'widget/layout' import {Panel} from 'widget/panel/panel' import {compose} from 'compose' import {msg} from 'translate' import {select} from 'store' import {updateCurrentUserSession$} from 'user' import Notifications from 'widget/notifications' import Reac...
app/javascript/mastodon/components/autosuggest_emoji.js
mstdn-jp/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import unicodeMapping from '../features/emoji/emoji_unicode_mapping_light'; const assetHost = process.env.CDN_HOST || ''; export default class AutosuggestEmoji extends React.PureComponent { static propTypes = { emoji: PropTypes.object.isRequired, ...
frontend/routes/index.js
zhangmingkai4315/RoomBookingSystem
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import {requireAuthentication} from '../components/Auth' import { App, NotFound, RoomDetail, AddRoom, UserInfo, Rooms, OrderPage, LoginView, RegistView, NotActiveView, ActiveView, Loading, UserList, ResetPassword, ...
src/stories/index.js
BatuhanK/react-qart
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { withKnobs, text, select } from '@kadira/storybook-addon-knobs'; import Qart from '../index'; const stories = storiesOf('Qart', module); stories.addDecorator(withKnobs); stories .add('kitten qr with default filter(threshold)', () => ...
src/index.js
buttercomponents/butter-component-stars
import React, { Component } from 'react'; export default class Stars extends Component { defaultProps: { percentage: 0 }; render () { let stars = []; let p_rating = Math.round (this.props.percentage/10)/2; for (var i = 1; i <= Math.floor(p_rating); i++) { stars....
test/integration/client-navigation/pages/nav/as-path.js
flybayer/next.js
import React from 'react' export default class extends React.Component { static getInitialProps({ asPath, req }) { return { asPath } } render() { return <div className="as-path-content">{this.props.asPath}</div> } }
src/components/horizontal-bar-background.js
ronlobo/building-os-charts
import React from 'react'; import Bar from 'components/bar'; import RoundedRect from 'components/rounded-rect'; import setStateFromProps from 'decorators/set-state-from-props'; @setStateFromProps export default class HorizontalBarBackground extends Bar { static propTypes = { active: React.PropTypes.bool.isRequi...
packages/wix-style-react/src/TableActionCell/docs/examples/SecondaryWithDividerExample.js
wix/wix-style-react
import React from 'react'; import Download from 'wix-ui-icons-common/Download'; import Duplicate from 'wix-ui-icons-common/Duplicate'; import { TableActionCell } from 'wix-style-react'; import { classes } from '../TableActionCell.story.st.css'; const Example = () => ( <div className={classes.exampleRow}> <TableA...
src/shared/js/components/SunburstSlice.js
datalocale/dataviz-finances-gironde
import React from 'react'; import {arc as d3arc, pie as d3pie} from 'd3-shape'; import {flattenTree} from '../finance/visitHierarchical.js'; export default class SunburstSlice extends React.Component{ shouldComponentUpdate(nextProps){ if(['radius', 'donutWidth', 'startAngle', 'endAngle', 'selectedNod...
src/lib/reactors/Legend/PolygonLegend.js
ynunokawa/react-webmap
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // 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 us...
src/svg-icons/editor/format-line-spacing.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatLineSpacing = (props) => ( <SvgIcon {...props}> <path d="M6 7h2.5L5 3.5 1.5 7H4v10H1.5L5 20.5 8.5 17H6V7zm4-2v2h12V5H10zm0 14h12v-2H10v2zm0-6h12v-2H10v2z"/> </SvgIcon> ); EditorFormatLineSpacing =...
showcase/legends/continuous-color.js
Apercu/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // 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, copy, modify...
src/js/views/devices/detail.js
mmagr/gui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { PageHeader, ActionHeader } from "../../containers/full/PageHeader"; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import { Link, hashHistory } from 'react-router' import alt from '../../alt'; import AltCont...
src/repository/screens/read-me.screen.js
Antoine38660/git-point
import React, { Component } from 'react'; import { StyleSheet, View, Text } from 'react-native'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Icon } from 'react-native-elements'; import ActionSheet from 'react-native-actionsheet'; import { MarkdownWebView, ViewContainer, ...
src/components/Theme.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Select from 'grommet/components/Select'; const THEMES = ['grommet', 'aruba', 'hpe', 'hpinc']; export default class ThemeMenu extends Component { constructor () { super(); this._onChange = ...
src/containers/Reader/Reader.js
YouYII/EasyReader
//@flow import React from 'react'; import { View, Text, Dimensions, TouchableWithoutFeedback, PanResponder, RefreshControl, } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Spinner from 'react-native-spinkit'; import { Container, Navbar } from 'navbar-native'; import { B...
actor-apps/app-web/src/app/components/DialogSection.react.js
allengaller/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
src/pages/le-blog.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Le Blog' /> )
src/components/Inputs/Inputs.js
TekkenChicken/t7-chicken-native
import React, { Component } from 'react'; import { View, StyleSheet, Image } from 'react-native'; import CustomText from '../CustomText/CustomText'; import inputImages from '../../img/inputs/index'; import InputParser from './inputParser'; export default class Inputs extends Component { constructor() { su...
pages/api/list-item-text.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './list-item-text.md'; function Page() { return <MarkdownDocs markdown={markdown} />; } export default withRoot(Page);
src/ButtonWithOptions/ButtonWithOptions.driver.js
skyiea/wix-style-react
import React from 'react'; import buttonDriverFactory from '../Backoffice/Button/Button.driver.js'; import dropdownLayoutDriverFactory from '../DropdownLayout/DropdownLayout.driver'; import ReactDOM from 'react-dom'; const ButtonWithOptionsDriverFactory = ({element, wrapper, component}) => { const buttonWrapper = e...
Realization/frontend/czechidm-core/src/content/script/ScriptTable.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import uuid from 'uuid'; import { connect } from 'react-redux'; // import * as Utils from '../../utils'; import * as Basic from '../../components/basic'; import * as Advanced from '../../components/advanced'; import { SecurityManager } from '../../redux'; i...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/SvgInclusion.js
maletor/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import logo from './assets/logo.svg'; export default () => <img id="feature-svg-inclusion" src={logo} alt="l...
services/ui/src/components/AddTask/components/DrushCron.js
amazeeio/lagoon
import React from 'react'; import { Mutation } from 'react-apollo'; import gql from 'graphql-tag'; import ReactSelect from 'react-select'; import Button from 'components/Button'; import { bp, color, fontSize } from 'lib/variables'; const taskDrushCron = gql` mutation taskDrushCron($environment: Int!) { taskDrush...
web/src/views/Login.js
sliceofcode/dogbot
import React from 'react' import styled from 'styled-components' import { adjust } from '../theming' const StyledLogin = styled.div` display: flex; flex-flow: column nowrap; justify-content: center; align-items: center; margin: 2rem 0; ` const DiscordLogin = styled.a` display: block; margin: 1rem 0 0; ...
src/components/progressbar/ProgressBar.js
acorn421/react-html5video-subs
import React from 'react'; var ProgressBar = React.createClass({ propTypes: { orientation: React.PropTypes.string, step: React.PropTypes.number, progress: React.PropTypes.number, onChange: React.PropTypes.func, onFocus: React.PropTypes.func, onBlur: React.PropTypes....
src/components/miniProject01/AllPurposeApp.js
thejapanexperience/newWebsiteShell
import React, { Component } from 'react'; import axios from 'axios'; import UserCard from './UserCard'; class AllPurposeApp extends Component { constructor() { super(); this.state = { users: [], initialized: false, show: 'false' }; this.getData1 = this.getData1.bind(this); this....
src/svg-icons/av/playlist-add.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPlaylistAdd = (props) => ( <SvgIcon {...props}> <path d="M14 10H2v2h12v-2zm0-4H2v2h12V6zm4 8v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zM2 16h8v-2H2v2z"/> </SvgIcon> ); AvPlaylistAdd = pure(AvPlaylistAdd); AvPlaylistAdd...
examples/src/components/Contributors.js
VanCoding/react-select
import React from 'react'; import Select from 'react-select'; const CONTRIBUTORS = require('../data/contributors'); const MAX_CONTRIBUTORS = 6; const ASYNC_DELAY = 500; const Contributors = React.createClass({ displayName: 'Contributors', propTypes: { label: React.PropTypes.string, }, getInitialState () { ret...
examples/huge-apps/routes/Course/routes/Grades/components/Grades.js
jeffreywescott/react-router
import React from 'react'; class Grades extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[this.props.params.courseId].assignments...
packages/web/examples/withRedux/src/components/Link.js
appbaseio/reactivesearch
import React from 'react'; import PropTypes from 'prop-types'; const Link = ({ active, children, onClick }) => { if (active) { return <span>{children}</span>; } return ( // eslint-disable-next-line <a href="#" onClick={(e) => { e.preventDefault(); onClick(); }} > {children} </a> ); }...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
chenbk85/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
docs-ui/components/well.stories.js
mvaled/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import {withKnobs, boolean} from '@storybook/addon-knobs'; import Well from 'app/components/well'; const stories = storiesOf('UI|Well', module); stories.addDecorator(withKnobs); stories.add( 'defa...
node_modules/react-icons/md/mic.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdMic = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m28.8 18.4h2.8c0 5.7-4.5 10.4-10 11.1v5.5h-3.2v-5.5c-5.5-0.8-10-5.4-10-11.1h2.8c0 5 4.2 8.4 8.8 8.4s8.8-3.4 8.8-8.4z m-8.8 5c-2.7 0-5-2.3-5-5v-10c0-2.8 2.3-5 5-5s5 2.2 5 ...
src/components/Calendar/Calendar.js
moo-dal/spoon-web
/* External dependencies */ import React from 'react' import autobind from 'core-decorators/lib/autobind' import classNames from 'classnames' import c from 'calendar' /* Internal dependencies */ import styles from './Calendar.scss' import CalendarDate from '../../models/CalendarDate' const days = ['SUN', 'MON', 'TUE'...
src/clincoded/static/components/search.js
ClinGen/clincoded
'use strict'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'underscore'; import url from 'url'; import { content_views, listing_titles, listing_views, statusOrder } from './globals'; import { AuditMixin, AuditIndicators, A...
src/components/flags/Br.js
angeloocana/tic-tac-toe-ai
import React from 'react'; import Icon from 'react-icon-base'; const Br = (props) => { return ( <Icon viewBox="0 0 640 480" {...props}> <g strokeWidth="1pt"> <path fillRule="evenodd" fill="#229e45" d="M0 0h640v480H0z" /> <path d="M321.406 435.935l301.483-195.67-303.308-196.2L17.11 240.734l3...
components/list/ListItem.js
react-toolbox/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { themr } from 'react-css-themr'; import { LIST } from '../identifiers'; import InjectListItemContent from './ListItemContent'; import InjectListItemLayout from './ListItemLayout'; import rippleFactory from '../ripple/Ripple'; const f...
step8-unittest/node_modules/react-router/modules/IndexLink.js
jintoppy/react-training
import React from 'react' import Link from './Link' /** * An <IndexLink> is used to link to an <IndexRoute>. */ const IndexLink = React.createClass({ render() { return <Link {...this.props} onlyActiveOnIndex={true} /> } }) export default IndexLink
web-ui/src/backup_account/backup_email/backup_email.js
pixelated/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated 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, either version 3 of the License, or * (at your option) any later version. * * Pixelated i...
src/components/Feedback/Feedback.js
tholapz/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.less'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedb...
src/MenuItem.js
dongtong/react-bootstrap
import React from 'react'; import classnames from 'classnames'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; export default class MenuItem extends React.Component { constructor(props) { super(props); this.handleClick = this.handleClick.bind(this); } hand...
src/app/Root.js
dudekt/amber
import React from 'react' import './scss/main.scss' import './scss/main.scss' import TabsContainer from './components/tabs-container/container' import Navigation from 'components/navigation/' import Background from 'components/background/' import Top from './components/header-components/top/container' import Loader fro...
packages/react/src/components/UIShell/SwitcherDivider.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import cx from 'classnames'; import PropTypes from 'prop-types'; import { usePrefix } from '../../internal/usePref...
app/components/addemailbanner/addemailbanner.js
tidepool-org/blip
/* * == BSD2 LICENSE == * Copyright (c) 2017, 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 ...