path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/disco/routes.js
mstriemer/addons-frontend
import React from 'react'; import { Router, Route } from 'react-router'; import App from './containers/App'; import DiscoPane from './containers/DiscoPane'; export default ( <Router component={App}> <Route path="/:lang/firefox/discovery/pane/:version/:platform/:compatibilityMode" component={DiscoPan...
src/svg-icons/device/signal-cellular-1-bar.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/><path d="M12 12L2 22h10z"/> </SvgIcon> ); DeviceSignalCellular1Bar = pure(DeviceSignalCellular1Bar); Device...
components/AppFooter.js
Meadowcottage/meadowcottagexyz
import React from 'react' import { BounceUp } from 'animate-components' export default class AppFooter extends React.Component { render () { return ( <BounceUp as='div' duration='2s' className='appFooter'> <a href='https://github.com/meadowcottage/meadowcottagexyz'> <i className='fa fa-co...
src/components/AddConfig/AddConfig.js
TheModevShop/craft-app
import React from 'react'; import {browserHistory} from 'react-router'; import _ from 'lodash'; import formIsComplete from 'utility/formIsComplete'; import AddConfigForm from 'components/Forms/AddConfigForm'; import './add-config.less'; class AddConfig extends React.Component { constructor(...args) { super(...ar...
votrfront/js/coursesStats.js
fmfi-svt/votr
import React from 'react'; var ZNAMKY = {'A': 1, 'B': 1.5, 'C': 2, 'D': 2.5, 'E': 3, 'F': 4}; export function coursesStats(hodnotenia) { var result = {}; ['zima', 'leto', 'spolu'].forEach((type) => { result[type] = { count: 0, creditsEnrolled: 0, creditsObtained: 0 }; }); function add(type, credits, ob...
src/client/components/Radial.react.js
SteveStrongBAH/DataLiftDesktop
import React from 'react'; import classNames from 'classnames'; var Radial = React.createClass({ render: function () { var percentage; if ((this.props.progress !== null && this.props.progress !== undefined) && !this.props.spin && !this.props.error) { percentage = ( <div className="percentage"><...
src/forms/CurrentExpenses.js
shp54/cliff-effects
// REACT COMPONENTS import React from 'react'; import { Form, Radio, Checkbox, Header, } from 'semantic-ui-react'; // PROJECT COMPONENTS import { FormPartsContainer, FormHeading, IntervalColumnHeadings, CashFlowRow, ControlledRadioYesNo, } from './formHelpers'; import { ContractRentField, RentSha...
pkg/interface/chat/src/js/components/lib/icons/icon-spinner.js
jfranklin9000/urbit
import React, { Component } from 'react'; export class Spinner extends Component { render() { let classes = !!this.props.classes ? this.props.classes : ""; let text = !!this.props.text ? this.props.text : ""; let awaiting = !!this.props.awaiting ? this.props.awaiting : false; if (awaiting) { ...
lib/components/bundles.js
conveyal/scenario-editor
// @flow import Icon from '@conveyal/woonerf/components/icon' import React from 'react' import type {Children} from 'react' import {Application, Dock, Title} from './base' export default function Bundles ({children}: {children?: Children}) { return ( <Application> <Title><Icon type='database' /> GTFS Bund...
frontend/modules/browse/containers/Browse.js
RyanNoelk/OpenEats
import React from 'react' import PropTypes from 'prop-types' import { bindActionCreators } from 'redux' import { connect } from 'react-redux' import queryString from 'query-string' import { injectIntl } from 'react-intl'; import history from '../../common/history' import Search from '../components/Search' import * as...
template/src/index.js
peterbrinck/pb-react-scripts
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, browserHistory, IndexRoute } from 'react-router'; import store from './store'; import App from './App'; import NotFound from './views/NotFound'; ReactDOM.render( <Provider store={store}> <...
actor-apps/app-web/src/app/components/modals/invite-user/ContactItem.react.js
ONode/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; import classnames from 'classnames'; import AvatarItem from 'components/common/AvatarItem.react'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ContactItem extends React.Com...
src/components/Header/CustomMenuItem.js
kritikasoni/smsss-react
import React from 'react'; import { LinkContainer } from 'react-router-bootstrap'; import MenuItem from 'react-bootstrap/lib/MenuItem'; import classes from './Tab.scss' export const CustomMenuItem = (props) => ( <LinkContainer to={props.to}> <MenuItem> {props.name} </MenuItem> </LinkContainer> ); exp...
fields/types/textarea/TextareaField.js
wmertens/keystone
import Field from '../Field'; import React from 'react'; module.exports = Field.create({ displayName: 'TextareaField', renderField () { var styles = { height: this.props.height, }; return <textarea name={this.props.path} styles={styles} ref="focusTarget" value={this.props.value} onChange={this.valueChanged}...
dist/lib/carbon-fields/assets/js/fields/components/radio-image/index.js
ArtFever911/statrer-kit
/** * The external dependencies. */ import React from 'react'; import PropTypes from 'prop-types'; import { setStatic } from 'recompose'; /** * The internal dependencies. */ import Field from 'fields/components/field'; import { enhance } from 'fields/components/radio'; import { TYPE_RADIO_IMAGE } from 'fields/cons...
src/components/common/svg-icons/social/notifications-off.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialNotificationsOff = (props) => ( <SvgIcon {...props}> <path d="M20 18.69L7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72l-1-1.03zM12 22c1.11 0 2-.89 2-2h-4c0 1.11...
src/components/Home.js
vsherms/LifeCoach
import React from 'react'; import { Jumbotron, Well, Col, Row } from 'react-bootstrap'; import { inject, observer } from 'mobx-react'; import { LinkContainer } from 'react-router-bootstrap'; import HomeWheel from './HomeWheel'; import HomeGoals from './HomeGoals'; class Home extends React.Component{ constructor(){ ...
packages/datagrid/src/components/DefaultCellRenderer/DefaultCellRenderer.component.js
Talend/ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import { SkeletonParagraph } from '@talend/design-system'; import { AVRO_TYPES } from '../../constants'; import DATAGRID_PROPTYPES from '../DataGrid/DataGrid.proptypes'; import QualityIndicator from './QualityIndicator...
src/components/App/setViewport.js
yousefmoazzam/ZebraWithFlux
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * 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, { Component } from 'react'; // eslint-disable-line no-unused-vars import { ...
src/svg-icons/action/assessment.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
src/components/LoginCallback/LoginCallback.js
City-of-Helsinki/helerm-ui
import React from 'react'; import PropTypes from 'prop-types'; import { Redirect } from 'react-router'; import Loader from '../Loader'; export class LoginCallback extends React.Component { componentDidMount() { this.props.handleCallback() } render () { const {isInitialized} = this.props if (!isIn...
docs/src/components/Home/Preface/Preface.js
seekinternational/seek-asia-style-guide
import React from 'react'; import { PageBlock, Section, Columns, Text } from 'seek-asia-style-guide/react'; export default () => ( <PageBlock> <Section header> <Text screaming>A principled design process</Text> </Section> <Section> <Text waving regular>SEEK have developed 10 principles that ...
src/components/SvgLine/SvgLine/SvgLine.js
easingthemes/notamagic
import React from 'react'; /** * React component implementation. * * @author dfilipovic * @namespace ReactApp * @class SvgLine * @extends ReactApp */ export class SvgLine extends React.Component { // --------------------------------------------------------------------------------------------------------------...
src/apps/SocketsRegistry/SocketsRegistryInnerToolbar.js
Syncano/syncano-dashboard
import React from 'react'; import SocketsRegistryActions from './SocketsRegistryActions'; import { FlatButton, RaisedButton } from 'material-ui'; import { colors as Colors } from 'material-ui/styles'; const SocketsRegistryInnerToolbar = ({ filter, filterBySyncano }) => { const styles = { root: { width: '...
src/frontend/characters/components/CharacterProfile.js
plotify/plotify
import { getProfileGroupIds, isCharacterEditModeEnabled, isProfileEmpty, isProfileFetching } from '../selectors' import CharacterProfileGroup from './CharacterProfileGroup' import { CircularProgress } from 'material-ui/Progress' import ProfileEmptyHint from './ProfileEmptyHint' import ProfileName from './Chara...
cheesecakes/plugins/users-permissions/admin/src/components/BoundRoute/index.js
strapi/strapi-examples
/** * * BoundRoute * */ import React from 'react'; import { get, includes, map, tail, toLower } from 'lodash'; import { FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import cn from 'classnames'; import styles from './styles.scss'; function BoundRoute({ route }) { const title = get(route,...
examples/check-lists/index.js
ashutoshrishi/slate
import { Editor } from 'slate-react' import { Value } from 'slate' import React from 'react' import initialValue from './value.json' /** * Check list item. * * @type {Component} */ class CheckListItem extends React.Component { /** * On change, set the new checked value on the block. * * @param {Event}...
src/interface/report/FightSelectionPanel.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import Panel from 'interface/others/Panel'; import './FightSelection.scss'; import FightSelectionPanelList from './FightSelectionPanelList'; const FightSelectionPanel = props => { const { report, killsOnly } = props; return ( <> <Panel pad...
app/javascript/mastodon/features/account_gallery/index.js
TootCat/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount, fetchAccountMediaTimeline, expandAccountMediaTimeline, } from '../../actions/accounts'; import LoadingIndicator from '../../compo...
test/fixtures/with-custom-handlers/input.js
kadirahq/babel-plugin-react-docgen
import React from 'react'; import './styles.css'; class ErrorBox extends React.Component { render() { const { children } = this.props; return ( <div className="error-box"> {children} </div> ); } } ErrorBox.propTypes = { /** @deprecated This is the description for prop */ depre...
src/app/components/LayoutTwo/LayoutTwo.js
harsh376/Hector
import React from 'react'; import { Link } from 'react-router'; import SidebarContainer from './components/SidebarContainer'; function LayoutTwo({ content, routes }) { const depth = routes.length; return ( <div> <SidebarContainer /> <div className="contentTwo"> <ul className="breadcrumbs-...
src/components/TextInput/TextInput.js
tlraridon/ps-react-train-tlr
import React from 'react'; import PropTypes from 'prop-types'; import Label from '../Label'; /** 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", required = false, onChange, placehold...
app/welcome/Welcome.js
stefanKuijers/aw-fullstack-app
// @flow import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import TextField from 'material-ui/TextField'; import styles from './Welcome.css'; const removeLoader = function () { const element = document.getElementById('app-container'); element.className = 'app-loaded'; }...
src/components/visualization/index.js
Ameobea/noise-asmjs
//! Wrapper around the visualization's core that only loads once `redux-form` has been initialized. import React from 'react'; import { connect } from 'react-redux'; import { setStageContainerSize } from 'src/actions/stage'; import VizCanvas from './VizCanvas'; const Vizualization = ({enginePointer, setStageContaine...
src/Async.js
esleducation/react-select
import React from 'react'; import Select from './Select'; import stripDiacritics from './utils/stripDiacritics'; let requestId = 0; function initCache (cache) { if (cache && typeof cache !== 'object') { cache = {}; } return cache ? cache : null; } function updateCache (cache, input, data) { if (!cache) return...
react-boilerplate/internals/templates/containers/HomePage/index.js
Sakuyakun/Yorha-Experiment
/* * HomePage * * This is the first thing users see of our App, at the '/' 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 and remove * the l...
react-redux/src/index.js
jasonrhodes/how-to-react
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import { createStore } from 'redux' import App from './components/app' // reducers import reducers from './reducers' const store = createStore(reducers) ReactDOM.render( <Provider store={store}> <App /> </Provid...
examples/huge-apps/routes/Course/routes/Announcements/routes/Announcement/components/Announcement.js
zipongo/react-router
/*globals COURSES:true */ import React from 'react' class Announcement extends React.Component { render() { let { courseId, announcementId } = this.props.params let { title, body } = COURSES[courseId].announcements[announcementId] return ( <div> <h4>{title}</h4> <p>{body}</p> ...
Paths/React/05.Building Scalable React Apps/9-react-boilerplate-building-scalable-apps-m9-exercise-files/Before/app/containers/NavigationContainer/index.js
phiratio/Pluralsight-materials
/* * * NavigationContainer * */ import React from 'react'; import { connect } from 'react-redux'; import selectNavigationContainer from './selectors'; import Navigation from '../../components/Navigation'; import { requestTopics, selectTopic, toggleDrawer } from './actions'; export class NavigationContainer extend...
dev/react-subjects/subjects/Components/solution.js
AlanWarren/dotfiles
//////////////////////////////////////////////////////////////////////////////// // Exercise: // // - Render a tab for each country with its name in the tab // - Make it so that you can click on a tab and it will appear active // while the others appear inactive // - Make it so the panel renders the correct content f...
src/svg-icons/image/filter.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter = (props) => ( <SvgIcon {...props}> <path d="M15.96 10.29l-2.75 3.54-1.96-2.36L8.5 15h11l-3.54-4.71zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm18-4H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1...
src/map/js/components/Modals/AboutModal.js
wri/gfw-water
import AboutWrapper from 'components/Modals/AboutWrapper'; import {modalStore} from 'stores/ModalStore'; import {aboutModalConfig} from 'js/config'; import React from 'react'; let toolsSvg = '<use xlink:href="#about-icon-tools" />'; let economicsSvg = '<use xlink:href="#about-icon-economics" />'; let guidanceSvg = '<...
src/App/shared/TrainerTable/index.js
findjanice/node-api-server
/*** @jsx React.DOM */ import React from 'react'; var TrainerTable = React.createClass({ render: function() { var trainerRows = this.props.trainers.map(function(trainer) { var trainerLink = `#/trainers/${trainer.id}`; return ( <tr key={trainer.id}> ...
packages/material-ui-icons/src/HdrOn.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let HdrOn = props => <SvgIcon {...props}> <path d="M21 11.5v-1c0-.8-.7-1.5-1.5-1.5H16v6h1.5v-2h1.1l.9 2H21l-.9-2.1c.5-.3.9-.8.9-1.4zm-1.5 0h-2v-1h2v1zm-13-.5h-2V9H3v6h1.5v-2.5h2V15H8V9H6.5v2zM13 9H9.5v6H13c.8...
packages/@lyra/default-login/src/LoginDialogContent.js
VegaPublish/vega-studio
/* eslint-disable react/no-multi-comp */ import React from 'react' import PropTypes from 'prop-types' import config from 'config:lyra' import BrandLogo from 'part:@lyra/base/brand-logo?' import styles from './styles/LoginDialogContent.css' const projectName = (config.project && config.project.name) || '' /* eslint-di...
CurrencyCharts/source/components/currencySelector/CurrencySelector.js
matheusrabelo/CurrencyCharts
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import * as currencyActions from '../../actions/currencyActions'; class CurrencySelector extends React.Component { constructor(props, context) { super(props, co...
src/components/tabs/index.js
LINKIWI/react-elemental
import PropTypes from 'prop-types'; import React from 'react'; import Spacing from 'components/spacing'; import Text from 'components/text'; import PrimaryTabOption from 'components/tabs/primary-tab-option'; import SecondaryTabOption from 'components/tabs/secondary-tab-option'; import noop from 'util/noop'; /** * Hor...
packages/icons/src/md/maps/LocalBar.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLocalBar(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M42 10L26 28v10h10v4H12v-4h10V28L6 10V6h36v4zm-27.13 4h18.26l3.56-4H11.31l3.56 4z" /> </IconBase> ); } export default MdLocalBar;
src/components/HomePage.js
tsaarni/docker-npm-builder
import React from 'react'; import {Link} from 'react-router'; const HomePage = () => { return ( <div> <h1>React Slingshot</h1> <h2>Get Started</h2> <ol> <li>Review the <Link to="fuel-savings">demo app</Link></li> <li>Remove the demo and start coding: npm run remove-demo</li> ...
src/js/components/icons/base/DocumentCloud.js
odedre/grommet-final
/** * @description DocumentCloud 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. ...
packages/node_modules/@ciscospark/react-component-activity-text/src/index.js
bzang/react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {filterSync} from '@ciscospark/helper-html'; import styles from './styles.css'; export default function ActivityText(props) { const { content, displayName } = props; /* eslint-disable-reason cont...
node_modules/react-icons/md/equalizer.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const MdEqualizer = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m26.6 15h6.8v18.4h-6.8v-18.4z m-20 18.4v-13.4h6.8v13.4h-6.8z m10 0v-26.8h6.8v26.8h-6.8z"/></g> </Icon> ) export default MdEqualizer
docs/app/Examples/collections/Breadcrumb/Variations/BreadcrumbExampleTinySize.js
shengnian/shengnian-ui-react
import React from 'react' import { Breadcrumb } from 'shengnian-ui-react' const BreadcrumbExampleTinySize = () => ( <Breadcrumb size='tiny'> <Breadcrumb.Section link>Home</Breadcrumb.Section> <Breadcrumb.Divider icon='right chevron' /> <Breadcrumb.Section link>Registration</Breadcrumb.Section> <Bread...
src/ProfessionField.js
greenteamer/form
import React, { Component } from 'react'; import Select2 from './Select2'; import _ from 'underscore'; export default class ProfessionField extends Component { constructor(props) { super(props); this.state = { list: this.props.professions, isOpen: false, value: {}, text: "", keyInde...
docs/app/Examples/elements/List/Types/ListExampleTree.js
aabustamante/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleTree = () => ( <List> <List.Item> <List.Icon name='folder' /> <List.Content> <List.Header>src</List.Header> <List.Description>Source files for project</List.Description> <List.List> <...
src/svg-icons/action/grade.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGrade = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ActionGrade = pure(ActionGrade); ActionGrade....
blueocean-material-icons/src/js/components/svg-icons/hardware/toys.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const HardwareToys = (props) => ( <SvgIcon {...props}> <path d="M12 12c0-3 2.5-5.5 5.5-5.5S23 9 23 12H12zm0 0c0 3-2.5 5.5-5.5 5.5S1 15 1 12h11zm0 0c-3 0-5.5-2.5-5.5-5.5S9 1 12 1v11zm0 0c3 0 5.5 2.5 5.5 5.5S15 23 12 23V12z"/> </SvgIcon> ); Hardware...
src/templates/tags-list-template.js
colmdoyle/colmdoyle.github.io
// @flow strict import React from 'react'; import { Link } from 'gatsby'; import kebabCase from 'lodash/kebabCase'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Page from '../components/Page'; import { useSiteMetadata, useTagsList } from '../hooks'; const TagsListTempl...
src/svg-icons/maps/local-shipping.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalShipping = (props) => ( <SvgIcon {...props}> <path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-...
packages/insights-web/src/scenes/explorer/sidebar/models/index.js
mariusandra/insights
import React from 'react' import { useActions, useValues } from 'kea' import { Empty, Icon, Tree } from 'antd' import HighlightText from 'lib/utils/highlight-text' import connectionLogic from '../../connection/logic' import explorerLogic from '../../logic' import logic from './logic' const { TreeNode } = Tree; exp...
src/frontend/containers/auth/check.js
PiTeam/garage-pi
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getAuthPropType, getDoorPropType, getUserPropType } from 'proptypes'; import { fetchUsers, fetchDoors, fetchUserDoors, checkAuthToken } from 'actions'; export function checkAuth(Component) { class C...
client/src/components/Application.js
codefordenver/Circular
import React from 'react'; import PropTypes from 'prop-types'; import NavBar from '../components/Navigation/Navbar'; const Application = ({ auth, closeMap, firebaseSignInGoogle, firebaseSignInFacebook, firebaseSignOut, userSignatures, ...props }) => ( <div className="app-container"> <NavBar a...
src/apps/DataObjects/DataObjectsTable/ColumnsFilterMenu.js
Syncano/syncano-dashboard
import React from 'react'; import { IconButton, IconMenu } from 'material-ui'; import ColumnsFilterMenuListItem from './ColumnsFilterMenuListItem'; const ColumnsFilterMenu = ({ columns, checkToggleColumn }) => ( <IconMenu iconButtonElement={<IconButton iconClassName="synicon-view-column" />} closeOnItemTouch...
src/containers/DevTools.js
magnusbae/laughing-octo-eureka
import React from 'react'; import { createDevTools } from 'redux-devtools'; import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; export default createDevTools( <DockMonitor toggleVisibilityKey='ctrl-h' changePositionKey='ctrl-q' > <LogMonitor /> </...
packages/components/src/SidePanel/SidePanel.stories.js
Talend/ui
/* eslint-disable react/no-multi-comp */ import React from 'react'; import { action } from '@storybook/addon-actions'; import Layout from '../Layout'; import SidePanel from './SidePanel.component'; import appStyle from '../../stories/config/themes.scss'; const actions = [ { label: 'Preparations', icon: 'talend-da...
node_modules/react-router/es/MemoryRouter.js
Aznachang/CompanyPersonelReactJS
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 &...
src/svg-icons/content/low-priority.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentLowPriority = (props) => ( <SvgIcon {...props}> <path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7....
react/components/HousingDisplay.js
sonicolasj/gitehub
import React from 'react' import { Text, View, Image, Button, Share } from 'react-native' import RNCalendarEvents from 'react-native-calendar-events'; export default class HousingDisplay extends React.Component { constructor(props) { super(props); this.props.housing = this.props.housing...
form/views/ReCaptchaFieldView.js
ExtPoint/yii2-frontend
import React from 'react'; import PropTypes from 'prop-types'; import ReCaptcha from 'react-google-recaptcha'; import {html} from 'components'; import FieldWrapper from './FieldWrapper'; const bem = html.bem('ReCaptchaFieldView'); export default class ReCaptchaFieldView extends React.Component { static propType...
app/components/Footer/index.js
michiganhackers/website
/* * Footer * */ import React from 'react'; import styled from 'styled-components'; import SectionHeader from 'components/SectionHeader'; const SocialLinkContainer = styled.div` display: flex; justify-content: center; `; const SocialLink = styled.div` width: 60px; height: 60px; margin: 15px; ...
public/kibana-integrations/kibana-vis.js
wazuh/wazuh-kibana-app
/* * Wazuh app - React component for custom kibana visualizations. * Copyright (C) 2015-2022 Wazuh, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, ...
src/container/user/login.js
mxczpiscioneri/ipaday-react-native
import React, { Component } from 'react'; import { StyleSheet, AsyncStorage, View, Image } from 'react-native'; import { Container, Header, Left, Body, Button, Icon, Title, Content, Text, Spinner } from 'native-base'; import { connect } from 'react-redux'; import FBSDK, { FBLoginManager, LoginButton, AccessToken } from...
src/components/Nav.js
nickeblewis/walkapp
/** * Component that lists all Posts */ import React from 'react' import { Link } from 'react-router' import { graphql } from 'react-apollo' import { withRouter } from 'react-router' import gql from 'graphql-tag' class Nav extends React.Component { static propTypes = { router: React.PropTypes.object.isRequ...
client/components/AmountWell.js
robinmoussu/kresus
import React from 'react'; import T from './Translated'; export class AmountWell extends React.Component { constructor(props) { // this.props = { // backgroundColor, // title, // subtitle, // operations, // initialAmount, // filterFunction // }...
src/index.js
chenqingspring/react-lottie
import React from 'react'; import PropTypes from 'prop-types'; import lottie from 'lottie-web'; export default class Lottie extends React.Component { componentDidMount() { const { options, eventListeners, } = this.props; const { loop, autoplay, animationData, renderer...
src/server/render.js
nefa/Leeact
import DocumentTitle from 'react-document-title'; import Html from './html'; import Promise from 'bluebird'; import React from 'react'; import Router from 'react-router'; import config from './config'; import initialState from './initialstate'; import routes from '../client/routes'; import {state} from '../client/state...
examples/huge-apps/components/GlobalNav.js
barretts/react-router
import React from 'react'; import { Link } from 'react-router'; const styles = {}; class GlobalNav extends React.Component { static defaultProps = { user: { id: 1, name: 'Ryan Florence' } }; constructor (props, context) { super(props, context); this.logOut = this.logOut.bind(this);...
src/rsg-components/Props/PropsRenderer.js
bluetidepro/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Group from 'react-group'; import objectToString from 'javascript-stringify'; import Arguments from 'rsg-components/Arguments'; import Argument from 'rsg-components/Argument'; import Code from 'rsg-components/Code'; import JsDoc from 'rsg-components/J...
app/js/components/Header.js
raulalgo/scales-react
'use strict'; import React from 'react'; class Header extends React.Component { constructor(props) { super(props); } render() { return ( <header> helmantica </header> ); } } export default Header;
src/containers/TodoPage.js
kclowes/new-edit-blog-fe
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { createNewTodo, getTodos } from '../store/todos/actions'; import TodoForm from '../components/TodoForm'; import TodosList from '../components/TodosList'; export class TodoPage extends Componen...
src/js/components/icons/base/Volume.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
react-router-demo/lessons/12-navigating/modules/About.js
zhangjunhd/react-examples
import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
client/views/admin/settings/inputs/PasswordSettingInput.stories.js
VoiSmart/Rocket.Chat
import { Field } from '@rocket.chat/fuselage'; import { action } from '@storybook/addon-actions'; import React from 'react'; import PasswordSettingInput from './PasswordSettingInput'; export default { title: 'admin/settings/inputs/PasswordSettingInput', component: PasswordSettingInput, decorators: [(storyFn) => <F...
components/illustrations/binary-search/item.js
skidding/illustrated-algorithms
import PropTypes from 'prop-types'; import React from 'react'; import EmojiBlock from '../shared/emoji-block'; export default function Item({ frame }, { layout }) { const { value, opacity, rotation, } = frame.item; const { top, left, } = layout.item; if (!value) { return null; } ...
src/containers/Form/NumberPage.js
Aus0049/react-component
/** * Created by Aus on 2017/7/31. */ import React from 'react' import ListTitle from '../../components/DataDisplay/ListTitle/' import {Number} from '../../components/Form/' import Tools from '../../components/Tools/Tools' class NumberPage extends React.Component { constructor (props) { super(props); ...
src/app/powerRanger/components/PowerRangerDetail.js
brandondewitt/react-transform-boilerplate
import React, { Component } from 'react'; import { Link } from 'react-router'; export class PowerRangerDetail extends Component { render() { let { powerRanger } = this.props; return ( <div> <Link className='btn btn-default' to={`/powerRangers/${powerRanger.id}/edit`}>Edit</Link> <div>id...
src/client/config/routes.js
trippian/trippian
import React from 'react' import { Router, Route, IndexRoute, browserHistory } from 'react-router' import { App, Home, About, JoinUs, NotFound, Press, Destination, DestinationDetail, DestinationPost, Contact, InquiryAdd, InquiryDetail, InquiryList, Login, LoginWrapper, LoginSuccess, Logout, PopularTrips, T...
stories/index.js
xclix/modalo
import React from 'react'; import { storiesOf } from '@storybook/react'; import { createModal } from '../src'; import '../src/Renderer/Renderer.scss'; storiesOf('Modal', module) .add('default renderer', () => { const SimpleModal = () => ( <div style={{ padding: '30px' }}> <h1>Hi!</h1> <p>I ...
src/container/UnreadMessage/index.js
ztplz/CNode-react-native
/** * React Native App * https://github.com/ztplz/CNode-react-native * email: mysticzt@gmail.com */ import React, { Component } from 'react'; import { View, Text, Image, FlatList, Keyboard, Platform, TextInput, RefreshControl, TouchableHighlight, TouchableOpacity, StyleSheet } from 'react-nat...
src/WebApp.js
Tsarpf/babel-webpack-react-router-eslint-boilerplate
import React from 'react'; import Application from './containers/application'; import createBrowserHistory from 'history/lib/createBrowserHistory'; React.render( <Application history={ createBrowserHistory() }/>, document.getElementById( 'app' ) );
src/index.js
Jalissa/rss-feed-client
import React from 'react'; import { render } from 'react-dom'; import getStore from './store/store'; import { Provider } from 'react-redux'; import { BrowserRouter, Route } from 'react-router-dom'; import App from './App'; import RssSeekerContainer from './components/RssSeeker'; import RssViewer from './components/RssV...
src/containers/AttributesPanel.js
crp2002/ID3-React
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getScatterPlot, updateWidth, updateHeight, updateTop, updateBottom, updateRight, updateLeft, update_x_name, update_x_nameColor, update_x_ticks, update_x_axisColor, update_y_name, update...
src/Profile/index.js
reinaldoferreira/macmillan-gamification
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import './Profile.css'; import SocialBadge from '../SocialBadge' import Table from '../Table' class Profile extends Component { constructor(props) { super(props); this.state = { badge: null } } componentDidMoun...
src/docs/examples/EyeIcon/Example.js
vonZ/rc-vvz
import React from 'react'; import EyeIcon from 'ps-react/EyeIcon'; export default function EyeIconExample() { return <EyeIcon />; }
generators/app/templates/src/utils/form.js
gmmendezp/generator-nyssa-fe
import React from 'react'; import Autocomplete from 'react-md/lib/Autocompletes'; import Checkbox from 'react-md/lib/SelectionControls/Checkbox'; import DatePicker from 'react-md/lib/Pickers/DatePickerContainer'; import SelectionControlGroup from 'react-md/lib/SelectionControls/SelectionControlGroup'; import SelectFiel...
src/js/components/icons/base/Tip.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...
packages/react/src/components/StructuredList/StructuredList.Skeleton.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 cx from 'classnames'; import { usePrefix } from '../../internal/usePref...
src/components/settings.js
jorgerobles/LaserWeb4
import React from 'react'; import ReactDOM from 'react-dom' import { connect } from 'react-redux'; import stringify from 'json-stringify-pretty-compact'; import { FileStorage, LocalStorage } from '../lib/storages'; import update from 'immutability-helper'; import omit from 'object.omit'; import Validator from 'validat...
src/containers/search-bar.js
alexnsl/ipmaps
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { filterIpMap } from 'ipmaps/actions/'; import { bindActionCreators } from 'redux'; class SearchBar extends Component { constructor(props) { super(props); this.state = { searchText: '' }; } onInputChange(event) { ...
app/src/pages/User.js
darjanin/xp-library
import React from 'react' import databaseUtils from './utils/DatabaseUtils' import {userRequired} from '../ValidationUtils' export default class User extends React.Component { constructor(props) { super(props) this.state = { errors: [], userInfo: null, userBooks: null, userComments: n...