path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
packages/node_modules/@webex/react-component-presence-avatar/src/index.js
ciscospark/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import {Avatar} from '@momentum-ui/react'; import { PRESENCE_TYPE_ACTIVE, PRESENCE_TYPE_INACTIVE, PRESENCE_TYPE_DND, PRESENCE_TYPE_OOO } from '@webex/redux-module-presence'; import './momentum.scss'; const propTypes = { image: PropTypes.string...
site/IndexPage.js
hiddentao/react-dnd
import './base.less'; import Constants, { APIPages, ExamplePages, Pages } from './Constants'; import HomePage from './pages/HomePage'; import APIPage from './pages/APIPage'; import ExamplePage from './pages/ExamplePage'; import React, { Component } from 'react'; const APIDocs = { OVERVIEW: require('../docs/00 Quick ...
public/src/routes/home.js
rafaelfbs/rmodel
import React from 'react'; import { observer } from 'mobx-react'; import UserForm from '../forms/user_form'; import Form from '../components/form/index'; @observer export default class Home extends React.Component { render () { return <div className="container"> <div className="card"> <div classNa...
tests/react/createElementRequiredProp_string.js
gabro/flow
// @flow import React from 'react'; class Bar extends React.Component { props: { test: number, }; render() { return ( <div> {this.props.test} </div> ) } } class Foo extends React.Component { render() { const Cmp = Math.random() < 0.5 ? 'div' : Bar; return (<Cmp/>); ...
packages/ringcentral-widgets/components/ActiveCallPanel/CallInfo.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import ContactDisplay from '../ContactDisplay'; import styles from './styles.scss'; import CallAvatar from '../CallAvatar'; export default function CallInfo(props) { let avatar; if (props.avatarUrl) { avatar = <CallAvatar avatarUrl={props.avatarUrl...
react-native-pagination/index.js
garrettmac/react-native-pagination
/** * @author garrettmac <garrett@vyga.io> (http://vyga.io) * @version 1.0.4 * @module ReactNativePagination (https://github.com/garrettmac/react-native-pagination) */ import React, { Component } from 'react'; import { Dimensions, LayoutAnimation, StyleSheet, Text, TouchableOpacity, View } from 'react-nat...
frontend/src/Components/Table/Cells/TableSelectCell.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import CheckInput from 'Components/Form/CheckInput'; import TableRowCell from './TableRowCell'; import styles from './TableSelectCell.css'; class TableSelectCell extends Component { // // Lifecycle componentDidMount() { const { ...
dashboard/src/components/commons/Footer.js
leapfrogtechnology/chill
import React from 'react'; /** * Renders footer component */ const Footer = () => { return ( <div className="footer"> <div className="container"> Powered by <a target="_blank" rel="noopener noreferrer" href="https://github.com/leapfrogtechnology/chill"> Chill </a> ...
client/scripts/components/blue-button/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/svg-icons/image/brightness-3.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness3 = (props) => ( <SvgIcon {...props}> <path d="M9 2c-1.05 0-2.05.16-3 .46 4.06 1.27 7 5.06 7 9.54 0 4.48-2.94 8.27-7 9.54.95.3 1.95.46 3 .46 5.52 0 10-4.48 10-10S14.52 2 9 2z"/> </SvgIcon> ); I...
src/router.js
ykx456654/hr_admin
import React from 'react' import PropTypes from 'prop-types' import { Router } from 'dva/router' import App from './routes/app' const registerModel = (app, model) => { if (!(app._models.filter(m => m.namespace === model.namespace).length === 1)) { app.model(model) } } const Routers = function ({ history, app ...
components/Cage/Cage.js
sloiselle/reptile
import React from 'react'; import SkyLight from 'react-skylight'; import classnames from 'classnames/bind'; import styles from './Cage.scss'; const cx = classnames.bind(styles); // const Cage = ({cageNumber, temp='N/A', hum='N/A', lightOn, alert, empty}) => { class Cage extends React.Component { constructor(props) {...
src/js/app.js
dmitriidar/BabyTap
import React from 'react'; import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import ReactDOM from 'react-dom'; import { Container, createApp, UI, View, ViewManager } from 'touchstonejs'; // App Config // ------------------------------ const images = [ { imageUrl: "img/gallery/...
app/components/loaders/ProgressBar.ios.js
mol42/iett-asistani
/* @flow */ import React, { Component } from 'react'; import { ProgressViewIOS } from 'react-native'; export default class ProgressBarNB extends Component { render() { return ( <ProgressViewIOS {...this.props} progress={this.props.progress ? this.props.progress / 100 : 0.5} prog...
src/components/attributes/scatter-plot/Data.js
jjeffreyma/ID3-React
import React from 'react'; export default (props) => { // console.log('Data', props); return( <div> </div> ); }
src/containers/DevTools/DevTools.js
martinval/boiler2
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...
examples/normalization/src/components/CreateButton.js
lore/lore
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'lodash'; export default createReactClass({ displayName: 'CreateButton', onClick: function() { lore.dialog.show(function() { return lore.dialogs.tweet.create({ request:...
actor-apps/app-web/src/app/components/modals/preferences/Session.react.js
gaolichuang/actor-platform
/* * Copyright (C) 2015 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import PreferencesActionCreators from 'actions/PreferencesActionCreators'; import PreferencesStore from 'stores/PreferencesStore'; class SessionItem extends Component { stat...
frontWeb/main/react/react-router/basic/dev/ambiguousExample.js
skycolor/study
import React from 'react' import { BrowserRouter as Router, Route, Link, Switch } from 'react-router-dom' const AmbiguousExample = () => ( <Router> <div> <ul> <li><Link to="/about">About Us (static)</Link></li> <li><Link to="/company">Company (static)</Link></li> <li><Link t...
src/pages/places/MeetingPoint.js
ayltai/fishing-club
// @flow 'use strict'; import React from 'react'; import muiThemeable from 'material-ui/styles/muiThemeable'; import { Card, CardMedia, CardTitle, CardText } from 'material-ui/Card'; import LazyLoad from 'react-lazy-load'; import ReactGA from 'react-ga'; import './MeetingPoint.css'; import RaftEveningImage from '../.....
app/components/TodolistComponenet.js
RogerZZZZZ/widget_electron
import React from 'react' import { Component } from 'react' import Button from "./Button.js" import DatePicker from "react-datepicker" import Storage from 'electron-json-storage'; import moment from 'moment' import testData from './textData.js' import Utils from '../utils/utils.js' import 'react-datepicker/dist/react-d...
src/components/Toast/demo/basic/index.js
lebra/lebra-components
import React, { Component } from 'react'; import Toast from '../../index'; import { render } from 'react-dom'; import './index.less'; export default class ToastDemo extends Component{ state = { showToast: false, }; showToast = () => { this.setState({showToast: true}); } render() { ...
src/components/CommentModal/CommentModal.js
eunvanz/flowerhada
import React from 'react' import CustomModal from 'components/CustomModal' import TextField from 'components/TextField' import { postCommentImage, postComment, putComment } from 'common/CommentService' import { postPointHistory } from 'common/PointHistoryService' import Button from 'components/Button' import { Tooltip ...
docs/app/Examples/elements/Button/Variations/ButtonExampleFloated.js
ben174/Semantic-UI-React
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleFloated = () => ( <div> <Button floated='right'>Right Floated</Button> <Button floated='left'>Left Floated</Button> </div> ) export default ButtonExampleFloated
client/components/users/reset-password.js
LIYINGZHEN/meteor-react-redux-base
import React from 'react'; export default class extends React.Component { constructor(props) { super(props); this.state = {uiState: 'INIT'}; this.onSubmit = this.onSubmit.bind(this); } onSubmit(e) { e.preventDefault(); this.setState({uiState: 'SENDING'});console.log(this._input.value); t...
wwwroot/app/src/components/MyRecipesPage/Ingredients.js
AlinCiocan/PlanEatSave
import React, { Component } from 'react'; import uuid from 'uuid'; import classNames from 'classnames'; import RemoveIcon from '../base/icons/RemoveIcon'; import Label from '../base/form/Label'; import { applicationSettings, recipeSettings } from '../../constants/settings'; import IconButton from '../base/buttons/IconB...
packages/metadata-react/src/Diagrams/Radar.js
oknosoft/metadata.js
/** * ### Диаграмма Radar * * @module Radar * * Created by Evgeniy Malyarov on 18.08.2018. */ import React from 'react'; import PropTypes from 'prop-types'; import {chartData} from './Bar'; function Radar({width, height, data, isFullscreen, Recharts}) { const {Radar, RadarChart, PolarGrid, Legend, Tooltip, P...
src/step-3/client/main.js
DJCordhose/react-intro-live-coding
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from '../common/store'; import HelloMessage from '../common/HelloMessage'; const mountNode = document.getElementById('mount'); ReactDOM.render( <Provider store={store}> <HelloMessage /> </Provider...
packages/mineral-ui-icons/src/IconRestore.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 IconRestore(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
fields/types/code/CodeField.js
brianjd/keystone
import _ from 'lodash'; import CodeMirror from 'codemirror'; import Field from '../Field'; import React from 'react'; import { findDOMNode } from 'react-dom'; import { FormInput } from '../../../admin/client/App/elemental'; import classnames from 'classnames'; /** * TODO: * - Remove dependency on lodash */ // See ...
lens-ui/app/components/LoaderComponent.js
guptapuneet/lens
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not...
react-flux-mui/js/material-ui/src/svg-icons/maps/navigation.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsNavigation = (props) => ( <SvgIcon {...props}> <path d="M12 2L4.5 20.29l.71.71L12 18l6.79 3 .71-.71z"/> </SvgIcon> ); MapsNavigation = pure(MapsNavigation); MapsNavigation.displayName = 'MapsNavigation'; ...
src/map/js/components/AnalysisPanel/WatershedChart.js
wri/gfw-water
import {analysisPanelText as text} from 'js/config'; import React from 'react'; let generateChart = (id, feature) => { /** * rs_tl_c - Recent forest loss * rs_pf_c - Historic forest loss * rs_sed_c - Erosion risk * rs_fire_c - Fire risk */ let { rs_tl_c, rs_pf_c, rs_sed_c, rs_fire_c } = feature.attribute...
app/javascript/packs/client.js
legislated/legislated-web
// @flow import '@/styles/hydrate' import React from 'react' import { renderReact } from 'hypernova-react' import { BrowserRouter } from 'react-router-dom' import { ScrollContext } from 'react-router-scroll-4' import { App } from '../src/App' export default renderReact('client', () => ( <BrowserRouter> <ScrollCo...
src/svg-icons/social/public.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPublic = (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 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9...
src/Switch/Switch.js
AndriusBil/material-ui
// @flow weak import React from 'react'; import type { Node } from 'react'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; import createSwitch from '../internal/SwitchBase'; export const styles = (theme: Object) => ({ root: { display: 'inline-flex', width: 62, positi...
src/svg-icons/maps/local-offer.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalOffer = (props) => ( <SvgIcon {...props}> <path d="M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58.55 0 1.05-.22 1.41-.59l7-7c.37-.36.59-.86...
src/stories/onRender.js
phola/react-xlsx
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import Button from '../index'; import WorkBook from '../WorkBook' import Cell from '../Cell' import Sheet from '../Sheet' storiesOf('WorkBook', module).add( 'renderXLSX setting ', () => { const defaultCellStyle = { font: { ...
src/svg-icons/image/wb-cloudy.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbCloudy = (props) => ( <SvgIcon {...props}> <path d="M19.36 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.64-4.96...
src/form/TextInput/TextInput.js
jeffdowdle/l-systems
import React from 'react'; import PropTypes from 'prop-types'; import Control from '../Control'; import Label from '../Label'; import './text-input.scss'; const fieldId = id => `param-${id}`; const TextInput = ({ id, label, value, onChange, }) => ( <Control> <Label htmlFor={fieldId}>{label}</Label> ...
packages/wix-style-react/src/FilePicker/FilePicker.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import Add from 'wix-ui-icons-common/Add'; import uniqueId from 'lodash/uniqueId'; import { classes } from './FilePicker.st.css'; import FormField from '../FormField'; import TextButton from '../TextButton'; import Text from '../Text'; import FileUpload fr...
src/pages/audiovisual.js
vitorbarbosa19/ziro-online
import React from 'react' import BrandGallery from '../components/BrandGallery' export default () => ( <BrandGallery brand='Audiovisual' /> )
src/parser/hunter/survival/modules/spells/CoordinatedAssault.js
FaideWW/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import STATISTIC_ORDER from 'interface/others/...
front_end/src/pages/AdGroups/AdGroupCreatePage.js
ncloudioj/splice
import React, { Component } from 'react'; import { connect } from 'react-redux'; import reactMixin from 'react-mixin'; import { Link, Lifecycle } from 'react-router'; import { updateDocTitle } from 'actions/App/AppActions'; import { fetchHierarchy } from 'actions/App/BreadCrumbActions'; import { fetchAccounts } from '...
common/routes/Main/containers/UserTracks.js
kuguarpwnz/musix
import React from 'react'; import { connect } from 'react-redux'; import { addTrack } from '../actions/tracks'; import { getSearchTracks } from '../reducers/search'; import Playlist from '../components/Playlist'; const mapStateToProps = (state) => ({ userAudio: state.user.audio, searchAudio: getSearchTracks(state)...
Webpack/待整理/Tutorial/webpack-demos by ruanyifeng/demo15/App.js
ymqy/LearnBook
import React, { Component } from 'react'; export default class App extends Component { render() { return ( <h1>Hello World</h1> ); } }
webpack/scenes/RedHatRepositories/components/EnabledRepository/EnabledRepository.stories.js
ares/katello
import React from 'react'; import { storiesOf } from '@storybook/react'; import EnabledRepository from './EnabledRepository.js'; storiesOf('RedHat Repositories Page', module).add('Enabled Repository', () => ( <EnabledRepository id={638} name="Red Hat Enterprise Linux 6 Server Kickstart x86_64 6.8" releas...
src/containers/HeroStats.js
byronsha/open_dota
import React from 'react' import {connect} from 'react-redux' import Loader from '../components/Loader' import HeroStatsNav from '../components/hero_stats/HeroStatsNav' import {fetchHeroStats} from '../actions/api' import { proSetOrderBy, proSetOrderDirection, publicSetOrderBy, publicSetOrderDirection } from '....
app/javascript/mastodon/features/ui/components/image_loader.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import ZoomableImage from './zoomable_image'; export default class ImageLoader extends React.PureComponent { static propTypes = { alt: PropTypes.string, src: PropTypes.string.isRequired, previewSrc: PropT...
web/src/viewer/Viewer.js
bolddp/pixerva
import React, { Component } from 'react'; import Rating from './Rating'; import Hourglass from './Hourglass'; import PauseIndicator from './PauseIndicator'; import ErrorIndicator from './ErrorIndicator'; import DateLabel from './DateLabel'; import Menu from './Menu'; import Canvas from './Canvas'; import imageProvider ...
frontend/src/Calendar/CalendarConnector.js
Radarr/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import * as commandNames from 'Commands/commandNames'; import * as calendarActions from 'Store/Actions/calendarActions'; import { clearMovieFiles, fetchMovieFil...
test/Form/index.js
WolfgaungBeer/scado
import React from 'react'; import styled from 'styled-components'; import { Text } from '../../src/scado'; import Form from './Form'; const Wrapper = styled.div` margin-top: 3rem; width: 100%; `; const FormWrapper = styled.div` width: 40%; margin: auto; `; const sleep = ms => new Promise(resolve => s...
src/components/SelectInput/SelectInput.stories.js
InsideSalesOfficial/insidesales-components
import React from "react"; import { storiesOf, action } from "@storybook/react"; import styled, { ThemeProvider } from "styled-components"; import _ from "lodash"; import { renderThemeIfPresentOrDefault, generateFlexedThemeBackground, colors, typography } from "../styles"; import Icons from "../icons"; import...
src/index.js
mdvb1001/BlogReactRedux
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import { Router, browserHistory } from 'react-router'; // Must import both of these... import reducers from './reducers'; import routes from "./routes"; import promi...
src/routes.js
nfcortega89/nikkotoonaughty
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './components/app'; import Main from './components/main'; import Card from './components/card'; export default ( <Route path="/" component={App}> <IndexRoute component={Main} /> <Route path="/redirect" component={Ma...
src/svg-icons/content/undo.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </Svg...
frontWeb/main/react/react-router/basic/dev/animationExample.js
skycolor/study
import React from 'react' import { CSSTransitionGroup } from 'react-transition-group' import { BrowserRouter as Router, Route, Link, Redirect } from 'react-router-dom' /* you'll need this CSS somewhere .fade-enter { opacity: 0; z-index: 1; } .fade-enter.fade-enter-active { opacity: 1; transition: opac...
src/Voting/Question/Question.js
cityofsurrey/polltal-app
import React from 'react' import PropTypes from 'prop-types' import Radium from 'radium' import FlatCard from 'components/FlatCard' import Header from './Header' import Response from './Response' const styles = { card: { padding: 0, }, content: { padding: '20px 20px 10px', '@media (min-width: 1150p...
docs/app/Examples/elements/Header/Variations/HeaderExampleDividing.js
koenvg/Semantic-UI-React
import React from 'react' import { Header } from 'semantic-ui-react' const HeaderExampleDividing = () => ( <Header as='h3' dividing> Dividing Header </Header> ) export default HeaderExampleDividing
app/components/Home.js
eccorley/electron-starter
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Home extends Component { render() { return ( <div> <div> </div> </div> ); } }
src/proptypes.js
brekk/glass-menagerie
import React from 'react' import curry from 'lodash/fp/curry' import clone from 'lodash/fp/cloneDeep' import memoize from 'lodash/fp/memoize' import identity from 'lodash/fp/identity' import flow from 'lodash/fp/flow' import compact from 'lodash/fp/compact' import reduce from 'lodash/fp/reduce' import merge from 'lodas...
client/src/components/Forecast.js
kanissimov/meteo-demo
import React, { Component } from 'react'; import ReactHighcharts from 'react-highcharts'; class Forecast extends Component { render() { const { config } = this.props; return config ? <ReactHighcharts config={config} ref="chart" /> : <div />; } } export default Forecast; // componentDidMount() { // le...
src/components/modals/EditGroup.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2016 Actor LLC. <https://actor.im> */ import React, { Component } from 'react'; import { Container } from 'flux/utils'; import { FormattedMessage } from 'react-intl'; import Modal from 'react-modal'; import { ModalTypes } from '../../constants/ActorAppConstants'; import EditGroupStore from '../.....
src/components/HistoryUserBookings.js
onlinebooking/booking-frontend
import React from 'react'; import classNames from 'classnames'; import UserBookingListItem from './UserBookingListItem'; import { range } from 'lodash'; import { humanizeBookingStatus } from '../utils/booking'; import { ListGroup, Badge, FormGroup, FormControl, ButtonGroup, Button } from 'react-bootstrap'...
src/svg-icons/action/find-in-page.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFindInPage = (props) => ( <SvgIcon {...props}> <path d="M20 19.59V8l-6-6H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c.45 0 .85-.15 1.19-.4l-4.43-4.43c-.8.52-1.74.83-2.76.83-2.76 0-5-2.24-5-5s2.24-5 5...
src/Parser/MistweaverMonk/Modules/Core/HealingDone.js
Yuyz0112/WoWAnalyzer
import React from 'react'; import { formatThousands, formatNumber } from 'common/format'; import Module from 'Parser/Core/Module'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; class HealingDone extends Module { statistic() { return ( <StatisticBox icon={( <img ...
src/clincoded/static/components/methods.js
ClinGen/clincoded
'use strict'; import React from 'react'; import _ from 'underscore'; import moment from 'moment'; import { Input } from '../libs/bootstrap/form'; import * as curator from './curator'; // Utilities so any pages that have a Methods panel can use this shared code // To display the panel, and convert its values to an obje...
js/jqwidgets/demos/react/app/treemap/bindingtojson/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeMap from '../../../jqwidgets-react/react_jqxtreemap.js'; class App extends React.Component { render () { let data = [ { "id": "2", "parentid": "1", "text":...
ui/src/app/components/modals/AddPipeline.js
mnewswanger/kube-ci
import React from 'react'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import RaisedButton from 'material-ui/RaisedButton'; import PipelineForm from '../forms/Pipeline'; /** * A modal dialog can only be closed by selecting one of the actions. */ export default class Add...
modules/time/DigitalClock.js
JandJGroup/MagicMirror
//Orginally copied from http://jsfiddle.net/rainev/vx4r5qzv/ import React from 'react'; var DigitalClockFace = React.createClass({ render: function () { var d = this.props.date; var millis = d.getMilliseconds(); var second = d.getSeconds() * 6 + millis * (6 / 1000); var minute = d.ge...
src/ProfileMenuItem/index.js
christianalfoni/ducky-components
import LabelTab from '../LabelTab'; import ActionButton from '../ActionButton'; import Typography from '../Typography'; import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function ProfileMenuItem(props) { let icon = 'icon-check_cir...
docs/app/Examples/collections/Table/Variations/TableExampleColumnWidth.js
koenvg/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const TableExampleColumnWidth = () => { return ( <Table> <Table.Header> <Table.Row> <Table.HeaderCell width={10}>Name</Table.HeaderCell> <Table.HeaderCell width='six'>Status</Table.HeaderCell> </Table.Ro...
src/views/AboutView.js
realalexhomer/redux-react-todo
import React from 'react' import { Link } from 'react-router' const AboutView = () => ( <div className='container text-center'> <h1>This is the about view!</h1> <hr /> <Link to='/'>Back To Home View</Link> </div> ) export default AboutView
app/containers/ResumePage/index.js
DwightBe/Portfolio-2017
/* * 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...
src/docs/examples/TextInputStyledComponents/errorExample.js
choudlet/ps-react-choudlet
import React from 'react'; import TextInputStyledComponents from 'ps-react/TextInputStyledComponents'; /** Required TextBox with error */ export default class ExampleError extends React.Component { render() { return ( <TextInputStyledComponents htmlId="example-optional" label="First Name" ...
src/premade/SummaryTimelineChart.js
ornl-sava/vis-react-components
import React from 'react' import PropTypes from 'prop-types' import { extent, min, max } from 'd3' import { setScale, isOrdinalScale } from '../util/d3' import { spreadRelated } from '../util/react' import Chart from '../Chart' import Axis from '../Axis' import SummaryTimeline from '../SummaryTimeline' class SummaryT...
src/components/Repl.js
boneskull/Mancy
import React from 'react'; import _ from 'lodash'; import ReplEntries from './ReplEntries'; import ReplPrompt from './ReplPrompt'; import ReplStatusBar from './ReplStatusBar'; import ReplStore from '../stores/ReplStore'; import ReplDOMEvents from '../common/ReplDOMEvents'; import ReplDOM from '../common/ReplDOM'; impor...
app/src/assets/js/components/global/sequential-nav-bar.js
Huskie/ScottishPremiershipData
import React from 'react'; import { Link } from 'react-router'; import firebaseApp from '../../modules/firebase'; import convertObjectPropertiesToArray from '../../modules/utilities/convert-object-properties-to-array'; import orderArrayAlphabeticallyByObjectKey from '../../modules/utilities/order-array-alphabetically...
examples/_drag-around-custom/index.js
prometheusresearch/react-dnd
'use strict'; import React from 'react'; import LinkedStateMixin from 'react/lib/LinkedStateMixin'; import Container from './Container'; import DragLayer from './DragLayer'; const DragAroundCustom = React.createClass({ mixins: [LinkedStateMixin], getInitialState() { return { snapToGridAfterDrop: false,...
frontend/src/routes/Skills/components/Skills.js
blalasaadri/TechTalent
import React from 'react'; import LoadingIndicator from 'components/LoadingIndicator'; import SkillsDetails from 'components/SkillsDetails'; class Skills extends React.Component { constructor (props) { super(props); props.fetchSkills(); } render () { return ( <LoadingIndicator isFetched={this....
app/components/Store/Icons/LoginIcon.js
VineRelay/VineRelayStore
import React from 'react'; import Icon from 'react-icon-base'; const LoginIcon = (props) => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m35.9 31.4q0 2.6-1.6 4.2t-4.3 1.5h-19.5q-2.7 0-4.4-1.5t-1.6-4.2q0-1.2 0.1-2.3t0.3-2.5 0.6-2.4 0.9-2.2 1.4-1.8 1.9-1.2 2.5-0.4q0.2 0 1 0.5t1.6 1 2.4 1.1 3 0.5 3-0.5 2.4-1...
src/components/orders/orders_table.js
DavidSunny/mastering-react
import React from 'react'; import OrderRow from './order_row.js'; class OrdersTable extends React.Component { render() { const rows = this.props.orders.map((order, i) => { return <OrderRow order={order} key={i} />; }) return ( <table className="orders-table"> <thead> <tr> ...
docs/src/app/components/pages/components/IconButton/ExampleSize.js
rscnt/material-ui
import React from 'react'; import IconButton from 'material-ui/IconButton'; import ActionHome from 'material-ui/svg-icons/action/home'; const styles = { smallIcon: { width: 36, height: 36, }, mediumIcon: { width: 48, height: 48, }, largeIcon: { width: 60, height: 60, }, small: { ...
blueocean-material-icons/src/js/components/svg-icons/action/assignment-returned.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionAssignmentReturned = (props) => ( <SvgIcon {...props}> <path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1...
app/containers/ToolTypeAllFull/index.js
BeautifulTrouble/beautifulrising-client
/** * * ToolTypeAllFull * */ import React from 'react'; import styled from 'styled-components'; import Isvg from 'react-inlinesvg'; import {Link} from 'react-router'; import { injectIntl } from 'react-intl'; import TranslatableStaticText from 'containers/TranslatableStaticText'; import Container from 'components/To...
demo/src/index.js
insin/react-router-form
import './style.css' import React from 'react' import {render} from 'react-dom' import {IndexRoute, Link, Route, Router, hashHistory} from 'react-router' import Form from '../../src' let CONTACTS = [{ first: 'Ryan', last: 'Florence', avatar: 'http://ryanflorence.com/jsconf-avatars/avatars/ryan.jpg', }, { fir...
iOS/views/components/RecomendRef.js
MOTOMUR/plz_donation
import React, { Component } from 'react'; import { StyleSheet, View, Image } from 'react-native'; import { Container, Header, Content, Card, CardItem, Thumbnail, Text, Button, Left, Body, Right } from 'native-base'; import Timestamp from 'react-timestamp'; import Icon from 'react-native-vector-icons/MaterialIcons' imp...
docs/src/sections/ThumbnailSection.js
egauci/react-bootstrap
import React from 'react'; import Anchor from '../Anchor'; import PropTable from '../PropTable'; import ReactPlayground from '../ReactPlayground'; import Samples from '../Samples'; export default function ThumbnailSection() { return ( <div className="bs-docs-section"> <h2 className="page-header"> ...
src/components/home.js
syvzies/recipe-recommender
import React, { Component } from 'react'; class Home extends Component { render () { return ( <div> <h1>Recipe Recommendations</h1> </div> ); } } export default Home;
client/src/pages/index.js
hstandaert/hstandaert.com
import React from 'react' import { Link } from 'gatsby' import Layout from '../components/layout' const IndexPage = () => ( <Layout> <h1>Hi people</h1> <p>Welcome to your new Gatsby site.</p> <p>Now go build something great.</p> <Link to="/page-2/">Go to page 2</Link> </Layout> ) export default I...
vertex_ui/src/components/Navbar/components/MenuSection/MenuSection.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import _ from 'underscore'; import { Link } from 'react-router'; import routes, { findSectionBySlug, urlMatcher } from 'routes/routesStructure'; import classes from './MenuSection.scss'; const MenuSection = props => { const { slug, currentPath, onN...
src/views/components/shared/track/no-track.js
EragonJ/Kaku
import React, { Component } from 'react'; import L10nSpan from '../l10n-span'; class NoTrack extends Component { constructor(props) { super(props); } render() { return ( <div className="notracks"> <L10nSpan l10nId="component_no_track"/> </div> ); } } module.exports = NoTrack;
client/app/index.js
juanmanuelromeraferrio/start-android
import React from 'react'; import ReactDOM from 'react-dom'; import injectTapEventPlugin from 'react-tap-event-plugin'; import styles from './index.css'; import App from './components/App'; injectTapEventPlugin(); ReactDOM.render( < App / > , document.getElementById('app') );
src/components/ReactHotReloadWrapper.js
evonsdesigns/markts-app
import React from 'react'; import { hot } from 'react-hot-loader'; import AppRoutes from './AppRoutes'; export default hot(module)(AppRoutes);
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/DefaultProps.js
popham/flow
// @flow import React from 'react'; class MyComponent extends React.Component { static defaultProps: DefaultProps = {}; props: Props; defaultProps: T; static props: T; static state: T; a: T; b = 5; c: T = 5; method() {} } const expression = () => class extends React.Component { static defaul...
node_modules/@material-ui/core/es/OutlinedInput/NotchedOutline.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import { withStyles } from '../styles'; import { capitalize } from '../utils/hel...
src/components/message.js
gthomas-appfolio/appfolio-react-template
import React, { Component } from 'react'; import styles from './message.scss'; /** * Simple example component. */ export default class Message extends Component { render() { return ( <div className={styles.message}> <h1>Hello Appfolio!</h1> </div> ); } }
codes/reactstrap-demo/src/containers/Full/Full.js
atlantis1024/react-step-by-step
import React, { Component } from 'react'; import Header from '../../components/Header/'; import Sidebar from '../../components/Sidebar/'; import Aside from '../../components/Aside/'; import Footer from '../../components/Footer/'; import Breadcrumbs from 'react-breadcrumbs'; class Full extends Component { render() {...
src/Router.js
pvijeh/isomorphic-react
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import $ from 'jquery'; import ContentPage from './components/ContentPage'; import WorkPage from ...
src/docs/components/markdown/MarkdownExamplesDoc.js
karatechops/grommet-docs
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import Markdown from 'grommet/components/Markdown'; import InteractiveExample from '../../../components/InteractiveExample'; Markdown.displayName = 'Markdown'; const TEXT = ` # H1 Paragraph [link](/). ## ...