path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/dumb/editor/EditorModal.js
jeckhummer/wf-constructor
import React from 'react'; import {Modal, Icon, Menu} from "semantic-ui-react"; import {Floated} from "../common/Floated"; import {Uppercase} from "../common/Uppercase"; import {SaveButton} from "../buttons/SaveButton"; import {CancelButton} from "../buttons/CancelButton"; export const EditorModal = ({ isActive, ...
components/ViewPage/ViewPage.js
yodairish/pres-view
'use strict'; import React from 'react'; import Pres from './Pres/Pres.js'; import SideBar from './SideBar/SideBar.js'; import PresViewStore from '../../js/stores/PresViewStore.js'; export default React.createClass({ /** * Set default state */ getInitialState() { return { fullscreen: PresViewStore...
es-react/src/root.js
majunbao/project
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <h1>Hello, world!</h1>, document.getElementById('root') );
src/components/SignupIndex.js
jlmonroy13/brainstutor-client
import React from 'react'; import { Link } from 'react-router'; const SignupIndex = () => { return ( <div className="section__auth section__auth--index"> <img className="full-width section__auth-image" src={require('../assets/images/hero-authentication.jpg')} /> <div className="section__auth-containe...
src/fe/components/UserEdit.js
searsaw/react-router-demo
import React from 'react'; import { get, patch } from 'axios'; import { Helmet } from 'react-helmet'; import UserForm from './UserForm'; import Page from './Page'; class UserEdit extends React.Component { constructor(props) { super(props); this.state = { user: { name: '' } }; this.handleSubmit = this.h...
Realization/frontend/czechidm-core/src/components/advanced/WorkflowTaskInfo/WorkflowTaskInfo.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { connect } from 'react-redux'; import { Link } from 'react-router-dom'; // import * as Basic from '../../basic'; import { WorkflowTaskInstanceManager } from '../../../redux'; import UuidInfo from '../UuidInfo/Uui...
src/js/components/icons/base/SocialVine.js
kylebyerly-hp/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/utils/validation/selectField.js
tedyuen/react-redux-form-v6-example
import React from 'react'; const selectField = ({ input, label, selects, meta: { touched, error, warning } }) => ( <div className={touched && error ? 'has-error form-group':'form-group'}> <div className="input-group"> <span className="input-group-addon">{label}</span> <select {...input} classN...
src/main/js/admin/modules/category/Categories.js
chaokunyang/amanda
import React, { Component } from 'react'; import Axios from 'axios' import moment from 'moment'; import Navbar from './NavBar'; import CategoryEdit from './CategoryEdit'; import CreateCategory from './CreateCategory'; import './Category.css' class Categories extends Component { constructor(props) { super(...
client/src/app/routes/settings/containers/Teachers/QualificationForm.js
zraees/sms-project
import React from 'react' import { reset } from 'redux-form' import axios from 'axios' import classNames from 'classnames' import { Field, reduxForm } from 'redux-form' import WidgetGrid from '../../../../components/widgets/WidgetGrid' import Datatable from '../../../../components/tables/Datatable' // import RFDateP...
app/javascript/mastodon/features/public_timeline/index.js
palon7/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader from '../../components/column_header'; import { refreshPublicTimeline, exp...
assets/javascripts/kitten/components/structure/cards/summary-card/styles.js
KissKissBankBank/kitten
import React from 'react' import styled, { css } from 'styled-components' import TYPOGRAPHY from '../../../../constants/typography-config' import { pxToRem } from '../../../../helpers/utils/typography' import { mq } from '../../../../constants/screen-config' /* **************************************** Type-specific...
example/examples/MarkerTypes.js
azt3k/react-native-maps
import React from 'react'; import { StyleSheet, View, Text, Dimensions, } from 'react-native'; import MapView from 'react-native-maps'; import flagBlueImg from './assets/flag-blue.png'; import flagPinkImg from './assets/flag-pink.png'; const { width, height } = Dimensions.get('window'); const ASPECT_RATIO = w...
src/scenes/home/challenge/challenge.js
hollomancer/operationcode_frontend
import React, { Component } from 'react'; import axios from 'axios'; import Section from 'shared/components/section/section'; import namesFile from 'operationcode_challenge/names.txt'; import ForkButton from '../../../images/GitHubForkButton.png'; import ProposeButton from '../../../images/GitHubProposeButton.png'; imp...
docs/src/app/components/pages/components/List/ExampleFolders.js
lawrence-yu/material-ui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import {List, ListItem} from 'material-ui/List'; import ActionInfo from 'material-ui/svg-icons/action/info'; import Divider from 'material-ui/Divider'; import Subheader from 'material-ui/Subheader'; import Avatar from 'material-ui/Avatar...
src/components/Footer/Footer.js
takahashik/todo-app
/** * 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 withStyles from 'isom...
src/renderer/components/MapEditor/ExportButton.js
digidem/ecuador-map-editor
import React from 'react' import IconButton from '@material-ui/core/IconButton' import Tooltip from '@material-ui/core/Tooltip' import ExportIcon from '@material-ui/icons/MoreVert' import { defineMessages, useIntl, FormattedMessage } from 'react-intl' import Menu from '@material-ui/core/Menu' import MenuItem from '@mat...
src/components/pages/PlayLists/PlayList.js
ArtyomVolkov/music-search
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; // M-UI components import { Card, CardHeader, CardText } from 'material-ui/Card'; import { Avatar, RaisedButton} from 'material-ui'; // Components import TrackList from '../../custom-components/TrackList/TrackL...
milestones/05-webpack-intro-css/After/src/frame.js
jaketrent/react-drift
import React from 'react' export default function Frame({ children }) { return <div>{children}</div> }
src/components/atoms/logo.js
jameslutley/jameslutley.com
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import styled from 'react-emotion' import t from 'tachyons-js' const LogoLink = styled(Link)` ${t.dib}; ${t.link}; ${t.fw7}; padding-top: ${props => props.theme.spacingMediumLarge}; padding-right: ${props => props.the...
react-fundamentals-es6/lessons/08-lifecycle-mounting/App.js
wandarkaf/React-Bible
// https://jsbin.com/fonore/edit?js,console,output // problematic in JsBin import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { constructor(){ super(); this.state = { val: 0 }; this.update = this.update.bind(this); } update(){ this.setState({val: this.s...
src/compoments/PurpleContent.js
purple-net/react-native-purple
import React, { Component } from 'react'; import { StyleSheet, Text, View, ScrollView, PixelRatio, Dimensions, TextInput, TouchableHighlight, TouchableOpacity, Image, } from 'react-native'; import ActionButton from 'react-native-action-button'; import Button from 'react-native-button'; import Icon f...
src/svg-icons/maps/restaurant.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsRestaurant = (props) => ( <SvgIcon {...props}> <path d="M11 9H9V2H7v7H5V2H3v7c0 2.12 1.66 3.84 3.75 3.97V22h2.5v-9.03C11.34 12.84 13 11.12 13 9V2h-2v7zm5-3v8h2.5v8H21V2c-2.76 0-5 2.24-5 4z"/> </SvgIcon> )...
src/index.js
sunplot/sunplot
import React from 'react' import ReactDOM from 'react-dom' import {BrowserRouter as Router, Route, Switch} from 'react-router-dom' import { Provider } from 'react-redux' import injectTapEventPlugin from 'react-tap-event-plugin' import store from './store' import App from './containers/App'; import SolrList from './cont...
participant/Notice.js
xeejp/ultimatum-game
import React from 'react' import Dialog from 'material-ui/Dialog' import RaisedButton from 'material-ui/RaisedButton'; import { ReadJSON } from '../util/ReadJSON' const Notice = ({ open, message, onRequestClose }) => ( <Dialog actions={[( <RaisedButton label={ReadJSON().static_text["close"]} ...
components/main.js
papettoTV/isyo
import React, { Component } from 'react'; import FbLogin from './FacebookLogin'; import { Link } from 'react-router' import Isyo from '../common/models/isyo'; export default class Main extends Component { constructor(props) { super(props); this.state = { isLoading : true, userId : null, isMounted: fa...
src/app/components/Parallax/index.js
nhardy/web-scaffold
// @flow import React, { Component } from 'react'; import type { Node } from 'react'; import cx from 'classnames'; import { noop } from 'lodash-es'; import throttle from 'app/lib/throttle'; import { isScrolledIntoView } from 'app/lib/dom'; import styles from './styles.styl'; type Props = { className: ?string, c...
test/regressions/tests/RadioGroup/RadioGroupWithLabelError.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import { FormLabel, FormControl, FormControlLabel } from 'material-ui/Form'; import Radio, { RadioGroup } from 'material-ui/Radio'; export default function RadioGroupWithLabelError() { return ( <FormControl style={{ width: 100 }} required error> <FormLabel>Location</For...
admin/client/App/components/Footer/index.js
giovanniRodighiero/cms
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { css } from 'glamor'; import { Container } from '../../elemental'; import theme from '../../../theme'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { app...
src/js/components/icons/base/BrandHpeStack.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...
react-flux-mui/js/material-ui/src/svg-icons/device/usb.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceUsb = (props) => ( <SvgIcon {...props}> <path d="M15 7v4h1v2h-3V5h2l-3-4-3 4h2v8H8v-2.07c.7-.37 1.2-1.08 1.2-1.93 0-1.21-.99-2.2-2.2-2.2-1.21 0-2.2.99-2.2 2.2 0 .85.5 1.56 1.2 1.93V13c0 1.11.89 2 2 2h3v3....
src/components/Dropdown/index.js
antoinejaussoin/mobx-fx
import React from 'react'; import { observer } from 'mobx-react'; import { Dropdown as BaseDropdown } from 'semantic-ui-react'; const Dropdown = ({ placeholder, size, compact, options, value, onChange }) => ( <BaseDropdown placeholder={placeholder} compact={compact} onChange={(e, data) => { onChang...
actor-apps/app-web/src/app/utils/require-auth.js
suxinde2009/actor-platform
import React from 'react'; import LoginStore from 'stores/LoginStore'; export default (Component) => { return class Authenticated extends React.Component { static willTransitionTo(transition) { if (!LoginStore.isLoggedIn()) { transition.redirect('/auth', {}, {'nextPath': transition.path}); }...
modules/Route.js
aaron-goshine/react-router
import React from 'react' import invariant from 'invariant' import { createRouteFromReactElement } from './RouteUtils' import { component, components } from './InternalPropTypes' const { string, func } = React.PropTypes /** * A <Route> is used to declare which components are rendered to the * page when the URL matc...
node_modules/react-bootstrap/es/FormControlFeedback.js
caughtclean/but-thats-wrong-blog
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleRemoveNoResultsMessage.js
shengnian/shengnian-ui-react
import React from 'react' import { Dropdown } from 'shengnian-ui-react' const DropdownExampleRemoveNoResultsMessage = () => ( <Dropdown options={[]} search selection placeholder='No message...' noResultsMessage={null} /> ) export default DropdownExampleRemoveNoResultsMessage
app/jsx/webzip_export/components/ExportList.js
djbender/canvas-lms
/* * Copyright (C) 2016 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/index.js
josh-mallett/NICU-Moms-of-Louisiana-Website
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './App'; import './css/index.css'; var container = document.querySelector('.container'); ReactDOM.render( <Main />, container );
actor-apps/app-web/src/app/components/modals/create-group/ContactItem.react.js
Havi4/actor-platform
import React from 'react'; import AvatarItem from 'components/common/AvatarItem.react'; class ContactItem extends React.Component { static propTypes = { contact: React.PropTypes.object, onToggle: React.PropTypes.func } constructor(props) { super(props); this.onToggle = this.onToggle.bind(this)...
client/src/pages/Login.js
ccwukong/lfcommerce-react
import React, { Component } from 'react'; import { Button } from 'reactstrap'; import { FormattedMessage } from 'react-intl'; import LoginForm from './login/LoginForm'; import ResetForm from './login/ResetForm'; import Footer from '../components/Footer'; class Login extends Component { constructor(props) { super...
packages/reactor-kitchensink/src/examples/Charts/Line/BasicMarkers/BasicMarkers.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container } from '@extjs/ext-react'; import { Cartesian } from '@extjs/ext-react-charts'; import ChartToolbar from '../../ChartToolbar'; import generateData from './generateData'; export default class BasicMarkers extends Component { constructor() { super...
node_modules/@material-ui/core/esm/Hidden/HiddenCss.js
pcclarke/civ-techs
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; import _defineProperty from "@babel/runtime/helpers/defineProperty"; import React from 'react'; import PropTypes from 'prop-types'; import warning from 'warning'; import { keys as breakpointKeys } from '../styles/createBreakpoints'; ...
src/templates/note.js
rachsmithcodes/rachsmith.com
import React from 'react'; import { graphql, Link } from 'gatsby'; import { MDXRenderer } from 'gatsby-plugin-mdx'; import Layout from '../components/Layout'; import TalkyardCommentsIframe from '@debiki/gatsby-plugin-talkyard'; import Seo from '../components/Seo'; import NoteListItem from '../components/NoteListItem'; ...
django/webcode/webcode/frontend/node_modules/react-bootstrap/es/Thumbnail.js
OpenKGB/webcode
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/app/components/pages/get-started/Usage.js
rscnt/material-ui
import React from 'react'; import Title from 'react-title-component'; import MarkdownElement from '../../MarkdownElement'; import usageText from './usage.md'; const Usage = () => ( <div> <Title render={(previousTitle) => `Usage - ${previousTitle}`} /> <MarkdownElement text={usageText} /> </div> ); export...
example/src/Demo.js
inuscript/redux-candy
import React, { Component } from 'react'; import Source from './Source' import styled from 'styled-components' const Flex = styled.div` display: flex; box-sizing: border-box; width: 100vw; ` const Child = styled.div` flex: 1; width: 40vw; /* TODO */ border-radius: 2px; border: solid #ccc 1px; margin: 1...
src/svg-icons/editor/format-color-reset.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorReset = (props) => ( <SvgIcon {...props}> <path d="M18 14c0-4-6-10.8-6-10.8s-1.33 1.51-2.73 3.52l8.59 8.59c.09-.42.14-.86.14-1.31zm-.88 3.12L12.5 12.5 5.27 5.27 4 6.55l3.32 3.32C6.55 11.32 6 12...
httpdocs/theme/react/hooks-app/pling-section/entry-pling-section.js
KDE/ocs-webserver
import React from 'react'; import ReactDOM from 'react-dom'; import PlingSection from './components/PlingSection'; ReactDOM.render(<PlingSection />, document.getElementById('pling-section-content'));
src/components/Tags.js
thundernixon/blog2017
import React from 'react'; import Link from 'gatsby-link'; export default function Tags({ list = [] }) { return ( <ul className="tag-list"> {list.map(tag => <li key={tag}> <Link className="tag" to={`/tags/${tag}`}> {tag} </Link> </li> )} </ul> ); ...
lib/codemod/src/transforms/__testfixtures__/csf-hoist-story-annotations/basic.input.js
kadirahq/react-storybook
import React from 'react'; import Button from './Button'; import { action } from '@storybook/addon-actions'; export default { title: 'Button', }; export const story1 = () => <Button label="Story 1" />; export const story2 = () => <Button label="Story 2" onClick={action('click')} />; story2.story = { name: 'second ...
hw7/frontend/src/components/auth/register.js
yusong-shen/comp531-web-development
/** * Created by yusong on 10/20/16. */ import React from 'react' import { connect } from 'react-redux' import { Field, reduxForm } from 'redux-form'; import * as AuthActions from '../../actions/authActions' const validate = values => { const errors = {} if (!values.username) { errors.username = "...
src/components/Dashboard/CountUpCard.js
kennylbj/kiwi-blog
import React from 'react' import { Icon, Card } from 'antd' import CountUp from 'react-countup' const CountUpCard = ({ icon, title, number, color, handleClick }) => { return ( <Card style={{padding: '32px', marginBottom: '24px', cursor: 'pointer'}} bordered={false} bodyStyle={{ padding: 0 }} onClick={handle...
src/parser/rogue/outlaw/modules/core/Energy.js
fyruna/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import resourceSuggest from 'parser/shared/modules/resourcetracker/ResourceSuggest'; import EnergyTracker from '../../../shared/resources/EnergyTracker'; class Energy ...
demo/src/svg_group.js
RinconStrategies/react-web-animation
import React, { Component } from 'react'; import { AnimationGroup, Animatable } from 'react-web-animation'; export default class SvgGroup extends Component { getKeyFrames() { return [ { transform: 'scale(.1) rotate(0deg)', opacity: 0.1, offset: 0 }, { transform: 'scale(1.3) rotate(90deg)', opacity: 1...
pootle/static/js/admin/components/User/UserAdd.js
iafan/zing
/* * Copyright (C) Pootle contributors. * * This file is a part of the Pootle project. It is distributed under the GPL3 * or later license. See the LICENSE file for a copy of the license and the * AUTHORS file for copyright and authorship information. */ import React from 'react'; import UserForm from './UserFo...
src/svg-icons/image/crop-square.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropSquare = (props) => ( <SvgIcon {...props}> <path d="M18 4H6c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 14H6V6h12v12z"/> </SvgIcon> ); ImageCropSquare = pure(ImageCropSquar...
ui/src/js/password/forgotPassword/SendRequest.js
Dica-Developer/weplantaforest
import axios from 'axios'; import counterpart from 'counterpart'; import React, { Component } from 'react'; import IconButton from '../../common/components/IconButton'; import InputText from '../../common/components/InputText'; import Notification from '../../common/components/Notification'; export default class SendR...
client/views/setupWizard/Step.js
Sing-Li/Rocket.Chat
import React from 'react'; import './Step.css'; export const Step = ({ active, working = false, ...props }) => <form data-qa={active ? 'active-step' : undefined} className={[ 'SetupWizard__Step', active && 'SetupWizard__Step--active', working && 'SetupWizard__Step--working', ].filter(Boolean).join(' '...
examples/js/manipulation/export-csv-column-table.js
prajapati-parth/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 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; p...
src/components/Accordion/Accordion.Skeleton.js
carbon-design-system/carbon-components-react
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import SkeletonText from '../SkeletonText'; import ChevronRight16 from '@carbo...
node_modules/react-router/es/Route.js
lousanna/sinatrademo
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _classCallCheck(instance, Constructor) { if (!(insta...
app/coffeescripts/ember/screenreader_gradebook/controllers/screenreader_gradebook_controller.js
djbender/canvas-lms
// // Copyright (C) 2013 - present Instructure, Inc. // // This file is part of Canvas. // // Canvas 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, version 3 of the License. // // Canvas is distribut...
src/components/Image/index.js
d-amit/in-di-go
import React from 'react'; export default class Image extends React.Component { render() { let {mode, src, height, width, style, ...props} = this.props; let modes = { 'fill': 'cover', 'fit': 'contain' }; let size = modes[mode] || 'contain'; let defaults = { height: height ||...
server/server.js
GTDev87/stylizer
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
app/javascript/mastodon/features/ui/components/upload_area.js
Toootim/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from 'react-motion/lib/Motion'; import spring from 'react-motion/lib/spring'; import { FormattedMessage } from 'react-intl'; export default class UploadArea extends React.PureComponent { static propTypes = { active: PropTypes.bool, ...
actor-apps/app-web/src/app/components/activity/GroupProfile.react.js
cnbin/actor-platform
import _ from 'lodash'; import React from 'react'; import ReactMixin from 'react-mixin'; import ReactZeroClipboard from 'react-zeroclipboard'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, Snackbar } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import classnames from '...
src/js/pages/EditThreadPage.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import * as ThreadActionCreators from '../actions/ThreadActionCreators'; import AuthenticatedComponent from '../components/AuthenticatedComponent'; import translate from '../i18n/Translate'; import connectToStores from '../utils/connectToStor...
src/index.js
SpencerCDixon/BleedingEdge
import React from 'react'; import App from './App'; import TodoContainer from './containers/TodoContainer'; import ReactDOM from 'react-dom'; import * as reducers from './reducers/index'; // React Router import { Route } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory'; // Redu...
src/TableEditColumn.js
opensourcegeek/react-bootstrap-table
import React from 'react'; import Const from './Const'; import Editor from './Editor' import Notifier from './Notification.js'; import classSet from 'classnames'; class TableEditColumn extends React.Component{ constructor(props){ super(props); this.timeouteClear=0; this.state={ ...
index.android.js
leechuanjun/TLRNProjectTemplate
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class TLRNProjectTemplate extends Component { render() { return ( <View style={styles.container}> ...
src/components/admin/PendingRegistrations.js
Atypon-OpenSource/wayf-admin
import React from 'react'; import PropTypes from 'prop-types'; import moment from 'moment'; import { createRefetchContainer, graphql } from 'react-relay'; import CreatePublisherModal from './CreatePublisherModal' import DenyPublisherRegistrationModal from './DenyPublisherRegistrationModal' import { Grid, Table, ...
src/svg-icons/maps/directions-boat.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBoat = (props) => ( <SvgIcon {...props}> <path d="M20 21c-1.39 0-2.78-.47-4-1.32-2.44 1.71-5.56 1.71-8 0C6.78 20.53 5.39 21 4 21H2v2h2c1.38 0 2.74-.35 4-.99 2.52 1.29 5.48 1.29 8 0 1.26.65 2.62.99...
react/features/base/toolbox/components/AbstractButton.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { NOTIFY_CLICK_MODE } from '../../../toolbox/constants'; import { combineStyles } from '../../styles'; import type { Styles } from './AbstractToolboxItem'; import ToolboxItem from './ToolboxItem'; export type Props = {| /** * Function to be called ...
src/js/components/Camera.js
ngokevin/audioworld
import {Entity} from 'aframe-react'; import React from 'react'; export default props => ( <Entity position="0 1.8 0"> <Entity camera look-controls {...props}/> </Entity> );
app/src/components/NotFound/index.js
AlexandreBourdeaudhui/abourdeaudhui.fr
/* * Package Import */ import React from 'react'; /* * Local Import */ /* * Code */ const NotFound = () => ( <div id="notfound"> <h2 style={{ fontSize: '5em' }}> 404 | Not Found </h2> <p style={{ lineHeight: '1.5', textAlign: 'center' }}> Oh non, qui s'est trompé de page? <br /> ...
js/components/ViewContainer.js
wraithyz/reactNative-menu
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; class ViewContainer extends Component { render() { return { <View style={styles.viewContainer}> {this.props.children} </View> } } } const styles = React.StyleSheet.cre...
RN/RNFluxDemo/DetailExample.js
puyanLiu/LPYFramework
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; import { Router, Scene, Reducer, Modal, Switch, Actions, ActionConst } from 'react-native-router-flux'; import Bu...
examples/with-noscript/pages/index.js
BlancheXu/test
import React from 'react' import Noscript from '../components/Noscript' export default function IndexPage () { return ( <> <h1>noscript</h1> <p>Disable JavaScript to see it in action:</p> <hr /> <Noscript>Noscript is enabled!</Noscript> </> ) }
app/react-icons/fa/facebook.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaFacebook extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m29.4 0.3v5.9h-3.5q-1.9 0-2.6 0.8t-0.7 2.4v4.2h6.6l-0.9 6.6h-5.7v16.9h-6.8v...
blog/src/components/app.js
simplanapp/course
import React from 'react'; import { Component } from 'react'; import SearchCurses from './search_bar'; import CurseItem from './curse_item' export default class App extends Component { render() { //console.log(this); return ( <div > {this.props.children} {/* <div> <SearchCurs...
src/index.js
rikukissa/webpack-project-template
'use strict'; import React from 'react'; import App from 'components/App'; React.render(<App />, document.body);
src/yearpicker/YearPickerTop.js
buildo/react-semantic-datepicker
import React from 'react'; import t from 'tcomb'; import { props } from 'tcomb-react'; import { pure, skinnable } from '../utils'; import { MomentDate } from '../utils/model'; import PickerTop from '../PickerTop'; @pure @skinnable() @props({ visibleDate: MomentDate, changeYear: t.Function, prevIconClassName: t.S...
src/components/Feedback/Feedback.js
rameshrr/dicomviewer
/** * 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 withStyles from 'isom...
src/docs/examples/ProgressBar/Example70Percent.js
noumanberlas/prime-react
import React from 'react'; import ProgressBar from 'prime-react/ProgressBar'; /** 70% progress */ export default function Example70Percent() { return <ProgressBar percent={70} width={150} /> }
template/src/routes/count/components/Increase.js
likun7981/react-template-router
import React from 'react' import { Button } from 'antd' export const Increase = props => { return ( <div> <h2>reduxStateCount: {props.increaseResult}</h2> <h3>reactStateCount: {props.count}</h3> <Button onClick={props.addState}>addStateCount</Button> <Button className="btn btn-default" on...
src/js/Components/Score/ScoreBoard.js
gabsprates/facomp-quiz
import React, { Component } from 'react'; import Team from './Team'; export default function ScoreBoard(props) { return ( <div className='scoreboard'> <h1 className="title h1 has-text-centered">FACOMP QUIZ</h1> <Team score={ props.teamA } team='t1' /> <Team score={ props.teamB } team='t2' /> ...
src/widget/DetailCell.js
Cowboy1995/JZWXZ
/** * Copyright (c) 2017-present, Liu Jinyong * All rights reserved. * * https://github.com/huanxsd/MeiTuan * @flow */ //import liraries import React, { Component } from 'react'; import { View, Text, StyleSheet, Image, TouchableOpacity } from 'react-native'; import { Heading1, Heading2, Paragraph } from './Tex...
packages/react-scripts/template/src/App.js
timlogemann/create-react-app
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/...
react/LightbulbIcon/LightbulbIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './LightbulbIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function LightbulbIcon(props) { return <Icon markup={svgMarkup} {...props} />; } LightbulbIcon.displayName = 'LightbulbIcon';
src/views/Part/Part.js
asithagihan03/alankara-hapi
import React, { Component } from 'react'; class Part extends Component { render() { return ( <div className="animated fadeIn"> Hello Part </div> ) } } export default Part;
src/parser/hunter/beastmastery/modules/checklist/Component.js
FaideWW/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/Checklist2'; import Rule from 'parser/shared/modules/features/Checklist2/Rule'; import Requirement from 'parser/shared/module...
src/app/components/annotations/Annotation.js
meedan/check-web
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedHTMLMessage, injectIntl, intlShape } from 'react-intl'; import Relay from 'react-relay/classic'; import RCTooltip from 'rc-tooltip'; import styled from 'styled-components'; import { stripUnit } from 'polish...
app/components/events/event.js
robhogfeldt-fron15/ReactiveDogs
import React from 'react'; import moment from 'moment'; let timeStyle = { time: '', style: '' }; let divStyle = {color: 'green', fontWeight: 'bold', fontSize: '90px', clear: 'both'}; let divStyle2 = {color: '#337ab7', textAlign: 'justify', clear: 'both'}; let divStyle3 = {color: '#FA6900', textAlign: 'justify'...
packages/@lyra/components/src/edititem/StoryMover.js
VegaPublish/vega-studio
import PropTypes from 'prop-types' import React from 'react' import Draggable from 'react-draggable' export default class Mover extends React.Component { static propTypes = { children: PropTypes.node } constructor(props, args) { super(props, args) this.state = { x: 50, y: 50 } } ...
ui/src/main/js/components/UpdatePreview.js
crashlytics/aurora
import React from 'react'; import { Link } from 'react-router-dom'; import PanelGroup, { Container } from 'components/Layout'; import { RelativeTime } from 'components/Time'; import { getClassForUpdateStatus, updateStats } from 'utils/Update'; export default function UpdatePreview({ update }) { const stats = updat...
src/main/app/scripts/views/Home.js
ondrejhudek/pinboard
import React from 'react' import Login from '../components/auth/Login' class HomeView extends React.Component { render() { return ( <div className="view-homepage"> <Login /> </div> ) } } export default HomeView
src/components/Widgets/ProgressPie.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import { PieChart, XAxis, YAxis, CartesianGrid, Pie, Cell, Tooltip, Legend, ResponsiveContainer, Label } from 'recharts'; class ProgressPie extends Component { constructor(props) { super(props); this.state = { ...
src/client/home/index.react.js
jirastom/react-learnig
import Component from '../components/component.react'; import DocumentTitle from 'react-document-title'; import React from 'react'; import {FormattedHTMLMessage} from 'react-intl'; import {Link} from 'react-router'; import Categories from '../categories/categories.react'; export default class Index extends Component {...
src/icons/Forward30Icon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class Forward30Icon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M19.1 27h.9c.4 0 .7-.1 1-.3s.3-.5.3-.9c0-.2 0-.3-.1-.4s-.1-.3-.2-.4-.2-.2-.4-.2-.3-.1-.5-.1-.3 0-.4.1-.3...
components/Icon/Icon.js
chrisspang/loggins
import React, { Component } from 'react'; import invariant from 'invariant'; import styles from './Icon.css'; import icons from './icons'; export default class Icon extends Component { constructor(props) { super(props); invariant( icons[props.name], `Icon(): No icon exists for "${props.name}"` ...