path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/esm/components/graphics/icons/blockquote-icon/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var BlockquoteIcon = function BlockquoteIcon(_ref) { var col...
new-lamassu-admin/src/components/SearchFilter.js
lamassu/lamassu-server
import { makeStyles } from '@material-ui/core' import React from 'react' import Chip from 'src/components/Chip' import { ActionButton } from 'src/components/buttons' import { P, Label3 } from 'src/components/typography' import { ReactComponent as CloseIcon } from 'src/styling/icons/action/close/zodiac.svg' import { Re...
src/components/pizza/Pizza.js
ibsukru/pizzaStore
import React from 'react' import PropTypes from 'prop-types' const Pizza = ({ sizes, onSelectingSize }) => ( <section> <h2>Which size do you like?</h2> <div className='sizes'> {sizes.map(size => { return ( <a className='sizes__size' onClick={() => onSelectingSiz...
features/apimgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher/node_modules/antd/es/avatar/index.js
bhathiya/test
import _extends from 'babel-runtime/helpers/extends'; import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
upgrade-guides/v0.12-v0.13/es5/config/react.js
lore/lore
/** * Configuration file for React * * This file is where you define overrides for the default mounting behavior. */ // import React from 'react'; // import ReactDOM from 'react-dom'; // import { Provider } from 'react-redux'; // import { Router } from 'react-router'; export default { /** * ID of DOM Elemen...
src/components/nav-helper.js
titoesteves/react_practice2
import app from 'ampersand-app' import React from 'react' import localLinks from 'local-links' export default React.createClass({ displayName: 'NavHelper', onClick (event) { const pathname = localLinks.getLocalPathname(event) if (pathname) { event.preventDefault() app.router.history.navigate(...
server/sonar-web/src/main/js/components/shared/status-icon.js
abbeyj/sonarqube
import React from 'react'; export default React.createClass({ render() { if (!this.props.status) { return null; } var className = 'icon-status-' + this.props.status.toLowerCase(); return <i className={className}></i>; } });
app/javascript/mastodon/components/column_back_button.js
kibousoft/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; export default class ColumnBackButton extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; handleClick = () => { if (window.history && window.history.length === 1)...
src/routes/Election/routes/Media/index.js
imrenagi/rojak-web-frontend
import React from 'react' import { Switch, Route } from 'react-router-dom' import MediaDetail from './layouts/MediaDetail' const MediaRouter = () => ( <Switch> <Route exact path='/election/:electionId/media/:mediaId' component={MediaDetail} /> </Switch> ) export default MediaRouter
test/common/components/App-test.js
CangPham/ProjectReact
import test from 'ava'; import React from 'react'; import { shallow } from 'enzyme'; import App from '../../../src/common/components/App'; test('render with container div', t => { const wrapper = shallow(React.createElement(App)); t.is(wrapper.find('#container').length, 1); });
src/svg-icons/maps/store-mall-directory.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsStoreMallDirectory = (props) => ( <SvgIcon {...props}> <path d="M20 4H4v2h16V4zm1 10v-2l-1-5H4l-1 5v2h1v6h10v-6h4v6h2v-6h1zm-9 4H6v-4h6v4z"/> </SvgIcon> ); MapsStoreMallDirectory = pure(MapsStoreMallDirec...
src/routes/admin/index.js
stanxii/laiico
/** * 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...
react-es6-node-graphql-mongodb/src/client/routes.react.js
davelaursen/idealogue
import React from 'react'; import {IndexRedirect, Route, Redirect} from 'react-router'; import {AuthStore} from './stores/authStore'; import App from './components/app.react'; import NotFoundPage from './components/404.react'; import LoginPage from './components/login/loginPage.react'; import SignupPage from './compone...
client/index.js
kelly-keating/kelly-keating.github.io
import React from 'react' import {render} from 'react-dom' import {Provider} from 'react-redux' import {createStore, applyMiddleware, compose} from 'redux' import thunkMiddleware from 'redux-thunk' import reducers from './reducers' import App from './components/App' // let store = createStore(reducers, compose( // ...
packages/cf-component-modal/example/basic/component.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Modal, ModalHeader, ModalTitle, ModalClose, ModalBody, ModalFooter, ModalActions } from 'cf-component-modal'; import { GatewayDest, GatewayProvider } from 'react-gateway'; import ReactModal2 from 'react-modal2'; import { Button } from...
app/containers/UsefulInfoPage/index.js
mamaracas/MEventsRegistration
/* * FeaturePage * * List all the features */ import React from 'react'; import H1 from 'components/H1'; export default class UsefulInfoPage extends React.Component { // eslint-disable-line react/prefer-stateless-function // Since state and props are static, // there's no need to re-render this component sh...
app/assets/scripts/components/header/hub-header.js
openaq/openaq.org
import React from 'react'; import { PropTypes as T } from 'prop-types'; import Header from '.'; import config from '../../config'; export default function HubHeader(props) { return ( <Header tagline="Air Quality Data by" title={props.title} description={ <> <p> O...
src/routes/notFound/NotFound.js
bigearth/www.clone.earth
import React from 'react'; import PropTypes from 'prop-types'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './NotFound.css'; class NotFound extends React.Component { static propTypes = { title: PropTypes.string.isRequired, }; render() { return ( <div className={...
triton/src/App.js
Penson122/Third-Year-Project
import React, { Component } from 'react'; import Header from './components/Header'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import { muiTheme } from './theme'; import './App.css'; class App extends Component { render () { return ( <MuiThemeProvider muiTheme={muiTheme}> <...
react-apollo/src/components/SideBarFiltersList.js
TMaszko/react-apollo
import React from 'react' import SideBarFilterItem from './SideBarFilterItem' const SideBarFiltersList = ({filters, onChangeFilter}) => { return ( <ul> {filters.map((filter,i) => <SideBarFilterItem onChangeFilter={onChangeFilter} key={`filterOf${filter.nameOfPropertyToCompareWith}`} keyOf...
app/javascript/mastodon/containers/status_container.js
tootsuite/mastodon
import React from 'react'; import { connect } from 'react-redux'; import Status from '../components/status'; import { makeGetStatus, makeGetPictureInPicture } from '../selectors'; import { replyCompose, mentionCompose, directCompose, } from '../actions/compose'; import { reblog, favourite, bookmark, unreb...
src/App/shared/TrainerTable/index.js
mikeyamadeo/node-api-server
/*** @jsx React.DOM */ import React from 'react'; var TrainerTable = React.createClass({ render: function() { var trainerRows = this.props.trainers.map(function(trainer) { var trainerLink = `#/trainers/${trainer.id}`; return ( <tr key={trainer.id}> ...
fields/types/cloudinaryimages/CloudinaryImagesColumn.js
Pop-Code/keystone
import React from 'react'; import CloudinaryImageSummary from '../../components/columns/CloudinaryImageSummary'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; const moreIndicatorStyle = { color: '#888', fontSize: '.8rem', }; var Cloudin...
app/javascript/mastodon/features/compose/components/search_results.js
danhunsaker/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage, defineMessages, injectIntl } from 'react-intl'; import AccountContainer from '../../../containers/account_container'; import StatusContainer from '../../../containers/sta...
src/client/assets/js/features/driver/components/Resources/Resources.js
me-box/databox-sdk
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Resources extends React.Component { render(){ return <div> <div className="panel"> <div className="cell"> <div className="description"> resources </div> <div className...
packages/react-interactions/events/src/dom/Press.js
Simek/react
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow */ import type {PointerType} from 'shared/ReactDOMTypes'; import React from 'react'; import {useTap} from 'react-interac...
src/App/ItemsSearch/ItemsSearch.js
haroldSanchezb/ml-react
import React, { Component } from 'react'; import logo from '../../img/Logo_ML@2x.png.png'; import searchIcon from '../../img/ic_Search.png'; import styles from './ItemsSearch.scss'; const ENTER_KEY_CODE = 13; class ItemsSearch extends Component { constructor(props) { super(props); this.state = { para...
src/svg-icons/action/view-array.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewArray = (props) => ( <SvgIcon {...props}> <path d="M4 18h3V5H4v13zM18 5v13h3V5h-3zM8 18h9V5H8v13z"/> </SvgIcon> ); ActionViewArray = pure(ActionViewArray); ActionViewArray.displayName = 'ActionViewA...
src/svg-icons/content/remove-circle.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentRemoveCircle = (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 2zm5 11H7v-2h10v2z"/> </SvgIcon> ); ContentRemoveCircle = pure(ContentRemoveCir...
app/packs/src/components/common/LoadingModal.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import { Modal } from 'react-bootstrap'; import LoadingStore from '../stores/LoadingStore'; export default class LoadingModal extends Component { constructor(props) { super(props); this.state = { ...LoadingStore.getState(), }; this.onChange = this.onCh...
src/app/core/redux/index.js
blowsys/reservo
/* @flow */ import type { Dispatch } from 'redux'; import _ from 'lodash'; import React from 'react'; import type ICreateGetActionCreatorProps from './crudActionCreators'; import { createGetReducer, createDynamicReducer, createDynamicGetReducer } from './reducers'; import { createUpdateActionCreator, createAdd...
js/components/Drawer.js
andrepcg/budgety-native
import React from 'react'; import PropTypes from 'prop-types'; import { ScrollView, View, Text, StyleSheet } from 'react-native'; export default function Drawer(props) { return ( <ScrollView><Text>Drawer</Text></ScrollView> ); } Drawer.propTypes = { };
examples/huge-apps/routes/Course/components/Dashboard.js
carlosmontes/react-router
import React from 'react'; class Dashboard extends React.Component { render () { return ( <div> <h3>Course Dashboard</h3> </div> ); } } export default Dashboard;
src/components/App.js
rodrigobacelli/rodrigobacelli.github.io
import React, { Component } from 'react'; import Nav from "./Nav"; import Footer from "./Footer"; export default class App extends Component { render() { return ( <div> <Nav /> { React.cloneElement(this.props.children) } <Footer /> </d...
src/Parser/HolyPaladin/Modules/PaladinCore/FillerLightOfTheMartyrs.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import SpellLink from 'common/SpellLink'; import ItemLink from 'common/ItemLink'; import Module from 'Parser/Core/Module'; class FillerLightOfTheMartyrs extends Module { suggestions(when) { const abilityTracker = t...
src/game/piece/black-knight.js
howardjing/chess-calculator
// @flow // https://commons.wikimedia.org/wiki/Category:SVG_chess_pieces import React from 'react'; type Props = { width: number | string, height: number | string, }; const BlackKnight = ({ width, height, }: Props) => ( <svg viewBox="0 0 45 45" style={{ width: width, height: height, ...
src/routes/UIElement/search/index.js
janeluck/red
import React from 'react' import { Search } from '../../../components' import { Table, Row, Col, Card } from 'antd' const SearchPage = () => <div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <Search /> </Card> </Col> <Col lg={8} md={12}> <C...
src/containers/home.js
TedtheDev/Tic-Tac-Toe
import React, { Component } from 'react'; import LoginScreen from './login'; import { Link, Route } from 'react-router-dom'; import io from 'socket.io-client'; const socket = io(); import RaisedButton from 'material-ui/RaisedButton'; class Home extends Component { constructor(props) { super(props); this.sta...
Realization/frontend/czechidm-core/src/components/basic/ProgressBar/ProgressBar.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; // import LinearProgress from '@material-ui/core/LinearProgress'; import { makeStyles } from '@material-ui/core/styles'; // import * as Utils from '../../../utils'; import AbstractComponent from '../AbstractComponent/Abs...
src/demos/testing-a-geospatial-app/0-starting-code/src/charts.js
uber-common/vis-academy
import React from 'react'; import {charts} from './style'; import { VerticalBarSeries, XAxis, XYPlot, YAxis } from 'react-vis'; export default function Charts({ highlight, highlightedHour, pickups, select, selectedHour }) { if (!pickups) { return (<div style={charts}/>); } const data = ...
src/components/NoMatch.js
uooo/webpack-echarts-starter-kit
import React from 'react'; var NoMatch = React.createClass({ render() { return ( <div> NoMatch </div> ); } }); export default NoMatch;
frontend/src/storeproduct.js
wadobo/socializa
import React from 'react'; import Purifier from 'html-purify'; import { withRouter } from 'react-router'; import API from './api'; import moment from 'moment'; import { translate } from 'react-i18next'; class StoreProduct extends React.Component { //state = { joined: false, solved: false } //componentWillM...
src/containers/Microinteractions/index.js
bkrall/react-portfolio
import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import DocumentMeta from 'react-document-meta'; // UI components import { Header } from 'components/Header'; import { BrowserHeader } from 'components/BrowserHeader'; import { Footer } from 'co...
examples/huge-apps/routes/Course/components/Nav.js
aastey/react-router
import React from 'react' import { Link } from 'react-router' const styles = {} styles.nav = { borderBottom: '1px solid #aaa' } styles.link = { display: 'inline-block', padding: 10, textDecoration: 'none' } styles.activeLink = { ...styles.link, color: 'red' } class Nav extends React.Component { rende...
src/svg-icons/social/cake.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialCake = (props) => ( <SvgIcon {...props}> <path d="M12 6c1.11 0 2-.9 2-2 0-.38-.1-.73-.29-1.03L12 0l-1.71 2.97c-.19.3-.29.65-.29 1.03 0 1.1.9 2 2 2zm4.6 9.99l-1.07-1.07-1.08 1.07c-1.3 1.3-3.58 1.31-4.89 0l...
mobile/js/app.js
lovelypig5/wms
import React from 'react'; import { AppRegistry } from 'react-native'; import Router from './router'; class App extends React.Component { constructor() { super(); } render() { return <Router /> } } AppRegistry.registerComponent('wms', () => App);
app/actions/usergroupActions.js
JasonEtco/flintcms
import React from 'react' import { push } from 'react-router-redux' import permissionsQuery from 'utils/permissionsQuery' import graphFetcher from 'utils/graphFetcher' import { newToast, errorToasts } from './uiActions' export const REQUEST_USERGROUP = 'REQUEST_USERGROUP' export const RECEIVE_USERGROUP = 'RECEIVE_USER...
src/components/button/index.js
Vision100IT/v100it-template
import React from 'react'; import PropTypes from 'prop-types'; import styles from './Button.scss'; const Button = ({additionalClasses, appearance, children, ...buttonProps}) => { const buttonClasses = `${styles[appearance]} ${additionalClasses}`; return ( <button className={buttonClasses} {...buttonProps}> {ch...
src/common/PaymentIcon/PaymentIcon.js
Syncano/syncano-dashboard
import React from 'react'; import AmericanExpress from './AmericanExpress'; import DinersClub from './DinersClub'; import Discover from './Discover'; import Jcb from './Jcb'; import MasterCard from './MasterCard'; import Visa from './Visa'; const PaymentIcon = ({ niceType, style }) => { switch (niceType) { case ...
src/svg-icons/action/view-quilt.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewQuilt = (props) => ( <SvgIcon {...props}> <path d="M10 18h5v-6h-5v6zm-6 0h5V5H4v13zm12 0h5v-6h-5v6zM10 5v6h11V5H10z"/> </SvgIcon> ); ActionViewQuilt = pure(ActionViewQuilt); ActionViewQuilt.displayN...
client/src/components/FormWiget/InstInfoSelect.js
Nonsoft/crdweb
import React from 'react'; import PropTypes from 'prop-types'; import { Form, Select} from 'antd'; const FormItem = Form.Item; const Option = Select.Option; const InstInfoSelect = (props) => ( <FormItem label="机构名称"> {props.getFieldDecorator('instName')( <Select style={{width: '100%'}} size="default" allow...
app/javascript/mastodon/components/dropdown_menu.js
theoria24/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import IconButton from './icon_button'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../features/ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; imp...
js/app.js
macrigiuseppe/transmitter-client
import React from 'react'; import Router from 'react-router'; import { DefaultRoute, Link, Route, RouteHandler } from 'react-router'; import Beacon from './components/beacon'; //import Radar from './components/chart'; import D3Sample from './components/d3sample'; import Table from './components/table'; import Firebase ...
src/components/ui/Card.js
OlivierVillequey/hackathon
/** * Cards * <Card></Card> * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Card } from 'react-native-elements'; // Consts and Libs import { AppSizes, AppColors, AppStyles } from '@th...
generators/js-framework/modules/react/components/Account/Reset.js
sahat/megaboilerplate
import React from 'react'; import { connect } from 'react-redux' import { resetPassword } from '../../actions/auth'; import Messages from '../Messages'; class Reset extends React.Component { constructor(props) { super(props); this.state = { password: '', confirm: '' }; } handleChange(event) { this.s...
ReactNativeApp/react-native-starter-app/src/containers/recipes/Browse/BrowseView.js
jjhyu/hackthe6ix2017
/** * Receipe Tabs Screen * - Shows tabs, which contain receipe listings * * 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, InteractionManager, } from 'react-native'; ...
RNAPPDemo/ReactComponent/node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
xuchengcheng/RNAPPDemo
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
js/App/Components/Device/AddDevice/SelectModel433.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or *...
src/svg-icons/action/settings-overscan.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsOverscan = (props) => ( <SvgIcon {...props}> <path d="M12.01 5.5L10 8h4l-1.99-2.5zM18 10v4l2.5-1.99L18 10zM6 10l-2.5 2.01L6 14v-4zm8 6h-4l2.01 2.5L14 16zm7-13H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18...
src/svg-icons/notification/airline-seat-legroom-reduced.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatLegroomReduced = (props) => ( <SvgIcon {...props}> <path d="M19.97 19.2c.18.96-.55 1.8-1.47 1.8H14v-3l1-4H9c-1.65 0-3-1.35-3-3V3h6v6h5c1.1 0 2 .9 2 2l-2 7h1.44c.73 0 1.39.49 1.53 1.2zM5 1...
src/svg-icons/content/backspace.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
templates/rubix/rubix-bootstrap/src/Well.js
jeffthemaximum/jeffline
import React from 'react'; import classNames from 'classnames'; import BWell from 'react-bootstrap/lib/Well'; export default class Well extends React.Component { static propTypes = { sm: React.PropTypes.bool, lg: React.PropTypes.bool, noMargin: React.PropTypes.bool, }; render() { let props = {.....
src/components/Inspector/Files/FileRow.js
fcsonline/react-transmission
import React from 'react'; import CSSModules from 'react-css-modules'; import FileList from './FileList'; import PriorityButton from './PriorityButton'; import WantedButton from './WantedButton'; import styles from './styles/index.css'; function FileRow({ name, node, setPriority, setWanted }) { const { priority, f...
src/index.js
SWTPAIN/Lift-to-dominate
import React from 'react'; import { AppRegistry } from 'react-native'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './configureStore'; const store = configureStore(); const liftToDominate = () => ( <Provider store={store}> <App /> </Provider> ); AppR...
examples/huge-apps/routes/Course/routes/Assignments/components/Sidebar.js
RickyDan/react-router
import React from 'react'; import { Link } from 'react-router'; class Sidebar extends React.Component { //static loadProps (params, cb) { //cb(null, { //assignments: COURSES[params.courseId].assignments //}); //} render () { //var { assignments } = this.props; var assignments = COURSES[th...
packages/icons/src/dv/AWS.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function DvAWS(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M26.682 18.623l.006-7.965-5.376-1.593v7.766l5.37 1.792zm1.4-7.965v7.965l5.358-1.797.019-7.761-5.377 1.593zm4.282-2.434l-5.011-1.549-4.946 1.549 4.953 1.3...
node_modules/antd/es/calendar/index.js
yhx0634/foodshopfront
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
addons/links/.storybook/stories.js
nfl/react-storybook
import React from 'react'; import { storiesOf } from '@storybook/react'; import { linkTo } from '../src'; storiesOf('Button', module) .add('First Story', () => ( <button onClick={linkTo('Button', 'Second Story')}>Go to "Second Story"</button> )) .add('Second Story', () => ( <button onClick={linkTo('Butto...
public/js/components/profile/Account.react.js
TRomesh/Coupley
import React from 'react'; import TextField from 'material-ui/lib/text-field'; import RaisedButton from 'material-ui/lib/raised-button'; import DropDownMenu from 'material-ui/lib/DropDownMenu'; import MenuItem from 'material-ui/lib/menus/menu-item'; import Paper from 'material-ui/lib/paper'; import CardTitle from 'mate...
mxcube3/ui/components/SampleQueue/CurrentTree.js
marcus-oscarsson/mxcube3
import React from 'react'; import './app.less'; import { ContextMenu, MenuItem } from 'react-contextmenu'; import TaskItem from './TaskItem'; import XRFTaskItem from './XRFTaskItem'; import EnergyScanTaskItem from './EnergyScanTaskItem'; import WorkflowTaskItem from './WorkflowTaskItem'; import CharacterisationTaskItem...
Auth/website/src/components/ESRIMap.js
awslabs/aws-serverless-workshops
/* * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://www.apache.org/licenses/LICENSE-2.0 * * o...
lib/routers/auth.js
ABaldwinHunter/relax
import React from 'react'; import {Route} from 'react-router'; import gaSend from '../client/helpers/ga-send'; import Init from '../containers/admin/init'; import Login from '../containers/admin/login'; export default [ <Route> <Route path='/admin/init' component={Init} onEnter={gaSend} /> <Route path='/adm...
src/components/blog/blog-post.js
joefraley/ratticusscript
'use strict' import { createMarkup, getPost, nextPost } from '../../utilities' import Helmet from 'react-helmet' import Moment from 'moment' import { MoreButton } from './more-button' import React from 'react' export const BlogTags = ({ tags }) => { return <p>tagged: { tags }</p> } export const BlogPost = ({ params...
src/containers/DevTools/DevTools.js
RomanovRoman/react-redux-universal-hot-example
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey="H" changePositionKey="Q"> <LogMonitor /> </Dock...
src/PaginationButton.js
mmartche/boilerplate-shop
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import createSelectedEvent from './utils/createSelectedEvent'; import elementType from 'react-prop-types/lib/elementType'; const PaginationButton = React.createClass({ mixins: [BootstrapMixin], propTypes...
docs/src/ComponentsPage.js
jakubsikora/react-bootstrap
/* eslint react/no-did-mount-set-state: 0 */ import React from 'react'; import getOffset from 'dom-helpers/query/offset'; import css from 'dom-helpers/style'; import Affix from '../../src/Affix'; import Nav from '../../src/Nav'; import SubNav from '../../src/SubNav'; import NavItem from '../../src/NavItem'; import N...
components/TopicItem.js
react-community/native-directory
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { StyleSheet, css } from 'glamor/aphrodite'; class TopicItem extends React.PureComponent { static propTypes = { count: PropTypes.number, }; render() { const href = `/${this.props.sortBy}/${this....
client/omnichannel/triggers/EditTriggerPage.js
iiet/iiet-chat
import React from 'react'; import { Button, Callout, FieldGroup, ButtonGroup } from '@rocket.chat/fuselage'; import { useMutableCallback } from '@rocket.chat/fuselage-hooks'; import TriggersForm from './TriggersForm'; import PageSkeleton from '../../components/PageSkeleton'; import { useTranslation } from '../../conte...
app/mobileLandscape/Log/index.js
christianalfoni/webpack-bin
import React from 'react'; import {Decorator as Cerebral} from 'cerebral-view-react'; import styles from './styles.css'; import Inspector from '../Inspector'; import icons from 'common/icons.css'; @Cerebral({ logs: 'bin.logs', selectedPath: 'bin.selectedLogPath', connected: 'live.connected', showFullLog: 'bin....
src/components/Hatchshow.js
codevinsky/deep-ellum-jukebox-ui
import React from 'react'; class Hatchshow extends React.Component { constructor(...args) { super(...args); } componentDidMount() { $(".slabify").wideText({maxSize: 300}); } render() { return ( <div> <span className="slabify">{this.props.children}</span> </div> ); } } expo...
src/utils/childrenValueInputValidation.js
wjb12/react-bootstrap
import React from 'react'; import { singlePropFrom } from './CustomPropTypes'; const propList = ['children', 'value']; export default function valueValidation(props, propName, componentName) { let error = singlePropFrom(propList)(props, propName, componentName); if (!error) { error = React.PropTypes.node(pro...
app/javascript/mastodon/features/compose/components/upload_form.js
unarist/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import UploadProgressContainer from '../containers/upload_progress_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import UploadContainer from '../containers/upload_container'; export default class U...
src/react/index.js
Bjvanminnen/redux-devtools
import React from 'react'; import createDevTools from '../createDevTools'; export const DevTools = createDevTools(React); export { default as LogMonitor } from './LogMonitor'; export { default as DebugPanel } from './DebugPanel';
src/renderers/NotAnimatedContextMenu.js
instea/react-native-popup-menu
import React from 'react'; import { I18nManager, View } from 'react-native'; import { computePosition, styles } from './ContextMenu'; /** Simplified version of ContextMenu without animation. */ export default class NotAnimatedContextMenu extends React.Component { render() { const { style, children, layouts, .....
examples/huge-apps/routes/Course/components/Course.js
natorojr/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
assets/jqwidgets/demos/react/app/dropdownbutton/defaultfunctionality/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDropDownButton from '../../../jqwidgets-react/react_jqxdropdownbutton.js'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js'; class App extends React.Component ...
src/main/app/components/metric/Metric.js
reactor/reactor-pylon
/* * Copyright (c) 2011-2016 Pivotal Software Inc, All Rights Reserved. * * 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 * * Unles...
src/parser/shared/modules/features/CharacterTab/Component/Gear.js
FaideWW/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'common/Icon'; import ItemLink from 'common/ItemLink'; import ITEM_QUALITIES from 'game/ITEM_QUALITIES'; class Gear extends React.PureComponent { static propTypes = { gear: PropTypes.array.isRequired, }; render() { const ge...
src/components/App/App.js
swessar/gifs
import React from 'react'; import { connect } from 'react-redux'; import { firebase, helpers } from 'react-redux-firebase'; import { BrowserRouter as Router, Match, Miss } from 'react-router'; import Header from '../Header/Header'; import AddImage from '../AddImage/AddImage'; import Frontpage from '../Frontpage/Frontpa...
boxroom/archive/backup-js-bling-2018-04-28/boxroom/archive/js-surface-2018-01-27/boxroom/archive/2017-10-23-before-redesign/src/main/js-surface-react.js
js-works/js-surface
import adaptReactLikeRenderEngine from './adaption/adaptReactLikeRenderEngine'; import React from 'react'; import ReactDOM from 'react-dom'; function reactMount(content, targetNode) { ReactDOM.render(content, targetNode); return () => ReactDOM.unmountComponentAtNode(targetNode); } const { createElement,...
react/AndroidIcon/AndroidIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import AndroidIcon from './AndroidIcon'; export const symbols = { 'AndroidIcon': <AndroidIcon /> };
lib/ui/components/Mocks/MultiSelectView.js
500tech/mimic
import PropTypes from 'prop-types'; import React from 'react'; import OutlineButton from 'ui/components/common/OutlineButton'; import API from 'api'; import omit from 'lodash/omit'; import { Group } from 'api/models/group'; import { MultiSelectContainer, MultiSelectContainerText } from 'ui/components/Mocks/styled'; imp...
src/parser/warrior/fury/modules/talents/FuriousSlashUptime.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatDuration, formatPercentage } from 'common/format'; import { STATISTIC_ORDER } from 'interface/others/StatisticBox...
packages/reactor-kitchensink/src/examples/D3/HeatMap/ConfigurablePivotHeatmap/ConfigurablePivotHeatmap.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Button, Toolbar, Spacer } from '@extjs/ext-react'; import { PivotD3Container } from '@extjs/ext-react-pivot-d3'; import salesData from './salesData'; Ext.require('Ext.pivot.d3.HeatMap'); const regions = { "Belgium": 'Europe', "Netherlands": 'Europe', "Uni...
example/components/LoremImage.js
travelbird/react-native-navigation
import React from 'react'; import PropTypes from 'prop-types'; import { Image, StyleSheet, } from 'react-native'; import murmurHash from 'murmur2js'; import { SharedElement } from 'native-navigation'; import theme from '../util/theme'; const propTypes = { width: PropTypes.number.isRequired, height: PropTypes....
src/views/test/index.js
vynogradskyi/resume
import React from 'react'; import cv from 'data/resume'; export default () => { return ( <div className={"test"}> <h1>{cv.name}</h1> <h2>{cv.name}</h2> <h3>{cv.name}</h3> <h4>{cv.name}</h4> <h5>{cv.name}</h5> <p>{cv.sections.aboutMe.te...
src/common/components/Match.js
redcom/doctori-romani-in-berlin
// @flow import type { State } from '../../common/types'; import React from 'react'; import { Match as ReactRouterMatch, Redirect } from 'react-router'; import { connect } from 'react-redux'; const haveAccess = (viewer, authorized) => authorized ? viewer : true; const Match = ({ authorized, component: Component, ...
src/components/SidebarList/LoadingList.js
SemaiCZE/perf-data-visualizer
import React from 'react'; import { LoadingIcon } from '../../icons'; import './List.css'; const LoadingList = ( <div className="Primary-loading-failed"> <LoadingIcon size="2x" /> <span>Loading ...</span> </div> ); export default LoadingList;
app/javascript/mastodon/features/direct_timeline/components/conversation.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from 'mastodon/components/status_content'; import AttachmentList from 'mastodon/components/attachment_list'...
src/common/Components/TaxonSearch/components/Suggestions/index.js
NERC-CEH/irecord-app
import React from 'react'; import { IonList, IonItem } from '@ionic/react'; import PropTypes from 'prop-types'; import { hashCode } from 'helpers/UUID'; import Species from './components/Species'; /** * Some common names might be identical so needs to add * a latin name next to it. * @param suggestions */ function...