path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/app/routes/NotFoundRoute/NotFoundRoute.js
tomatau/breko-hub
import React from 'react' import { Helmet as DocumentMeta } from 'react-helmet-async' import { notFoundRoute as notFoundRouteCopy } from 'app/copy' export default class NotFoundRoute extends React.Component { render() { return ( <> <DocumentMeta> <title>{notFoundRouteCopy.documentTitle}</...
src/components/ButtonLink.js
wind85/waterandboards
import React from 'react' import ReactDOM from 'react-dom' import Link from 'react-router-dom/Link' const ButtonLink = ({ text, to, decoration='none', color='black' }) => { let styleLink if (decoration === 'none' ){ styleLink = { color: color, textDecoration: decoration } } return( ...
test/integration/image-component/noscript/pages/index.js
azukaru/next.js
import React from 'react' import Image from 'next/image' const myLoader = ({ src, width, quality }) => { return `https://customresolver.com${src}?w~~${width},q~~${quality}` } const Page = () => { return ( <div> <p>noscript images</p> <Image id="basic-image" src="/basic-image.jpg" width={640} heigh...
src/lib/reactors/LayerList/LayerItem.js
EsriJapan/photospot-finder
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
src/routes.js
kiyoshitaro/Instagram-
import React from 'react'; import {Route, IndexRoute, Router, browserHistory} from 'react-router'; import ReactDOM from 'react-dom'; import App from './components/App'; import ShowContainer from "./containers/ShowContainer"; import ProfileContainer from "./containers/ProfileContainer"; ReactDOM.render( <Route path="...
src/components/points/Total/index.js
Menternship/client-web
// @flow import React from 'react'; import { container } from './style.pcss'; export default class PointsTotal extends React.PureComponent { render() { return <div className={container}>{this.props.points}</div>; } }
packages/showcase/showcase-components/showcase-utils.js
uber/react-vis
import React from 'react'; import {SHOWCASE_LINKS} from '../showcase-links'; export function mapSection(section) { const {docsLink, comment, name, componentName} = section; const SectionComponent = section.component; const linkProps = { className: 'docs-link', target: '_blank', rel: 'noopener norefe...
src/components/Frame.js
ctlusto/gifsmos
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import './Frame.css'; const Frame = ({ imageSrc, playing, togglePlaying, gifText, fontColor, textPosition }) => ( <div className={classNames('Frame', { 'Frame-empty': !imageSrc })}> {imageSrc && ( ...
pootle/static/js/shared/components/Modal.js
r-o-b-b-i-e/pootle
/* * 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 LayeredComponent from '...
src/app.js
kgwinnup/react-tabs
import React from 'react'; import { TabContainer, Tab, TabNew } from './tabs'; require('./tabs.scss'); require('./index.html'); var Demo = React.createClass({ render: function(){ return( <TabContainer> <Tab title='tab 2' active={false} /> <Tab title='tab 2' ac...
app/javascript/mastodon/containers/mastodon.js
WitchesTown/mastodon
import React from 'react'; import { Provider } from 'react-redux'; import PropTypes from 'prop-types'; import configureStore from '../store/configureStore'; import { showOnboardingOnce } from '../actions/onboarding'; import { BrowserRouter, Route } from 'react-router-dom'; import { ScrollContext } from 'react-router-sc...
node_modules/react-sparklines/bootstrap-tests.js
aleksandrsmolin/react-redux-weather
// bootstrap-tests.js - A tool for updating the test cases in __tests__/fixtures.js // // 1) Reads __tests__/fixtures.js and looks for a "dynamic part", which should be a list of fields // belonging to that file's default export, enclosed in a pair of markers (see "signal" constants // below). // 2) Imports the sa...
data-browser-ui/public/app/components/RowEntryModal.js
CloudBoost/cloudboost
import React from 'react'; import { observer } from "mobx-react" import Modal from './Modal'; import GenericTd from './tableComponents/genericTdComponent'; import RowModalSwitcher from './RowModalSwitcher'; @observer class RowEntryModal extends React.PureComponent { state = { rowId: this.props.rowId }; com...
pootle/static/js/editor/components/Editor.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 { t } from 'utils/i18n'...
app/javascript/mastodon/components/attachment_list.js
vahnj/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; const filename = url => url.split('/').pop().split('#')[0].split('?')[0]; export default class AttachmentList extends Immutabl...
BaconFeedbackScreen.js
bakin-bacon/app
import React from 'react'; import { StyleSheet, Dimensions, StatusBar, Text, ScrollView, View, Image, Button, TouchableOpacity, Alert } from 'react-native'; import * as Colors from './Colors'; import { BakinBaconApi } from './api/BakinBaconApi'; export class BaconFeedbackScreen extends React.Component { static navig...
app/containers/ProjectDetailContainer.js
ianmilliken/origimill
import React from 'react'; import ProjectDetail from '../components/ProjectDetail' import PROJECTS from '../PROJECTS'; import helpers from '../helpers/projectData' class ProjectDetailContainer extends React.Component { constructor(props, context) { super(props, context); console.log("Setting state for Proje...
src/svg-icons/image/photo-album.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoAlbum = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4zm0 15l3-3.86 2.14 2.58 3-3.86L18 19H6z"/> </Sv...
src/components/search/screens/Search/views/SearchCommonView.js
yasavbrain/yasav
import React from 'react'; import { Header, Item, Icon, Input, Button, Text } from 'native-base'; import { GenericHeader } from 'yasav/src/viewElements/shared/Header'; import I18n from 'yasav/locales/i18n'; import Style from '../styles/style'; export default class SearchCommonView extends React.Component { construct...
components/checkbox/demo/index.js
TDFE/td-ui
/** * Created by sunxianxiong on 17/6/28. */ /* eslint-disable */ import React from 'react'; import ReactDOM from 'react-dom'; import Checkbox from '../index'; let CheckboxGroup = Checkbox.CheckboxGroup; const MOUNT_NODE = document.getElementById('app'); const plainOptions = [{label:"Tom",value:"Tom"},{label:"Sham",...
app/javascript/mastodon/features/report/rules.js
glitch-soc/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { connect } from 'react-redux'; import { FormattedMessage } from 'react-intl'; import Button from 'mastodon/components/button'; import Option from './components/option'; const mapStateToPro...
app/components/Settings.js
matthieuh/desktop-assistant
// @flow import { remote } from 'electron'; import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import moment from 'moment'; import styles from './Settings.scss'; import { exportDB, importDB, destroyDB } from '../store/pouchDBStore'; export default class Settings extends Component { p...
src/Parser/Priest/Discipline/Modules/Items/Estel.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import Wrapper from 'common/Wrapper'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import Atonement from '../Spell...
node_modules/semantic-ui-react/dist/es/modules/Accordion/AccordionTitle.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...
app/javascript/mastodon/components/intersection_observer_article.js
increments/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import scheduleIdleTask from '../features/ui/util/schedule_idle_task'; import getRectFromEntry from '../features/ui/util/get_rect_from_entry'; import { is } from 'immutable'; // Diff these props in the "rendered" state const updateOnPropsForRendered = ['id...
src/js/components/icons/base/Aed.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...
app/components/ListItem/index.js
fascinating2000/productFrontend
import React from 'react'; import Item from './Item'; import Wrapper from './Wrapper'; function ListItem(props) { return ( <Wrapper> <Item> {props.item} </Item> </Wrapper> ); } ListItem.propTypes = { item: React.PropTypes.any, }; export default ListItem;
client/src/javascript/components/torrent-list/Action.js
stephdewit/flood
import classnames from 'classnames'; import React from 'react'; import Tooltip from '../general/Tooltip'; export default class Action extends React.Component { render() { const {clickHandler, icon, label, slug} = this.props; const classes = classnames('action tooltip__wrapper', { [`action--${slug}`]: ...
src/parser/shaman/restoration/modules/talents/Ascendance.js
FaideWW/WoWAnalyzer
import React from 'react'; import SpellLink from 'common/SpellLink'; import SPELLS from 'common/SPELLS'; import { formatPercentage } from 'common/format'; import Analyzer from 'parser/core/Analyzer'; import StatisticListBoxItem from 'interface/others/StatisticListBoxItem'; import CooldownThroughputTracker from '../...
packages/material-ui-icons/src/SentimentDissatisfied.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SentimentDissatisfied = props => <SvgIcon {...props}> <circle cx="15.5" cy="9.5" r="1.5" /><circle cx="8.5" cy="9.5" r="1.5" /><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S...
go-betz/src/views/my-bets/index.js
FabioFischer/go-betz
import React from 'react'; import { Bet, AuthenticatedButton } from './../../components'; import { ls, bet } from './../../services'; class MyBets extends React.Component { state = { bets: [] }; handleGoBack = () => this.props.history.push('matches'); handleAddCredits = () => this.props.history.push('ad...
src/Component/Blogs.js
smay1227/Winterfell
import React, { Component } from 'react'; import {Link} from 'react-router'; export default class Blogs extends Component { constructor(props) { super(props); this.blogs = [] } componentDidMount() { this.props.actions.fetchBlogs() } render() { let blogs = this.props.results.blogs;...
src/pages/configurator/CreatePackagePackagePage.js
belaczek/BeerCheese-client
import React, { Component } from 'react'; import { Row, Col, Button, Nav, NavItem, NavLink, NavbarBrand } from 'reactstrap'; import ProductList from '../../components/product/ProductList'; import localizedTexts from '../../text_localization/LocalizedStrings'; const mockBeerCategories = ['black', 'lager']...
my-app/src/components/pages/About.js
sThig/jabbascrypt
import React from 'react'; import AboutContainer from './aboutContainer'; import BgImage from '../scaffold/bgImage'; class About extends React.Component { constructor(props) { super(props) this.addActiveClass= this.addActiveClass; this.state = { hideNavItems: true, active: false, }; } ...
src/components/Transaction/Form/Account.js
ayastreb/money-tracker
import React from 'react'; import PropTypes from 'prop-types'; import { Dropdown, Form, Input } from 'semantic-ui-react'; import { DropdownOption } from '../../types'; import Currency from '../../../entities/Currency'; const Account = props => ( <Form.Group> <Form.Field width={11} className="mobile-with-margin">...
src/frontend/components/DummyEventCreate.js
Bernie-2016/ground-control
import React from 'react'; import Relay from 'react-relay'; export default class DummyEventCreate extends React.Component { render() { window.location.reload(); return <div></div> } }
frontend/src/pages/AttackInspection.js
dimriou/rupture
import React from 'react'; import { browserHistory} from 'react-router'; import DeleteNotification from '../containers/DeleteNotification'; import AttackDetails from '../containers/AttackDetails'; import axios from 'axios'; export default class AttackInspection extends React.Component { constructor() { super...
client/modules/settings/routes.js
jshimko/home-dash
import React from 'react'; import { mount } from 'react-mounter'; import MainLayout from '/client/modules/core/containers/main_layout'; import SettingsPage from './containers/settings_page'; export default function (injectDeps, { FlowRouter }) { const MainLayoutCtx = injectDeps(MainLayout); FlowRouter.route('/se...
src/components/pasta.js
bokuweb/tomato_pasta
import React, { Component } from 'react'; import Infinite from 'react-infinite'; import _ from 'lodash'; import Header from './header'; import SideMenu from './side-menu'; import Comments from './comments'; import Item from './item'; import {unescapeHTML} from '../lib/utils'; const FAVICON_URI = 'http://cdn-ak.favicon...
src/parser/shared/modules/items/bfa/dungeons/AzerokksResonatingHeart.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import ITEMS from 'common/ITEMS'; import { formatPercentage } from 'common/format'; import { calculatePrimaryStat } from 'common/stats'; import ItemStatistic from 'interface/statistics/ItemStatistic'; import BoringItemValueText from 'interface/statistics/c...
aaprev-previewer/src/previewer/data-loader.js
hivdb/gag-gp41
import React from 'react' import PropTypes from 'prop-types' import csv from 'icosa/src/csv' import {readFile} from 'icosa/src/file' import style from './style.css' class FileInput extends React.Component { // TODO: create icosa.react.file-input and replace this one onChange (e) { if (this.props.onChange) { ...
Realization/frontend/czechidm-acc/src/content/provisioning/AuditProvisioningOperations.js
bcvsolutions/CzechIdMng
import React from 'react'; // import { Basic } from 'czechidm-core'; import ProvisioningOperations from './ProvisioningOperations'; /** * Provisioning in audit route. * * @author Radek Tomiška */ export default class AuditProvisioningOperations extends Basic.AbstractContent { getContentKey() { return 'acc:c...
app/components/CleanComponent/CleanSidebar.js
openexp/OpenEXP
import React, { Component } from 'react'; import { Segment, Header, Menu, Icon, Button, Grid } from 'semantic-ui-react'; import styles from '../styles/collect.css'; const HELP_STEP = { MENU: 0, SIGNAL_EXPLANATION: 1, SIGNAL_SALINE: 2, SIGNAL_CONTACT: 3, SIGNAL_MOVEMENT: 4, LEARN_BRAIN: 5, LEARN_BLINK: 6,...
test/fixtures/webpack-message-formatting/src/AppUnknownExport.js
Timer/create-react-app
import React, { Component } from 'react'; import { bar } from './AppUnknownExport'; class App extends Component { componentDidMount() { bar(); } render() { return <div />; } } export default App;
src/Glyphicon.js
adampickeral/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
assets/jqwidgets/demos/react/app/treegrid/columnresize/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxTreeGrid from '../../../jqwidgets-react/react_jqxtreegrid.js'; class App extends React.Component { componentDidMount() { this.refs.myTreeGrid.expandRow(1); this.refs.myTreeGrid.expandRow(2); } render () { // pre...
src/components/Collection/Collection.js
jma921/movie-collector
import React, { Component } from 'react'; import { getMoviesInCollection } from '../../helpers/movies'; import PropTypes from 'prop-types'; // import { Typeahead } from 'react-bootstrap-typeahead'; import ImageLink from '../ImageLink/ImageLink'; import _ from 'lodash'; class Collection extends Component { constructo...
src/app/core/molecules/app-bar/index.js
blowsys/reservo
import React, { Component } from 'react'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import NavigationClose from 'material-ui/svg-icons/navigation/close'; export default class AppTopBar extends Component { render() { return ( <div> ...
src/js/components/List.js
linde12/grommet
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import SpinningIcon from './icons/Spinning'; import InfiniteScroll from '../utils/InfiniteScroll'; import Selection from '../utils/Sele...
src/app/components/layout/CheckStyledCard.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { makeStyles } from '@material-ui/core/styles'; import Box from '@material-ui/core/Box'; import { FormattedGlobalMessage } from '../MappedMessage'; import { stringHelper } from '../../customHelpers'; import { StyledCard, StyledSubHeader } from '../.....
js/App.js
kishorevarma/nakiva.com
import React from 'react'; import { Router, Route, Link, Redirect, Navigation } from 'react-router'; import { history } from 'react-router/lib/BrowserHistory'; import NavigationComponent from './components/Navigation'; import AboutHandler from './components/About'; import ProfileHandler from './components/profile'; ...
src/components/Table.js
ua-oira/react-super-responsive-table
import React from 'react'; import T from 'prop-types'; import { Provider } from '../utils/tableContext'; import allowed from '../utils/allowed'; class Table extends React.Component { constructor(props) { super(props); this.state = { headers: {}, }; } render() { const { headers } = this.s...
docs/app/Examples/elements/Input/Variations/InputExampleIconElement.js
koenvg/Semantic-UI-React
import React from 'react' import { Icon, Input } from 'semantic-ui-react' const InputExampleIconElement = () => ( <Input icon={<Icon name='search' inverted circular link />} placeholder='Search...' /> ) export default InputExampleIconElement
app/components/LoadingIndicator/index.js
KyleAWang/react-boilerplate
import React from 'react'; import Circle from './Circle'; import Wrapper from './Wrapper'; const LoadingIndicator = () => ( <Wrapper> <Circle /> <Circle rotate={30} delay={-1.1} /> <Circle rotate={60} delay={-1} /> <Circle rotate={90} delay={-0.9} /> <Circle rotate={120} delay={-0.8} /> <Cir...
examples/web/client/src/components/SyncStatus.js
redux-offline/redux-offline
import React from 'react'; import { connect } from 'react-redux'; function SyncStatus({ timer, busy, retryScheduled, attempt }) { if (!busy && !retryScheduled) { return <p>Synced</p>; } else if (busy) { return <p>Waiting on request - Attempt #{attempt}</p>; } return ( <p> Waiting on retry: {t...
src/components/dateo/teaser-view.js
datea/datea-webapp-react
import React from 'react'; import Author from './author'; import Tags from './tags'; import FileView from '../file-view'; import ImageGrid from '../image-grid'; import Button from '@material-ui/core/Button'; import {Tr} from '../../i18n'; import {renderContentWithUrls} from './utils'; const TeaserView = ({dateo, onOpe...
src/components/TextInputStyledComponents/TextInputStyledComponents.js
alexcondorachi/ps-react-alexc
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; import styled from 'styled-components'; /** Text input with integrated label to enforce consistency in layout, error display, label placement, and required field marker. */ function TextInput({htmlId, name, label, type = "text...
src/components/DataTable/AnimTableBody.js
fishmankkk/mircowater2.0
import React from 'react' import PropTypes from 'prop-types' import { TweenOneGroup } from 'rc-tween-one' const enterAnim = [ { opacity: 0, x: 30, backgroundColor: '#fffeee', duration: 0, }, { height: 0, duration: 200, type: 'from', delay: 250, ease: 'easeOutQuad', onComplet...
tools/public-components.js
yickli/react-bootstrap
import React from 'react'; import index from '../src/index'; let components = []; Object.keys(index).forEach(function (item) { if (index[item] instanceof React.Component.constructor) { components.push(item); } }); export default components;
src/renderer/components/Nodes/ReducerNode.js
dvajs/dva-gui
import React, { Component } from 'react'; import { createNode } from 'rc-fringing'; import { Popover } from 'antd'; import classNames from 'classnames'; import ReducerForm from '../common/ReducerForm'; class ReducerNode extends Component { constructor(props) { super(props); this.state = { visible: fals...
client/containers/App/App.js
joshjg/explore
import React from 'react'; import { connect } from 'react-redux'; import Cookies from 'js-cookie'; import Snackbar from 'material-ui/Snackbar'; import Navbar from '../Navbar'; import Signup from '../Signup'; import Login from '../Login'; import Welcome from '../Welcome'; import AddEvent from '../AddEvent'; import AddPh...
src/body/ReactGridBodyCheckboxColumn.js
josebalius/react-grid
import React from 'react'; class ReactGridBodyCheckboxColumn extends React.Component { static defaultProps = { width: '3%', row: {} }; constructor(props) { super(props); } render() { let cell = ''; let cellStyle = { width: this.props.width, ...
src/components/video_list_item.js
sofiamatulis/react-project
import React from 'react'; const VideoListItem = ({video, onVideoSelect}) => { const imageUrl = video.snippet.thumbnails.default.url; return ( <li onClick={() => onVideoSelect(video)} className="list-group-item"> <div className="video-list media"> <div className="media-left"> <i...
fields/types/datearray/DateArrayField.js
xyzteam2016/keystone
import ArrayFieldMixin from '../../mixins/ArrayField'; import DateInput from '../../components/DateInput'; import Field from '../Field'; import React from 'react'; import moment from 'moment'; const DEFAULT_INPUT_FORMAT = 'YYYY-MM-DD'; const DEFAULT_FORMAT_STRING = 'Do MMM YYYY'; module.exports = Field.create({ dis...
src/svg-icons/action/event.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionEvent = (props) => ( <SvgIcon {...props}> <path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/> </SvgIcon> ...
actor-apps/app-web/src/app/utils/require-auth.js
winiceo/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}); }...
src/emailconf.js
gourie/ParkingPlaza
/* * Author: Joeri Nicolaes * ====================== */ import 'babel-polyfill'; import React from 'react'; import ReactDom from 'react-dom'; import EmailConfApp from './EmailConfApp'; // read attribute sent via script and convert String into list of cities var scriptTag = document.getElementById('myscript'); va...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
doochik/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
src/components/Header/Header.js
shaialon/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../../utils/Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header { render() { ...
app/javascript/flavours/glitch/features/direct_timeline/index.js
glitch-soc/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import StatusListContainer from 'flavours/glitch/features/ui/containers/status_list_container'; import Column from 'flavours/glitch/components/column'; import ColumnHeader from 'flavours/glitch/components/column_header...
src/app/components/PageTitle.js
meedan/check-web
import React from 'react'; import PropTypes from 'prop-types'; import { Helmet } from 'react-helmet'; import { FormattedGlobalMessage } from './MappedMessage'; import { emojify } from '../helpers'; const StringOrFormattedMessage = PropTypes.oneOfType([ PropTypes.string.isRequired, PropTypes.element.isRequired, ]);...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/PropsNotDefinedButUsed.js
mroch/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { state: State = { initialValue: this.props.value, }; } class MyComponent2 extends React.Component { render() { return this.props.children; } } class MyComponent3 extends React.Component { render() { const props = {...
src/inject/index.js
gilbox/react-stateful-stream
import React from 'react'; import injectFactory from './inject'; const inject = injectFactory(React); export default { ...inject };
src/svg-icons/action/label.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLabel = (props) => ( <SvgIcon {...props}> <path d="M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16z"/> </SvgIcon> ); A...
docs/src/components/item-filter-example.js
mcanthony/nuclear-js
import React from 'react' import { Reactor, Store, toImmutable } from 'nuclear-js' import StateViewer from './state-viewer' import ExampleStep from './example-step' import Browser from './browser' const reactor = new Reactor({ debug: true, expose: 'itemFilterReactor' }); reactor.registerStores({ typeFilter: Sto...
docs/src/app/components/pages/components/DropDownMenu/ExampleLabeled.js
pancho111203/material-ui
import React from 'react'; import DropDownMenu from 'material-ui/DropDownMenu'; import MenuItem from 'material-ui/MenuItem'; export default class DropDownMenuLabeledExample extends React.Component { constructor(props) { super(props); this.state = {value: 2}; } handleChange = (event, index, value) => th...
src/server.js
guymorita/creditTiger
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/js/components/questions/QuestionStatsInline.js
nekuno/client
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { QUESTION_STATS_COLORS } from '../../constants/Constants'; import QuestionStatsGraphs from './QuestionStatsGraphs'; import translate from '../../i18n/Translate'; @translate('QuestionStatsInline') export default class QuestionStatsInl...
docs/typography/text-alignment/index.js
valzav/react-foundation-components
import React from 'react'; import { TextAlignment } from '../../../src/text-alignment'; const TextAlignmentPage = () => ( <div> <TextAlignment alignment="left"> <b>This text is left-aligned.</b> Set in the year 0 F.E. ("Foundation Era"), The Psychohistorians opens on Trantor, the capital of the 12,0...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
tedsf/tiptap
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
RDP07/portfolio_tempRDP
import React from 'react'; import { render } from 'react-dom'; // 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'; render(<HelloWorld />, document.getElementById('react-root'));
src/components/Hero/HeroBackground.js
opencredo/opencredo-react-boilerplate
import React from 'react'; import styles from './Hero.scss'; export default class HeroBackground extends React.Component { static propTypes = { image: React.PropTypes.string.isRequired, }; render() { return ( <div className={styles.background} style={{ backgroundImage: `url(${this.props.image})` }...
src/components/MessageParts/MessageUser.js
orbitdb/orbit-web
'use strict' import React from 'react' import PropTypes from 'prop-types' import classNames from 'classnames' import createColor from '../../utils/create-color' function MessageUser ({ message, colorify, isCommand, onClick }) { const { userIdentity, meta: { from: userProfile } } = message const color ...
client/src/components/new_post_form/new_post_form.js
kakato10/hirundo2
import React from 'react'; import TextField from 'material-ui/TextField'; import FlatButton from 'material-ui/FlatButton'; import Divider from 'material-ui/Divider'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import PropTypes from 'prop-types'; export default class NewPostForm extends Re...
src/app.js
javascriptiscoolpl/react-chart-line
import React from 'react'; import ReactDOM from 'react-dom'; import ChartLine from './react-chart-line.js'; // sample usage 1 /* var chart = { msg: "", osX: [], osY: [] }; for (var i=0,x=-10; i<20; i++,x++) { chart.osX[i] = x; chart.osY[i] = Math.sin(x)-Math.tan(x); } ReactDOM.render( <ChartLine data={chart}/>,...
examples/03 Nesting/Drag Sources/Container.js
cesarandreu/react-dnd
import React from 'react'; import SourceBox from './SourceBox'; import TargetBox from './TargetBox'; import Colors from './Colors'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd/modules/backends/HTML5'; @DragDropContext(HTML5Backend) export default class Container { render() { ...
app/javascript/mastodon/features/getting_started/index.js
summoners-riftodon/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnLink from '../ui/components/column_link'; import ColumnSubheading from '../ui/components/column_subheading'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { connect } from 'react-redux'; import Prop...
src/svg-icons/notification/bluetooth-audio.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationBluetoothAudio = (props) => ( <SvgIcon {...props}> <path d="M14.24 12.01l2.32 2.32c.28-.72.44-1.51.44-2.33 0-.82-.16-1.59-.43-2.31l-2.33 2.32zm5.29-5.3l-1.26 1.26c.63 1.21.98 2.57.98 4.02s-.36 2.82-...
static/src/components/Layout.js
eltrufas/cosmico
import React from 'react'; const Drawer = () => ( <div>Hi</div> ); export default Drawer;
client/src/app/routes.js
Einsteinish/DumbNode
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import MainLanding from 'parts/core/views/mainLanding'; export default function Routes(store, parts) { return ( <Route component={parts.auth.containers.app()} name="home" path="/"> <IndexRoute component={MainLanding}/> ...
index.android.js
alangpierce/LambdaCalculusPlayground
/** * Top-level Android app. * * @flow */ 'use strict'; import React from 'react'; import { AppRegistry, DeviceEventEmitter, Image, Linking, NativeModules, PanResponder, Text, ToolbarAndroid, View, } from 'react-native'; import {connect, Provider} from 'react-redux'; import './...
src/apps/routes.js
feralclaw/moe
import React from 'react'; import { Route } from 'react-router'; import Home from './home'; const routes = () => ( <div> <Route path="/" component={Home} /> <Route path="special" getComponent={(location, callback) => { require.ens...
src/components/common/TextInput.js
ashutosh-singh-rawat/react-redux-starter
import React from 'react'; import PropTypes from 'prop-types'; const TextInput = ({ name, label, onChange, placeholder, value, error }) => { let wrapperClass = 'form-group'; if (error && error.length > 0) { wrapperClass += " " + 'has-error'; } return ( <div className={wrapperClass}> <label html...
client/src/components/Tag.js
rantav/reversim-summit-2017
import React from 'react'; const Tag = (name) => ( <div key={name} className="mr-3">#{name}</div> ); export default Tag;
routes/MenuLink/components/ComponentController.js
mcdermed/Elkwood
import React from 'react' import { fetchComponent } from '../../../store/actions/Requests' const ComponentController = (props) => <div>{props.children || 'ComponentController'}</div> ComponentController.load = (dispatch, id) => fetchComponent(dispatch, id) export default ComponentController
src/components/HeaderView/index.js
Reditr-Software/reditr
import React from 'react' import { render } from 'react-dom' import { Link } from 'react-router-dom' import Observable from '../../utilities/Observable' import history from '../../utilities/History' import AccountHeader from '../AccountHeader' import logo from '../../images/logo.png' import style from '../../utilities/...
lib/Navigation/Tabs/tabSix/views/TabSixScreenOne.js
Ezeebube5/Nairasense
import React from 'react'; import { View, Text } from 'react-native'; import { connect } from 'react-redux'; import Icon from 'react-native-vector-icons/FontAwesome'; import { Container, Content, List, ListItem, Thumbnail, Body, Separator, Right, Switch, Header, Left, Button, Title } from 'native-base'; impor...
client/src/components/app.js
Zsugi/react-auth
import React, { Component } from 'react'; import Header from './header'; export default class App extends Component { render() { return ( <div> <Header /> {this.props.children} </div> ); } }
src/svg-icons/maps/directions-bike.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsBike = (props) => ( <SvgIcon {...props}> <path d="M15.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM5 12c-2.8 0-5 2.2-5 5s2.2 5 5 5 5-2.2 5-5-2.2-5-5-5zm0 8.5c-1.9 0-3.5-1.6-3.5-3.5s1.6-3.5 3....
ReactJS_NoteApp/node_modules/react-router/es/Prompt.js
canhphong/canhphong.github.io
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &...