path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
client/components/categories/item.js
jankeromnes/kresus
import React from 'react'; import PropTypes from 'prop-types'; import { translate as $t, NONE_CATEGORY_ID, assert } from '../../helpers'; import ConfirmDeleteModal from '../ui/confirm-delete-modal'; import ColorPicker from '../ui/color-picker'; class CategoryListItem extends React.Component { constructor(props)...
packages/pix-web/src/ui/index.js
madjam002/pix
import React from 'react' import {Spinner} from '@blueprintjs/core' import styles from './index.less' export * from '@blueprintjs/core' export * from './atom' export * from './blueprints' export * from './form' export * from './layout' export * from './typography' export const FormButton = props => <button {...props...
docs/app/Examples/elements/List/Content/ListExampleDescription.js
ben174/Semantic-UI-React
import React from 'react' import { List } from 'semantic-ui-react' const ListExampleDescription = () => ( <List> <List.Item> <List.Icon name='map marker' /> <List.Content> <List.Header as='a'>Krowlewskie Jadlo</List.Header> <List.Description>An excellent polish restaurant, quick deliv...
app/javascript/mastodon/features/notifications/components/notification.js
palon7/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import StatusContainer from '../../../containers/status_container'; import AccountContainer from '../../../containers/account_container'; import { FormattedMessage } from 'react-intl'; import Permalink from '../../../components/perma...
scripts/Admin/Default.js
krulmacius/sdasdasdasfgasdawsdwadawd
import React from 'react'; class Default extends React.Component { constructor(props) { super(props); } render() { return( <div> </div> ); } } export default Default;
src/components/app.js
JennerChen/simple-personal-cloudyService
import React from 'react'; import Radium from 'radium'; import { Menu, Icon } from 'antd'; import {Link} from 'react-router'; import { Layout } from 'antd'; const { Header, Sider, Content } = Layout; @Radium class App extends React.Component { render() { const {children} = this.props; return (<Layout...
src/svg-icons/communication/stay-primary-landscape.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationStayPrimaryLandscape = (props) => ( <SvgIcon {...props}> <path d="M1.01 7L1 17c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2H3c-1.1 0-1.99.9-1.99 2zM19 7v10H5V7h14z"/> </SvgIcon> ); Communicat...
frontend/src/pages/credits/credits.js
petar-prog91/go-bank-web
import React from 'react'; import { connect } from 'react-redux'; const Credits = () => ( <div> <h1>Exchange page</h1> <p>Work in progress</p> </div> ); export default connect()(Credits);
src/views/components/chatroom/comment/comment.js
EragonJ/Kaku
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactEmoji from 'react-emoji'; class CommentComponent extends Component { constructor(props) { super(props); } render() { let data = this.props.data; // TODO // drop ReactEmoji since we do have emoji-mart now. ...
assets/javascripts/kitten/components/structure/carousels/nav-tab-carousel/components/next.js
KissKissBankBank/kitten
import React from 'react' import { StyledRightArrowContainer, StyledNextText, StyledArrowIcon, } from './styled-components' export const Next = ({ children, hoverColor }) => { return ( <StyledRightArrowContainer hoverColor={hoverColor} as="button" className="k-u-reset-button" > ...
src/svg-icons/action/system-update-alt.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSystemUpdateAlt = (props) => ( <SvgIcon {...props}> <path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/> ...
src/components/settlement/SettlementAddress/SettlementAddressInfo.js
HuZai/react_settlement
/** * Created by zhengHu on 16-10-8. * 图片list处理 */ import React from 'react'; class SettlementAddressInfo extends React.Component { render() { let classArray=['cell','clell_border'],classes='',datas=this.props.data,title='收货人信息'; if(datas.onlyPickup){ classArray.push('ziti-section'); title='自提联...
app/modules/header/style.js
donofkarma/react-starter
// import React from 'react'; import styled from 'styled-components'; import clearfix from 'styles/utilities/clearfix'; import { colors } from 'styles/tokens/color'; export const SiteHeader = styled.header` ${ clearfix } padding: 10px; background: ${ colors.grey.light }; `;
actor-apps/app-web/src/app/components/activity/ActivityHeader.react.js
hejunbinlan/actor-platform
import React from 'react'; import ReactMixin from 'react-mixin'; import addons from 'react/addons'; const {addons: { PureRenderMixin }} = addons; @ReactMixin.decorate(PureRenderMixin) class ActivityHeader extends React.Component { static propTypes = { close: React.PropTypes.func, title: React.PropTypes.stri...
src/components/ListItem.js
merrettr/school-ui
import React from 'react'; import Panel from 'react-bootstrap/lib/Panel'; import Glyphicon from 'react-bootstrap/lib/Glyphicon'; const ListItem = ({ children, icon, style, onClick }) => <Panel onClick={onClick} style={{ padding: '1em', marginBottom: 0, cursor: 'pointer', ...style, ...
src/example/WithDeprecationWarningExample.js
klarna/higher-order-components
import React from 'react' import { withDeprecationWarning } from '../' export default withDeprecationWarning({ readMore: 'http://example.com/why-old-component-is-deprecated', useInstead: 'Underlined', name: 'DeprecatedComponent', })(function DeprecatedComponent() { return ( <article> <h1>withDeprecat...
packages/vulcan-i18n/lib/modules/provider.js
VulcanJS/Vulcan
import React, { Component } from 'react'; import { getString } from 'meteor/vulcan:lib'; import { intlShape } from './shape.js'; export default class IntlProvider extends Component { formatMessage = ({ id, defaultMessage }, values = null) => { const { messages, locale } = this.props; return getString({ id, d...
src/svg-icons/action/lock.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionLock = (props) => ( <SvgIcon {...props}> <path d="M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-....
packages/wix-style-react/src/Loader/docs/index.story.js
wix/wix-style-react
import { Category } from '../../../stories/storiesHierarchy'; import Loader from '..'; import { api, example, description, divider, header, importExample, playground, tab, tabs, testkit, title, } from 'wix-storybook-utils/dist/src/Sections'; import React from 'react'; import * as examples from '...
admin/client/components/Popout.js
stunjiturner/keystone
import classnames from 'classnames'; import React from 'react'; import { Button, Checkbox, InputGroup, SegmentedControl } from 'elemental'; import Portal from './Portal'; import Transition from 'react-addons-css-transition-group'; const sizes = { arrowHeight: 12 }; var Popout = React.createClass({ displayName: 'Pop...
packages/idyll-cli/test/basic-project/src/components/functional-component.js
idyll-lang/idyll
import React from 'react'; export default () => { return <div>Let's put the fun back in functional!</div>; };
code/schritte/redux/6-redux/src/main.js
st-he/react-workshop
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import { composeWithDevTools } from 'redux-devtools-extension'; import GreetingController from './GreetingController'; import { ro...
frontend/src/app/home/components/HeroCard.js
migcruz/dota2analytics
import React from 'react'; import { Card, Image, Icon } from 'semantic-ui-react' import {NavLink} from "react-router-dom"; const src = "http://cdn.dota2.com/apps/dota2/images/heroes/queenofpain_vert.jpg"; class HeroCard extends React.Component { constructor(props) { super(props); } componentDidMount...
node_modules/eslint-config-airbnb/test/test-react-order.js
Jzucca/Car.ly
import test from 'tape'; import { CLIEngine } from 'eslint'; import eslintrc from '../'; import reactRules from '../rules/react'; const cli = new CLIEngine({ useEslintrc: false, baseConfig: eslintrc, // This rule fails when executing on text. rules: { indent: 0 }, }); function lint(text) { // @see http://e...
src/svg-icons/editor/space-bar.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; export default EditorS...
src/containers/Asians/BreaksCalculator/RoomTypes/returnRoundColumn.js
westoncolemanl/tabbr-web
import React from 'react' import { TableCell } from 'material-ui/Table' export default (rounds, type) => rounds.map((round, roundIndex) => <TableCell key={roundIndex} children={round[type]} style={{ textAlign: 'center' }} /> )
src/react-cropper.js
TAPP-TV/react-cropperjs
import React from 'react'; import Cropper from 'cropperjs'; import 'cropperjs'; import 'cropperjs/dist/cropper.css'; const CropperJS = React.createClass({ propTypes: { // react cropper options crossOrigin: React.PropTypes.string, src: React.PropTypes.string, alt: React.PropTypes.string, ...
fixtures/nesting/src/modern/HomePage.js
billfeller/react
import React from 'react'; import {useContext} from 'react'; import {Link} from 'react-router-dom'; import ThemeContext from './shared/ThemeContext'; import Clock from './shared/Clock'; export default function HomePage({counter, dispatch}) { const theme = useContext(ThemeContext); return ( <> <h2>src/mo...
examples/src/components/ValuesAsNumbersField.js
bezreyhan/react-select
import React from 'react'; import Select from 'react-select'; function logChange() { console.log.apply(console, [].concat(['Select value changed:'], Array.prototype.slice.apply(arguments))); } var ValuesAsNumbersField = React.createClass({ displayName: 'ValuesAsNumbersField', propTypes: { label: React.PropTypes....
project/react-ant/src/containers/FundChannelCfg/Add/index.js
FFF-team/generator-earth
import React from 'react' import moment from 'moment' import { DatePicker, Button, Form, Input, Col } from 'antd' import BaseContainer from 'ROOT_SOURCE/base/BaseContainer' import request from 'ROOT_SOURCE/utils/request' import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter' import Rules from 'ROOT_SOURCE/utils...
actor-apps/app-web/src/app/components/common/MessageItem.react.js
HKMOpen/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import memoize from 'memoizee'; import classNames from 'classnames'; import emojify from 'emojify.js'; import hljs from 'highlight.js'; import marked from 'marked'; import emojiCharacters from 'emoji-named-characters'; ...
src/svg-icons/notification/airline-seat-flat-angled.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationAirlineSeatFlatAngled = (props) => ( <SvgIcon {...props}> <path d="M22.25 14.29l-.69 1.89L9.2 11.71l2.08-5.66 8.56 3.09c2.1.76 3.18 3.06 2.41 5.15zM1.5 12.14L8 14.48V19h8v-1.63L20.52 19l.69-1.89-19....
src/bundle.js
palmg/pwfe-dom
/** * Created by chkui on 2017/6/10. */ 'use strict'; import React from 'react' /** * 页面分片高阶组件。该组件配合`routes`用于实现页面分片。 * @param initComponent * @param getComponent * @return {{new(...[*]): {async: (function(*=)), render: (function()), componentWillMount: (function())}}} */ const bundle = (initComponent, getCompon...
_course_exercises/rfe/_bck/src/Repo.js
David-Castelli/react-testing
import React from 'react'; import {render} from 'react-dom'; const Repo = ({repo, item}) => <article> <h3> {repo.name} </h3> <p> {repo.description} </p> {item} </article> export default Repo;
docs/app/Examples/collections/Menu/index.js
jcarbo/stardust
import React from 'react' import Content from './Content' import Types from './Types' import States from './States' import Variations from './Variations' const MenuExamples = () => { return ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) } export default MenuExamp...
src/components/Loading.js
MMMalik/react-show-app
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import Error from './Error'; import ContentBox from './ContentBox'; export default class Loading extends Component { static propTypes = { children: PropTypes.oneOfType( [ PropTypes.element, ...
tic-tac-toe/src/index.js
matija94/show-me-the-code
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; function Square(props) { return ( <button className="square" onClick={props.onClick}> {props.value} </button> ) } class Board extends React.Component { renderSquare(i) { return <Square ...
src/components/Home.js
RicardoG2016/WRFD-project-site
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import '../App.css'; import Partners from './Partners'; import Purpose from './Purpose'; import Subscribe from './Subscribe'; import Video from './Video'; class Home extends Component { componentDidMount(){ window.scrollTo(0, 0)...
src/LocPresentational.js
derzunov/redux-react-i18n
import translate from 'translatr' import React from 'react' const Loc = ( { currentLanguage, locKey, number, dictionary, dispatch, ...rest } ) => { return <span { ...rest }> { translate( dictionary, currentLanguage, locKey, number ) } </span> } export default Loc
src/components/Navbar.js
hunterclarke/hunterclarke.me
import React from 'react' import { Link } from 'gatsby' const Navbar = class extends React.Component { componentDidMount() { // Get all "navbar-burger" elements const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0); // Check if there are any navbar burgers i...
docs/src/NavMain.js
erictherobot/react-bootstrap
import React from 'react'; import { Link } from 'react-router'; import Navbar from '../../src/Navbar'; import Nav from '../../src/Nav'; const NAV_LINKS = { 'introduction': { link: 'introduction', title: 'Introduction' }, 'getting-started': { link: 'getting-started', title: 'Getting started' }, ...
source/demo/NavLink.js
Vitamen/geneviz
/** @flow */ import React from 'react' import { Link } from 'react-router' import Icon from './Icon' import styles from './NavLink.css' export default function NavLink ({ children, href, iconType, to }) { let link let icon if (iconType) { icon = ( <Icon className={styles.Icon} type={ic...
mobile/App.js
weirdsoft/coopcon
import './patches/moment-locale-patch' import React from 'react' import { configureStore } from './data/store' import Bootstrap from './Bootstrap' const store = configureStore() const App = () => ( <Bootstrap store={store} /> ) export default App
app/components/SecondaryNavComponent/index.js
openexp/OpenEXP
import React, { Component } from 'react'; import { Grid, Header } from 'semantic-ui-react'; import styles from '../styles/secondarynav.css'; import SecondaryNavSegment from './SecondaryNavSegment'; interface Props { title: string | React.ReactNode; steps: { [string]: string }; activeStep: string; onStepClick: ...
src/svg-icons/action/accessible.js
xmityaz/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...
server/server.js
bbviana/alexandria-mern
import Express from 'express'; import compression from 'compression'; import mongoose from 'mongoose'; import bodyParser from 'body-parser'; import path from 'path'; // Webpack Requirements import webpack from 'webpack'; import config from '../config/webpack/webpack.config.dev'; import webpackDevMiddleware from 'webpa...
node_modules/react-native-button/Button.js
RahulDesai92/PHR
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { StyleSheet, Text, TouchableOpacity, View, ViewPropTypes, } from 'react-native'; import coalesceNonElementChildren from './coalesceNonElementChildren'; const systemButtonOpacity = 0.2; export default class Button extends ...
ajax/libs/react-select/1.0.0-rc.10/react-select.es.js
jonobr1/cdnjs
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import ReactDOM from 'react-dom'; import AutosizeInput from 'react-input-autosize'; import classNames from 'classnames'; function arrowRenderer(_ref) { var onMouseDown = _ref.onMouseDown; return React.createElement('span', { className: ...
Paths/React/05.Building Scalable React Apps/2-react-boilerplate-building-scalable-apps-m2-exercise-files/After/app/containers/App/index.js
phiratio/Pluralsight-materials
/** * * 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...
assets/js/react/userList.js
ChrisBr/duell-um-die-geld
import React, { Component } from 'react'; class UserList extends React.Component { constructor(props) { super(props); this.renderUserNames = this.renderUserNames.bind(this); this.renderAccountBalance = this.renderAccountBalance.bind(this); this.renderIndex = this.renderIndex.bind(this); this.ren...
_older/section-skills/SkillTags.es6.js
widged/SOT-skills-report
/* jshint esnext: true */ import React from 'react'; let {Component} = React; class SkillList extends Component { render() { var {list} = this.props; return ( <skills><ul> {(list || []).map(((item) => { return <li><SkillItem item={item}/></li> }))} </ul></skills> ); }...
packages/wix-style-react/src/DragAndDrop/Draggable/components/DraggableSource.js
wix/wix-style-react
import React from 'react'; import ReactDOM from 'react-dom'; import PropTypes from 'prop-types'; import { DragSource } from 'react-dnd'; import { getEmptyImage } from 'react-dnd-html5-backend'; import noop from 'lodash/noop'; import DragLayer from './DragLayer'; import { ItemTypes } from '../types'; /* eslint-disable...
examples/Example/index.ios.js
thegamenicorus/react-native-timeline-listview
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, } from 'react-native'; import App from './app' AppRegistry.registerComponent('Example', () => App);
app/javascript/mastodon/features/getting_started/components/announcements.js
tootcafe/mastodon
import React from 'react'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ReactSwipeableViews from 'react-swipeable-views'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import Icon f...
src/app/component/color-card-list/color-card-list.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import range from 'lodash/range' import ColorCard from '../color-card' import ColorCardList from '.' import MaterialImage from '../material-image' import Price from '../price' import Button from '../button' storiesOf('ColorCardList', module).add('de...
pages/_document.js
nvbf/pepper
import React from 'react'; import Document, { Head, Main, NextScript } from 'next/document'; import { ServerStyleSheet } from 'styled-components'; export default class MyDocument extends Document { render() { const sheet = new ServerStyleSheet(); const main = sheet.collectStyles(<Main />); const styleTag...
src/components/pages/search/sub/PaxNumSpinner.js
filtudo/eebook
import React, { Component } from 'react'; import Button from '../../../common/Button'; import './PaxNumSpinner.scss' export default class PaxNumSpinner extends Component { paxNumberChange(operation){ this.props.onPaxNumberChange(this.props.paxType, operation); } render() { let fromTo = t...
docs/src/app/components/pages/components/Slider/ExampleAxis.js
lawrence-yu/material-ui
import React from 'react'; import Slider from 'material-ui/Slider'; const styles = { root: { display: 'flex', height: 124, flexDirection: 'row', justifyContent: 'space-around', }, }; /** * The orientation of the slider can be reversed and rotated using the `axis` prop. */ const SliderExampleAxis...
lib/panels/Clip/index.js
Kitware/light-viz
import equals from 'mout/src/array/equals'; import objEquals from 'mout/src/object/equals'; import DoubleSliderElement from 'paraviewweb/src/React/Widgets/DoubleSliderWidget'; import React from 'react'; import PropTypes from 'prop-types'; import ToggleButton from 'paraviewweb/src/React/Widgets/ToggleIconButtonWidget'; ...
src/containers/wrapper.js
MoveOnOrg/mop-frontend
import React from 'react' import { connect } from 'react-redux' import PropTypes from 'prop-types' import { scrollToTop } from '../lib' import { loadSession, loadCohort } from '../actions/sessionActions' import { appLocation } from '../routes' import { checkServerError } from '../actions/serverErrorActions' import { ...
demo/App.js
saulshanabrook/cerebral
import React from 'react'; import {Decorator as Cerebral} from './CustomController.js'; import AddTodo from './components/AddTodo.js'; import TodosList from './components/TodosList.js'; import TodosFooter from './components/TodosFooter.js'; @Cerebral({ visibleTodos: ['visibleTodos'], todos: ['todos'] }) class App ...
src/svg-icons/maps/local-laundry-service.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalLaundryService = (props) => ( <SvgIcon {...props}> <path d="M9.17 16.83c1.56 1.56 4.1 1.56 5.66 0 1.56-1.56 1.56-4.1 0-5.66l-5.66 5.66zM18 2.01L6 2c-1.11 0-2 .89-2 2v16c0 1.11.89 2 2 2h12c1.11 0 2-.89 ...
public/js/cat_source/es6/components/modals/ModifyTeam.js
riccio82/MateCat
import TeamConstants from '../../constants/TeamConstants' import TeamsStore from '../../stores/TeamsStore' import ManageActions from '../../actions/ManageActions' import React from 'react' class ModifyTeam extends React.Component { constructor(props) { super(props) this.state = { team: this.props.team, ...
src/Alert.js
egauci/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import bootstrapUtils, { bsStyles, bsClass } from './utils/bootstrapUtils'; import { State } from './styleMaps'; let Alert = React.createClass({ propTypes: { onDismiss: React.PropTypes.func, dismissAfter: React.PropTypes.number, closeLabel:...
docs/app/Examples/elements/Segment/Variations/SegmentExampleEmphasis.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Segment } from 'semantic-ui-react' const SegmentExampleEmphasis = () => ( <div> <Segment> I'm here to tell you something, and you will probably read me first. </Segment> <Segment secondary> I am pretty noticeable but you might check out other content before ...
modules/gui/src/app/home/map/labelsLayer.js
openforis/sepal
import {GoogleLabelsLayer} from './layer/googleLabelsLayer' import PropTypes from 'prop-types' import React from 'react' export class LabelsLayer extends React.Component { render() { return null } componentDidMount() { this.setLayer() } componentDidUpdate() { this.setLayer...
app/javascript/mastodon/features/notifications/components/setting_toggle.js
palon7/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Toggle from 'react-toggle'; export default class SettingToggle extends React.PureComponent { static propTypes = { prefix: PropTypes.string, settings: ImmutablePropTypes.map.isReq...
services/product-list/src/index.js
slamdev/catalog
import React from 'react' import {render} from 'react-dom'; import ProductPageContainer from './ProductPageContainer'; window.customElements.define('product-list', class ProductList extends HTMLElement { static get observedAttributes() { return ['error-mode', 'title']; } getTitle() { retu...
service_2/src/app-client.js
cleverbridge/spike_living_styleguide
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import AppRoutes from './components/app_routes'; window.onload = () => { ReactDOM.render(<AppRoutes/>, document.getElementById('main')); };
packages/mineral-ui-icons/src/IconSuccess.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 IconSuccess(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconProps}...
apps/app/src/components/Loader.js
argos-ci/argos
import React from 'react' import { Box } from '@xstyled/styled-components' export const Loader = props => ( <Box forwardedAs="svg" width="2rem" height="2rem" viewBox="0 0 135 140" fill="currentColor" {...props} > <rect y={10} width={15} height={120} rx={6}> <animate attrib...
src/svg-icons/hardware/watch.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareWatch = (props) => ( <SvgIcon {...props}> <path d="M20 12c0-2.54-1.19-4.81-3.04-6.27L16 0H8l-.95 5.73C5.19 7.19 4 9.45 4 12s1.19 4.81 3.05 6.27L8 24h8l.96-5.73C18.81 16.81 20 14.54 20 12zM6 12c0-3.31 2....
examples/redux/components/Github.js
dlmr/react-router-redial
import React, { Component } from 'react'; import { Link } from 'react-router'; export default class Github extends Component { constructor(props) { super(props); this.state = { value: '' }; } onChange = (e) => { this.setState({ value: e.target.value.toLowerCase() }); }; render() { return (...
create-react-app/src/index.js
highmind/Study
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker(); // 入口文件
src/routes/Counter/components/Counter.js
Havoc-Todo/havoc-web
import React from 'react' export const Counter = (props) => ( <div style={{ margin: '0 auto' }} > <h2>Counter: {props.count}, Clicks: {props.clicks}</h2> <button className='btn btn-default' onClick={() => { props.increment() props.click() }}> Increment </button> {' '} <butto...
src/svg-icons/toggle/check-box-outline-blank.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleCheckBoxOutlineBlank = (props) => ( <SvgIcon {...props}> <path d="M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"/> </SvgIcon> ); ToggleCheckBoxOutlineBlank =...
app/jsx/calendar/scheduler/components/FindAppointment.js
djbender/canvas-lms
/* * Copyright (C) 2016 - 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/Credits/Credits.stories.js
wfp/ui
import React from 'react'; import Credits from '../Credits'; import markdown from './README.mdx'; export default { title: 'Components/UI Elements/Credits', component: Credits, parameters: { componentSubtitle: 'Component', status: 'released', mdx: markdown, }, /*argTypes: { children: { cont...
example/src/components/bar.js
jerairrest/react-chartjs-2
import React from 'react'; import {Bar} from 'react-chartjs-2'; const data = { labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'], datasets: [ { label: 'My First dataset', backgroundColor: 'rgba(255,99,132,0.2)', borderColor: 'rgba(255,99,132,1)', borderWidth: 1, ...
docs-ui/components/emptyStateWarning.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {withInfo} from '@storybook/addon-info'; import EmptyStateWarning from 'app/components/emptyStateWarning'; storiesOf('EmptyStateWarning', module).add( 'default', withInfo('Default')(() => ( <EmptyStateWarning data="https://example.o...
hackupc/node_modules/react-router/es/Redirect.js
IKholopov/HackUPC2017
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement as _createRouteFromReactElement } from './RouteUtils'; import { formatPattern } from './PatternUtils'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes, string = _React$PropTypes.st...
app/components/MyContribute.js
Toreant/monster_web
/** * Created by apache on 15-12-15. */ import React from 'react'; import MyContributeActions from '../actions/MyContributeActions'; import MyContributeStore from '../stores/MyContributeStore'; import {Link} from 'react-router'; import Loading from './Loading'; class MyContribute extends React.Component { constr...
information/blendle-frontend-react-source/app/modules/deeplink/components/DeeplinkHeader.js
BramscoChill/BlendleParser
import React from 'react'; import PropTypes from 'prop-types'; import Settings from 'controllers/settings'; import { translate, translateElement } from 'instances/i18n'; import LogoLink from 'components/navigation/LogoLink'; import BrowserEnvironment from 'instances/browser_environment'; import LoginDropdownContainer f...
src/svg-icons/device/settings-system-daydream.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSettingsSystemDaydream = (props) => ( <SvgIcon {...props}> <path d="M9 16h6.5c1.38 0 2.5-1.12 2.5-2.5S16.88 11 15.5 11h-.05c-.24-1.69-1.69-3-3.45-3-1.4 0-2.6.83-3.16 2.02h-.16C7.17 10.18 6 11.45 6 13c0 1....
src/components/common/svg-icons/action/watch-later.js
abzfarah/Pearson.NAPLAN.GnomeH
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionWatchLater = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm4.2 14.2L11 13V7h1.5v5.2l4.5 2.7-.8 1.3z"/> </SvgIcon> ); ActionWatchLater = pure(Ac...
jenkins-design-language/src/js/components/material-ui/svg-icons/navigation/close.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const NavigationClose = (props) => ( <SvgIcon {...props}> <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"/> </SvgIcon> ); NavigationClose.displayName = 'NavigationClose'; NavigationCl...
js/components/home/jobAlert.js
baskoropn/kerjain
import React, { Component } from 'react'; import { Image, TouchableOpacity } from 'react-native'; import { Container, Content, Card, CardItem, Text, View, Body, List, ListItem, Icon, Right, Button, Label, DeckSwiper, Left, Thumbnail } from 'native-base'; import styles from './styles'; const dataon = require('../.....
fields/types/cloudinaryimages/CloudinaryImagesField.js
developer-prosenjit/keystone
import _ from 'underscore'; import React from 'react'; import Field from '../Field'; import { Button, FormField, FormInput, FormNote } from 'elemental'; const SUPPORTED_TYPES = ['image/gif', 'image/png', 'image/jpeg', 'image/bmp', 'image/x-icon', 'application/pdf', 'image/x-tiff', 'image/x-tiff', 'application/postscri...
app/containers/LanguageProvider/index.js
7ruth/PadStats2
/* * * LanguageProvider * * this component connects the redux state language locale to the * IntlProvider component and i18n messages (loaded from `app/translations`) */ import React from 'react'; import { connect } from 'react-redux'; import { createSelector } from 'reselect'; import { IntlProvider } from 'reac...
information/blendle-frontend-react-source/app/modules/settings/containers/EmailsContainer.js
BramscoChill/BlendleParser
import React from 'react'; import Emails from 'modules/settings/components/Emails'; import Auth from 'controllers/auth.js'; import ErrorDialogue from 'components/dialogues/ErrorDialogue'; import DialoguesController from 'controllers/dialogues'; import Analytics from 'instances/analytics'; function trackAnalytics(prope...
docs/app/Examples/collections/Grid/Content/index.js
mohammed88/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const GridContentExamples = () => ( <ExampleSection title='Content'> <ComponentExample title='Rows' description='A r...
app/components/Navigation/index.js
seanng/jobmaster-web
/** * * Navigation * */ import React from 'react'; // import styled from 'styled-components'; import { FormattedMessage } from 'react-intl'; import { Link } from 'react-router'; import messages from './messages'; class Navigation extends React.PureComponent { // eslint-disable-line react/prefer-stateless-function ...
webpack/move_to_foreman/components/common/table/formatters/headerFormatter.js
mccun934/katello
import React from 'react'; import { Table as PfTable } from 'patternfly-react'; export default value => <PfTable.Heading>{value}</PfTable.Heading>;
app/src/components/CardBase.js
cs-cordero/mtgls
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import {removeReminderText} from '../util'; import {getCardColor} from '../util'; export default class CardBase extends React.Component { static PropTypes = { cardImg: PropTypes.string.isRequired, ca...
src/components/Alert.js
edauenhauer/google-drive-copy-folder
/** * Basic panel to hold content */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import Paper from 'material-ui/Paper'; export default function Alert(props) { return ( <Paper zDepth={1}> <div className={['alert', props.className].join(' ')}> {props.label && ( ...
frontend/src/Components/Link/ClipboardButton.js
geogolem/Radarr
import Clipboard from 'clipboard'; import PropTypes from 'prop-types'; import React, { Component } from 'react'; import FormInputButton from 'Components/Form/FormInputButton'; import Icon from 'Components/Icon'; import { icons, kinds } from 'Helpers/Props'; import getUniqueElememtId from 'Utilities/getUniqueElementId';...
front/app/js/components/TopicCard.js
nudoru/learning-map
import React from 'react'; import {Grid} from "../rh-components/rh-Grid"; export const TopicCard = ({title, summary, children}) => { const titleEl = title ? <h1>{title}</h1> : null; const summaryEl = summary ? <div className="text-summary" dangerouslySetInnerHTML={{__html: summar...
src/DropdownToggle.js
xiaoking/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import Button from './Button'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const CARET = <span> <span className="caret" /></span>; export default class DropdownToggle extends React.Component { render() ...
13. ReactJS Fundamentals - Feb 2019/05. Higher Order Components/Warning/warning/src/components/Navigation/Navigation.js
zrusev/SoftwareUniversity2016
import React, { Component } from 'react'; class Navigation extends Component { render() { return ( <nav> <header><span className="title">Navigation</span></header> <ul> <li><a href="#">Home</a></li> <li><a href="#">Catalog</a></li> ...
examples/universal/client.js
usufruct/redux
import 'babel-core/polyfill'; import React from 'react'; import configureStore from './store/configureStore'; import { Provider } from 'react-redux'; import App from './containers/App'; const initialState = window.__INITIAL_STATE__; const store = configureStore(initialState); const rootElement = document.getElementB...