path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
internals/templates/containers/App/index.js
kossel/react-boilerplate
/** * * App.react.js * * This component is the skeleton around the actual pages, and should only * contain code that should be seen on all pages. (e.g. navigation bar) * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If...
app/javascript/mastodon/components/icon_with_badge.js
tateisu/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Icon from 'mastodon/components/icon'; const formatNumber = num => num > 40 ? '40+' : num; const IconWithBadge = ({ id, count, className }) => ( <i className='icon-with-badge'> <Icon id={id} fixedWidth className={className} /> {count > 0 &...
packages/wix-style-react/src/Accordion/docs/index.story.js
wix/wix-style-react
import React from 'react'; import { header, tabs, tab, title, description, importExample, divider, example, api, testkit, playground, } from 'wix-storybook-utils/Sections'; import InfoCircle from 'wix-ui-icons-common/InfoCircle'; import { storySettings } from './storySettings'; import Accordion, ...
src/js/components/IconLink.js
bcongdon/gdq-stats
import React from 'react' import Glyphicon from 'react-bootstrap/lib/Glyphicon' import { PropTypes } from 'prop-types' import { LIGHT_FILL_COLOR, DARK_FILL_COLOR } from '../constants' const IconLink = ({ icon, active, ...props }) => { const color = active ? DARK_FILL_COLOR : LIGHT_FILL_COLOR return ( <a ...
src/routes/user/UserModal.js
IssaTan1990/antd-admin
import React from 'react' import PropTypes from 'prop-types' import { Form, Input, InputNumber, Radio, Modal, Cascader } from 'antd' import city from '../../utils/city' const FormItem = Form.Item const formItemLayout = { labelCol: { span: 6, }, wrapperCol: { span: 14, }, } const modal = ({ visible,...
src/ComponentFactory.js
gearz-lab/react-metaform
import React from 'react'; import _ from 'underscore'; // component definitions class ComponentFactory { constructor() { // this is expected to contain a property for each supported type // and this property's value is expected to be an array of ComponentBuilder this.fieldComponentsByType...
src/packages/@ncigdc/components/SampleSize.js
NCI-GDC/portal-ui
import React from 'react'; import { css } from 'glamor'; const styles = { deemphasizedHeading: { fontWeight: 'bold', letterSpacing: -0.5, fontSize: '0.8em', opacity: 0.8, color: '#3a3a3a', }, }; export default ({ n, style, formatter = x => x.toLocaleString(), symbol = 'n', }) => ( <s...
packages/demos/demo/src/components/Client/form.js
garth/cerebral
import React from 'react' import { connect } from '@cerebral/react' import { signal, state } from 'cerebral/tags' import translations from '../../common/compute/translations' import Input from './Input' import Header from './Header' import Textarea from '../Textarea' export default connect( { item: state`client...
src/components/common/svg-icons/action/description.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
examples/official-storybook/stories/addon-measure/ShadowRoot.stories.js
storybooks/storybook
import React from 'react'; import { ShadowRoot } from '../../components/addon-measure/ShadowRoot'; export default { title: 'Addons/Measure/ShadowRoot', component: ShadowRoot, }; const Template = (args) => ( <div style={{ display: 'inline-block', padding: 64, }} > <ShadowRoot {...args}...
app/containers/HomePage.js
manojsinghnegiwd/ReactElectronImageBrowser
// @flow import React, { Component } from 'react'; import Home from '../components/Home/'; import Header from '../components/Layout/Header'; export default class HomePage extends Component { render() { let {images} = this.props.mainStore; return ( <div className="main-container"> <Header {...this.p...
ui/kirk/src/Dashboard/index.js
socx/Kirk
import React from 'react' const Dashboard = (props) => ( <div> <h1>Dashboard</h1> <p>{console.log(props)}</p> </div> ) export default Dashboard
views/pages/questsId/quest.js
urfu-2016/team5
import './quests-id.css'; import './../../styles/block/block.css'; import React from 'react'; import ReactDOM from 'react-dom'; import QuestContainer from '../../blocks/Quest/QuestContainer'; import CommentsPoster from '../../blocks/comments/CommentsPoster'; import PhotoSender from '../../blocks/QuestPhotos/PhotoSend...
complete-example/client/src/components/presentation/cart/cart.js
jpaulptr/ecom-react
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Items from './items'; import { Link } from 'react-router-dom'; import TextBox from '../form-controls/text-box'; import Button from '../form-controls/button'; import Heading from '../headers/heading'; class Cart extends Component { ...
client/modules/Post/__tests__/components/PostList.spec.js
maicongil/fcc_voting_app
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import PostList from '../../components/PostList'; const posts = [ { name: 'Prashant', title: 'Hello Mern', slug: 'hello-mern', cuid: 'f34gb2bh24b24b2', content: "All cats meow 'mern!'" }, { name: 'Mayank', title: 'Hi Mern', slug: ...
src/esm/components/graphics/icons-next/eye-icon-next/index.js
KissKissBankBank/kitten
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; var _excluded = ["color", "title"]; import React from 'react'; import PropTypes from 'prop-types'; export var EyeIconNext = function EyeIconNext(_ref) { var color = _...
fields/types/date/DateColumn.js
dryna/keystone-twoje-urodziny
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.obj...
webapp/src/components/ProgressBar/ProgressBar.js
OverStruck/deep-dream-maker
import React from 'react' import { withStyles } from '@material-ui/core/styles'; import LinearProgress from '@material-ui/core/LinearProgress' import { getProgress } from "../../utils/Api"; const StyledProgressBar = withStyles({ root: { height: 30 } })(LinearProgress); class ProgressBar extends React....
src/pages/success.js
braidn/Nesta-Cloudbacon-Blog
/* eslint jsx-a11y/label-has-for:0 */ import React from 'react' import Helmet from 'react-helmet' import { Link } from 'gatsby' import styled from 'styled-components' import { Layout, Wrapper, Header } from '../components' import config from '../../config' const Content = styled.div` grid-column: 2; box-shadow: ...
src/components/LogInIndex.js
jlmonroy13/brainstutor-client
import React from 'react'; import { Link } from 'react-router'; const LogInIndex = () => { return ( <div className="section__auth section__auth--index"> <div className="section__auth-hero" /> <div className="section__auth-container section__auth-container--index"> <div className="section__aut...
src/components/CounterSegment.js
umbrellio/rollex
import React from 'react' import PropTypes from 'prop-types' import AnimatedCounterDigit from './AnimatedCounterDigit' import StaticCounterDigit from './StaticCounterDigit' /** * @type {Object} * Maximum decimal values for available periods' numbers. */ const PERIOD_LIMITS = { seconds: 59, minutes: 59, hours:...
classic/src/scenes/wbfa/generated/FABGoogle.free.js
wavebox/waveboxapp
import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' import { faGoogle } from '@fortawesome/free-brands-svg-icons/faGoogle' export default class FABGoogle extends React.Component { render () { return (<FontAwesomeIcon {...this.props} icon={faGoogle} />) } }
billing-ui/src/index.js
CancerCollaboratory/billing
/* * Copyright 2016(c) The Ontario Institute for Cancer Research. All rights reserved. * * This program and the accompanying materials are made available under the terms of the GNU Public * License v3.0. You should have received a copy of the GNU General Public License along with this * program. If not, see <http:...
src/icons/Arrow.js
ericyd/surfplotjs
/** * Icon uses a 100x100 grid for layout */ import React from 'react'; import Icon from './Icon'; const Arrow = props => ( <Icon className={props.className}> <path d='M0 10 L40 50 L0 90 L0 10'/> </Icon> ); Arrow.propTypes = { className: React.PropTypes.string }; export default Arrow;
fixtures/packaging/systemjs-builder/prod/input.js
empyrical/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
node_modules/react-slick/src/mixins/helpers.js
DaveSpivey/muttwhat
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import {getTrackCSS, getTrackLeft, getTrackAnimateCSS} from './trackHelper'; import assign from 'object-assign'; var helpers = { initialize: function (props) { const slickList = ReactDOM.findDOMNode(this.list); var slideCount = Reac...
components/ImageList/ImageItem/ImageInfo/index.js
samuelngs/px
import React, { Component } from 'react'; import { View, Text, Image, TouchableHighlight, StyleSheet } from 'react-native'; import Moment from 'moment'; import ProgressiveImage from 'px/components/ProgressiveImage'; import Options from 'px/assets/icons/options.png'; export default class ImageInfo extends Component {...
server/server.js
Blaumeiser/dronegames
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; import IntlWrapper from '../client/modules/Intl/IntlWrapper'; // Webpack Requirements import webpack from 'webpack'; import config from '../webpack.confi...
src/containers/search_bar.js
OatsAndSquats25/React-redux-weather-app
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { fetchWeather } from '../actions/index'; class SearchBar extends Component { constructor(props) { super(props); this.state = {term: ''}; this.onInputChange ...
src/svg-icons/action/favorite-border.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFavoriteBorder = (props) => ( <SvgIcon {...props}> <path d="M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 2...
js/routes.js
xuorig/insyto
import React from 'react'; import { IndexRoute, Route } from 'react-router'; import ViewerQueries from './queries/ViewerQueries'; import InsyteQueries from './queries/InsyteQueries'; import QuizQueries from './queries/QuizQueries'; import App from './components/App'; import InsyteList from './components/InsyteList/In...
docs/app/Examples/views/Feed/Types/FeedExampleShorthand.js
ben174/Semantic-UI-React
import React from 'react' import { Feed } from 'semantic-ui-react' const events = [ { date: '1 Hour Ago', image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg', meta: '4 Likes', summary: 'Elliot Fu added you as a friend', }, { date: '4 days ago', image: 'http://semantic-ui.com/im...
src/Parser/Core/Modules/NetherlightCrucibleTraits/TormentTheWeak.js
enragednuke/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; /** * Torment the...
src/svg-icons/maps/local-airport.js
owencm/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalAirport = (props) => ( <SvgIcon {...props}> <path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/> </SvgIcon> ); MapsLocalA...
src/js/views/Settings.js
jaedb/Iris
import React from 'react'; import { connect, useDispatch } from 'react-redux'; import { bindActionCreators } from 'redux'; import { Route, Link } from 'react-router-dom'; import localForage from 'localforage'; import ConfirmationButton from '../components/Fields/ConfirmationButton'; import PusherConnectionList fr...
examples/cra-kitchen-sink/src/stories/welcome.stories.js
storybooks/storybook
import React from 'react'; import { Welcome } from '@storybook/react/demo'; import { linkTo } from '@storybook/addon-links'; export default { title: 'Welcome', component: Welcome, }; export const Story1 = () => <Welcome showApp={linkTo('Button')} />; Story1.title = 'to Storybook';
addons/a11y/src/A11yManager.js
rhalff/storybook
import React from 'react'; import WrapStory from './components/WrapStory'; // Run all a11y checks inside class A11yManager { wrapStory(channel, storyFn, context, axeOptions) { const props = { context, storyFn, channel, axeOptions }; return <WrapStory {...props} />; } } export default A11yManager;
.storybook/components/DetailPageHeaderStory.js
hellobrian/carbon-components-react
import React from 'react'; import { action, storiesOf } from '@storybook/react'; import Breadcrumb from '../../components/Breadcrumb'; import BreadcrumbItem from '../../components/BreadcrumbItem'; import OverflowMenu from '../../components/OverflowMenu'; import OverflowMenuItem from '../../components/OverflowMenuItem';...
docs/src/components/Home/Hero/Hero.js
seekinternational/seek-asia-style-guide
import styles from './Hero.less'; import React from 'react'; import { PageBlock, Section } from 'seek-asia-style-guide/react'; import ColorPreview from './ColorPreview/ColorPreview'; import ButtonsPreview from './ButtonsPreview/ButtonsPreview'; import TypographyPreview from './TypographyPreview/TypographyPreview'; impo...
src/components/InDepthSection.js
ekatzenstein/DynamoDictionary_React
import React from 'react'; import TextEditor from './TextEditor'; import IconButton from 'material-ui/IconButton'; function InDepthSection(props) { let node=props.node; return ( <div className='inDepth' > <b>In Depth:</b> <IconButton tooltip='Edit In Depth Description' touch={true} toolti...
myCompany/myCompany/static/js/base.js
Rom4eg/myCompany
import "foundation-sites/dist/foundation"; // import "foundation-sites/js/foundation.core"; // import "foundation-sites/js/foundation.util.keyboard"; // import "foundation-sites/js/foundation.util.box"; // import "foundation-sites/js/foundation.util.nest"; // import "foundation-sites/js/foundation.util.mediaQuery"; //...
packages/examples/src/goTo/index.js
diegomura/react-pdf
/* eslint react/prop-types: 0, react/jsx-sort-props: 0 */ import React from 'react'; import { Page, Document, Link, View, Image } from '@react-pdf/renderer'; export default () => ( <Document> <Page size="A4"> <Link href="#myDest">Link</Link> </Page> <Page size="A4"> <View style={{ height: ...
docs/app/Examples/elements/Loader/Variations/LoaderExampleInverted.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Image, Loader, Segment } from 'semantic-ui-react' const LoaderExampleInverted = () => ( <Segment inverted> <Loader active inverted /> <Image src='http://semantic-ui.com/images/wireframe/short-paragraph.png' /> </Segment> ) export default LoaderExampleInverted
fields/components/DateInput.js
wustxing/keystone
import moment from 'moment'; import DayPicker from 'react-day-picker'; import React from 'react'; import Popout from '../../admin/src/components/Popout'; import { FormInput } from 'elemental'; function isSameDay(d1, d2) { d1.setHours(0, 0, 0, 0); d2.setHours(0, 0, 0, 0); return d1.getTime() === d2.getTime(); } m...
public/src/admin/content/Content.react.js
SLedunois/personal-website
import React, { Component } from 'react'; import CustomEditor from '../editor/Editor.react'; class Content extends Component { render() { return ( <div> <h1>Content</h1> <CustomEditor /> </div> ); } } export default Content;
assets/jqwidgets/demos/react/app/calendar/firstdayoftheweek/app.js
juannelisalde/holter
import React from 'react'; import ReactDOM from 'react-dom'; import JqxCalendar from '../../../jqwidgets-react/react_jqxcalendar.js'; import JqxDropDownList from '../../../jqwidgets-react/react_jqxdropdownlist.js'; class App extends React.Component { componentDidMount() { this.refs.myDropDownList.on('sele...
src/panel/Panel.js
alelk/houses-building-website
/** * Panel * * Created by Alex Elkin on 19.10.2017. */ import React from 'react'; import PropTypes from 'prop-types' import './Panel.css' const Panel = ({className, children, centerVertically}) => { return ( <div className={`Panel${(className && ' ' + className) || ''}${(centerVertically && ' center...
blueocean-material-icons/src/js/components/svg-icons/editor/monetization-on.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const EditorMonetizationOn = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1.41 16.09V20h-2.67v-1.93c-1.71-.36-3.16-1.46-3.27-3.4h1.96c.1 1.05.82 1.87 2.65 1.87 1.96 0 2.4-.98 2.4-1.59 ...
app/components/RunPlugin.js
surrealroad/electron-react-boilerplate
// @flow import React, { Component } from 'react'; import { Button } from 'hig-react'; // import { Link } from 'react-router-dom'; export default class RunPlugin extends Component { props: { exec: () => void, disabled: boolean }; render() { const { exec } = this.props; return ( <div> ...
node_modules/react-bootstrap/es/MediaLeft.js
Chen-Hailin/iTCM.github.io
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 ...
app/javascript/mastodon/features/pinned_statuses/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
src/js/components/ContentBlocks/BlockColorSwatch/BlockColorSwatchWireframe.js
grommet/grommet-cms-boilerplate
/* @flow */ import React from 'react'; import Box from 'grommet/components/Box'; import BrushIcon from 'grommet/components/icons/base/Brush'; export default function BlockColorSwatchWireframe() { return ( <Box pad={{ between: 'small' }}> <Box style={{ height: 60 }} pad="small" color...
src/presentations/reactDay/reactRedux/components/logo/index.js
react-skg/meetup
import React, { Component } from 'react'; import { Image } from 'spectacle'; import logo from './logo.svg'; class ReduxLogo extends Component { render() { const { size } = this.props; return ( <Image src={logo} alt="Redux" width="20%" style={{ maxHeight: size ...
src/index.js
ckwong93/reactivelist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducer from './reducers'; import './index.css'; const store = createStore(reducer); ReactDOM.render( <Provider store={store}> <App...
src/svg-icons/social/people-outline.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
src/components/close-button.js
nordsoftware/react-foundation
import React from 'react'; import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys } from '../utils'; /** * Close button component. * http://foundation.zurb.com/sites/docs/close-button.html * * @param {Object} props * @returns {Object} */ export const CloseButton ...
app/scripts/Chat/ChatFlavor.js
nthitz/mashupfm
import React from 'react' let urlRegex = new RegExp(/(([-a-zA-Z0-9@:%_\+~#?&\/=][.]*){1,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&\/=]*)?)/gi) let protocolRegex = /^https?:\/\// let imgRegex = /\.(?:jpe?g|gif|png)$/ function splitEntities(message) { let messagePieces = message.split(' ') return messagePieces.map...
examples/jsxstyle.js
threepointone/glamor
import React from 'react' import { View, Row, Column } from '../src/jsxstyle' export class App extends React.Component { render() { return <div> <Row> <Column> some text </Column> <Column> some text </Column> </Row> </div> } }
packages/netlify-cms-core/src/components/UI/ErrorBoundary.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-polyglot'; import styled from '@emotion/styled'; import yaml from 'yaml'; import { truncate } from 'lodash'; import copyToClipboard from 'copy-text-to-clipboard'; import { localForage } from 'netlify-cms-lib-util'; import { ...
src/routes/home/index.js
murthymuddu/murthy-umg
/** * 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 Home from './Home'; i...
app/components/Renovation/index.js
medevelopment/UMA
import React, { Component } from 'react'; import * as toastify from '../../functions/Toastify'; import axios from 'axios'; import firebase from 'firebase'; import { propertySections } from '../../functions/propertiesFuncs'; import NotifyUpdate from '../NotifyUpdate'; import styled from 'styled-components'; import { ...
examples/js/advance/validator-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { ...
src/svg-icons/navigation/last-page.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationLastPage = (props) => ( <SvgIcon {...props}> <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/> </SvgIcon> ); NavigationLastPage = pure(NavigationLastPage); NavigationLastPage.di...
app/jsx/assignments/FinalGraderSelectMenu.js
djbender/canvas-lms
/* * Copyright (C) 2018 - 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...
src/components/ExampleTwoDeepComponent.js
somsekhardash/somsekhardash.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Li } from '../styles/style'; import s from '../styles/exampleTwoDeepComponent.style'; const propTypes = { location: PropTypes.object.isRequired, }; export def...
src/svg-icons/hardware/dock.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDock = (props) => ( <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/> </SvgIcon> ); HardwareDock = ...
src/app/component/select-menu-item/select-menu-item.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import SelectMenuItem from '.' storiesOf('SelectMenuItem', module) .add('default', () => ( <SelectMenuItem value={{value: 'value', label: 'Select Menu Item'}} onClick={action('onClick...
a-note-app/src/components/App/index.js
Remexllee/randr-practice
import React from 'react'; import NotesList from '../NotesList'; import NoteDetail from '../NoteDetail'; import * as style from './style'; const App = () => ( <div style={style.wrapper}> <NotesList/> <NoteDetail/> </div> ); export default App;
docs/app/Examples/views/Card/Content/LinkCard.js
jcarbo/stardust
import React from 'react' import { Card } from 'stardust' const LinkCard = () => ( <Card href='#link' header='Elliot Baker' meta='Friend' description='Elliot is a sound engineer living in Nashville who enjoys playing guitar and hanging with his cat.' /> ) export default LinkCard
fields/types/geopoint/GeoPointColumn.js
jacargentina/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
src/parser/hunter/survival/modules/spells/ButcheryCarve.js
FaideWW/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import React from 'react'; import SpellLink from 'common/SpellLink'; import It...
app/javascript/mastodon/components/status.js
h3zjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
src/views/components/search-bar/search-bar.js
r-park/soundcloud-redux
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import './search-bar.css'; class SearchBar extends React.Component { static propTypes = { handleSearch: PropTypes.func.isRequired, search: PropTypes.object.isRequired }; constructor() { super(...arg...
src/index.js
Beardles/novelizr
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' import store from './store' ReactDOM.render( <Provider store={store}> <App /> </Provider>, docu...
src/js/screens/Home.js
grommet/next-sample
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Anchor, Box, Button, Chart, CheckBox, Grid, Heading, Image, Markdown, Menu, Meter, Paragraph, RadioButton, RoutedAnchor, RoutedButton, Stack, Text, TextInput, Video, } from 'grommet'; import { Actions } from 'grommet-icons'; ...
src/components/RepoRow.js
njscococo/ReactTutorial2
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class RepoRow extends Component{ constructor(props){ super(props); this.rowClick = this.rowClick.bind(this); } rowClick(e){ console.log(e.target); } render(){ let repoInfo =...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/controller/common/BaseController.js
dazhifu/react-touch-ui
import React from 'react'; // export class BaseController extends React.Component { constructor(props) { super(props); } componentDidMount() { this.props.nav.addViewInst.call(this.props.nav,this); } componentResume () { } componentPause () { } componentWillUn...
spotify-react-router-auth/client/components/Login.js
janmattfeld/LauchSpot
import React, { Component } from 'react'; import loginSVG from '../log_in.svg'; /** * Our login page * Has a login button that hit's the login url */ export default class Login extends Component { render() { return ( <div className="login"> <h2>Here's our login page!</h2> <a href="/login...
tab.js
xiewang/react-native-emoticons
import React from 'react'; import PropTypes from 'prop-types'; import { Text, View, TouchableOpacity, Navigator, InteractionManager, Platform, ScrollView, Image, DeviceEventEmitter } from 'react-native'; import styles from './style'; class TabBar extends React.Component { constr...
packages/cf-component-select/example/async/component.js
jroyal/cf-ui
import React from 'react'; import { Select } from 'cf-component-select'; class SelectComponent extends React.Component { constructor(props) { super(props); this.state = { value: 'one' }; } handleChange(value) { this.setState({ value }); } getOptions(input, callback) { setTimeout(() => { ...
src/parser/paladin/holy/modules/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ResourceLink from 'common/ResourceLink'; import { TooltipElement } from 'common/To...
src/components/Offer/index.js
EthHead/ens.trade
import React from 'react'; import ethereumjsAbi from 'ethereumjs-abi'; import * as ENSTrade from '../ENSTrade'; import Address from '../Address'; import actions from '../../actions'; import Button from '../Button'; import s from './styles.css'; class OfferList extends React.Component { constructor(props) { super...
installer/frontend/form.js
aknuds1/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { dispatch as dispatch_ } from './store'; import { configActions, registerForm } from './actions'; import { toError, toIgnore, toAsyncError, toExtraData, toInFly, toExtraDataInFly, toExtraDataError } from './utils'; import...
app/javascript/mastodon/components/permalink.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
app/javascript/containers/public/WidgetPage.js
Vizzuality/forest-atlas-landscape-cms
import React from 'react'; import PropTypes from 'prop-types'; import PublicContainer from 'containers/shared/PublicContainer'; import StandaloneWidget from 'components/public/StandaloneWidget'; const WidgetPageContainer = ({ widget }) => { if (!widget || !widget.widget_config) { return null; } return ( ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-button-group.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js'; import Button from './button.js'; import './button-group.less'; export const ButtonGroup = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, Colo...
src/v0/component/date_picker/index.js
huanganqi/wsapp
import R from 'ramda' import React from 'react' import { Text, View, TouchableWithoutFeedback, } from 'react-native' import moment from 'moment' import DatePicker from 'react-native-datepicker' import * as variable from '../../theme/ume-theme/variable' import toast from '../../component/toast/normal' i...
app/Main.js
jaredhanson/auth0-sso-dashboard
require('./styles/main.less'); import React from 'react'; import Auth from './lib/Auth'; import Router from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Setup document.title = __SITE_TITLE__; window.React = React; injectTapEventPlugin(); // Routes import App from './lib/components/Ap...
src/app.js
change-soft8/cs-project-antd
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import withExampleBasename from '../cfg/withExampleBasename' import routes from './config/routes' render(( <Router history={withExampleBasename(browserHistory)} routes={routes} /> ), document...
src/Popup.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import getOffset from 'dom-helpers/offset' import getScrollTop from 'dom-helpers/scrollTop' import getScrollLeft from 'dom-helpers/scrollLeft' import * as dates from './utils/dates' import EventCell from './EventCell' import { isSelected } from './utils/sele...
05_ES6/Code/fork-es6/app/components/ConversationPane.js
AngularJS-Angular2-Angular4/react-learning-2
import React from 'react'; import Message from './Message'; import autoBind from 'react-autobind'; import samples from '../sample-data'; class ConversationPane extends React.Component { constructor(props) { super(props); autoBind(this); } sortByDateDesc(a, b) { return a.time < b.time ? -1 : a.time > ...
src/page/spa/components/loading/index.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import pureRender from 'pure-render-decorator'; require('./index.less'); @pureRender export default class List extends Component { constructor(props, context) { super(props, context); this.state = { }; } componentWillMount() { } componentDidMount() { } r...
src/DateContentRow.js
Incubity/react-big-calendar
import cn from 'classnames'; import getHeight from 'dom-helpers/query/height'; import qsa from 'dom-helpers/query/querySelectorAll'; import React from 'react'; import { findDOMNode } from 'react-dom'; import dates from './utils/dates'; import { accessor, elementType } from './utils/propTypes'; import { segStyle, event...
src/queue/BoardSquare.js
IACJ/react-datastructer
import React, { Component } from 'react'; import { DropTarget } from 'react-dnd'; import ItemTypes from './ItemTypes'; import {getDataStructer } from './Control'; const squareTarget = { canDrop(props, monitor) { if(monitor.getItem().position==="WaitingArea"&&props.position==="MainArea" &&props.id =...
src/components/pc_container.js
nanhaishiyounan/css3
import React from 'react'; import {Row, Col,Tabs, Carousel} from 'antd'; const TabPane = Tabs.TabPane; import PCNewsBlock from './pc_news_block'; export default class PCContainer extends React.Component { constructor(){ super(); this.state={ }; } render() { const settings = { dots: true, infi...
src/components/DiceSpinning.js
jiparker/bowl-game
import React from 'react'; import PropTypes from 'prop-types'; const DiceSpinning = (props) => { let color = `color-${props.colorNumber}`; return ( <div> <div id="wrapper" className={color}> <div id="platform"> <div id="dice"> <div className="side front"> <div ...
8.2.1/examples/asyncChangeValidation/dist/bundle.js
erikras/redux-form-docs
!function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e...
app/containers/Commande/containers/CommandesLongTerme.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { createStructuredSelector } from 'reselect'; import round from 'lodash/round'; import { Card, CardActions, CardHeader } from 'material-ui/Card'; import Shoppi...
src/stories/index.js
mathworld-games/math-game-web
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {linkTo} from '@storybook/addon-links'; import {MemoryRouter} from 'react-router'; import Game from '../components/game-v.0.1/game/game'; import {Button, Welcome} from '@storybook/react/demo...