path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/components/Sidebar/Contacts/Contacts.js
nicklanasa/nicklanasa.github.io
// @flow strict import React from 'react'; import { getContactHref, getIcon } from '../../../utils'; import Icon from '../../Icon'; import styles from './Contacts.module.scss'; type Props = { contacts: { [string]: string, }, }; const Contacts = ({ contacts }: Props) => ( <div className={styles['contacts']}>...
src/svg-icons/action/offline-pin.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (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 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
wwwroot/app/src/components/base/buttons/Button.js
AlinCiocan/PlanEatSave
import React from 'react'; import classNames from 'classnames'; const Button = (props) => { const buttonClasses = classNames({ 'pes-button': true, 'pes-button--ghost-button': props.ghostButton }); return ( <button className={buttonClasses} onClick={props.onC...
indico/web/client/js/jquery/widgets/track_role_widget.js
mic4ael/indico
// This file is part of Indico. // Copyright (C) 2002 - 2020 CERN // // Indico is free software; you can redistribute it and/or // modify it under the terms of the MIT License; see the // LICENSE file for more details. import React from 'react'; import ReactDOM from 'react-dom'; import {TrackACLField} from 'indico/rea...
src/utils/domUtils.js
azmenak/react-bootstrap
import React from 'react'; let canUseDom = !!( typeof window !== 'undefined' && window.document && window.document.createElement ); /** * Get elements owner document * * @param {ReactComponent|HTMLElement} componentOrElement * @returns {HTMLElement} */ function ownerDocument(componentOrElement) { let e...
src/svg-icons/action/assessment.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAssessment = (props) => ( <SvgIcon {...props}> <path d="M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z"/> </SvgIcon> ); ActionA...
src/components/ProgressBar/ProgressBar.js
miker169/ps-react-miker169
import React from 'react'; import PropTypes from 'prop-types'; class ProgressBar extends React.Component { getColor = (percent) => { if (this.props.percent === 100) return 'green'; return this.props.percent > 50 ? 'lightgreen' : 'red'; } getWidthAsPercentOfTotalWidth = () => { return parseInt(this.p...
react/examples/Code/React_Redux/src/components/App.js
jsperts/workshop_unterlagen
import React from 'react'; import ClickContainer from '../containers/Click'; function App() { return <ClickContainer />; } export default App;
packages/bonde-admin/src/app/context/wrapper.js
ourcities/rebu-client
import React from 'react' import ApplicationContextTypes from './types' class Wrapper extends React.Component { render () { const { children, component: Component, ...props } = this.props const { app } = this.context return ( <Component {...props} app={app}> {children} </Component> ...
app/react-icons/fa/user-secret.js
scampersand/sonos-front
import React from 'react'; import IconBase from 'react-icon-base'; export default class FaUserSecret extends React.Component { render() { return ( <IconBase viewBox="0 0 40 40" {...this.props}> <g><path d="m17.4 34.3l2.1-10-2.1-2.9-2.9-1.4z m5.7 0l2.8-14.3-2.8 1.4-2.2 2.9z m3.5-...
src/components/cta/CTA.js
djErock/Telemed-Website
import React, { Component } from 'react'; import { Link } from 'react-router-dom'; import { Connect } from "react-redux"; import { ImportAll } from '../../util/helpers' const ctaImages = ImportAll(require.context('../../img/cta', false, /\.(png|jpe?g|svg)$/)); import './cta.css'; //@Connect() class CTA extends Comp...
src/svg-icons/action/done-all.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDoneAll = (props) => ( <SvgIcon {...props}> <path d="M18 7l-1.41-1.41-6.34 6.34 1.41 1.41L18 7zm4.24-1.41L11.66 16.17 7.48 12l-1.41 1.41L11.66 19l12-12-1.42-1.41zM.41 13.41L6 19l1.41-1.41L1.83 12 .41 13.4...
packages/mineral-ui-icons/src/IconFastForward.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 IconFastForward(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...iconPr...
src/views/pages/not-found/not-found.js
Metaburn/doocrate
import React from 'react'; import './not-found.css'; import LoaderUnicorn from '../../components/loader-unicorn/loader-unicorn'; import Button from '../../components/button'; const NotFound = () => ( <div className="g-row not-found"> <br /> <h1>404 - איבדת את הדרך. לא מצאנו את הדף הזה.</h1> <br /> <...
frontend2/src/js/Game/GameContainer.js
cheijken/stonepaperscissors
import React, { Component } from 'react'; class GameContainer extends Component { constructor(props){ super(props); } render() { return ( <div> <ul> <li><a href="">Home</a></li> <li><a href="">Home</a></li> ...
src/components/Labels.js
jeffslofish/open-source-help-wanted
import React from 'react'; import * as chromatism from 'chromatism'; import PropTypes from 'prop-types'; const Labels = ({ labels }) => { return ( <div className='issue-labels'> {labels.map((label, i) => { const style = { backgroundColor: '#' + label.color, color: chromatism.con...
client/src/components/department/DepartmentForm.js
yegor-sytnyk/contoso-express
import React from 'react'; import TextInput from '../common/TextInput'; import NumberInput from '../common/NumbertInput'; import SelectInput from '../common/SelectInput'; import DateTimePicker from '../common/DateTimePicker'; import _ from 'lodash'; const DepartmentForm = ({department, allInstructors, onChange, errors...
src-client/scripts/lugg-view-controller.js
PaulRSwift/iLuggit
import Backbone from 'backbone' import React from 'react' import $ from 'jquery' import ACTIONS from './ACTIONS.js' import STORE from './STORE.js' import CargoDisplay from './display-cargo-details.js' import {LuggProfile, LuggView} from './lugg-list.js' import PackAuthView from './pack-auth-view.js' import LuggAuthVie...
src/components/ChatApp/MessageListItem/MessageListItem.react.js
uday96/chat.susi.ai
import React from 'react'; import PropTypes from 'prop-types'; import Emojify from 'react-emojione'; import TextHighlight from 'react-text-highlight'; import {AllHtmlEntities} from 'html-entities'; import $ from 'jquery'; import { imageParse, processText, renderTiles, drawMap, drawTable, renderMessageFooter, render...
src/components/ChatArea.js
zalmoxisus/react-chat
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import styles from '../chat.scss'; import Message from './message/Message'; export default class ChatArea extends Component { componentDidMount() { this.scrollDown = true; setTimeout(this.updateScrollTop, 0); } componentWillRe...
src/routes/UIElement/dataTable/index.js
cuijiaxu/react-front
import React from 'react' import { DataTable } from '../../../components' import { Table, Row, Col, Card, Select } from 'antd' class DataTablePage extends React.Component { constructor (props) { super(props) this.state = { filterCase: { gender: '', } } } handleSelectChange = (gender) => { ...
src/routes.js
qandobooking/booking-frontend
import React from 'react'; import { Route, IndexRoute } from 'react-router'; import App from './containers/App'; import ShopsListPage from './containers/ShopsListPage'; import ShopDetailPage from './containers/ShopDetailPage'; import ServiceBooking from './containers/ServiceBooking'; import ServiceBookingCaledarPage fr...
src/client/components/todos/todoitem.js
vacuumlabs/todolist
import PureComponent from '../../../lib/purecomponent'; import React from 'react'; import classnames from 'classnames'; import immutable from 'immutable'; import {deleteTodo} from '../../todos/actions'; export default class TodoItem extends PureComponent { render() { const todo = this.props.todo; return ( ...
app/components/Icons/MaleIcon.js
Tetraib/player.rauks.org
import React from 'react' import SvgIcon from 'material-ui/SvgIcon' const MaleIcon = (props) => ( <SvgIcon {...props}> <path d='M17.654,2l-0.828,1.449h2.069l-3.828,3.829C11.633,4.711,6.8,5.234,3.994,8.475 c-2.806,3.241-2.631,8.099,0.4,11.13s7.89,3.206,11.131,0.4c3.24-2.807,3.764-7.639,1.197-11.073l3.828-3.829v2....
demo/src/index.js
cammcguinness/react-bibliography
import React from 'react' import {render} from 'react-dom' import Component from '../../src' var bib = `@article{ashlock2011search, title={Search-based procedural generation of maze-like levels}, author={Ashlock, Daniel and Lee, Colin and McGuinness, Cameron}, journal={IEEE Transactions on Computational Intell...
src/svg-icons/editor/merge-type.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorMergeType = (props) => ( <SvgIcon {...props}> <path d="M17 20.41L18.41 19 15 15.59 13.59 17 17 20.41zM7.5 8H11v5.59L5.59 19 7 20.41l6-6V8h3.5L12 3.5 7.5 8z"/> </SvgIcon> ); EditorMergeType = pure(Editor...
frontend/src/Settings/ImportLists/ImportListExclusions/EditImportListExclusionModalContent.js
geogolem/Radarr
import PropTypes from 'prop-types'; import React from 'react'; import Form from 'Components/Form/Form'; import FormGroup from 'Components/Form/FormGroup'; import FormInputGroup from 'Components/Form/FormInputGroup'; import FormLabel from 'Components/Form/FormLabel'; import Button from 'Components/Link/Button'; import S...
src/components/ListResults.js
gbuszmicz/giphyapp
import React, { Component } from 'react'; import { StyleSheet, ListView } from 'react-native'; import ListResultItem from './ListResultItem'; export default class ListResults extends Component { constructor(props) { super(props); this._renderCell = this._renderCell.bind(this); let { entries } = t...
src/containers/NotFound.js
cape-io/acf-client
import React from 'react' export default function NotFound() { return ( <div className="container"> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ) }
src/svg-icons/device/signal-wifi-3-bar.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalWifi3Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M12.01 21.49L23.64 7c-.45-.34-4.93-4-11.64-4C5.28 3 .81 6.66.36 7l11.63 14.49.01.01.01-.01z"/><path d="M3.53 10.95l8.46 10.54.0...
react/components-communicate-through-reflux/src/components/LoadingTracker/LoadingTracker.js
kunukn/sandbox-web
import React from 'react'; import {LOADING_STATES, LOADING_TYPES, LOADING_CONFIG} from '../../utils'; class LoadingTracker extends React.Component { constructor(props) { super(props); this.state = { loadingType: LOADING_TYPES.SHORT, }; } componentDidMount() { ...
examples/todomvc/src/components/Layout.js
lore/lore
import React from 'react'; import PropTypes from 'prop-types'; import createReactClass from 'create-react-class'; import _ from 'lodash'; import { connect } from 'lore-hook-connect'; import PayloadStates from '../constants/PayloadStates'; import Filters from '../constants/Filters'; import TodoFooter from './Footer'; im...
src/main.js
commute-sh/commute-web
import React from 'react' import ReactDOM from 'react-dom' import createStore from './store/createStore' import AppContainer from './containers/AppContainer' // Needed for onTouchTap import injectTapEventPlugin from 'react-tap-event-plugin'; injectTapEventPlugin(); // =================================================...
src/browser/auth/SignInError.js
reedlaw/read-it
// @flow import type { State } from '../../common/types'; import React from 'react'; import errorMessages from '../../common/auth/errorMessages'; import firebaseMessages from '../../common/auth/firebaseMessages'; import { FormattedMessage } from 'react-intl'; import { Message } from '../../common/components'; import { ...
tests/Rules-isLength-spec.js
yesmeck/formsy-react
import React from 'react'; import TestUtils from 'react-addons-test-utils'; import Formsy from './..'; import { InputFactory } from './utils/TestInput'; const TestInput = InputFactory({ render() { return <input value={this.getValue()} readOnly/>; } }); const TestForm = React.createClass({ render() { re...
src/routes/Project/components/Team/Team.js
prescottprue/portfolio
import React from 'react' import PropTypes from 'prop-types' import Avatar from 'material-ui/svg-icons/social/person' import classes from './Team.scss' export const Team = ({ list }) => ( <div className={classes.container}> {list.map((person, i) => { const avatar = person.icon && person.icon.url ?...
milestones/03-inline-styles/After/src/nav.js
jaketrent/react-drift
import PropTypes from 'prop-types' import React from 'react' import styles from './nav-styles.js' function getPrevStyles(props) { return props.hasPrevious ? styles.prev : styles.prevHidden } function getNextStyles(props) { return props.hasNext ? styles.next : styles.nextHidden } function Nav(props) { return (...
web/src/main/webapp_source/src/components/Inventory.js
mschvarc/PB138-Inventory-Management
import React, { Component } from 'react'; import InventoryTable from './components/InventoryTable'; class Inventory extends Component { render() { var items = this.props.items; return <div className="page-inventory row"> <div className="small-12 columns"> <h2>Current Inventory</h2> <Inventory...
fields/types/email/EmailField.js
jacargentina/keystone
import Field from '../Field'; import React from 'react'; import { FormInput } from 'elemental'; /* TODO: - gravatar - validate email address */ module.exports = Field.create({ displayName: 'EmailField', renderField () { return ( <FormInput name={this.props.path} ref="focusTarget" value={this.pr...
scripts/apps/search/components/fields/slugline.js
darconny/superdesk-client-core
import React from 'react'; import PropTypes from 'prop-types'; import {createMarkUp} from 'apps/search/helpers'; export function slugline(props) { if (props.item.slugline) { return React.createElement( 'span', {className: 'keyword', key: 'slugline', dangerouslySetInn...
pkg/interface/publish/src/js/components/lib/notebook-posts.js
ngzax/urbit
import React, { Component } from 'react'; import moment from 'moment'; import { Link } from 'react-router-dom'; import ReactMarkdown from 'react-markdown' import { cite } from '../../lib/util'; export class NotebookPosts extends Component { constructor(props){ super(props); moment.updateLocale('en', { ...
src/components/Spinner.js
flydev-labs/react-face-detector
import React from 'react'; class Spinner extends React.Component { render() { return ( <div id="spinner" className="spinner"> <div className="cube1"></div> <div className="cube2"></div> </div> ); } } export default Spinner;
src/components/http_request.js
MichalKononenko/OmicronClient
/** * Created by Michal on 2016-02-17. */ import React from 'react'; export const URLEntryForm = ({url_value, on_url_change, on_button_click}) => ( <form> <div className="form-group"> <label>JSON API URL</label> <input type="text" className="form-control" placeh...
demo/components/tabs/TabsOptions.js
f0zze/rosemary-ui
import React from 'react'; import Tabs from '../../../src/components/tabs/Tabs'; import OptionsTable from '../../helper/OptionsTable'; export default () => { let description = { onBeforeChange: { values: 'function[tabId,next]', description: 'called before onChange,if using onBeforeC...
src/Message.js
tanbo800/react-ui
"use strict" import React from 'react' import classnames from 'classnames' import Overlay from './Overlay' //import { forEach } from './utils/objects' import PubSub from 'pubsub-js' import { requireCss } from './themes' requireCss('message') const ADD_MESSAGE = "EB3A79637B40" const REMOVE_MESSAGE = "73D4EF15DF50" co...
src/js/components/Stream.js
jaedb/Iris
import React from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import * as coreActions from '../services/core/actions'; import { SnapStream } from './SnapStream.tsx'; class Stream extends React.Component { constructor(props) { super(props); if (props....
docs/src/components/Link/Link.js
bmatthews/haze-lea
/** * 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 PropTypes from 'prop-...
web/src/components/graphql-error-list.js
ajmalafif/ajmalafif.com
import React from 'react' const GraphQLErrorList = ({errors}) => ( <div> <h1>GraphQL Error</h1> {errors.map(error => ( <pre key={error.message}>{error.message}</pre> ))} </div> ) export default GraphQLErrorList
src/js/components/PageFooter.js
bryanjacquot/theme-designer-capstone
import React, { Component } from 'react'; import Footer from 'grommet/components/Footer'; import Box from 'grommet/components/Box'; import Anchor from 'grommet/components/Anchor'; import Twitter from 'grommet/components/icons/base/SocialTwitter'; import LinkedIn from 'grommet/components/icons/base/SocialLinkedin'; impo...
app/navigators/WalletTabBarConfiguration.js
ixje/neon-wallet-react-native
import React from 'react' import { TabNavigator, TabBarBottom } from 'react-navigation' import FAIcons from 'react-native-vector-icons/FontAwesome' import ENTIcons from 'react-native-vector-icons/Entypo' import WalletInfo from '../screens/loggedIn/walletInfo' import TransactionHistory from '../screens/loggedIn/transact...
node_modules/antd/es/radio/group.js
yhx0634/foodshopfront
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-run...
node_modules/babel-plugin-react-transform/test/fixtures/code-class-extends-component-with-render-method/expected.js
SpatialMap/SpatialMapDev
import _transformLib from 'transform-lib'; const _components = { Foo: { displayName: 'Foo' } }; const _transformLib2 = _transformLib({ filename: '%FIXTURE_PATH%', components: _components, locals: [], imports: [] }); function _wrapComponent(id) { return function (Component) { return _transformLib...
node_modules/@shoutem/animation/src/drivers/DriverShape.js
tausifmuzaffar/bisApp
import React from 'react'; import { Animated } from 'react-native'; export const DriverShape = React.PropTypes.shape({ value: React.PropTypes.instanceOf(Animated.Value), });
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/Wysiwyg/link.js
strapi/strapi-examples
/** * * Link * */ import React from 'react'; import PropTypes from 'prop-types'; import { includes } from 'lodash'; const Link = props => { const { url, aHref, aInnerHTML } = props.contentState.getEntity(props.entityKey).getData(); let content = aInnerHTML; if (includes(aInnerHTML, '<img', 'src=')) { c...
docs/app/Examples/collections/Grid/Content/GridExampleColumns.js
shengnian/shengnian-ui-react
import React from 'react' import { Grid, Image } from 'shengnian-ui-react' const GridExampleColumns = () => ( <Grid> <Grid.Row> <Grid.Column width={8}> <Image src='/assets/images/wireframe/paragraph.png' /> </Grid.Column> <Grid.Column width={8}> <Image src='/assets/images/wirefr...
src/pages/404.js
JovaniPink/measuredstudios
import React from 'react'; import styled from 'styled-components'; import GlobalStateProvider from '../context/provider'; import Layout from '../components/layout'; import SEO from '../components/seo'; import ContentWrapper from '../styles/contentWrapper'; const StyledSection = styled.section` width: 100%; max-wi...
src/App/views/UsersList/index.js
ryanswapp/react-starter-template
import React from 'react'; import Actions from 'App/state/actions.js'; import { connect } from 'react-redux'; class UsersList extends React.Component { constructor(props) { super(props); } componentDidMount () { const { dispatch } = this.props; dispatch({type: 'FETCH_USERS_REQUESTED'}); } rende...
react/FlagHKIcon/FlagHKIcon.js
seekinternational/seek-asia-style-guide
import svgMarkup from './FlagHKIcon.svg'; import React from 'react'; import Icon from '../private/Icon/Icon'; export default function FlagHKIcon(props) { return <Icon markup={svgMarkup} {...props} />; } FlagHKIcon.displayName = 'FlagHKIcon';
app/components/BreadcrumbRouter/index.js
danielmoraes/invoices-web-client
import React from 'react' import { Breadcrumb, BreadcrumbItem } from 'react-bootstrap' import { LinkContainer } from 'react-router-bootstrap' import { Route, withRouter } from 'react-router-dom' const findRouteName = (url, routes) => { for (let i = 0; i < routes.length; ++i) { if (url.match(routes[i].path)) { ...
src/pages/index.js
itzsaga/slack-list
import React from 'react' import Layout from '../components/layout' import ListItem from '../components/listItem' import LocationBased from '../components/locationBased' import list from '../data/list' const IndexPage = ({ location: { pathname } }) => ( <Layout location={pathname}> <section className="section"...
public/app/components/online-tab/details-component-config.js
vincent-tr/mylife-home-studio
'use strict'; import React from 'react'; import * as mui from 'material-ui'; import icons from '../icons'; const DetailsComponentConfig = ({ config }) => ( <div> <icons.NetConfig style={{verticalAlign: 'middle'}}/> &nbsp; Configuration: &nbsp; {config.key} &nbsp; = &nbsp; {config...
docs/src/app/components/pages/components/FlatButton/ExampleIcon.js
pomerantsev/material-ui
import React from 'react'; import FlatButton from 'material-ui/FlatButton'; import FontIcon from 'material-ui/FontIcon'; import ActionAndroid from 'material-ui/svg-icons/action/android'; import {fullWhite} from 'material-ui/styles/colors'; const style = { margin: 12, }; const FlatButtonExampleIcon = () => ( <div>...
client/src/App.js
hold-the-door-game/Prototypes
import React, { Component } from 'react'; import Prototype03 from './Game/Prototype03'; import './App.css'; class App extends Component { constructor() { super(); this.loader = window.PIXI.loader; this.loader.add('scott_pilgrim_walking_01', 'assets/sprites/scott_pilgrim_walking_01.json'); this.loader...
src/svg-icons/navigation/apps.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationApps = (props) => ( <SvgIcon {...props}> <path d="M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z"/> </SvgIcon> ...
lib/carbon-fields/vendor/htmlburger/carbon-fields/assets/js/fields/components/media-gallery/index.js
boquiabierto/wherever-content
/** * The external dependencies. */ import $ from 'jquery'; import React from 'react'; import PropTypes from 'prop-types'; import cx from 'classnames'; import { compose, withHandlers, setStatic, withProps } from 'recompose'; import { without, sortBy, isNumber } from 'lodash'; /** * The internal dependencies....
packages/logos/src/cassandra.js
geek/joyent-portal
import React from 'react'; export default props => ( <svg id="svg4300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 42 42" {...props} > <defs> <style dangerouslySetInnerHTML={{ __html: '.cls-1{fill:#fff}' }} /> </defs> <title>Artboard 1 copy 15</title> <path fill="#1B...
frontend/app_v2/src/common/icons/BackArrow.js
First-Peoples-Cultural-Council/fv-web-ui
import React from 'react' import PropTypes from 'prop-types' /** * @summary BackArrow * @component * * @param {object} props * * @returns {node} jsx markup */ function BackArrow({ styling }) { return ( <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" className={styling}> <title>BackArrow...
src/component/IconSnackbarContent/index.js
dlennox24/ricro-app-template
import IconButton from '@material-ui/core/IconButton'; import SnackbarContent from '@material-ui/core/SnackbarContent'; import withStyles from '@material-ui/core/styles/withStyles'; import classNames from 'classnames'; import IconAlert from 'mdi-material-ui/Alert'; import IconAlertCircle from 'mdi-material-ui/AlertCirc...
src/main/internal/adaption/react/useState.js
mcjazzyfunky/js-surface
// external imports import React from 'react' // --- useState ----------------------------------------------------- const useState = React.useState // --- exports ------------------------------------------------------ export default useState
index.ios.js
swashcap/LookieHere
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry } from 'react-native'; import App from './src/App'; export default class LookieHere extends Component { render() { return <App />; } } AppRegistry.registerCom...
blueocean-material-icons/src/js/components/svg-icons/action/class.js
jenkinsci/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionClass = (props) => ( <SvgIcon {...props}> <path d="M18 2H6c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM6 4h5v8l-2.5-1.5L6 12V4z"/> </SvgIcon> ); ActionClass.displayName = 'ActionClass'; ActionClass.muiName = 'S...
src/App/Body/AboutButton.js
ksmithbaylor/emc-license-summarizer
import React from 'react'; import { version } from 'root/package.json'; import RaisedButton from 'material-ui/lib/raised-button'; import FlatButton from 'material-ui/lib/flat-button'; import Dialog from 'material-ui/lib/dialog'; export default class AboutButton extends React.Component { state = { dialogIsOpen: f...
modules/RouteUtils.js
BerkeleyTrue/react-router
import React from 'react' import warning from 'warning' function isValidChild(object) { return object == null || React.isValidElement(object) } export function isReactChildren(object) { return isValidChild(object) || (Array.isArray(object) && object.every(isValidChild)) } function checkPropTypes(componentName, p...
src/index.js
notifapi/notifapi-web
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, browserHistory } from 'react-router'; import store from './ui/store'; import Routes from './ui/routes'; import './ui/main.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/...
docs/src/app/components/pages/components/DatePicker/ExampleToggle.js
rhaedes/material-ui
import React from 'react'; import DatePicker from 'material-ui/DatePicker'; import TextField from 'material-ui/TextField'; import Toggle from 'material-ui/Toggle'; const optionsStyle = { maxWidth: 255, marginRight: 'auto', }; export default class DatePickerExampleToggle extends React.Component { constructor(pr...
packages/react-scripts/fixtures/kitchensink/template/src/features/webpack/LinkedModules.js
Timer/create-react-app
/** * Copyright (c) 2015-present, Facebook, Inc. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ import React from 'react'; import './assets/style.css'; import { test, version } from 'test-integrity'; const LinkedModules = () => { ...
server/SSR.js
nathanhood/mmdb
import fs from 'fs'; import { resolve } from 'path'; import React from 'react'; import { ConnectedRouter } from 'react-router-redux'; import { renderToString } from 'react-dom/server'; import { Provider } from 'react-redux'; import { ServerStyleSheet } from 'styled-components'; import createHistory from 'history/create...
src/templates/noutati.js
radubrehar/evanghelic.ro
import React from 'react'; import Helmet from 'src/components/Helmet'; import Text from '@app/Text'; import nl2br from 'nl2br'; export default function NoutatiTemplate({ data // this prop will be injected by the GraphQL query we'll write in a bit }) { const { markdownRemark: post, site } = data; return ( <...
fixtures/flight/src/index.js
rickbeerendonk/react
import React from 'react'; import ReactDOM from 'react-dom'; import ReactFlightDOMClient from 'react-flight-dom-webpack'; import App from './App'; let data = ReactFlightDOMClient.readFromFetch(fetch('http://localhost:3001')); ReactDOM.render(<App data={data} />, document.getElementById('root'));
docs-ui/components/detailedError.stories.js
ifduyue/sentry
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {withInfo} from '@storybook/addon-info'; import DetailedError from 'app/components/errors/detailedError'; // eslint-disable-next-line storiesOf('DetailedError', module) .add( 'default',...
src/routes/not-found/NotFound.js
niketpathak/npk-website
/** * @author Niket Pathak. (http://www.niketpathak.com/) * * Copyright © 2014-present. 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 PropTypes from 'prop-types'; import ...
src/components/Chess.js
Korkemoms/amodahl.no
// @flow import React from 'react' import '../MyContent.scss' import '../App.scss' import ChessGame from 'chess-client' import DocumentTitle from 'react-document-title' import MyHeader from '../components/MyHeader' import { Grid, PageHeader } from 'react-bootstrap' /* Purely presentational component */ const Ch...
frontend/src/sidebar/FlagsList.js
kamirov/song-synonymizer
import React from 'react'; import { FormControlLabel, FormGroup } from 'material-ui/Form'; import Switch from 'material-ui/Switch'; import PropTypes from 'prop-types' import Tooltip from 'material-ui/Tooltip'; import ExpansionPanel, { ExpansionPanelDetails, ExpansionPanelSummary, } from 'material-ui/ExpansionPanel'; i...
client/src/components/MonthSelector.js
Nauktis/inab
import React from 'react'; import ui from 'redux-ui'; import Button from './Button'; import FontAwesome from 'react-fontawesome'; @ui() class MonthSelector extends React.Component { static propTypes = { ui: React.PropTypes.object.isRequired, updateUI: React.PropTypes.func.isRequired }; previous() { ...
src/svg-icons/maps/local-bar.js
nathanmarks/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalBar = (props) => ( <SvgIcon {...props}> <path d="M21 5V3H3v2l8 9v5H6v2h12v-2h-5v-5l8-9zM7.43 7L5.66 5h12.69l-1.78 2H7.43z"/> </SvgIcon> ); MapsLocalBar = pure(MapsLocalBar); MapsLocalBar.displayName ...
client/src/components/Draftail/blocks/ImageBlock.js
timorieber/wagtail
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { DraftUtils } from 'draftail'; import { STRINGS } from '../../../config/wagtailConfig'; import MediaBlock from '../blocks/MediaBlock'; /** * Editor block to preview and edit images. */ class ImageBlock extends Component { const...
app/components/Chat/MessageInput.js
SynapseNetwork/Synapse-Desktop
/* ************************************************************** * Synapse - Desktop Client * @author Marco Fernandez Pranno <mfernandezpranno@gmail.com> * @licence MIT * @link https://github.com/SynapseNetwork/Synapse-Desktop * @version 1.0 * ****************************************************...
src/pages/news/NBA/NewsNBAMarket.js
HeliumLau/Hoop-react
import React from 'react'; import NewsList from 'components/NewsList.js'; export default class NewsNBAMarket extends React.Component { render() { const list = [ { title: '帕森斯晒自己与演员特里-克鲁斯的合照', lNum: '28', cNum: '212', bgurl: '...
inventapp/src/Inventory/InventoryItems.js
ladanv/learn-react-js
import React from 'react'; import { Link } from 'react-router'; import { FormattedMessage } from 'react-intl'; import { List, ListItem } from '../List'; import styles from './InventoryItems.scss'; const InventoryItems = ({ items }) => { return ( <div> <h1 className={styles.title} > <FormattedMessa...
src/js/components/movies/MovieCard.js
jorgemxm/r-movies
//----------------------------------- // MovieCard //----------------------------------- // Dependencies import React from 'react'; import PropTypes from 'prop-types'; import { Link } from 'react-router-dom'; // Custom Components import MovieImage from './MovieImage'; import helpers from '../../utils/helpers'; const...
tagging_interface/src/views/ProjectView/CurationInterface.js
Michael-Stewart-Webdev/annotation-tool
import React from 'react'; import {Component} from 'react'; import _ from 'underscore'; import ControlBar from 'views/SharedComponents/ControlBar'; import getCookie from 'functions/getCookie'; import initAnnotationsArray from 'views/TaggingInterfaceView/initAnnotationsArray'; import Annotation from 'views/TaggingInt...
src/svg-icons/action/account-balance-wallet.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
src/routes/about/index.js
OSDLabs/swd
/** * 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 Layout from '../../co...
18-react-router-redux/src/components/show-location.js
iproduct/course-node-express-react
import React from 'react'; import PropTypes from 'prop-types'; import { withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; @withRouter @connect() export default class ShowTheLocation extends React.Component { static propTypes = { match: PropTypes.object.isRequired, location: PropTyp...
src/js/components/icons/base/SocialWordpress.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...
archimate-frontend/src/main/javascript/components/view/edges/view/viewRelationship.js
zhuj/mentha-web-archimate
import React from 'react' import { CompositionRelationshipWidget } from '../model/compositionRelationship' import { AggregationRelationshipWidget } from '../model/aggregationRelationship' import { AssignmentRelationshipWidget } from '../model/assignmentRelationship' import { RealizationRelationshipWidget } from '../mo...
app/index.js
parrajustin/VueElectron_UTEP
import React from 'react'; import { render } from 'react-dom'; import { Provider } from 'react-redux'; import { Router, hashHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import routes from './routes'; import configureStore from './store/configureStore'; import './app.global.c...
src/index.js
abraztsov/react-fetch-hoc
import React from 'react'; const fetchData = get => WrappedComponent => class extends React.Component { constructor(props) { super(props); this.state = { fetchedData: {}, fetchedError: {} }; } componentDidMount() { get(this.props) .then(response => { ...
client/components/RepoSearch.js
nachein/repo-searcher-react-redux
import React from 'react' import { browserHistory } from 'react-router'; import { search, fetchRepos } from '../actions/actionCreators'; import TextField from 'material-ui/TextField'; import RaisedButton from 'material-ui/RaisedButton'; export default class RepoSearch extends React.Component { componentDidMount() { ...
app/components/default-settings/Background.js
opensprints/opensprints-electron
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { remote } from 'electron'; const store = remote.getGlobal('wallpaperStore'); const defaultBackground = '../images/open-sprints-bg.jpg'; const wallpaperTemplatePreviews = { raceScreen: '../images/open-sprints-background.png', race...