path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/browser/ticket/svg/LogoImage.js
glaserp/Maturita-Project
import Component from 'react-pure-render/component' import React from 'react' export default class LogoImage extends Component { constructor(props) { super(props) } render() { return ( <svg className="logo-image" width="500pt" height="100pt" viewBox="40 0 500 100" version="1.1" xmlns="http://www.w3.org...
src/svg-icons/action/accessible.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccessible = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="4" r="2"/><path d="M19 13v-2c-1.54.02-3.09-.75-4.07-1.83l-1.29-1.43c-.17-.19-.38-.34-.61-.45-.01 0-.01-.01-.02-.01H13c-.35-.2-.75-.3-1.19...
src/mui/detail/Edit.js
matteolc/admin-on-rest
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Card, CardText } from 'material-ui/Card'; import compose from 'recompose/compose'; import inflection from 'inflection'; import ViewTitle from '../layout/ViewTitle'; import Title from '../layout/...
my-app/src/index.js
LuisGVV/TestGroundJS
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
local-cli/templates/HelloNavigation/views/chat/ChatScreen.js
forcedotcom/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Button, ListView, StyleSheet, Text, TextInput, View, } from 'react-native'; import KeyboardSpacer from '../../components/KeyboardSpacer'; import Backend from '../../lib/Backend'; export default class ChatScreen extends C...
src/containers/BlogPostContainer.js
mrozilla/mrozilla.cz
// ───────────────────────────────────────────────────────────────────────────── // import // ───────────────────────────────────────────────────────────────────────────── import React from 'react'; import { graphql } from 'gatsby'; import { MDXRenderer } from 'gatsby-plugin-mdx'; import { RootContainer, SEOContainer...
app/client/components/Appbar/index.js
bhargav175/dictionary-offline
import React from 'react'; import {isClient} from '../../../utils/helpers'; var styles = {}; if(isClient()){ styles = require('./style.scss'); } class Appbar extends React.Component{ constructor(props){ super(props); } render(){ return <div className={styles.root}> Offline Dictionary, Built with Montana...
src/components/letterhead.js
sanoofp/fcc-res
import React, { Component } from 'react'; import LetterheadCard from './letterheadcard'; class Letterhead extends Component{ render(){ return( <div className="container"> <div className="row"> <div className="col s12"> <p>Lorem ipsum d...
src/stories/2016-05-17-lanzarote-beaches.js
danpersa/remindmetolive-react
import React from 'react'; import PostImage from '../components/story/PostImage'; import TwoPostImages from '../components/story/TwoPostImages'; import StoryPage from '../components/story/StoryPage'; import StoryTextBlock from '../components/story/StoryTextBlock'; import StoryImages from '../components/story/StoryImage...
src/routes/Blog/components/BlogView.js
jhash/jhash
import './BlogView.scss' import React from 'react' export class BlogView extends React.Component { static propTypes = {} render () { return ( <div className='view--blog row' /> ) } } export default BlogView
src/svg-icons/image/broken-image.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrokenImage = (props) => ( <SvgIcon {...props}> <path d="M21 5v6.59l-3-3.01-4 4.01-4-4-4 4-3-3.01V5c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2zm-3 6.42l3 3.01V19c0 1.1-.9 2-2 2H5c-1.1 0-2-.9-2-2v-6.58l3 2.99 4-4 4 4 ...
src/svg-icons/communication/message.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationMessage = (props) => ( <SvgIcon {...props}> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/> </SvgIcon> ); Commun...
src/lib/reactors/ListGroups/ListGroupItems.js
ynunokawa/react-webmap
// Copyright (c) 2016 Yusuke Nunokawa (https://ynunokawa.github.io) // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to us...
src/svg-icons/device/signal-cellular-connected-no-internet-1-bar.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet1Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 10v8h2v-8h-2zm-8 12V12L2 22h10zm8 0h2v-2h-2v2z"/> </SvgIcon> ); Devi...
examples/real-world/index.js
axross/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
node_modules/babel-plugin-react-transform/test/fixtures/code-ignore/expected.js
Kgiberson/welp
import React from 'react'; const First = React.createNotClass({ displayName: 'First' }); class Second extends React.NotComponent {}
src/routes/Girlip/components/TripFooter.js
markkong318/Girlip
import React from 'react'; import { connect } from 'react-redux' import TripItem from './TripItem' class TripFooter extends React.Component { render() { return ( <div className="bottom"> <div></div> </div> ); } } const mapStateToProps = (state, props) ...
awsmobilecognitocustomui/src/screens/TaskDetailsScreen.js
adrianhall/blog-code
import React from 'react'; import { Platform, StyleSheet, View } from 'react-native'; import NavBar from 'react-native-navbar'; import BackButton from '../components/BackButton'; import TaskForm from '../components/TaskForm'; import colors from '../theme/colors'; const styles = StyleSheet.create({ container: { ...
app/components/FooBar/FooBar.js
nisheedj/webpack-react-starter
import React from 'react'; import './FooBar.scss'; class FooBar extends React.Component { render() { return <div className="foo-bar">FOOO BAAR</div>; } }; export default FooBar;
examples/huge-apps/components/App.js
chrisirhc/react-router
import React from 'react'; import Dashboard from './Dashboard'; import GlobalNav from './GlobalNav'; class App extends React.Component { render() { var courses = COURSES; return ( <div> <GlobalNav /> <div style={{ padding: 20 }}> {this.props.children || <Dashboard courses={co...
src/app/components/DataList/DataList.js
xZarisx/react-rpg
import React from 'react'; import hasher from 'string-hash'; const uniqId = data => `dl-${hasher(JSON.stringify(data))}`; export default ({options=[], className="", label="", value="", placeholder="", onChange=()=>{} }) => { let id = uniqId(options), Options = options .map( (o, i) => ( ...
examples/real-world/index.js
kentor/redux
import 'babel-core/polyfill'; import React from 'react'; import BrowserHistory from 'react-router/lib/BrowserHistory'; import { Provider } from 'react-redux'; import { Router, Route } from 'react-router'; import configureStore from './store/configureStore'; import App from './containers/App'; import UserPage from './co...
client/components/Browse.js
lendr2/lendr2
import React, { Component } from 'react'; import FlipCard from 'react-flipcard'; import Tile from './Tile'; class Browse extends Component { componentDidMount() { this.props.getData(); } render() { console.log("Browse Username is", this.props.state.username) const tiles = []; const length = this...
packages/node_modules/@ciscospark/react-component-icon/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; export const ICON_TYPE_ADD = `icon-cisco-add`; export const ICON_TYPE_DELETE = `icon-cisco-exit-outline`; export const ICON_TYPE_DOCUMENT = `icon-cisco-document-outline`; export cons...
app/javascript/mastodon/components/extended_video_player.js
blackle/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class ExtendedVideoPlayer extends React.PureComponent { static propTypes = { src: PropTypes.string.isRequired, alt: PropTypes.string, width: PropTypes.number, height: PropTypes.number, time: PropTypes.number, contr...
src/containers/projects.js
ereide/home_page_react
import React from 'react'; import DetailedBox from './../components/detailedbox.js'; import blackbox_proj from './../assets/hackmiteivind.jpg'; import m3nevada_proj from './../assets/nevada.jpg'; import m3avionics_proj from './../assets/m3avionics.jpg'; import woodchuck_proj from './../assets/woodchuck.jpg'; import ...
src/routes/dashboard/components/completed.js
vincentdd/crm
import React from 'react' import PropTypes from 'prop-types' import classnames from 'classnames' import { color } from 'utils' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer } from 'recharts' import styles from './completed.less' function Completed ({ data }) { return ( ...
src/js/LudoPage/ReportDialog/ErrorMessage.js
ludonow/ludo-beta-react
import React from 'react'; const ErrorMessage = () => ( <div> ErrorMessage </div> ); export default ErrorMessage;
packages/ringcentral-widgets-docs/src/app/pages/Components/MessageStoreAlert/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import MessageStoreAlert from 'ringcentral-widgets/components/MessageStoreAlert'; const props = {}; props.currentLocale = 'en-US'; props.message = { message: 'test string' }; /** * A example of `MessageStoreAlert` */ const MessageStoreAlertDemo = () => ( <M...
app/javascript/mastodon/features/account/components/account_note.js
tootcafe/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import Textarea from 'react-textarea-autosize'; impor...
mobile/app/module/Sidebar/Drawer.js
liyangwood/DreamCup
import React from 'react'; import {Drawer} from 'native-base'; import Sidebar from './SidebarContainer'; import {Cache} from 'app/lib'; export default class extends React.Component{ getProps(){ return { ref : (ref)=>(this.drawer = ref), content : (<Sidebar />), onClose : this.close.bind(this),...
src/svg-icons/image/movie-filter.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageMovieFilter = (props) => ( <SvgIcon {...props}> <path d="M18 4l2 3h-3l-2-3h-2l2 3h-3l-2-3H8l2 3H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4zm-6.75 11.25L10 18l-1.25-2.75L6 14l2.7...
app/components/song_info.js
paulinoj/newRockus
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import styles from '../css/song_info.css'; import MusicController from './music_controller'; class SongInfo extends Component { constructor(props) { super(props); } renderMusicControl...
actor-apps/app-web/src/app/components/Deactivated.react.js
nguyenhongson03/actor-platform
import React from 'react'; class Deactivated extends React.Component { render() { return ( <div className="deactivated row center-xs middle-xs"> <div className="deactivated__window"> <h2>Tab deactivated</h2> <p> Oops, you have opened another tab with Actor, so we had...
app/javascript/mastodon/components/media_gallery.js
masto-donte-com-br/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { is } from 'immutable'; import IconButton from './icon_button'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import { isIOS } from '../is_mobile'; import class...
react/reactRouterPractice/app/routeConfig.js
huxinmin/PracticeMakesPerfect
import React from 'react' import { BrowserRouter as Router, Route, Link } from 'react-router-dom' // Some folks find value in a centralized route config. // A route config is just data. React is great at mapping // data into components, and <Route> is a component. ///////////////////////////////////////////////...
src/web/TransactionParseForm.js
BeerOnBeard/go-save-money
import React, { Component } from 'react'; import Papa from 'papaparse'; import { TransactionBuilder } from 'money-tracker'; import TransactionTable from './TransactionTable'; import LoadingDistractor from './LoadingDistractor'; import { bulkUploadTransactions } from './TransactionDataAccess'; /* * Form that takes a s...
app/containers/Root.js
tylergraf/react-twitter
import React from 'react'; import HomeTimelinePage from './HomeTimelinePage'; // import Cart from './cart/app-cart'; // import CatalogDetail from './product/app-catalogdetail'; import Template from './Template'; import { Router, Route, IndexRoute } from 'react-router'; export default () => { // <Route path="item/:it...
src/components/Navigation/Navigation.js
kirsty-forrester/react-photo-collage
/** * 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 React from 'react'; import withStyles from 'isom...
app/javascript/mastodon/features/ui/components/media_modal.js
gol-cha/mastodon
import React from 'react'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Video from 'mastodon/features/video'; import classNames from 'classnames'; import { defineMessages, injectIntl } from 'react-intl'; i...
client/components/AttributeForm/index.js
romelperez/jobsity-test
import './_index.scss'; import React, { Component } from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { Row, Col } from 'react-flexbox-grid'; import TextField from 'material-ui/TextField'; import SelectField from 'material-ui/SelectField'; import Toggle from 'material-ui/Toggle'; im...
docs/app/Examples/elements/Image/Variations/ImageExampleFloated.js
shengnian/shengnian-ui-react
import React from 'react' import { Segment, Image } from 'shengnian-ui-react' const src = '/assets/images/wireframe/image-text.png' const ImageExampleFloated = () => ( <Segment> <Image src={src} size='small' floated='left' /> <p> Te eum doming eirmod, nominati pertinacia argumentum ad his. Ex eam alia...
techCurriculum/ui/solutions/6.1/src/App.js
tadas412/EngineeringEssentials
/** * 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 in writ...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/RestAndDefault.js
Exocortex/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; function load({ id, ...rest } = { id: 0, user: { id: 42, ...
front-end/src/components/index.js
longshuicy/custom-graphiql-bind-graphql
import React from 'react'; import ReactDOM from 'react-dom'; import MyGraphiQL from './MyGraphiQL'; var endpoint = "http://" + window.location.hostname + ':8080/graphql'; console.log(endpoint); function graphQLFetcher(graphQLParams) { return fetch(endpoint, { method: 'post', headers: { 'Content-Type': 'appl...
fields/types/markdown/MarkdownColumn.js
woody0907/keystone
import React from 'react'; import ItemsTableCell from '../../../admin/src/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/src/components/ItemsTableValue'; var MarkdownColumn = React.createClass({ displayName: 'MarkdownColumn', propTypes: { col: React.PropTypes.object, data: React.PropType...
src/mui/layout/AppBarMobile.js
RestUI/rest-ui
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import MuiAppBar from 'material-ui/AppBar'; import muiThemeable from 'material-ui/styles/muiThemeable'; import compose from 'recompose/compose'; import { toggleSidebar as toggleSidebarAction } from '../../redux/actions...
linksa/leave.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, Modal, TextInput, ScrollView, ActivityIndicator, InteractionManager, Dimensions, DatePickerAndroid, TimePickerAndroid, ToastAndroid, BackAndroid, Image, RefreshControl, ListView, } from '...
app/components/CardMedia/view.js
kelsonic/react-redux-material-ui-boilerplate
/** * * CardMedia view * */ import React from 'react'; import { CardMedia } from 'material-ui/Card'; export default function render() { return ( <CardMedia actAsExpander={this.props.actAsExpander} expandable={this.props.expandable} mediaStyle={this.props.mediaStyle} overlay={this.props.o...
source/client/components/Button.js
NAlexandrov/yaw
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styled from 'react-emotion'; const StyledButton = styled.button` height: 36px; width: 120px; font-size: 13px; font-weight: 600; border: none; border-radius: 3px; cursor: pointer; background-color: ${({ bgColor }) => bgColor}; ...
src/plantsearch/MinPlantList.js
BushrootPDX/app
import React, { Component } from 'react'; export default class MinPlantList extends Component { render() { const { plants, selectPlant } = this.props; return ( <ul> {plants && plants.map((plant, index) => (<li key={index} ...
app/index.js
JedWatson/picture-tour-app
import './css/main.css'; import React from 'react'; import ReactDOM from 'react-dom'; import CSSTransitionGroup from 'react-addons-css-transition-group'; import StepStore from './stores/step'; import Start from './components/Start'; import Step from './components/Step'; const App = React.createClass({ getInitialSt...
app/js/pages/Home.js
arcsecw/myfd
import React from 'react'; import PageContainer from '../components/PageContainer'; import { Grid, Col, AvgGrid, Icon, Table, Badge, Dropdown, Panel, List, ListItem, Progress, ButtonGroup, Button, ButtonToolbar, } from 'amazeui-react'; const Home = React.createClass({ renderIntroList() { ...
src/Parser/DemonHunter/Havoc/Modules/Statistics/Spells/Momentum.js
enragednuke/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } fro...
ajax/libs/react-instantsearch/4.1.2/Connectors.js
him2him2/cdnjs
/*! ReactInstantSearch 4.1.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("react")); else if(typeof define === 'function' && define....
webclient/src/index.js
jadiego/bloom
import React from 'react'; import ReactDOM from 'react-dom'; //css import 'semantic-ui-css/semantic.min.css'; import './index.css'; //app import App from './components/App'; //redux import { Provider } from 'react-redux'; import { createStore, applyMiddleware, compose } from 'redux'; import thunk from 'redux-thunk'; ...
socket-chat/src/components/Messages/MessageList.js
Zyst/learning-react
import React from 'react'; import Message from './Message'; class MessageList extends React.Component { render() { let placeholder = ''; if (this.props.messages.length === 0) { placeholder = ( <div className="well"> <p className="lead"> There doesn't seem to be anything h...
src/containers/edm/components/propertytype/PropertyTypeDefaultShow.js
kryptnostic/gallery
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; function getIsChecked(value) { // force the value to be a boolean if (value !== true && value !== false) { return true; } return value; } export default class PropertyTypeDefaultShow extends React.Component { ...
src/js/components/icons/base/Pin.js
odedre/grommet-final
/** * @description Pin 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. * @proper...
src/routes.js
dongtong/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
packages/mineral-ui-icons/src/IconLibraryMusic.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconLibraryMusic(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconP...
frontend/src/components/on_boarding/OnBoardingHero.js
OpenCollective/opencollective-website
import React from 'react'; import env from '../../lib/env'; export default ({ utmSource }) => ( <div className='OnBoardingHero'> <div className='-title'> Apply to create an open collective for your <strong>open source</strong> project. </div> <div className='-subtitle'> We are accepting new o...
src/js/containers/DevTools.js
loki951753/slider_with_react
import React from 'react'; import { createDevTools } from 'redux-devtools'; // Monitors are separate packages, and you can make a custom one import LogMonitor from 'redux-devtools-log-monitor'; import DockMonitor from 'redux-devtools-dock-monitor'; import SliderMonitor from 'redux-slider-monitor'; // createDevTools t...
template/src/components/main/fake-title-bar.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import connectComponent from '../../helpers/connect-component'; const titleBarHeight = 22; const { remote } = window.require('electron'); const styles = (theme) => ({ root: { background: theme.palette.type === ...
src/components/rows.js
Greynight/Grid
import React from 'react'; import BodyRow from './row-body'; import TitleRow from './row-title'; import HeaderRow from './row-header'; import FooterRow from './row-footer'; class Rows extends React.Component { /*constructor(props) { super(props); }*/ getOrderDir = () => { return this.props.sorting.orde...
src/components/user/user.js
ogoss/react-contacts-demo
import React from 'react'; export default class User extends React.Component { render() { return ( <p>This is user</p> ); } }
components/ShopsAndNotification.js
CoffeeApp/clientSide
import React from 'react' import { Match, hashHistory } from 'react-router' import SelectShop from './SelectShop' import Notification from './Notification' import ToggleButtons from './ToggleButtons' import Cart from './Cart' class ShopsAndNotification extends React.Component { constructor(props) { super(props)...
app/app.js
haxorbit/chiron
/** * app.js * * This is the entry file for the application, only setup and boilerplate * code. */ // Needed for redux-saga es6 generator support import 'babel-polyfill'; // Import all the third party stuff import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; impor...
App/Components/FullButton.story.js
samuraitruong/react-native-fx260
import React from 'react' import { storiesOf } from '@storybook/react-native' import FullButton from './FullButton' storiesOf('FullButton') .add('Default', () => ( <FullButton text='A simple button' /> )) .add('Custom Style', () => ( <FullButton text='Style Me Up!' styles={{ backgr...
node_modules/react-router/es/MemoryRouter.js
webtutorial/builder
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 &...
packages/canvas-rce/src/rce/plugins/shared/Upload/UnsplashSVG.js
djbender/canvas-lms
/* * Copyright (C) 2019 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas is free software: you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License as published by the Free * Software Foundation, version 3 of the License. * * Canvas is distribut...
node_modules/semantic-ui-react/src/views/Statistic/Statistic.js
SuperUncleCat/ServerMonitoring
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { childrenUtils, customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useValueAndKey, } from '../../lib' import StatisticGroup from './StatisticGroup' import Stat...
ui/src/containers/Visualisations/TemplateMostPopularVerbs/Card.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map } from 'immutable'; import TemplateCard from '../components/TemplateCard'; import buildModel from './buildModel'; import { title, image } from './constants'; /** * @param {immutable.Map} props.model * @param {() => void} props.saveModel */ ...
Realization/frontend/czechidm-core/src/content/audit/loggingEvent/LoggingEventExceptionDetail.js
bcvsolutions/CzechIdMng
import PropTypes from 'prop-types'; import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../../components/basic'; import * as Advanced from '../../../components/advanced'; import { LoggingEventExceptionManager } from '../../../redux'; const EU_BCVSOLUTIONS_PREFIX = 'eu.bcvsol...
source/components/HomeButton.react.js
BeethovensWerkstatt/VideApp
import React from 'react'; import PropTypes from 'prop-types'; const HomeButton = ({ onClick }) => { return ( <img src='./resources/pix/videAppLogo.png' className='videAppLogo' alt='Home' onClick={e => { e.preventDefault(); onClick(); }} /> ); }; HomeButton.pro...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/Tooltip.js
Akkuma/npm-cache-benchmark
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
docs/src/examples/elements/Step/Groups/StepExampleVertical.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Icon, Step } from 'semantic-ui-react' const StepExampleVertical = () => ( <Step.Group vertical> <Step completed> <Icon name='truck' /> <Step.Content> <Step.Title>Shipping</Step.Title> <Step.Description>Choose your shipping options</Step.Description> ...
components/ParallaxContainer/ParallaxContainer.js
rdjpalmer/bloom
/* global window: true, */ import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { subscribe } from 'subscribe-ui-event'; import cx from 'classnames'; import css from './ParallaxContainer.css'; export default class ParallaxContainer extends Component { static propTypes= { c...
web/src/js/components/Settings/Widgets/WidgetConfigComponent.js
gladly-team/tab
import React from 'react' import PropTypes from 'prop-types' import Toggle from 'material-ui/Toggle' import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton' class WidgetConfig extends React.Component { render() { const { setting } = this.props switch (setting.type) { case 'boolean': ...
example/todoReact/views/todoapp.js
coderwin/Fluder
import React from 'react'; import todoStore from '../stores/todoStore'; import todoAction from '../actions/todoAction'; import Lines from './lines'; export default class TodoApp extends React.Component{ constructor(props){ super(props); this.state = { items: todoStore.getAll()||[] ...
react/react-fundamentals/PropsChildrenApp.js
claycarpenter/node-sandbox
import React from 'react'; class PropsChildrenApp extends React.Component { render() { return ( <Button>I Tolerate React</Button> ); } } class Button extends React.Component { render() { return ( <button>{this.props.children}</button> ); } } export default PropsChildrenApp
react/exercises/part_03/src/index.js
jsperts/workshop_unterlagen
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import '../node_modules/bootstrap/dist/css/bootstrap.min.css'; import './index.css'; import AppContainer from './containers/App'; import store from './store'; const root = ( <Provider store={store}> <AppContain...
src/components/tracks/individual/_blind/index.js
cannoneyed/tmm-glare
import React from 'react' // const timeline = [{ // time: 0, // fact: '' // }] // export default function Blind() { return ( <div className="track-info-page"> <div className="track-text blind" /> </div> ) }
website/core/SnackPlayer.js
Livyli/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/components/MenuHandle.js
vigetlabs/colonel-kurtz
import React from 'react' import Btn from './Button' const defaultProps = { className: 'col-menu-handle', label: 'Open the menu for this block', type: 'button' } export default class MenuHandle extends React.Component { render() { const { label, ...safe } = this.props return ( <Btn {...safe}> ...
docs/app/Examples/collections/Message/Types/MessageExampleMessage.js
aabustamante/Semantic-UI-React
import React from 'react' import { Message } from 'semantic-ui-react' const MessageExampleMessage = () => ( <Message> <Message.Header> Changes in Service </Message.Header> <p> We updated our privacy policy here to better service our customers. We recommend reviewing the changes. </p> </...
app/packs/src/components/report/Setting.js
ComPlat/chemotion_ELN
import React from 'react'; import { Panel } from 'react-bootstrap'; import ReportActions from '../actions/ReportActions'; import CheckBoxs from '../common/CheckBoxs'; const toggleSplSettings = (text, checked) => { ReportActions.updateSplSettings({ text, checked }); }; const toggleSplSettingsAll = () => { ReportAc...
core/router.js
CharlesSanford/personal-site
/** * React Static Boilerplate * https://github.com/kriasoft/react-static-boilerplate * * Copyright © 2015-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 React from 'react'; ...
example/src/test_checkbox.js
flywingdevelopers/rn-naive
/** * <CheckBox> Control Test * Kevin Lee 19 Sept 2017 **/ import React from 'react' import { Screen, Bar, Roll, Text, CheckBox } from 'rn-naive' export default class App extends React.Component { constructor(props) { super(props) this.state = { DisableAll: false, } } render() { return ( ...
src/components/Feedback/Feedback.js
chaudhryjunaid/chaudhryjunaid.com
/** * 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 React from 'react'; import withStyles from 'isom...
xcessiv/ui/src/DatasetExtraction/DataExtractionTabs.js
reiinakano/xcessiv
import React, { Component } from 'react'; import './MainDataExtraction.css'; import { Tab, Tabs, TabList, TabPanel } from 'react-tabs'; import MainDataExtraction from './MainDataExtraction'; //import TestDataExtraction from './TestDataExtraction'; import MetaFeatureExtraction from './MetaFeatureExtraction'; import Stac...
src/svg-icons/av/remove-from-queue.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvRemoveFromQueue = (props) => ( <SvgIcon {...props}> <path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2H8v-2h8z"/> </SvgIcon> );...
node_modules/react-router/es/Route.js
furgat/sabertoot
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.string, func = _React$PropTypes.func; /** * A <Route> is use...
components/Roster.js
alexxpan/calwtcrew
import React from 'react'; import '../css/roster.scss'; const Roster = ({ rosterName, names, sides, years, hometowns, majors }) => ( <div className="roster-container"> <header> <h1>{rosterName}</h1> </header> <div className="column-container"> <div className="roster__column"> <h3>Nam...
web/src/client/main.js
zanj2006/este
import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router'; import {configureStore} from '@este/common'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import createRoutes from './createRoutes'; import {IntlProvider} from 'react-intl'; import {Provider} from 're...
packages/material-ui-icons/src/Snooze.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let Snooze = props => <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
src/js/components/Overview.js
bryanjacquot/theme-designer-capstone
import React, { Component } from 'react'; import Section from 'grommet/components/Section'; import Anchor from 'grommet/components/Anchor'; import Pdf from 'grommet/components/icons/base/DocumentPdf'; export default class Overview extends Component { constructor() { super(); } render () { return ( ...
step6-serviceapi/node_modules/react-router/es6/Route.js
jintoppy/react-training
'use strict'; import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './PropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route>...
packages/reactor-kitchensink/src/examples/DragAndDrop/Files/Files.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Panel } from '@extjs/ext-react'; import './styles.css'; Ext.require(['Ext.drag.*']); const DEFAULT_TEXT = 'Drag a file from your computer here'; export default class Files extends Component { state = { iconCls: 'drag-file-icon', labelText: DEFAU...
step02/App/src/components/Loader/index.android.js
grokbot/intro-to-react-native
import React, { Component } from 'react'; import { ActivityIndicator } from 'react-native'; import { Theme, Color } from "../../theme"; export class Loader extends Component { render() { return ( <ActivityIndicator size={45} style={[Theme.loader, Theme.centered]} color={Color.yellow} /> ) } }