path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
ui/src/pages/DataSourcePage/ExportManager/index.js
LearningLocker/learninglocker
import React from 'react'; import PropTypes from 'prop-types'; import { Map, List } from 'immutable'; import Tabs from 'ui/components/Material/Tabs'; import { Tab } from 'react-toolbox/lib/tabs'; import { connect } from 'react-redux'; import { compose, withState, withHandlers, setPropTypes, withProps } from 'recompose'...
app/javascript/mastodon/features/compose/components/action_bar.js
lynlynlynx/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import DropdownMenuContainer from '../../../containers/dropdown_menu_container'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ edit_profile: { id: 'a...
jenkins-design-language/src/js/components/material-ui/svg-icons/av/queue-music.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const AvQueueMusic = (props) => ( <SvgIcon {...props}> <path d="M15 6H3v2h12V6zm0 4H3v2h12v-2zM3 16h8v-2H3v2zM17 6v8.18c-.31-.11-.65-.18-1-.18-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3V8h3V6h-5z"/> </SvgIcon> ); AvQueueMusic.displayName = 'AvQueueMu...
app/javascript/mastodon/components/status_list.js
PlantsNetwork/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import StatusContainer from '../containers/status_container'; import ImmutablePureComponent from 'react-immutable-pure-component'; import ScrollableList from './scrollable_list'; import { Formatted...
examples/counter/containers/App.js
nikgraf/redux-devtools
import React, { Component } from 'react'; import CounterApp from './CounterApp'; import { createStore, applyMiddleware, combineReducers, compose } from 'redux'; import { devTools, persistState } from 'redux-devtools'; import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react'; import thunk from 'redux-...
src/main/webapp/resources/modules/home/MainTabs.js
cwoolner/flex-poker
import React from 'react' import { useSelector } from 'react-redux' import _ from 'lodash' import { BrowserRouter } from 'react-router-dom' import { Redirect, Route, Switch } from 'react-router' import GameTabs from './GameTabs' import Lobby from '../lobby/Lobby' import GamePage from '../game/GamePage' import TablePage...
src/components/estate-list.js
alexandrudanpop/EstatesWebApp
import React, { Component } from 'react'; import EstateListItem from './estate-list-item' import styles from './index.scss' import Blazy from 'blazy' class EstateList extends Component { renderItems() { if (!this.props.estates) { return } // used to lazy load images const bLazy = new Blazy({}...
dashboard-ui/app/components/appSelected.js
CloudBoost/cloudboost
/** * Created by Darkstar on 11/30/2016. */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { manageApp, changeState } from '../actions'; const ReactRouter = require('react-router'); const browserHistory = ReactRouter.browserHistory; export ...
react-flux-mui/js/material-ui/src/svg-icons/image/filter-3.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilter3 = (props) => ( <SvgIcon {...props}> <path d="M21 1H7c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V3c0-1.1-.9-2-2-2zm0 16H7V3h14v14zM3 5H1v16c0 1.1.9 2 2 2h16v-2H3V5zm14 8v-1.5c0-.83-.67-1.5-1...
app/javascript/mastodon/components/avatar_composite.js
musashino205/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { autoPlayGif } from '../initial_state'; export default class AvatarComposite extends React.PureComponent { static propTypes = { accounts: ImmutablePropTypes.list.isRequired, ani...
actor-apps/app-web/src/app/components/modals/Contacts.react.js
Ajunboys/actor-platform
// // Deprecated // import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import ContactActionCreators from 'actions/ContactActionCreators'; import DialogActionCreators from 'actions/DialogActionCreators'; import ContactStore from 'stores/ContactStore'; import Modal from...
app/javascript/mastodon/features/compose/components/search.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import Overlay from 'react-overlays/lib/Overlay'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import { searchEnabled } from '../...
components/BtnGroup/BtnGroup.story.js
rdjpalmer/bloom
import React from 'react'; import { storiesOf } from '@storybook/react'; import cx from 'classnames'; import Medallion from '../Medallion/Medallion'; import m from '../../globals/modifiers.css'; import BtnGroup from './BtnGroup'; import Icon from '../Icon/Icon'; import Btn from '../Btn/Btn'; storiesOf('BtnGroup', mod...
src/jsx/components/OwlCarousel.js
jsmankoo/coastalluxe
'use strict'; import React from 'react'; import {findDOMNode} from 'react-dom'; /** * http://owlgraphic.com/owlcarousel/demos/one.html * * Props * items: number. This variable allows you to set the maximum amount of items displayed at a time with the widest browser width * itemsDesktop: array. This allows you to pre...
docs/Documentation/RadioButtonPage.js
reactivers/react-material-design
/** * Created by muratguney on 29/03/2017. */ import React from 'react'; import {Card, CardHeader,RadioButton,Table, TableRow, TableHeaderColumn, TableHeader, TableRowColumn, TableBody} from '../../lib'; import HighLight from 'react-highlight.js' export default class RadioButtonPage extends React.Component { r...
src/components/projects/index.js
Adutchguy/portfolio
import './_projects.scss'; import Slider from 'react-slick'; import superagent from 'superagent'; import React, { Component } from 'react'; import Project from './project'; class Projects extends React.Component { constructor(props) { super(props); this.state = { reposToRequest: [ { ...
src/svg-icons/av/pause-circle-outline.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvPauseCircleOutline = (props) => ( <SvgIcon {...props}> <path d="M9 16h2V8H9v8zm3-14C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 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 8zm1-4h2...
app/js/components/window/windowControls.js
Dennetix/Motwo
import React from 'react'; import autobind from 'autobind-decorator'; import radium from 'radium'; import { remote } from 'electron' import theme from '../../utils/theme'; @theme @radium export default class WindowControls extends React.Component { constructor(props) { super(props); remote.getCurrentWindow().rem...
stories/index.js
jedwards1211/resume
import React from 'react' import { storiesOf } from '@storybook/react' import Resume from '../src/Resume' import data from '../src/data' storiesOf('resume', module) .add('Resume', () => ( <Resume data={data} /> ))
src/components/News.js
vinhnglx/Dzone-news
import React from 'react'; let moment = require('moment'); class News extends React.Component { render() { let news = this.props.entry; let desc = news.description; let categories; categories = news.categories.map(function(category, index) { return ( <a href="javascript:void(0);" class...
src/components/left_nav_trigger.js
pingf/BSIDK
import React from 'react'; import Radium from 'radium'; //import color from 'color'; import mui from 'material-ui'; let IconMenu = mui.IconMenu; let IconButton = mui.IconButton; const MenuItem = require('material-ui/lib/menus/menu-item'); class LeftNavTrigger extends React.Component { render() { let b...
src/PageHeader.js
Azerothian/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const PageHeader = React.createClass({ render() { return ( <div {...this.props} className={classNames(this.props.className, 'page-header')}> <h1>{this.props.children}</h1> </div> ); } }); export default PageHeader;
src/Degrees.js
PythEch/ruc-scheduler
import React, { Component } from 'react'; import { observer } from 'mobx-react'; import store from './Store'; import { ListButton } from './ListButton'; const DEGREES = ["Bachelor", "Master's"]; const BACH_INDEX = DEGREES.indexOf("Bachelor"); const MASTERS_INDEX = DEGREES.indexOf("Master's"); @observer class Degr...
frontend/src/app/containers/HomePageNoAddon.js
clouserw/testpilot
import React from 'react'; import MainInstallButton from '../components/MainInstallButton'; import ExperimentCardList from '../components/ExperimentCardList'; import LoadingPage from './LoadingPage'; import View from '../components/View'; export default class HomePageNoAddon extends React.Component { render() { ...
src/components/Views/WorkSingle/index.js
jmikrut/keen-2017
import React, { Component } from 'react'; import ViewWrap from '../../ViewWrap'; import DocumentMeta from 'react-document-meta'; import WorkContinue from '../../WorkContinue'; import TextBG from '../../Layout/TextBG'; import PageNotFound from '../PageNotFound'; import './WorkSingle.css'; import workContent from '../...
components/CommitteeSpread.js
uclaacm/website
// import Image from 'next/image'; import React from 'react'; function Committee(props){ return ( <a className={`committee ${props.committee.class}`} href={`/committees#${props.committee.class}`} > {/* TODO: use next image without breaking deploy */} {/* eslint-disable-next-line @next/next/no-img-elem...
docs/src/app/components/pages/components/Chip/ExampleSimple.js
owencm/material-ui
import React from 'react'; import Avatar from 'material-ui/Avatar'; import Chip from 'material-ui/Chip'; import FontIcon from 'material-ui/FontIcon'; import SvgIconFace from 'material-ui/svg-icons/action/face'; import {blue300, indigo900} from 'material-ui/styles/colors'; const styles = { chip: { margin: 4, },...
webapp/app/components/Save/Filters/Groups/index.js
EIP-SAM/SAM-Solution-Server
// // Filters page save // import React from 'react'; import { FormGroup, ControlLabel, FormControl, Col } from 'react-bootstrap'; import styles from 'components/Save/Filters/styles.css'; /* eslint-disable react/prefer-stateless-function */ export default class SaveFiltersGroups extends React.Component { constructo...
frontend/src/index.js
paulobichara/customers
import React from 'react'; import ReactDOM from 'react-dom'; import Main from './Main'; ReactDOM.render( <Main />, document.getElementById('root') );
node_modules/react-bootstrap/es/Jumbotron.js
joekay/awebb
import _extends from 'babel-runtime/helpers/extends'; import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from ...
js/components/Home.js
htmlacademy/firstaidgit
import React from 'react'; import FilterableList from './FilterableList'; import Sidebar from './Sidebar'; require('es6-promise').polyfill(); let Home = React.createClass({ getInitialState() { return { data: [] }; }, componentDidMount() { var self = this; if (this.isMounted()) {...
packages/@vega/communicator-system/src/components/views/CommunicatorWrapper.js
VegaPublish/vega-studio
// @flow import React from 'react' import styles from './styles/CommunicatorWrapper.css' import Communicator from '../providers/Communicator' type Props = { children: any[], focusedCommentId: string } export default class CommunicatorWrapper extends React.Component<Props> { render() { const {children, ...re...
src/assets/js/react/components/CoreFonts/CoreFontListSpacer.js
GravityPDF/gravity-forms-pdf-extended
import React from 'react' /** * @package Gravity PDF * @copyright Copyright (c) 2021, Blue Liquid Designs * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License * @since 5.0 */ /** * Display a spacer block * * @since 5.0 */ const CoreFontListSpacer = () => ( <div data-test...
packages/wix-style-react/src/AvatarGroup/test/AvatarGroup.visual.js
wix/wix-style-react
import React from 'react'; import { snap, story, visualize } from 'storybook-snapper'; import AvatarGroup from '../AvatarGroup'; const commonProps = { items: [ { name: 'first user', color: 'A1' }, { name: 'second user', color: 'A2' }, { name: 'third avatar', color: 'A3' }, { name: 'fourth avatar', co...
docs/getting-started-chart/components/ReadSide.js
reimagined/resolve
import React from 'react' const ReadSide = ({ selected, onClick }) => ( <g className="box-outer" data-selected={selected} onClick={onClick}> <path className="box" d="M130 314H410V414H130V314Z" /> <path className="caption" d="M226.956 344V330.909H232.121C233.11 330.909 233.953 331.086 234.652 331....
sampleProject/index.ios.js
shivam-aditya/SampleReactExamples
/** * Sample React Native App * https://github.com/facebook/react-native * @flow */ import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View } from 'react-native'; export default class sampleProject2 extends Component { render() { return ( <View style={styles.cont...
src/app/Content.react.js
blueberryapps/react-bluekit
import AllComponentsPreview from './AllComponentsPreview.react'; import Component from './PureRenderComponent.react'; import ComponentPage from './component/Page.react'; import {mediaQueries} from './styles/MediaQueries'; import Radium from 'radium'; import React from 'react'; import RPT from 'prop-types'; @Radium exp...
docs/client.js
jhernandezme/react-materialize
import React from 'react'; import { Router } from 'react-router'; import ReactDOM from 'react-dom'; import createBrowserHistory from 'history/lib/createBrowserHistory'; import Root from './src/Root'; import routes from './src/Routes'; window.React = React; Root.propData = window.PROP_DATA; ReactDOM.render( <Route...
app/components/List/index.js
mclxly/react-study
import React from 'react'; import styles from './styles.css'; function List(props) { const ComponentToRender = props.component; let content = (<div></div>); // If we have items, render them if (props.items) { content = props.items.map((item, index) => ( <ComponentToRender key={`item-${index}`} item...
docs/src/app/components/pages/components/Tabs/Page.js
pomerantsev/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import tabsReadmeText from './README'; import tabsExampleSimpleCode from '!raw!....
src/parser/warrior/protection/modules/talents/Vengeance.js
sMteX/WoWAnalyzer
import React from 'react'; import Analyzer from 'parser/core/Analyzer'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import { formatPercentage } from 'common/format'...
src/bloks/Grid/Grid.js
frankydoge/blok
import React from 'react' import PropTypes from 'prop-types' import cx from 'classnames' import '../../blok.css' import Column from './Column' import Row from './Row' const Grid = (props) => { const { children, className, color, font, raised, size, tag, textAlign } = props var gri...
src/svg-icons/image/view-comfy.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageViewComfy = (props) => ( <SvgIcon {...props}> <path d="M3 9h4V5H3v4zm0 5h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zM8 9h4V5H8v4zm5-4v4h4V5h-4zm5 9h4v-4h-4v4zM3 19h4v-4H3v4zm5 0h4v-4H8v4zm5 0h4v-4h-4v4zm5 0h4v-...
src/server/render.js
sinapinto/ricehalla
import React from 'react'; import { renderToString } from 'react-dom/server'; import createLocation from 'history/lib/createLocation'; import { RouterContext, match, createMemoryHistory } from 'react-router'; import { Provider } from 'react-redux'; import createRouter from '../containers/Routes'; import Html from './Ht...
src/components/Footer.js
ptrslr/silent-party
import React from 'react'; const Footer = () => { return ( <footer className="footer center f6 mt4"> <div className="container"> Just a little project by <a href="https://github.com/ptrslr" target="_blank">Peter Solař</a> </div> </footer> ) } export default Footer;
app/src/components/Blog/Shared/PostImage.js
RyanCCollins/ryancollins.io
import React from 'react'; import placeholder from './placeholder.png'; const PostImage = ({ url }) => ( <img src={url !== undefined && url.length > 0 ? url : placeholder} alt={`A dynamically loaded image for the blog`} /> ); export default PostImage;
src/components/Grid/Col.js
LevelPlayingField/levelplayingfield
/* @flow */ /* eslint-disable react/prefer-stateless-function */ import React from 'react'; import cx from 'classnames'; import s from './Grid.scss'; type Props = { // TODO: Fix any -> string/number? sm?: any, md?: any, lg?: any, className?: string, } function Col({ sm, md, lg, className, ...props }: Props) {...
src/component/post-list-container/index.js
arn1313/kritter-frontend
import React from 'react'; import * as utils from '../../lib/utils'; import PostItem from '../post-item'; import { postFetchAllRequest } from '../../action/post-actions.js'; import { connect } from 'react-redux'; class PostList extends React.Component { constructor(props) { super(props); this.state = { ...
src/js/components/header/app-header-search.js
TheFixers/node-honeypot-client
/** * Filename: 'app-header.js' * Author: JMW <rabbitfighter@cryptolab.net> * App header component */ import React from 'react' import SearchArea from '../search/app-search' import AppListButton from '../list/app-list-button' const AppHeaderSearch = ( props ) => { let styles = { width: '40px', ...
react-flux-mui/js/material-ui/src/svg-icons/av/snooze.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSnooze = (props) => ( <SvgIcon {...props}> <path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.03-9-9...
app/containers/HomePage.js
nickrfer/code-sentinel
// @flow import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
app/containers/AppContainer.js
thenormalsquid/electronApp
// @flow import React from 'react'; import type { Children } from 'react'; const AppContainer = ({ children } : any) => <div> {children} </div>; export default AppContainer;
src/svg-icons/communication/call-made.js
ichiohta/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationCallMade = (props) => ( <SvgIcon {...props}> <path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z"/> </SvgIcon> ); CommunicationCallMade = pure(CommunicationCallMade); CommunicationCallMade.displ...
admin/client/App/shared/Popout/PopoutListItem.js
vokal/keystone
/** * Render a popout list item */ import React from 'react'; import blacklist from 'blacklist'; import classnames from 'classnames'; var PopoutListItem = React.createClass({ displayName: 'PopoutListItem', propTypes: { icon: React.PropTypes.string, iconHover: React.PropTypes.string, isSelected: React.PropTy...
src/svg-icons/image/rotate-right.js
jacklam718/react-svg-iconx
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageRotateRight = (props) => ( <SvgIcon {...props}> <path d="M15.55 5.55L11 1v3.07C7.06 4.56 4 7.92 4 12s3.05 7.44 7 7.93v-2.02c-2.84-.48-5-2.94-5-5.91s2.16-5.43 5-5.91V10l4.55-4.45zM19.93 11c-.17-1.39-.72-2.7...
src/scenes/Disaster.js
glassysky/forecast
import React, { Component } from 'react'; import './Disaster.css'; export default class Disaster extends Component { render() { return ( <div className="disaster">灾害预警-开发中...</div> ); } }
docs/src/app/components/pages/components/GridList/Page.js
igorbt/material-ui
import React from 'react'; import Title from 'react-title-component'; import CodeExample from '../../../CodeExample'; import PropTypeDescription from '../../../PropTypeDescription'; import MarkdownElement from '../../../MarkdownElement'; import gridListReadmeText from './README'; import gridListExampleSimpleCode from...
src/views/ForgotPasswordView/ForgotPasswordView.js
LuCavallin/yfirbord-app
import React, { Component } from 'react'; import { PropTypes } from 'prop-types'; import { Col } from 'react-bootstrap'; import './ForgotPasswordView.scss'; export default class ForgotPasswordView extends Component { static propTypes = { }; constructor(props) { super(props); } render() ...
reduxBasicApp/src/js/components/addTodo.js
3mundi/React-Bible
import React from 'react'; import { connect } from 'react-redux'; import TodoActions from '../actions/todoActions.js'; let AddTodo = ({ dispatch }) => { let input; return ( <div> <input ref={node => { input = node; }} /> <button onClick={() => { dispatch(TodoActions.addTodo(...
src/components/UI/Header.js
mcnamee/react-native-starter-app
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import { Text, H1 } from 'native-base'; import Spacer from './Spacer'; const Header = ({ title, content }) => ( <View> <Spacer size={25} /> <H1>{title}</H1> {!!content && ( <View> <Spacer siz...
src/svg-icons/action/important-devices.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionImportantDevices = (props) => ( <SvgIcon {...props}> <path d="M23 11.01L18 11c-.55 0-1 .45-1 1v9c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-9c0-.55-.45-.99-1-.99zM23 20h-5v-7h5v7zM20 2H2C.89 2 0 2.89 0 4v12c0 1.1....
packages/wix-style-react/src/Input/InputContext.js
wix/wix-style-react
import React from 'react'; export const InputContext = React.createContext();
features/taskboard/components/tasklistToolbar.js
zymokey/mission-park
import React from 'react'; // import { connect } from 'react-redux'; import AddTasklist from './addTasklist'; import SearchInput from '../../common/components/searchInput'; class TasklistToolbar extends React.Component { constructor(props){ super(props); } render(){ return( <div className="btn-group toolba...
packages/react/components/fab.js
iamxiaoma/Framework7
import React from 'react'; import Utils from '../utils/utils'; import Mixins from '../utils/mixins'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
src/checkout/choose-continent.js
bhongy/react-components
import React from 'react'; import { actions } from './store'; import SelectAndRoute from './select-and-route'; const Option = ({ children, continent }) => ( <SelectAndRoute next="choose-destination" action={actions.chooseContinent(continent)}> {children} </SelectAndRoute> ); const ChooseContinent = () => ( ...
app/addons/verifyinstall/components/VerifyInstallResults.js
michellephung/couchdb-fauxton
// Licensed under the Apache License, Version 2.0 (the "License"); you may not // use this file except in compliance with the License. You may obtain a copy of // the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed un...
jenkins-design-language/src/js/components/material-ui/svg-icons/action/trending-up.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const ActionTrendingUp = (props) => ( <SvgIcon {...props}> <path d="M16 6l2.29 2.29-4.88 4.88-4-4L2 16.59 3.41 18l6-6 4 4 6.3-6.29L22 12V6z"/> </SvgIcon> ); ActionTrendingUp.displayName = 'ActionTrendingUp'; ActionTrendingUp.muiName = 'SvgIcon'; ...
src/components/SideBar.js
tofuness/Toshocat
import React from 'react'; import utils from '../utils'; import LogoContainer from '../containers/LogoContainer'; import SideBarNavigation from './SideBarNavigation'; const SideBar = () => { return ( <div className="sidebar"> <LogoContainer /> <SideBarNavigation /> <div className="sidebar-bott...
src/svg-icons/image/crop-rotate.js
ruifortes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCropRotate = (props) => ( <SvgIcon {...props}> <path d="M7.47 21.49C4.2 19.93 1.86 16.76 1.5 13H0c.51 6.16 5.66 11 11.95 11 .23 0 .44-.02.66-.03L8.8 20.15l-1.33 1.34zM12.05 0c-.23 0-.44.02-.66.04l3.81 3.81...
src/components/RevealAuction/TimeDuration.js
chochinlu/ens-bid-dapp
import React from 'react'; import {momentFromNow} from '../../lib/util'; import './TimeDuration.css'; export const TimeDuration = (props) => ( <div className='RevealAuctionTimeDuration'> <div className='RevealAuctionTimeDuration-Reveal'> <div>Reveal Auction On</div> <h3>{props.unsealStartsAt.toString...
scripts/src/pages/views/rooms.js
Twogether/just-meet-frontend
import React from 'react'; import Helmet from 'react-helmet' import { Link } from 'react-router'; export default (self) => { return ( <div> <Helmet title="Just Meet | Rooms" /> <div className="left quarter"> <nav className="side-nav"> ...
stories/snackbar.stories.js
isogon/material-components
import React from 'react' import { storiesOf } from '@storybook/react' import wrapStory from './decorators/wrapStory' import Snackbar from '../src/components/snackbar/demos/Snackbar.js' import SnackbarWithAction from '../src/components/snackbar/demos/SnackbarWithAction.js' storiesOf('Snackbar', module) .addDecorato...
src/Survey/Complex/Default/Samples/Location.js
NERC-CEH/irecord-app
import React from 'react'; import PropTypes from 'prop-types'; import _ from 'lodash'; import bigu from 'bigu'; import { observer } from 'mobx-react'; import { IonPage } from '@ionic/react'; import Log from 'helpers/log'; import { message } from 'helpers/toast'; import Header from 'Components/Location/Header'; import M...
js/components/Chat/ListChats.js
DevHse/ClubRoom
import React, { Component } from 'react'; import { Image, Dimensions, ListView, Text, TouchableOpacity } from 'react-native'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Container, Content, InputGroup, Input, Button, Icon, View } from 'native-base'; ...
examples/with-glamorous/pages/index.js
callumlocke/next.js
import React from 'react' import { rehydrate, css } from 'glamor' import glamorous from 'glamorous' // Adds server generated styles to glamor cache. // Has to run before any `style()` calls // '__NEXT_DATA__.ids' is set in '_document.js' if (typeof window !== 'undefined') { rehydrate(window.__NEXT_DATA__.ids) } exp...
src/components/OrderSummary/OrderSummary-story.js
jzhang300/carbon-components-react
/* eslint-disable no-console */ import React from 'react'; import { storiesOf } from '@storybook/react'; import { OrderSummary, OrderSummaryHeader, OrderSummaryCategory, OrderSummaryList, OrderSummaryListItem, OrderSummaryTotal, OrderSummaryFooter, } from '../OrderSummary'; import Button from '../Button'...
app/components/Home.js
kaunio/gloso
// @flow import React, { Component } from 'react'; import { Link } from 'react-router'; import styles from './Home.css'; import SaveLink from './SaveLink'; import StartTestLink from './StartTestLink'; import LoadLink from './LoadLink'; export default class Home extends Component { render() { return ( <div>...
src/components/pagination/PaginationButton/PaginationNext.js
CtrHellenicStudies/Commentary
import React from 'react'; import { connect } from 'react-redux'; import { updatePage } from '../../../actions/pagination'; const PaginationNext = ({ updatePage, location, activePage }) => ( <button type="button" onClick={updatePage.bind(this, activePage + 1)} > <span> Next </span> <i className="mdi md...
ios/versioned-react-native/ABI8_0_0/Libraries/Image/Image.ios.js
jolicloud/exponent
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
react-router-demo/lessons/09-index-links/modules/About.js
zhangjunhd/react-examples
import React from 'react' export default React.createClass({ render() { return <div>About</div> } })
src/Components/Card.stories.js
elderfo/elderfo-react-native-components
import React from 'react'; import { Text } from 'react-native'; import { storiesOf, action, linkTo } from '@kadira/react-native-storybook'; import {Card, CenterView} from '../'; storiesOf('Card', module) .addDecorator(getStory => ( <CenterView fillParent={true} style={{padding:10}}>{getStory()}</CenterView> )...
src/components/seller-info.js
KoushikKumar/trade-a-book-client
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { SELLER_INFO } from '../constants/content-constants'; class SellerInfo extends Component { render() { if(this.props.bookdetailsById.sellerInfo) { return ( <div className="seller-information...
src/components/export-modal/export-modal.js
mpigsley/sectors-without-number
import React from 'react'; import dayjs from 'dayjs'; import PropTypes from 'prop-types'; import { FormattedMessage, intlShape } from 'react-intl'; import FlexContainer from 'primitives/container/flex-container'; import Modal from 'primitives/modal/modal'; import Button from 'primitives/other/button'; import ExportTyp...
src/navigation/auth.js
b1alpha/Smoothie-Du-Jour
/** * Auth Scenes * * React Native Starter App * https://github.com/mcnamee/react-native-starter-app */ import React from 'react'; import { Scene, ActionConst } from 'react-native-router-flux'; // Consts and Libs import { AppConfig } from '@constants/'; // Scenes import Authenticate from '@containers/auth/Authen...
src/containers/MessageDisplay/index.js
dramich/twitchBot
import React, { Component } from 'react'; import Tooltip from '../../components/Tooltip'; import { styles } from './styles.scss'; export default class MessageDisplay extends Component { constructor(props) { super(props); this.state = { blurClass: 'row blurred', blurBtn: 'Show Chat', blurMsg...
src/svg-icons/image/blur-linear.js
skarnecki/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageBlurLinear = (props) => ( <SvgIcon {...props}> <path d="M5 17.5c.83 0 1.5-.67 1.5-1.5s-.67-1.5-1.5-1.5-1.5.67-1.5 1.5.67 1.5 1.5 1.5zM9 13c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-4c.55 0 1-.45 1-...
actor-apps/app-web/src/app/components/sidebar/RecentSection.react.js
webwlsong/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import DialogActionCreators from 'actions/DialogActionCreators'; import DialogStore from 'stores/DialogStore'; import CreateGroupActionCreators from 'actions/CreateGro...
docs/pages/api-docs/list-subheader.js
lgollut/material-ui
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown'; const pageFilename = 'api/list-subheader'; const requireRaw = require.context('!raw-loader!./', false, /\/list-subheader\.md$/); export default functi...
app/javascript/mastodon/features/ui/components/actions_modal.js
pso2club/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import ImmutablePureComponent from 'react-immutable-pure-component'; import StatusContent from '../../../components/status_content'; import Avatar from '../../../components/avatar'; import Relative...
src/icons/IosBookOutline.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosBookOutline extends React.Component { render() { if(this.props.bare) { return <g> <path d="M347.621,64c-40.941,0-79.121,14-91.578,44.495C242.5,78,205.408,64,164.466,64C109.265,64,64,89.98,64,143v1v8.995V41...
src/svg-icons/notification/wifi.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NotificationWifi = (props) => ( <SvgIcon {...props}> <path d="M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.08 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9...
src/routes/dashboard/components/cpu.js
terryli1643/thinkmore
import React from 'react' import PropTypes from 'prop-types' import styles from './cpu.less' import { color } from '../../../utils' import CountUp from 'react-countup' import { LineChart, Line, XAxis, YAxis, CartesianGrid, ResponsiveContainer } from 'recharts' const countUpProps = { start: 0, duration: 2.75, use...
app/src/components/Tutorial/index.js
civa86/web-synth
import React from 'react'; import icon from '../../../img/icon.png'; const Tutorial = () => { return ( <div id="tutorial" className="modal fade" tabIndex="-1" role="dialog"> <div className="modal-dialog" role="document"> <div className="modal-content"> <div ...
src/index.js
john-d-pelingo/tic-tac-toe
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import configureStore from 'core/store'; import App from 'views/app'; import { BoardContainer, MessageContainer, ScoresContainer } from 'views/containers'; // Styles import 'static/scss/style.css'; import registerSer...
src/index.js
eugene-matvejev/battleship-game-gui-react-js
import React from 'react'; import ReactDOM from 'react-dom'; import { BrowserRouter, Route, Switch } from 'react-router-dom'; import axios from 'axios'; import MockAdapter from 'axios-mock-adapter'; import generate from 'node-random-name'; import WebApp from './web-app'; import unauthorizedRoutes from './__configs/...
extension/panel/src/routes.js
capacitorjs/capacitor
'use strict'; import AppView from 'src/components/app-view'; import PluginContainer from 'src/components/plugin-container'; import React from 'react'; import {Route} from 'react-router'; export default ( <Route name='home' path='/' handler={AppView}> <Route name='plugin' path='/plugin/:pluginId' handler={Plugin...
src/client.js
nambawan/g-old
/** * 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 'whatwg-fetch'; import React from 'react'; impor...
app/.storybook/rr.js
atralice/reactDockerizeBoilerplate
import React from 'react'; import { action } from '@storybook/addon-actions'; // Export the original react-router module.exports = require('react-router-original'); // Set the custom link component. module.exports.Link = class Link extends React.Component { handleClick(e) { e.preventDefault(); const { to } ...
packages/lore-hook-forms-bootstrap/src/blueprints/create/Optimistic/index.js
lore/lore-forms
import React from 'react'; import createReactClass from 'create-react-class'; import Optimistic from './Optimistic'; export default createReactClass({ render: function() { const { schema, fieldMap, actionMap, data, validators, fields, actions, ...other } = this...
src/map/js/components/Modals/ShareModal.js
wri/gfw-water
import ModalWrapper from 'components/Modals/ModalWrapper'; import {modalStore} from 'stores/ModalStore'; import {modalText} from 'js/config'; import utils from 'utils/AppUtils'; import React from 'react'; let facebookSvg = '<use xlink:href="#icon-facebook" />'; let twitterSvg = '<use xlink:href="#icon-twitter" />'; le...