path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
wrappers/yaml.js
roslaneshellanoo/gatsby-starter-clean
import React from 'react' import yaml from 'js-yaml' import Helmet from 'react-helmet' import { config } from 'config' module.exports = React.createClass({ propTypes () { return { route: React.PropTypes.object, } }, render () { const data = this.props.route.page.data return ( <div> ...
src/components/CreateVmWizard/CreateVmWizard.js
oVirt/ovirt-web-ui
import React from 'react' import PropTypes from 'prop-types' import { connect } from 'react-redux' import { Wizard, Button, Icon } from 'patternfly-react' import produce from 'immer' import { List } from 'immutable' import * as Actions from '_/actions' import { EMPTY_VNIC_PROFILE_ID } from '_/constants' import { gener...
src-example/components/templates/GenericTemplate/index.js
SIB-Colombia/biodiversity_catalogue_v2_frontend
import React from 'react' import PropTypes from 'prop-types' import styled from 'styled-components' const Wrapper = styled.div` display: flex; flex-direction: column; padding-top: 3.75rem; min-height: 100vh; box-sizing: border-box; ` const Content = styled.section` width: 100%; box-sizing: border-box; ...
Console/app/node_modules/antd/es/upload/UploadList.js
RisenEsports/RisenEsports.github.io
import _defineProperty from 'babel-runtime/helpers/defineProperty'; import _extends from 'babel-runtime/helpers/extends'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _createClass from 'babel-runtime/helpers/createClass'; import _possibleConstructorReturn from 'babel-runtime/helpers/possib...
src/components/Blocks/Webinar/index.js
StudentRND/www
import React from 'react' import { graphql } from 'gatsby' import axios from 'axios' import moment from 'moment-timezone' import appContext from '../../Context' import { Pii } from '../../Ui/Secure' import Loading from '../../Ui/Loading' import WithIpInfo from '../../Track/ipInfo' import "./index.sass" class Webinar ...
src/containers/App.js
josh--newman/savings
import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { connect } from 'react-redux'; export default class App extends Component { render() { console.log(this.props); return ( <View> <Text>{this.props.example}</Text> </View> ); } }; function ma...
src/svg-icons/navigation/chevron-right.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationChevronRight = (props) => ( <SvgIcon {...props}> <path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/> </SvgIcon> ); NavigationChevronRight = pure(NavigationChevronRight); NavigationChevronRigh...
examples/js/utils.js
powerhome/react-bootstrap-table
import React from 'react'; function renderLinks(examplePath) { const gitHubBase = 'https://github.com/AllenFang/react-bootstrap-table/tree/master/examples/js'; return ( <h5>Source in <a href={ `${gitHubBase}/${examplePath}` } target='_blank'> /examples/js/{ examplePath }</a> </h5> ); } export defa...
src/containers/Account/Login.js
elstgav/step-up
import React from 'react' import Helmet from 'react-helmet' import { LoginForm, ErrorMessageBanner } from 'src/components' import { getFirebase } from 'src/lib/firebaseAdapter' import { browserHistory } from 'react-router' import axios from 'axios' export class Login extends React.Component { static propTypes = { ...
assets/react/src/components/task/mailbox_template_detail_action.js
khoa-le/crontask
import React, { Component } from 'react'; export default class MailBoxTemplateDetailAction extends Component { /** @namespace this.props.handleBack */ constructor(props) { super(props); this.onDeleteTemplate = this.onDeleteTemplate.bind(this); } onOpenReplyForm() { $('.buttons'...
src/svg-icons/content/sort.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentSort = (props) => ( <SvgIcon {...props}> <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/> </SvgIcon> ); ContentSort = pure(ContentSort); ContentSort.displayName = 'ContentSort'; export default...
src/js/admin/articles/filters/filter-item/filter-item-select.js
ucev/blog
import React from 'react' import './filter-item.style.scss' class FilterItemSelect extends React.PureComponent { constructor (props) { super(props) this.onChange = this.onChange.bind(this) this.refHandle = this.refHandle.bind(this) } onChange () { let value = this.select.value this.props.cha...
src/containers/Picker/index.js
petetnt/react-howdy
import React from 'react'; import { injectState } from 'freactal'; import { Picker } from 'emoji-mart'; export default injectState( ({ state: { selectedEmoji }, effects: { updateEmoji } }) => selectedEmoji ? <Picker onClick={emoji => updateEmoji(emoji, selectedEmoji)} set="twitter" ...
ajax/libs/react-instantsearch/5.0.0-beta.1/Connectors.js
joeyparrish/cdnjs
/*! ReactInstantSearch 5.0.0-beta.1 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) : typeof define === 'function' && define.amd ? define(['exports', 'react'], facto...
src/routes/UIElement/editor/index.js
janeluck/red
import React from 'react' import { Editor } from '../../../components' import { convertToRaw } from 'draft-js' import { Row, Col, Card } from 'antd' import draftToHtml from 'draftjs-to-html' import draftToMarkdown from 'draftjs-to-markdown' // https://github.com/jpuri/react-draft-wysiwyg/blob/master/docs/src/components...
dist/bundle.js
ajdontinkszo/REACTBeginnerTutorial
/******/ (function(modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ // Check if module is in cache /******/ if(installedModules[moduleId]) /******/ return installedModu...
app/javascript/mastodon/components/missing_indicator.js
tootsuite/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import illustration from 'mastodon/../images/elephant_ui_disappointed.svg'; import classNames from 'classnames'; const MissingIndicator = ({ fullPage }) => ( <div className={classNames('regeneration-indicato...
js/jqwidgets/demos/react/app/navigationbar/multipleexpanded/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxNavigationBar from '../../../jqwidgets-react/react_jqxnavigationbar.js'; class App extends React.Component { render () { return ( <JqxNavigationBar width={300} expandMode={'multiple'} ...
app/javascript/mastodon/components/domain.js
lynlynlynx/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; const messages = defineMessages({ unblockDomain: { id: 'account.unblock_domain', default...
website/src/index.js
JenningsWu/Chaldea-archives
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()
app/javascript/mastodon/features/mutes/index.js
mosaxiv/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/svg-icons/av/fiber-manual-record.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvFiberManualRecord = (props) => ( <SvgIcon {...props}> <circle cx="12" cy="12" r="8"/> </SvgIcon> ); AvFiberManualRecord = pure(AvFiberManualRecord); AvFiberManualRecord.displayName = 'AvFiberManualRecord'; ...
src/containers/NotFound/NotFound.js
fkasper/sitrep-frontend
import React from 'react'; export default function NotFound() { return ( <div style={{width: '100%', textAlign: 'center'}}> <h1>Doh! 404!</h1> <p>These are <em>not</em> the droids you are looking for!</p> </div> ); }
src/client/app/forms/project.properties.form.js
mapkiwiz/sectorisation
import React from 'react'; import LinkedStateMixin from 'react-addons-linked-state-mixin'; import template from './project.properties.form.rt'; import {saveProject} from '../shared/project'; let ProjectPropertiesForm = React.createClass({ mixins: [ LinkedStateMixin ], contextTypes: { store: React.PropTypes.o...
src/basic/Radio.js
sampsasaarela/NativeBase
import React, { Component } from 'react'; import { TouchableOpacity, Platform } from 'react-native'; import { connectStyle } from 'native-base-shoutem-theme'; import Icon from 'react-native-vector-icons/Ionicons'; import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames'; import variable from '../theme/variables...
examples/huge-apps/components/Dashboard.js
jbbr/react-router
import React from 'react'; import { Link } from 'react-router'; class Dashboard extends React.Component { render () { var { courses } = this.props; return ( <div> <h2>Super Scalable Apps</h2> <p> Open the network tab as you navigate. Notice that only the amount of y...
src/svg-icons/action/open-in-browser.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOpenInBrowser = (props) => ( <SvgIcon {...props}> <path d="M19 4H5c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2zm-7 6l-4 4h3v6h2v-6h3l-4-4z"/> </SvgIcon> ); ...
ui/src/app/components/Footer.js
kuppuswamy/foodie
import React from 'react'; export default class Footer extends React.Component { render = () => ( <footer className="footer"> <div className="container"> <div className="content has-text-centered"> <p> <strong>Foodie</strong>, an example of <a href="https://facebook.github.io/...
reactjs-server-side-rendering/src/shared/components/Home.js
vert-x3/vertx-examples
import React from 'react'; const Home = () => ( <div> <h1>Welcome to the Universal Blog!</h1> <p>Check out the latest posts!</p> </div>); export default Home;
src/containers/ui/DrawerContainer.js
banovotz/WatchBug2
/** * Whole App Container * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { connect } from 'react-redux'; import SideMenu from 'react-native-side-menu'; im...
src/svg-icons/image/brightness-4.js
manchesergit/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBrightness4 = (props) => ( <SvgIcon {...props}> <path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13...
src/svg-icons/action/flight-land.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionFlightLand = (props) => ( <SvgIcon {...props}> <path d="M2.5 19h19v2h-19zm7.18-5.73l4.35 1.16 5.31 1.42c.8.21 1.62-.26 1.84-1.06.21-.8-.26-1.62-1.06-1.84l-5.31-1.42-2.76-9.02L10.12 2v8.28L5.15 8.95l-.93-2...
App/Navigation/ReduxNavigation.js
GulfCoastCodeCamp/CodeCampApp
import React from 'react' import * as ReactNavigation from 'react-navigation' import { connect } from 'react-redux' import AppNavigation from './AppNavigation' // here is our redux-aware our smart component function ReduxNavigation (props) { const { dispatch, nav } = props const navigation = ReactNavigation.addNav...
web/src/app/component/App.js
tottokotkd/nagware
/** * Created by tottokotkd on 2016/12/27. */ import React from 'react' const {Component, PropTypes} = React; import {IntlProvider, addLocaleData} from 'react-intl' import ja from 'react-intl/locale-data/ja' addLocaleData([...ja]); import {AppMain} from './AppMain' export class App extends Component { render(...
src/components/Tasks/LocationPicker.js
Angular-Toast/habitat
import React, { Component } from 'react'; import { StyleSheet, View, TextInput, Picker, Button } from 'react-native'; import axios from 'axios'; class LocationPicker extends Component { constructor(props) { super(props); this.state = { markers: [], newLocation: '', location: 'Attach a Locat...
src/main.js
nicolas-amabile/counter
import React from 'react' import ReactDOM from 'react-dom' import createBrowserHistory from 'history/lib/createBrowserHistory' import { useRouterHistory } from 'react-router' import { syncHistoryWithStore } from 'react-router-redux' import createStore from './store/createStore' import AppContainer from './containers/Ap...
src/Loader/index.js
DuckyTeam/ducky-components
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function Loader(props) { return ( <div className={classNames(styles.wrapper, { [props.className]: props.className, //[styles[`wrapper_mini_${props.size}`]]: props.siz...
tests/lib/rules/destructuring-assignment.js
yannickcr/eslint-plugin-react
/** * @fileoverview Rule to forbid or enforce destructuring assignment consistency. */ 'use strict'; const RuleTester = require('eslint').RuleTester; const semver = require('semver'); const eslintPkg = require('eslint/package.json'); const rule = require('../../../lib/rules/destructuring-assignment'); const parser...
node_modules/node_modules/recharts/demo/component/PolarGrid.js
SerendpityZOEY/Solr-Search-React-UI
import React from 'react'; import { Surface, PolarGrid } from 'recharts'; export default React.createClass({ render () { const polarAngles = [0, 30, 60, 90, 145, 180, 200, 270, 300]; const polarRadius = [10, 20, 40, 80]; return ( <Surface width={500} height={500}> <PolarGrid cx={...
src/js/components/icons/base/Target.js
odedre/grommet-final
/** * @description Target SVG Icon. * @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon. * @property {string} colorIndex - The color identifier to use for the stroke color. * If not specified, this component will default to muiTheme.palette.textColor. * @pro...
src/components/Label/Label.js
zeegeek/ps-react-reusable-comp
import React from 'react'; import PropTypes from 'prop-types'; function Label({htmlFor, label, required}) { return ( <label style={{display: 'block'}} htmlFor={htmlFor}> {label} {required && <span style={{color:'red'}}>*</span>} </label> ) } Label.propTypes = { /** HTML ID for associated input */ htmlFor:...
app/javascript/mastodon/components/status_action_bar.js
KnzkDev/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import IconButton from './icon_button'; import DropdownMenuContainer from '../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; import ImmutablePureCompo...
src/svg-icons/hardware/headset-mic.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareHeadsetMic = (props) => ( <SvgIcon {...props}> <path d="M12 1c-4.97 0-9 4.03-9 9v7c0 1.66 1.34 3 3 3h3v-8H5v-2c0-3.87 3.13-7 7-7s7 3.13 7 7v2h-4v8h4v1h-7v2h6c1.66 0 3-1.34 3-3V10c0-4.97-4.03-9-9-9z"/> ...
app/containers/LanguageProvider/index.js
fforres/coworks_2
/* * * 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...
modules/Link.js
ThibWeb/react-router
import React from 'react' import warning from 'warning' var { bool, object, string, func } = React.PropTypes function isLeftClickEvent(event) { return event.button === 0 } function isModifiedEvent(event) { return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey) } function isEmptyObject(objec...
actor-apps/app-web/src/app/components/modals/CreateGroup.react.js
KitoHo/actor-platform
import React from 'react'; import CreateGroupActionCreators from 'actions/CreateGroupActionCreators'; import CreateGroupStore from 'stores/CreateGroupStore'; import CreateGroupForm from './create-group/Form.react'; import Modal from 'react-modal'; import { KeyCodes } from 'constants/ActorAppConstants'; const appEl...
web/cashtab/src/components/Common/StyledCollapse.js
Bitcoin-ABC/bitcoin-abc
import React from 'react'; import styled from 'styled-components'; import { Collapse } from 'antd'; import PropTypes from 'prop-types'; const { Panel } = Collapse; export const StyledCollapse = styled(Collapse)` background: ${props => props.theme.collapses.background} !important; border: 1px solid ${props => ...
app/components/shared/labelledFormComponent.js
fotinakis/buildkite-frontend
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import FormInputHelp from './FormInputHelp'; import FormInputErrors from './FormInputErrors'; import FormInputLabel from './FormInputLabel'; export default function labelledFormComponent(FormComponent) { return class...
html.js
jubearsun/juliasun.io
import React from 'react'; import Helmet from 'react-helmet'; import { prefixLink } from 'gatsby-helpers'; const buildTime = new Date().getTime(); const Html = ({ body }) => { const head = Helmet.rewind(); return ( <html lang="en"> <head> <meta charSet="utf-8" /> <meta httpEquiv="X-UA-Co...
src/components/Sidebar.react.js
EaglesoftZJ/iGem_Web
/* * Copyright (C) 2015-2016 Actor LLC. <https://actor.im> */ import { isFunction } from 'lodash'; import React, { Component } from 'react'; import { Container } from 'flux/utils'; import DelegateContainer from '../utils/DelegateContainer'; import DefaultRecent from './sidebar/Recent.react'; import QuickSearchButto...
src/components/video_detail.js
IanY57/ReduxSimpleStarter
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading....</div> } const videoId = video.id.videoId; const url = `https://youtube.com/embed/${videoId}`; return( <div className="video-detail col-md-8" > <div className="embed-res...
src/server.js
chadoh/isoredux
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
src/icons/ArrivedIcon.js
resmio/mantecao
import React from 'react' import Icon from '../Icon' const ArrivedIcon = props => <Icon {...props}> <path d="M14.6 29.2C14.9 29.7 15.5 29.7 15.9 29.3 15.9 29.3 25.1 19.4 25.1 12.7 25.1 6.1 21.1 3 15.2 3 9.4 3 6 6.4 6 12.7 6 19.1 14.6 29.2 14.6 29.2ZM11 15.1L13.3 17.5C13.7 17.9 14.4 17.9 14.7 17.5L20.1 12" /> <...
src/svg-icons/editor/vertical-align-top.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorVerticalAlignTop = (props) => ( <SvgIcon {...props}> <path d="M8 11h3v10h2V11h3l-4-4-4 4zM4 3v2h16V3H4z"/> </SvgIcon> ); EditorVerticalAlignTop = pure(EditorVerticalAlignTop); EditorVerticalAlignTop.dis...
app/components/FontShowcase.js
chris-verclytte/jwn
import React from 'react'; import { PropTypes } from 'prop-types'; import injectSheet from 'react-jss'; const FontShowcase = ({ classes }) => ( <div className={classes.container}> <p className={classes.greatSample}>Aa</p> <p className={classes.normalSample}>ABCDEFGHIJKLMNOPQRSTUVWXYZ</p> <p className={cl...
src/components/Location.js
leoasis/state-router
import React from 'react'; import { connect } from 'react-redux'; import { createHistory } from 'history'; class Route extends React.Component { static childContextTypes = { renderUrl: React.PropTypes.func }; render() { return this.props.children(); } getChildContext() { return { renderUrl: th...
examples/todos-with-undo/components/Footer.js
doerme/redux
import React from 'react' import FilterLink from '../containers/FilterLink' const Footer = () => ( <p> Show: {" "} <FilterLink filter="SHOW_ALL"> All </FilterLink> {", "} <FilterLink filter="SHOW_ACTIVE"> Active </FilterLink> {", "} <FilterLink filter="SHOW_COMPLETED">...
src/containers/ListBody.js
feliciakuo/layoutList
/** * List body */ import React from 'react' import { connect } from 'react-redux' import ListItem from './../containers/ListItem' const getVisibleItems = (state, filter) => { switch (filter) { case 'SHOW_ACTIVE': return { state: state.postsBySubreddit.active.items, // state: state.activeI...
src/components/chartjs.js
Daweo93/weather-forecast-app
import React from 'react'; import { Line } from 'react-chartjs-2'; export default props => { const data = { labels: props.data.dates, datasets: [ { fillColor: 'rgba(220,220,220,0)', strokeColor: 'rgba(220,180,0,1)', pointColor: 'rgba(220,180,0,1)', data: props.data.value...
docs/app/Examples/views/Card/Variations/CardExampleColored.js
vageeshb/Semantic-UI-React
import React from 'react' import { Card } from 'semantic-ui-react' const src = 'http://semantic-ui.com/images/wireframe/white-image.png' const CardExampleColored = () => ( <Card.Group itemsPerRow={4}> <Card color='red' image={src} /> <Card color='orange' image={src} /> <Card color='yellow' image={src} /...
packages/material-ui-icons/src/AirplanemodeActive.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M10.18 9" /><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" /></g> , 'AirplanemodeActive');
packages/ringcentral-widgets/components/BackHeader/index.js
ringcentral/ringcentral-js-widget
import React from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import styles from './styles.scss'; import { Header } from '../Header'; import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss'; export default function BackHeader(props) { const buttons = props.buttons...
src/MenuItem.js
Azerothian/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const MenuItem = React.createClass({ propTypes: { header: React.PropTypes.bool, divider: React.PropTypes.bool, href: React.PropTypes.string, title: React.PropTypes.string, target: React.PropTypes.string, onSelect...
examples/example-react/app.js
as-com/alef
import React from 'react' import Wrapper from './components/Wrapper' import Text from './components/Text' import Header from './components/Header' import Input from './containers/Input' export default () => ( <Wrapper> <Header title="Welcome to Alef." /> <Text> This is the basic example with React. ...
packages/vulcan-core/lib/modules/containers/withCurrentUser.js
manriquef/Vulcan
import React, { Component } from 'react'; import { getFragment } from 'meteor/vulcan:lib'; import { graphql } from 'react-apollo'; import gql from 'graphql-tag'; const withCurrentUser = component => { return graphql( gql` query getCurrentUser { currentUser { ...UsersCurrent ...
web/client/configdev/src/config/Font.js
project-owner/Peppy
/* Copyright 2019-2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) a...
src/components/Footer/Footer.js
maadcodr/carshow
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import withStyles from 'isomorp...
sb-admin-seed-react/src/vendor/recharts/demo/component/RadarChart.js
Gigasz/tropical-bears
import React from 'react'; import { Surface, Radar, RadarChart, PolarGrid, Legend, Tooltip, PolarAngleAxis, PolarRadiusAxis, ResponsiveContainer } from 'recharts'; import DemoRadarItem from './DemoRadarItem'; import { changeNumberOfData } from './utils'; const data = [ { subject: 'Math', A: 120, B: 110 }, ...
client/src/index.js
freundallein/marynado
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-redux' import { ConnectedRouter } from 'react-router-redux' import configureStore, {history} from './store/configStore' import App from './containers/App' const store = configureStore(); const target = document.getElementById...
client/modules/App/__tests__/App.spec.js
jessicarobins/det
import React from 'react'; import test from 'ava'; import sinon from 'sinon'; import { shallow, mount } from 'enzyme'; import { App } from '../App'; import styles from '../App.css'; import { intlShape } from 'react-intl'; import { intl } from '../../../util/react-intl-test-helper'; import { toggleAddPost } from '../App...
src/components/pages/Collections/CollectionProductsPage.js
ESTEBANMURUZABAL/bananaStore
/** * Imports */ import React from 'react'; import connectToStores from 'fluxible-addons-react/connectToStores'; import {FormattedMessage} from 'react-intl'; import {slugify} from '../../../utils/strings'; // Flux import CollectionsStore from '../../../stores/Collections/CollectionsStore'; import IntlStore from '.....
src/components/InfoPage/InfoPage.js
nambawan/g-old
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, FormattedMessage } from 'react-intl'; import Page from '../Page'; import Accordion from '../Accordion'; import AccordionPanel from '../AccordionPanel'; const messages = defineMessages({ firstSteps: { id: 'help.firstSteps', ...
app/components/ActionBar/ControlBetRaise.js
VonIobro/ab-web
import React from 'react'; import PropTypes from 'prop-types'; import ActionButton from './ActionButton'; import { ALL_IN, BET_SET, BET, } from '../../containers/ActionBar/actions'; const ControlBetRaise = (props) => { const { amount, amountToCall, minRaise, myStack, sliderOpen, } = pro...
packages/netlify-cms-core/src/components/Collection/Entries/Entries.js
netlify/netlify-cms
import PropTypes from 'prop-types'; import React from 'react'; import styled from '@emotion/styled'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { translate } from 'react-polyglot'; import { Loader, lengths } from 'netlify-cms-ui-default'; import EntryListing from './EntryListing'; const Pagina...
src/components/LineGraphComponents/LineGraphTabs/index.js
badT/Chatson
import React from 'react'; import { styles } from './styles.scss'; export default function LineGraphTabs(props) { return ( <div className={`${styles}`}> <section className="row"> <div className="col-xs-12 graph-tab-holder"> <h2 className={`graph-tab ${props.activeGraph === 'em...
src/components/icons/ForwardEmailIcon.js
InsideSalesOfficial/insidesales-components
import React from 'react'; const ForwardEmailIcon = props => ( <svg {...props.size || { width: '24px', height: '24px' }} {...props} viewBox="0 0 24 24"> {props.title && <title>{props.title}</title>} <path d="M12 8V4l8 8-8 8v-4H4V8z" /> <path d="M0 0h24v24H0z" fill="none" /> </svg> ); export default Fo...
cmd/elwinator/src/components/Experiment.js
13scoobie/choices
// @flow import React from 'react'; import { Link, browserHistory } from 'react-router'; import { connect } from 'react-redux'; import NavSection from './NavSection'; import SegmentInput from './SegmentInput'; import Segment from './Segment'; import ParamList from './ParamList'; import { namespaceURL, paramNewURL } fr...
docs/src/examples/collections/Grid/ResponsiveVariations/GridExampleDoubling.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Grid, Image } from 'semantic-ui-react' const GridExampleDoubling = () => ( <Grid doubling columns={5}> <Grid.Column> <Image src='/images/wireframe/image.png' /> </Grid.Column> <Grid.Column> <Image src='/images/wireframe/image.png' /> </Grid.Column> <...
src/components/start.js
DawnOfHammers/TrendR
import React from 'react'; import Landing from './RealStructure/landing.js'; import MainPage from './RealStructure/mainPage.js'; export default class Start extends React.Component{ render(){ return( <div> {this.props.children} </div> ) } }
packages/icons/src/md/social/Public.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdPublic(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M24 4c11.05 0 20 8.95 20 20s-8.95 20-20 20S4 35.05 4 24 12.95 4 24 4zm-2 35.86V36c-2.21 0-4-1.79-4-4v-2l-9.58-9.58C8.15 21.57 8 22.77 8 24c0 8.16 6.11...
src/components/common/apiConsole/ApiConsole.js
mitmedialab/MediaCloud-Web-Tools
import React from 'react'; import PropTypes from 'prop-types'; import { Grid, Row, Col } from 'react-flexbox-grid/lib'; import { FormattedMessage, FormattedHTMLMessage, injectIntl } from 'react-intl'; import { Helmet } from 'react-helmet'; import SwaggerContainer from './SwaggerContainer'; const localMessages = { pa...
examples/vuecli3-custom/styleguide/components/StyleGuideRenderer.js
vue-styleguidist/vue-styleguidist
import React from 'react'; import PropTypes from 'prop-types'; import Logo from 'rsg-components/Logo'; import Markdown from 'rsg-components/Markdown'; import Styled from 'rsg-components/Styled'; const xsmall = '@media (max-width: 600px)'; const styles = ({ font, base, light, baseBackground, mq }) => ({ root: { col...
classic/src/scenes/mailboxes/src/Scenes/SettingsScene/GeneralSettings/NotificationSettingsSection.js
wavebox/waveboxapp
import PropTypes from 'prop-types' import React from 'react' import Timeago from 'react-timeago' import settingsActions from 'stores/settings/settingsActions' import modelCompare from 'wbui/react-addons-model-compare' import partialShallowCompare from 'wbui/react-addons-partial-shallow-compare' import { NotificationPla...
packages/material-ui-icons/src/BatteryCharging60Sharp.js
lgollut/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fillOpacity=".3" d="M17 4h-3V2h-4v2H7v7h3.87L13 7v4h4V4z" /><path d="M13 12.5h2L11 20v-5.5H9l1.87-3.5H7v11h10V11h-4v1.5z" /></React.Fragment> , 'BatteryCharging60Sharp');
src/routes/Settings/components/components/EditResource.js
TheModevShop/craft-app
import React from 'react'; import bluebird from 'bluebird'; import _ from 'lodash'; import formIsComplete from 'utility/formIsComplete'; import AddResourceForm from 'components/Forms/AddResourceForm'; import Dropzone from 'react-dropzone' import './edit-resource.less'; class EditResource extends React.Component { co...
node_modules/react-router/es6/IndexRedirect.js
save-password/save-password.github.io
import React from 'react'; import warning from './routerWarning'; import invariant from 'invariant'; import Redirect from './Redirect'; import { falsy } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var object = _React$PropTypes.object; /** * An <IndexRedir...
webclient/src/edit/AddSectionButton.js
jadiego/bloom
import React, { Component } from 'react'; import { Segment, Menu, Button, Header, Grid, Modal, Icon, Form, TextArea, Message, Input, Image } from 'semantic-ui-react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { createImageSection, createSection } from '../redux/actions';...
src/svg-icons/notification/do-not-disturb.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationDoNotDisturb = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8 0-1.85.63-3.55 1.69-4.9L16.9 18.31C15.55 19.37 13...
src/components/GoTerms/index.js
ProteinsWebTeam/interpro7-client
import React from 'react'; import T from 'prop-types'; import Tooltip from 'components/SimpleCommonComponents/Tooltip'; import { GoLink } from 'components/ExtLink'; import loadable from 'higherOrder/loadable'; import { foundationPartial } from 'styles/foundation'; import ebiStyles from 'ebi-framework/css/ebi-global...
DefaultLoadingIndicator.js
exponentjs/react-native-infinite-scroll-view
'use strict'; import React from 'react'; import { ActivityIndicator, StyleSheet, View } from 'react-native'; export default class DefaultLoadingIndicator extends React.Component { render() { return ( <View style={styles.container}> <ActivityIndicator /> </View> ); } } let styles = Sty...
app/routes.js
mariopeixoto/isomorphic-react-webpack-boilerplate
'use strict'; import React from 'react'; import { Route } from 'react-router'; class App extends React.Component { render() { return ( <div> {this.props.children} </div> ); } } export default function(Website, NotFound, Page1, Page2) { return ( <Route component={App}> <R...
demo/components/alert/AlertDemo.js
ctco/rosemary-ui
import DemoWithSnippet from '../../../demo/layout/DemoWithSnippet'; import Alert from '../../../src/Alert/Alert'; import Button from '../../../src/Button/Button'; import React from 'react'; let description = `Lorem ipsum dolor sit amet, consectetur adipisicing elit. A ad, aut cum debitis deleniti d...
src/uikit/pages/Main/index.js
Lokiedu/libertysoil-site
import React from 'react'; import PropTypes from 'prop-types'; import SideBar from '../../components/UikitSideBar'; const Main = ({ children }) => ( <div className="uikit-main"> <SideBar /> <div className="uikit-app" > {children} </div> </div> ); Main.fetchData = async (routerState, store, dataF...
packages/my-joy-instances/src/app.js
geek/joyent-portal
import React from 'react'; import { RootContainer } from 'joyent-ui-toolkit'; import Routes from '@root/routes'; export default () => ( <RootContainer> <Routes /> </RootContainer> );
docs/src/app/components/pages/components/Popover/ExampleAnimation.js
ArcanisCz/material-ui
import React from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Popover, {PopoverAnimationVertical} from 'material-ui/Popover'; import Menu from 'material-ui/Menu'; import MenuItem from 'material-ui/MenuItem'; export default class PopoverExampleAnimation extends React.Component { constructor(...
src/svg-icons/image/adjust.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageAdjust = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.49 2 2 6.49 2 12s4.49 10 10 10 10-4.49 10-10S17.51 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm3-8c0 1.66-1.34 3-3 3s-3-1.3...
sleep-diary/src/components/Dashboard.js
johnp418/lumohacks2017
import React, { Component } from 'react'; import Chart from './Chart'; import DiaryTable from './DiaryTable'; class Dashboard extends Component { state = { diaries: [], } componentDidMount() { fetch("http://localhost:8000/diaries", { accept: "application/json" }).then(res => { res.json()....
src/components/Weui/toast/toast.js
ynu/ecard-wxe
/** * Created by jf on 15/10/27. */ import React from 'react'; import classNames from 'classnames'; import Mask from '../mask/index'; class Toast extends React.Component { static propTypes = { icon: React.PropTypes.string, iconSize: React.PropTypes.string, show: React.PropTypes.bool, ...
src/svg-icons/toggle/star.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ToggleStar = (props) => ( <SvgIcon {...props}> <path d="M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"/> </SvgIcon> ); ToggleStar = pure(ToggleStar); ToggleStar.disp...
vanilla-blog/src/index.js
alexkovalenko/react-redux-learn
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {createStore, applyMiddleware} from 'redux'; import {BrowserRouter, Route, Switch} from 'react-router-dom'; import ReduxPromise from 'redux-promise'; import PostsIndex from './components/posts_index'; import PostV...