path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
blueocean-dashboard/src/main/js/components/stories/drop.js
jenkinsci/blueocean-plugin
import React from 'react'; import { storiesOf } from '@kadira/storybook'; import { Dropdown } from '@jenkins-cd/design-language'; const a2z = 'ABCDEFGHIJKLM NOPQRSTUVWXYZ'; const style = { padding: 10, width: 200, }; function createOptions(text = 'Option', asObject = false) { const options = []; for...
examples/src/components/Virtualized.js
glowka/react-select
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
Libraries/Components/MapView/MapView.js
catalinmiron/react-native
/** * 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...
webpack/move_to_foreman/components/common/table/components/CollapseSubscriptionGroupButton.js
jlsherrill/katello
import React from 'react'; import PropTypes from 'prop-types'; import { noop } from 'foremanReact/common/helpers'; import { Icon } from 'patternfly-react'; const CollapseSubscriptionGroupButton = ({ collapsed, onClick, ...props }) => { const iconName = collapsed ? 'angle-right' : 'angle-down'; return ( <Ico...
src/components/Popover.js
ev-ui/ev-ui
import React from 'react' import {render} from 'react-dom' import styled,{keyframes} from 'styled-components' import Ripple from '../plugin/evolify/ripple.jsx' const swiftIn=keyframes` 0%{ transform:scale(0); } 70%{ transform:scale(1.1); } 100%{ transform:scale(1); } `; ...
app/components/navbar/navbar.js
tidepool-org/blip
import React from 'react'; import { Link } from 'react-router-dom'; import PropTypes from 'prop-types'; import { Flex } from 'rebass/styled-components' import { translate } from 'react-i18next'; import ChevronLeftRoundedIcon from '@material-ui/icons/ChevronLeftRounded'; import _ from 'lodash'; import personUtils from...
src/redux/containers/SignupContainer.js
ihenvyr/react-app
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Signup from '../../components/Signup'; import { userSignup } from '../../redux/actions'; const SignupContainer = (props) => { return <Signup {...props} /> }; const mapStateToProps = (state) => { re...
pages/Skills.js
amni/portfolio
import React from 'react' import { Link } from 'react-router' import { prefixLink } from 'gatsby-helpers' import Helmet from "react-helmet" import { config } from 'config' import Profile from 'components/Profile' import SkillsView from 'components/SkillsView' export default class Skills extends React.Component { ren...
app/javascript/mastodon/features/ui/components/column_subheading.js
kirakiratter/mastodon
import React from 'react'; import PropTypes from 'prop-types'; const ColumnSubheading = ({ text }) => { return ( <div className='column-subheading'> {text} </div> ); }; ColumnSubheading.propTypes = { text: PropTypes.string.isRequired, }; export default ColumnSubheading;
lib/ui/components/common/ActionIcon.js
500tech/bdsm
import React from 'react'; import styled from 'styled-components'; import { Div } from 'ui/components/common/base'; import remove from '!!raw-loader!ui/icons/trash.svg'; import record from '!!raw-loader!ui/icons/rec.svg'; import recording from '!!raw-loader!ui/icons/recording.svg'; import search from '!!raw-loader!ui/...
react/examples/Code/Component_Tree/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import { render } from 'react-dom'; import App from './App'; const list = [ { id: 1, title: 'Element 1' }, { id: 2, title: 'Element 2' }, { id: 3, title: 'Element 3' }, ]; render(<App list={list} />, document.getElementById('root'));
src/components/Card.js
robshox/boostv1
import React from 'react'; import { Link } from 'react-router'; const Card = ({ card }) => { return (<div className='card'> <div> <p> {card.front} </p> <Link className='btn' to={`/deck/${card.deckId}/edit/${card.id}`}> Edit </Link> </div> </div>); }; export default Card;
node_modules/react-bootstrap/es/HelpBlock.js
mohammed52/something.pk
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/admin/ReferClient.js
ocelotconsulting/global-hack-6
import React from 'react' import agent from '../agent' import { Link } from 'react-router' import Button from 'react-bootstrap/lib/Button' import Alert from 'react-bootstrap/lib/Alert' import ReferralTable from './ReferralTable' import Toolbar from '../Toolbar' import FadeIn from '../FadeIn' import _ from 'underscore' ...
src/charts/view/ChartsContainer.js
sozemego/StatHelper
import React from 'react'; import {connect} from 'react-redux'; import {Dialog} from 'material-ui'; import chartsOperations from '../operations'; import chartSelectors from '../selectors'; import {BAR_CHART, HISTOGRAM_CHART, LINE_CHART} from '../constants'; import {LineChartComponent} from './LineChartComponent'; impor...
modules/offers/client/components/Offers.component.js
Trustroots/trustroots
// External dependencies import PropTypes from 'prop-types'; import React, { Component } from 'react'; // Internal dependencies import { getOffers } from '../api/offers.api'; import OffersPresentational from './OffersPresentational'; export class Offers extends Component { constructor(props) { super(props); ...
client/src/components/header-loginStatus/loggedIn.js
AuggieH/GigRTC
import React from 'react' import { Link } from 'react-router'; import LeftNav from 'material-ui/lib/left-nav'; import MenuItem from 'material-ui/lib/menus/menu-item'; import RaisedButton from 'material-ui/lib/raised-button'; import AppBar from 'material-ui/lib/app-bar'; import IconButton from 'material-ui/lib/icon-but...
src/svg-icons/action/settings-input-hdmi.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsInputHdmi = (props) => ( <SvgIcon {...props}> <path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z"/> </SvgIcon> ); ActionSettingsInputHd...
src/svg-icons/image/add-a-photo.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAddAPhoto = (props) => ( <SvgIcon {...props}> <path d="M3 4V1h2v3h3v2H5v3H3V6H0V4h3zm3 6V7h3V4h7l1.83 2H21c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2V10h3zm7 9c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-...
examples/universal/server/server.js
liubko/redux
/* eslint-disable no-console, no-use-before-define */ import path from 'path'; import Express from 'express'; import qs from 'qs'; import React from 'react'; import { Provider } from 'react-redux'; import configureStore from '../common/store/configureStore'; import App from '../common/containers/App'; import { fetch...
src/work/components/ProjectCardLabels.js
elailai94/elailai94.github.io
import React, { Component } from 'react'; import { Card } from 'semantic-ui-react'; import PropTypes from 'prop-types'; import ProjectCardLabelItem from './ProjectCardLabelItem'; class ProjectCardLabels extends Component { render() { const { labels } = this.props; return ( <Card.Meta style={styles.me...
src/lib/HamburgerIcon.js
rnosov/react-reveal
/* * HamburgerIcon Component Service For react-reveal * * Copyright © Roman Nosov 2017 * SVG animation adapted from https://codepen.io/cwmanning/pen/zaCHB * * 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 'reac...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
hzy87email/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import InviteUserStore from 'stores/InviteUserStore'; import { AsyncActionStates } from 'constants/ActorAppConstants'; import AvatarItem from 'components/common/AvatarItem.react'; ...
src/svg-icons/image/filter-1.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter1 = (props) => ( <SvgIcon {...props}> <path d="M3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm11 10h2V5h-4v2h2v8zm7-14H7c-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 16H7V3h14v14z"/> ...
node_modules/react-select/examples/src/components/CustomComponents.js
Alex-Shilman/Drupal8Node
import React from 'react'; import Select from 'react-select'; import Gravatar from 'react-gravatar'; const USERS = require('../data/users'); const GRAVATAR_SIZE = 15; const GravatarOption = React.createClass({ propTypes: { children: React.PropTypes.node, className: React.PropTypes.string, isDisabled: React.Pro...
webpack/scenes/ModuleStreams/Details/Profiles/ProfileRpmsCellFormatter.js
mccun934/katello
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Icon } from 'patternfly-react'; import './ProfileRpmsCellFormatter.scss'; class ProfileRpmsCellFormatter extends Component { constructor(props) { super(props); this.minAmount = 10; this.state = { expanded: false...
app/javascript/mastodon/features/blocks/index.js
masarakki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debounce } from 'lodash'; import PropType...
src/DatePicker/index.js
reactivers/react-mcw
/** * Created by Utku on 27/03/2017. */ /* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import {Card} from '../Card'; import {MDCSimpleMenu} from '@material/menu/dist/mdc.menu'; import TextField from '../TextField'; import IconButton from '../IconButton...
node_modules/re-base/examples/firebase/chatapp/src/App.js
aggiedefenders/aggiedefenders.github.io
import React from 'react'; import ReactDOM from 'react-dom'; import Container from './components/Container'; import NewChat from './components/NewChat'; console.log('Please change to your own firebase address in src/App.js'); import base from './rebase'; class Main extends React.Component { constructor(props) { ...
src/index.js
olontsev/react-redux-bootcamp
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import { combineReducers } from 'redux-immutable'; import App from './containers/App' import categoriesReducer from './reducers/categoriesReducer' let reducers = { categories: categ...
src/routes.js
aascar/imap-frontend
import React from 'react' import {Route, IndexRedirect} from 'react-router'; import {END_POINTS} from './constants/EndPoints'; import Application from './containers/Root/App'; import WithSideNav from './containers/Root/App/WithSideNav'; import Watch from './containers/Root/App/WithSideNav/Watch'; import About from './c...
public/js/cat_source/es6/components/header/TeamsSelect.js
Ostico/MateCat
import React from 'react' import ManageConstants from '../../constants/ManageConstants' import TeamsStore from '../../stores/TeamsStore' import IconDown from '../icons/IconDown' import IconSettings from '../icons/IconSettings' class TeamsSelect extends React.Component { constructor(props) { super(props) thi...
ui/js/pages/form/FormAdd.js
ericsoderberg/pbc-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; import { connect } from 'react-redux'; import { loadItem, postItem, unloadItem, haveSession, setSession } from '../../actions'; import PageHeader from '../../components/PageHeader'; import Button from...
client/components/MapInfoEditor/index.js
DarkHorseJP/RPGScenarist
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' class MapInfoEditor extends React.PureComponent { render() { return ( <div className={this.props.className}> MapInfoEditor </div> ) } } MapInfoEditor.propTypes = { className: PropType...
packages/@lyra/components/src/validation/ValidationListItem.js
VegaPublish/vega-studio
import React from 'react' import PropTypes from 'prop-types' import styles from './styles/ValidationListItem.css' import WarningIcon from 'part:@lyra/base/warning-icon' import LinkIcon from 'part:@lyra/base/link-icon' export default class ValidationListItem extends React.PureComponent { static propTypes = { onCl...
src/components/Header/Header.js
yudppp/react-starter-kit-with-falcor
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/lib/reactors/Legend/PolylineLegend.js
EsriJapan/photospot-finder
// 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...
react-flux-mui/js/material-ui/src/svg-icons/communication/stay-current-landscape.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
blueocean-material-icons/src/js/components/svg-icons/editor/format-color-fill.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorFormatColorFill = (props) => ( <SvgIcon {...props}> <path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 0-2.12zM5.21 10L10 5.21 14.79 10H...
app/javascript/mastodon/features/public_timeline/index.js
unarist/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/components/unbound_input.js
TouchBistro/frig
import React from 'react' import frigValidations from '../validations.js' import { entries, humanize } from '../util.js' import typeMappings from '../type_mapping.js' export default class UnboundInput extends React.Component { static propTypes = { name: React.PropTypes.string.isRequired, errors: React.PropT...
app/home/index.js
Right-Men/Ironman
import React, { Component } from 'react'; import { View, Text, Image, StyleSheet, Alert, ListView, Dimensions, TouchableHighlight, StatusBar, InteractionManager, ScrollView } from 'react-native'; import ViewPager from 'react-native-viewpager'; import MenuButton from '../com...
src/pages/public/DemosPage.js
ihenvyr/react-app
import React from 'react'; import { Link } from 'react-router'; import Helmet from 'react-helmet'; import { withRouter } from 'react-router'; const DemosPage = (props) => { return ( <div> <Helmet title="Demos" meta={[ { name: "description", content: "Demos" } ]} ...
blueocean-material-icons/src/js/components/svg-icons/device/screen-lock-portrait.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const DeviceScreenLockPortrait = (props) => ( <SvgIcon {...props}> <path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.2.66 0 1.2.54 1.2 1.2v1h-2.4v-1zM...
libs/component/index.js
CrazyFork/element-react
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; export default class Component extends React.Component { classNames(...args) { return classnames(args); } className(...args) { return this.classNames.apply(this, args.concat([this.props.className])); } ...
app/Components/Chat/Header/HeaderContainer.js
martinvarelaaaa/tintina
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { Family } from '../../../State/Actions/index'; import Header from './Header'; class HeaderContainer extends Component { static propTypes = { a...
packages/bonde-admin/src/mobrender/components/block-config-menu.js
ourcities/rebu-client
import PropTypes from 'prop-types' import React from 'react' import { FormattedMessage, injectIntl, intlShape } from 'react-intl' import classnames from 'classnames' import { DropdownMenu, DropdownMenuItem } from '@/components/dropdown-menu' export const EDIT_KEY = 'background' const BlockConfigMenu = ({ block, u...
app/javascript/mastodon/components/avatar_overlay.js
anon5r/mastonon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarOverlay extends React.PureComponent { static propTypes = { account: ImmutablePropTypes.map.isRequired, friend:...
resources/assets/pages/GroupTypeIndex.js
DoSomething/rogue
import React from 'react'; import gql from 'graphql-tag'; import { Link } from 'react-router-dom'; import { useQuery } from '@apollo/react-hooks'; import Empty from '../components/Empty'; import Shell from '../components/utilities/Shell'; import EntityLabel from '../components/utilities/EntityLabel'; const GROUP_TYPE...
js/components/addProject/index.js
leehyoumin/asuraCham
'use strict'; //This is a Add project import React, { Component } from 'react'; import { connect } from 'react-redux'; import { popRoute } from '../../actions/route'; import { openDrawer, closeDrawer } from '../../actions/drawer'; import { setIndex } from '../../actions/list'; import { replaceRoute, replaceOrPushRou...
stories/Actions.js
Talend/react-talend-components
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import { Actions } from '../src/index'; const actions = [ { label: 'Preparations', icon: 'fa fa-asterisk', onClick: action('Preparations clicked'), bsStyle: 'primary', }, { label: 'Datasets', icon: 'fa fa-file-excel-o', ...
examples/src/index.js
Antho2407/react-radial-menu
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App' import './example.css'; const title = 'My Minimal React Webpack Babel Setup'; ReactDOM.render( <App />, document.getElementById('app') ); module.hot.accept();
src/NavBar/NavBar.js
ctco/rosemary-ui
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; export default class NavBar extends React.Component { render() { let navClassNames = classNames(this.props.className, { 'rm-nav-bar': true }); return ( <nav style={thi...
renderer/components/Onboarding/Steps/Name.js
LN-Zap/zap-desktop
import React from 'react' import PropTypes from 'prop-types' import { FormattedMessage, injectIntl } from 'react-intl' import { Box } from 'rebass/styled-components' import { intlShape } from '@zap/i18n' import { Bar, Header } from 'components/UI' import { Form, Input } from 'components/Form' import messages from './me...
ui/src/components/workflow/queues/QueueList.js
d3sw/conductor
import React, { Component } from 'react'; import moment from 'moment'; import { Link, browserHistory } from 'react-router'; import { Breadcrumb, BreadcrumbItem, Input, Well, Button, Panel, DropdownButton, ButtonToolbar, MenuItem, Popover, OverlayTrigger, ButtonGroup } from 'react-bootstrap'; import {BootstrapTable, Tab...
nlyyAPP/component/药物管理/研究中心/MLZXDqsywqd.js
a497500306/nlyy_APP
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableOpacity, Navigator, ListView, Alert } from 'react-native'; //时间操作 var moment = require('moment'); mom...
libs/view/index.js
sam019/element-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; export default class View extends Component { render() { const style = this.props.hasOwnProperty('show') && !this.props.show && { display: 'none' }; return React.cloneElement(React.Children.only(this.props.children), { ...
chapter-11/react_router_basic/src/pages/NotFound.js
mocheng/react-and-redux
import React from 'react'; const NotFound = () => { return ( <div>404: Not Found</div> ); }; export default NotFound;
examples/src/views/ListView.js
LayGit/layui
import React from 'react' import { NavBar, Container, List } from 'layui' const BlockTitle = Container.BlockTitle const ListItem = List.Item const ListGroup = List.Group export default class ListView extends React.Component { render () { return ( <div> <NavBar title="列表" /> <Container> ...
src/App.js
vio-lets/Larkyo-Client
import React from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import Home from './screens/home'; import LoginForm from './screens/authentication'; import { NavigationBar } from './components'; import createBrowserHistory from 'history/createBrowserHistory'; import Team from './sc...
react/reactRedux/redux-master/examples/real-world/src/routes.js
huxinmin/PracticeMakesPerfect
import React from 'react' import { Route } from 'react-router' import App from './containers/App' import UserPage from './containers/UserPage' import RepoPage from './containers/RepoPage' export default <Route path="/" component={App}> <Route path="/:login/:name" component={RepoPage} /> <Route path="/:log...
viewer/src/VideoPage.js
0xcaff/nos-stock
import React, { Component } from 'react'; import './VideoPage.css'; import { getYT } from './YouTube'; import ffetch from './fetch'; // The frame rate of data which the inference was run on. Used to seek to the // correct timestamp. const FRAME_RATE = 30; export default class VideoPage extends Component { state = {...
src/svg-icons/action/restore.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestore = (props) => ( <SvgIcon {...props}> <path d="M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 ...
frontend/src/components/common/loader.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { CircularProgress } from 'material-ui/Progress'; import { withStyles } from 'material-ui/styles'; const styleSheet = theme => ({ root: { width: '100%', height: '100%', }, empty: { display: 'no...
ui/src/components/App.js
damianmoore/photo-manager
import React from 'react' import Cookies from 'js-cookie' import { Route, Switch } from 'react-router-dom' import { ModalRoute } from 'react-router-modal' import { refreshToken, logIn } from '../auth' import 'normalize.css' import 'react-router-modal/css/react-router-modal.css' import BrowseContainer from '../containe...
client/src/components/ReduxRouter.js
fraktio/teamdaily
import React from 'react'; import { Router } from 'react-router-dom'; import createBrowserHistory from 'history/createBrowserHistory'; const LOCATION_CHANGE = '@@router/LOCATION_CHANGE'; export const history = createBrowserHistory(); class ReduxRouter extends React.Component { static propTypes = { children: Re...
src/components/CitySetPoint/CitySetPoint.js
expdevelop/d812
import React from 'react' import { Select, Content } from 'components' import s from './CitySetPoint.sass' const parseData = (data = []) => { return [ {value: 'Выберите пункт выдачи', attrs: { disabled: true }}, ...(data.map(it => it.name)), 'Пусто' ] }; const CitySetPoint = ({data, current ...
src/component/About/Summary.js
dentemple/developer-portfolio
import React from 'react' import PropTypes from 'prop-types' const TextContainer = ({ children }) => { return <p>{children}</p> } const Summary = ({summary}) => { return ( <TextContainer> {summary} </TextContainer> ) } TextContainer.propTypes = { children: PropTypes.node.isRequired } Summary.pr...
components/connections.js
volodalexey/spachat
import React from 'react' import webrtc from '../js/webrtc.js' import users_bus from '../js/users_bus.js' import event_bus from '../js/event_bus.js' const Connections = React.createClass({ getInitialState() { return { connections: [], contactsInfo: [] } }, componentWillMount() { this.g...
src/routes/App/layout/Footer.js
pmg1989/dva-admin
import React from 'react' import { config } from 'utils' import styles from './Footer.less' const Footer = () => <div className={styles.footer} >{config.footerText}</div> export default Footer
node_modules/react-bootstrap/es/Button.js
C0deSamurai/muzjiks
import _Object$values from 'babel-runtime/core-js/object/values'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-...
src/svg-icons/action/alarm-off.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAlarmOff = (props) => ( <SvgIcon {...props}> <path d="M12 6c3.87 0 7 3.13 7 7 0 .84-.16 1.65-.43 2.4l1.52 1.52c.58-1.19.91-2.51.91-3.92 0-4.97-4.03-9-9-9-1.41 0-2.73.33-3.92.91L9.6 6.43C10.35 6.16 11.16 6...
wagtail/admin/static_src/wagtailadmin/app/wagtailadmin.entry.js
takeflight/wagtail
import React from 'react'; import ReactDOM from 'react-dom'; import { Icon, Portal, initExplorer, initFocusOutline, initSubmenus, initSkipLink, initUpgradeNotification, } from 'wagtail-client'; if (process.env.NODE_ENV === 'development') { // Run react-axe in development only, so it does not affect per...
client/src/javascript/components/torrent-list/TorrentList.js
stephdewit/flood
import {Button} from 'flood-ui-kit'; import {FormattedMessage, injectIntl} from 'react-intl'; import _ from 'lodash'; import Dropzone from 'react-dropzone'; import React from 'react'; import ClientStatusStore from '../../stores/ClientStatusStore'; import ConfigStore from '../../stores/ConfigStore'; import connectStore...
src/components/Feedback/Feedback.js
soniwgithub/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...
assets/jqwidgets/demos/react/app/ribbon/events/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxRibbon from '../../../jqwidgets-react/react_jqxribbon.js'; import JqxPanel from '../../../jqwidgets-react/react_jqxpanel.js'; class App extends React.Component { componentDidMount() { this.refs.myRibbon.on('select', (event) => { ...
src/svg-icons/hardware/computer.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareComputer = (props) => ( <SvgIcon {...props}> <path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/> </SvgIcon> ); HardwareComputer ...
packages/mineral-ui-icons/src/IconUnfoldLess.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconUnfoldLess(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPro...
src/helpers/universalRouter.js
lemonCMS/react-redux-universal-hot-example
import qs from 'query-string'; import React from 'react'; import {match, RoutingContext} from 'react-router'; import createRoutes from '../routes'; import {Provider} from 'react-redux'; var Intl = require('intl'); // eslint-disable-line import {IntlProvider} from 'react-intl'; const getFetchData = (component = {}) => ...
src/router.js
steem/qwp-antd
import React from 'react' import PropTypes from 'prop-types' import { Router } from 'dva/router' import App from './ui/app' function onEnterRouter (nextState, replace, dispatch, namespace, hasSimscroll) { dispatch({ type: 'app/navChanged', payload: { hasSimscroll: hasSimscroll !== false } }) if...
views/main.js
Thundabrow/black-screen
import React from 'react'; import _ from 'lodash'; import Rx from 'rx'; import ApplicationView from './compiled/src/views/ApplicationView.js'; var keys = { goUp: event => (event.ctrlKey && event.keyCode === 80) || event.keyCode === 38, goDown: event => (event.ctrlKey && event.keyCode === 78) || event.keyCode ...
src/clincoded/static/components/variant_central/interpretation/shared/credit.js
ClinGen/clincoded
// # Static method to render credits of data source // # Parameters: data source identifier // # Usage: renderDataCredit('myvariant') // # Dependency: None 'use strict'; import React from 'react'; export function renderDataCredit(source) { if (source === 'myvariant') { return ( <div className...
packages/lore-react-forms-bootstrap/src/components/SuccessMessage.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import PropTypes from 'prop-types'; import _ from 'lodash'; export default createReactClass({ displayName: 'SuccessMessage', propTypes: { title: PropTypes.string.isRequired, message: PropTypes.string.isRequired }, getInitia...
src/helpers/Html.js
tpphu/react-pwa
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom/server'; import serialize from 'serialize-javascript'; import Helmet from 'react-helmet'; /** * Wrapper component containing HTML metadata and boilerplate tags. * Used in server-side code only to wrap the st...
src/lib/BindToStores.react.js
BJK/fluxxed_up
import React from 'react' import StorePrototype from './StorePrototype' // let's say for now, stores is a dictionary of name and object export default function bindResources(Component, resourceName) { function extractStores() { return Object.getOwnPropertyNames(stores).map(store => stores[store]) } function capita...
src/js/components/icons/base/PlatformFirefox.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
app/javascript/mastodon/features/list_adder/components/account.js
h3zjp/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { makeGetAccount } from '../../../selectors'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import DisplayName from...
src/svg-icons/editor/format-underlined.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatUnderlined = (props) => ( <SvgIcon {...props}> <path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z"/> </SvgIcon> ); EditorF...
client/canx-client/src/views/NotFound.js
uros-stegic/canx
import React from 'react' function NotFound(props) { return ( <div> <h3> 404 page not found </h3> </div> ) } export default NotFound
packages/react-server-test-pages/pages/root/reduxAdapter.js
doug-wade/react-server
import {createStore, applyMiddleware} from "redux"; import React from 'react'; import { connect } from 'react-redux'; import {RootElement} from "react-server"; import {RootProvider, ReduxAdapter} from "react-server-redux"; import ReduxThunk from "redux-thunk"; function reduxAdapterReducer(state = {}, action) { if (ac...
src/static/containers/Root/Root.prod.js
Seedstars/django-react-redux-base
import React from 'react'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import PropTypes from 'prop-types'; import routes from '../../routes'; import App from '../../app'; export default class Root extends React.Component { static propTypes = { store: PropT...
component-starter-server/src/main/frontend/src/app/components/Node/Node.js
chmyga/component-runtime
/** * Copyright (C) 2006-2020 Talend Inc. - www.talend.com * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
docs/app/Examples/addons/Confirm/Types/index.js
aabustamante/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const ConfirmTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample title='Confirm' description='A ...
example/app.js
SuperheroUI/shQuill
import React from 'react' import ReactDOM from 'react-dom'; import ShQuill from '../src/index' class App extends React.Component { constructor(props) { super(props); this.state = { value: '<div>beginning text</div>' }; this.handleChange = this.handleChange.bind(this); ...
docs/server.js
BespokeInsights/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
generators/rc/templates/component.js
gzgogo/generator-ra
import './<%= componentName %>.<%= stylesheetExtension %>'; import React from 'react'; class <%= componentName %> extends React.Component { render() { return ( <div className="<%= componentName.toLowerCase() %>"> <h1> <%= componentName %> </h1> </div> ); } } export default <%= compone...
node_modules/react-router/es6/Redirect.js
TarikHuber/react-redux-material-starter-kit
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.st...
src/app/containers/Tournaments.js
omarglz/rgvelite
import React from 'react'; import PillsTournaments from './PillsTournaments.js'; import { connect } from 'react-redux'; import firebaseApp from '../firebase.js'; var _ = require('lodash'); class Tournaments extends React.Component { constructor() { super(); this.state = { tournaments: [] }; } componentDid...
src/svg-icons/action/info.js
tan-jerene/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...
src/components/Framework.react.js
jaruba/PowderPlayer
import React from 'react'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import { RouteContext, History } from 'react-router'; import { ipcRenderer } from 'electron'; import { mouseTrap } from 'react-mousetrap'; import { app } from 'remote'; import plugins from '../utils/plugins'; import...