path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
src/svg-icons/social/notifications-paused.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsPaused = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.93 6 11...
src/index.js
sebastiandeutsch/react-redux-starter
import React from 'react'; import ReactDOM from 'react-dom'; import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('application') );
examples/dyno/app.js
chentsulin/react-tabs
import React from 'react'; import ReactDOM from 'react-dom'; import Modal from 'react-modal'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; Modal.setAppElement(document.getElementById('example')); Modal.injectCSS(); const App = React.createClass({ getInitialState() { return { isModalOpen:...
node_modules/react-bootstrap/es/Label.js
vitorgomateus/NotifyMe
import _Object$values from 'babel-runtime/core-js/object/values'; 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-...
fields/types/color/ColorField.js
helloworld3q3q/keystone
import { SketchPicker } from 'react-color'; import { css, StyleSheet } from 'aphrodite/no-important'; import Field from '../Field'; import React from 'react'; import { Button, FormInput, InputGroup } from 'elemental'; import transparentSwatch from './transparent-swatch'; import theme from '../../../admin/client/theme';...
src/svg-icons/action/explore.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionExplore = (props) => ( <SvgIcon {...props}> <path d="M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1c.61 0 1.1-.49 1.1-1.1s-.49-1.1-1.1-1.1zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2...
packages/mineral-ui-icons/src/IconRemoveCircle.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 IconRemoveCircle(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
showcase/examples/candlestick/candlestick.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/svg-icons/av/replay-30.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvReplay30 = (props) => ( <SvgIcon {...props}> <path d="M12 5V1L7 6l5 5V7c3.3 0 6 2.7 6 6s-2.7 6-6 6-6-2.7-6-6H4c0 4.4 3.6 8 8 8s8-3.6 8-8-3.6-8-8-8zm-2.4 8.5h.4c.2 0 .4-.1.5-.2s.2-.2.2-.4v-.2s-.1-.1-.1-.2-.1-....
actor-apps/app-web/src/app/components/Main.react.js
allengaller/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from 'actions/VisibilityActionCreators'; import ActivitySection from 'components/ActivitySection.react'; import SidebarSection from 'components/SidebarSection.react'; import ToolbarSection from 'components/Toolba...
app/components/ItemThumbnail/ItemThumbnail.js
zhrkian/SolarDataApp
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import s from './ItemThumbnail.css'; export default class ItemThumbnail extends Component { static contextTypes = { router: React.PropTypes.object.isRequired } componentWillMount() { const { FITS } = window.astro ...
src/components/Header.js
teamstrobe/mancreact-client
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { groupURI } from '../config/urls'; import apiFetch from '../apiFetch'; import LoginLink from './LoginLink'; import LogoutBtn from './LogoutBtn'; class Header extends Component { state = { group: null, }; componentWil...
src/js/components/navigation/Navigation.js
csepreghy/VR-Cinema-Website-with-React.js
import {Entity} from 'aframe-react'; import React from 'react'; import Back from './buttons/Back'; import BookSeat from './buttons/BookSeat'; import ChangeSeat from './buttons/ChangeSeat'; export default class Navigation extends React.Component { opacity = { x: 0 }; constructor(props) { super(props); th...
src/docs/examples/MyHelloWorld/ExampleMyHelloWorld.js
Mikhail2k15/ps-react-michael
import React from 'react'; import MyHelloWorld from 'ps-react/MyHelloWorld'; export default function ExampleMyHelloWorld(){ return <MyHelloWorld message="Pluralsight viewers"/> }
client/src/app/app.layout.js
Thiht/docktor
// React import React from 'react'; // Components import NavBar from './navBar.component.js'; import Footer from './footer.component.js'; import Toasts from '../toasts/toasts.component.js'; import Modal from '../modal/modal.component.js'; // JS dependancies import 'jquery'; import form from 'semantic/dist/semantic.js...
components/GuestContainer.js
flyingant/tedxguanggu.org
/** * Created by FlyingAnt on 3/23/16. */ import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import styles from '../less/main.less' import cn from 'classnames'; //component import Navigator from '../components/navigator/Navigator' import ListItemBox from '../componen...
example/data.js
dancormier/react-native-swipeout
import React from 'react'; import {Image} from 'react-native'; var btnsDefault = [ { text: 'Button' } ]; var btnsTypes = [ { text: 'Primary', type: 'primary', }, { text: 'Secondary', type: 'secondary', }, { text: 'Delete', type: 'delete', } ]; var rows = [ { text: "Basic Example", right:...
example/v9.x.x/reactnative-expo/App.js
i18next/react-i18next
import React from 'react'; import { withNamespaces } from 'react-i18next'; import { createStackNavigator, createAppContainer } from 'react-navigation'; import i18n from './js/i18n'; import Home from './js/pages/Home'; import Page2 from './js/pages/Page2'; const Stack = createStackNavigator({ Home: { screen: Home }, ...
components/front/routes.js
wi2/sails-isomorphic-react-admin-example
"use strict"; import React from 'react' import {RouteHandler, Route} from 'react-router' module.exports = ( <Route handler={RouteHandler}> <Route name="home" path="/" handler={require('./pages/home')} /> </Route> );
src/svg-icons/maps/local-pizza.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalPizza = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.43 2 5.23 3.54 3.01 6L12 22l8.99-16C18.78 3.55 15.57 2 12 2zM7 7c0-1.1.9-2 2-2s2 .9 2 2-.9 2-2 2-2-.9-2-2zm5 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2...
src/Dialog/DialogContent.spec.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { assert } from 'chai'; import { createShallow, getClasses } from '../test-utils'; import DialogContent from './DialogContent'; describe('<DialogContent />', () => { let shallow; let classes; before(() => { shallow = createShallow({ dive: true }); classes = ge...
src/common/components/img/component.js
gravitron07/brentayersV6
import React from 'react'; export default class Img extends React.Component { render() { // let path = require(this.props.source); return ( <img src="" /> ); } }
modules/IndexRoute.js
davertron/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
admin-frontend/src/app.js
BarcampBangalore/hashbeam
import React from 'react'; import { Route, Switch } from 'react-router-dom'; import Login from './components/login'; import MainScreen from './components/main-screen'; import PrivateRoute from './components/private-route'; const App = () => ( <Switch> <PrivateRoute path="/" exact component={MainScreen} /> <R...
src/app/icons/github.js
Eric-Vandenberg/react-redux-weatherapp.io
import React from 'react'; const GithubIcon = () => ( <svg viewBox="0 0 284 277"> <g> <path fill="#fff" d="M141.888675,0.0234927555 C63.5359948,0.0234927555 0,63.5477395 0,141.912168 C0,204.6023 40.6554239,257.788232 97.0321356,276.549924 C104.12328,277.86336 106.726656,273.471926 106.726656,269.7242...
frontend/src/containers/DevTools/DevTools.js
chriswk/repoindexer
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...
node_modules/case-sensitive-paths-webpack-plugin/demo/src/init.js
Oritechnology/pubApp
import AppRoot from './AppRoot.component.js'; import React from 'react'; import ReactDOM from 'react-dom'; const app = { initialize() { ReactDOM.render(<AppRoot/>, document.getElementById('react-app-hook')); } }; app.initialize();
app/javascript/mastodon/features/standalone/public_timeline/index.js
pixiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../../ui/containers/status_list_container'; import { expandPublicTimeline } from '../../../actions/timelines'; import Column from '../../../components/column'; import { defineMessages, ...
client/components/settingsCard/index.js
DeadPackets/HackPi
import React, { Component } from 'react'; import { StyleSheet, View, Text, Dimensions, Switch, TextInput } from 'react-native' const {width, height} = Dimensions.get('window') export class SwitchSetting extends Component { constructor() { super() this.state = { value: true } } render() { return( ...
packages/icons/src/md/maps/Directions.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdDirections(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M43.405 22.585c.79.78.79 2.04.01 2.83l-18 18c-.78.78-2.05.78-2.83 0v-.01l-18-17.99c-.78-.78-.78-2.05 0-2.83l18-18c.77-.78 2.04-.78 2.82 0l18 18zm-...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/ModalBody.js
Akkuma/npm-cache-benchmark
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/routes/system/ModifyPassword/index.js
daizhen256/i5xwxdoctor-web
import React from 'react' import PropTypes from 'prop-types' import {connect} from 'dva' import ModifyForm from './ModifyForm' import { Link } from 'dva/router' function ModifyPassword({ dispatch, systemModifyPassword, loading }) { const modifyFormProps = { loading, onOk(data) { dispatch({ type: `sys...
src/icons/CheckBoxIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class CheckBoxIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 6H10c-2.21 0-4 1.79-4 4v28c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM20 34L10 24l2...
demo/react-app/src/App.js
BigFatDog/parcoords-es
import React from 'react'; import Chart from './chart'; import './App.css'; function App() { return ( <div className="App"> <Chart/> </div> ); } export default App;
app/components/Preview/Header/HeaderButton/HeaderButton.js
realgvard/telegram_theme_customizer
import React, { Component } from 'react'; import reactCSS, { hover } from 'reactcss'; import ReactDOM from 'react-dom'; class HeaderButton extends Component { // _onHintTextClick() { // const component = ReactDOM.findDOMNode(this.refs.ButtonComponent); // // console.dir(component) // ...
templates/rubix/rubix-bootstrap/src/ProgressBar.js
jeffthemaximum/Teachers-Dont-Pay-Jeff
import React from 'react'; import BProgressBar from './BProgressBar'; export default class ProgressBar extends React.Component { static propTypes = { value: React.PropTypes.number }; render() { let props = { ...this.props }; if (props.value) { props.now = props.value; delete props.value...
packages/wix-style-react/src/AreaChart/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, divider, example, code, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import { storySettings } from '../test/storySettings'; import { simpleUsage, collapsedLabelsUsage, combinedDa...
src/application/App/FindSongs/FindSongs.js
AoDev/kaiku-music-player
import PropTypes from 'prop-types' import React from 'react' export default function FindSongs (props) { return ( <div className="text-center"> <h1>Your library is empty!</h1> <button className="btn-default" onClick={props.showSettings}> Start looking for songs </button> </div> ) ...
lib/widgets/ModelEditor/views/ModelMetaArrayField.js
ExtPoint/yii2-gii
import React from 'react'; import PropTypes from 'prop-types'; import {html} from 'components'; import ModelMetaRow from './ModelMetaRow'; import './ModelMetaArrayField.less'; const bem = html.bem('ModelMetaArrayField'); class ModelMetaArrayField extends React.Component { static formId = 'ModelEditor'; sta...
src/svg-icons/av/album.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvAlbum = (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 2zm0 14.5c-2.49 0-4.5-2.01-4.5-4.5S9.51 7.5 12 7.5s4.5 2.01 4.5 4.5-2.01 4.5-4.5 4.5zm0-5.5c-...
client/src/components/Repos/ReposConfirmDeleteAll.js
vfeskov/win-a-beer
import React from 'react' import PropTypes from 'prop-types' import Button from '@material-ui/core/Button' import DialogTitle from '@material-ui/core/DialogTitle' import DialogActions from '@material-ui/core/DialogActions' import Dialog from '@material-ui/core/Dialog' import withTheme from '@material-ui/core/styles/wit...
docs/src/app/components/pages/components/Dialog/Page.js
ichiohta/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dialogReadmeText from './README'; import DialogExampleSimple from './Exam...
test/test_helper.js
RaneWallin/FCCLeaderboard
import _$ from 'jquery'; import React from 'react'; import ReactDOM from 'react-dom'; import TestUtils from 'react-addons-test-utils'; import jsdom from 'jsdom'; import chai, { expect } from 'chai'; import chaiJquery from 'chai-jquery'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import...
frontend/src/Settings/Notifications/Notifications/AddNotificationModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Button from 'Components/Link/Button'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import ModalBody from 'Components/Modal/ModalBody'; import ModalContent from 'Components/Modal/ModalContent'; import ModalFooter ...
node_modules/react-bootstrap/es/MediaBody.js
CallumRocks/ReduxSimpleStarter
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/components/Trend/Trend.js
Zoomdata/nhtsa-dashboard
import flowRight from 'lodash.flowright'; import React, { Component } from 'react'; import TrendChart from '../TrendChart/TrendChart'; import { observer, inject } from 'mobx-react'; import { toJS } from 'mobx'; class Trend extends Component { render() { const { store } = this.props; const data = toJS(store.c...
packages/material-ui-icons/src/GetApp.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let GetApp = props => <SvgIcon {...props}> <path d="M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z" /> </SvgIcon>; GetApp = pure(GetApp); GetApp.muiName = 'SvgIcon'; export default GetApp;
packages/nova-core/lib/modules/containers/withCurrentUser.js
HelloMeets/HelloMakers
import React, { Component } from 'react'; import { getFragment } from 'meteor/nova:lib'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const withCurrentUser = component => { return graphql( gql` query getCurrentUser { currentUser { ...UsersCurrent ...
app/javascript/mastodon/features/compose/components/upload_form.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import UploadProgressContainer from '../containers/upload_progress_container'; imp...
assets/javascripts/kitten/components/structure/tables/list-table/stories.js
KissKissBankBank/kitten
import React from 'react' import { createGlobalStyle } from 'styled-components' import { ListTable } from './index' import { ScreenConfig, VisuallyHidden, pxToRem, COLORS, TYPOGRAPHY, StatusWithBullet, Text, Checkbox, DropdownSelect, } from 'kitten' import { DocsPage } from 'storybook/docs-page' impo...
app/components/Footer/FooterStudio.js
dedywahyudi/lilly-contentful
import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router'; class RepoContributorsItem extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function render() { const item = this.props.item; const peopleLink = `/design/` + item.slug; // eslint-di...
src/__tests__/react-components/test-coverage-file-table-head.js
rpl/flow-coverage-report
'use babel'; import React from 'react'; import renderer from 'react-test-renderer'; import {BASE_DIR} from './common'; const REACT_COMPONENT = `${BASE_DIR}/coverage-file-table-head`; test('<FlowCoverageFileTableHead />', () => { const FlowCoverageFileTableHead = require(REACT_COMPONENT).default; const tree = re...
app/components/Toggle/index.js
fascinating2000/productFrontend
/** * * LocaleToggle * */ import React from 'react'; import Select from './Select'; import ToggleOption from '../ToggleOption'; function Toggle(props) { let content = (<option>--</option>); // If we have items, render them if (props.values) { content = props.values.map((value) => ( <ToggleOption key...
fields/types/boolean/BooleanField.js
matthewstyers/keystone
import React from 'react'; import Field from '../Field'; import Checkbox from '../../components/Checkbox'; import { FormField } from '../../../admin/client/App/elemental'; const NOOP = () => {}; module.exports = Field.create({ displayName: 'BooleanField', statics: { type: 'Boolean', }, propTypes: { indent: Re...
app/MnmNewsList.js
alvaromb/mnm
import React from 'react' import { Platform, StyleSheet, View, ListView, ActivityIndicatorIOS, ProgressBarAndroid, InteractionManager, RefreshControl, Dimensions } from 'react-native' import MnmNewsRow from './MnmNewsRow' import ThumborURLBuilder from 'thumbor-url-builder' import { THUMBOR_KEY, THUMBO...
frontend/src/admin/common/forms/FormHeaderWithSave.js
rabblerouser/core
import React from 'react'; import { SpacedLayout } from 'layabout'; import styled from 'styled-components'; import { Button } from '../../common'; const HeaderText = styled.span` font-size: 1.1em; font-weight: bold; `; const FormHeaderWithSave = ({ children }) => ( <SpacedLayout container="header"> <HeaderT...
step7-unittest/app/js/components/Main.js
jintoppy/react-training
import React from 'react'; import Profile from './Profile'; import {Link} from 'react-router'; class Main extends React.Component { constructor(props) { super(props); this.state = { name: "guest" }; } render() { return ( <div className="main-conta...
utilities/warning/render-function-return-contents-lack-display-name.js
salesforce/design-system-react
/* Copyright (c) 2015-present, salesforce.com, inc. All rights reserved */ /* Licensed under BSD 3-Clause - see LICENSE.txt or git.io/sfdc-license */ /* eslint-disable import/no-mutable-exports */ import React from 'react'; // This function will deliver an error message to the browser console when all of the props p...
index.windows.js
jiriKuba/Calculatic
import React from 'react'; import {AppRegistry} from 'react-native'; import Root from './src/root'; AppRegistry.registerComponent('calculatic', () => Root)
local-cli/templates/HelloWorld/App.js
jevakallio/react-native
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { Platform, StyleSheet, Text, View } from 'react-native'; const instructions = Platform.select({ ios: 'Press Cmd+R to reload,\n' + 'Cmd+D or shake for dev menu', and...
src/js/components/page/index.js
Arlefreak/arlefreakClient
import PropTypes from 'prop-types'; import React from 'react'; import { Helmet } from 'react-helmet'; import Loading from '../loading'; import Id from '../id'; const Page = ({ id, title, isFetching, children, className, meta_url, meta_title, meta_description, meta_preview, meta_audio, }) => { le...
src/templates/tags.js
zccz14/blog
import React from 'react' import PropTypes from 'prop-types' import { graphql } from 'gatsby' import SEO from '../components/seo' import Layout from '../components/layout' import Post from '../components/post' import Navigation from '../components/navigation' import '../styles/layout.css' const Tags = ({ data, pa...
component/NavLink.js
Lucifier129/react-imvc
import React from 'react' import classnames from 'classnames' import connect from '../hoc/connect' import Link from './Link' const withLocation = connect(({ state }) => { return { location: state.location } }) export default withLocation(NavLink) function NavLink({ isActive: getIsActive, location, clas...
webapp/src/components/ActionMenu.js
gcallah/Indra
import React, { Component } from 'react'; import ListGroup from 'react-bootstrap/ListGroup'; import axios from 'axios'; import autoBind from 'react-autobind'; import PageLoader from './PageLoader'; import PopulationGraph from './PopulationGraph'; import ScatterPlot from './ScatterPlot'; import Debugger from './Debugger...
src/components/MainPage/MainPage.js
ggdiam/storia
import React, { Component } from 'react'; import styles from './MainPage.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; import dataClient from '../../core/DataClient'; import cachedDataClient from '../../core/CachedDat...
imports/ui/components/resident-details/accounts/transaction/transaction-mc.js
gagpmr/app-met
import React from 'react'; import * as Styles from '/imports/modules/styles.js'; import { UpdateResident } from '/imports/api/residents/methods.js'; export class TransactionMc extends React.Component { constructor(props) { super(props); } removeBill(e) { e.preventDefault(); var resid = e.current...
node_modules/react-bootstrap/es/PagerItem.js
NickingMeSpace/questionnaire
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 ...
demo/component/Sankey.js
thoqbk/recharts
import React, { Component } from 'react'; import { Sankey, Tooltip } from 'recharts'; import _ from 'lodash'; import DemoSankeyLink from './DemoSankeyLink'; import DemoSankeyNode from './DemoSankeyNode'; const data0 = { nodes: [ { name: 'Agricultural waste' }, { name: 'Bio-conversion' }, { name: 'Liquid'...
public/js/entry.js
2cats/webserial
import React from 'react' import Root from './Root' import ReactDOM from 'react-dom' ReactDOM.render( <Root/>,document.getElementById('root') );
docs/src/app/components/pages/components/List/ExampleSimple.js
pomerantsev/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ContentInbox from 'material-ui/svg-icons/content/inbox'; import ActionGrade from 'material-ui/svg-icons/action/grade'; import ContentSend from 'material-ui/svg-icons/content/send'; ...
app/server/index.js
ShandyClub/shandy-club
import 'regenerator-runtime/runtime' import express from 'express' import path from 'path' import httpProxy from 'http-proxy' import bodyParser from 'body-parser' import compression from 'compression' import React from 'react' import { renderToString } from 'react-dom/server' import { Provider } from 'react-redux' impo...
app/components/Sidebar.js
chehitskenniexd/Archiver
import React, { Component } from 'react'; import { Link, hashHistory } from 'react-router'; import { connect } from 'react-redux'; import styles from './Sidebar.css'; import Project_List from './Project_List'; import { fetchUserProjects } from '../reducers/projects_list'; import { logUserOut } from '../reducers/login';...
src/docs/examples/RegistrationForm/ExampleRegistrationForm.js
dryzhkov/ps-react-dr
import React from 'react'; import RegistrationForm from 'ps-react/RegistrationForm'; /** Registration from with email and password inputs */ export default class ExampleRegistrationForm extends React.Component { onSubmit = (user) => { console.log(user); } render() { return <RegistrationForm ...
src/routes/UIElement/dropOption/index.js
yunqiangwu/kmadmin
import React from 'react' import { DropOption } from 'components' import { Table, Row, Col, Card, message } from 'antd' const DropOptionPage = () => (<div className="content-inner"> <Row gutter={32}> <Col lg={8} md={12}> <Card title="默认"> <DropOption menuOptions={[{ key: '1', name: '编辑' }, { key: '...
packages/reactor-kitchensink/src/examples/Tabs/TabBar/TabBar.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { TabBar, Tab, Panel, Container } from '@extjs/ext-react'; export default class TabBarExample extends Component { state = { activeTab: "download" } render() { const { activeTab } = this.state; return ( <Container layout...
Libraries/Modal/Modal.js
formatlos/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...
src/svg-icons/social/notifications.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotifications = (props) => ( <SvgIcon {...props}> <path d="M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2zm6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 ...
test/TooltipSpec.js
deerawan/react-bootstrap
import React from 'react'; import ReactTestUtils from 'react/lib/ReactTestUtils'; import Tooltip from '../src/Tooltip'; describe('Tooltip', function () { it('Should output a tooltip with content', function () { let instance = ReactTestUtils.renderIntoDocument( <Tooltip positionTop={10} positionLeft={20}> ...
app/app/components/Dashboard/ProgramLogo.js
lycha/masters-thesis
import React from 'react'; class ProgramLogo extends React.Component { constructor(props) { super(props); this.displayName = 'ProgramLogo'; } render() { return ( <div className="col-lg-4 col-md-4 col-sm-4 mb"> <div className="darkblue-panel pn"> ...
src/svg-icons/places/child-friendly.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesChildFriendly = (props) => ( <SvgIcon {...props}> <path d="M13 2v8h8c0-4.42-3.58-8-8-8zm6.32 13.89C20.37 14.54 21 12.84 21 11H6.44l-.95-2H2v2h2.22s1.89 4.07 2.12 4.42c-1.1.59-1.84 1.75-1.84 3.08C4.5 20.43...
dev/test-studio/parts/tools/test-intent-tool.js
sanity-io/sanity
import React from 'react' import {route, withRouterHOC} from '@sanity/base/router' export default { router: route('/:type/:id'), canHandleIntent(intentName, params) { return (intentName === 'edit' && params.id) || (intentName === 'create' && params.type) }, getIntentState(intentName, params) { return {...
components/game-listing/component.js
kalle-manninen/veikkaaja
import React, { Component } from 'react'; import { View, FlatList, Text } from 'react-native'; import PropTypes from 'prop-types'; import { Game } from '../game'; import { styles } from './style'; class GameListing extends Component { constructor(props) { super(props); this.state = { refresh: this.pr...
app/components/instagram/HashTagPicsContainer.js
alexko13/block-and-frame
import React from 'react'; import HashTagPic from './HashTagPicComponent'; const HashTagPicsContainer = (props) => { return ( <div> <p> <i className="icon small instagram"></i>Tag your grams for this Spread with {props.hashtag} <i className="icon small arrow circle down"></i> </p> {pro...
src/components/Link/Link.js
kuao775/mandragora
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import PropTypes from 'prop-...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentSimplifyTypeArgs/__tests__/fixtures/DefaultPropsInferred.js
ylu1317/flow
// @flow import React from 'react'; class MyComponent extends React.Component<*, Props> { static defaultProps = {}; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component<*, Props> { static defaultProps = {...
app/components/SecondScene.js
ethan605/react-native-zero
/** * @providesModule ZeroProj.Components.SecondScene */ /* eslint-disable no-unused-vars */ import React from 'react'; /* eslint-enable no-unused-vars */ import { StyleSheet, View } from 'react-native'; import { Actions } from 'react-native-router-flux'; import Button from 'react-native-button'; // Utils import Fo...
app/components/Toolbar.js
nantaphop/redd
import React from 'react' import AppBar from 'material-ui/AppBar' import Toolbar from 'material-ui/Toolbar' import styled from 'styled-components' const _AppBar = styled(AppBar)` margin-bottom: 2px; ` export default (props) => { return ( <_AppBar position="static" color="white" elevation={2} square> ...
src/index.js
jiaolongchao/gallery-Picture
import 'core-js/fn/object/assign'; import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/Main'; // Render the main component into the dom ReactDOM.render(<App />, document.getElementById('app'));
gadget-system-teamwork/src/components/users/LoginForm.js
TeodorDimitrov89/JS-Web-Teamwork-2017
import React from 'react' import Input from '../common/forms/Input' const LoginForm = (props) => ( <div className='container'> <form> <div className='error'>{props.error}</div> <Input type='email' name='email' value={props.user.email} placeholder='E-mail' onChan...
src/CarouselCaption.js
dozoisch/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import elementType from 'react-prop-types/lib/elementType'; import { bsClass, getClassSet, splitBsProps } from './utils/bootstrapUtils'; const propTypes = { componentClass: elementType, }; const defaultProps = { componentClass: 'div', }; class Caro...
src/scripts/views/components/avatar.js
DBozz/IronPong
import React from 'react' import ACTIONS from '../../actions.js' import STORE from '../../store.js' var Avatar = React.createClass({ render: function(){ return(<div className = 'avatar-wrapper'> </div>) } }) export default Avatar
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
ruikong/actor-platform
import React from 'react'; import { PureRenderMixin } from 'react/addons'; import AvatarItem from 'components/common/AvatarItem.react'; var ContactItem = React.createClass({ displayName: 'ContactItem', propTypes: { contact: React.PropTypes.object, onSelect: React.PropTypes.func }, mixins: [PureRende...
js/customer/HaircutHistoryItem.js
BarberHour/barber-hour
import React, { Component } from 'react'; import { View, Text, StyleSheet, Image, } from 'react-native'; import Icon from 'react-native-vector-icons/MaterialIcons'; import HaircutDetails from './HaircutDetails'; import Touchable from '../common/Touchable'; export default class HaircutHistoryItem extends Comp...
src/docs/examples/ProgressBar/Example10Percent.js
wsherman67/UBA
import React from 'react'; import ProgressBar from 'ps-react/ProgressBar'; /** 10% progress */ export default function Example10Percent() { return <ProgressBar percent={10} width={150} /> }
src/components/Switch/demo/basic/index.js
lebra/lebra-components
import React, { Component } from 'react'; import Switch from '../../index'; import { render } from 'react-dom'; import './index.less'; export default class SwitchDemo extends Component{ handleChange = (e) => { alert("切换") } render() { return ( <div className="switch-demo"> ...
src/client/components/message/chatMessageShortcut.js
uuchat/uuchat
import React, { Component } from 'react'; import { Modal, Input } from 'antd'; import '../../static/css/shortcut.css'; class ChatMessageShortcut extends Component{ constructor(){ super(); this.state={ isSetShow: false }; } setShortcut = () => { this.toggleSet(tru...
app/containers/Preschool/Preschool.js
klpdotorg/tada-frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import isEmpty from 'lodash.isempty'; import get from 'lodash.get'; import { getBoundariesEntities, getLanguages, getInstitutionCategories, getManagements, openTeachers, toggleClassModal, } ...
app/javascript/mastodon/features/account_gallery/components/media_item.js
codl/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Permalink from '../../../components/permalink'; export default class MediaItem extends ImmutablePureComponent { static propTypes = { media: Immutable...
src/NavItem.js
simonliubo/react-ui
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import SafeAnchor from './SafeAnchor'; const NavItem = React.createClass({ mixins: [BootstrapMixin], propTypes: { linkId: React.PropTypes.string, onSelect: React.PropTypes.func, active: React...
fixtures/packaging/systemjs-builder/prod/input.js
maxschmeling/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );