path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/js/components/icons/base/SocialVimeo.js
odedre/grommet-final
/** * @description SocialVimeo 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. *...
packages/material-ui-icons/src/SpaceBar.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let SpaceBar = props => <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z" /> </SvgIcon>; SpaceBar = pure(SpaceBar); SpaceBar.muiName = 'SvgIcon'; export default SpaceBar;
src/components/lib/header.js
digitalphant0m/Scarif
import React, { Component } from 'react'; import './css/header.css'; export default class Home extends Component { openNav() { document.getElementById("mySidenav").style.width = "250px"; document.getElementById("main").style.marginLeft = "250px"; document.getElementById("overlay").style.d...
packages/metadata-react/src/App/dialogs.js
oknosoft/metadata.js
/** * Методы для вызова диалогов react в процедурном стиле * * @module dialogs * * Created by Evgeniy Malyarov on 16.11.2018. */ import React from 'react'; import InputRadio from './InputRadio'; export default { /** * ### Инициализирует UI * Сюда передаём метод управления состоянием * @param handleI...
app/packs/src/components/Navigation.js
ComPlat/chemotion_ELN
import React from 'react'; import { Nav, Navbar, Tooltip, OverlayTrigger } from 'react-bootstrap'; import UserAuth from './UserAuth'; import Search from './search/Search'; import ManagingActions from './managing_actions/ManagingActions'; import ContextActions from './contextActions/ContextActions'; import UserStore fro...
src/client/order/orderButton.js
r3dDoX/geekplanet
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import Button from '@material-ui/core/Button'; import ShoppingCart from '@material-ui/icons/AddShoppingCart'; import { createAddItemToShoppingCart } from '../actions'; imp...
docs/app/Examples/elements/Icon/IconSet/IconExampleObjects.js
ben174/Semantic-UI-React
import React from 'react' import { Grid, Icon } from 'semantic-ui-react' const IconExampleObjects = () => ( <Grid columns='5' doubling> <Grid.Column> <Icon name='anchor' /> <p>anchor</p> </Grid.Column> <Grid.Column> <Icon name='bar' /> <p>bar</p> </Grid.Column> <Grid.Colum...
app/components/Ranking/index.js
prudhvisays/newsb
import React from 'react'; // import AreaChart from '../Charts/AreaChart'; import { hourData } from './hourData'; import { weekData } from './weekData'; export default class Target extends React.Component { //eslint-disable-line render() { const { compressed } = this.props return ( <div className="boxS...
src/index.js
dave-89/react-template
import ReactDOM from 'react-dom'; import React from 'react'; import Main from './components/Main'; ReactDOM.render( <Main />, document.getElementById('root') );
fields/types/password/PasswordFilter.js
suryagh/keystone
import React from 'react'; import { SegmentedControl } from 'elemental'; const EXISTS_OPTIONS = [ { label: 'Is Set', value: true }, { label: 'Is NOT Set', value: false }, ]; function getDefaultValue () { return { exists: true, }; } var PasswordFilter = React.createClass({ propTypes: { filter: React.PropTyp...
examples/simple-router/src/index.js
mirrorjs/mirror
import React from 'react' import mirror, {render, Router} from 'mirrorx' import App from './App' mirror.defaults({ historyMode: 'hash' }) render( <Router basename="/test" hashType="hashbang"> <App/> </Router> , document.getElementById('root'))
src/components/dialogs/ItemSelectDialog.js
Charlie9830/pounder
import React, { Component } from 'react'; import { Dialog, DialogTitle, DialogContent, DialogContentText, DialogActions, Button, List, ListItem, ListItemText } from '@material-ui/core'; class ItemSelectDialog extends Component { constructor(props) { super(props); // State. this.sta...
src/admin/components/SchemaForm/index.js
u-wave/web
import React from 'react'; import PropTypes from 'prop-types'; import Form from '../../../components/Form'; import ControlsContext from './ControlsContext'; import ArrayField from './ArrayField'; import BooleanField from './BooleanField'; import NumberField from './NumberField'; import ObjectField, { ObjectProperties }...
analysis/demonhuntervengeance/src/modules/talents/AgonizingFlames.js
anom0ly/WoWAnalyzer
import { formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import calculateEffectiveDamage from 'parser/core/calculateEffectiveDamage'; import Events from 'parser/core/Events'; import STATISTIC_ORDER from 'parser/ui/STATISTIC_ORDER...
src/components/LoginForm.js
react-auth/react-auth
import React from 'react'; import { Link } from 'react-router'; import utils from '../utils'; import context from '../context'; import { loginWithCredentials } from '../actions'; import LoadingText from '../components/LoadingText'; class DefaultLoginForm extends React.Component { state = { fields: [ { ...
src/client/auth/login.react.js
langpavel/react-svg-path-editor
import './login.styl'; import Component from '../components/component.react'; import React from 'react'; import exposeRouter from '../components/exposerouter.react'; import {focusInvalidField} from '../lib/validation'; @exposeRouter export default class Login extends Component { static propTypes = { actions: Re...
app/components/About.js
hsin421/tacec-2017
import React from 'react'; import Appbar from 'muicss/lib/react/appbar'; import Button from 'muicss/lib/react/button'; import Container from 'muicss/lib/react/container'; import Divider from 'muicss/lib/react/divider'; import Row from 'muicss/lib/react/row'; import Col from 'muicss/lib/react/col'; import { Link } from...
src/components/Header.js
numieco/patriot-trading
import React from 'react' import { Link } from 'react-router-dom' import Logo from './Logo' import Navigations from './Navigations' export default class Header extends React.Component { constructor (props) { super (props) this.state = { menuButtonIsActive: false, innerWidth: window.innerWidth, ...
src/icons/font/ArrowUpIcon.js
skystebnicki/chamel
import React from 'react'; import PropTypes from 'prop-types'; import FontIcon from '../../FontIcon'; import ThemeService from '../../styles/ChamelThemeService'; const ArrowUpIcon = (props, context) => { let theme = context.chamelTheme && context.chamelTheme.fontIcon ? context.chamelTheme.fontIcon : ...
node_modules/react-bootstrap/es/Tab.js
caughtclean/but-thats-wrong-blog
import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from 'babel-runtime/helpers/extends'; import React from 'react'; import TabContainer from...
src/App.js
dontuse/it-center
import React, { Component } from 'react'; import Man from './components/Man.jsx'; import VerticalNav from './components/VerticalNav.jsx'; import NewsListPreview from './components/NewsListPreview.jsx'; import EventsList from './components/EventsList.jsx'; import DocListPr from './components/DocListPr.jsx'; import Syste...
src/containers/pages/welcome/sections/use-cases/reddit.js
vFujin/HearthLounge
import React from 'react'; import CardInText from "../../../../../components/card/card-in-text"; import {Link} from "react-router-dom"; import Icon from "../../../../../components/icon"; const anduin = <CardInText label="Andruin Wrynn" imgSrc="http://media.services.zam.com/v1/media/byName/hs/cards/enus/HERO_09.png" ra...
app/modules/publishes/utils/page/createForm.js
theseushu/runcai
import React from 'react'; import _omitBy from 'lodash/omitBy'; import { reduxForm } from 'redux-form'; import { browserHistory } from 'react-router'; import success from 'modules/toastr/success'; import { publishTypesInfo } from 'funong-common/lib/appConstants'; const omitFileds = ['shop', 'original', 'updatedAt', 'o...
src/components/children/DashboardContent.js
Nfinley/Showcase-Playlist-Generator
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import { Link } from 'react-router-dom'; import Card from '@material-ui/core/Card'; import CardContent from '@material-ui/core/CardContent'; import Typography from '@material-ui/core/Typography'; const...
examples/counter/index.js
dmin/redux
import React from 'react'; import { Provider } from 'react-redux'; import App from './containers/App'; import configureStore from './store/configureStore'; const store = configureStore(); React.render( <Provider store={store}> {() => <App />} </Provider>, document.getElementById('root') );
src/renderer/app/dashboard.js
TrAsKiN/ots-dashboard
import React from 'react'; function Side(props) { return <div id={props.id} className="uk-flex">{props.children}</div> } export class Dashboard extends React.Component { render() { return ( <div id="dashboard" className="uk-grid-collapse uk-grid-match uk-child-width-expand" uk-grid="true">...
src/components/App.js
bobbybeckner/ha-catalyst-test
/** * 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-...
components/About.js
charmainetham/charmainetham.github.io
import React from 'react' import ReactDOM from 'react-dom'; import { SocialIcon } from 'react-social-icons'; import myPicHello from '../assets/images/hello.png'; const About = () => ( <div> <h1> About </h1> <div className="myPicHello"> <img src={myPicHello}></img> </div> <p> Hi! I am Cha...
packages/spec/integration/graphql-no-ssr/index.js
xing/hops
import { render } from 'hops'; import React from 'react'; import { Helmet } from 'react-helmet-async'; import { Query } from '@apollo/client/react/components'; import { gql } from '@apollo/client'; const query = gql` query testQuery { subject { title } } `; export default render( <> <Helmet> ...
src/svg-icons/maps/person-pin.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsPersonPin = (props) => ( <SvgIcon {...props}> <path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 3.3c1.49 0 2.7 1.21 2.7 2.7 0 1.49-1.21 2.7-2.7 2.7-1.49 0-2...
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js
wilsonwp/servidor
import React from 'react'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; React.render(<HelloWorld />, document.getElementById('react-root'));
src/components/Landing/FiltersPanel.js
franciskim722/crypy
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card'; import DropDownMenu from 'material-ui/DropDownMenu'; import SelectField from 'material-ui/SelectField'; import RaisedButton from 'material-ui/RaisedButton'; import Men...
app/javascript/mastodon/features/ui/components/confirmation_modal.js
ikuradon/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { injectIntl, FormattedMessage } from 'react-intl'; import Button from '../../../components/button'; export default @injectIntl class ConfirmationModal extends React.PureComponent { static propTypes = { message: PropTypes.node.isRequired, ...
example/components/root.js
travi/hapi-react-router
import React from 'react'; import {node, shape, string} from 'prop-types'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; export default function Root({children, request}) { return ( <MuiThemeProvider muiTheme={getMuiTheme({userAgent:...
src/components/MainHeader/UserFooter.js
falmar/react-adm-lte
import React from 'react' import PropTypes from 'prop-types' const UserFooter = ({children}) => { return ( <li className='user-footer'> {children} </li> ) } UserFooter.propTypes = { children: PropTypes.node } export default UserFooter
src/App/views/Saved/components/SavedHeader/index.js
hajjiTarik/SolarNews
import React, { Component } from 'react'; import { Text, TouchableOpacity, View } from 'react-native'; import { SearchBar } from 'react-native-elements'; import { isEmpty, omit } from 'lodash'; import LinearGradient from 'react-native-linear-gradient'; import { getFromStorage } from '../../../../utils/cacheManager'; im...
src/home/index.js
crosslandwa/chippanfire-site
import React from 'react' import Music from './Music' import Contact from './Contact' import Software from './Software' import PageTemplate from '../PageTemplate' const Home = props => ( <PageTemplate> <p> Hi, I'm Will Crossland, a musician, software developer and beer-user from northern England. I made th...
SSBW/Tareas/Tarea9/restaurantes2/node_modules/react-bootstrap/es/Breadcrumb.js
jmanday/Master
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 ...
src/components/theme-legacy/petition-report.js
MoveOnOrg/mop-frontend
import React from 'react' import { Link } from 'react-router' import PropTypes from 'prop-types' import Sparkline from './sparkline' export const PetitionReport = ({ petition, signatureStats }) => ( <div className='container background-moveon-white bump-top-1'> <div className='row'> <div className='span8 ...
src/screen/ChatScreen.js
finiking/RNBasic
import React, { Component } from 'react'; import { Text, View, StyleSheet, Image, Button, AlertIOS, ImagePickerIOS } from 'react-native'; export default class ChatScreen extends Component { constructor() { super() } render() { const { params } = this.props.navigation.state; return ( <View styl...
packages/react-scripts/fixtures/kitchensink/src/features/env/FileEnvVariables.js
ConnectedHomes/create-react-web-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'; export default () => ( <span> <span id="feature-file-env-original-1"> {process.env.REACT_APP_ORI...
src/containers/foiRequests/FoiRequestsOnboardingScreen.js
jfilter/frag-den-staat-app
import { Icon } from 'react-native-elements'; import { NavigationActions } from 'react-navigation'; import { Text, View } from 'react-native'; import { connect } from 'react-redux'; import Onboarding from 'react-native-onboarding-swiper'; import React from 'react'; import { onboardingFinishedAction } from '../../actio...
src/decorators/withViewport.js
emil-alexandrescu/react-starter-kit
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; // eslint-disable-line no-unused-vars import EventEmitter from 'eventemitter3'; import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment'; let EE; let viewport = {width: 1366, height: 768}; // Default si...
src/Parser/Paladin/Retribution/Modules/PaladinCore/Retribution.js
hasseboulen/WoWAnalyzer
import React from 'react'; import Analyzer from 'Parser/Core/Analyzer'; import Combatants from 'Parser/Core/Modules/Combatants'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from '...
AwesomeProject/components/Faixa.js
victorditadi/IQApp
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, TouchableHighlight, TextInput, ListView, Image, StatusBar } from 'react-native'; import {Container, Content, Header, Title, Footer, FooterTab, Button, Icon} from 'native-base'; export default class Faixa extends ...
docs/src/pages/Home.js
boldr/boldr-ui
import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import Link from 'react-router-dom/Link'; import { Button, Headline, Tooltip, Grid, Tag, Col, Icon, Menu, MenuItem, Row, ImageDisplay, Paper, Media, MediaOverlay, Topbar, TopbarLink, ...
mxcube3/ui/containers/TaskContainer.js
bolmsten/mxcube3
import React from 'react'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import Characterisation from '../components/Tasks/Characterisation'; import DataCollection from '../components/Tasks/DataCollection'; import Helical from '../components/Tasks/Helical'; import AddSample from '.....
app/javascript/mastodon/features/compose/components/navigation_bar.js
pixiv/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import Avatar from '../../../components/avatar'; import IconButton from '../../../components/icon_button'; import Permalink from '../../../components/permalink'; import { FormattedMessage } from 'r...
fixtures/packaging/systemjs-builder/prod/input.js
VioletLife/react
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( React.createElement('h1', null, 'Hello World!'), document.getElementById('container') );
apps/marketplace/components/Teams/Flows/TeamTable.js
AusDTO/dto-digitalmarketplace-frontend
import React from 'react' import { sortObjectByName } from 'marketplace/components/helpers' import commonStyles from './TeamStages.scss' import styles from './ReviewTeamStage.scss' const TeamTable = props => { const { teamLeads, teamMembers } = props const sortedTeamLeadKeys = sortObjectByName(teamLeads) cons...
react/features/settings/components/web/audio/TestButton.js
bgrozev/jitsi-meet
// @flow import React from 'react'; type Props = { /** * Click handler for the button. */ onClick: Function, }; /** * React {@code Component} representing an button used for testing output sound. * * @returns { ReactElement} */ export default function TestButton({ onClick }: Props) { retur...
app/javascript/app/components/projects/index.js
moisesnandres/mvp-miprimeraapp
import React, { Component } from 'react'; import axios from 'axios'; import { connect } from 'react-redux'; import { Grid, Row, Col } from 'react-bootstrap'; import { setProjects, setSearchText } from '../../actions/index'; import { getFilteredProjects } from '../../selectors/'; import ProjectList from './...
scripts/shared/controller/index.js
namroodinc/police-react-mobx
import React from 'react'; export default class AppController extends React.Component { render() { return ( <div> {this.props.children} </div> ); } }
examples/huge-apps/routes/Course/components/Course.js
pjuke/react-router
import React from 'react'; import Dashboard from './Dashboard'; import Nav from './Nav'; var styles = {}; styles.sidebar = { float: 'left', width: 200, padding: 20, borderRight: '1px solid #aaa', marginRight: 20 }; class Course extends React.Component { render () { let { children, params } = this.pro...
src/shared/views/plans/plans/PlansRoute.js
in-depth/indepth-demo
import React from 'react' import { PlansList } from './index' const planTypes = [ { title: 'CURATORS FAVOURITES', subtitle: 'Find out the favourite objects and exhibits from our curators', path: '/plan/curators-favourites', backgroundUrl: 'http://www.portlandmuseum.org/sites/default/files/styles/eve...
src/routes/contact/index.js
lassegit/gitdude.com
import React from 'react'; import Layout from '../../components/Layout'; import Contact from './Contact'; const title = 'Contact'; export default { path: '/contact', action() { return { title, component: <Layout><Contact title={title} /></Layout>, }; }, };
src/index.js
williamcspace/react-seed
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );
frontend/src/Settings/MediaManagement/RootFolder/RootFolder.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import Card from 'Components/Card'; import Label from 'Components/Label'; import ConfirmModal from 'Components/Modal/ConfirmModal'; import { kinds } from 'Helpers/Props'; import EditRootFolderModalConnector from './EditRootFolderModalConnecto...
src/components/video_detail.js
JenPhD/ReactYouTubeSearch
import React from 'react'; const VideoDetail = ({video}) => { if (!video) { return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; //backtics and ${} same thing as concatenating return ( <div className="video-detail col-md-8"> ...
resources/src/js/components/ModalForm/utils.js
aberon10/thermomusic.com
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Ajax from '../../Libs/Ajax'; import AppPlaylist from '../../app/Music/Playlist'; import MenuPopUp from '../MenuPopUp/index'; import { displayNotification, checkXMLHTTPResponse } from '../../app/utils/Utils'; function addTrackToFavorit...
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Shared/Confirm.js
ChamNDeSilva/carbon-apimgt
/* * Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
task-card-app/src/App.js
pinoytech/react-playground
import React, { Component } from 'react'; import AddTaskForm from './components/AddTaskForm'; import TaskCardList from './components/TaskCardList'; class App extends Component { render() { return ( <div className="container"> <AddTaskForm /> <TaskCardList /> </div> ); } } expor...
src/parser/demonhunter/havoc/modules/spells/DemonBite.js
fyruna/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import Events from 'parser/core/Events'; import Analyzer, { SELECTED_PLAYER } from 'pars...
src/components/Common/List/Components/Scroll/tpl.js
LifeSourceUA/lifesource.ua
/** * [IL] * Library Import */ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; /** * [IV] * View Import */ import Mobile from './Views/Mobile/tpl'; import Desktop from './Views/Desktop/tpl'; /** * [IBP] * Pixel Perfect and Breakpoints */ im...
maodou/posts/client/components/admin/postsEdit.js
ShannChiang/meteor-react-redux-base
import React from 'react'; export default (props) => { const { dispatch, coverUrl, updatePost } = props; const { categories, post } = props.data; const { beginUpload, fileUploaded } = props.state; const url = coverUrl ? coverUrl : post.coverUrl; return ( <div className="admin-package-wrapper row"> ...
node_modules/react-router/es6/RoutingContext.js
qingege/react_draft
import React from 'react'; import RouterContext from './RouterContext'; import warning from './routerWarning'; var RoutingContext = React.createClass({ displayName: 'RoutingContext', componentWillMount: function componentWillMount() { process.env.NODE_ENV !== 'production' ? warning(false, '`RoutingContext` has...
example/App.js
GantMan/useless-things
import React from 'react' import AppNavigation from './navigation/AppNavigation' import { StyleSheet, Text, View } from 'react-native' import { SinWave, Blink, TerribleName } from 'useless-things' export default class App extends React.Component { render () { return ( <View style={styles.container}> ...
src/blocks/ol.js
brijeshb42/kattappa
import React from 'react'; import LI from '../components/listitem'; import BlockControl from '../components/blockcontrol'; import {uuid} from '../utils'; class BlockOL extends React.Component { constructor(props) { super(props); this.onContentChanged = this.onContentChanged.bind(this); this.addItem = ...
src/svg-icons/av/equalizer.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvEqualizer = (props) => ( <SvgIcon {...props}> <path d="M10 20h4V4h-4v16zm-6 0h4v-8H4v8zM16 9v11h4V9h-4z"/> </SvgIcon> ); AvEqualizer = pure(AvEqualizer); AvEqualizer.displayName = 'AvEqualizer'; export def...
frontend-app/article/editor/button/save-draft-button.js
easybird/easyblog
import React from 'react'; class SaveDraftButton extends React.Component { render() { return ( <a className="waves-effect waves-light red lighten-1 btn" onClick={this.props.onSaveDraft} >Save Draft</a> ) } } SaveDraftButton.propTypes = { onSaveDraft: React.PropTypes.func.isReq...
app/javascript/mastodon/components/status_action_bar.js
mstdn-jp/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...
packages/react/src/components/FormGroup/FormGroup.js
carbon-design-system/carbon-components
/** * Copyright IBM Corp. 2016, 2018 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; import { useFeatureFlag } from '../Featur...
client/root.js
ncrmro/ango
import React from 'react' import BrowserRouter from 'react-router-dom/es/BrowserRouter' import App from 'components/App/App' import routes from './routes' import RouteWithSubRoutes from 'utils/RouteUtil' import { environment } from 'utils/relay' import { isAuthenticated } from 'modules/auth/utils' const Root = (props)...
pages/login.js
vinodronold/fivefrets-next
import React from 'react' import { rehydrate } from 'glamor' import { withReduxSaga } from '../src/app/store' import Layout from '../src/app/Layout' // 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...
src/routes.js
petarslovic/bas-info
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React from 'react'; import Router from 'react-routing/src/Router'; import http from './core/HttpClient'; import App from './components/App'; import ContentPage from './components/ContentPage'; import ContactPage from './components/ContactP...
components/Piece/Piece.js
vasco3/puzzles-from-brussles
import { DragSource } from 'react-dnd'; import React from 'react' const pieceSource = { beginDrag(props) { return props.piece; } }; function collect(connect, monitor) { return { connectDragSource: connect.dragSource(), // connectDragPreview: connect.dragPreview(), isDragging: monitor.isDragging(...
admin/client/App/screens/List/components/Filtering/ListFiltersAddForm.js
Yaska/keystone
import React from 'react'; import { findDOMNode } from 'react-dom'; import Popout from '../../../../shared/Popout'; import { Filters } from '../../../../../../../fields'; var ListFiltersAddForm = React.createClass({ propTypes: { field: React.PropTypes.object.isRequired, maxHeight: React.PropTypes.number, onApp...
internals/templates/notFoundPage/notFoundPage.js
SenyOrg/kekecmed-frontend
/** * NotFoundPage * * This is the page we show when the user visits a url that doesn't have a route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it...
src/pages/index.js
evanfrawley/evanfrawley.github.io
import React from 'react' import ButtonRack from "../components/ButtonRack"; import FlexFullHeight from "../components/FlexFullHeight"; import {Box, Heading} from "rebass"; const IndexPage = () => ( <FlexFullHeight w={1} direction="column" align="center" justify="center"> <Box> <Heading f={6} is="h1">Devel...
packages/containers/src/FilterBar/FilterBar.container.js
Talend/ui
import { cmfConnect } from '@talend/react-cmf'; import React from 'react'; import PropTypes from 'prop-types'; import omit from 'lodash/omit'; import Immutable from 'immutable'; import Component from '@talend/react-components/lib/FilterBar'; export const QUERY_ATTR = 'query'; export const DEFAULT_STATE = new Immutable...
modules/IndexRoute.js
upraised/react-router
import React from 'react' import invariant from 'invariant' import warning from 'warning' import { createRouteFromReactElement } from './RouteUtils' import { component, components, falsy } from './PropTypes' const { bool, func } = React.PropTypes /** * An <IndexRoute> is used to specify its parent's <Route indexRout...
packages/@lyra/form-builder/src/utils/WithMaterializedReference.js
VegaPublish/vega-studio
// @flow import React from 'react' import WithMaterializedDocument from './WithMaterializedDocument' import type {Reference} from '../typedefs' import type {Node} from 'react' import {ObservableI} from '../typedefs/observable' type Props = { reference: Reference, materialize: string => ObservableI<Object>, child...
src/components/Welcome/index.js
CCSF-Coders/CampusConnect
import React from 'react'; import { connect } from 'react-redux'; import BigCalendar from 'react-big-calendar'; import moment from 'moment'; import Header from '../Header'; import { setState } from '../../state'; import './index.css'; import 'react-big-calendar/lib/css/react-big-calendar.css'; BigCalendar.momentLoca...
envkey-react/src/components/assoc_manager/assoc_row/row_display/server_row_display.js
envkey/envkey-app
import React from 'react' import h from "lib/ui/hyperscript_with_helpers" import R from 'ramda' import KeyableActions from "./keyable_actions" export default function(props){ const name = (props.assoc.isDefault ? "Default Key" : props.assoc.name) return h.div([ h.span(".name", name), h.div(".bottom-row", [...
node_modules/react-bootstrap/es/MediaLeft.js
firdiansyah/crud-req
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 ...
src/MediaBox.js
jareth/react-materialize
import React from 'react'; // Material design implementation of the Lightbox plugin class MediaBox extends React.Component { render() { let {src, caption, ...props} = this.props; return ( <img className="materialboxed" data-caption={caption} {...props} src={src} /> ); } } MediaBox.propTypes = {...
js/App/Components/ExchangeOffer/ExchangeOffer.js
telldus/telldus-live-mobile-v3
/** * Copyright 2016-present Telldus Technologies AB. * * This file is part of the Telldus Live! app. * * Telldus Live! app is free : 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 *...
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js
wparkhurst/angular-spotifysearch
import React from 'react'; import { render } from 'react-dom'; // It's important to not define HelloWorld component right in this file // because in that case it will do full page reload on change import HelloWorld from './HelloWorld.jsx'; render(<HelloWorld />, document.getElementById('react-root'));
src/scenes/App/scenes/DemoOverview/components/DemoInfo/index.js
jsza/tempus-website
import React from 'react' import {Link} from 'react-router-dom' import TimeAgo from 'react-timeago' import './styles.styl' const DemoInfo = ({demoInfo, serverInfo}) => { const {url, deleted, expired, recording, requested} = demoInfo let demoStatus if (url) { demoStatus = 'Uploaded' } else if (deleted ...
src/svg-icons/maps/transfer-within-a-station.js
IsenrichO/mui-with-arrows
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTransferWithinAStation = (props) => ( <SvgIcon {...props}> <path d="M16.49 15.5v-1.75L14 16.25l2.49 2.5V17H22v-1.5zm3.02 4.25H14v1.5h5.51V23L22 20.5 19.51 18zM9.5 5.5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 ...
tests/react_custom_funs/create_factory.js
claudiopro/flow
// @flow import React from 'react'; declare var any: any; React.createFactory(any)(); // OK React.createFactory(any)({}); // OK React.createFactory(any)(undefined); // OK React.createFactory(any)(null); // OK class A extends React.Component<{foo: number, bar: number}, void> {} function B(props: {foo: number, bar: n...
server/server.js
react-in-action/letters-social
import { __PRODUCTION__ } from 'environs'; import { resolve } from 'path'; import bodyParser from 'body-parser'; import compression from 'compression'; import cors from 'cors'; import express from 'express'; import helmet from 'helmet'; import favicon from 'serve-favicon'; import hpp from 'hpp'; import logger from 'mor...
src/app/components/team/TeamReport/index.js
meedan/check-web
import React from 'react'; import { QueryRenderer, graphql } from 'react-relay/compat'; import Relay from 'react-relay/classic'; import TeamReportComponent from './TeamReportComponent'; const TeamReport = () => { const teamSlug = window.location.pathname.match(/^\/([^/]+)/)[1]; return ( <QueryRenderer e...
actor-apps/app-web/src/app/components/modals/InviteUser.react.js
taimur97/actor-platform
import _ from 'lodash'; import React from 'react'; import Modal from 'react-modal'; import ReactMixin from 'react-mixin'; import { IntlMixin, FormattedMessage } from 'react-intl'; import { Styles, FlatButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ActorClient from 'utils/ActorClien...
docs/app/Examples/elements/Loader/Variations/LoaderExampleSizesInverted.js
shengnian/shengnian-ui-react
import React from 'react' import { Dimmer, Loader, Image, Segment } from 'shengnian-ui-react' const LoaderExampleSizesInverted = () => ( <div> <Segment> <Dimmer active inverted> <Loader size='mini'>Loading</Loader> </Dimmer> <Image src='/assets/images/wireframe/short-paragraph.png' /> ...
src/components/Col/stories/Fluid.js
aaronvanston/react-flexa
import React from 'react'; import { Box } from '../../../../stories/components'; import { Row, Col } from '../../'; export default () => ( <Row> <Col xs={12}> <Box>12</Box> </Col> <Col xs={6}> <Box>6</Box> </Col> <Col xs={6}> <Box>6</Box> </Col> <Col xs={4}> <Bo...
actor-apps/app-web/src/app/components/activity/GroupProfileMembers.react.js
mitchellporter/actor-platform
import _ from 'lodash'; import React from 'react'; import { PureRenderMixin } from 'react/addons'; import DialogActionCreators from 'actions/DialogActionCreators'; import LoginStore from 'stores/LoginStore'; import AvatarItem from 'components/common/AvatarItem.react'; const GroupProfileMembers = React.createClass(...
src/components/playground/tester-detail.js
javflores/dtl-react-training
import React from 'react'; const TesterDetail = () => { return ( <div className="container"> <div className="page-header"> <h1><img src="https://bucket.cdndtl.co.uk/bc/ICONS_70x70/icon-LineRentalIncluded.png"/> Fast Broadband (all in One pricing)<small> by Ta...
ui/app/components/splash.js
leapcode/bitmask-dev
/* * A simple animated splash screen */ import React from 'react' import * as COLOR from '../lib/colors' const colorList = [ COLOR.red200, COLOR.pink200, COLOR.purple200, COLOR.deepPurple200, COLOR.indigo200, COLOR.blue200, COLOR.lightBlue200, COLOR.cyan200, COLOR.teal200, COLOR.green200, COLOR.lightGreen200,...
demo/main.js
saulshanabrook/cerebral
import './../node_modules/todomvc-common/base.css'; import './../node_modules/todomvc-app-css/index.css'; import './styles.css'; import React from 'react'; import App from './App.js'; import controller from './controller.js'; import ReactiveRouter from 'reactive-router'; // ACTIONS import addTodo from './actions/addT...