path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/sidebar/app/components/ListPanel.js
cedricium/notes
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import INITIAL_CONTENT from '../data/initialContent'; import { SEND_TO_NOTES, FROM_SEND_TO_NOTE, FROM_LIST_VIEW } from '../utils/constants'; import NewIcon from './icons/NewIcon'; import { setFocusedNote, createNote ...
app/packs/src/components/CollectionSubtree.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import Aviator from 'aviator'; import { Glyphicon, OverlayTrigger } from 'react-bootstrap'; import UIStore from './stores/UIStore'; import ElementStore from './stores/ElementStore'; import CollectionStore from './stores/CollectionStore'; import CollectionAc...
src/index.js
AndrewCMartin/idb
import React from 'react'; import ReactDOM from 'react-dom'; import { render } from 'react-dom' import { BrowserRouter } from 'react-router-dom' import './index.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'bootstrap/dist/css/bootstrap.css'; import App from './App'; import registerServiceWorker from...
src/sentry/static/sentry/app/icons/icon-stack.js
gencer/sentry
import React from 'react'; import Icon from 'react-icon-base'; function IconStack(props) { return ( <Icon viewBox="0 0 24 24" {...props}> <g fill="currentColor"> <path d="M11.9952835,4 L3.51000214,8.48528137 L11.9952835,12.9705627 L20.4805649,8.48528137 L11.9952835,4 Z M12.9299314,2.23182...
docs/app/Examples/elements/Input/Variations/InputExampleTransparent.js
vageeshb/Semantic-UI-React
import React from 'react' import { Input } from 'semantic-ui-react' const InputExampleTransparent = () => ( <Input transparent placeholder='Search...' /> ) export default InputExampleTransparent
examples/components/RadioGroup.js
track0x1/formsy-react
import React from 'react'; import Formsy from 'formsy-react-es6'; class MyRadioGroup extends React.Component { state = {}; componentDidMount() { const value = this.props.value; this.props.setValue(value); this.setState({ value }); } changeValue = (value) => { this.props.setValue(value); t...
js/components/MessageComposer.js
transedward/relay-chat
/** * This file is provided by Facebook for testing and evaluation purposes * only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICUL...
client/node_modules/uu5g03/dist-node/bricks/table-tbody.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin, Tools} from './../common/common.js'; import './table-tbody.less'; export default React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, ContentMixin, ColorSchemaMixin ], //@@vie...
app/javascript/mastodon/features/ui/components/drawer_loading.js
masto-donte-com-br/mastodon
import React from 'react'; const DrawerLoading = () => ( <div className='drawer'> <div className='drawer__pager'> <div className='drawer__inner' /> </div> </div> ); export default DrawerLoading;
packages/react-error-overlay/src/components/ErrorOverlay.js
amido/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Node as ReactNode } from 'react'...
src/components/dataVisualization/eCharts/EchartsPie.js
SmiletoSUN/react-redux-demo
import React from 'react'; import ECharts from 'echarts-for-react'; const option = { title: { text: 'Customized Pie', left: 'center', top: 20, textStyle: { color: '#777', }, }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d}%)', }, visualMap: { show: fa...
app/pages/share/share.js
hichameyessou/blip
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import update from 'react-addons-update'; import * as actions from '../../redux/actions'; import Patient from '../patient'; /** * Expose "Smart" Component that is connect-ed to Redux...
src/parser/warlock/destruction/modules/talents/Eradication.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import Events from 'parser/core/Events'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import SPELLS from 'common/SPELLS'; import SpellLink f...
app/shared/resource-calendar/ResourceCalendarOverlay.js
fastmonkeys/respa-ui
import PropTypes from 'prop-types'; import React from 'react'; import injectT from '../../i18n/injectT'; function ResourceCalendarOverlay({ children }) { return ( <div className="app-ResourceCalendarOverlay"> <div className="app-ResourceCalendarOverlay__overlay"> <div className="app-ResourceCalend...
src/components/video_detail.js
albertchanged/YouTube-Topics
import React from 'react'; import VideoList from './video_list'; const VideoDetail = ({video, videoId}) => { if (!video) { return <div>Loading...</div> } videoId = video.id.videoId; console.log(videoId); const url = "https://www.youtube.com/embed/" + videoId + "?vq=hd1080?rel=0;&autoplay=1&loop=1&playli...
examples/custom-validation/app.js
gullitmiranda/formsy-react
import React from 'react'; import ReactDOM from 'react-dom'; import Formsy from 'formsy-react'; import MyInput from './../components/Input'; const currentYear = new Date().getFullYear(); const validators = { time: { regexp: /^(([0-1]?[0-9])|([2][0-3])):([0-5]?[0-9])(:([0-5]?[0-9]))?$/, message: 'Not valid ...
docs/app/Examples/elements/Reveal/Variations/index.js
Rohanhacker/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const RevealVariationsExamples = () => ( <ExampleSection title='Variations'> <ComponentExample title='Instant' descr...
app/app.js
boogunote/mevoco-client
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; /* eslint-disable import/no-unresolved */ // Load the favicon, the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./...
docs/app/Examples/elements/Image/Types/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import { Message } from 'semantic-ui-react' const ImageTypesExamples = () => ( <ExampleSection title='Types'> <ComponentExample ...
boilerplates/app/src/routes/user/detail/index.js
hexagonframework/antd-admin-cli
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'dva' import styles from './index.less' const Detail = ({ userDetail }) => { const { data } = userDetail const content = [] for (let key in data) { if ({}.hasOwnProperty.call(data, key)) { content.push(<div key={key} c...
src/components/Header/Header.js
CasualBot/react-twitbot
import React, { Component } from 'react'; import styles from './Header.css'; import FaTwitter from 'react-icons/lib/fa/twitter'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Header extends Component { render() { return ( <div className="Header"> <div className=...
examples/stress-test/app.js
peterox/react-redux-form
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; window.React = require('react/lib/ReactWithAddons'); import { Provider, connect } from 'react-redux'; import { Control, Field, Form, } from 'react-redux-form'; import store from './store.js'; const UPDATE_ON = 'change'; class Rows ex...
src/svg-icons/action/launch.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLaunch = (props) => ( <SvgIcon {...props}> <path d="M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z"/> </SvgIcon> ); Ac...
src/Metronome/TempoControl.js
nadavspi/react-shed
import React from 'react'; export const TempoControl = ({ handleChange, value }) => { return ( <label> Tempo: {' '} <input max="400" min="40" onChange={(e) => handleChange(e.target.value)} step="10" type="number" value={value} /> {' '} BPM <input max="400" min="40" o...
src/components/ContainerProgress.react.js
FrenchBen/kitematic
import React from 'react'; /* Usage: <ContainerProgress pBar1={20} pBar2={70} pBar3={100} pBar4={20} /> */ var ContainerProgress = React.createClass({ render: function () { var pBar1Style = { height: this.props.pBar1 + '%' }; var pBar2Style = { height: this.props.pBar2 + '%' }; va...
examples/js/column-filter/number-filter.js
pvoznyuk/react-bootstrap-table
/* eslint max-len: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i++) { const id = startId + i; products.push({ id: id, ...
src/parser/priest/holy/modules/spells/azeritetraits/PermeatingGlow.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import TraitStatisticBox, { STATISTIC_ORDER } from 'interface/others/TraitStatisticBox'; import { calculateAzeriteEffects } from 'common/stats'; import ItemHealingDone from 'interface/ItemHealingDone'; import { ...
src/components/icons/Pug.js
dtjv/dtjv.github.io
import React from 'react' export const PugIcon = ({ className, ...props }) => ( <svg {...props} className={`text-pug ${className}`} role="img" fill="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" > <title>Pug</title> <path d="M12.0938 4.6358c-2.0663 0-3.6817.20...
src/svg-icons/device/airplanemode-active.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceAirplanemodeActive = (props) => ( <SvgIcon {...props}> <path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/...
src/client/containers/Profile/Profile.js
eliasmeire/hz-pictionary
import React from 'react'; import { connect } from 'react-redux'; import { Headline } from 'grommet'; import Header from '../../components/Header/Header'; import { logout, setUsername } from '../../redux/actions'; import ProfileForm from './ProfileForm'; const Profile = ({ user, logout, setUsername }) => ( <div clas...
lib/loader/RotationHoleLoader.js
wangdicoder/react-native-indicator
import React from 'react'; import PropTypes from 'prop-types'; import { Animated, Easing } from 'react-native'; import { Surface, Group } from '@react-native-community/art'; import AnimatedCircle from '../animated/AnimatedCircle'; import { color } from '../const'; export default class RotationHoleLoader extends React....
client/src/components/ListingCard.js
casey-chow/tigertrade
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link, withRouter, propTypes as routerPropTypes, } from 'react-router-dom'; import moment from 'moment-timezone'; import Radium, { Style } from 'radium'; import { Card, CardActions, CardHeader, C...
example/src/components/YelpBusiness.js
zordius/reservice
import React from 'react' import PropTypes from 'prop-types' const YelpSearchBusiness = ({ yelp }) => { const item = yelp.business return ( <div> <h2>{item.name}</h2> {item.image_url ? <img src={item.image_url} alt='main' /> : null} <p> <span><img src={item.rating_img_url_small} alt='...
app/components/Header/index.js
ReelTalkers/reeltalk-web
/** * * Header * */ import React from 'react' import styles from './styles.css' function Header(props) { return ( <div className={ styles.header }> {props.children} </div> ) } export default Header
src/parser/deathknight/unholy/modules/features/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules...
src/common/components/SwitchTheme.js
sikhote/davidsinclair
// @flow import type { State } from '../../common/types'; import Box from './Box'; import Button from './Button'; import React from 'react'; import Text from './Text'; import { compose } from 'ramda'; import { connect } from 'react-redux'; import { setTheme } from '../app/actions'; type SwitchThemeProps = { currentT...
react/features/invite/components/callee-info/CalleeInfoContainer.js
jitsi/jitsi-meet
// @flow import React, { Component } from 'react'; import { connect } from '../../../base/redux'; import CalleeInfo from './CalleeInfo'; /** * The type of the React {@code Component} props of {@code CalleeInfoContainer}. */ type Props = { /** * The indicator which determines whether {@code CalleeInfo} i...
Native/Learn_TextInput/index.android.js
renxlWin/React-Native_Demo
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class Learn_TextInput extends Component { render() { return ( <View style={styles.con...
src/components/Web/web.js
pritchardtw/ReactPersonalSite
import React, { Component } from 'react'; import SectionBreak from '../sectionbreak'; import ReactRedux from './reactredux'; import ReactReduxApps from './reactreduxapps'; import Baywatch from './baywatch'; import CodeAcademy from './codeacademy'; import PersonalSite from './personalsite'; import ReactPersonalSite from...
client/src/components/App.js
jondcoleman/book-trader
import React from 'react' import Main from '../containers/MainCont' import Spinner from './Spinner' const App = React.createClass({ propTypes: { authenticateUser: React.PropTypes.func, authPending: React.PropTypes.bool, authenticated: React.PropTypes.bool }, componentDidMount: function() { ...
test/integration/production/components/hello-context.js
nelak/next.js
import React from 'react' import PropTypes from 'prop-types' export default class extends React.Component { static contextTypes = { data: PropTypes.object } render () { const { data } = this.context return ( <div>{data.title}</div> ) } }
example/views/src/components/Index.js
Lanfei/webpack-isomorphic
'use strict'; import React from 'react'; export default class IndexPage extends React.Component { render() { return <div> <p>This plugin allows you to use the same codes on both server side and client side.</p> </div>; } }
src/svg-icons/device/signal-cellular-connected-no-internet-2-bar.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet2Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z"/> </SvgIcon> ); Devi...
src/components/setting/index.js
DarwinSmith/tentara-pelajar-client
import React, { Component } from 'react'; import CSSTransitionGroup from 'react-transition-group/CSSTransitionGroup' import { connect } from 'react-redux' import FineUploaderS3 from 'fine-uploader-wrappers/s3' import Gallery from 'react-fine-uploader' import { fetchProfile, patchProfile, fetchSkills, removeSkills, pos...
node_modules/react-navigation/src/views/Transitioner.js
jiangqizheng/ReactNative-BookProject
/* @flow */ import React from 'react'; import { Animated, Easing, StyleSheet, View } from 'react-native'; import invariant from '../utils/invariant'; import NavigationScenesReducer from './ScenesReducer'; import type { NavigationLayout, NavigationScene, NavigationState, NavigationAction, NavigationScreen...
src/svg-icons/image/nature.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageNature = (props) => ( <SvgIcon {...props}> <path d="M13 16.12c3.47-.41 6.17-3.36 6.17-6.95 0-3.87-3.13-7-7-7s-7 3.13-7 7c0 3.47 2.52 6.34 5.83 6.89V20H5v2h14v-2h-6v-3.88z"/> </SvgIcon> ); ImageNature = p...
src/routes/login/Login.js
hmeinertrita/MyPlanetGirlGuides
/** * 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. */ /*eslint-disable */ import React from 'react'; import ...
docs/src/Root.js
Sipree/react-bootstrap
import React from 'react'; const Root = React.createClass({ statics: { /** * Get the list of pages that are renderable * * @returns {Array} */ getPages() { return [ 'index.html', 'introduction.html', 'getting-started.html', 'components.html', ...
scripts/Balance/Balance.js
krulmacius/sdasdasdasfgasdawsdwadawd
import React from 'react'; import axios from 'axios'; import {ModalContainer, ModalDialog} from 'react-modal-dialog'; import SearchInput, {createFilter} from 'react-search-input'; class Balance extends React.Component { constructor(props) { super(props); this.state = { is_...
Paths/React/05.Building Scalable React Apps/1-react-boilerplate-building-scalable-apps-m1-exercise-files/Before/internals/templates/languageProvider/languageProvider.js
phiratio/Pluralsight-materials
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
src/components/TopUpNostro.js
coeniebeyers/QuorumNostroDemo
import React from 'react' import SelectNostroAgreement from '../containers/SelectNostroAgreement' import TopUpNostroForm from '../containers/TopUpNostroForm' import NavBar from '../components/NavBar' const TopUpNostro = () => { var fw = { width: "200" }; return ( <div> <NavBar /> <table> <tbody> ...
src/svg-icons/communication/location-on.js
xmityaz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLocationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12...
src/ctl/ui/src/index.js
m3db/m3db
// Copyright (c) 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, merge...
actor-apps/app-web/src/app/components/modals/AddContact.react.js
Dreezydraig/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import addons from 'react/addons'; import ReactMixin from 'react-mixin'; import { Styles, TextField, FlatButton } from 'material-ui'; import AddContactStore from 'stores/AddContactStore'; import AddContactActionCreators from 'actions...
src/containers/CounterUndoRedo.js
jshack3r/ws-redux-counters-router
import React from 'react' import { connect } from 'react-redux' import { ActionCreators } from 'redux-undo'; let CounterUndoRedo = ({isFetching, canUndo, canRedo, onUndoClick, onRedoClick}) => <div hidden={isFetching}> <button onClick={onUndoClick} disabled={!canUndo} style={{color: canUndo ? '#000' : '#ccc'}}>U...
docs/src/examples/elements/Step/Variations/StepExampleSizeLarge.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleSizeLarge = () => ( <Step.Group size='large'> <Step> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> </Step.Content> </Step> <Step active> <Icon name='payment'...
app/containers/App/index.js
ethanve/bakesale
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
internals/templates/containers/App/index.js
KyleAWang/react-boilerplate
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/src/Footer/Footer.js
vezetvsem/react-autosuggest
require('./Footer.less'); import React, { Component } from 'react'; export default class Footer extends Component { render() { return ( <div className="footer"> <img src="https://gravatar.com/avatar/e56de06f4b56f6f06e4a9a271ed57e26?s=32" alt="Misha Moroshko" /> <span> ...
extensions/cms/components/JsonDom.js
axax/lunuc
import React from 'react' import ReactDOM from 'react-dom' import PropTypes from 'prop-types' import Hook from 'util/hook' import {_t} from 'util/i18n' import Util from 'client/util' import {propertyByPath, matchExpr} from '../../../client/util/json' import {scrollByHash} from '../util/urlUtil' import {getComponentByKe...
src/components/TextBoxQuestion.js
dialob/dialob-fill-ui
/** * Copyright 2016 ReSys OÜ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in...
src/components/Icon.js
samzhao/HR-Recruitment-Management-System
import React from 'react' require('ionicons/dist/scss/ionicons.scss') export default ({ name, component }) => ( React.createElement((component || 'span'), { className: 'icon ' + (name.indexOf('ion-') === 0 ? name : `ion-${name}`) }) )
src/App.js
jishiniao/radio
import React from 'react' import ReactDOM from 'react-dom' import Demo from './components/Demo' ReactDOM.render( <Demo />, document.getElementById('app') )
src/svg-icons/maps/local-mall.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalMall = (props) => ( <SvgIcon {...props}> <path d="M19 6h-2c0-2.76-2.24-5-5-5S7 3.24 7 6H5c-1.1 0-1.99.9-1.99 2L3 20c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm-7-3c1.66 0 3 1.34 3 3H9c0-1.66 1.3...
src/components/charts/RewardSpreadChart.js
openvcash/vcash-electron
import React from 'react' import { translate } from 'react-i18next' import { inject, observer } from 'mobx-react' import { CartesianGrid, ResponsiveContainer, Scatter, ScatterChart, Tooltip, XAxis, YAxis } from 'recharts' import moment from 'moment' /** Components */ import { CustomTick, CustomTooltip } ...
examples/demos/customView.js
bluespore/react-big-calendar
import React from 'react'; import BigCalendar from '../../src/index'; import events from '../events'; import { navigate } from 'react-big-calendar/utils/constants'; import Week from 'react-big-calendar/Week'; import dates from 'react-big-calendar/utils/dates'; import localizer from 'react-big-calendar/localizer'; impor...
frontend/src/InputForm.js
googleinterns/step78-2020
import React from 'react'; import Button from '@material-ui/core/Button'; import Typography from '@material-ui/core/Typography'; import Grid from '@material-ui/core/Grid'; import Course from './Course'; import Criterion from './Criterion'; import BasicInfo from './BasicInfo'; import './classes.css'; class InputForm ex...
pages/demos/selection-controls.js
AndriusBil/material-ui
// @flow import React from 'react'; import withRoot from 'docs/src/modules/components/withRoot'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from 'docs/src/pages/demos/selection-controls/selection-controls.md'; function Page() { return ( <MarkdownDocs markdown={mar...
src/components/StaticCounterDigit.js
umbrellio/rollex
import React from 'react' import { digitPropTypes, decorateDigit } from '../helpers/counterDigitHelper' /** * @property {string} digit - digit to display * @property {number} radix * @property {Object} digitMap - a map for transforming particular digits * @property {function(digit: number)} digitWrapper - a functi...
src/svg-icons/av/forward-10.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvForward10 = (props) => ( <SvgIcon {...props}> <path d="M4 13c0 4.4 3.6 8 8 8s8-3.6 8-8h-2c0 3.3-2.7 6-6 6s-6-2.7-6-6 2.7-6 6-6v4l5-5-5-5v4c-4.4 0-8 3.6-8 8zm6.8 3H10v-3.3L9 13v-.7l1.8-.6h.1V16zm4.3-1.8c0 .3 0...
src/svg-icons/action/line-weight.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLineWeight = (props) => ( <SvgIcon {...props}> <path d="M3 17h18v-2H3v2zm0 3h18v-1H3v1zm0-7h18v-3H3v3zm0-9v4h18V4H3z"/> </SvgIcon> ); ActionLineWeight = pure(ActionLineWeight); ActionLineWeight.displayN...
internals/templates/app.js
absortium/frontend
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ import 'babel-polyfill'; // TODO constrain eslint import/no-unresolved rule to this block // Load the manifest.json file and the .htaccess file import 'file?name=[name].[ext]!./manifest.json'; // eslint-disable-lin...
src/components/Stats/Stats.js
Zoomdata/nhtsa-dashboard
import React, { Component } from 'react'; import Reset from '../Reset/Reset'; import LED from '../LED/LED'; import Filler from '../Filler/Filler'; export default class Stats extends Component { render() { return ( <div className="stats"> <Reset /> <LED position="5" /> <Filler text="...
imports/ui/components/molecules/Loading/Loading.js
latotty/meteor-sweeper
import React from 'react'; import PropTypes from 'prop-types'; import styled, { keyframes } from 'styled-components'; const rotate360 = keyframes` from { transform: rotate(0deg); } to { transform: rotate(360deg); } `; const BaseLoading = ({ className }) => ( <svg className={className} versi...
public/js/lib/react/jsx/pages/Alert.js
inquisive/simpledocs
import React from 'react'; export default class Alert2 extends React.Component { constructor(props) { super(props); this.displayName = 'Alert Component'; this.state = { isVisible: true }; } render() { if(!this.state.isVisible) return null; var message = this.props.children; return ( ...
app/main.js
herereadthis/redwall
import React from 'react'; import Router from 'react-router'; import FluxComponent from 'flummox/component'; import AppFlux from './AppFlux'; import AppStore from './AppStore'; import AppRoutes from './AppRoutes.js'; //import App from './app'; // //import NinetiesImage from 'views/Homepage/views/NinetiesImage.js'; //i...
pages/404.js
trungtin/mymy
import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Not Found</h1> <p>The page you're looking for was not found.</p> </div> ); } }
src/routes.js
htaox/node-fhir
import React from 'react'; import {IndexRoute, Route} from 'react-router'; import { isLoaded as isAuthLoaded, load as loadAuth } from 'redux/modules/auth'; import { App, Home, About, Login, LoginSuccess, NotFound, Conformance } from 'containers'; export default (store) => { ...
src/client/admin/productcategories/productCategoryForm.js
r3dDoX/geekplanet
import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import MenuItem from '@material-ui/core/MenuItem'; import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; import { Field, reduxForm } from 'redux-form'; import actions from 'red...
docs/src/ComponentsPage.js
pombredanne/react-bootstrap
import React from 'react'; import AutoAffix from 'react-overlays/lib/AutoAffix'; import Nav from '../../src/Nav'; import NavItem from '../../src/NavItem'; import Anchor from './Anchor'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; import SubNav from '....
actor-apps/app-web/src/app/components/SidebarSection.react.js
vanloswang/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
Ttommeke/ITalentIAmTom
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'));
src/Components/Footer.js
andiblas/react-starter
import React from 'react'; import { Grid } from 'react-bootstrap'; class Footer extends React.Component { render(){ return( <Grid> <hr /> <footer> <p>Blas Inc.</p> </footer> </Grid> ); } } export default Footer;
docs/app/Examples/elements/Header/Types/HeaderExampleSubheaders.js
koenvg/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleSubheaders = () => ( <div> <Header sub>Price</Header> <span>$10.99</span> </div> ) export default HeaderExampleSubheaders
template.js
jostw/jos.tw
import fs from 'fs'; import path from 'path'; import React from 'react'; import { renderToString, renderToStaticMarkup } from 'react-dom/server'; import { minify } from 'html-minifier'; import metaReducer from './src/reducers/metaReducer'; import Index from './src/containers/Index'; const indexPath = path.join(__dirn...
examples/examples/LineChartExample.react.js
ericgio/r-d3
import * as d3 from 'd3'; import React from 'react'; import {Axis, Chart, Line} from '../../src'; import {getInnerHeight, getInnerWidth, translate} from '../../src/utils'; import stockData from '../data/aaplPrice.tsv'; /* example-start */ /** * Adapted from https://bl.ocks.org/mbostock/3883245 */ class LineChartEx...
src/Popup.js
TerranetMD/react-leaflet
import React from 'react'; import { popup } from 'leaflet'; import latlngType from './types/latlng'; import MapComponent from './MapComponent'; export default class Popup extends MapComponent { static propTypes = { position: latlngType }; componentWillMount() { super.componentWillMount(); const { c...
src/components/dialog/dialog.stories.spec.js
teamleadercrm/teamleader-ui
import React from 'react'; import { IconWarningBadgedMediumOutline } from '@teamleader/ui-icons'; import { Dialog, Box, TextBody } from '../..'; export default { component: Dialog, title: 'Dialog', }; export const Main = () => ( <Dialog headerIcon={<IconWarningBadgedMediumOutline />} active onClose...
src/client/admin/AdminRoutes.js
sysart/dashboard
import React from 'react'; import {Route} from 'react-router'; import Admin from './Admin'; import StatsEditor from './components/StatsEditor/StatsEditor'; import MessageEditor from './components/MessageEditor/MessageEditor'; export default ( <Route path="/admin" component={Admin}> <Route path="/admin/st...
src/layouts/CoreLayout/CoreLayout.js
qq83387856/React
import React from 'react' import Header from '../../components/Header' import classes from './CoreLayout.scss' import '../../styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className={classes.mainContainer}> {children} </div> ...
src/components/setName.js
docunext/minimalist-react-component
import React from 'react'; import { connect } from 'react-redux'; import { setName } from '../store/actions'; import Link from '../containers/Link'; let SetName = ({ myName, dispatch }) => { let input; return ( <div> <form onSubmit={e => { e.preventDefault() if (!input.value.trim()) { ...
web-ui/src/login/error/auth_error.js
pixelated-project/pixelated-user-agent
/* * Copyright (c) 2017 ThoughtWorks, Inc. * * Pixelated is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * Pixelated i...
js/scripting-api.js
concord-consortium/react-lab-examples
import React from 'react'; import ReactDOM from 'react-dom'; import Lab from 'react-lab'; import model from '../json/simple-model.json'; class Interactive extends React.Component { constructor(props) { super(props); this.addAtom = this.addAtom.bind(this); this.removeAtom = this.removeAtom.bind(this); }...
static/src/components/Analytics.js
pyalwin/redux
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import * as actionCreators from '../actions/auth'; import update from 'react-addons-update'; import ReactDataGrid from 'react-data-grid'; import ReactDataGridPlugins from 'react-data-grid-addons'; var LineChart...
react-redux-i18n-starter-kit/src/main.js
josedab/react-examples
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import makeRoutes from './routes' import Root from './containers/Root' import configure...
demo/views/content/menu5/menu53.js
133922249/demo
import React, { Component } from 'react'; export default class Menu53 extends Component { render() { return ( <div> <span>Menu53</span> </div> ) }; }
client/scripts/components/admin/search-filter-group/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
src/components/Accordion/Accordion.storiesHelpers.js
helpscout/blue
import React from 'react' import { Accordion, Button, Input, Text } from '../index' import { boolean, number } from '@storybook/addon-knobs' import { faker } from '@helpscout/helix' const body = faker.lorem.paragraph()() const form = ( <form> <Input label="Enter some text" style={{ marginBottom: '7px' }} /> ...
docs/src/app/components/pages/components/AutoComplete/ExampleFilters.js
w01fgang/material-ui
import React from 'react'; import AutoComplete from 'material-ui/AutoComplete'; const colors = [ 'Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Purple', 'Black', 'White', ]; const fruit = [ 'Apple', 'Apricot', 'Avocado', 'Banana', 'Bilberry', 'Blackberry', 'Blackcurrant', 'Blueberry', 'Boysenberry...
packages/node_modules/@webex/widget-space-demo/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import ReactDOM from 'react-dom'; import {IntlProvider} from 'react-intl'; import {CookiesProvider} from 'react-cookie'; import '@webex/react-component-spark-fonts'; import DemoWidgetSpace from './components/demo-widget-space'; if (process.env.NODE_ENV !== 'production') { // eslint-dis...