path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
docs/src/PropTable.js
insionng/react-bootstrap
import merge from 'lodash/object/merge'; import React from 'react'; import Label from '../../src/Label'; import Table from '../../src/Table'; let cleanDocletValue = str => str.trim().replace(/^\{/, '').replace(/\}$/, ''); function getPropsData(componentData, metadata){ let props = componentData.props || {}; i...
blueocean-material-icons/src/js/components/svg-icons/social/people.js
kzantow/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const SocialPeople = (props) => ( <SvgIcon {...props}> <path d="M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2....
src/components/LoadingScreen.js
robertkirsz/magic-cards-manager
import React from 'react' import { Spinner } from 'components' import { AbsoluteCenter } from 'styled' const LoadingScreen = () => ( <AbsoluteCenter background="white"> <Spinner /> </AbsoluteCenter> ) export default LoadingScreen
src/give/Funds/FundDetails.js
NewSpring/Apollos
import React from 'react'; import { Platform, ScrollView } from 'react-native'; import { compose, mapProps } from 'recompose'; import withFinancialAccounts from '@data/withFinancialAccounts'; import styled from '@ui/styled'; import Header from '@ui/Header'; import BackgroundView from '@ui/BackgroundView'; import SideBy...
react-demos/drag_and_drop/src/index.js
konvajs/site
import React, { Component } from 'react'; import { createRoot } from 'react-dom/client'; import { Stage, Layer, Text } from 'react-konva'; class App extends Component { state = { isDragging: false, x: 50, y: 50, }; render() { return ( <Stage width={window.innerWidth} height={window.innerHe...
src/layouts/CoreLayout/CoreLayout.js
colindcampbell/word-weaver
import React from 'react' import PropTypes from 'prop-types' import Header from '../../components/Header' import 'styles/core.scss' export const CoreLayout = ({ children }) => ( <div className='container text-center'> <Header /> <div className='core-layout__viewport'> {children} </div> </div> ) ...
zhihu/src/js/zhihuReact2/index.js
fengnovo/webpack-react
import React from 'react' import { render } from 'react-dom' import { BrowserRouter as Router, Route } from 'react-router-dom' import App from './App' import Detail from './Detail' import Comment from './Comment' var rootElement = document.getElementById('app') render( <Router> <div> <Rout...
fields/types/date/DateColumn.js
stunjiturner/keystone
import React from 'react'; import moment from 'moment'; import ItemsTableCell from '../../../admin/client/components/ItemsTableCell'; import ItemsTableValue from '../../../admin/client/components/ItemsTableValue'; var DateColumn = React.createClass({ displayName: 'DateColumn', propTypes: { col: React.PropTypes.obj...
packages/material-ui/src/Tabs/TabScrollButton.js
cherniavskii/material-ui
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft'; import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight'; import withStyles from '../styles/withStyles'; import ButtonBase from '....
examples/async/containers/Root.js
AVert/redux
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import configureStore from '../store/configureStore'; import AsyncApp from './AsyncApp'; const store = configureStore(); export default class Root extends Component { render() { return ( <Provider store={store}> {() ...
src/components/form/controls/combobox/FormsCombobox.js
TechyFatih/Nuzlog
import React from 'react'; import icons from 'img/icons'; import defaultIcon from 'img/defaultIcon.png'; import pokedex from 'data/pokedex'; import normalize from 'utilities/normalize'; import Combobox from './Combobox'; const getForms = pokemon => { let forms = ['Normal']; if (pokemon) { const entry = pok...
node_modules/react-bootstrap/es/SplitButton.js
lucketta/got-quote-generator
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties'; import _classCallCheck from 'babel-runtime/helpers/classCallCheck'; import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn'; import _inherits from 'babel-runtime/helpers/inherits'; import _extends from...
src/Portal.js
sthawali/react-overlays
import React from 'react'; import mountable from 'react-prop-types/lib/mountable'; import ownerDocument from './utils/ownerDocument'; import getContainer from './utils/getContainer'; /** * The `<Portal/>` component renders its children into a new "subtree" outside of current component hierarchy. * You can think of i...
src/containers/App/index.js
raptiq/fire-emblem-optimizer
import React, { Component } from 'react'; /* global styles for app */ import './styles/app.scss'; /* application components */ import { Header } from 'components/Header'; import { Footer } from 'components/Footer'; export class App extends Component { static propTypes = { children: React.PropTypes.any, }; ...
ui/src/components/GatewayForm.js
jcampanell-cablelabs/lora-app-server
import React, { Component } from 'react'; import { Link } from 'react-router'; import { Map, Marker, TileLayer } from 'react-leaflet'; import Select from "react-select"; import SessionStore from "../stores/SessionStore"; import LocationStore from "../stores/LocationStore"; import GatewayStore from "../stores/GatewayS...
frontend/src/admin/branchManagement/memberView/MemberListTable.js
rabblerouser/core
import React from 'react'; import moment from 'moment'; import { connect } from 'react-redux'; import { EditButton, DeleteButton } from '../../common'; import { SortedTable } from '../../common/tables'; import { editMember, memberRemoveRequested } from './actions'; const columnsWithAddress = [ { type: 'name', field...
13. ReactJS Fundamentals - Feb 2019/03. Events and Forms/Fog-App/src/Games/GameGridList.js
zrusev/SoftwareUniversity2016
import React from 'react'; import PropTypes from 'prop-types'; import { withStyles } from '@material-ui/core/styles'; import GridList from '@material-ui/core/GridList'; import GridListTile from '@material-ui/core/GridListTile'; import GridListTileBar from '@material-ui/core/GridListTileBar'; import IconButton from '@ma...
app/javascript/mastodon/components/button.js
corzntin/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; export default class Button extends React.PureComponent { static propTypes = { text: PropTypes.node, onClick: PropTypes.func, disabled: PropTypes.bool, block: PropTypes.bool, secondary: PropTypes....
js/src/dapps/dappreg/ModalUpdate/modalUpdate.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...
modules/RouteContext.js
nottombrown/react-router
import React from 'react' const { object } = React.PropTypes /** * The RouteContext mixin provides a convenient way for route * components to set the route in context. This is needed for * routes that render elements that want to use the Lifecycle * mixin to prevent transitions. */ const RouteContext = { prop...
dashboard/client/src/js/components/modules/ExperimentDetails.js
jigarjain/sieve
import React from 'react'; import Helpers from '../../utils/helpers'; export default function (props) { const items = [ { name: 'Experiment Id', value: props.experiment.id }, { name: 'Version', value: props.experiment.version }, ...
src/svg-icons/image/looks.js
pradel/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageLooks = (props) => ( <SvgIcon {...props}> <path d="M12 10c-3.86 0-7 3.14-7 7h2c0-2.76 2.24-5 5-5s5 2.24 5 5h2c0-3.86-3.14-7-7-7zm0-4C5.93 6 1 10.93 1 17h2c0-4.96 4.04-9 9-9s9 4.04 9 9h2c0-6.07-4.93-11-11-1...
views/pages/questsAll/questsAll.js
MozalovPavel/team5
import React from 'react'; import ReactDOM from 'react-dom'; import Search from '../../blocks/Search/search'; ReactDOM.render( <div> <h2 className="page__title">Все квесты</h2> <Search /> </div>, document.getElementById('root') );
src/components/Profile.js
vkarpov15/shidoshi
'use strict'; import ArticleList from './ArticleList'; import React from 'react'; import { Link } from 'react-router'; import agent from '../agent'; import { connect } from 'react-redux'; const EditProfileSettings = props => { if (props.isUser) { return ( <Link to="settings" className="btn...
src/layouts/index.js
sarahatwork/gatsby-poc
import React from 'react'; import PropTypes from 'prop-types'; import Link from 'gatsby-link'; import Helmet from 'react-helmet'; import './reset.css'; const TemplateWrapper = ({children}) => ( <div> <Helmet title="Gatsby POC" /> {children()} </div> ); TemplateWrapper.propTypes = { children: PropTypes....
client/node_modules/uu5g03/doc/main/client/src/data/source/uu5-forms-v3-text-button.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, Tools} from './../common/common.js'; import InputWrapper from './internal/input-wrapper.js'; import TextInput from './internal/text-input.js'; import TextInputMixin from './mixins/text-input-mixin.js' import ItemList from './internal/item-list.js'; impo...
src/pages/404.js
pixelstew/pixelstew-gatsby
import React from 'react' const NotFoundPage = () => ( <div> <h1>NOT FOUND</h1> <p>You just hit a route that doesn&#39;t exist... the sadness.</p> </div> ) export default NotFoundPage
docs/server.js
bbc/react-bootstrap
/* eslint no-console: 0 */ import 'colors'; import React from 'react'; import express from 'express'; import path from 'path'; import Router from 'react-router'; import routes from './src/Routes'; import httpProxy from 'http-proxy'; import metadata from './generate-metadata'; import ip from 'ip'; const development =...
react/features/base/dialog/components/DialogContent.js
gpolitis/jitsi-meet
// @flow import React, { Component } from 'react'; import { Container, Text } from '../../react'; import { type StyleType } from '../../styles'; import styles from './styles'; type Props = { /** * Children of the component. */ children: string | React$Node, style: ?StyleType }; /** * Gener...
DateField/index.js
derniercri/react-components
import React from 'react' import { View, DatePickerIOS, Platform, } from 'react-native' import moment from 'moment' import 'moment/locale/fr' import DatePickerAndroid from './DatePickerAndroid' moment.locale('fr') const formatDateValue = rawDate => { const dateValue = typeof rawDate === 'number' ? parseF...
src/addons/dragAndDrop/DraggableEventWrapper.js
martynasj/react-big-calendar
import PropTypes from 'prop-types'; import React from 'react' import { DragSource } from 'react-dnd'; import cn from 'classnames'; import BigCalendar from '../../index'; /* drag sources */ let eventSource = { beginDrag(props) { return props.event; } } function collectSource(connect, monitor) { return { ...
src/index.js
peterjam28/ReduxSimpleStarter
import React from 'react' import ReactDOM from 'react-dom' import App from './components/app' ReactDOM.render(<App />, document.querySelector('.container'))
actor-apps/app-web/src/app/components/sidebar/ContactsSection.react.js
zomeelee/actor-platform
import _ from 'lodash'; import React from 'react'; import { Styles, RaisedButton } from 'material-ui'; import ActorTheme from 'constants/ActorTheme'; import ContactStore from 'stores/ContactStore'; import ContactActionCreators from 'actions/ContactActionCreators'; import AddContactStore from 'stores/AddContactStore'...
docs/src/NotFoundPage.js
nickuraltsev/react-bootstrap
import React from 'react'; import NavMain from './NavMain'; import PageHeader from './PageHeader'; import PageFooter from './PageFooter'; const NotFoundPage = React.createClass({ render() { return ( <div> <NavMain activePage="" /> <PageHeader title="404" subT...
src/svg-icons/alert/add-alert.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let AlertAddAlert = (props) => ( <SvgIcon {...props}> <path d="M10.01 21.01c0 1.1.89 1.99 1.99 1.99s1.99-.89 1.99-1.99h-3.98zm8.87-4.19V11c0-3.25-2.25-5.97-5.29-6.69v-.72C13.59 2.71 12.88 2 12 2s-1.59.71-1.59 1.59v...
src/svg-icons/device/signal-cellular-0-bar.js
mtsandeep/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellular0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M2 22h20V2z"/> </SvgIcon> ); DeviceSignalCellular0Bar = pure(DeviceSignalCellular0Bar); DeviceSignalCellular0Bar.displayN...
src/js/components/Posts.js
slavapavlutin/pavlutin-node
import { chunk, reduce } from 'lodash'; import React from 'react'; import PostPreview from './PostPreview'; function Posts({ posts, tag }) { if (posts.length === 0) { return <p>No posts found.</p>; } return ( <section className="posts"> <ul className="nav-list"> {mapPostsToRows(posts, tag)}...
assets/javascripts/kitten/karl/pages/news-list/index.js
KissKissBankBank/kitten
import React from 'react' import NewsCard from './news-card' import styled, { css } from 'styled-components' import { ArrowIcon, ScreenConfig, HorizontalStroke, Title, Paragraph, Text, Container, Button, InstrumentTagIcon, pxToRem, COLORS, } from 'kitten' const Head = styled.div` background-col...
src/components/icons/SmsIcon.js
austinknight/ui-components
import React from 'react'; const SmsIcon = props => ( <svg {...props.size || { width: "24px", height: "24px" }} {...props} viewBox="0 0 24 24" > {props.title && <title>{props.title}</title>} <defs> <path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-...
lib/component.js
AlmirKadric/hyperterm
import React from 'react'; import {StyleSheet, css} from 'aphrodite-simple'; import {shouldComponentUpdate} from 'react-addons-pure-render-mixin'; export default class Component extends React.Component { constructor() { super(); this.styles_ = this.createStyleSheet(); this.cssHelper = this.cssHelper.bin...
docs/src/components/templates/dashboard/Menu.js
HsuTing/cat-components
'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import radium, {StyleRoot} from 'radium'; import {Route} from 'react-router-dom'; import Img from 'cat-components/lib/img'; import Link from 'cat-components/lib/link'; import * as style from './style/menu'; import pages from './../temp/dashb...
node_modules/react-bootstrap/es/CarouselItem.js
NathanBWaters/jb_club
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 ...
packages/material-ui-icons/src/LocationOn.js
cherniavskii/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <g><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" /></g> , 'LocationOn');
app/components/HomePageComponents/index.js
rapicastillo/beautifulrising-client
/** * * HomePageComponents * */ import React from 'react'; import styled from 'styled-components'; import { CommonLeftHeader } from 'components/CommonComponents'; import SmallSectionHeader from 'components/SmallSectionHeader'; function HomePageComponents() { return ( <div> </div> ); } HomePageComponents....
website/src/pages/index.js
scalapb/ScalaPB
import React from 'react'; import clsx from 'clsx'; import Layout from '@theme/Layout'; import Link from '@docusaurus/Link'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import useBaseUrl from '@docusaurus/useBaseUrl'; import styles from './styles.module.css'; const features = [ { title: ...
packages/material-ui-icons/tpl/SvgIcon.js
AndriusBil/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '{{{ muiRequireStmt }}}'; let {{className}} = props => <SvgIcon {...props}> {{{paths}}} </SvgIcon>; {{className}} = pure({{className}}); {{className}}.muiName = 'SvgIcon'; export default {{className}};
docs/app/Examples/elements/Loader/Variations/LoaderExampleInline.js
mohammed88/Semantic-UI-React
import React from 'react' import { Loader } from 'semantic-ui-react' const LoaderExampleInline = () => ( <Loader active inline /> ) export default LoaderExampleInline
src/components/posts_show.js
richgurney/ReduxBlogBoilerPlate
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { fetchPost, deletePost } from '../actions'; import MarkdownRenderer from 'react-markdown-renderer'; import Parser from 'html-react-parser'; import { Link } from 'react-router-dom'; import DateFormat from 'dateformat'; class PostsS...
src/index.js
DarklyLabs/LaserWeb4
import React from 'react' import { render } from 'react-dom' import { compose, applyMiddleware, createStore } from 'redux'; import { Provider } from 'react-redux'; import logger from 'redux-logger'; import persistState, {mergePersistedState} from 'redux-localstorage' import adapter from 'redux-localstorage/lib/adapter...
src/routes.js
idealgardens/codeword
import React from 'react' // eslint-disable-line import { Route, IndexRoute, Router, browserHistory } from 'react-router' import { App, Home, Account, Login, Signup, NotFound, Locations, Location } from './containers' export default (store) => ( <Router history={browserHistory} store...
src/Mememe.js
amysimmons/mememe
import Instruction from './Instruction'; import Container from './Container'; import Share from './Share'; import React from 'react'; import request from 'superagent'; var Mememe = React.createClass({ getInitialState (){ var memesGenerated = false; return{ memesGenerated: memesGenerated }; }, ...
src/app/components/auth/groups/groupItem.js
rokbar/vivdchat
import React from 'react'; import { Link } from 'react-router'; import { TableRow, TableRowColumn } from 'material-ui/Table'; import IconButton from 'material-ui/IconButton'; import AcceptIcon from 'material-ui/svg-icons/action/check-circle'; import CancelIcon from 'material-ui/svg-icons/navigation/cancel'; import ...
src/common/components/Landing.js
ThinkingInReact/ThinkingInReact
import React, { Component } from 'react'; class Landing extends Component { render() { return ( <div className="Landing"> You have reached the top secret landing page! </div> ); } } export default Landing;
src/Main/SelectorBase.js
enragednuke/WoWAnalyzer
import React from 'react'; import ReactTooltip from 'react-tooltip'; class SelectorBase extends React.PureComponent { static propTypes = { }; constructor(props) { super(props); this.state = { show: false, }; this.handleClick = this.handleClick.bind(this); this.handleDocumentClick = thi...
src/js/client/app.js
juancjara/bettson-notifier-chrome-extension
import React from 'react'; import Main from './Main.jsx'; import db from '../background/db'; React.render(<Main />, document.getElementById('app'));
src/components/DesignerProjects.js
computer-lab/salon94design.com
import React from 'react' import PropTypes from 'prop-types' import Link from 'gatsby-link' import styled from 'emotion/react' import cx from 'classnames' import { sansfont, baseUl, childLink, Header2, Header3, SimpleLinkList, SimpleLinkListItem, SimpleLinkListSection, } from '../layouts/emotion-base' i...
SQL/client/src/components/dumb/FormBlock/index.js
thebillkidy/MERGE-Stack
import React from 'react'; import Input from '../Input'; import Button from '../Button'; import Radio from '../Radio'; import Label from '../Label'; // import './FormBlock.css'; export default class FormBlock extends React.Component { static propTypes = { isHideLabel: React.PropTypes.bool } getElement() { ...
js/components/addItem/index.js
bsusta/NativeBase-KitchenSink
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { actions } from 'react-native-navigation-redux-helpers'; import { Input, Picker, Item, Footer, FooterTab, Container, Header, Title, Content, Button, Icon, Text, Left, Right, Body, List, ListItem, View } from 'native-base'; import ...
common/components/ide/panels/TestAuthoringPanel.js
ebertmi/webbox
import React from 'react'; import Editor from '../../Editor'; import optionManager from '../../../models/options'; import { Button } from '../../bootstrap'; export default class TestAuthoringPanel extends React.Component { constructor(props) { super(props); this.onChangeOption = this.onChangeOption.bind(thi...
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let DeviceSignalCellularConnectedNoInternet0Bar = (props) => ( <SvgIcon {...props}> <path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/> </SvgIcon> ); DeviceSignalCellularC...
dapp/src/shared/dao/token/components/main.js
airalab/DAO-IPCI
import React from 'react' import { Link } from 'react-router' import { translate } from 'react-i18next' import { Layout } from '../../main/components' import Form from '../containers/formFunc' const Main = (props) => { const { address, name, totalSupply, balance, t } = props const menu = (<div className="btn-group...
app/javascript/mastodon/features/ui/components/embed_modal.js
cobodo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-component'; import { defineMessages, FormattedMessage, injectIntl } from 'react-intl'; import api from 'mastodon/api'; import IconButton from 'mastodon/components/icon_button'; const messages = defin...
client/views/omnichannel/appearance/AppearanceForm.stories.js
VoiSmart/Rocket.Chat
import React from 'react'; import AppearanceForm from './AppearanceForm'; export default { title: 'omnichannel/AppearanceForm', component: AppearanceForm, }; export const Default = () => <AppearanceForm />;
src/components/Header/Header.js
neilhighley/maybeconsulting
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import React, { Component } from 'react'; import styles from './Header.css'; import withStyles from '../../decorators/withStyles'; import Link from '../Link'; import Navigation from '../Navigation'; @withStyles(styles) class Header extends Compo...
client/components/Nav/MobileDrawer.js
ncrmro/ango
import React from 'react' import Navigation from 'react-mdc-web/lib/Drawer/Navigation' import Drawer from 'react-mdc-web/lib/Drawer/Drawer' import DrawerHeader from 'react-mdc-web/lib/Drawer/DrawerHeader' import DrawerHeaderContent from 'react-mdc-web/lib/Drawer/DrawerHeaderContent' import DrawerContent from 'react-mdc...
src/HelpDialog.js
BenjaminCosman/alchemistsSolver
import React from 'react' import Modal from 'antd/lib/modal' function showHelpDialog() { Modal.info({ title: 'Usage', content: <> <h3>Overview</h3> <br/> This app takes in things you learn during the game (primarily experimental results), and helps you figure out what to publish, what...
src/main.js
slaweet/lisk-nano
import React from 'react'; import ReactDOM from 'react-dom'; import { HashRouter as Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import { I18nextProvider } from 'react-i18next'; import App from './components/app'; // import history from './history'; import store from './store'; import i18n ...
pages/blog/test-article-two.js
al6mina/jsCom
/** * React Static Boilerplate * https://github.com/koistya/react-static-boilerplate * Copyright (c) Konstantin Tarkus (@koistya) | MIT license */ import React, { Component } from 'react'; export default class extends Component { render() { return ( <div> <h1>Test Article 2</h1> <p>Co...
src/components/Home/PortfolioPreview.js
franciskim722/crypy
import React from 'react'; import PropTypes from 'prop-types'; import { VictoryPie } from 'victory'; export default class PortfolioPreview extends React.Component { constructor(props, context) { super(props, context); this.state = { }; } render(){ const {balanceData} = this.props; return...
src/routes/request/index.js
102010cncger/antd-admin
import React from 'react' import Mock from 'mockjs' import { request, config } from 'utils' import { Row, Col, Card, Select, Input, Button, } from 'antd' import styles from './index.less' const { api } = config const { dashboard, users, userLogin, user, v1test, v2test } = api const requestOptions = [ { ...
src/components/Profile/Profile.js
RegOpz/RegOpzWebApp
import React, { Component } from 'react'; import ProfileLeftPane from './ProfileLeft'; import ProfileRightPane from './ProfileRight'; import { bindActionCreators } from 'redux'; import { connect } from 'react-redux'; import { actionFetchUsers, actionUpdateUser } from './../../actions/UsersAction'; class Profile exten...
app/javascript/mastodon/features/ui/components/zoomable_image.js
gol-cha/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import IconButton from 'mastodon/components/icon_button'; import { defineMessages, injectIntl } from 'react-intl'; const messages = defineMessages({ compress: { id: 'lightbox.compress', defaultMessage: 'Compress image view box' }, expand: { id: 'lightb...
actor-apps/app-web/src/app/components/DialogSection.react.js
tsdl2013/actor-platform
import _ from 'lodash'; import React from 'react'; import { PeerTypes } from 'constants/ActorAppConstants'; import MessagesSection from 'components/dialog/MessagesSection.react'; import TypingSection from 'components/dialog/TypingSection.react'; import ComposeSection from 'components/dialog/ComposeSection.react'; i...
webapp/app/components/Notifications/Form/index.js
EIP-SAM/SAM-Solution-Node-js
// // Component notifications form // import React from 'react'; import Title from 'containers/Notifications/Form/Title'; import Description from 'containers/Notifications/Form/Description'; import Persistence from 'containers/Notifications/Form/Persistence'; import Users from 'containers/Notifications/Form/Users'; im...
docs/app/Examples/elements/Reveal/index.js
ben174/Semantic-UI-React
import React from 'react' import Types from './Types' import Content from './Content' import States from './States' import Variations from './Variations' const RevealExamples = () => ( <div> <Types /> <Content /> <States /> <Variations /> </div> ) export default RevealExamples
src/Loadable.js
jonjomckay/stividor
import React, { Component } from 'react'; import Spinner from 'react-spinkit'; export default class Loadable extends Component { render() { let content; if (this.props.isLoading) { content = ( <div style={{ width: '100%', height: '100%', position: 'absolute', background...
src/components/TableAgreement.js
aurigadl/EnvReactAsk
import React from 'react' import {makeRequest as mReq} from '../utils/mrequest'; import {Table, Card, Col, Row, Button, Icon} from 'antd'; const columns = [{ title: 'No del contrato', dataIndex: 'no_agreement', key: 'no_agreement', render: text => <Button type="primary" shape="circle" icon="download"/>, }, { ...
src/components/Dashboard/UsageChart.js
kennylbj/kiwi-blog
import React from 'react' import color from '../../constants/color.js' import { AreaChart, Area, XAxis, YAxis, CartesianGrid, Legend, Tooltip, ResponsiveContainer } from 'recharts' const UsageChart = ({ data }) => { return ( <div > <div style={{marginLeft: '32px', marginBottom: '32px', fontSize: '16px'}}>C...
js/app.js
cansin/jspm-react-es6-hello-world
import React from 'react'; import ReactDOM from 'react-dom'; ReactDOM.render( <b>world!</b>, document.getElementById('world') );
packages/ndla-icons/src/editor/FocalPoint.js
netliferesearch/frontend-packages
/** * Copyright (c) 2017-present, NDLA. * * This source code is licensed under the GPLv3 license found in the * LICENSE file in the root directory of this source tree. * */ // N.B! AUTOGENERATED FILE. DO NOT EDIT import React from 'react'; import Icon from '../Icon'; const FocalPoint = props => ( <Icon vi...
src/svg-icons/places/child-care.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let PlacesChildCare = (props) => ( <SvgIcon {...props}> <circle cx="14.5" cy="10.5" r="1.25"/><circle cx="9.5" cy="10.5" r="1.25"/><path d="M22.94 12.66c.04-.21.06-.43.06-.66s-.02-.45-.06-.66c-.25-1.51-1.36-2.74-2....
src/svg-icons/action/settings-remote.js
rhaedes/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionSettingsRemote = (props) => ( <SvgIcon {...props}> <path d="M15 9H9c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h6c.55 0 1-.45 1-1V10c0-.55-.45-1-1-1zm-3 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM7.05 6.05l1.41...
packages/showcase/axes/static-crosshair.js
uber-common/react-vis
// Copyright (c) 2016 - 2017 Uber Technologies, Inc. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify...
src/components/Headline/Headline.js
resendefreitas/avidade
import React from 'react'; import './Headline.less'; class Headline extends React.Component { render() { return ( <div className="Headline container"> <div> <h1 className="Headline__text text-center"> A Vida de Quem? </h1> <h4 className="Headline__text text...
src/components/ControlPanel/SelectorPanel.js
bocasfx/Q
import React from 'react'; import Panel from '../UI/Tabs/Panel'; import { connect } from 'react-redux'; import ListItem from './ListItem'; import { bindActionCreators } from 'redux'; import { deleteStream, selectStream, setStreamDisabledStatus, deselectStreams } from '../../actions/Streams'; import { deleteNode, select...
src/client/assets/javascripts/app/index.js
yougothack/hyperbowl
import React from 'react'; import { render } from 'react-dom'; import { browserHistory } from 'react-router'; import { syncHistoryWithStore } from 'react-router-redux'; import { AppContainer } from 'react-hot-loader'; import Redbox from 'redbox-react'; import Root from './Root'; import configureStore from './store/con...
src/Glyphicon.js
pieter-lazzaro/react-bootstrap
import React from 'react'; import classNames from 'classnames'; const Glyphicon = React.createClass({ propTypes: { /** * bootstrap className * @private */ bsClass: React.PropTypes.string, /** * An icon name. See e.g. http://getbootstrap.com/components/#glyphicons */ glyph: Re...
src/components/commons/Spinner.js
leapfrogtechnology/chill-dashboard
import React from 'react'; const Spinner = () => ( <div className="loader">Loading...</div> ); export default Spinner;
src/modules/App/components/Footer.js
prjctrft/mantenuto
import React from 'react'; const Footer = () => { const styles = require('./Footer.scss'); return ( <footer className={styles.footer}> <span>&copy;2017 by Project Refit</span> <button><a href="https://www.projectrefit.us/">Home site</a></button> <button><a href="/sponsors">Our sponsors</a></button> <...
packages/react-scripts/fixtures/kitchensink/src/features/webpack/CssInclusion.js
iamdoron/create-react-app
/** * 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. */ import Rea...
src/interface/report/handleApiError.js
ronaldpereira/WoWAnalyzer
import React from 'react'; import { Trans, t } from '@lingui/macro'; import { ApiDownError, CorruptResponseError, JsonParseError, LogNotFoundError } from 'common/fetchWclApi'; import { i18n } from 'interface/RootLocalizationProvider'; import FullscreenError from 'interface/FullscreenError'; import ApiDownBackground fr...
src/components/form/agreement.js
woshisbb43/coinMessageWechat
import React from 'react'; import classNames from '../../utils/classnames'; /** * Agreement style checkbox * */ const Agreement = (props) => { const { className, children, id, ...others } = props; const cls = classNames({ 'weui-agree': true, [className]: className }); return ( ...
docs/src/app/components/pages/components/Paper/ExampleRounded.js
matthewoates/material-ui
import React from 'react'; import Paper from 'material-ui/Paper'; const style = { height: 100, width: 100, margin: 20, textAlign: 'center', display: 'inline-block', }; const PaperExampleRounded = () => ( <div> <Paper style={style} zDepth={1} rounded={false} /> <Paper style={style} zDepth={2} round...
src/components/Panel.js
ericyd/gdrive-copy
/** * Information message container */ 'use strict'; import React from 'react'; import PropTypes from 'prop-types'; import Alert from './Alert'; export default function Panel(props) { return ( <Alert label={props.label} className="alert--neutral"> {props.children} </Alert> ); } Panel.propTypes = ...
frontend/src/components/Post/PostList.js
romerorocha/readable
import React from 'react'; import PostItem from './PostItem'; import { Item, Container } from 'semantic-ui-react'; import OrderByButtons from './OrderByButtons'; const PostList = ({ posts, voteAction }) => { return posts.length > 0 ? ( <Container fluid> <OrderByButtons /> <Item.Group divided> ...
src/Pagination.js
mengmenglv/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import BootstrapMixin from './BootstrapMixin'; import PaginationButton from './PaginationButton'; import CustomPropTypes from './utils/CustomPropTypes'; import SafeAnchor from './SafeAnchor'; const Pagination = React.createClass({ mixins: [BootstrapMixi...
src/client.js
bofa/react-education
import './client.less'; import React from 'react'; import ReactDOM from 'react-dom'; import { Router, Route, IndexRoute } from 'react-router'; import store from './store'; import { Provider } from 'react-redux'; import TodoApp from './components/smart/TodoAppContainer'; import IndexPage from './components/smart/Inde...
app/demos/rendering.js
asantebuil/room-reservation
import React from 'react'; import BigCalendar from 'react-big-calendar'; import events from '../events'; function Event({ event }) { return ( <span> <strong> {event.title} </strong> { event.desc && (': ' + event.desc)} </span> ) } function EventAgenda({ event }) { return <span> ...
app/app.js
bartoszkrawczyk2/react-redux-canvas
import 'babel-polyfill'; import React from 'react'; import { render } from 'react-dom'; import Circles from './containers/circles'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducer from './reducers/circles'; render( <Provider store={createStore(reducer, window.devToolsExt...
src/index.js
csepulv/electron-with-create-react-app
import React from 'react'; import ReactDOM from 'react-dom'; import App from './App'; import './index.css'; ReactDOM.render( <App />, document.getElementById('root') );