path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/app/Examples/modules/Progress/States/ProgressExampleError.js
koenvg/Semantic-UI-React
import React from 'react' import { Progress } from 'semantic-ui-react' const ProgressExampleError = () => ( <Progress percent={100} error> There was an error </Progress> ) export default ProgressExampleError
src/containers/pages/reddit/posts/content/header/header-item.js
vFujin/HearthLounge
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; const RedditHeaderItem = ({name}) => ( <li className={`redditPosts__snippet--${name}`} key={name}>{_.startCase(name)}</li> ); RedditHeaderItem.propTypes = { name: PropTypes.string.isRequired }; RedditHeaderItem.defaultProps = ...
src/rsg-components/Markdown/Hr/HrRenderer.js
bluetidepro/react-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Styled from 'rsg-components/Styled'; const styles = ({ space, color }) => ({ hr: { borderBottom: [[1, color.border, 'solid']], marginTop: 0, marginBottom: space[2], }, }); export function HrRenderer({ classes }) { return <hr className={cl...
app/app.js
jesus9ias/solar_system
/** * 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...
examples/react-native-expo/SelectFilesButton.js
transloadit/uppy
import React from 'react' // eslint-disable-line no-unused-vars import { Text, TouchableHighlight, StyleSheet } from 'react-native' export default function SelectFiles (props) { return ( <TouchableHighlight onPress={props.showFilePicker} style={styles.button} > <Text style={styles.text}>Sel...
src/svg-icons/action/compare-arrows.js
igorbt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionCompareArrows = (props) => ( <SvgIcon {...props}> <path d="M9.01 14H2v2h7.01v3L13 15l-3.99-4v3zm5.98-1v-3H22V8h-7.01V5L11 9l3.99 4z"/> </SvgIcon> ); ActionCompareArrows = pure(ActionCompareArrows); Acti...
assets/registration/components/AddButton.js
janta-devs/nyumbani
import React, { Component } from 'react'; class AddButton extends Component { render() { return ( <span className="input-group-btn input-group-sm"> <button type="button" className="btn btn-fab btn-fab-sm" > <i className="pe-7s-plus pe-va pe-lg" onClick = {this.props.getAction}>Add Fields</i> ...
src/svg-icons/action/aspect-ratio.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAspectRatio = (props) => ( <SvgIcon {...props}> <path d="M19 12h-2v3h-3v2h5v-5zM7 9h3V7H5v5h2V9zm14-6H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16.01H3V4.99h18v14.02z"/> <...
app/components/AddNewInvestor/index.js
medevelopment/UMA
import React, { Component } from 'react'; import { browserHistory } from 'react-router'; import * as toastify from '../../functions/Toastify'; import styled from 'styled-components'; import axios from 'axios'; import Drawer from 'material-ui/Drawer'; import TextField from 'material-ui/TextField'; import RaisedButton fr...
index.js
maicki/react-native-event-bridge
/** * EventBrige * @flow */ // Native Event Bridge // Wrapper around sending and receieving events that are related to components // and view hierarchy of a root view import React from 'react'; import { findNodeHandle, NativeModules, NativeEventEmitter, } from 'react-native'; import invariant from 'invariant...
03a-todo-list-from-scratch/src/App.js
dtanzer/react-basic-examples
import React from 'react'; import logo from './logo.svg'; import './App.css'; function App() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <p> Edit <code>src/App.js</code> and save to reload. </p> ...
src/components/Button.js
gbuszmicz/giphyapp
import React, { Component } from 'react'; import { View, StyleSheet, Text, TouchableOpacity, Image } from "react-native"; import AppStyleSheet from "../styles"; import Icon from 'react-native-vector-icons/Foundation'; export default class Button extends Component { constructor(props) { super(props)...
src/components/layouts/Auth/index.js
apedyashev/react-universal-jobs-aggregator
// libs import React from 'react'; import {PropTypes} from 'prop-types'; // components import {Redirect} from 'react-router-dom'; // other import styles from './index.less'; export default function AuthLayout({children}, {loggedUserId}) { if (loggedUserId) { return <Redirect to="/dashboard" />; } return ( ...
src/components/Feedback/Feedback.js
jeffreymoya/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
src/app/atoms/Textarea.react.js
blueberryapps/react-bluekit
import Component from '../PureRenderComponent.react'; import Radium from 'radium'; import React from 'react'; import RPT from 'prop-types'; import * as colors from '../styles/Colors'; @Radium export default class Textarea extends Component { static propTypes = { key: RPT.string, onChange: RPT.func, valu...
src/svg-icons/communication/import-contacts.js
hai-cea/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationImportContacts = (props) => ( <SvgIcon {...props}> <path d="M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 2...
src/admin/ReferralHeader.js
ocelotconsulting/global-hack-6
import React from 'react' const RefferalHeader = () => ( <thead> <tr> <th>Select</th> <th>Program Name</th> <th>Program Location</th> <th>Program Type</th> </tr> </thead> ) RefferalHeader.displayName = 'RefferalHeader' export default RefferalHeader
src/icons/LocalMallIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class LocalMallIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M38 12h-4c0-5.52-4.48-10-10-10S14 6.48 14 12h-4c-2.21 0-3.98 1.79-3.98 4L6 40c0 2.21 1.79 4 4 4h28c2.21 ...
code/workspaces/web-app/src/pages/SilentCallbackPage.js
NERC-CEH/datalab
import React from 'react'; import RenewalCallback from '../components/app/RenewalCallback'; const SilentCallbackPage = props => (<RenewalCallback {...props} />); export default SilentCallbackPage;
node_modules/@material-ui/core/es/ListItemAvatar/ListItemAvatar.js
pcclarke/civ-techs
import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; import React from 'react'; import PropTypes from 'prop-types'; import clsx from 'clsx'; import withStyles from '../styles/withStyles'; import ListContext from '../List/...
src/components/about/AboutPage.js
fckey/shapit
import React from 'react'; import {Link} from 'react-router'; class HomePage extends React.Component { render(){ return ( <div className="jumbotron"> <h1>About </h1> </div> ); } } export default HomePage;
public/components/Footer.js
supportivesantas/project-ipsum
import React from 'react'; import {Grid, Row, Col} from 'react-bootstrap'; var handleSubmit = (e) => { e.preventDefault(); // do login with github here window.location.href = '/auth/github'; } class Footer extends React.Component { render() { return ( <div className='footer'> <div className='foo...
lib/components/SvgCircle/index.js
EloB/code-test
import React from 'react'; const SvgCircle = () => ( <div /> ); export default SvgCircle;
app/javascript/mastodon/components/regeneration_indicator.js
Ryanaka/mastodon
import React from 'react'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_working.svg'; const RegenerationIndicator = () => ( <div className='regeneration-indicator'> <div className='regeneration-indicator__figure'> <img src={illustration} alt='' /> ...
custom_modules/UIKit/Navbar.js
hustmsc/hustmsc-app
import React, { Component } from 'react'; import { StyleSheet, Image, View, } from 'react-native'; import Dimensions from 'Dimensions'; export default class LaunchScreen extends Component { render() { return ( <Image style={[styles.backgroundImage, styles.flexContai...
frontend/js/components/molecules/Tagline.js
Code4HR/okcandidate-platform
'use strict'; import React, { Component } from 'react'; class Tagline extends Component { render() { return ( <div className="tagline"> <div>Made with <span className="heart">♥</span> by Code for Hampton Roads.</div> <div><a href="#">Leave Feedback</a> <a href="...
packages/ndla-audio-search/src/AudioSearchList.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ import React from 'react'; import PropTypes from 'prop-types'; import BEMHelper from 'react-bem-helper'; import AudioSearchResult from './Au...
frontend/src/client.js
lanets/floorplanets
// @flow import React from 'react'; import styled from 'styled-components'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import logger from 'redux-logger'; import type { FloorplanConfig } from './types'; import reducers from './reduc...
modules/react-docs/src/components/Sidebar.js
JunisphereSystemsAG/react-color
/* jshint node: true, esnext: true */ "use strict"; import React from 'react'; import ReactCSS from 'reactcss'; import markdown from '../helpers/markdown'; import { Tile } from '../../../react-material-design'; import SidebarItem from './SidebarItem'; class Sidebar extends ReactCSS.Component { classes() { ret...
src/issue/screens/edit-issue-comment.screen.js
Antoine38660/git-point
// @flow import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { ScrollView, StyleSheet, TextInput, View, Dimensions, } from 'react-native'; import { ListItem } from 'react-native-elements'; import { ViewContainer, SectionList, Loa...
src/Home/Home.js
Xeroeta/nkcgo-webapp
import React, { Component } from 'react'; class Home extends Component { login() { this.props.auth.login(); } render() { const { isAuthenticated } = this.props.auth; return ( <div className="container"> { isAuthenticated() && ( <h4> You are logged...
client/src/components/EducationList.js
serban-petrescu/candidate-management
/** * Created by blajv on 22.06.2017. */ import React from 'react'; import {fetchCandidateEducation} from "../actions/CandidateActions"; /** * Component used to display all the education data of the selected candidate * by accessing the Education tab. */ export default class EducationList extends React.Component {...
src/svg-icons/maps/local-convenience-store.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalConvenienceStore = (props) => ( <SvgIcon {...props}> <path d="M19 7V4H5v3H2v13h8v-4h4v4h8V7h-3zm-8 3H9v1h2v1H8V9h2V8H8V7h3v3zm5 2h-1v-2h-2V7h1v2h1V7h1v5z"/> </SvgIcon> ); MapsLocalConvenienceStore = ...
src/app/component/search-field/search-field.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {withState} from '@dump247/storybook-state' import SearchField from '.' storiesOf('SearchField', module) .add( 'default', withState({value: ''}, store => ( <SearchField placeholder="Search…" value={store.state....
src/component/home/index.js
Cadburylion/personal-portfolio
import React from 'react' import ReactDom from 'react-dom' import {connect} from 'react-redux' import {withRouter} from 'react-router' import {NavLink} from 'react-router-dom' import FontAwesome from 'react-fontawesome' import * as viewActions from '../../action/viewActions.js' import * as route from '../../action/rout...
src/applications/hca/config/chapters/veteranInformation/veteranGender.js
department-of-veterans-affairs/vets-website
import fullSchemaHca from 'vets-json-schema/dist/10-10EZ-schema.json'; import React from 'react'; import PrefillMessage from 'platform/forms/save-in-progress/PrefillMessage'; import AdditionalInfo from '@department-of-veterans-affairs/component-library/AdditionalInfo'; import CustomReviewField from '../../../component...
src/components/slider/slide/templates/jobs-clients.js
adrienhobbs/redux-glow
import React from 'react'; import styles from './jobs-clients-slide.css'; import AllClients from 'components/ui/clients-component/index.js'; import CustomLink from 'components/nav/custom-link.js'; const JobsClients = React.createClass({ render () { return ( <div className={styles.outer}> <div clas...
src/components/addition.js
shadow-Fiend/reduxTest
import React from 'react' import PropTypes from 'prop-types' import Nav from './nav' const addition = ({ onAChange, onBChange, a, b, c, push }) => ( <div> <Nav push={push}/> <span> 加法:</span> <input onChange={onAChange} value={a} /> + <input onChange={onBChange} value={b} />...
server/sonar-web/src/main/js/main/nav/settings/settings-nav.js
joansmith/sonarqube
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
src/_lib/stubs.js
Inkdpixels/react-ux-forms
import React from 'react'; export const fn = () => null; export const Component = props => <div {...props}/>;
modules/react-material-design/src/components/Link.js
JedWatson/react-color
'use strict'; import React from 'react'; import _ from 'lodash'; class Link extends React.Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } handleClick(e) { if (this.props.onClick) { this.props.onClick(e, this.props.callbackValue); } } render() {...
app/react-icons/fa/mobile.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaMobile extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m21.9 31.4q0-0.7-0.6-1.2t-1.2-0.6-1.3 0.6-0.5 1.2 0.5 1.3 1.3 0.5 1.2-0.5 0.6...
src/components/progressbar.js
kristian76/geezer
/** * * */ import React from 'react' const ProgressBar = ({ progress }) => ( <div className="mdl-progress mdl-js-progress is-upgraded" style={{width: 'inherit'}}> <div data-t={`${progress}%`} className="progressbar bar bar1" style={{width: `${progress}%`}}></div> <div className="bufferbar bar b...
docs/src/app/components/pages/components/TextField/ExampleCustomize.js
frnk94/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; import {orange500, blue500} from 'material-ui/styles/colors'; const styles = { errorStyle: { color: orange500, }, underlineStyle: { borderColor: orange500, }, floatingLabelStyle: { color: orange500, }, floatingLabelFocu...
httpdocs/theme/react/hooks-app/pling-section/components/Header.js
KDE/ocs-webserver
import React from 'react'; import {filterDuplicated} from './util'; const Header = (props) => { const s = props.supporters.filter(filterDuplicated).length; let goal = Math.ceil((s/50))*50; if(goal==0){goal = 50;} return ( <div className="pling-section-header"> <div className="header-title"> ...
app/jsx/account_course_user_search/components/UserLink.js
djbender/canvas-lms
/* * Copyright (C) 2015 - 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...
common/components/topic-container/reply-list-item.js
vincent178/scala-china
import React, { Component } from 'react'; import UserAvatar from '../shared/user-avatar'; import styles from './reply-list-item.css'; export default class ReplyListItem extends Component { render() { const { user, reply } = this.props; const replyBodyHtml = {__html: reply.body_html}; return ( <d...
app/components/faq/FaqcontentXL/index.js
vkurzweg/aloha
/** * * Faqcontent * */ import React from 'react'; // import styled from 'styled-components'; import { Link } from 'react-router'; import Q from './Q'; import A from './A'; import FAQ from 'data/Faq'; function Faqcontent() { const office = 'http://res.cloudinary.com/kurzweg/image/upload/v1494631994/office_tuvew1.p...
newclient/scripts/components/admin/list-view/sort-arrow/index.js
kuali/research-coi
/* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program 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, either version 3 of the Lic...
src/PopoverMenuItem/index.js
christianalfoni/ducky-components
import Icon from '../Icon'; import React from 'react'; import PropTypes from 'prop-types'; import Typography from '../Typography'; import Wrapper from '../Wrapper'; import classNames from 'classnames'; import styles from './styles.css'; function PopoverMenuItem(props) { return ( <Wrapper class...
assets/javascripts/kitten/components/graphics/icons/giropay-icon/index.js
KissKissBankBank/kitten
import React from 'react' import classNames from 'classnames' export const GiropayIcon = ({ className, ...props }) => ( <svg width="47" height="20" viewBox="0 0 47 20" xmlns="http://www.w3.org/2000/svg" className={classNames('k-ColorSvg', className)} {...props} > <title>Giropay</title> ...
spec/javascripts/jsx/authentication_providers/AuthTypePickerSpec.js
djbender/canvas-lms
/* * Copyright (C) 2017 - 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/js/Form/auth-form.component.js
msdkeian/laleh-react
import React from 'react'; import RegisterFormComponent from './register-form.component'; import SignInFormComponent from './sign-in-form.component'; class AuthFormComponent extends React.Component { constructor(props) { super(props); this.state = { haveAccount: false, isA...
src/svg-icons/notification/vpn-lock.js
verdan/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationVpnLock = (props) => ( <SvgIcon {...props}> <path d="M22 4v-.5C22 2.12 20.88 1 19.5 1S17 2.12 17 3.5V4c-.55 0-1 .45-1 1v4c0 .55.45 1 1 1h5c.55 0 1-.45 1-1V5c0-.55-.45-1-1-1zm-.8 0h-3.4v-.5c0-.94.76-...
src/bundles/SellerRegistration/components/BusinessInfoForm/BusinessInfoForm.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react'; import PropTypes from 'prop-types' import {connect} from 'react-redux'; import {Form, Control} from 'react-redux-form'; import Layout from '../../../../shared/Layout'; import BaseForm from '../../../../shared/form/BaseForm'; import SubmitForm from '../../../../shared/form/SubmitForm';...
src/components/Static/Address/index.js
jmikrut/keen-2017
import React from 'react'; export default () => { return ( <div className="studio"> <h5>Studio</h5> <p> <a href="https://goo.gl/maps/qqpUKto1ZP12" target="_blank" rel="noopener noreferrer"> 500 Stocking Ave NW<br/> Grand Rapids, MI 49504<br/> United States </a> </p> </div> ) }
icandevit/src/components/Skills.js
yeli-buonya/icandevit.io
import React from 'react'; import FontAwesome from 'react-fontawesome'; import { Grid, Row, Col } from 'react-bootstrap'; class Skills extends React.Component { render() { return ( <section id="skills-section" className="container"> <h2>Skills</h2> <p...
packages/icons/src/md/action/SpellCheck.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdSpellCheck(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M22.96 31l-2.24-6H9.43l-2.25 6H3L13.22 5h3.71l10.21 26h-4.18zM10.93 21h8.28L15.07 9.95 10.93 21zm30.31 1.17L25.07 38.34 17.73 31l-2.83 2.83L25.07 ...
src/svg-icons/editor/format-color-fill.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorFormatColorFill = (props) => ( <SvgIcon {...props}> <path d="M16.56 8.94L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.59-.59 1.54 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.58.59-1.53 ...
example/src/screens/types/tabs/TabTwo.js
BrendonSled/react-native-navigation
import React from 'react'; import {View, Text} from 'react-native'; class TabOne extends React.Component { render() { return ( <View> <Text>Tab Two</Text> </View> ); } } export default TabOne;
src/icons/ErrorIcon.js
kiloe/ui
import React from 'react'; import Icon from '../Icon'; export default class ErrorIcon extends Icon { getSVG(){return <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 48 48"><path d="M24 4C12.96 4 4 12.95 4 24s8.96 20 20 20 20-8.95 20-20S35.04 4 24 4zm2 30h-4v-4h4v4zm0-8h-4V14h4v12z"/></svg...
packages/fyndiq-component-dropdown/src/index.js
fyndiq/fyndiq-ui
import React from 'react' import PropTypes from 'prop-types' import Button from 'fyndiq-component-button' import { Arrow } from 'fyndiq-icons' import styles from '../styles.css' // Note on disabled rules: The component is accessible. // It might not be built in the perfect way (feel free to redo it) // but it is acce...
packages/wix-style-react/src/ModalSelectorLayout/ModalSelectorLayout.js
wix/wix-style-react
import React from 'react'; import PropTypes from 'prop-types'; import SelectorList from '../SelectorList'; import HeaderLayout from '../MessageBox/FunctionalLayout/HeaderLayout'; import FooterLayout from '../MessageBox/FunctionalLayout/FooterLayout'; import { classes } from './ModalSelectorLayout.st.css'; import deprec...
src/modules/comments/containers/CommentLemmaSelectContainer/CommentLemmaSelectContainer.js
CtrHellenicStudies/Commentary
import React from 'react'; import { compose } from 'react-apollo'; import textNodesQuery from '../../../textNodes/graphql/queries/textNodesQuery'; import CommentLemmaSelect from '../../components/CommentLemmaSelect/CommentLemmaSelect'; // lib import Utils from '../../../../lib/utils'; const CommentLemmaSelectCont...
es/components.js
modosc/react-responsive-redux
import _defineProperty from "@babel/runtime/helpers/defineProperty"; import _extends from "@babel/runtime/helpers/extends"; import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties"; var _excluded = ["dispatch", "fakeWidth", "children"]; function ownKeys(object, enumerableOnly) { var keys =...
lib/components/Main.js
hex13/atom-lupa
"use babel"; import React from 'react'; // TODO this is legacy HTML code. Change to JSX. HTML is not cool anymore. var html = `<div id='lupa-editor-wrapper'></div> <div id='lupa-info'></div> <div style='height: 4px'></div> <button style='display:none' id='lupa-run'>Run</button> <button class='btn' id='lupa-refresh'><s...
docs/static/js/34.a48d4954.chunk.js
yurizhang/ishow
webpackJsonp([34],{198:function(n,e,t){"use strict";function o(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function a(n,e){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==typeof e&&"function"!==typeof e?n:e}function ...
docs/app/Examples/elements/Icon/Variations/IconExampleFlipped.js
aabustamante/Semantic-UI-React
import React from 'react' import { Icon } from 'semantic-ui-react' const IconExampleFlipped = () => ( <div> <Icon flipped='horizontally' name='cloud' /> <Icon flipped='vertically' name='cloud' /> </div> ) export default IconExampleFlipped
app/javascript/mastodon/features/list_editor/components/search.js
im-in-space/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { defineMessages, injectIntl } from 'react-intl'; import { fetchListSuggestions, clearListSuggestions, changeListSuggestions } from '../../../actions/lists'; import classNames from 'classnames'; import Icon from...
test/integration/css-features/fixtures/browsers-old/pages/_app.js
flybayer/next.js
import App from 'next/app' import React from 'react' import './styles.css' class MyApp extends App { render() { const { Component, pageProps } = this.props return <Component {...pageProps} /> } } export default MyApp
app/containers/LocaleToggle/index.js
huahuaxiong/console
/* * * LanguageToggle * */ import React from 'react'; import { connect } from 'react-redux'; import { selectLocale } from '../LanguageProvider/selectors'; import { changeLocale } from '../LanguageProvider/actions'; import { appLocales } from '../../i18n'; import { createSelector } from 'reselect'; import styles fr...
src/main/scripts/modules/sea-siege/react/views/game.js
twuni/sea-siege
import React from 'react'; import View from '../components/view'; import Link from '../components/link'; class GameView extends View { get serversUrl() { return `${this.url}/servers`; } renderTitle() { const {model} = this; const {logoUrl, displayName} = model; if(logoUrl) { return <img ...
app/components/Trees/Visualizer.js
ivtpz/brancher
/* eslint react/no-array-index-key: 0 */ import React, { Component } from 'react'; import jsplumb from 'jsplumb'; import Tree from './Tree'; import { mapConnections } from '../../utils/vertTreeUtils'; import * as styles from '../Home.scss'; export default class Visualizer extends Component { constructor(props) { ...
src/js/components/icons/base/PlatformDxc.js
kylebyerly-hp/grommet
// (C) Copyright 2014-2015 Hewlett Packard Enterprise Development LP import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import CSSClassnames from '../../../utils/CSSClassnames'; import Intl from '../../../utils/Intl'; import Props from '../../../utils/Pro...
frontend/src/components/forms/fields/projectFields/selectionCriteria/criteriaField.js
unicef/un-partner-portal
import React from 'react'; import PropTypes from 'prop-types'; import SelectForm from '../../../selectForm'; const messages = { label: 'Criteria', }; const CriteriaField = (props) => { const { name, values, fields, index, ...other } = props; const chosenCriteria = fields.getAll().map(field => field.selection_c...
docs/app/containers/Components/ComponentView.js
kmees/react-fabric
import React from 'react' import ReactDOM from 'react-dom' import cssm from 'react-css-modules' import { Button } from 'react-fabric' import { Raw } from '../../components' import style from './Components.scss' const EXAMPLE_REGEX = /<!-- EXAMPLE -->/g const EXAMPLE_HOOK = 'js-load-example' const EXAMPLE_PLACEHOLDER...
examples/Debug.js
jaredpalmer/formik
import React from 'react'; import { FormikConsumer } from 'formik'; export const Debug = () => ( <div style={{ margin: '3rem 1rem', borderRadius: 4, background: '#f6f8fa', boxShadow: '0 0 1px #eee inset', }} > <div style={{ textTransform: 'uppercase', font...
src/parser/shared/modules/spells/bfa/essences/LucidDreamsRage.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { calculatePrimaryStat } from 'common/stats'; import SpellLink from 'common/SpellLink'; import StatIcon from 'interface/icons/PrimaryStat'; import ItemHealingDone from 'interface/ItemHealingDone'; import STATISTIC_CATEGORY from 'interface/oth...
client/blocks/quests/index.js
quarterto/almanac
import React from 'react' import styled from 'styled-components' import { compose, branch, withProps } from 'recompact' import Ornamented from '../../visual/ornamented' import { withCampaignDate } from '../../data/calendar' import { withCampaignSession } from '../../data/campaign' import withCards from '../../data/card...
src/components/Sidebar/Copyright/Copyright.js
wall3/wall3.github.io
// @flow strict import React from 'react'; import styles from './Copyright.module.scss'; type Props = { copyright: string }; const Copyright = ({ copyright }: Props) => ( <div className={styles['copyright']}> {copyright} </div> ); export default Copyright;
src/components/Feedback/Feedback.js
sherlock221/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import styles from './Feedback.css'; import withStyles from '../../decorators/withStyles'; @withStyles(styles) class Feedback { render() { return ( <div className="Feedback"> <div className="Feedba...
web/src/layout/layerbuttons.js
corradio/electricitymap
import React from 'react'; import { useSelector } from 'react-redux'; import { Link as RouterLink } from 'react-router-dom'; import { useTranslation } from '../helpers/translation'; import { saveKey } from '../helpers/storage'; import { useWindEnabled, useSolarEnabled, useSolarToggledLocation, useWindToggledLo...
components/avatar/Avatar.js
rubenmoya/react-toolbox
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { AVATAR } from '../identifiers'; import InjectFontIcon from '../font_icon/FontIcon'; const factory = (FontIcon) => { const Avatar = ({ alt, children, className, cover, ...
actor-apps/app-web/src/app/components/common/State.react.js
berserkertdl/actor-platform
import React from 'react'; import { MessageContentTypes } from 'constants/ActorAppConstants'; class State extends React.Component { static propTypes = { message: React.PropTypes.object.isRequired }; render() { const { message } = this.props; if (message.content.content === MessageContentTypes.SERVI...
client/src/js/components/chatbox/ChatboxEmojiBar.js
abitlog/retube
import React from 'react'; import ChatboxEmojiList from './ChatboxEmojiList'; import ChatboxEmojiTab from './ChatboxEmojiTab'; class ChatboxEmojiBar extends React.Component { static propTypes = { hidden: React.PropTypes.bool.isRequired, onEmojiClick: React.PropTypes.func.isRequired, onOpen: React.PropTy...
components/VehicleForm.js
dominiktilp/congestion-charge-app
import React from 'react'; import { browserHistory } from 'react-router'; class VehicleForm extends React.Component { constructor(props) { super(props); this.next = this.next.bind(this); this.validate = this.validate.bind(this); } validate() { if (this.refs.vehicleId.value === '') { r...
app/components/d3/index.js
aleksandrenko/apollo-cc
import './style.less'; import React from 'react'; import { select } from 'd3'; import ReactFauxDOM from 'react-faux-dom'; const Component = React.createClass({ render() { var list = ReactFauxDOM.createElement('ul'); select(list) .selectAll('li') .data([1,2,3]) .enter() .app...
src/App.js
oPauloChaves/controle-frotas
import React from 'react' import { HashRouter as Router, Route } from 'react-router-dom' import Grid from 'react-bootstrap/lib/Grid' import Row from 'react-bootstrap/lib/Row' import Col from 'react-bootstrap/lib/Col' import Header from './Header' import HomePage from './containers/Home' import VehicleForm from './conta...
src/containers/Portfolio/PortfolioPage.js
franciskim722/crypy
import React from 'react'; import PropTypes from 'prop-types'; import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import * as actions from '../../actions/PortfolioActions'; import './Portfolio.scss'; class PortfolioPage extends React.Component { constructor(props, context) { super(pr...
examples/sidebar/app.js
rubengrill/react-router
import React from 'react' import { render } from 'react-dom' import { createHistory, useBasename } from 'history' import { Router, Route, Link } from 'react-router' import data from './data' require('./app.css') const history = useBasename(createHistory)({ basename: '/sidebar' }) class Category extends React.Compo...
src/svg-icons/action/swap-vert.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSwapVert = (props) => ( <SvgIcon {...props}> <path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/> </SvgIcon> ); ActionSwapVert = pure(ActionSwapVert); ActionSwapVert.displa...
src/components/Weui/tab/tabbar.js
ynu/res-track-wxe
/** * Created by n7best */ import React from 'react'; import classNames from 'classnames'; export default class TabBar extends React.Component { render() { const {children, className, ...others} = this.props; const cls = classNames({ weui_tabbar: true }, className); ...
example/src/components/index.js
nheyn/express-isomorphic-dispatcher
import React from 'react'; import Immutable from 'immutable'; import TodoListHeader from './TodoListHeader'; import TodoListBody from './TodoListBody'; /** * React Component that render the entire app. */ const App = React.createClass({ propTypes: { dispatcher: React.PropTypes.object.isRequired // Isomorphi...
src/svg-icons/notification/sms.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationSms = (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-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/> </SvgIcon> ); NotificationSm...
docs/src/app/components/pages/customization/StylesOverridingCssExample.js
verdan/material-ui
import React from 'react'; import Checkbox from 'material-ui/Checkbox'; const StylesOverridingCssExample = () => ( <Checkbox name="StylesOverridingCssExample" label="Checked the mail" className="styles-overriding-css-example" /> ); export default StylesOverridingCssExample;
exts/yapi-plugin-advanced-mock/MockCol/CaseDesModal.js
YMFE/yapi
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Form, Select, InputNumber, Switch, Col, message, Row, Input, Button, Icon, AutoComplete, Modal } from 'antd'; const Option = Select.Option; const FormItem = Form.Item; import { safeAssign } from 'client/common...
examples/async/index.js
abalone0204/redux
import 'babel-core/polyfill'; import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementByI...
src/svg-icons/action/gavel.js
andrejunges/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionGavel = (props) => ( <SvgIcon {...props}> <path d="M1 21h12v2H1zM5.245 8.07l2.83-2.827 14.14 14.142-2.828 2.828zM12.317 1l5.657 5.656-2.83 2.83-5.654-5.66zM3.825 9.485l5.657 5.657-2.828 2.828-5.657-5.657z...
app/components/HomeComponents/OrderForm.js
hlynn93/basic_ims
import React, { Component } from 'react'; import _ from 'lodash'; import { Search, Input, Form, Button, Label } from 'semantic-ui-react'; const DEFAULT_QUANTITY = 1; const DECIMAL = 10; const initialState = { isLoading: false, value: '', results: [], transaction: { quantity: DEFAULT_QUANTITY, price: '...
templates/rubix/laravel/laravel-example/src/main.js
jeffthemaximum/jeffline
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './routes'; import render, { setRoutes } from '@sketchpixy/rubix/lib/others/router'; import { isBrowser } from '@sketchpixy/rubix'; if (isBrowser()) { render(routes, () => { console.log('Completed rendering!'); }); if (module.h...