path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/misc/notifications.js
scholtzm/arnold
import React, { Component } from 'react'; import NotificationSystem from 'react-notification-system'; import NotificationStore from '../../stores/notification-store.js'; class Notifications extends Component { constructor(...args) { super(...args); this._onChange = this._onChange.bind(this); } _onChang...
src/containers/Coba/Coba.js
hirzanalhakim/testKumparan
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { DecrementButton } from 'components'; import { set } from 'redux/modules/name'; @connect( state => ({ counter: state.counter, name: state.name.name }), { setName: set } ) export default class Coba extends Component { c...
src/pwa.js
Nuriddinkhuja/photoshare
import React from 'react'; import ReactDOM from 'react-dom/server'; import Html from './helpers/Html'; export default function () { return `<!doctype html>${ReactDOM.renderToStaticMarkup(<Html />)}`; }
test/integration/error-in-error/pages/_error.js
BlancheXu/test
import React from 'react' class Error extends React.Component { static async getInitialProps ({ res, err }) { await Promise.reject(new Error('an error in error')) const statusCode = res ? res.statusCode : err ? err.statusCode : null return { statusCode } } render () { return ( <p> ...
analysis/warlockaffliction/src/modules/features/Checklist/Component.js
yajinni/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { SpellLink } from 'interface'; import SPELLS from 'common/SPELLS'; import COVENANTS from 'game/shadowlands/COVENANTS'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Ru...
server/sonar-web/src/main/js/apps/overview/gate/gate-conditions.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
app/javascript/mastodon/features/notifications/components/notification.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Perma...
src/svg-icons/maps/directions-walk.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsDirectionsWalk = (props) => ( <SvgIcon {...props}> <path d="M13.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zM9.8 8.9L7 23h2.1l1.8-8 2.1 2v6h2v-7.5l-2.1-2 .6-3C14.8 12 16.8 13 19 13v-2c-1.9 0-3.5-1-4.3-...
reflux-app/components/Collector/PassiveCollector.js
Orientsoft/conalog-front
import React from 'react' import { FormattedMessage } from 'react-intl'; let message = require('antd/lib/message') let Checkbox = require('antd/lib/checkbox') let Modal = require('antd/lib/modal') let Form = require('antd/lib/form') let Tooltip = require('antd/lib/tooltip') let Input = require('antd/lib/input') let B...
src/components/elements/Download.js
apburnes/allpointsburnes
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' import Icon from '../graphics/Icon' const Comp = ({ className, text = 'Download', url = '/' }) => ( <div className={className}> <a href={url} rel="noopener noreferrer" target="_blank" download> <div> ...
src/ui/auth/ForgotUsernameScreen.js
exponentjs/xde
/** * @flow */ import React from 'react'; import { Link } from 'react-router'; import { StyleSheet, css } from 'aphrodite/no-important'; import Button from 'xde/ui/components/Button'; import TextInput from 'xde/ui/components/TextInput'; import StyleConstants from 'xde/ui/StyleConstants'; import * as IdentifierRu...
app/javascript/mastodon/features/notifications/components/filter_bar.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Icon from 'mastodon/components/icon'; const tooltips = defineMessages({ mentions: { id: 'notifications.filter.mentions', defaultMessage: 'Mentions' }, favourites: { id: '...
src/js/components/gsbpm/details/sub.js
UNECE/Model-Explorer
import React from 'react' import { sparqlConnect } from 'sparql-connect' import ServicesByGSBPMSubProcess from './services-by-sub' /** * Builds the query that retrieves the details for a GSBPM sub process */ const queryBuilder = GSBPMSub => ` SELECT ?label ?code ?definition WHERE { <${GSBPMSub}> skos:prefLab...
client/src/modules/userNotes.js
cashyu/reactNode
'use strict' import React from 'react' import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { browserHistory } from 'react-router' import Notes_item from '../components/note_item' import * as actions from '../action/note' class UserNotes extends React.Component{ constructor(prop...
src/Grid/components/Row.js
jmcriffey/react-ui
import React from 'react'; import Cell from './Cell'; import {getClassName} from '../../utils'; class Row extends React.Component { constructor(...args) { super(...args); this.state = {numClicks: 0}; this.onClick = this.onClick.bind(this); } render() { return ( ...
aaf-enrollment/src/ux/Accordion.js
MicroFocus/CX
import React from 'react'; import PropTypes from 'prop-types'; import t from '../i18n/locale-keys'; export default class Accordion extends React.PureComponent { state = { open: this.props.startOpen || false }; toggleState = () => { this.setState({ open: !this.state.open ...
src/parser/warlock/destruction/modules/talents/InternalCombustion.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import SPELLS from 'common/SPELLS'; import { formatThousands, formatNumber, formatPercentage } from 'common/format'; import Statistic from 'interface/statistics/Statistic'; import Bor...
src/Components/Form/checkbox.js
gabriel-lopez-lopez/gll-billin-code-challenge
/** * Componente para customizar los horrorosos checkboxes de toda la vida * :) Este componente me encanta * */ import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; class Checkbox extends Component { constructor(props) { super(props); } render () { let c...
dialogflow-messenger/src/index.js
GoogleCloudPlatform/dialogflow-integrations
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import reportWebVitals from './reportWebVitals'; let interval = setInterval(() => { const messengerDivs = document.querySelectorAll('df-messenger') if (messengerDivs.length) clearInterval(interval); messe...
src/client/index.js
tarkalabs/material-todo-jsc2016
import React from 'react'; import injectTapEventPlugin from 'react-tap-event-plugin'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import Router from 'react-router/lib/Router'; import browserHistory from 'react-router/lib/browserHistory'; import match from 'react-router/lib/match...
app/pages/Options.js
jmsstudio/CurrencyConverter
import React from 'react'; import PropTypes from 'prop-types'; import { ScrollView, StatusBar, Platform, Linking } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import { ListItem, Separator } from '../components/List'; import { connectAlert } from '../components/Alert'; const ICON_PREFIX = Platf...
src/components/DeveloperMenu.android.js
mandlamag/ESXApp
import React from 'react'; import * as snapshot from '../utils/snapshot'; import * as auth0 from '../services/auth0'; import { View, Text, TouchableOpacity, StyleSheet } from 'react-native'; /** * Simple developer menu, which allows e.g. to clear the app state. * It can be accessed through a tiny button in ...
src/templates/news.js
handwhittled/timothymcallister.com
import { Caption, Heading, Paragraph } from '../components/typography' import { Container, Page, Section, Wrapper } from '../components/layout' import Article from '../components/article' import Helmet from 'react-helmet' import Link from 'gatsby-link' import React from 'react' export default (props) => { const nod...
app/javascript/mastodon/features/directory/index.js
d6rkaiz/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Column from 'mastodon/components/column'; import ColumnHeader from 'mastodon/components/column...
src/svg-icons/image/panorama-horizontal.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePanoramaHorizontal = (props) => ( <SvgIcon {...props}> <path d="M20 6.54v10.91c-2.6-.77-5.28-1.16-8-1.16-2.72 0-5.4.39-8 1.16V6.54c2.6.77 5.28 1.16 8 1.16 2.72.01 5.4-.38 8-1.16M21.43 4c-.1 0-.2.02-.31.06C...
src/components/Page/DragAndDrop/DragAndDrop.stories.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { storiesOf, action } from '@kadira/storybook'; import DragAndDrop from './'; storiesOf('DragAndDrop', module) .add('default view', () => (<DragAndDrop onDrop={action('onDrop')} />));
src/components/views/settings/DevicesPanelEntry.js
aperezdc/matrix-react-sdk
/* Copyright 2016 OpenMarket Ltd Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software ...
src/components/music/clefs/TrebleClef.js
Tomczik76/gradus-ad-parnassum-front-end
import React, { Component } from 'react'; export default class App extends Component { render() { return (<path transform="scale(3.5) translate(2)" d="m12.049 3.5296c0.305 3.1263-2.019 5.6563-4.0772 7.7014-0.9349 0.897-0.155 0.148-0.6437 0.594-0.1022-0.479-0.2986-1.731-0.2802-2.11 0.1304-2.6939 2.3198-6.5875 4....
client/omnichannel/realTimeMonitoring/overviews/ConversationOverview.js
iiet/iiet-chat
import React from 'react'; import { useEndpointDataExperimental } from '../../../hooks/useEndpointDataExperimental'; import CounterContainer from '../counter/CounterContainer'; const overviewInitalValue = { title: '', value: 0, }; const initialData = [ overviewInitalValue, overviewInitalValue, overviewInitalVal...
components/Deck/DeckStats.js
slidewiki/slidewiki-platform
import React from 'react'; import {Grid} from 'semantic-ui-react'; import updateDeckActivityTimelineFilters from '../../actions/stats/updateDeckActivityTimelineFilters'; import updateDeckUserStatsFilters from '../../actions/stats/updateDeckUserStatsFilters'; import {defineMessages} from 'react-intl'; import ActivityT...
static/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
juanpflores94/Hodor
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'));
srcjs/components/Select.js
spapas/react-tutorial
import React from 'react' import { danger } from '../util/colors' export default ({field, label, options, ...props}) => <div> <label forHtml={field.name}>{label}</label> <select type='text' className="u-full-width" {...field} {...props} > <option></option> {options.map(c => <option value={c.id}...
docs/src/pages/demos/app-bar/SimpleAppBar.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from 'material-ui/styles'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; const styles = { root: { flexGrow: 1, }, }; function SimpleAppBar...
src/components/elements/info_plane.js
PolideaPlayground/WebVRExperience
import {Entity} from "aframe-react"; import React from 'react'; import ReactGA from 'react-ga'; export default class Info extends React.Component { constructor(props) { super(props); this.state = { buttonVisible: true, infoVisible: false } } onPolideaClicke...
index.android.js
monkingxue/pure-book
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class purebook extends Component { render() { return ( <View style={styles.container}...
src/types/bounds.js
dantman/react-leaflet
import React from 'react'; import Leaflet from 'leaflet'; import latlngList from './latlngList'; export default React.PropTypes.oneOfType([ React.PropTypes.instanceOf(Leaflet.LatLngBounds), latlngList ]);
src/icons/LoopIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LoopIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 8V2l-8 8 8 8v-6c6.63 0 12 5.37 12 12 0 2.03-.51 3.93-1.39 5.61l2.92 2.92C39.08 30.05 40 27.14 40 24c0-8.8...
app/components/svgs/SignalQualityIndicatorSVG.js
openexp/OpenEXP
import React from 'react'; const SvgComponent = props => ( <svg id="SignalQualityIndicator" data-name="SignalQualityIndicator" style={{ minHeight: 250, minWidth: 250 }} viewBox="0 0 674.44 610.29" {...props} > <title>Signal Quality Indicator</title> <g id="Head_Plot" data-name="Head Plo...
app/javascript/mastodon/features/follow_requests/index.js
rutan/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
components/SearchSpinner.js
nattatorn-dev/expo-with-realworld
import React from 'react' import { ActivityIndicator, View, Dimensions } from 'react-native' import { createConnector } from 'react-instantsearch' const { width, height } = Dimensions.get( 'window' ) export default createConnector( { displayName: 'ConditionalQuery', getProvidedProps( props, searchState, results )...
client/extensions/woocommerce/components/bulk-select/index.js
Automattic/woocommerce-connect-client
/** @format */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import Gridicon from 'gridicons'; const BulkSelect = ( { className, disabled, id, onToggle, readOnly, selectedElements, totalElements, } ) => { const hasAllElement...
src/svg-icons/action/lock.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
src/svg-icons/image/wb-incandescent.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageWbIncandescent = (props) => ( <SvgIcon {...props}> <path d="M3.55 18.54l1.41 1.41 1.79-1.8-1.41-1.41-1.79 1.8zM11 22.45h2V19.5h-2v2.95zM4 10.5H1v2h3v-2zm11-4.19V1.5H9v4.81C7.21 7.35 6 9.28 6 11.5c0 3.31 2....
examples/UnigridExample1.js
yoonka/unigrid
/* Copyright (c) 2018, Grzegorz Junka All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following...
src/index.js
marksantoso/starwars_search
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import thunk from 'redux-thunk'; import rootReducer from './reducers/index'; import {BrowserRouter as Router, Route, Link, Switch} from 'react-router-dom'; import About...
src/js/components/icons/base/Gamepad.js
odedre/grommet-final
/** * @description Gamepad SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pr...
src/svg-icons/action/note-add.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionNoteAdd = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 14h-3v3h-2v-3H8v-2h3v-3h2v3h3v2zm-3-7V3.5L18.5 9H13z"/> </SvgIcon> );...
news/components/Nav/SmallNav.js
FreeCodeCampQuito/FreeCodeCamp
import React from 'react'; import Media from 'react-media'; import { Navbar, Row } from 'react-bootstrap'; import FCCSearchBar from 'react-freecodecamp-search'; import NavLogo from './components/NavLogo'; import NavLinks from './components/NavLinks'; import propTypes from './navPropTypes'; function SmallNav({ clickOn...
examples/js/custom/search/default-custom-search-field.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ /* eslint no-alert: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn, SearchField } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; for (let i = 0; i < quantity; i...
app/containers/SendPage.js
soosgit/vessel
// @flow import React, { Component } from 'react'; import { bindActionCreators } from 'redux'; import { Redirect } from 'react-router'; import { connect } from 'react-redux'; import { Header, Segment } from 'semantic-ui-react'; import * as AccountActions from '../actions/account'; import * as KeysActions from '../acti...
src/components/Tagline.js
Harrison1/several-levels
import React from 'react'; const Tagline = () => <p className="tagline"> web and app development </p> export default Tagline;
src/svg-icons/hardware/laptop-chromebook.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareLaptopChromebook = (props) => ( <SvgIcon {...props}> <path d="M22 18V3H2v15H0v2h24v-2h-2zm-8 0h-4v-1h4v1zm6-3H4V5h16v10z"/> </SvgIcon> ); HardwareLaptopChromebook = pure(HardwareLaptopChromebook); Har...
www/components/TagPanel/TagPanel.js
DremyGit/dremy-blog
import React from 'react'; import styles from './TagPanel.scss'; import TagItem from './TagItem'; export default class TagPanel extends React.Component { shouldComponentUpdate(nextProps) { return nextProps.tags !== this.tags; } render() { function calculateFontSize(tags, minSize, maxSize) { const...
src/Form/FormLabel.js
dsslimshaddy/material-ui
// @flow import React from 'react'; import type { Element } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import withStyles from '../styles/withStyles'; export const styles = (theme: Object) => { const focusColor = theme.palette.primary[theme.palette.type === 'light' ? 'A700...
public/components/tehtPage/tabsComponents/reusables/templates/Basic.js
City-of-Vantaa-SmartLab/kupela
import React from 'react'; const Basic = (props) => ( <div className="component"> <p>{props.title}</p> <img src={props.src} /> </div> ); export default Basic;
src/components/Grid.js
arjunsk/react-redux-audio-player
/* Components are dumb Containers are smart ~This is a container */ import React, { Component } from 'react'; import './Grid.css'; import {play_track, pause_track } from "../actions/actions_settings" import {connect} from "react-redux" class Grid extends Component { constructor(props) { super...
actor-apps/app-web/src/app/components/SidebarSection.react.js
luwei2012/actor-platform
import React from 'react'; //import { Styles, Tabs, Tab } from 'material-ui'; //import ActorTheme from 'constants/ActorTheme'; import HeaderSection from 'components/sidebar/HeaderSection.react'; import RecentSection from 'components/sidebar/RecentSection.react'; //import ContactsSection from 'components/sidebar/Conta...
definitions/npm/react-dnd_v2.x.x/test_react-dnd-v2.js
echenley/flow-typed
/* @flow */ import React from 'react'; import ReactDOM from 'react-dom'; import { DragSource, DropTarget, DragLayer, DragDropContext } from 'react-dnd'; // Test Drag Source // ---------------------------------------------------------------------- type KnightDefaultProps = { color: string; }; type KnightProps = Knig...
fields/types/date/DateColumn.js
joerter/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
components/day/PostDay.js
headwinds/porthole
/* eslint-disable */ import React from 'react'; export default class PostDay extends React.Component { constructor(props){ super(props) this.state = { posts: [], } } componentDidMount(){ } render() { return ( <div> <p><...
src/routes.js
Kelvinmijaya/reactlite-starter-kit
import React from 'react' import { Route, IndexRoute } from 'react-router' import CoreLayout from './layouts/CoreLayout/CoreLayout' import { HomeView } from './module/home' export default (store) => ( <Route path='/' component={CoreLayout}> <IndexRoute component={HomeView} /> </Route> )
lib/views/mounts-table.js
koding/kd-atom
'use babel' import React from 'react' import TableView from './table-view' import MountRow from './mount-row' export default class MountsTable extends React.Component { constructor(props) { super(props) this.state = { mountProgress: {} } } getHeadings() { return [ { label: 'Label', accessor: ...
src/js/views/flows/Flows.js
mmagr/gui
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router' import ReactCSSTransitionGroup from 'react-addons-css-transition-group'; import AltContainer from 'alt-container'; import FlowStore from '../../stores/FlowStore'; import FlowActions from '../../actions/Flow...
packages/reactor-kitchensink/src/examples/Button/Button.js
sencha/extjs-reactor
import React, { Component } from 'react'; import { Spacer, ToggleField, Container, Panel, Button, Menu, MenuItem, MenuRadioItem } from '@extjs/ext-react'; export default class ButtonExample extends Component { state = { style: '', type: 'text', round: false }; onStyleChange = ...
example/src/routing.js
mrblueblue/react-collider
import React from 'react' import {default as Router, Route, DefaultRoute} from 'react-router' import Html from './components/layout/html' // Import your pages import Home from './components/home/home' import Video from './components/video/video' // Declare your routes var routes = ( <Route handler={Html} path="/"...
tests/Rules-isAlpha-spec.js
meraki/mki-formsy-react
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); class TestForm extends React.Component { render() { r...
src/utils/client.js
m4n3z40/founders-map-quest
import React from 'react'; import {render} from 'react-dom'; import {Provider} from 'react-redux'; import {INITIAL_STATE_VARNAME, ROOT_ELEMENT_ID} from '../config/rendering'; import App from '../components/App'; export function getInitialState() { return global[INITIAL_STATE_VARNAME] || {}; } export function rend...
docs/app/Examples/modules/Popup/Usage/PopupExampleHover.js
clemensw/stardust
import React from 'react' import { Button, Popup } from 'semantic-ui-react' const PopupExampleHover = () => ( <Popup trigger={<Button icon='add' content='Add a friend' />} content='Sends an email invite to a friend.' on='hover' /> ) export default PopupExampleHover
app/index.js
luisafvaca/bungee-books-web
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import createLogger from 'redux-logger'; import App from './components/App'; import bungeBooksReducer from './reducer/bungee-books-reducer'; const store = create...
src/components/Posts.js
Iktwo/readable
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import * as Styles from "../utils/styles"; import * as API from "../utils/api"; import * as Actions from "../actions/index"; import { connect } from "react-redux"; import * as Constants from "../utils/constants"; import SortOptions from './So...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
dwango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
examples/Tab.js
chris-gooley/react-materialize
import React from 'react'; import Tabs from '../src/Tabs'; import Tab from '../src/Tab'; export default <Tabs className='tab-demo z-depth-1'> <Tab title="Test 1">Test 1</Tab> <Tab title="Test 2" active>Test 2</Tab> <Tab title="Test 3">Test 3</Tab> <Tab title="Test 4">Test 4</Tab> </Tabs>;
app/containers/NotFoundPage/index.js
keithalpichi/NobleNote
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
actor-apps/app-web/src/app/components/Main.react.js
shaunstanislaus/actor-platform
import React from 'react'; import requireAuth from 'utils/require-auth'; import VisibilityActionCreators from 'actions/VisibilityActionCreators'; import ActivitySection from 'components/ActivitySection.react'; import SidebarSection from 'components/SidebarSection.react'; import ToolbarSection from 'components/Toolba...
resource/js/components/PageList/ListView.js
kyonmm/crowi
import React from 'react'; import Page from './Page'; export default class ListView extends React.Component { render() { const listView = this.props.pages.map((page) => { return <Page page={page} />; }); return ( <div className="page-list"> <ul className="page-list-ul"> {li...
admin/client/App/elemental/ScreenReaderOnly/index.js
ratecity/keystone
import React from 'react'; import { css } from 'glamor'; function ScreenReaderOnly ({ className, ...props }) { props.className = css(classes.srOnly, className); return <span {...props} />; }; const classes = { srOnly: { border: 0, clip: 'rect(0,0,0,0)', height: 1, margin: -1, overflow: 'hidden', paddi...
docs/src/app/components/pages/components/LinearProgress/ExampleSimple.js
matthewoates/material-ui
import React from 'react'; import LinearProgress from 'material-ui/LinearProgress'; const LinearProgressExampleSimple = () => ( <LinearProgress mode="indeterminate" /> ); export default LinearProgressExampleSimple;
public/src/components/jobs/JobTable.js
sio-iago/essential-plaform-back
// React import React, { Component } from 'react'; // Data table import { DataTable } from 'react-data-components'; // API Methods const api = require('../../api/endpoints'); export class JobTable extends Component { constructor(props) { super(props); this.state = { selected: '' }; } selectRow = (r...
packages/react-vis/src/plot/series/mark-series.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // 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 use, copy, modify...
src/components/FormButton/index.js
ortonomy/flingapp-frontend
// react import React, { Component } from 'react'; //styles import styles from './FormButton.module.css'; class FormButton extends Component { constructor (props) { super(props); this.handleClick = this.handleClick.bind(this); } handleClick (e) { this.props.submit(); } render () { const...
src/components/confirm/index.js
KleeGroup/focus-components
import PropTypes from 'prop-types'; import React from 'react'; import isString from 'lodash/lang/isString'; import { builtInStore as applicationStore } from 'focus-core/application'; import { component as ConfirmationModal } from './popin'; import connect from '../../behaviours/store/connect'; const propTypes = { ...
_gatsby/src/components/About/About.js
YannickDot/yannickdot.github.io
import React from 'react'; import { rhythm } from '../../utils/typography'; import { Container } from 'react-responsive-grid'; const emojiStyle = {}; const containerStyles = { maxWidth: rhythm(24), padding: `${rhythm(0.6)} ${rhythm(3 / 4)}` }; const EmojiIsland = () => { return ( <img style={emojiSty...
examples/App.js
bluespore/react-big-calendar
import React from 'react'; import Api from './Api'; import Intro from './Intro.md'; import cn from 'classnames'; import { render } from 'react-dom'; import localizer from 'react-big-calendar/localizers/globalize'; import globalize from 'globalize'; localizer(globalize); import 'react-big-calendar/less/styles.less'; ...
ui/src/containers/Visualisations/components/TrendLinesSwitch.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import Switch from 'ui/components/Material/Switch'; /** * @param {boolean} props.showTrendLines * @param {(trendLines: boolean) => void} props.onChange */ const TrendLinesSwitch = ({ showTrendLines, onChange, }) => ( <div className="form-group"> ...
src/index.js
agconti/tv
import React from 'react' import ReactDOM from 'react-dom' import App from './App' import './index.css' ReactDOM.render( <App />, document.getElementById('root') )
01-react-just-render/src/App.js
dtanzer/react-basic-examples
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <div className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h2>Welcome to React</h2> ...
vertigo-orchestra-demo/ui/app/initializer/after.js
KleeGroup/orchestra
//////////////////////////////////////////////////////// /// SCRIPT EXECUTED AFTER DOM CONTENT LOADED //////////////////////////////////////////////////////// import React from 'react'; import globalLinkInitializer from './scripts/global-link-initializer'; import storesInitializer from './scripts/stores-initializer'; i...
new-lamassu-admin/src/pages/Triggers/CustomInfoRequests/Forms/ChooseType.js
lamassu/lamassu-server
import { Field } from 'formik' import React from 'react' import * as Yup from 'yup' import ToggleButtonGroup from 'src/components/inputs/formik/ToggleButtonGroup' import { H4 } from 'src/components/typography' import { ReactComponent as Keyboard } from 'src/styling/icons/compliance/keyboard.svg' import { ReactComponen...
src/Col.js
kwnccc/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import styleMaps from './styleMaps'; import CustomPropTypes from './utils/CustomPropTypes'; const Col = React.createClass({ propTypes: { /** * The number of columns you wish to span * * for Extra small devices Phones (<768px) * ...
src/svg-icons/content/link.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3.1 3....
client/ui/outlines/instaclone.story.js
LestaD/InstaClone
import React from 'react' import { storiesOf } from '@storybook/react' import Instaclone from './instaclone.svg' storiesOf('ui/outlines', module) .addWithJSX('instaclone', () => ( <Instaclone /> ))
node_modules/react-select/examples/src/components/Virtualized.js
pris54/reactjs-simple-form
import React from 'react'; import VirtualizedSelect from 'react-virtualized-select'; const DATA = require('../data/cities'); var CitiesField = React.createClass({ displayName: 'CitiesField', getInitialState () { return {}; }, updateValue (newValue) { this.setState({ selectValue: newValue }); }, render ...
app/containers/NotFoundPage/index.js
KraigWalker/frontendfriday
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import messages from './messages'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; export default function NotFound() { return ( <article> ...
src/svg-icons/image/iso.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageIso = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5.5 7.5h2v-2H9v2h2V9H9v2H7.5V9h-2V7.5zM19 19H5L19 5v14zm-2-2v-1.5h-5V17h5z"/> ...
src/svg-icons/action/invert-colors.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionInvertColors = (props) => ( <SvgIcon {...props}> <path d="M17.66 7.93L12 2.27 6.34 7.93c-3.12 3.12-3.12 8.19 0 11.31C7.9 20.8 9.95 21.58 12 21.58c2.05 0 4.1-.78 5.66-2.34 3.12-3.12 3.12-8.19 0-11.31zM12 1...
packages/material-ui/src/Table/TablePaginationActions.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft'; import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight'; import withTheme from '../styles/withTheme'; import IconButton from '../IconButton'; /** * @ignore - intern...
client/src/components/Tile.js
ccwukong/lfcommerce-react
import React from 'react'; import PropTypes from 'prop-types'; import { Card, CardTitle, } from 'reactstrap'; const Tile = props => { const { tileStyle, titleStyle, textStyle, title, description } = props; return ( <Card body style={tileStyle || {}}> <CardTitle style={titleStyle || {}}> {titl...
springboot/GReact/src/main/resources/static/app/routes/widgets/components/TabbedWidgetDemo.js
ezsimple/java
import React from 'react' import {Tabs, Tab} from 'react-bootstrap' import JarvisWidget from '../../../components/widgets/JarvisWidget' export default class TabbedWidgetDemo extends React.Component { constructor(props) { super(props); this.state = { demoShowTabs: false } } render() { v...
src/entry/index.js
hutxs/iconfig-antd
import '../common/lib'; import App from '../containers/App'; import ReactDOM from 'react-dom'; import React from 'react'; ReactDOM.render(<App />, document.getElementById('root'));
packages/core/admin/admin/src/content-manager/components/InputJSON/FieldError.js
wistityhq/strapi
import React from 'react'; import PropTypes from 'prop-types'; import { useIntl } from 'react-intl'; import { Typography } from '@strapi/design-system/Typography'; export const FieldError = ({ id, error, name }) => { const { formatMessage } = useIntl(); const errorMessage = error ? formatMessage({ id: error, defau...