path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/src/containers/MainPage.js
RiddleMan/giant-privacy-spy
import React, { Component } from 'react'; import { AppBar, AddMenu, MainPageFilters } from '../components/layout'; import { Map } from '../components/map'; import { fitContainer } from '../utils/styles'; import { connect } from 'react-redux'; import { centerChange } from '../actions/map'; import { goToList } from '../a...
examples/redux/src/js/components/Comment.js
cpsubrian/hipley
import React from 'react' import autobind from 'autobind-decorator' @autobind class Comment extends React.Component { static propTypes = { index: React.PropTypes.number, name: React.PropTypes.string, message: React.PropTypes.string, likes: React.PropTypes.number, likeComment: React.PropTypes.fun...
src/components/renderImage/RenderImageStories.js
timLoewel/sites
/** * Created by tim on 03/04/17. */ import React from 'react'; import {View, Text, ScrollView,} from 'react-native'; import {storiesOf, action, linkTo} from '@kadira/react-native-storybook'; import moment from 'moment'; import CenterView from '../basics/CenterView'; import RenderImage from './RenderImage'; const ex...
src/components/TuCao/index.js
sjfkai/mapLocation
import React from 'react' import './index.css' export default function TuCao() { if (!process.env.REACT_APP_TUCAO_ID) { return null } return ( <a className="tucao" target="_blank" href={`https://support.qq.com/products/${process.env.REACT_APP_TUCAO_ID}`}> 反馈 留言 </a> ) }
modules/gui/src/app/home/body/process/recipe/opticalMosaic/sceneSelection.js
openforis/sepal
import {CenteredProgress} from 'widget/progress' import {Form, form} from 'widget/form/form' import {Padding} from 'widget/padding' import {Panel} from 'widget/panel/panel' import {RecipeActions} from 'app/home/body/process/recipe/opticalMosaic/opticalMosaicRecipe' import {Scene} from './scene' import {Scrollable, Scro...
frontend/src/app/components/ExperimentCardList.js
6a68/testpilot
import React from 'react'; import ExperimentRowCard from './ExperimentRowCard'; import Loading from './Loading'; export default class ExperimentCardList extends React.Component { getExperiments() { if (!this.props.except) { return this.props.experiments; } return this.props.experiments.filter(expe...
ui/effects/use-lighthouse.js
lbryio/lbry-app
// @flow import React from 'react'; import { lighthouse } from 'redux/actions/search'; import { getSearchQueryString } from 'util/query-params'; import { isURIValid } from 'lbry-redux'; import useThrottle from './use-throttle'; export default function useLighthouse( query: string, showMature: boolean, size: numb...
src/components/App.js
securely-app/web
import React from 'react'; import { BrowserRouter as Router, Route, Switch } from 'react-router-dom'; import AppContainer from './AppContainer'; import asyncComponent from './common/AsyncComponent'; import Tagline from './common/Tagline'; import Logo from './common/Logo'; import '../assets/styles/global-styles'; // As...
src/app/components/EventList.js
jokep5/react-calendar
import React from 'react'; import EventStore from '../stores/EventStore'; import EventActions from '../actions/EventActions'; export default class EventList extends React.Component { constructor () { super(); this.state = { events: EventStore.displayDefaultEvents() }; }...
packages/docs/components/Examples/video/CustomAddVideoVideoEditor/index.js
draft-js-plugins/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from '@draft-js-plugins/editor'; import createVideoPlugin from '@draft-js-plugins/video'; import VideoAdd from './VideoAdd'; import editorStyles from './editorStyles.module.css'; const videoPlugin = createVideoPlugin(); co...
docs/src/pages/component-demos/cards/SimpleMediaCard.js
dsslimshaddy/material-ui
// @flow weak import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import Card, { CardActions, CardContent, CardMedia } from 'material-ui/Card'; import Button from 'material-ui/Button'; import Typography from 'material-ui/Typography'; import reptileImage from ...
front/src/components/Bet.js
ethbets/ebets
/* Copyright (C) 2017 ethbets * All rights reserved. * * This software may be modified and distributed under the terms * of the BSD license. See the LICENSE file for details. */ import moment from 'moment'; import _ from 'lodash'; import React, { Component } from 'react'; import { Progress } from 'reactstrap'; im...
src/config/routes.js
blundercode/node-api-server
import React from 'react'; import { Route } from 'react-router'; import App from '../App'; import Home from '../App/views/Home'; import TrainerDetails from '../App/views/TrainerDetails'; var routes = ( <Route handler={App} > <Route path="/" handler={Home} /> <Route path="/trainers/:id" handler={TrainerDetail...
src/svg-icons/maps/directions-boat.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
src/Label.js
yuche/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; const Label = React.createClass({ mixins: [BootstrapMixin], getDefaultProps() { return { bsClass: 'label', bsStyle: 'default' }; }, render() { let classes = this.getBsClassSe...
test/integration/css-fixtures/custom-configuration-webpack/pages/_app.js
flybayer/next.js
import React from 'react' import App from 'next/app' import '../styles/global.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
src/LearnWordsFast/Client/js/components/Home.js
drussilla/LearnWordsFast
import React from 'react'; import Reflux from 'reflux'; import {ListGroup} from 'react-bootstrap'; import Word from './word/Word'; import {WordsActions, WordsStore} from '../stores/WordsStore'; const Home = React.createClass({ mixins: [ Reflux.connect(WordsStore, 'words') ], getInitialState() { ...
app/javascript/flavours/glitch/features/picture_in_picture/index.js
Kirishima21/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Video from 'flavours/glitch/features/video'; import Audio from 'flavours/glitch/features/audio'; import { removePictureInPicture } from 'flavours/glitch/actions/picture_in_picture'; import Header from './compone...
app/Components/Goals/Goals.js
martinvarelaaaa/tintina
import React from 'react'; import PropTypes from 'prop-types'; import { View, FlatList, TouchableOpacity, StatusBar } from 'react-native'; import LinearGradient from 'react-native-linear-gradient'; import { VictoryPie } from 'victory-native'; import Button from '../Atoms/Button'; import HeaderClose from '../Atoms/Head...
src/components/demo/normalizing/view.js
tedyuen/react-redux-form-v6-example
import React, { Component } from 'react'; import FieldNormalizingForm from './FieldNormalizingForm'; import {Values} from 'redux-form-website-template' class Normalizing extends Component { onSubmit = (value) => { console.log("Async onSubmit: "+JSON.stringify(value)); } render(){ return ( <div id="...
client/components/Main.js
fleemaja/polls-app-v2
import React from 'react'; import { Link } from 'react-router'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import {blue500} from 'material-ui/styles/colors'; import Paper from 'material-ui/Paper'; import injectTapEventPlugin from 'react-...
src/components/ProductsPage.js
anjren/UncleChenWebsite
import React from 'react'; import { Link } from 'react-router-dom'; // Components export class ProductsPage extends React.Component { render() { return ( <div className="uc-workspace-grid"> <div className="uc-workspace-grid-box uc-workspace-grid-box--yellow"> Featured </div> ...
js/BaseComponents/H1.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/ExhibitionView.js
BenjaminCosman/alchemistsSolver
import {ingredients} from './Enums.js' import {mixInWorld} from './Logic.js' import {MyIcon} from './MyIcon.js' import {worldWeight, partitionWeight} from './Logic.js' import {CheckboxSelector, useFlipBitsArrayState} from './Misc.js' import React from 'react' import _ from 'lodash' import {round} from 'mathjs' impor...
app/components/HomePage.js
BenGoldstein88/portfolio
import React from 'react'; export default class HomePage extends React.Component { constructor(props) { super(props); } render() { return ( <div style={{ width: "100%", height: "100%" }}> <h1> This is the homepage </h1> </div> ); } }
modules/RouteContext.js
ThibWeb/react-router
import React from 'react' var { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ var RouteContext = { propType...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
CristianoRC/CristianoRC.Github.io
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
fields/components/columns/ArrayColumn.js
alobodig/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var ArrayColumn = React.createClass({ displayName: 'ArrayColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue () { ...
examples/js/shopping-list-redux-hoc/client/components/ShoppingLists.js
reimagined/resolve
import React from 'react' import { Button, FormLabel, Table } from 'react-bootstrap' import { Link } from 'react-router-dom' class ShoppingLists extends React.PureComponent { render() { const { lists } = this.props return ( <div> <FormLabel>My shopping lists</FormLabel> <Table responsive...
jenkins-design-language/src/js/components/material-ui/svg-icons/hardware/mouse.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareMouse = (props) => ( <SvgIcon {...props}> <path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/> </SvgIcon> ); HardwareMouse.displayName = 'HardwareMouse'; Har...
example/components/container/Container.js
malaman/react-image-zoom
import React from 'react'; import { Option } from '../option/Option'; import './styles.scss'; import ReactImageZoom from '../../../src/react-image-zoom'; import {reducer, initialState, StoreContext} from '../../reducer'; import {ZoomProperty} from '../zoomProperty/ZoomProperty'; export function Container() { const ...
packages/core/email/admin/src/pages/Settings/components/Configuration.js
wistityhq/strapi
/* eslint-disable no-useless-escape */ import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Stack } from '@strapi/design-system/Stack'; import { Grid, GridItem } from '@strapi/design-system/Grid'; import { Typography } from '@strapi/design-system/Typography'; im...
js/jqwidgets/demos/react/app/dockinglayout/defaultfunctionality/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDockingLayout from '../../../jqwidgets-react/react_jqxdockinglayout.js'; import JqxTree from '../../../jqwidgets-react/react_jqxtree.js'; class App extends React.Component { render() { let layout = [{ type: 'layoutGroup', ...
src/client/components/exposerouter.react.js
masterfung/react-immutable-flux-login
import React from 'react'; // Higher order component exposing router. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function exposeRouter(Component) { class ExposeRouter extends React.Component { render() { return <Component {...this.props...
src/helpers/CitationButton.js
OCMC-Translation-Projects/ioc-liturgical-react
import React from 'react'; import PropTypes from 'prop-types'; import { EditorState, Modifier } from 'draft-js'; // see https://draftjs.org/docs/api-reference-modifier.html#content // copy from here when ready to make this more useful: // https://github.com/jpuri/react-draft-wysiwyg/blob/master/src/controls/BlockType/...
src/browser/createRoutes.js
stephengfriend/cmsbl-este
import App from './app/App.react'; import Auth from './auth/Page.react'; import Home from './home/Page.react'; import Me from './me/Page.react'; import NotFound from './notfound/Page.react'; import Profile from './me/Profile.react'; import React from 'react'; import Settings from './me/Settings.react'; import Todos fro...
src/components/cropper-view/image-cropper-view.js
olofd/react-native-insta-photo-studio
import React, { Component } from 'react'; import { StyleSheet, View, Image, ScrollView, TouchableOpacity, Text, PixelRatio } from 'react-native'; import Video from 'react-native-video'; import OverlayGrid from '../overlay-grid'; import fbjsPerformanceNow from 'fbjs/lib/performanceNow'; import { ScrollVi...
classic/src/scenes/wbui/ULinkOR/ULinkORAccountSection/ULinkORAccountSection.js
wavebox/waveboxapp
import React from 'react' import PropTypes from 'prop-types' import shallowCompare from 'react-addons-shallow-compare' import { ListItem, Divider } from '@material-ui/core' import Fuse from 'fuse.js' import MailboxListItem from './MailboxListItem' import ServiceListItem from './ServiceListItem' import { URL } from 'url...
react/features/participants-pane/components/native/HorizontalDotsIcon.js
jitsi/jitsi-meet
// @flow import React from 'react'; import { Icon, IconHorizontalPoints } from '../../../base/icons'; const HorizontalDotsIcon = () => (<Icon size = { 20 } src = { IconHorizontalPoints } />); export default HorizontalDotsIcon;
src/Quiz.js
britishcouncil/react-quiz
import React from 'react' import Question from './Question' import ProgressBar from './ProgressBar' import classNames from 'classnames' import interpolate from 'interpolate' const Quiz = ({ questions, answers, currentQuestionIndex, onAnswer, onNext, onFinish, customClassNames = {}, customText = {}}) => { const isL...
src/components/dataVisualization/eCharts/EffectScatterMap.js
SmiletoSUN/react-redux-demo
import React from 'react'; import ECharts from 'echarts-for-react'; const data = [ { name: '海门', value: 9 }, { name: '鄂尔多斯', value: 12 }, { name: '招远', value: 12 }, { name: '舟山', value: 12 }, { name: '齐齐哈尔', value: 14 }, { name: '盐城', value: 15 }, { name: '赤峰', value: 16 }, { name: '青岛', value: 18 }, ...
addons/docs/src/lib/convert/__testfixtures__/proptypes/react.js
kadirahq/react-storybook
import React from 'react'; import PropTypes from 'prop-types'; export const Component = (props) => <>JSON.stringify(props)</>; Component.propTypes = { // Anything that can be rendered: numbers, strings, elements or an array // (or fragment) containing these types. optionalNode: PropTypes.node, // A React eleme...
src/view/component/base/index.js
fishmankkk/mircowater2.0
import React from 'react' import { Button, Row, Col, Card, Menu, Dropdown, Icon, Input, Select, Radio, Switch, Checkbox, DatePicker, Cascader, TreeSelect } from 'antd' import 'gobal' const TreeNode = TreeSelect.TreeNode const Option = Select.Option const RadioGroup = Radio.Group const CheckboxGroup = Checkbox.Group co...
src/routes/Room/components/RoomCard.js
miyanokomiya/b-net
import React from 'react' import PropTypes from 'prop-types' import ReactDOM from 'react-dom' import {Link } from 'react-router' import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import FlatButton from 'material-ui/FlatButton'; import IconButton from 'material-ui/IconButton' import ContentAddBox...
src/containers/SignUp/index.js
allyrippley/7ds
import React from 'react' import {connect} from 'react-redux' import {bindActionCreators} from 'redux' import * as actions from '../../actions/heroActions' const Contact = (props) => { window.console.log('MainContactProps: ', props) return ( <div style={{width: '100%', paddingTop: 55}}> <div> <f...
src/pages/schedule/helpers/functions.js
sunway-official/acm-admin
import * as moment from 'moment'; import React from 'react'; export const getSchedules = array => { let schedules = []; // eslint-disable-next-line array-callback-return array.map(item => { const date = moment(item.start, 'YYYY MM DD'); const start = moment(item.start)._d; const end = moment(item.end...
src/lib/flux/wrapper.js
bogdan-dumitru/padkontrol
import React from 'react'; import Immutable from 'immutable'; import { stateMap } from './state.js'; import { addListener, removeListener } from './index.js'; import invariant from 'react/lib/invariant'; import equals from 'is-equal-shallow'; export function connect(_options) { return function(Component) { let o...
src/svg-icons/communication/phonelink-ring.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationPhonelinkRing = (props) => ( <SvgIcon {...props}> <path d="M20.1 7.7l-1 1c1.8 1.8 1.8 4.6 0 6.5l1 1c2.5-2.3 2.5-6.1 0-8.5zM18 9.8l-1 1c.5.7.5 1.6 0 2.3l1 1c1.2-1.2 1.2-3 0-4.3zM14 1H4c-1.1 0-2 .9-2...
client/src/components/systems/Systems.js
DjLeChuck/recalbox-manager
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-i18next'; import Loader from 'react-loader'; import StickyAlert from '../utils/StickyAlert'; import SystemsForm from '../forms/Systems'; let stickyContainer; const Systems = ({ t, loaded, stickyStyle, stickyContent, ...res...
stories/defaultRenderers.js
Fundflow/apollo-redux-form
import React from 'react'; import * as moment from 'moment'; import { DatePicker, Form, Input, InputNumber, Switch } from 'antd'; const renderers = { Date: { render: props => { const { input, label, meta: { error, warning }, ...rest } = props; const validateSta...
src/svg-icons/editor/format-align-right.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatAlignRight = (props) => ( <SvgIcon {...props}> <path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z"/> </SvgIcon> ); EditorFormatAlignRight = pure(EditorFormatAlign...
examples/js/column-filter/select-filter-with-sort.js
rolandsusans/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; const qualityType = { 0: 'good', 1: 'bad', 2: 'unknown' }; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) ...
src/components/Icon/Icon.js
nicklanasa/nicklanasa.github.io
// @flow strict import React from 'react'; import styles from './Icon.module.scss'; type Props = { name: string, icon: { viewBox?: string, path?: string } }; const Icon = ({ name, icon }: Props) => ( <svg className={styles['icon']} viewBox={icon.viewBox}> <title>{name}</title> <path d={icon.pa...
docs/app/Examples/elements/Segment/Variations/SegmentEmphasisInvertedExample.js
jcarbo/stardust
import React from 'react' import { Segment } from 'stardust' const SegmentEmphasisInvertedExample = () => ( <div> <Segment inverted> I'm here to tell you something, and you will probably read me first. </Segment> <Segment inverted secondary> I am pretty noticeable but you might check out othe...
react/features/chat/components/native/ChatMessageGroup.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { FlatList } from 'react-native'; import { MESSAGE_TYPE_LOCAL, MESSAGE_TYPE_REMOTE } from '../../constants'; import ChatMessage from './ChatMessage'; type Props = { /** * The messages array to render. */ messages: Array<Object> } /** * Implement...
fields/components/ItemsTableCell.js
ratecity/keystone
import React from 'react'; import classnames from 'classnames'; function ItemsTableCell ({ className, ...props }) { props.className = classnames('ItemList__col', className); return <td {...props} />; }; module.exports = ItemsTableCell;
src/svg-icons/av/replay-30.js
matthewoates/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-....
client/src/components/partials/Elements.js
richb-hanover/reactathon
import React from 'react'; import { Collapse, Button } from 'react-bootstrap'; const performRedirect = (path) => ( window.location.href = path ); const val = (prop) => ( Object.keys(prop).join(' ') ); const redirect = { github: () => performRedirect('/auth/github'), reddit: () => performRedirect('/auth/reddi...
src/svg-icons/maps/my-location.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsMyLocation = (props) => ( <SvgIcon {...props}> <path d="M12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm8.94 3c-.46-4.17-3.77-7.48-7.94-7.94V1h-2v2.06C6.83 3.52 3.52 6.83 3.06 11H1v2h2.06c.46 4.1...
node_modules/react-bootstrap/es/ToggleButtonGroup.js
lucketta/got-quote-generator
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 ...
node_modules/recompose/renderComponent.js
GregSantulli/react-drum-sequencer
'use strict'; exports.__esModule = true; var _createHelper = require('./createHelper'); var _createHelper2 = _interopRequireDefault(_createHelper); var _createEagerFactory = require('./createEagerFactory'); var _createEagerFactory2 = _interopRequireDefault(_createEagerFactory); function _interopRequireDefault(obj...
node_modules/react-bootstrap/es/InputGroupButton.js
joekay/awebb
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/gameBoard.js
woochi/sensic
import React from 'react'; import {DropTarget as dropTarget} from 'react-dnd'; import {ItemTypes} from '../enums'; import css from './gameBoard.scss'; import Location from './location'; import Character from './Character'; import gameReducer from '../game/gameReducer'; import {loadStory, addLocation, removeLocation, ad...
docs/src/pages/demos/menus/SimpleMenu.js
AndriusBil/material-ui
/* eslint-disable flowtype/require-valid-file-annotation */ import React from 'react'; import Button from 'material-ui/Button'; import Menu, { MenuItem } from 'material-ui/Menu'; class SimpleMenu extends React.Component { state = { anchorEl: null, open: false, }; handleClick = event => { this.setSt...
scripts/index.js
geirsagberg/CoGift
import 'babel/polyfill'; import React from 'react'; import App from './App'; import Pace from 'pace'; var page = require('page'); import { onUpdate, userRef, stateRef, structure } from './appState'; import { bindMyList, bindSharedList, bindListOwner } from './bindings'; import './registerToasts'; import $ from 'jquery'...
source/component/listview/userPostList.js
togayther/react-native-cnblogs
import React, { Component } from 'react'; import { View, ListView } from 'react-native'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PureRenderMixin from 'react-addons-pure-render-mixin'; import UserPostRow from './userPostRow'; import Spinner from '../spinner'; import E...
src/scenes/home/termsOfService/termsOfService.js
tskuse/operationcode_frontend
import React from 'react'; import Section from 'shared/components/section/section'; const Terms = () => ( <Section title="Terms of Service" theme="white"> <p> <i>Last updated: September 23, 2017.</i> </p> <p> Please read these Terms of Service (&#34;Terms&#34;, &#34;Terms of Service&#34;) car...
src/parser/shared/modules/spells/bfa/azeritetraits/BlightborneInfusion.js
sMteX/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import { calculateAzeriteEffects } from 'common/stats'; import Analyzer from 'parser/core/Analyzer'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import BoringSpellValueText from 'interfa...
docs/app/Examples/addons/Confirm/index.js
clemensw/stardust
import React from 'react' import Types from './Types' import Variations from './Variations' const ConfirmExamples = () => ( <div> <Types /> <Variations /> </div> ) export default ConfirmExamples
stories/examples/ButtonProps.js
reactstrap/reactstrap
import React from 'react'; import { Button, ButtonDropdown, ButtonGroup, ButtonToolbar } from 'reactstrap'; import Props from './Props'; const Example = () => ( <Props components={[Button, ButtonDropdown, ButtonGroup, ButtonToolbar]} /> ); export default Example;
src/svg-icons/hardware/tablet.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareTablet = (props) => ( <SvgIcon {...props}> <path d="M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2zm-2 14H5V6h14v12z"/> </SvgIcon> ); HardwareTablet = pure(Hardwa...
web/src/configuration/ratings/Ratings.js
bolddp/pixerva
import React, { Component } from 'react'; import webService from '../../service/webService'; import RatingsHeader from './RatingsHeader'; import RatingRow from './RatingRow'; import SaveButton from '../../components/SaveButton'; import Info from './Info'; const ratingTexts = ['Not rated', 'Rating 1', 'Rating 2', 'Rati...
client/src/containers/AddListModal.js
Superfresh/cf-micro-api
import React from 'react'; import { connect } from 'react-redux'; import Modal from 'react-modal'; import { saveNewList, onNewListNameChange} from '../actions'; const customStyles = { content: { top: '40%', left: '50%', right: 'auto', bottom: 'auto', marginRight: '-50%', transform: 'translate...
app/javascript/mastodon/main.js
increments/mastodon
import * as registerPushNotifications from './actions/push_notifications'; import { default as Mastodon, store } from './containers/mastodon'; import React from 'react'; import ReactDOM from 'react-dom'; import ready from './ready'; const perf = require('./performance'); function main() { perf.start('main()'); i...
client/app/components/ContentEditorToolbar/index.js
bryanph/Geist
/** * * ContentEditorToolbar * */ import React from 'react'; import { connect } from 'react-redux' import classNames from 'classnames' // import { H1Button, H2Button, H3Button, H4Button, H5Button, H6Button, BlockquoteButton, UlButton, OlButton, CodeblockButton } from 'draft-js-block-plugin' import { H1Button, H2...
src/components/settings/recipes/RecipesDashboard.js
GustavoKatel/franz
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { observer, PropTypes as MobxPropTypes } from 'mobx-react'; import { defineMessages, intlShape } from 'react-intl'; import { Link } from 'react-router'; import SearchInput from '../../ui/SearchInput'; import Infobox from '../../ui/Inf...
internals/templates/containers/HomePage/index.js
douglasguerrero/Test
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
packages/material-ui-icons/src/Satellite.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.99h3C8 6.65 6.66 8 5 8V4.99zM5 12v-2c2.76 0 5-2.25 5-5.01h2C12 8.86 8.87 12 5 12zm0 6l3.5-4.5 2.5 3.01L14.5 12l4.5 6...
packages/metadata-react/src/DnR/themes.js
oknosoft/metadata.js
import React from 'react'; import {defaultTheme} from './DnR'; export class Button extends React.Component { constructor(props) { super(props); this.state = { hover: false, down: false, }; } render() { const { style, hoverStyle, downStyle, children, cur...
app/components/Sidebar.js
y-takey/shokushu
import _ from 'lodash'; import React, { Component } from 'react'; import LeftNav from 'material-ui/lib/left-nav'; import MenuItem from 'material-ui/lib/menus/menu-item'; import Divider from 'material-ui/lib/divider'; import FontIcon from 'material-ui/lib/font-icon'; import Color from 'material-ui/lib/styles/colors' imp...
frontend/src/components/ViewTrips/index.js
googleinterns/SLURP
import React from 'react'; import Header from '../Header/'; import SaveTripModal from './save-trip-modal.js' import TripsContainer from './trips-container.js'; import ManageTripsBar from './manage-trips-bar.js'; import TripView from '../../constants/trip-view.js'; /** * {@link TripView} defined originally in `consta...
js/jqwidgets/demos/react/app/datetimeinput/animation/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxDateTimeInput from '../../../jqwidgets-react/react_jqxdatetimeinput.js'; import JqxRadioButton from '../../../jqwidgets-react/react_jqxradiobutton.js'; class App extends React.Component { componentDidMount() { this.refs.noneAnimation.o...
client/src/components/lodging.js
JoeDou/wesayidou
import React from 'react' import { Component } from 'react' import FullBlockView from './fullBlockView' export default class extends Component { render() { return ( <div> <div className="text-header"> <p>Dear Guests,</p> <br/> <p>Since the wedding is on Labor Day Wee...
src/components/utils/NyHR.js
nyaayaIN/frontend
import React from 'react'; export default class NyHR extends React.Component { render() { let hgth = '1px'; let margin = '0px auto'; if(this.props.height){ hgth = this.props.height } if(this.props.margin){ margin = this.props.margin } const HRStyle = { //wid...
packages/react-widgets/src/WidgetPicker.js
haneev/react-widgets
import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; class WidgetPicker extends React.Component { static propTypes = { tabIndex: PropTypes.node, focused: PropTypes.bool, disabled: PropTypes.bool, readOnly: PropTypes.bool, open: PropTypes.bool, dropUp: Pr...
example/examples/FitToSuppliedMarkers.js
Nabobil/react-native-maps
import React from 'react'; import { StyleSheet, View, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = width / height; const LATITUDE = 37.78825; const LONGITUDE = -122.4324; const LATITUDE_DELTA = 0.0922; const...
packages/react-router/modules/Redirect.js
DelvarWorld/react-router
import React from 'react' import PropTypes from 'prop-types' import warning from 'warning' import invariant from 'invariant' import { createLocation, locationsAreEqual } from 'history' /** * The public API for updating the location programmatically * with a component. */ class Redirect extends React.Component { s...
src/internal/ClearFix.js
kittyjumbalaya/material-components-web
import React from 'react'; import PropTypes from 'prop-types'; import BeforeAfterWrapper from './BeforeAfterWrapper'; const styles = { before: { content: "' '", display: 'table', }, after: { content: "' '", clear: 'both', display: 'table', }, }; const ClearFix = ({style, children, ...other...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
CaitlinJD/RA-Angular2Project
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
examples/with-react-intl/components/Layout.js
arunoda/next.js
import React from 'react' import {defineMessages, injectIntl} from 'react-intl' import Head from 'next/head' import Nav from './Nav' const messages = defineMessages({ title: { id: 'title', defaultMessage: 'React Intl Next.js Example' } }) export default injectIntl(({intl, title, children}) => ( <div> ...
app/javascript/mastodon/features/status/components/action_bar.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from '../../../components/icon_button'; import ImmutablePropTypes from 'react-immutable-proptypes'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; i...
dungeon-maker/src/components/CreateParty.js
sgottreu/dungeoneering
import React, { Component } from 'react'; import {RadioButton, RadioButtonGroup} from 'material-ui/RadioButton'; import {List, ListItem} from 'material-ui/List'; import Avatar from 'material-ui/Avatar'; import SelectField from 'material-ui/SelectField'; import MenuItem from 'material-ui/MenuItem'; import TextField from...
CompositeUi/src/views/composition/Projects.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import {Link} from 'react-router'; import...
src/client/assets/js/app/index.js
me-box/iot.red
import React from 'react'; //import { render } from 'react-dom'; import { browserHistory, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import Redbox from 'redbox-react'; import Root from './Root'; import {configureStore...
app/components/payment/index.js
imankit/dashboard-ui
import React from 'react'; import planList from './plans'; import {paymentCountries} from './config'; var valid = require('card-validator'); import {xhrDashBoardClient} from './xhrClient'; import RefreshIndicator from 'material-ui/RefreshIndicator'; import {Modal, Button} from 'react-bootstrap'; import PlanDetails from...
client/src/index.js
LlamasLTD/llamagator
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import root from './reducers'; import { init, emit } from './actions/sockets'; import App from './App'; const store = createStore(root); init(store); ReactDOM.render( <Provid...
src/browser/components/history-tab.js
nullstyle/wallet-one
import React from 'react'; import {List, ListItem, ListDivider, Tab} from 'material-ui'; import ReceiveIcon from "material-ui/lib/svg-icons/content/add-circle-outline"; import SendIcon from "material-ui/lib/svg-icons/content/remove-circle-outline"; import {AccountName, Age} from "b:components"; export default class H...
src/common/components/pages/user/ResetPasswordPage.js
gocreating/express-react-hmr-boilerplate
import React from 'react'; import PageHeader from 'react-bootstrap/lib/PageHeader'; import PageLayout from '../../layouts/PageLayout'; import ResetPasswordForm from '../../forms/user/ResetPasswordForm'; let ResetPasswordPage = (props) => ( <PageLayout> <PageHeader>Reset Password</PageHeader> <ResetPasswordFo...
app/javascript/mastodon/features/reblogs/index.js
mhffdq/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
src/modules/pages/LoginPage/LoginPage.js
hellofresh/janus-dashboard
import React from 'react' import LoginContainer from './loginContainer' const LoginPage = () => <LoginContainer /> export default LoginPage