path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
rn-14-tabsWithTabNavigator/tabs/FirstScreen.js
KyoungRan/react-native-ex-NDH
import React, { Component } from 'react'; import { Text, View, Button, Image } from 'react-native'; export default class FirstScreen extends Component { static navigationOptions = { tabBarLabel: 'Home', tabBarIcon: ({ tintColor }) => ( <Image source={require('../images/icon-home.png')} ...
node_modules/lite-server/node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
idreamind/_k-v.xyz
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/icons/IosMicOff.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosMicOff extends React.Component { render() { if(this.props.bare) { return <g> <g> <rect x="264.2" y="1.1" transform="matrix(0.8629 -0.5053 0.5053 0.8629 -92.0515 172.66)" width="16" height="509.8"></rect> ...
node_modules/react-router/es6/Link.js
superKaigon/TheCave
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 _objectWithoutProperties(obj, keys) { var target = {...
node_modules/recharts/demo/component/ComposedChart.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import { ResponsiveContainer, ComposedChart, Line, Bar, Area, XAxis, YAxis, ReferenceLine, ReferenceDot, Tooltip, Legend, CartesianGrid, Brush } from 'recharts'; const data = [ { name: 'Page A', uv: 590, pv: 800, amt: 1400 }, { name: 'Page B', uv: 868, pv: 967, amt: 1506 }, { name: '...
CompositeUi/src/views/layout/ContentLayout.js
kreta/kreta
/* * This file is part of the Kreta package. * * (c) Beñat Espiña <benatespina@gmail.com> * (c) Gorka Laucirica <gorka.lauzirika@gmail.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ import './../../scss/layout/_content.scss...
js/app/signup/components.js
monetario/web
'use strict'; import React from 'react'; import {Router, Route, Link, History} from 'react-router' import Formsy from 'formsy-react'; import Actions from './actions'; import InputField from '../../components/input_field'; var SignUpForm = React.createClass({ mixins: [History], getInitialState: function () { ...
app/jsx/gradebook/default_gradebook/components/SubmissionCommentListItem.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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...
modules/Navigation.js
tmbtech/react-router
import React from 'react'; var { object } = React.PropTypes; /** * A mixin for components that modify the URL. * * Example: * * import { Navigation } from 'react-router'; * * var MyLink = React.createClass({ * mixins: [ Navigation ], * handleClick(event) { * event.preventDefault(); * ...
blueocean-material-icons/src/js/components/svg-icons/social/mood.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialMood = (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 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm3.5-9c.83 0 1.5-.67 1.5-1.5S16.33 8 15.5 8 ...
week3/react/express-react/views/bootstrap/LoginForm.js
jfhinchcliffe/Coderfactory_Term3_Notes
import React from 'react' export default function Form({ label = 'label' }){ return ( <div className="form-group"> <label for={label}>{label} form: </label> <input type="text" class="form-control" id="`{label}`" /> </div> ) }
src/components/Footer/Footer.js
Nikhil22/trooper
/** * 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 withStyles from 'isomorp...
src/components/VmDialog/index.js
mareklibra/userportal
import React from 'react' import PropTypes from 'prop-types' import Immutable from 'immutable' import { connect } from 'react-redux' import { Link } from 'react-router-dom' import NavigationPrompt from 'react-router-navigation-prompt' import Switch from 'react-bootstrap-switch' import { generateUnique, templateN...
docs/app/Examples/collections/Table/Variations/TableExampleColors.js
koenvg/Semantic-UI-React
import React from 'react' import { Table } from 'semantic-ui-react' const colors = [ 'red', 'orange', 'yellow', 'olive', 'green', 'teal', 'blue', 'violet', 'purple', 'pink', 'brown', 'grey', 'black', ] const TableExampleColors = () => ( <div> {colors.map(color => ( <Table color={color} key={color}> ...
src/components/calender.js
thbgh/antdPro
import React from 'react'; import { Calendar, Alert } from 'antd'; import moment from 'moment'; export default class Ccalendar extends React.Component { state = { value: moment('2017-01-25'), selectedValue: moment('2017-01-25'), } onSelect = (value) => { this.setState({ value, selectedVal...
src/routes/DentalHistory/components/DentalHistory.js
dannyrdalton/example_signup_flow
import React from 'react' import { Field } from 'redux-form' import DropdownList from 'react-widgets/lib/DropdownList' import { Link } from 'react-router' import { FORM_FIELDS } from '../config/dental_history_config' export const DentalHistory = (props) => ( <div className="dental-history"> <h2>Dental History</h...
src/components/mail/mailBuckets.js
EncontrAR/backoffice
import React from 'react'; const buckets = [ 'Inbox', 'Sent', 'Drafts', 'Trash', 'Important', 'spam', 'Starred', ]; function getUnread(mails) { const unread = {}; mails.forEach(mail => { if (!unread[mail.bucket]) { unread[mail.bucket] = 0; } if (!mail.read) { unread[mail.buck...
src/svg-icons/communication/stay-current-landscape.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayCurrentLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
src/components/Effect.js
chatch/stellarexplorer
import React from 'react' import propTypes from 'prop-types' import {FormattedMessage} from 'react-intl' import truncate from 'lodash/truncate' import Offer from './operations/Offer' import AccountLink from './shared/AccountLink' import Asset from './shared/Asset' import FormattedAmount from './shared/FormattedAmount'...
src/List/ItemEndDetail.js
gutenye/react-mc
// @flow import React from 'react' import cx from 'classnames' import type { PropsC } from '../types' class EndDetail extends React.Component { props: PropsC static defaultProps = { component: 'a', } static displayName = 'List.Item.EndDetail' render() { const { component: Component, className, ...r...
src/main.js
jileeshs/react-redux-game
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import './styles/main.scss' // Store Initialization // ------------------------------------ const store = createStore(window.__INITIAL_STATE__) // Render Setup // ------------------------------------ const MOUNT_N...
app/javascript/mastodon/features/lists/components/new_list_form.js
vahnj/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { changeListEditorTitle, submitListEditor } from '../../../actions/lists'; import IconButton from '../../../components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = def...
src/components/video_detail.js
Jaime691/ReactTube
import React from 'react'; const VideoDetail = ({video}) =>{ if(!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; return ( <div className="video-detail col-md-8"> <div className="embed-respo...
examples/counter-example/src/App.js
jerrymao15/react-monocle
import React, { Component } from 'react'; import Counter from './Counter'; export default class App extends Component { constructor(props) { super(props); this.state = { counters: [], } this.handleAddCounter = this.handleAddCounter.bind(this); } handleAddCounter() { const counters = th...
src/svg-icons/communication/clear-all.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationClearAll = (props) => ( <SvgIcon {...props}> <path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z"/> </SvgIcon> ); CommunicationClearAll = pure(CommunicationClearAll); CommunicationClearAll.di...
news/sources/components/ScrollableTab.js
pintimes/lifeix-football-app-react
import React from 'react'; import { StyleSheet, Text, View, ScrollView, } from 'react-native'; import ScrollableTabView, {DefaultTabBar,ScrollableTabBar} from 'react-native-scrollable-tab-view'; import ScrollableFTTabBar from './ScrollableFTTabBar' //忽略warning console.ignoredYellowBox = ['Warning: ReactNative...
src/components/pages/Sources/Sources.js
tsjamm/HermesFeedReader
import React, { Component } from 'react'; import { View } from 'react-native'; import { Container, Header, Content, Title, Body, Left, Right, Button, Icon, Text } from 'native-base'; // import { Header } from '../../common'; import SourceItemList from './SourceItemList'; class Sources extends Component { rende...
docs/src/PageFooter.js
Sipree/react-bootstrap
import React from 'react'; import packageJSON from '../../package.json'; let version = packageJSON.version; if (/docs/.test(version)) { version = version.split('-')[0]; } const PageFooter = React.createClass({ render() { return ( <footer className="bs-docs-footer" role="contentinfo"> <div c...
components/OrganizationTeaser.js
turntwogg/esports-aggregator
import React from 'react'; import Link from 'next/link'; import RaisedBox from './RaisedBox'; import Heading from './Heading'; import EditOverlay from './EditOverlay'; import api from '../utils/api'; const OrganizationTeaser = ({ org, edit }) => { return ( <RaisedBox className="org-teaser" gradient> <Lin...
tests/flow/react/createElementRequiredProp_string.js
danharper/prettier
// @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/>); ...
lesson-7/todos/src/components/editNotesPage/NoteList.js
msd-code-academy/lessons
import React from 'react' import Note from './Note' import '../../styles/NoteList.css' class NoteList extends React.Component { render() { const { notes, editNote, removeNoteFromList } = this.props return ( <div className="NoteList"> {notes.map(note => ( <Note key={note.uu...
src/views/BranchManage/index.js
halo-design/halo-optimus
import React from 'react' import { connect } from 'react-redux' import { bindActionCreators } from 'redux' import { Row, Col } from 'antd' import BranchTree from 'COMPONENT/BranchTree' import InputSearch from 'COMPONENT/InputSearch' import BranchScan from './BranchScan' import { initBranchList } from 'REDUCER/public/br...
scripts/Admin/Items.js
krulmacius/sdasdasdasfgasdawsdwadawd
import React from 'react'; import axios from 'axios'; import Alert from 'react-s-alert'; class Items extends React.Component { constructor(props) { super(props); this.state = { items: [], status: true }; } componentDidMount() { axios.get('http://[::1]/sdasdasdasfgasdawsdwadawd/a...
webpack/components/extensions/HostDetails/DetailsTabCards/InstalledProductsCard.js
Katello/katello
import React from 'react'; import PropTypes from 'prop-types'; import { translate as __ } from 'foremanReact/common/I18n'; import { List, ListItem } from '@patternfly/react-core'; import CardTemplate from 'foremanReact/components/HostDetails/Templates/CardItem/CardTemplate'; const InstalledProductsCard = ({ isExpanded...
node_modules/recharts/demo/component/PolarGrid.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import { Surface, PolarGrid } from 'recharts'; export default React.createClass({ render () { const polarAngles = [0, 30, 60, 90, 145, 180, 200, 270, 300]; const polarRadius = [10, 20, 40, 80]; return ( <Surface width={500} height={500}> <PolarGrid cx={...
src/scenes/home/landing/emailSignup/emailSignup.js
sethbergman/operationcode_frontend
import React, { Component } from 'react'; import Section from 'shared/components/section/section'; import axios from 'axios'; import PropTypes from 'prop-types'; import config from 'config/environment'; import Form from 'shared/components/form/form'; import FormEmail from 'shared/components/form/formEmail/formEmail'; i...
src/components/icons/Spinner.js
edauenhauer/google-drive-copy-folder
import React from 'react'; import Icon from './Icon'; import './spinner.css'; export default function Spinner(props) { return ( <span> <Icon {...props} className="spinner" viewBox="0 0 100 100"> {/* Major arc */} <path id="path1" strokeWidth="3px" stroke="#000"...
docs/app/Examples/elements/Segment/Variations/SegmentExampleCompact.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment } from 'shengnian-ui-react' const SegmentExampleCompact = () => ( <Segment compact> Compact content. </Segment> ) export default SegmentExampleCompact
new-lamassu-admin/src/pages/Customers/components/CustomerSidebar.js
naconner/lamassu-server
import { makeStyles } from '@material-ui/core/styles' import classnames from 'classnames' import React from 'react' import { ReactComponent as CustomerDataReversedIcon } from 'src/styling/icons/customer-nav/data/comet.svg' import { ReactComponent as CustomerDataIcon } from 'src/styling/icons/customer-nav/data/white.sv...
bench/pages/stateless-big.js
BlancheXu/test
import React from 'react' export default () => { return <ul>{items()}</ul> } const items = () => { var out = new Array(10000) for (let i = 0; i < out.length; i++) { out[i] = <li key={i}>This is row {i + 1}</li> } return out }
src/js/components/icons/base/Vulnerability.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...
examples/validation/app.js
nikitka/react-redux-form
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import store from './store.js'; import UserForm from './components/user-form.js'; class App extends React.Component { render() { return ( <Provider store={store}> <UserForm /> </Provider> ...
src/client/pages/app/modalRoot/URLSettingsModal.js
doemski/cblocks
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import Modal from '@material-ui/core/Modal'; import Typography from '@material-ui/core/Typography'; import Input from '@material-ui/core/Input'; import { withStyles } from '@material-ui/core/styles'; import Button from...
js/jqwidgets/demos/react/app/treegrid/pagingapi/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js'; import JqxInput from '../../../jqwidgets-react/react_jqxinput.js'; import JqxPanel from '../../../jqwidgets-react/r...
src/containers/NavMenuContainer/NavMenuContainer.js
expdevelop/d812
import React from 'react' import { NavMenu } from 'components' import { CATALOG as catalogLink, CATALOG_SORT_LINK as sortLink } from 'constants/urls' import { catalogCategories } from 'constants/catalogCategories' const NavMenuContainer = props => { const data = [ { content: 'Топ продаж', path: `...
src/scripts/Progress.js
lmacsen/yoda
'use strict'; import React from 'react'; export default React.createClass({ getDefaultProps() { return { height: 10, color: '#0bD318' } }, render() { var completed = this.props.completed; if (completed < 0) { completed = 0; } if (completed > 100) { completed = 1...
src/pages/404.js
rachsmithcodes/rachsmith.com
import React from 'react'; import { Link } from 'gatsby'; import Layout from '../components/Layout'; const NotFoundPage = () => ( <Layout page="page"> <div className="container"> <article className="content" style={{ textAlign: `center` }}> <h1 className="content-title">Error 404</h1> <sect...
src/svg-icons/image/transform.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageTransform = (props) => ( <SvgIcon {...props}> <path d="M22 18v-2H8V4h2L7 1 4 4h2v2H2v2h4v8c0 1.1.9 2 2 2h8v2h-2l3 3 3-3h-2v-2h4zM10 8h6v6h2V8c0-1.1-.9-2-2-2h-6v2z"/> </SvgIcon> ); ImageTransform = pure(I...
node_modules/react-router/es6/Link.js
937aaron/reduxblog
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 _objectWithoutProperties(obj, keys) { var target = {...
meteor/RNApp/index.ios.js
merxer/kata
import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './app'; class RNApp extends Component { render() { return <App />; } } AppRegistry.registerComponent('RNApp', () => RNApp);
src/Tag.js
atFriendly/react-native-friendly-chat
import React from 'react'; import { StyleSheet, Text, View, ViewPropTypes, } from 'react-native'; import PropTypes from 'prop-types'; import moment from 'moment'; export default class Tag extends React.Component { renderTagTime() { if (!this.props.currentMessage.createdAt) return null; return ( <Text s...
src/components/Footer/Footer.js
samerce/lampshade
import React from 'react'; import withStyles from 'isomorphic-style-loader/lib/withStyles'; import cx from 'classnames'; import s from './Footer.css'; @withStyles(s) export default class Footer extends React.Component { render() { return ( <div className={s.root}> <div className={s.container}> ...
src/demos/building-a-geospatial-app/5-interaction/src/charts.js
uber-common/vis-academy
import React from 'react'; import { charts } from './style'; import { VerticalBarSeries, XAxis, XYPlot, YAxis } from 'react-vis'; export default function Charts({ highlight, highlightedHour, pickups, select, selectedHour }) { if (!pickups) { return (<div style={charts} />); } const data = ...
src/components/BladeNav.js
pjkarlik/ReactUI
import React from 'react'; import { resolve } from '../styles'; export default class BladeNav extends React.Component { static displayName = 'BladeNav'; static propTypes={ classes: React.PropTypes.object, items: React.PropTypes.object, }; constructor(props) { super(props); this.state = { ...
src/PieChart/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; import {createGraph} from "./pieChart"; import {updateGraph} from "./pieChart"; class PieChart extends React.Component { constructor(props) { super(props); this.di...
Realization/frontend/czechidm-core/src/components/advanced/Navigation/NavigationLanguage.js
bcvsolutions/CzechIdMng
import React from 'react'; import PropTypes from 'prop-types'; import { useDispatch } from 'react-redux'; // import Translate from '@material-ui/icons/Translate'; import MenuItem from '@material-ui/core/MenuItem'; import Menu from '@material-ui/core/Menu'; import Button from '@material-ui/core/Button'; import ExpandMor...
src/SplitButton.js
brynjagr/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
examples/auth-with-shared-root/components/User.js
nhunzaker/react-router
import React from 'react' const User = React.createClass({ render() { return <h1>User: {this.props.params.id}</h1> } }) export default User
src/components/molecules/Post/index.js
DimensionLab/narc
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import { Heading, Paragraph } from 'components' const Article = styled.article`` const Post = ({ title, body, ...props }) => { return ( <Article {...props}> <Heading level={2}>{title}</Heading> <Para...
examples/active-links/app.js
tylermcginnis/react-router
import React from 'react' import { render } from 'react-dom' import { Router, Route, IndexRoute, Link, IndexLink, browserHistory } from 'react-router' import withExampleBasename from '../withExampleBasename' const ACTIVE = { color: 'red' } const App = ({ children }) => ( <div> <h1>APP!</h1> <ul> <li>...
app/containers/NotFoundPage/index.js
nypl-spacetime/where
import React from 'react' import { Link } from 'react-router' import styled from 'styled-components' import CenteredItemPage from 'components/CenteredItemPage' const Container = styled.div` text-align: center; ` export default class NotFound extends React.Component { render () { return ( <CenteredItem...
src/routes.js
s83/react-comments
import { Route, IndexRoute } from 'react-router'; import React from 'react'; import App from 'containers/App'; import NotFound from 'components/NotFound'; import CommentsList from 'components/CommentsList'; import NewComment from 'components/NewComment'; import { ROUTE_COMMENT_NEW } from 'constants'; export default [...
src/components/List.js
tuomashatakka/tool-bar-gui
'use babel' import React from 'react' import ListItem from '../components/ListItemComponent' import prop from 'prop-types' const ListComponent = ({ items }) => <ul className='select-list list-group'> {list(items)} </ul> export const list = items => items.map((item, n) => <ListItem key={n} text={ite...
fields/types/select/SelectField.js
giovanniRodighiero/cms
import Field from '../Field'; import React from 'react'; import Select from 'react-select'; import { FormInput } from '../../../admin/client/App/elemental'; /** * TODO: * - Custom path support */ module.exports = Field.create({ displayName: 'SelectField', statics: { type: 'Select', }, valueChanged (newValu...
examples/counter/index.js
drstarry/redux
import React from 'react'; import Root from './containers/Root'; React.render( <Root />, document.getElementById('root') );
app/components/Dashboard/PowerUp.js
VonIobro/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage, FormattedHTMLMessage } from 'react-intl'; import { formatAmount, toNtz, ABP_DECIMALS } from '../../utils/amountFormatter'; import { ABP, NTZ } from '../../containers/Dashboard/actions'; import ExchangeDialog from '../../containe...
jrt/src/components/DiskUsage.js
wizzardo/jrtorrent
import React from 'react'; import {formatAbbreviation, formatNumberWithMaxLength} from 'react-ui-basics/Size'; import './DiskUsage.css' import {state} from "../stores/DiskUsageStore"; import {useStore} from "../stores/StoreUtils"; export const DiskUsage = () => { const {free} = useStore(state) return <div cla...
internals/templates/containers/App/index.js
spiridonov-oa/management-tool
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
examples/draft-0-9-1/tex/js/components/TeXBlock.js
tonygentilcore/draft-js
/** * Copyright (c) 2013-present, Facebook, Inc. All rights reserved. * * This file provided by Facebook is for non-commercial testing and evaluation * purposes only. Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCL...
blueprints/form/files/__root__/forms/__name__Form.js
abkfenris/inferno-react
import React from 'react' import { reduxForm } from 'redux-form' export const fields = [] const validate = (values) => { const errors = {} return errors } type Props = { handleSubmit: Function, fields: Object, } export class <%= pascalEntityName %> extends React.Component { props: Props; defaultProps = ...
frontend/src/components/Dialogs/ConfirmDeleteDialog.js
kiok46/Readable
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; class ConfirmDeleteDialog extends Component { state= { open: false, } openEditDialog = () => { }; openDeleteDialog = () => { ...
frontend/src/System/Tasks/Queued/QueuedTasksConnector.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { fetchCommands } from 'Store/Actions/commandActions'; import QueuedTasks from './QueuedTasks'; function createMapStateToProps() { return createSelect...
example/components/OptionsTable.js
troybetz/react-soundcloud-widget
import React from 'react'; import { Table, TableHeader, TableHeaderColumn, TableBody, TableRow, TableRowColumn, } from 'material-ui'; export default class OptionsTable extends React.Component { static propTypes = { opts: React.PropTypes.array.isRequired, onChange: React.PropTypes.func.isRequired,...
src/svg-icons/content/mail.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMail = (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-2zm0 4l-8 5-8-5V6l8 5 8-5v2z"/> </SvgIcon> ); ContentMail = pure(Conte...
example/demo.card.js
glenjamin/devboard
import devboard from '../'; import React from 'react'; import Color from 'color-js'; import { combine } from '../lib/utils'; var definecard = devboard.ns('4. Thermometer demo'); definecard(` This demo is of a component which was built iteratively using devboard. Unfortunately, because you're looking at a static page...
src/js/quoteView.js
Pro-Caffeinated/SlidesInTime
import React, { Component } from 'react'; import QuoteViewStore from '../stores/quoteViewStore'; import FaQuoteLeft from 'react-icons/lib/fa/quote-left'; class QuoteView extends Component{ constructor() { super(); this.state={ content: QuoteViewStore.getContent() }; } componentWillMount(){ QuoteViewStor...
src/server.js
donabrams/react-redux-universal-hot-example
/*global __DEVELOPMENT__*/ import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import serialize ...
packages/react/src/components/Tabs/Tabs.js
carbon-design-system/carbon-components
/** * 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 classNames from 'classnames'; import { ChevronLeft16, ChevronRight16 } ...
storybook/stories/HomeOnBoardingViewStory.js
ujwalramesh/REHU-discourse
/* @flow */ 'use strict' import React from 'react' import { View } from 'react-native' import { storiesOf } from '@kadira/react-native-storybook' import HomeOnBoardingView from '../../js/components/home/HomeOnBoardingView' storiesOf('HomeOnBoardingView') .addDecorator((story) => ( <View style={{marginTop: 20}}>...
frontend/src/admin/AdminDashboard.js
rabblerouser/core
import React from 'react'; import Header from './header'; import UserMessageView from './UserMessageView'; import BranchManagement from './branchManagement'; import NetworkManagement from './networkManagement'; import { RestrictedTo } from './common'; const AdminDashboard = () => ( <div> <Header /> <UserMe...
functional-tests/app/client/index-redux-hooks.js
reimagined/resolve
import React from 'react' import { render } from 'react-dom' import { BrowserRouter as Router } from 'react-router-dom' import { createResolveStore, ResolveReduxProvider } from '@resolve-js/redux' import { createBrowserHistory } from 'history' import { renderRoutes } from 'react-router-config' import { routes } from '...
react-flux/demo05/src/views/NavigatorView.js
majunbao/xue
import React from 'react'; import {DraggableCore} from 'react-draggable'; class NavigatorView extends React.Component { constructor(props) { super(props); this.state = { NavigatorNode: [ { id: 1, content: '11111' }, { id: 2, content: '2222...
react_version/src/TodoList/TodoList.js
MagdalenaChmielewska/todo_list
import React, { Component } from 'react'; import './TodoList.css'; import TodoElement from '../TodoElement/TodoElement' const backend_uri = "https://todo-backend-sinatra.herokuapp.com/todos"; class TodoList extends Component { constructor() { super(); this.state = { currentTask: "", todoList: [...
app/index.js
restoko/restoko-desktop-app
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router } from 'react-router'; import routes from './routes'; import configureStore from './store/configureStore'; import './material.min.css'; import './app.css'; const store = configureStore(); render( <...
src/components/Footer/Footer.js
cheshire137/hue-steamer
import React, { Component } from 'react'; import s from './Footer.scss'; import withStyles from '../../decorators/withStyles'; @withStyles(s) class Footer extends Component { render() { return ( <footer className={s.pageFooter}> &copy; 2016 Sarah Vessels </footer> ); } } export default...
src/svg-icons/editor/insert-photo.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertPhoto = (props) => ( <SvgIcon {...props}> <path d="M21 19V5c0-1.1-.9-2-2-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2zM8.5 13.5l2.5 3.01L14.5 12l4.5 6H5l3.5-4.5z"/> </SvgIcon> ); EditorI...
src/components/ItemPageTitle/ItemPageTitle.js
expdevelop/d812
import React from 'react' import Helmet from 'react-helmet' import { FlexGrid } from 'components' import { getImagePath } from 'components/Image/Image' import { GREEN_COLOR, GRAY_COLOR } from 'constants' import s from './ItemPageTitle.sass' const ItemPageTitle = ({title, meta, image, noTitle, isAvailable, amount}) =>...
src/index.js
AnthyG/da_cards-2
import React from 'react'; import ReactDOM from 'react-dom'; import './index.min.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/cms/preview-templates/post-preview.js
nicklanasa/nicklanasa.github.io
// @flow strict import React from 'react'; import type { Entry, WidgetFor } from '../../types'; type Props = { entry: Entry, widgetFor: WidgetFor }; const PostPreview = ({ entry, widgetFor }: Props) => { const body = widgetFor('body'); const title = entry.getIn(['data', 'title']); return ( <div classNa...
src/svg-icons/av/library-music.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvLibraryMusic = (props) => ( <SvgIcon {...props}> <path d="M20 2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 5h-3v5.5c0 1.38-1.12 2.5-2.5 2.5S10 13.88 10 12.5s1.12-2.5 2.5-2.5c.57...
benchmarks/dom-comparison/src/app/Button.js
risetechnologies/fela
import { ColorPropType, StyleSheet, TouchableHighlight, Text } from 'react-native'; import React, { Component } from 'react'; import { bool, func, string } from 'prop-types'; export default class Button extends Component<*> { static displayName = '@app/Button'; static propTypes = { accessibilityLabel: string,...
src/svg-icons/communication/call.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCall = (props) => ( <SvgIcon {...props}> <path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-...
node_modules/native-base/Components/Widgets/Subtitle.js
paulunits/tiptap
/* @flow */ 'use strict'; import React from 'react'; import {Text, View, Platform } from 'react-native'; import NativeBaseComponent from '../Base/NativeBaseComponent'; export default class Subtitle extends NativeBaseComponent { render() { return( <View><Text style={{color: this.getTheme().subtitleColor , font...
Libraries/Modal/Modal.js
brentvatne/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/tanokInReact.js
brabadu/tanok
import React from 'react'; import { createStore } from './createStore'; import { Root } from "./components/root"; const identity = (x) => x; export class TanokInReact extends React.Component { constructor(props) { super(props); const { initialState, update, view, middlewares = [], onNewS...
src/components/ListItem/demo/basic/index.js
lebra/lebra-components
import React, { Component } from 'react'; import ListItem from '../../index'; import { render } from 'react-dom'; import imgPath from './1.jpg' import './index.less' export default class ListDemo extends Component{ onClick=()=>{ alert('has clicked'); } render() { return ( <ul cl...
src/components/experience.js
rkabani19/rkabani19.github.io
import React from 'react'; import styled, {keyframes} from 'styled-components'; import resume from '../images/resume.pdf'; import { theme, media } from '../styles'; const { colors, fontSizes } = theme; const ExperienceContainer = styled.div` display: flex; flex-direction: column; align-items: flex-start; padd...
src/players/YouTube.js
ruprict/react-player
import React from 'react' import loadScript from 'load-script' import propTypes from '../propTypes' import Base from './Base' const SDK_URL = '//www.youtube.com/iframe_api' const SDK_GLOBAL = 'YT' const MATCH_URL = /^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-)...
bench/pages/stateless-big.js
nelak/next.js
import React from 'react' export default () => { return ( <ul> {items()} </ul> ) } const items = () => { var out = new Array(10000) for (let i = 0; i < out.length; i++) { out[i] = <li key={i}>This is row {i + 1}</li> } return out }
src/pages/Calculator.js
gregmalcolm/elite-engineers
import React from 'react'; const Calculator = () => { return ( <div> <h1>Calculator</h1> </div> ); }; export default Calculator;