path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/python/plain-wordmark/PythonPlainWordmark.js
fpoumian/react-devicon
import React from 'react' import PropTypes from 'prop-types' import SVGDeviconInline from '../../_base/SVGDeviconInline' import iconSVG from './PythonPlainWordmark.svg' /** PythonPlainWordmark */ function PythonPlainWordmark({ width, height, className }) { return ( <SVGDeviconInline className={'PythonPlai...
src/app.js
PrchalTomas/tic-tac-toe
// @flow import React from 'react'; import ReactDOM from 'react-dom'; import { Route } from 'react-router'; import store, { history } from './store'; import { Provider } from 'react-redux'; import { ConnectedRouter } from 'react-router-redux'; import './app.scss'; import GameBoard from './component/gameboard/game-b...
app/client/src/routes/manageAction/index.js
uprisecampaigns/uprise-app
import React from 'react'; import ManageAction from 'scenes/ManageAction'; import Layout from 'components/Layout'; import organizeActionPaths from 'routes/organizeActionPaths'; const path = organizeActionPaths({ path: '/organize/:campaignSlug/opportunity/:actionSlug', component: (campaign, action) => ( <Layo...
src/index.js
suhodolskiy/bsuir-evt-laba-2017
import React from 'react'; import { render } from 'react-dom'; import { BrowserRouter } from 'react-router-dom'; import App from './components/App'; render( <BrowserRouter> <App/> </BrowserRouter>, document.getElementById('app') );
src/components/gameover/GameOver.js
drunknzombiecow/fcc-challenge-roguelike
/* eslint-disable react/forbid-prop-types */ import React from 'react'; import PropTypes from 'prop-types'; import './GameOver.css'; export default function GameOver(props) { const classNames = ['GameOver']; const message = (props.isWon) ? 'You have won! Wanna rock again?' : 'You have lost! Wa...
src/components/footer.js
Kakise/Kaki-Blog
import React, { Component } from 'react'; import { Link } from 'react-router'; import { fetchPosts } from '../actions/index'; // Pagination system (beautiful <3) class Footer extends Component { componentWillMount() { var posts = fetchPosts(this.props.params.id); } render() { if (Math.trunc(posts.pay...
internals/templates/homePage/homePage.js
Zurico/t7
/* * 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...
src/svg-icons/image/filter-none.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterNone = (props) => ( <SvgIcon {...props}> <path d="M3 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.1-.9-2-2-2zm0 16H7V3h14v14z"/> </SvgIcon> ); Ima...
docs/src/app/components/pages/components/RefreshIndicator/ExampleLoading.js
matthewoates/material-ui
import React from 'react'; import RefreshIndicator from 'material-ui/RefreshIndicator'; const style = { container: { position: 'relative', }, refresh: { display: 'inline-block', position: 'relative', }, }; const RefreshIndicatorExampleLoading = () => ( <div style={style.container}> <RefreshI...
DouKanMV/index.ios.js
MisterZhouZhou/ReactNativeLearing
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import {AppRegistry,} from 'react-native'; import {RootNavigator} from './RootNavigator'; export default class DouKanMV extends Component { render() { return ( <RootNavigator...
docs/src/examples/elements/Step/Variations/StepExampleUnstackable.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleUnstackable = () => ( <Step.Group unstackable> <Step> <Icon name='plane' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> ...
src/server.js
i3ringit/mdelc
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import path from 'path'; import express from 'express';...
docs/app/Examples/modules/Tab/Types/TabExamplePointing.js
shengnian/shengnian-ui-react
import React from 'react' import { Tab } from 'shengnian-ui-react' const panes = [ { menuItem: 'Tab 1', render: () => <Tab.Pane attached={false}>Tab 1 Content</Tab.Pane> }, { menuItem: 'Tab 2', render: () => <Tab.Pane attached={false}>Tab 2 Content</Tab.Pane> }, { menuItem: 'Tab 3', render: () => <Tab.Pane attac...
frontend/component/TopicList.js
akin520/pratice-node-project
import React from 'react'; import {Link} from 'react-router'; import {getTopicList} from '../lib/client'; export default class TopicList extends React.Component { constructor(props) { super(props); this.state = {}; } componentDidMount() { this.updateList({ tags: this.props.location.query.tags...
src/CommentList.js
diginatu/nagome-webui
import React, { Component } from 'react'; import {Popover, List, ListItem, ListHeader, Button} from 'react-onsenui'; import ons from 'onsenui'; import Utils from './Utils'; import {ngm} from './NagomeConn.js'; export default class CommentList extends Component { constructor() { super(); this.isBott...
src/svg-icons/device/data-usage.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceDataUsage = (props) => ( <SvgIcon {...props}> <path d="M13 2.05v3.03c3.39.49 6 3.39 6 6.92 0 .9-.18 1.75-.48 2.54l2.6 1.53c.56-1.24.88-2.62.88-4.07 0-5.18-3.95-9.45-9-9.95zM12 19c-3.87 0-7-3.13-7-7 0-3.53...
examples/DisabledButton.js
15lyfromsaturn/react-materialize
import React from 'react'; import Button from '../src/Button'; import Icon from '../src/Icon'; export default <div> <Button large disabled>Button</Button> <Button disabled>Button</Button> <Button flat disabled>Button</Button> <Button floating disabled><Icon>add</Icon></Button> </div>;
app/containers/HomePage/components/Footer/index.js
jakubrohleder/aurelius
import React from 'react'; import Button from 'components/Button'; import ButtonImage from 'components/ButtonImage'; import FSBrowser from 'components/FSBrowser'; import ButtonZip from 'components/ButtonZip'; import classNames from 'classnames/bind'; import styles from './styles.css'; const cx = classNames.bind(styl...
src/svg-icons/action/restore-page.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionRestorePage = (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-6zm-2 16c-2.05 0-3.81-1.24-4.58-3h1.71c.63.9 1.68 1.5 2.87 1.5 1.93 0 3....
src/public/index.js
GerManson/bodymass
import React from 'react'; import ReactDOM from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; ReactDOM.render( <AppContainer> <App /> </AppContainer>, document.getElementById('root') ); // Hot Module Replacement API if (module.hot) { module.hot.accept('./App', () =...
src/js/components/icons/base/Template.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...
server/sonar-web/src/main/js/apps/quality-gates/components/QualityGatesApp.js
Builders-SonarSource/sonarqube-bis
/* * 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...
src/shared/components/avatar/index.js
carsy/carsy.github.io
import React from 'react'; import avatar from '../../images/me.png'; import * as Styles from './styles'; export default ({ onClick, animation = {}, imageAnimation = {} }) => ( <Styles.Avatar onClick={ onClick } animation={ animation }> <Styles.Image src={ avatar } animation={ imageAnimation } /> </Sty...
src/pages/skillsPage.js
MartinP-C/my-site
import React from 'react'; import ReactDom from 'react-dom'; import PageHeading from '../components/PageHeading'; import CollapsingList from '../components/CollapsingList'; class skillsPage extends React.Component { constructor() { super (); } render () { return ( <div classNa...
src/components/AddClient/components/ClientProfile/ClientProfile.js
TheModevShop/craft-app
import React from 'react'; import _ from 'lodash'; import ClientProfileForm from 'components/Forms/ClientProfileForm'; import formatPhoneNumber from 'utility/formatPhoneNumber'; import formIsComplete from 'utility/formIsComplete'; import './client-profile.less'; class StaffProfile extends React.Component { construct...
plugins/Terminal/js/components/commandline.js
rivine/rivine-UI
import React from 'react' import CommandHistoryList from '../containers/commandhistorylist.js' import CommandInput from '../containers/commandinput.js' import WalletPasswordPrompt from '../containers/walletpasswordprompt.js' import WalletSeedPrompt from '../containers/seedprompt.js' const CommandLine = ({showCommandOv...
src/dashboard/components/CostDetails.js
rollacaster/costa
import PropTypes from 'prop-types' import React from 'react' import { SelectableButton, LinkButton } from './UI' import CostList from './CostList' class CostDetails extends React.Component { static propTypes = { costs: PropTypes.object, connection: PropTypes.object } state = { activeMonth: '', isOpen: ...
stories/DateRangePicker.js
rocketrip/react-dates
import React from 'react'; import moment from 'moment'; import { storiesOf } from '@kadira/storybook'; import { VERTICAL_ORIENTATION } from '../constants'; import isSameDay from '../src/utils/isSameDay'; import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay'; import DateRangePickerWrapper from '../ex...
packages/react-router-website/modules/components/Home/Header.js
react-translate-team/react-router-CN
import React from 'react' import { Link } from 'react-router-dom' import { Block, Flex, Row, Inline } from 'jsxstyle' import { SMALL_SCREEN, LIGHT_GRAY, BRIGHT_GRAY } from '../../Theme' import Logo from '../Logo' import SmallScreen from '../SmallScreen' const NavLink = ({ href, ...props }) => ( <Block component=...
server/frontend/components/Header/Header.js
AlexHatesUnicorns/FDTD_Solver
import React from 'react'; import AppBar from 'material-ui/AppBar'; import Toolbar from 'material-ui/Toolbar'; import Typography from 'material-ui/Typography'; import Button from 'material-ui/Button'; import IconButton from 'material-ui/IconButton'; import MenuIcon from 'material-ui-icons/Menu'; export const Header = ...
src/Controls/ControlBool.js
vslinko-forks/react-demo
import React from 'react' import Group from './Group' import InputCheckbox from './InputCheckbox' export default React.createClass({ displayName: 'Demo.Controls.ControlBool', propTypes: { name: React.PropTypes.string.isRequired, value: React.PropTypes.bool.isRequired, onChange: React.PropTypes.func.i...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
Mvangramberen/Herexamen-Webtech-2-voorbereiding
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'));
docs/src/examples/elements/Label/Types/LabelExampleBasic.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Label } from 'semantic-ui-react' const LabelExampleBasic = () => ( <Label> <Icon name='mail' /> 23 </Label> ) export default LabelExampleBasic
lib/cli/test/snapshots/react_project/index.js
rhalff/storybook
import React from 'react'; import ReactDOM from 'react-dom'; export default function Welcome(props) { return <h1>Hello, {props.name}</h1>; }
examples/js/manipulation/search-format-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-console: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const products = []; function addProducts(quantity) { const startId = products.length; const pname = [ 'Cloud Service', 'Message ...
src/components/Thumbnail/index.js
LittleFurryBastards/webpack-babel-react
import './thumbnail.less'; import React from 'react'; const Thumbnail = ({ color = '#000' }) => ( <div className="wrr-thumbnail" style={{ color }}></div> ); Thumbnail.propTypes = { color: React.PropTypes.string }; export default Thumbnail;
app/packs/src/components/chemscanner/components/LoadingModal.js
ComPlat/chemotion_ELN
import React from 'react'; import PropTypes from 'prop-types'; import { Modal } from 'react-bootstrap'; const LoadingModal = ({ loading }) => ( <Modal className="loading-modal" animation show={loading}> <i className="fa fa-refresh fa-spin fa-3x fa-fw" /> </Modal> ); LoadingModal.propTypes = { loading: PropT...
examples/huge-apps/routes/Course/routes/Announcements/components/Announcements.js
egobrightan/react-router
import React from 'react' class Announcements extends React.Component { render() { return ( <div> <h3>Announcements</h3> {this.props.children || <p>Choose an announcement from the sidebar.</p>} </div> ) } } export default Announcements
wrappers/toml.js
MeganKeesee/personal-site
import React from 'react' import toml from 'toml-js' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
smart/files/__root__/components/__topic__/__name__/__name__.js
CurtisHumphrey/redux_blueprints
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { createStructuredSelector } from 'reselect' import './<%= pascalEntityName %>.scss' export const selectors = {} export const actions = {} const mapStateToProps = createStructuredSelector(selectors) export clas...
components/Rating.js
flyerq/movie-list
import React from 'react'; import { StyleSheet, View, Text } from 'react-native'; import { Ionicons } from '@expo/vector-icons'; import Colors from '../constants/Colors'; export default class Rating extends React.Component { _renderRating () { const { size = 16, stars = '00' } = this.props; const star = pars...
src/documentation/FormDesign/FormDesign-story.js
wfp/ui
/* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import Link from '../components/Link'; import Page from './Page'; import Blockquote from '../components/Blockquote'; import TextInput from '../components/TextInput'; import { List, ListItem } from '../components/L...
src/components/TimeDots/index.js
vogelino/design-timeline
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import moment from 'moment'; import 'moment/locale/de'; import { createScaleFunction } from '../../helpers/timelineHelper'; import TimeDots from './TimeDots'; import { TIMELINE_MARGIN } from '../../redux/constants/uiCo...
src/components/stories/ScrollSync.js
dopry/netlify-cms
import React from 'react'; import ScrollSync from '../ScrollSync/ScrollSync'; import ScrollSyncPane from '../ScrollSync/ScrollSyncPane'; import { storiesOf } from '@kadira/storybook'; const paneStyle = { border: '1px solid green', overflow: 'auto', }; storiesOf('ScrollSync', module) .add('Default', () => ( ...
local-cli/templates/HelloNavigation/components/ListItem.js
Ehesp/react-native
'use strict'; import React, { Component } from 'react'; import { Platform, StyleSheet, Text, TouchableHighlight, TouchableNativeFeedback, View, } from 'react-native'; /** * Renders the right type of Touchable for the list item, based on platform. */ const Touchable = ({onPress, children}) => { const c...
src/editor.js
lonord/react-marked-editor
import React, { Component } from 'react'; import propTypes from 'prop-types'; import codeMirror from './codemirror-wrapper'; import debounce from 'lodash.debounce'; import ReactMarkedView from './marked-view'; import ScrollHelper from './util/scroll-helper'; import Replacer from './util/text-replacer'; import ToolBar f...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/lock.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-...
milestones/04-radium/Before/src/carousel.js
jaketrent/react-drift
import PropTypes from 'prop-types' import React from 'react' function renderSlides(props) { return React.Children.map(props.children, (slide, i) => { return React.cloneElement(slide, { style: { ...slide.props.style, width: props.width, left: props.width * (i - props.showIndex) ...
visualization/client/component/tot/RelativeTread.js
quheng/chalk
import React from 'react' import echarts from 'echarts' import _ from 'lodash' import fetch from 'isomorphic-fetch' import styles from './Main.css' import Loading from '../Loading' import { autobind } from 'react-decoration' import { checkStatus, apiAddress } from '../../util' const refName = 'RelativeTrend' const g...
docs-js/InteractiveDemo.js
esonderegger/us-house-if-proportional
import React from 'react'; import fec from './fec.json'; import YearSelector from './YearSelector.js'; import FecPieCharts from './FecPieCharts.js'; import FecMap from './FecMap.js'; const styles = { topRow: { display: 'flex', height: '110px', }, dropdown: { width: '160px', }, pieCharts: { wi...
src/client.js
mweststrate/mobservable-react-todomvc
import 'todomvc-common'; import TodoStore from './stores/TodoStore'; import ViewStore from './stores/ViewStore'; import TodoApp from './components/todoApp.js'; import React from 'react'; import ReactDOM from 'react-dom'; const initialState = window.initialState && JSON.parse(window.initialState) || {}; var todoStore ...
docs/app/Examples/elements/Segment/Variations/SegmentExampleBasic.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment } from 'shengnian-ui-react' const SegmentExampleBasic = () => ( <Segment basic> Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu l...
js/components/pages/HomePage.react.js
ariesy/my-git-pages-source
/* * HomePage * This is the first thing users see of our App */ import { asyncChangeProjectName, asyncChangeOwnerName } from '../../actions/AppActions'; import React, { Component } from 'react'; import { connect } from 'react-redux'; import { Link } from 'react-router'; class HomePage extends Component { render(...
ReactNativePaginationExample/Pages/widgets/TweetItem.js
garrettmac/react-native-pagination
import React, { Component } from 'react'; import { Dimensions, Image, LayoutAnimation, StyleSheet, Text, TouchableHighlight, TouchableOpacity, View } from 'react-native'; const darkColor = 'black', lightColor = 'white', // Import randomcolor from 'randomcolor'; { width, height } = Dime...
app/containers/NotFoundPage/index.js
mhoffman/CatAppBrowser
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import H1 from 'components/H1'; import messages from './messages'; export default function NotFound() { return ( <article> ...
src/components/Header/Header.js
OrcTech/CanvasCraft
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
src/components/Leaderboard/LeaderboardList.js
elstgav/stair-climber
import React from 'react' import { LeaderboardListElement } from './LeaderboardListElement' const LeaderboardList = ({ leaders }) => <table> <tbody> {leaders.map((leader, index) => <LeaderboardListElement key={index + 1} rank={index + 1} leader={leader} />)} </tbody> </table> LeaderboardList...
modules/RoutingContext.js
davertron/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
src/index.js
refinedjs/refinedjs-blog
/*eslint-disable import/first*/ import './util/ie-polyfills'; import { Provider } from 'react-redux'; import React from 'react'; import ReactDOM from 'react-dom'; import throttle from 'lodash/throttle'; import getStore from './store'; import App from './App'; import { loadState, saveState } from './localStorage'; c...
techCurriculum/ui/solutions/7.1/src/components/LineChart.js
AnxChow/EngineeringEssentials-group
/** * Copyright 2017 Goldman Sachs. * 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...
exocortex/didact/src/components/render/RenderObject.js
goldbuick/src
import R from 'ramda'; import React from 'react'; import genUuid from 'uuid'; import * as THREE from 'three'; import PropTypes from 'prop-types'; import RenderShell from './RenderShell'; class RenderObject extends React.Component { static DIRECTION = { UP: 'up', DOWN: 'down', LEFT: 'left',...
src/shared/LoadingSpinner.js
VasilyShelkov/ClientRelationshipManagerUI
import React from 'react'; import CircularProgress from 'material-ui/CircularProgress'; export default () => ( <div> <CircularProgress size={80} thickness={5} /> </div> );
src/test/app/js/i18n/i18n.js
HeroesDesk/heroesdesk-front-web
import React from 'react'; import {LanguageSelector} from './languageSelector.js'; import {I18nSample} from './i18nSample.js'; import {languages} from '../../lang/lang.js'; export var I18n = React.createClass({ getInitialState : function() { return { languageIndex : 0 } }, updateLanguage: functio...
src/v0/demo/modalbox/index.js
huanganqi/wsapp
import React from 'react'; import Button from 'react-native-button'; import Modal from 'react-native-modalbox'; import { AppRegistry, Text, StyleSheet, ScrollView, View, Dimensions, TextInput } from 'react-native'; var screen = Dimensions.get('window'); class Example extends React.Component { constr...
src/components/Progress/Circle.js
STMU1320/dedao-demo
import React from 'react' function CircleProgress ({ r = 50, showBg = true, showNum = false, strokeWidth = 5, percent = 0, bgColor = '#ddd', fgColor = '#00A5E0', textColor = '#666', className, style, ...otherProps }) { const _r = r - strokeWidth const perimeter = Math.PI * 2 * _r const cirP...
client/fragments/quizzes/sections/index.js
yeoh-joer/synapse
/** * External Dependencies */ import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import page from 'page' import { Chart } from 'chart.js' import { Doughnut } from 'react-chartjs-2' /** * Internal Dependencies */ import Button from 'client/components/button' import C...
app/javascript/mastodon/features/notifications/components/clear_column_button.js
corzntin/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; export default class ClearColumnButton extends React.Component { static propTypes = { onClick: PropTypes.func.isRequired, }; render () { return ( <button className='text-btn column-header...
app/javascript/tagging/components/InnerComponents/TagCategory.js
ManageIQ/manageiq-ui-classic
/* eslint-disable react/destructuring-assignment */ import React from 'react'; import PropTypes from 'prop-types'; import Tag from './Tag'; import TaggingPropTypes from '../TaggingPropTypes'; class TagCategory extends React.Component { generateTag = (tagValue) => ( <Tag key={tagValue.id} tagCategory=...
versions/v1/components/Debugger/index.js
cerebral/cerebral-debugger-prototype
import React from 'react'; import {connect} from 'cerebral-view-react'; import styles from './styles.css'; import Toolbar from './Toolbar'; import Signals from './Signals'; import Components from './Components'; import Model from './Model'; @connect({ currentPage: 'debugger.currentPage', settings: 'debugger.setti...
features/homePage/views/home.js
zymokey/mission-park
import React from 'react'; import ProjectList from '../../project/views/projectList'; class Home extends React.Component { constructor(props){ super(props); } render(){ return ( <ProjectList /> ) } } export default Home;
my-app/src/components/pages/projectpages/arrayexercise2/Container.js
sThig/jabbascrypt
import React, { Component } from 'react'; import styled from 'styled-components'; import { ContainLeft } from '../../../helper/comps'; import { Col, Row } from 'react-flexbox-grid'; import SyntaxHighlighter from 'react-syntax-highlighter'; import { agate } from 'react-syntax-highlighter/dist/styles'; import jeditemples...
src/routes/index.js
teebszet/iplayer-azListing
import React from 'react' import { Route, IndexRoute } from 'react-router' import CoreLayout from 'layouts/CoreLayout/CoreLayout' import HomeView from 'views/HomeView/HomeView' // we have store for hookables on the route export default (store) => ( <Route path='/' component={CoreLayout}> <IndexRoute component={...
src/components/article/OrderedList.js
hanyulo/twreporter-react
'use strict' import classNames from 'classnames' import commonStyles from './Common.scss' import styles from './OrderedList.scss' import React from 'react' // eslint-disable-next-line // lodash import get from 'lodash/get' export const OrderedList = ({ content }) => { if(!Array.isArray(content)) { return null ...
src/svg-icons/editor/pie-chart.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorPieChart = (props) => ( <SvgIcon {...props}> <path d="M11 2v20c-5.07-.5-9-4.79-9-10s3.93-9.5 9-10zm2.03 0v8.99H22c-.47-4.74-4.24-8.52-8.97-8.99zm0 11.01V22c4.74-.47 8.5-4.25 8.97-8.99h-8.97z"/> </SvgIco...
src/components/AboutPage/AboutPage.js
amaurymartiny/react-redux-auth0-kit
import React from 'react'; const AboutPage = () => ( <div> <h2>About</h2> <p>Some info about React Redux Auth0 Kit.</p> </div> ); export default AboutPage;
demos/demo/src/components/LangSelector/index.js
bdjnk/cerebral
import React from 'react' import {connect} from 'cerebral/react' import {signal, state} from 'cerebral/tags' import translations from '../../common/compute/translations' import * as LANGS from '../../common/translations' const LANG_OPTS = Object.keys(LANGS).map(lang => ( [lang, LANGS[lang].language] )) export defau...
app/javascript/mastodon/features/report/index.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import { connect } from 'react-redux'; import { cancelReport, changeReportComment, submitReport } from '../../actions/reports'; import { refreshAccountTimeline } from '../../actions/timelines'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; imp...
Projets/C#/Asp Core + React/WebApplication1/WebApplication1/ClientApp/src/components/FetchData.js
thib123/TPJ
import React, { Component } from 'react'; export class FetchData extends Component { displayName = FetchData.name constructor(props) { super(props); this.state = { forecasts: [], loading: true }; fetch('api/SampleData/WeatherForecasts') .then(response => response.json()) .then(data => { ...
src/containers/BookSubjectPage.js
great-design-and-systems/cataloguing-app
import * as actions from '../actions/BookSubjectActions'; import { BookSubjectIndex } from '../components/subjects/'; import PropTypes from 'prop-types'; import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; export class SubjectsPage extends React.Component { ...
src/explorer/Loo/index.js
neontribe/gbptm
import React from 'react'; import useSWR from 'swr'; import { useParams } from 'react-router-dom'; import { loader } from 'graphql.macro'; import { print } from 'graphql/language/printer'; import Map from './Map'; import PropertyTable from './PropertyTable'; import ExpandableReport from './ExpandableReport'; import P...
client/js/component/ImagePreloader.js
fupslot/linkmator
import React from 'react'; class ImagePreloader extends React.Component { constructor(props, context) { super(props, context); this.state = { url: null, width: 0, height: 0 }; const img = new Image(); img.addEventListener( 'load', this._imgEventHandler.bind(this, i...
docs/app/Examples/elements/Button/Types/ButtonExampleEmphasis.js
clemensw/stardust
import React from 'react' import { Button } from 'semantic-ui-react' const ButtonExampleEmphasis = () => ( <div> <Button primary>Primary</Button> <Button secondary>Secondary</Button> </div> ) export default ButtonExampleEmphasis
src/components/IIBD/FloatIIBD.js
fxghqc/svg-react-playground
import React from 'react' import iibd from './assets/iiBD.png' import styles from './FloatIIBD.css' class FloatIIBD extends React.Component { constructor (props) { super(props) this.canvas = {} this.image = {} this.particles = [] this.requestID = 0 this.draw = this.draw.bind(this) } com...
example_components/ProgressBar.react.js
blueberryapps/react-bluekit
import Component from '../src/app/PureRenderComponent.react'; import Radium from 'radium'; import React from 'react'; import RPT from 'prop-types'; @Radium export default class ProgressBar extends Component { static propTypes = { activeStep: RPT.number.isRequired } render() { const {activeStep} = this....
packages/idyll-template-projects/templates/scrollytelling/components/custom-d3-component.js
idyll-lang/idyll
import React from 'react'; import D3Component from 'idyll-d3-component'; import * as d3 from 'd3'; const size = 600; class CustomD3Component extends D3Component { initialize(node, props) { const svg = (this.svg = d3.select(node).append('svg')); svg .attr('viewBox', `0 0 ${size} ${size}`) .style(...
www/postuj-hovna.js
capaj/postuj-hovna
import Bootstrap from 'bootstrap' import React from 'react' import Router from 'react-router' import ReactIntl from 'react-intl' var Route = Router.Route window.ReactIntl = ReactIntl import AddPoo from './components/add-poo' import AddBin from './components/add-bin' import Leaderboards from './components/leaderboards...
GameOfLife.Client/src/components/Header/Header.js
Stelmashenko-A/GameOfLife
import React from 'react' import { IndexLink, Link } from 'react-router' import './Header.scss' import { Row, Col } from 'react-bootstrap' export const Header = () => ( <Row> <Col xs={12}> <IndexLink to='/' activeClassName='route--active'> Home </IndexLink> {' · '} <IndexLink to='...
source/client/components/todos/TodoList.js
flipace/lovli.js
import React from 'react'; import { subscribe } from 'horizon-react'; import TodoItem from './TodoItem'; import styles from './styles'; const mapDataToProps = { todos: (hz, props) => hz('todos').limit(props.limit) }; const TodoList = (props) => ( <ul className={styles.list} style={{ height: props.todos.length *...
app/components/HotThreads.js
voz-living/chrome-extension-react
import React, { Component } from 'react'; import { GET } from '../utils/http'; const apiUrl = 'https://voz-living.appspot.com/query?id=agxzfnZvei1saXZpbmdyFQsSCEFwaVF1ZXJ5GICAgICA5JEKDA&format=json'; export default class HotThreads extends Component { constructor(prop) { super(prop); this.state = { is...
web/js/components/Builds.js
miquella/mason-ci
import React from 'react' import JobStore from '../stores/JobStore' import BuildList from './builds/BuildList' export default class Builds extends React.Component { constructor(props) { super(props); this.state = {job: props.params.job, builds: JobStore.builds}; this.updateFromStore = this.updateFromSto...
src/components/bar/listItemProduct.js
jollopre/beverage_planning
import React, { Component } from 'react'; import AddOrderedBeverage from '../round/addOrderedBeverage'; import { ProductPriceShape } from '../../shapes/productPriceShape'; export default class ListItemProduct extends Component { render() { const { productPrice } = this.props; return ( <div className="list-grou...
site/src/custom.js
gregchamberlain/react-chips
import React, { Component } from 'react'; import Chips, { Chip } from '../../src' import CustomChip from './CustomChip' const data = [ {name: 'JavaScript', image: 'http://i.stack.imgur.com/Mmww2.png'}, {name: 'Ruby', image: 'https://www.codementor.io/assets/tutorial_icon/ruby-on-rails.png' }, {name: 'Python', im...
packages/atlaskit/src/index.js
patrickmarabeas/storybook-multipackage-feasibility
import React from 'react'; import ReactDOM from 'react-dom'; import '@atlaskit/css-reset'; // eslint-disable-line import App from './containers/App'; ReactDOM.render( <App />, document.getElementById('app') );
src/components/items_and_income_screen/info_table.js
amybingzhao/savings-planner-web
import React, { Component } from 'react'; import ButtonBar from '../button_bar'; class InfoTable extends Component { constructor(props) { super(props); } renderHeadings(headings) { const cells = headings.map(heading => { return <th>{heading}</th> }); return <thead><tr>{cells}</tr></thead>...
src/cointainers/Root.prod.js
rodrigobacelli/rodrigobacelli.github.io
import React from 'react' import { Provider } from 'react-redux' import Routes from '../routes/'; //Render Connected Canvas export default class Root extends React.Component { render() { const { store } = this.props return ( <Provider store={store}> <Routes /> ...
packages/xo-web/src/xo-app/xoa/index.js
vatesfr/xo-web
import _ from 'intl' import Icon from 'icon' import Page from '../page' import React from 'react' import { connectStore, routes } from 'utils' import { Container, Row, Col } from 'grid' import { isAdmin } from 'selectors' import { NavLink, NavTabs } from 'nav' import Licenses from './licenses' import Notifications, { ...
src/UrlInput.js
tkawa/alps-console
import React from 'react'; class UrlInput extends React.Component { constructor(props) { super(props); this.state = {value: props.value}; } handleChange(event) { this.setState({value: event.target.value}); } render() { return ( <input id="url" type="url" className="form-control" place...
react-ui/src/index.js
Swoodend/pollster-heroku
import React from 'react'; import ReactDOM from 'react-dom'; import Home from './Home'; import Navbar from './Navbar'; import Signup from './Signup'; import Login from './Login'; import Dashboard from './Dashboard'; import NewPoll from './NewPoll'; import ViewPoll from './ViewPoll'; import { BrowserRouter as Router, Ro...
versions/v1/components/Debugger/Signals/Signal/Action/Service/index.js
cerebral/cerebral-debugger-prototype
import React from 'react'; import styles from './styles.css'; import icons from 'common/icons.css'; import Inspector from '../../../../Inspector'; const colors = { set: '#dc6428', import: '', unset: '#872841', push: '#004b87', splice: '#eb1e64', merge: '#007355', concat: '#1eaa6e', pop: '#872841', s...
packages/lore-react-forms-bootstrap/src/components/Overlay.js
lore/lore-forms
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'lodash'; function getStyles(isVisible) { const styles = { overlay: { position: 'relative' }, label: { position: 'absolute', left: 'calc(50% - 32px)', to...