path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
modules/gui/src/app/home/body/process/recipe/opticalMosaic/panels/opticalMosaicToolbar.js
openforis/sepal
import {Retrieve} from 'app/home/body/process/recipe/opticalMosaic/panels/retrieve/retrieve' import {SceneSelectionType} from 'app/home/body/process/recipe/opticalMosaic/opticalMosaicRecipe' import {Toolbar} from 'widget/toolbar/toolbar' import {compose} from 'compose' import {msg} from 'translate' import {selectFrom} ...
src/components/header/index.js
Tsarpf/babel-webpack-react-eslint-boilerplate
import React from 'react'; import { Link } from 'react-router'; export default class Header extends React.Component { render() { return ( <div> <Link to="/"> <h1> The Boilerplate </h1> </Link> <hr/> </div> ) } }
src/routes/privacy/index.js
taekungngamonosus/monoreact
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Layout from '../../co...
src/component/FilterableProductTable/ProductTable.js
lyc-chengzi/reactProject
import React from 'react'; import ProductCategoryRow from './ProductCategoryRow'; import ProductRow from './ProductRow'; export default class ProductTable extends React.Component { constructor(props) { super(props); } render() { var products = this.formatProducts(); return ( ...
examples/js/custom/toolbar/custom-button-group.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, ButtonGroup } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i...
src/svg-icons/action/remove-shopping-cart.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRemoveShoppingCart = (props) => ( <SvgIcon {...props}> <path d="M22.73 22.73L2.77 2.77 2 2l-.73-.73L0 2.54l4.39 4.39 2.21 4.66-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h7.46l1.38 1.38c-.5.36-.83.95-.8...
modules/react-router-2.5.2/modules/RouteContext.js
nanyou-environment/enBackEnd
import warning from './routerWarning' import React from 'react' const { 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 transitio...
src/routes.js
CHANGHUOO/myHole
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Router from 'react-routi...
src/svg-icons/editor/insert-comment.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertComment = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); EditorInsertCom...
app/containers/ToggleMenu.js
nosplashurinal/order-management
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { toggleMenu } from '../actions'; import Nav from '../components/Nav.js'; const ToggleMenu = ( {isMenuOpen, onToggleMenu} ) => { return ( <Nav onMouseOver={() => onToggleMenu()} isMenuOpen={...
docs/src/app/components/pages/components/Badge/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import badgeReadmeText from './README'; import BadgeExampleSimple from './Exampl...
src/components/GithubButton/GithubButton.js
svsool/react-redux-universal-hot-example
import React from 'react'; const GithubButton = (props) => { const {user, repo, type, width, height, count, large} = props; let src = `https://ghbtns.com/github-btn.html?user=${user}&repo=${repo}&type=${type}`; if (count) src += '&count=true'; if (large) src += '&size=large'; return ( <iframe src=...
demo/js/demo.js
mikeumus/react-paginate-fetch
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import ReactPaginate from 'react-paginate'; import $ from 'jquery'; // var fetch = require('node-fetch'); window.React = React; export class ImageList extends Component { render() { let imageNodes = this.props.data.map(function(image, inde...
src/main-ui.js
jtak93/phaser-practice
import React, { Component } from 'react'; import config from './config'; import { Progress, Button } from 'semantic-ui-react' import LoginMenuContainer from './containers/LoginMenuContainer' import SignupContainer from './containers/SignupContainer' import MainMenuContainer from './containers/MainMenuContainer' import ...
demo/demo.js
backstage-ui/backstage-modal
/* * Copyright (c) 2016, Globo.com (https://github.com/globocom) * * License: MIT */ import React from 'react'; import ReactDOM from 'react-dom'; import Modal from '../src/modal'; import ModalBody from '../src/modal-body'; import ModalFooter from '../src/modal-footer'; class Demo extends React.Component { cons...
maodou/posts/client/components/admin/postsConfigure.js
wuyang910217/meteor-react-redux-base
import React from 'react'; import {Link} from 'react-router'; import Loading from 'client/components/common/loading'; export default (props) => { return ( <div className="container"> <div className="row"> <div className="col-sm-12"> <h1>文章设置</h1> <h4>文章分类</h4> { ...
src/svg-icons/action/bug-report.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionBugReport = (props) => ( <SvgIcon {...props}> <path d="M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5c-.49 0-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7...
ReactRouterTest/src/components/Masthead/tabs/dummyChart.js
OlesiaBelmega/GoIT-Studing
import React from 'react'; const DummyChart = () => { return ( <div className="chart"> DummyChart </div> ); }; export default DummyChart;
src/svg-icons/maps/ev-station.js
spiermar/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsEvStation = (props) => ( <SvgIcon {...props}> <path d="M19.77 7.23l.01-.01-3.72-3.72L15 4.56l2.11 2.11c-.94.36-1.61 1.26-1.61 2.33 0 1.38 1.12 2.5 2.5 2.5.36 0 .69-.08 1-.21v7.21c0 .55-.45 1-1 1s-1-.45-1-1V...
packages/ringcentral-widgets-docs/src/app/pages/Components/ActiveCallPad/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import ActiveCallPad from 'ringcentral-widgets/components/ActiveCallPad'; import callCtrlLayouts from 'ringcentral-widgets/enums/callCtrlLayouts'; const props = {}; props.onMute = () => null; props.onUnmute = () => null; props.onHold = () => null; props.onUnhold =...
src/svg-icons/av/web.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvWeb = (props) => ( <SvgIcon {...props}> <path d="M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 14H4v-4h11v4zm0-5H4V9h11v4zm5 5h-4V9h4v9z"/> </SvgIcon> ); AvWeb = pur...
src/components/HouseholdHeader.js
michaelgodshall/fullstack-challenge-frontend
import React from 'react'; const HouseholdHeader = ({household}) => { return ( <div className="mb-5"> <h1>{household.address}</h1> <p className="lead">{household.city}, {household.state} {household.zip} / {household.number_of_bedrooms} bedrooms</p> </div> ); }; export default HouseholdHeader;
client/app/scripts/components/node-details/node-details-table.js
dilgerma/scope
import _ from 'lodash'; import React from 'react'; import ShowMore from '../show-more'; import NodeDetailsTableNodeLink from './node-details-table-node-link'; import NodeDetailsTableNodeMetric from './node-details-table-node-metric'; function isNumberField(field) { return field.dataType && field.dataType === 'numbe...
blueocean-material-icons/src/js/components/svg-icons/action/stars.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionStars = (props) => ( <SvgIcon {...props}> <path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm4.24 16L12 15.45 7.77 18l1.12-4.81-3.73-3.23 4.92-.42L12 5l1.92 4.53 4.92.42-3.73 3.23L16.23 18z"/> ...
src/components/MessageDisplay.js
scolab/Exploding-Dots-PIXI
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; export default class MessageDisplay extends Component { static propTypes = { userMessage: PropTypes.string, onClose: PropTypes.func.isRequir...
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js
rscnt/material-ui
import React from 'react'; import IconMenu from 'material-ui/IconMenu'; import MenuItem from 'material-ui/MenuItem'; import IconButton from 'material-ui/IconButton/IconButton'; import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; const IconMenuExampleSimple = () => ( <div> <IconMenu iconB...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
cold-brew-coding/react-router
import React from 'react'; class Announcement extends React.Component { render () { var { courseId, announcementId } = this.props.params; var { title, body } = COURSES[courseId].announcements[announcementId]; return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } ...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
IgorKilipenko/KTS_React
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'));
packages/wix-style-react/src/Image/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, description, importExample, title, columns, divider, example, playground, api, testkit, } from 'wix-storybook-utils/Sections'; import Box from '../../Box'; import { storySettings } from '../test/storySettings'; import { sourceExample, ...
fields/types/Field.js
lastjune/keystone
import _ from 'underscore'; import classnames from 'classnames'; import evalDependsOn from '../utils/evalDependsOn.js'; import React from 'react'; import { Button, FormField, FormInput, FormNote } from 'elemental'; function validateSpec(spec) { if (!spec) spec = {}; if (!_.isObject(spec.supports)) { spec.supports ...
js/components/Chat/CustomActions.js
DevHse/ClubRoom
import React, { Component } from 'react'; import { Modal, StyleSheet, TouchableOpacity, View, Text, } from 'react-native'; import CameraRollPicker from 'react-native-camera-roll-picker'; import NavBar, { NavButton, NavButtonText, NavTitle } from 'react-native-nav'; export default class CustomActions extends...
lib/src/game/face.js
Hezko/MineBlown-GameUI
import React from 'react'; class Face extends React.Component { constructor(props) { super(); this.isFinished = props.isFinished; this.isWin = props.isWin; this.isLose = props.isLose; } getFaceImgSrc(isWin, isLose) { if (isWin === true) { return '../../...
src/containers/ModalLogin.js
onlinebooking/booking-frontend
import React, { Component } from 'react'; import { Modal, Button } from 'react-bootstrap'; import LoginForm from './LoginForm' import { connect } from 'react-redux'; import { hideModalLogin } from '../actions/auth'; class ModalLogin extends Component { render() { return ( <Modal show={this.props.showModal}...
src/frontend/components/ConstituentLookup.js
Bernie-2016/ground-control
import React from 'react' import Relay from 'react-relay' import { Styles, Divider, RaisedButton, Card, CardTitle, CardText, FontIcon, RefreshIndicator, Table, TableHeaderColumn, TableRow, TableHeader, TableRowColumn, TableBody, TableFooter } from 'material-ui' import GCForm from './forms/...
frontend/src/components/Exercise/index.js
andres81/auth-service
import React from 'react' import Entry from './Entry' export default class Exercise extends React.Component { render() { // const {optionType} = props; let optionType = "image"; let gridClass; let gridClassLastOption; switch(optionType) { case "image": ...
test/integration/image-component/default/pages/priority-missing-warning.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const Page = () => { return ( <div> <h1>Priority Missing Warning Page</h1> <Image id="responsive" layout="responsive" src="/wide.png" width="1200" height="700" /> <Image id="fixed" ...
packages/eslint-config-react-native/test/rules/no-inline-styles.js
moxystudio/eslint-config
import React from 'react'; import { Text } from 'react-native'; // `no-inline-styles` - Detect inline styles in components // -------------------------------------------------------------------- // Bad { const MyComponent = () => <Text style={ { fontSize: 14 } }>MOXY</Text>; } // Good { const MyComponent = ({ ...
src/components/RestaurantVoteButton/RestaurantVoteButton.js
labzero/lunch
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import s from './RestaurantVoteButton.scss'; export class _RestaurantVoteButton extends Component { componentDidUpdate() { // if it's focused, page scrolls to its new loc...
src/js/components/icons/base/LocationPin.js
linde12/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
src/components/icons/debug.js
ipfs-shipyard/peerpad
import React from 'react' export default ({ className, style }) => ( <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 149 146.7' className={className} style={style}> <path d='M74.5,121.85c-22.33,0-40.5-21.76-40.5-48.5s18.17-48.5,40.5-48.5S115,46.6,115,73.35,96.83,121.85,74.5,121.85Zm0-90C56,31.85,41,50.46,41...
public/jspm_packages/npm/react-router@2.0.0/modules/RouteContext.js
nayashooter/ES6_React-Bootstrap
/* */ "format cjs"; import warning from './routerWarning' import React from 'react' const { 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...
ajax/libs/react-instantsearch/5.2.0-beta.1/Connectors.js
seogi1004/cdnjs
/*! React InstantSearch 5.2.0-beta.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['ex...
packages/@lyra/base/src/components/Document.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import generateScriptLoader from '../util/generateScriptLoader' import AppLoadingScreen from './AppLoadingScreen' function assetUrl(staticPath, item) { const isAbsolute = item.path.match(/^https?:\/\//) if (isAbsolute) { return item.path } const...
app/packs/src/components/ContainerDataset.js
ComPlat/chemotion_ELN
import React, { Component } from 'react'; import { Row, Col, FormGroup, FormControl, ControlLabel, Table, ListGroup, ListGroupItem, Button, Overlay } from 'react-bootstrap'; import Dropzone from 'react-dropzone'; import debounce from 'es6-promise-debounce'; import { findIndex, cloneDeep } from 'lodash'; import Utils f...
src/apps/components/userinfo/userinfo.js
janakuma/newLobby
import React from 'react'; import classNames from 'classnames'; export default class Userinfo extends React.Component { constructor(props) { super(props); this.state = { layerOpen: false, zoomIn: false, setServer: 'NA', broCash: '1,000', broPoint: '1,000', }; this.addClass = this...
examples/dyno/app.js
mdamien/react-tabs
import React from 'react'; import Modal from 'react-modal'; import { Tab, Tabs, TabList, TabPanel } from '../../lib/main'; Modal.setAppElement(document.getElementById('example')); Modal.injectCSS(); const App = React.createClass({ getInitialState() { return { isModalOpen: false, tabs: [ {lab...
app/js/pages/Home.js
JeffRisberg/RE03
import React, { Component } from 'react'; class Home extends Component { render() { return ( <div className={this.props.className}> <h2>RE03 Example</h2> <div className="row"> <div className="col-md-4"> Uses React for presentation </div> <div clas...
classic/src/scenes/mailboxes/src/Scenes/AppScene/Sidelist/SidelistControls/SidelistControlDownloads/DownloadsPopoutContent.js
wavebox/waveboxapp
import React from 'react' import { localHistoryStore, localHistoryActions } from 'stores/localHistory' import DownloadList from 'wbui/DownloadList' class DownloadsPopoutContent extends React.Component { /* **************************************************************************/ // Component lifecycle /* *****...
react-youtube-adaptive-loading/src/components/VideoPreview/VideoPreview.js
GoogleChromeLabs/adaptive-loading
import React from 'react'; import {Image} from 'semantic-ui-react'; import './VideoPreview.scss'; import TimeAgo from 'javascript-time-ago'; import en from 'javascript-time-ago/locale/en'; import {getShortNumberString} from '../../services/number/number-format'; import {getVideoDurationString} from '../../services/dat...
ui/js/dfv/src/fields/time/index.js
pods-framework/pods
import React from 'react'; import PropTypes from 'prop-types'; import DateTime from '../datetime'; import { FIELD_COMPONENT_BASE_PROPS } from 'dfv/src/config/prop-types'; const Time = ( props ) => { const { fieldConfig = {}, } = props; // Process the field config so that properties prefixed with "date_" // are...
src/client/components/pages/entities/series-table.js
bookbrainz/bookbrainz-site
/* * Copyright (C) 2021 Akash Gupta * * This program is free software; 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 2 of the License, or * (at your option) any later version. * * This program is distr...
examples/todomvc/index.js
wbecker/redux
import React from 'react'; import App from './containers/App'; import 'todomvc-app-css/index.css'; React.render( <App />, document.getElementById('root') );
webpack/react_app/components/TargetingHosts/components/HostItem.js
adamruzicka/foreman_remote_execution
import React from 'react'; import PropTypes from 'prop-types'; import { ActionButtons } from 'foremanReact/components/common/ActionButtons/ActionButtons'; import HostStatus from './HostStatus'; const HostItem = ({ name, link, status, actions }) => { const hostLink = link ? ( <a href={link}>{name}</a> ) : ( ...
app/javascript/mastodon/features/lists/index.js
blackle/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 Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compo...
public/src/containers/donut/donutSvg.js
white87332/react-redux
import React from 'react'; class DonutSvg extends React.Component { constructor(props, context) { super(props, context); this.state = {}; } render() { let { width, height } = this.props; return ( <svg width={width} height={height}> {this....
src/routes/index.js
josedab/react-redux-i18n-starter-kit
import React from 'react' import { Route, IndexRoute } from 'react-router' // NOTE: here we're making use of the `resolve.root` configuration // option in webpack, which allows us to specify import paths as if // they were from the root of the ~/src directory. This makes it // very easy to navigate to files regardless...
examples/query-params/app.js
chrisirhc/react-router
import React from 'react'; import { Router, Route, Link } from 'react-router'; var User = React.createClass({ render() { var { query } = this.props.location; var age = query && query.showAge ? '33' : ''; var { userID } = this.props.params; return ( <div className="User"> <h1>User id: {u...
blueocean-material-icons/src/js/components/svg-icons/navigation/apps.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ); NavigationApps.displayName = '...
src/svg-icons/editor/insert-chart.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertChart = (props) => ( <SvgIcon {...props}> <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-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); Editor...
frontend/src/components/forms/reddit-form/index.js
loganabsher/portfolio
'use strict'; import React from 'react'; import propTypes from 'prop-types'; class RedditForm extends React.Component{ constructor(){ super(); this.state = { subreddit: 'aww', limit: 25, error: false }; this.handleChange = this.handleChange.bind(this); this.handleSubmit = this...
docs/src/app/components/pages/components/DropDownMenu/Page.js
mtsandeep/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import dropDownMenuReadmeText from './README'; import DropDownMenuSimpleExample ...
stories/Breadcrubms/CompositeStory.js
skyiea/wix-style-react
import React from 'react'; import {storiesOf} from '@storybook/react'; import InteractiveCodeExample from '../utils/Components/InteractiveCodeExample'; import Markdown from '../utils/Components/Markdown'; import Readme from '../../src/Breadcrumbs/README.md'; import ExampleBreadcrumbs from '../Breadcrubms/ExampleBread...
docs/src/app/components/pages/components/Badge/ExampleSimple.js
hai-cea/material-ui
import React from 'react'; import Badge from 'material-ui/Badge'; import IconButton from 'material-ui/IconButton'; import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; const BadgeExampleSimple = () => ( <div> <Badge badgeContent={4} primary={true} > <NotificationsIcon...
src/components/answerInput/Input.js
Oblium/react-math
import React from 'react'; import './answerInput.scss'; class Input extends React.Component { constructor() { super(); this.onBlur = this.onBlur.bind(this); } render() { return !this.props.gameEnded ? ( <div className="answerInputCont"> <input type="text" ref={(ref) => this.answerInp...
src/examples/index.js
thomasbandit/smooth-jumper
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import style from './scss/main.scss'; /* * Only render the React version if the #app DOM * element exists */ if (document.getElementById('app')) { ReactDOM.render(<App />, document.getElementById('app')); }
stories/default-size/auto-height.js
pionl/react-resizable-box
/* eslint-disable */ import React from 'react'; import Resizable from '../../src'; const style = { display: 'flex', alignItems: 'center', justifyContent: 'center', border: 'solid 1px #ddd', background: '#f0f0f0', }; export default () => ( <Resizable style={style} defaultSize={{ width: 200, ...
app/javascript/mastodon/features/account/components/account_note.js
im-in-space/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
src/components/LoginForm.js
ChenLi0830/RN-Auth
import React from 'react'; import {Spinner, Button, Card, CardSection, Input} from './common'; import {Text} from 'react-native'; import {connect} from 'react-redux'; import {AuthActions} from '../modules'; const LoginForm = (props) => { // console.log("props", props); // async onButtonPress() { // const {e...
src/parser/deathknight/unholy/modules/features/ClawingShadowsEfficiency.js
FaideWW/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import Enemies from 'parser/shared/modules/Enemies'; import StatisticBox, { ...
actor-apps/app-web/src/app/components/activity/UserProfileContactInfo.react.js
liuzwei/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class UserProfileContactInfo extends React.Component { static propTypes = { phones: React.PropTypes.arr...
app/static/src/performer/TestTypeResultForm_modules/NewDissolvedGasTestForm.js
SnowBeaver/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-bootstrap/lib/Button'; import Checkbox from 'react-bootstrap/lib/Checkbox'; import Panel fro...
docs/app/Examples/collections/Menu/Content/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' // TODO: Add example with <Popup> after it will be added // TODO: Add example with <Search> after it will be added const Content = ()...
node_modules/semantic-ui-react/dist/es/views/Card/Card.js
mowbell/clickdelivery-fed-test
import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/i...
src/shared/components/form/formSelect/formSelect.js
tskuse/operationcode_frontend
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class FormSelect extends Component { onChange(e) { // make sure we have a valid value before propogating the on change call let isValid = true; if (this.props.validationFunc) { isValid = this.props.validationFunc(e); ...
tests/baselines/reference/tsxNotUsingApparentTypeOfSFC.js
microsoft/TypeScript
//// [tsxNotUsingApparentTypeOfSFC.tsx] /// <reference path="/.lib/react16.d.ts" /> import React from 'react'; function test<P>(wrappedProps: P) { let MySFC = function(props: P) { return <>hello</>; }; class MyComponent extends React.Component<P> { render() { return <>hello</>...
src/components/login-page.js
marcusdarmstrong/mockdraftable-web
// @flow import React from 'react'; import type { Dispatch } from 'redux'; import { connect } from 'react-redux'; import type { Action } from '../redux/actions'; import LoginForm from './login-form'; import SignUpForm from './sign-up-form'; import type { UserId } from '../types/state'; import { selectLoggedInUserId, u...
src/scenes/RepoViewScreen/index.js
msanatan/GitHubProjects
import React, { Component } from 'react'; import { WebView } from 'react-native'; import { getReadme } from '../../services/github'; export default class RepoViewScreen extends Component { static navigationOptions = ({ navigation }) => ({ title: navigation.state.params.reponame }); constructor(props) { s...
lib/ui/src/settings/SettingsFooter.js
storybooks/react-storybook
import React from 'react'; import { styled } from '@storybook/theming'; import { Link } from '@storybook/components'; const Footer = styled.div(({ theme }) => ({ display: 'flex', paddingTop: 20, marginTop: 20, borderTop: `1px solid ${theme.appBorderColor}`, fontWeight: theme.typography.weight.bold, '& > ...
app/components/Header/index.js
daicas/react-boilerplate-examp
import React from 'react'; import { FormattedMessage } from 'react-intl'; import Img from './Img'; import HeaderLink from './HeaderLink'; import Logo from 'static/images/logo.png'; import messages from './messages'; import styled from 'styled-components'; import { HeaderTab, LinkLogo, NavBnt, IconBar, Navbar...
src/svg-icons/action/thumbs-up-down.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionThumbsUpDown = (props) => ( <SvgIcon {...props}> <path d="M12 6c0-.55-.45-1-1-1H5.82l.66-3.18.02-.23c0-.31-.13-.59-.33-.8L5.38 0 .44 4.94C.17 5.21 0 5.59 0 6v6.5c0 .83.67 1.5 1.5 1.5h6.75c.62 0 1.15-.38 1...
containers/mainMenuScene.js
marxsk/zobro
import React from 'react'; import {connect} from 'react-redux'; import MainMenuScene from '../components/mainMenuScene'; const mapStateToProps = (state) => { return { configuration: state.configuration, } } class MainMenu extends React.Component { constructor(props) { super(props); } render() { ...
modules/gui/src/widget/panelWizard.js
openforis/sepal
import {activator} from 'widget/activation/activator' import {compose} from 'compose' import {withContext} from 'context' import PropTypes from 'prop-types' import React from 'react' import _ from 'lodash' class PanelWizard extends React.Component { constructor(props) { super(props) this.state = {i...
src/containers/HomePage/HomePage.js
c-hernandez/codex-5e
import React from 'react'; import SearchBar from 'components/SearchBar'; import VisibleSpellList from 'containers/VisibleSpellList'; const HomePage = () => ( <div> <SearchBar /> <VisibleSpellList /> </div> ); export default HomePage;
app/routes/Search/SearchHeader.js
arnef/ligatool-hamburg
import React from 'react'; import { View, Platform } from 'react-native'; import { Header } from 'react-navigation'; import { connect } from 'react-redux'; import { colors } from '../../config/styles'; import Routes from '../../config/routes'; import { getColor } from '../../redux/modules/user'; class SearchHeader ext...
plugins/Wallet/js/components/wallet.js
NebulousLabs/Sia-UI
import PropTypes from 'prop-types' import React from 'react' import TransactionList from '../containers/transactionlist.js' import SendButton from './sendbutton.js' import SendPrompt from '../containers/sendprompt.js' import ReceiveButton from '../containers/receivebutton.js' import ReceivePrompt from '../containers/re...
imports/components/TabTopList.js
naustudio/nau-jukebox
/* © 2017 * @author Tu Nguyen */ import React, { Component } from 'react'; import { withTracker } from 'meteor/react-meteor-data'; import { startOfWeek, endOfWeek, format } from 'date-fns'; import PropTypes from 'prop-types'; import { Container } from 'flux/utils'; import { Songs, Users } from '../collections'; impo...
app/ecoModules/forms/inline-radio.js
aoshmyanskaya/tko
import React, { Component } from 'react'; import PropTypes from 'prop-types'; class InlineRadio extends Component { render() { return ( <label className={`radio-inline radio-styled ${this.props.classes}`}> <input type="radio" name={this.props.name} value={this.props.va...
modules/RoutingContext.js
skevy/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
src/components/simulator.js
LuisLoureiro/placard-wrapper
import React from 'react' import style from './simulator.module.styl' class Simulator extends React.Component { constructor (props) { super(props) this.state = { minimized: false } this.handleChangedMinimized = this.handleChangedMinimized.bind(this) } handleChangedMinimized () { this.setState({...
src/components/Footer/Footer.js
daixianceng/react-app-example
import React, { Component } from 'react'; import { Container, Row, Col, Nav, NavItem, NavLink } from 'reactstrap'; import './Footer.css'; class Footer extends Component { constructor(props) { super(props); this.state = { }; } render() { return ( <footer> <Container> <Ro...
examples/huge-apps/routes/Course/routes/Assignments/routes/Assignment/components/Assignment.js
cojennin/react-router
import React from 'react'; class Assignment extends React.Component { render () { var { courseId, assignmentId } = this.props.params; var { title, body } = COURSES[courseId].assignments[assignmentId] return ( <div> <h4>{title}</h4> <p>{body}</p> </div> ); } } export d...
app/components/Signin.js
hot-spot-fire-rescue/hot-spot-fire-rescue
import React from 'react' import {PanelGroup, Panel} from 'react-bootstrap' import {browserHistory} from 'react-router' import firebase from 'APP/fire' const auth = firebase.auth() import PlainLogin from 'APP/app/components/PlainLogin' import Login from './Login' export const name = user => { if (!user) return 'No...
lib/DraggableCore.js
mzabriskie/react-draggable
// @flow import React from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import {matchesSelectorAndParentsTo, addEvent, removeEvent, addUserSelectStyles, getTouchIdentifier, removeUserSelectStyles, styleHacks} from './utils/domFns'; import {createCoreData, getControlPosition, sn...
actor-apps/app-web/src/app/components/Main.react.js
Johnnywang1221/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from 'actions/VisibilityActionCreators'; import ActivitySection from 'components/ActivitySection.react'; import SidebarSection from 'components/SidebarSection.react'; import ToolbarSection from 'components/Toolba...
example/index.ios.js
moschan/react-native-progress-bar-classic
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, TouchableOpacity, View } from 'react-native'; // import PBC from './index.js' import PBC from 'react-native-progress-bar-classic' class P...
src/components/Heading/Heading.js
jmlweb/paskman
import React from 'react'; import PT from 'prop-types'; import styled from 'styled-components'; import styledMap from 'styled-map'; import colors from '../../styles/colors'; import spacing from '../../styles/spacing'; const StyledHeadingMaster = styled.h1` color: ${props => colors[props.colorScheme]}; font-size: $...
app/javascript/mastodon/components/status_action_bar.js
hugogameiro/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
server/sonar-web/src/main/js/apps/projects/components/ProjectsList.js
lbndev/sonarqube
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
docs-ui/components/linkWithConfirmation.stories.js
looker/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import LinkWithConfirmation from 'app/components/linkWithConfirmation'; storiesOf('Links/LinkWithConfirmation', module).add( 'default', withInfo('...
src/pages/Header.js
saschaishikawa/planetary-response-network
import React from 'react'; import { Link } from 'react-router'; export default class Header extends React.Component { render() { return ( <nav className="navbar navbar-default navbar-static-top"> <div className="container"> <div className="navbar-header"> <button type="button"...