path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
src/templates/categories.js
DBozhinovski/beerjs.mk
import React from 'react'; import PropTypes from 'prop-types'; import Helmet from 'react-helmet'; import { Link, graphql } from 'gatsby'; import styled from 'styled-components'; // import kebabCase from 'lodash/kebabCase'; import { Layout, Wrapper, Header, SectionTitle, Logo, Navigation, Article } from '../components';...
src/component/manager/managerView.js
tech-dojo/React-Task-Manager
import React from 'react'; import Drawer from 'material-ui/Drawer'; import MenuItem from 'material-ui/MenuItem'; import RaisedButton from 'material-ui/RaisedButton'; import AppBar from 'material-ui/AppBar'; import IconButton from 'material-ui/IconButton'; import Divider from 'material-ui/Divider'; import Menu from 'mat...
src/views/components/require-auth-route/require-auth-route.js
connorbanderson/CoinREXX
import React from 'react'; import { Route, Redirect } from 'react-router-dom' const RequireAuthRoute = ({component: Component, authenticated, ...rest}) => ( <Route {...rest} render={props => { return authenticated ? ( <Component {...props}/> ) : ( <Redirect to={{ pathna...
src/server.js
theopak/alright
/* * React.js Starter Kit * Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import _ from 'lodash'; import fs from 'fs'; import path from 'path'; import express from...
resources/assets/js/index.js
mgustin12/beatforge
import React from 'react' import ReactDOM from 'react-dom' import { createStore, compose, combineReducers } from 'redux' import { ApolloClient, createNetworkInterface } from 'react-apollo' import App from './core/components/App.jsx' import middleware from './middleware' import profile from './profile/reducer.js' impo...
client/components/organisms/Footer/Footer.js
djizco/boilerplate-react
import React from 'react'; import Footer from 'react-bulma-companion/lib/Footer'; import Container from 'react-bulma-companion/lib/Container'; import Content from 'react-bulma-companion/lib/Content'; export default function FooterComponent() { const year = new Date().getFullYear(); return ( <Footer> <C...
src/components/main-carousel/callout.js
adrienlozano/stephaniewebsite
import React from 'react'; import styled from 'styled-components'; import { responsiveStyle } from 'styled-system'; const Container = styled.div` padding: 2em !important; background-color: rgba(0, 0, 0, 0.5); border: none; color: #FFF; position: absolute; left: 10%; bottom: 2em; ` const C...
src/components/SiteNavi/index.js
narendrasoni1989/react-site
import React from 'react' import Link from 'gatsby-link' import './style.scss' class SiteNavi extends React.Component { render() { const { location, title } = this.props return ( <nav className="navbar navbar-expand navbar-dark flex-column flex-md-row bg-primary"> <div className="container"> ...
molgenis-core-ui/src/test/javascript/modules/react-components/jobs/JobsTest.js
marieke-bijlsma/molgenis
import test from 'tape'; import React from 'react'; import {jobs} from './jobs'; import Jobs from 'react-components/jobs/Jobs' import sd from 'skin-deep' test('Test if the Jobs component renders running, success and failed jobs correctly', assert => { const tree = sd.shallowRender(Jobs({ jobs: jobs }))...
front/src/index.js
kr3110/savortable
import React from 'react'; import ReactDOM from 'react-dom'; import './style/index.css'; import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import { browserHistory, Router } from 'react-router'; import routes from './routes.js'; ReactDOM.render( <Router history={browserHist...
packages/my-joy-images/src/components/description.js
geek/joyent-portal
import React from 'react'; import { Row, Col } from 'joyent-react-styled-flexboxgrid'; import { Margin } from 'styled-components-spacing'; import { P } from 'joyent-ui-toolkit'; export default ({ children }) => ( <Row> <Col xs={12} sm={8}> <Margin bottom={3}> <P>{children}</P> </Margin> <...
src/elements/Segment/Segment.js
aabustamante/Semantic-UI-React
import cx from 'classnames' import _ from 'lodash' import PropTypes from 'prop-types' import React from 'react' import { customPropTypes, getElementType, getUnhandledProps, META, SUI, useKeyOnly, useKeyOrValueAndKey, useTextAlignProp, useValueAndKey, } from '../../lib' import SegmentGroup from './Seg...
src/svg-icons/action/offline-pin.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionOfflinePin = (props) => ( <SvgIcon {...props}> <path d="M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10 10-4.5 10-10S17.5 2 12 2zm5 16H7v-2h10v2zm-6.7-4L7 10.7l1.4-1.4 1.9 1.9 5.3-5.3L17 7.3 10.3 14z"/> </SvgIcon> ...
common/components/template/PageContainer.js
BlackMuttMedia/filmbreakdown.com
import React from 'react' import { Grid, Row, Col } from 'react-bootstrap' const PageContainer = (props) => ( <Grid> <Row> <Col md={12}> {props.children} </Col> </Row> </Grid> ) export default PageContainer
src/components/adventure/AdventurePage.js
mdicarlo3/cautious-disco
import React, { Component } from 'react'; import { connect } from 'react-redux'; import * as adventureActions from '../../actions/adventureActions'; import { getRandomInt, containsObject } from '../../helpers/helpers'; import classNames from 'classnames'; import Arrows from '../common/Arrows'; import SplashScreen from ...
src/components/SelectAsync/index.js
keenethics/estimateit
import React from 'react'; import _ from 'underscore'; import Select from 'react-select'; import PropTypes from 'prop-types'; import { FormGroup } from 'reactstrap'; import ValidationState, { hintClass } from '../libs/ValidationState'; import { usersByEmail, } from '../../data/queriesClient'; class SelectAsync ex...
src/index.js
erlanglab/erlangpl-ui
// @flow import React from 'react'; import { render } from 'react-dom'; import App from './App'; import { combineSockets, createSockets } from './sockets'; // CSS imports import 'bootstrap/dist/css/bootstrap.css'; import 'bootstrap/dist/css/bootstrap-theme.css'; import 'font-awesome/css/font-awesome.min.css'; import ...
src/svg-icons/action/view-list.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewList = (props) => ( <SvgIcon {...props}> <path d="M4 14h4v-4H4v4zm0 5h4v-4H4v4zM4 9h4V5H4v4zm5 5h12v-4H9v4zm0 5h12v-4H9v4zM9 5v4h12V5H9z"/> </SvgIcon> ); ActionViewList = pure(ActionViewList); Actio...
src/browser/home/HomePage.js
redcom/doctori-romani-in-berlin
// @flow import React from 'react'; import { Box, PageHeader, } from '../../common/components'; import { Title } from '../components'; const strongStyle = { color: 'blue', marginTop: 1, }; const HomePage = () => ( <Box> <Title message="Doctori Romani in Berlin, Brandenburg" /> <PageHeader he...
src/components/app.js
maxmalynowsky/map-talc
import React, { Component } from 'react'; import Radium from 'radium'; import { DragDropContext } from 'react-dnd'; import HTML5Backend from 'react-dnd-html5-backend'; import store from '../store.js'; import MapContainer from './map.js'; import Toolbar from './toolbar.js'; import PanelFeature from './panel-feature.js';...
js/jqwidgets/demos/react/app/editor/toolscustomization/app.js
luissancheza/sice
import React from 'react'; import ReactDOM from 'react-dom'; import JqxEditor from '../../../jqwidgets-react/react_jqxeditor.js'; class App extends React.Component { render() { let tools = 'bold italic underline | font size | left center right | outdent indent'; let createCommand = (name) => { ...
tests/react_children/tabs.js
TiddoLangerak/flow
// @flow /** * This test represents a pattern which is commonly used to make tab bars, but * this pattern is also used in many other places. */ import React from 'react'; class Tab extends React.Component<{}, void> {} class NotTab extends React.Component<{}, void> {} type TabBarNode = | void | null | boole...
stories/RadioGroup/ExamplevAlign.js
nirhart/wix-style-react
import React from 'react'; import RadioGroup from 'wix-style-react/RadioGroup'; const style = { display: 'inline-block', padding: '0 5px', width: '200px', lineHeight: '22px' }; export default () => <div> <div className="ltr" style={style}>vAlign center <RadioGroup value={1} vAlign="center" > ...
es/components/MediaList/MediaThumbnail.js
welovekpop/uwave-web-welovekpop.club
import _jsx from "@babel/runtime/helpers/builtin/jsx"; import React from 'react'; import PropTypes from 'prop-types'; var MediaThumbnail = function MediaThumbnail(_ref) { var url = _ref.url; return _jsx("div", { className: "MediaListRow-thumb" }, void 0, _jsx("img", { className: "MediaListRow-image", ...
examples/counter/container.js
maksimsco/redux-process
import React from 'react'; import {connect} from 'react-redux'; import Message from './components/message'; import Counter from './components/counter'; import { decrease, increase } from './redux/counter'; class Container extends React.Component { render() { const {actions, message, counter} = this.props; ...
src/svg-icons/av/sort-by-alpha.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AvSortByAlpha = (props) => ( <SvgIcon {...props}> <path d="M14.94 4.66h-4.72l2.36-2.36zm-4.69 14.71h4.66l-2.33 2.33zM6.1 6.27L1.6 17.73h1.84l.92-2.45h5.11l.92 2.45h1.84L7.74 6.27H6.1zm-1.13 7.37l1.94-5.18 1.94 ...
app/packs/src/components/chemscanner/components/ScannedReactions.js
ComPlat/chemotion_ELN
import Immutable from 'immutable'; import PropTypes from 'prop-types'; import React from 'react'; import { ListGroup, ListGroupItem } from 'react-bootstrap'; import SvgFileZoomPan from 'react-svg-file-zoom-pan'; import DeleteBtn from './DeleteBtn'; import SelectBtn from './SelectBtn'; import CopyClipboardBtn from './C...
node_modules/react-icons/fa/sort.js
bairrada97/festival
import React from 'react' import Icon from 'react-icon-base' const FaSort = props => ( <Icon viewBox="0 0 40 40" {...props}> <g><path d="m31.4 24.3q0 0.6-0.5 1l-10 10q-0.4 0.4-1 0.4t-1-0.4l-10-10q-0.4-0.4-0.4-1t0.4-1 1-0.4h20q0.6 0 1 0.4t0.5 1z m0-8.6q0 0.6-0.5 1t-1 0.4h-20q-0.6 0-1-0.4t-0.4-1 0.4-1l10-10...
information/blendle-frontend-react-source/app/instances/i18n.js
BramscoChill/BlendleParser
import _ from 'lodash'; import PropTypes from 'prop-types'; import moment from 'moment'; import React from 'react'; import ByeBye from 'byebye'; import TypedError from 'helpers/typederror'; import constants from 'app-constants'; import settings from 'config/settings'; import features from 'config/features'; import Cook...
src/components/projects/show/CopySplitLeft.js
tehfailsafe/portfolioReact
import React from 'react'; const temp = React.createClass({ render(){ return( <div className="col-sm-9"> <h4>{this.props.title}</h4> {this.props.children} </div> ) } }) export default temp;
src/App.js
kishigo/recipes-react-redux
import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; class App extends Component { render() { return ( <div className="App"> <header className="App-header"> <img src={logo} className="App-logo" alt="logo" /> <h1 className="App-title">Welco...
client/scripts/components/user/progress-bar/index.js
kuali/research-coi
/* @flow */ /* The Conflict of Interest (COI) module of Kuali Research Copyright © 2005-2016 Kuali, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of...
templates/component/material.js
storrdev/react-cli
import React from 'react'; import { withStyles } from '@material-ui/core/styles'; import styles from './styles'; const {{ name }} = props => { const { classes } = props; return ( <div className={classes.root}> </div> ); }; export default withStyles(styles)({{ name }});
examples/webpack-example-1/src/App.js
vanHeemstraSystems/components
import React, { Component } from 'react'; import template from './App.rt'; export class App extends Component { render() { return template() } }
Realization/frontend/czechidm-core/src/content/role/RoleContent.js
bcvsolutions/CzechIdMng
import React from 'react'; import { connect } from 'react-redux'; // import * as Basic from '../../components/basic'; import { RoleManager} from '../../redux'; import RoleDetail from './RoleDetail'; let roleManager = null; /** * Role content with role form - first tab on role detail * * @author Radek Tomiška */ c...
src/SplitButton.js
dongtong/react-bootstrap
import React from 'react'; import BootstrapMixin from './BootstrapMixin'; import Button from './Button'; import Dropdown from './Dropdown'; import SplitToggle from './SplitToggle'; class SplitButton extends React.Component { render() { let { children, title, onClick, target, href, ...
app/components/AppLayout/AppLayout.js
Tonnu/workflows-ecs-ecr-demo
import React from 'react'; import { Link } from 'react-router'; import './_AppLayout.scss'; class AppLayout extends React.Component { render() { return ( <div className='page-container'> <nav> <ul> <li><Link to='/'>Home</Link></li> <li><Link to='/about'>About</Lin...
front/src/components/App/App.js
MichaelKostin/mars-rover
import React, { Component } from 'react'; import { bool, number } from 'prop-types'; import { connect } from 'react-redux'; import TempContainer from '../Temp/TempContainer'; import Tower from '../Tower/Tower'; import Header from '../Header/Header'; import Video from './Video'; import './App.css'; class App extends C...
frontend/src/Artist/Editor/ArtistEditor.js
lidarr/Lidarr
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import NoArtist from 'Artist/NoArtist'; import LoadingIndicator from 'Components/Loading/LoadingIndicator'; import FilterMenu from 'Components/Menu/FilterMenu'; import PageContent from 'Components/Page/PageContent'; import PageContentBody fro...
packages/lore-hook-dialogs-bootstrap/src/blueprints/update/Wizard/formMap.js
lore/lore-forms
import React from 'react'; import Step from './forms/Step'; import Confirmation from './forms/Confirmation'; export default { step: { render: (props, config) => { return ( <Step {...props} {...config} /> ); } }, confirmation: { render: (props, config) =...
techCurriculum/ui/solutions/5.2/src/index.js
jennybkim/engineeringessentials
/** * Copyright 2017 Goldman Sachs. * 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 writ...
node_modules/react-router/es/withRouter.js
bburnett-cpf/react-intro
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; function _objectWithoutProperties(obj, keys) { var target = {...
src/components/theme/components/ExtraPlugins.js
PulseTile/PulseTile-React
import React from 'react'; /** * This component is used to render simple plugins, which don't need in configuration files changes * In Core it returns null * * @return {null|XML} */ const ExtraPlugins = () => { return null; }; export default ExtraPlugins;
src/svg-icons/image/photo-size-select-small.js
rscnt/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImagePhotoSizeSelectSmall = (props) => ( <SvgIcon {...props}> <path d="M23 15h-2v2h2v-2zm0-4h-2v2h2v-2zm0 8h-2v2c1 0 2-1 2-2zM15 3h-2v2h2V3zm8 4h-2v2h2V7zm-2-4v2h2c0-1-1-2-2-2zM3 21h8v-6H1v4c0 1.1.9 2 2 2zM3 7H...
imports/client/ui/includes/MainMenu/LinkItem/index.js
focallocal/fl-maps
import React from 'react' import PropTypes from 'prop-types' import { NavItem, NavLink } from 'reactstrap' import { NavLink as RouterNavLink } from 'react-router-dom' const LinkItem = ({ item, onClick }) => { // Distingiush between link and route-link const isRouteLink = !!item.route return isRouteLink ? ( ...
admin/client/components/ItemsTable/ItemsTableCell.js
pswoodworth/keystone
import React from 'react'; var ItemsTableCell = React.createClass({ displayName: 'ItemsTableCell', propTypes: { className: React.PropTypes.string, }, getDefaultProps () { return { className: '', }; }, render () { const className = `ItemList__col ${this.props.className}`; return ( <td {...this.pro...
app/javascript/mastodon/features/home_timeline/components/setting_text.js
8796n/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; class SettingText extends React.PureComponent { static propTypes = { settings: ImmutablePropTypes.map.isRequired, settingKey: PropTypes.array.isRequired, label: PropTypes.string.isR...
src/components/Paths.js
cannc4/Siren
import React from 'react'; import { inject, observer } from 'mobx-react'; // CSS Imports import '../styles/App.css'; import '../styles/Layout.css'; import '../styles/Home.css'; @inject('pathStore') @observer export default class Paths extends React.Component { handlePathChange = (params, {target: { value }}) => { ...
app/screens/social/profile3.js
andry-baka/dapur-ngebul-app
import React from 'react'; import { View, ScrollView } from 'react-native'; import { RkStyleSheet, RkText } from 'react-native-ui-kitten'; import {Avatar} from '../../components'; import {Gallery} from '../../components'; import {GradientButton} from '../../components'; import {data} from '../../data'; import f...
src/utils/childUtils.js
pancho111203/material-ui
import React from 'react'; import createFragment from 'react-addons-create-fragment'; export function createChildFragment(fragments) { const newFragments = {}; let validChildrenCount = 0; let firstKey; // Only create non-empty key fragments for (const key in fragments) { const currentChild = fragments[k...
src/demos/building-a-geospatial-app/5-interaction/src/app.js
uber-common/vis-academy
/* global window */ import React, { Component } from 'react'; import { StaticMap } from 'react-map-gl'; import { LayerControls, MapStylePicker, HEXAGON_CONTROLS } from './controls'; import { tooltipStyle } from './style'; import DeckGL from 'deck.gl'; import taxiData from '../../../data/taxi'; import { renderLayers } f...
src/svg-icons/action/description.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDescription = (props) => ( <SvgIcon {...props}> <path d="M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z"/> </SvgIcon> ); A...
internal/webpack/withServiceWorker/offlinePageTemplate.js
ueno-llc/starter-kit-universally
/** * This is used by the HtmlWebpackPlugin to generate an html page that we will * use as a fallback for our service worker when the user is offline. It will * embed all the required asset paths needed to bootstrap the application * in an offline session. */ import React from 'react'; import Helmet from 'react-...
src/components/search_bar.js
huynhtastic/ReduxSimpleStarter
import React, { Component } from 'react'; class SearchBar extends Component { // defining state for class based components constructor(props) { // first and only function called automatically whenever a new instance is // created super(props); // properties that we wanted to record to thge state ...
src/svg-icons/hardware/phonelink-off.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwarePhonelinkOff = (props) => ( <SvgIcon {...props}> <path d="M22 6V4H6.82l2 2H22zM1.92 1.65L.65 2.92l1.82 1.82C2.18 5.08 2 5.52 2 6v11H0v3h17.73l2.35 2.35 1.27-1.27L3.89 3.62 1.92 1.65zM4 6.27L14.73 17H4V6...
lib/components/App.js
hanford/filepizza
import Bootstrap from './Bootstrap' import ErrorPage from './ErrorPage' import FrozenHead from 'react-frozenhead' import React from 'react' import SupportStore from '../stores/SupportStore' import { RouteHandler } from 'react-router' import ga from 'react-google-analytics' ga('create', 'UA-62785624-1', 'auto'); ga('se...
js/components/sideBar/index.js
aditya-simplecrm/iosReactAppNoresha
import React, { Component } from 'react'; import { Image, AsyncStorage } from 'react-native'; import { connect } from 'react-redux'; import { Content, Text, ListItem, Icon, Item } from 'native-base'; import { Actions } from 'react-native-router-flux'; import { closeDrawer } from '../../actions/drawer'; import { setIn...
src/components/main/index.js
timludikar/component-library
import React from 'react'; const asideStyles = { }; const Main = ({ children, style = {} }) => ( <main style={{ ...asideStyles, ...style }} > {children} </main> ); Main.propTypes = { children: React.PropTypes.node.isRequired, style: React.PropTypes.object, }; export default Main;
client/src/components/Draftail/blocks/MediaBlock.js
torchbox/wagtail
import PropTypes from 'prop-types'; import React, { Component } from 'react'; import { Icon } from 'draftail'; import Tooltip from '../Tooltip/Tooltip'; import Portal from '../../Portal/Portal'; import { SelectionState, EditorState } from 'draft-js'; // Constraints the maximum size of the tooltip. const OPTIONS_MAX_W...
src/components/Home.js
wescleymatos/iRango
import React, { Component } from 'react'; import NavBar from './NavBar'; class Home extends Component { render() { return ( <div className="row"> <NavBar menu="home" /> <div className="col-lg-12"> <h3>Olá, esse é o iRango!</h3> <p>Aqui você encontra com muita facilidade...
src/containers/DevToolsWindow.js
danieljwest/ExamGenerator
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' export default createDevTools( <LogMonitor /> )
src/svg-icons/image/control-point.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageControlPoint = (props) => ( <SvgIcon {...props}> <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.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-...
packages/material-ui-icons/src/MovieCreation.js
dsslimshaddy/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let MovieCreation = props => <SvgIcon {...props}> <path d="M18 4l2 4h-3l-2-4h-2l2 4h-3l-2-4H8l2 4H7L5 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V4h-4z" /> </SvgIcon>; MovieCreation = pur...
src/components/wishshow/WishdetailtoolbarComponent.js
WishTreeGroup/wishtree_web
'use strict'; import React from 'react'; import {Nav, NavItem} from 'react-bootstrap'; require('styles/wishshow/Wishdetailtoolbar.sass'); class WishdetailtoolbarComponent extends React.Component { constructor(){ super(); //this.handleClickBack = this.props.clickHandle; //this.handleClickBack = this.han...
app/javascript/mastodon/features/standalone/public_timeline/index.js
MitarashiDango/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { expandPublicTimeline, expandCommunityTimeline } from 'mastodon/actions/timelines'; import Masonry from 'react-masonry-infinite'; import { List as Imm...
client/app/containers/NodeSearch/index.js
bryanph/Geist
import _ from 'lodash' import React from 'react' import { connect } from 'react-redux' import { List, ListItem } from 'material-ui/List' import { searchAll } from '../../actions/search' import {HotKeys} from 'react-hotkeys'; import classNames from 'classnames' import './styles.scss' import compose from 'recompose/c...
src/server.js
cjroebuck/react-redux-universal-hot-example
import Express from 'express'; import React from 'react'; import Location from 'react-router/lib/Location'; 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'; im...
app/components/common/NoMatch.js
btg5679/portalReact
import React from 'react'; import {Link} from 'react-router'; export default class NoMatch extends React.Component { render() { return ( <section className="app-content"> <header className="section-header"> <h3 className="title">Not Found</h3> ...
example/posts.js
matteolc/admin-on-rest
import React from 'react'; import { BooleanField, BooleanInput, CheckboxGroupInput, ChipField, Create, Datagrid, DateField, DateInput, DisabledInput, Edit, EditButton, Filter, FormTab, ImageField, ImageInput, List, LongTextInput, NumberField, N...
packages/node_modules/@ciscospark/react-component-list-separator/src/index.js
Altocloud/alto-react-ciscospark
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import styles from './styles.css'; function ListSeparator(props) { const mainStyles = [`separator`, styles.separator]; const textStyles = [`separator-text`, styles.separatorText]; const informativeClass = `inform...
packages/material-ui-icons/src/ImportExport.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from 'material-ui/SvgIcon'; let ImportExport = props => <SvgIcon {...props}> <path d="M9 3L5 6.99h3V14h2V6.99h3L9 3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99h-3z" /> </SvgIcon>; ImportExport = pure(ImportExport); ImportExport.muiName = 'Sv...
src/Music.js
dippnerd/home-control-panel
import React, { Component } from 'react'; class Music extends Component { render() { return ( <div> <p> Music loaded </p> </div> ); } } export default Music;
app/static/src/diagnostic/NewTestForm_modules/NewRecommendationForm.js
vsilent/Vision
import React from 'react'; import FormControl from 'react-bootstrap/lib/FormControl'; import FormGroup from 'react-bootstrap/lib/FormGroup'; import ControlLabel from 'react-bootstrap/lib/ControlLabel'; import Button from 'react-bootstrap/lib/Button'; import Panel from 'react-bootstrap/lib/Panel'; import {findDOMNode} f...
src/svg-icons/image/filter-hdr.js
matthewoates/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageFilterHdr = (props) => ( <SvgIcon {...props}> <path d="M14 6l-3.75 5 2.85 3.8-1.6 1.2C9.81 13.75 7 10 7 10l-6 8h22L14 6z"/> </SvgIcon> ); ImageFilterHdr = pure(ImageFilterHdr); ImageFilterHdr.displayName...
jekyll-strapi-tutorial/api/admin/admin/src/components/SupportUsBanner/index.js
strapi/strapi-examples
/** * * SupportUsBanner * */ import React from 'react'; import { FormattedMessage } from 'react-intl'; import SupportUsTitle from 'components/SupportUsTitle/Loadable'; import SupportUsCta from 'components/SupportUsCta/Loadable'; import styles from './styles.scss'; function SupportUsBanner() { return ( <div...
web/portal/src/components/FBLogin/index.js
trendmicro/serverless-survey-forms
// CSS import styles from './style.css'; import React from 'react'; import PureComponent from 'react-pure-render/component'; import Config from '../../config'; import Button from '../Button'; class FBLogin extends PureComponent { constructor() { super(); this._onClickFBBtn = this._onClickFBBtn....
src/svg-icons/action/dns.js
mit-cml/iot-website-source
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionDns = (props) => ( <SvgIcon {...props}> <path d="M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v...
js/src/ui/QrCode/qrCode.example.js
BSDStudios/parity
// Copyright 2015-2017 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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) any lat...
packages/cf-component-card/src/CardTitle.js
jroyal/cf-ui
import React from 'react'; import PropTypes from 'prop-types'; import { createComponent } from 'cf-style-container'; const styles = ({ theme }) => ({ fontWeight: theme.fontWeight, marginBottom: theme.marginBottom }); const Title = ({ children, className }) => ( <h3 className={className}>{children}</h3> ); Titl...
imports/packages/tasks/index.js
Davidyuk/witcoin
import { Meteor } from 'meteor/meteor'; import React from 'react'; import { Actions } from '../../api/actions'; import Action from '../../ui/components/Action'; import { TransactionParentActionTypes } from '../transactions'; import TaskAction from './ui/TaskAction'; import TaskSuggestionAction from './ui/TaskSuggest...
modules/dreamview/frontend/src/components/common/Image.js
ycool/apollo
import React from 'react'; import PropTypes from 'prop-types'; const Image = (props) => { const { image, style, className, ...otherProps } = props; const finalStyle = { ...(style || {}), backgroundImage: `url(${image})`, backgroundSize: 'cover', }; const finalClassName = className ? `${classN...
docs/exam/src/StaffFooter.js
Hellfire-zmcy/web
import React from 'react'; export default class StaffFooter extends React.Component{ handlerAddClick(evt){ evt.preventDefault(); let item = {}; let addForm = React.findDOMNode(this.refs.addForm); let sex = addForm.querySelector('#staffAddSex'); let id = addForm.querySelector('#staffAddId'); item...
admin/client/App/components/Footer/index.js
webteckie/keystone
/** * The global Footer, displays a link to the website and the current Keystone * version in use */ import React from 'react'; import { Container } from 'elemental'; var Footer = React.createClass({ displayName: 'Footer', propTypes: { appversion: React.PropTypes.string, backUrl: React.PropTypes.string, br...
client/android/app/src/pages/Billboard.js
blusclips/zonaster
import React, { Component } from 'react'; import { AppRegistry,StyleSheet,Text, View,AsyncStorage, TouchableHighlight, Image} from 'react-native'; import { Container, Content, Body, H2, H3, Item, ListItem, Left, Right, Switch, Spinner, Input, Button, Separator, Thumbnail, Grid, Col, Fab, FooterTab, Footer, Badge} from ...
src/svg-icons/device/battery-alert.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceBatteryAlert = (props) => ( <SvgIcon {...props}> <path d="M15.67 4H14V2h-4v2H8.33C7.6 4 7 4.6 7 5.33v15.33C7 21.4 7.6 22 8.33 22h7.33c.74 0 1.34-.6 1.34-1.33V5.33C17 4.6 16.4 4 15.67 4zM13 18h-2v-2h2v2zm0...
src/react/LogMonitorButton.js
omnidan/redux-devtools
import React from 'react'; import brighten from '../utils/brighten'; const styles = { base: { cursor: 'pointer', fontWeight: 'bold', borderRadius: 3, padding: 4, marginLeft: 3, marginRight: 3, marginTop: 5, marginBottom: 5, flexGrow: 1, display: 'inline-block', fontSize: '...
Ethereum-based-Roll4Win/node_modules/react-bootstrap/es/ResponsiveEmbed.js
brett-harvey/Smart-Contracts
import _extends from "@babel/runtime/helpers/esm/extends"; import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; import _inheritsLoose from "@babel/runtime/helpers/esm/inheritsLoose"; import classNames from 'classnames'; import React from 'react'; import { createBootstrapC...
src/scripts/Paginator.js
whoisandie/yoda
'use strict'; import React from 'react'; import {RenderMixin} from './Mixins'; export default React.createClass({ propTypes: { text: React.PropTypes.string, handler: React.PropTypes.func.isRequired }, mixins: [RenderMixin], getDefaultProps() { return { text: 'Load more', handler: thi...
src/scripts/SearchHeader.js
williamthing/yoda
'use strict'; import React from 'react'; export default React.createClass({ propTypes: { query: React.PropTypes.string.isRequired }, render() { var title = 'Search results: ' + this.props.query; return ( <div className="search-results-header"> <h3>{title}</h3> </div> ); } ...
frontend/app/components/pages/login.js
LINKIWI/linkr
import Link from 'react-router/lib/Link'; import LoadingHOC from 'react-loading-hoc'; import Helmet from 'react-helmet'; import React from 'react'; import request from 'browser-request'; import Alert, {ALERT_TYPE_SUCCESS, ALERT_TYPE_ERROR, ALERT_TYPE_WARN} from '../alert'; import AuthenticationHOC from '../hoc/authent...
src/containers/pages/home/extensions/assets/content.js
vFujin/HearthLounge
import React from 'react'; import {Link} from 'react-router-dom'; const ExtensionContent = ({extensionType, url, img}) => ( <Link className="extension__content" key={url} to={`/extensions/${url}/overview`}> <img src={img} alt={`${url}'s art`}/> </Link> ); export default ExtensionContent;
src/templates/index-template.js
colmdoyle/colmdoyle.github.io
// @flow strict import React from 'react'; import { graphql } from 'gatsby'; import Layout from '../components/Layout'; import Sidebar from '../components/Sidebar'; import Feed from '../components/Feed'; import Page from '../components/Page'; import Pagination from '../components/Pagination'; import { useSiteMetadata }...
admin/client/App/components/Navigation/Secondary/index.js
trentmillar/keystone
/** * The secondary navigation links to inidvidual lists of a section */ import React from 'react'; import { connect } from 'react-redux'; import { Container } from '../../../elemental'; import { setActiveList, } from '../../../screens/List/actions/active'; import SecondaryNavItem from './NavItem'; var SecondaryN...
src/connectStore.js
jumpsuit/jumpsuit
import React from 'react' import { Provider } from 'react-redux' // import { Router } from 'react-router' // import CombineState from './combineState' import CreateStore from './createStore' export default function (store, base) { // If passed a state object, make the store automagically if (typeof store === 'obje...
pages/tag.js
poeti8/findrap.xyz
import React from 'react'; import Head from 'next/head'; import axios from 'axios'; import { trimString } from '../utils'; import Artists from '../components/Artists'; const Tag = (props) => { const data = props.artists ? props.artists.data : props.url.query; const tagName = props.tagName ? props.tagName : props....
src/svg-icons/content/undo.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentUndo = (props) => ( <SvgIcon {...props}> <path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/> </Svg...
app/containers/Css2/ball.js
ledminh/css-pages
import styled, {keyframes} from 'styled-components'; import React from 'react'; import ReactDOM from 'react-dom'; const spring_like = (endpoint) => { return keyframes` from { transform: translate(0px, 0px) rotate(0deg); } to { transform: translate(c...
client/src/modules/users/users.view.js
vitalyorlov/spreadsheet-core
import React from 'react'; import dispatcher from './../../infrastructure/dispatcher'; import bind from './../../infrastructure/store-connector'; import store from './users.store'; import counterpart from 'counterpart'; import Translate from 'react-translate-component'; counterpart.registerTranslations('en', { reg...
src/components/__tests__/SettingsToggleTest.js
GriddleGriddle/Griddle
import React from 'react'; import test from 'ava'; import { shallow } from 'enzyme'; import SettingsToggle from '../SettingsToggle'; test('renders', (t) => { const wrapper = shallow(<SettingsToggle />); t.true(wrapper.matchesElement(<button />)); }); test('renders with style', (t) => { const style = { backgro...
demo16/index.js
kohei-takata/webpack-demos-study
import React from 'react'; import { render } from 'react-dom'; import { Router, Route, Link, IndexRoute } from 'react-router'; import createBrowserHistory from 'history/lib/createBrowserHistory' require('./app.css'); var App = React.createClass({ render: function() { return ( <div> ...