path
stringlengths
5
195
repo_name
stringlengths
5
79
content
stringlengths
25
1.01M
admin/client/App/screens/List/components/ItemsTable/ItemsTableRow.js
jacargentina/keystone
import React from 'react'; import classnames from 'classnames'; import ListControl from '../ListControl'; import { Columns } from 'FieldTypes'; import { DropTarget, DragSource } from 'react-dnd'; import { setDragBase, resetItems, reorderItems, setRowAlert, moveItem, } from '../../actions'; const ItemsRow = Rea...
app/javascript/mastodon/features/domain_blocks/index.js
amazedkoumei/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { debou...
src/js/components/Footer/Footer.js
grommet/grommet
import React from 'react'; import { Box } from '../Box'; const Footer = ({ ...rest }) => ( <Box as="footer" align="center" direction="row" flex={false} gap="medium" justify="between" {...rest} /> ); export { Footer };
jenkins-design-language/src/js/components/material-ui/svg-icons/maps/transfer-within-a-station.js
alvarolobato/blueocean-plugin
import React from 'react'; import SvgIcon from '../../SvgIcon'; const 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 2 2zM5.75 8.9L3 23h2.1l1.75-8L9 1...
src/svg-icons/communication/no-sim.js
w01fgang/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationNoSim = (props) => ( <SvgIcon {...props}> <path d="M18.99 5c0-1.1-.89-2-1.99-2h-7L7.66 5.34 19 16.68 18.99 5zM3.65 3.88L2.38 5.15 5 7.77V19c0 1.1.9 2 2 2h10.01c.35 0 .67-.1.96-.26l1.88 1.88 1.27-1....
src/Elements/Select.js
ezypeeze/react-mozer
import React from 'react'; import PropTypes from 'prop-types'; import ElementHOC from "../ElementHOC"; class Select extends React.Component { static propTypes = { name: PropTypes.string.isRequired, value: PropTypes.any, }; render() { let {valid, value, onTouch, children, ...props}...
Libraries/Image/Image.ios.js
gre/react-native
/** * Copyright (c) 2015-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * * @provides...
src/svg-icons/communication/live-help.js
ngbrown/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let CommunicationLiveHelp = (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-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13...
src/Components/NewPost.js
abhishekdhaduvai/readable_react
import React, { Component } from 'react'; import RaisedButton from 'material-ui/RaisedButton'; import Dialog from 'material-ui/Dialog'; import FlatButton from 'material-ui/FlatButton'; import AutoComplete from 'material-ui/AutoComplete'; import { connect } from 'react-redux'; import * as Actions from '../actions'; cl...
components/button/IconButton.js
showings/react-toolbox
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import { themr } from 'react-css-themr'; import { BUTTON } from '../identifiers'; import InjectFontIcon from '../font_icon/FontIcon'; import rippleFactory from '../ripple/Ripple'; const factory = (ripple,...
src/svg-icons/content/report.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentReport = (props) => ( <SvgIcon {...props}> <path d="M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM12 17.3c-.72 0-1.3-.58-1.3-1.3 0-.72.58-1.3 1.3-1.3.72 0 1.3.58 1.3 1.3 0 .72-.58 1.3-1.3...
packages/ringcentral-widgets/components/MessageItem/index.js
u9520107/ringcentral-js-widget
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classnames from 'classnames'; import messageTypes from 'ringcentral-integration/enums/messageTypes'; import messageDirection from 'ringcentral-integration/enums/messageDirection'; import { messageIsTextMessage, messageIsFax } from ...
ui/mobile-web-ui/src/components/Home.js
greggigon/Home-Temperature-Controller
require('normalize.css'); require('styles/App.css'); import R from 'ramda'; import React from 'react'; import Paper from 'material-ui/lib/paper'; import { Card, CardText } from 'material-ui/lib/card'; import FloatingActionButton from 'material-ui/lib/floating-action-button'; import ContentAdd from 'material-ui/lib/svg...
code-slide/CodeSlideNote.js
JakeGinnivan/modern-typescript-is-awesome
import React from 'react' const style = { position: "fixed", bottom: "20px", width: "100%", padding: "20px", background: "black", color: "white", fontFamily: "monospace", textAlign: "left" } class CodeSlideNote extends React.Component { render() { return ( <div st...
src/components/workview.js
karynntran/karynnanimated
import React, { Component } from 'react'; const WorkView = (props) => { return ( <section className="content work-content"> <div className="inner-content"> <ul className="positions-ul"> <li className="positions-li quartz"> <div className="work-logo"></div> <div className="work-details"> ...
docs/src/examples/collections/Form/Shorthand/FormExampleSubcomponentId.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Form } from 'semantic-ui-react' const FormExampleSubcomponentId = () => ( <Form> <Form.Group widths='equal'> <Form.Input fluid id='form-subcomponent-shorthand-input-first-name' label='First name' placeholder='First name' /> <For...
src/components/Autocomplete/index.js
joelvoss/react-gmaps
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import debounce from 'lodash/debounce'; import GoogleLibraryService from 'utilities/GoogleLibraryService'; import SearchBox from './SearchBox'; import Input from './Input'; import Button from './Button'; import SuggestList from './SuggestLi...
packages/reactor-kitchensink/src/examples/Layouts/fit/fit.js
dbuhrman/extjs-reactor
import React, { Component } from 'react'; import { Container, Panel } from '@extjs/ext-react'; import colors from '../../colors'; export default class FitLayoutExample extends Component { render() { return ( <Container layout="vbox" padding={10}> <Panel shadow ui="instructions"...
src/index.js
ijones16/react-hot-boilerplate
import React from 'react'; import App from './App'; React.render(<App />, document.getElementById('root'));
src/pages/index.js
cscouras/cscouras.github.io
import React from 'react' import Link from 'gatsby-link' import ContentContainer from '../components/Content' const IndexPage = () => (<ContentContainer> <h1>Hey! I&apos;m Chris Scouras and this is my portfolio site.</h1> <p> I am teaching myself how to code utilizing online resources, primarily{' '} ...
packages/create-subscription/src/createSubscription.js
dilidili/react
/** * Copyright (c) 2014-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. * * @flow */ import React from 'react'; import invariant from 'shared/invariant'; import warning from 'shared/warning'; type Unsubscribe...
packages/react-scripts/fixtures/kitchensink/src/features/syntax/Promises.js
peopleticker/create-react-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, { Component } from 'react'; import PropTypes from 'prop-types'; function load() { return Promise.resolve([ { id: 1,...
src/Parser/Warlock/Affliction/Modules/Talents/EmpoweredLifeTap.js
hasseboulen/WoWAnalyzer
import React from 'react'; import SPELLS from 'common/SPELLS'; import SpellIcon from 'common/SpellIcon'; import { formatNumber, formatPercentage } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SharedEmpoweredLifeTap from '../../../Shared/Modules/Talents/EmpoweredLife...
src/Tooltip.js
cgvarela/react-bootstrap
import classNames from 'classnames'; import React from 'react'; import CustomPropTypes from './utils/CustomPropTypes'; export default class Tooltip extends React.Component { render() { const { placement, positionLeft, positionTop, arrowOffsetLeft, arrowOffsetTop, className, ...
src/routes/Blog/components/Blog.js
townmi/blog_html
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router'; import './Blog.scss'; class Blog extends Component { constructor(props) { super(props); this.init(); } init () { const id = this.props.params.id; this.props.location.state = "blog";...
src/ui/pages/_detailPageTemp.js
e-Ray/web_platform
import React, { Component } from 'react'; import { DetailPage } from '../components/generic'; import { observer } from 'mobx-react'; import { observable } from 'mobx'; import { ref } from '../../api/Auth/_constants'; import { firebaseAuth } from '../../api/Auth/_constants'; @observer class DetailPageTemp extends Co...
src/components/Dashboard/DashboardEditNote.js
josedigital/koala-app
import React from 'react' import { Link } from 'react-router' import SearchResults from '../SearchResults/SearchResults'; import SavedJobsList from '../SavedJobsList/SavedJobsList'; const DashboardEditNote = ( {props} ) => { return ( <div className="container"> <div className="Grid around"> ...
src/svg-icons/content/move-to-inbox.js
frnk94/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentMoveToInbox = (props) => ( <SvgIcon {...props}> <path d="M19 3H4.99c-1.11 0-1.98.9-1.98 2L3 19c0 1.1.88 2 1.99 2H19c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 12h-4c0 1.66-1.35 3-3 3s-3-1.34-3-3H4.99V5H19v10zm-3...
app/components/Slideshow/index.js
matusmarcin/special-disco
/** * * Slideshow * */ import React from 'react'; import Carousel from 'nuka-carousel'; import bg1 from './slideshow/bg1.jpg'; import bg2 from './slideshow/bg2.jpg'; import bg3 from './slideshow/bg3.jpg'; function Slideshow() { return ( <Carousel autoplay={Boolean(true)}> <img alt="" src={bg2} /> <...
src/components/bootstrap/Column.js
wiki1024/sam-bs
import React from 'react' import classnames from 'classnames' const prefix = 'col' const DeviceSize = { lg:'lg', md:'md', sm:'sm', xs:'xs' } //config : {columns:int, offset:int, pull:int,push:int } //elementProps {lg:config,md:config, sm:config,xs:config } function getColClass(elementProps) { let classes = [] p...
src/svg-icons/hardware/keyboard-arrow-down.js
lawrence-yu/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareKeyboardArrowDown = (props) => ( <SvgIcon {...props}> <path d="M7.41 7.84L12 12.42l4.59-4.58L18 9.25l-6 6-6-6z"/> </SvgIcon> ); HardwareKeyboardArrowDown = pure(HardwareKeyboardArrowDown); HardwareKey...
webpack/scenes/Content/ContentConfig.js
Katello/katello
import React from 'react'; import { urlBuilder } from 'foremanReact/common/urlHelpers'; import { translate as __ } from 'foremanReact/common/I18n'; import ContentInfo from './Details/ContentInfo'; import LastSync from '../ContentViews/Details/Repositories/LastSync'; import ContentRepositories from './Details/ContentRep...
antd-dva/dva-restart/src/routes/TodoList.js
JianmingXia/StudyTest
import React from 'react'; import { connect } from 'dva'; import TodoList from '../components/TodoList'; import AddTodo from '../components/AddTodo'; import Header from '../components/Header'; const TodoListApp = ({ dispatch, todolist }) => { function handleChange(id) { dispatch({ type: 'todoli...
src/svg-icons/content/backspace.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ContentBackspace = (props) => ( <SvgIcon {...props}> <path d="M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12...
app/app.js
xiangxn/btsgo
/** * Created by necklace on 2016/12/17. */ //graphene类库 import {ChainStore} from "bitsharesjs"; import {Apis} from "bitsharesjs-ws"; //react类 import React from 'react'; import {render} from 'react-dom'; import {Router, Route, IndexRoute, Redirect, browserHistory, hashHistory} from "react-router"; //store类 import Se...
app/static/scripts/layout/footer/main.js
joshleeb/TobioPreRelease
import React from 'react'; require('./styles.scss'); export default class Footer extends React.Component { constructor() { super(); } render() { return ( <footer id="footer"> <div className="content"> <p id="version">Tobio <small>PreRelease 0.2.0</small></p> </div> ...
info-finder/src/components/Result.js
Zyst/learning-react
import React from 'react'; class Result extends React.Component { render() { return ( <div> <p className="content-lead" dangerouslySetInnerHTML={{__html: this.props.result.Result}}> </p> <hr /> </div> ); } } Result.propTypes = { result: React.PropTypes.object, }; ex...
scripts/core/editor3/directive.js
thnkloud9/superdesk-client-core
import React from 'react'; import ReactDOM from 'react-dom'; import {Provider} from 'react-redux'; import {Editor3} from './components'; import createStore from './store'; /** * @ngdoc directive * @module superdesk.core.editor3 * @name sdEditor3 * @param {Array} editorFormat the formating settings available for ed...
client/component/redirect-edit/match/agent.js
johngodley/redirection
/** * External dependencies */ import React from 'react'; import { translate as __ } from 'i18n-calypso'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import { ExternalLink } from 'wp-plugin-components'; import TableRow from '../table-row'; class MatchAgent extends React.Component { stati...
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js
akingyin1987/actor-platform
import React from 'react'; import _ from 'lodash'; import VisibilityStore from 'stores/VisibilityStore'; import MessageActionCreators from 'actions/MessageActionCreators'; import MessageItem from 'components/common/MessageItem.react'; let _delayed = []; let flushDelayed = () => { _.forEach(_delayed, (p) => { ...
app/javascript/mastodon/features/keyboard_shortcuts/index.js
MastodonCloud/mastodon
import React from 'react'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../components/column_back_button_slim'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import ImmutablePureComponent from 'react-immutable-pure-co...
app/components/modals/Modals.js
TheCbac/MICA-Desktop
// @flow /* ********************************************************** * File: components/modals/Modals.js * * Brief: Component that determines which modals are present * * Authors: Craig Cheney * * 2017.10.10 CC - Document created * ********************************************************* */ import React, { Component...
pnpm-cached/.pnpm-store/1/registry.npmjs.org/react-bootstrap/0.31.0/es/FormGroup.js
JamieMason/npm-cache-benchmark
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 ...
library/src/pivotal-ui-react/table/flex-table-row.js
sjolicoeur/pivotal-ui
import {mergeProps} from 'pui-react-helpers'; import PropTypes from 'prop-types'; import React from 'react'; import classnames from 'classnames'; export class FlexTableRow extends React.Component { static propTypes = { index: PropTypes.number, rowDatum: PropTypes.object }; render() { let {children, ...
src/icons/SocialRss.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class SocialRss extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M119.9,336.1c-30.8,0-55.9,25.1-55.9,55.8c0,30.8,25.1,55.6,55.9,55.6c30.9,0,55.9-24.9,55.9-55.6 C175.8,361.2,150....
src/components/common/TextEditor/Nodes/LinkNote.js
anztrax/simple-image-server-frontend
import React from 'react'; export default class LinkNote extends React.Component{ constructor(props){ super(props); } render(){ const { data } = this.props.node; const href = data.get('href'); return ( <a {...this.props.attributes} href={href}>{this.props.children}</a> ) } }
docs/app/Examples/modules/Dropdown/Usage/DropdownExampleCloseOnBlur.js
vageeshb/Semantic-UI-React
import React from 'react' import { Dropdown } from 'semantic-ui-react' import { friendOptions } from '../common' const DropdownExampleCloseOnBlur = () => ( <div> <Dropdown placeholder='I close on blur' closeOnBlur selection options={friendOptions} /> {' '} <Dropdown placeholder='I stay open on blur' clos...
src/components/rooms/room-detail.component.js
MichelLosier/cardspace
import React from 'react'; import {Route, Link} from 'react-router-dom'; import UserList from '../user/user-list.component'; import RoomService from '../../services/room.service'; class RoomDetail extends React.Component { constructor(){ super(); this.Room$ = new RoomService(); this.handl...
app/src/components/content/Problems/ProblemDetail/problemsub/Config.js
ouxu/NEUQ-OJ
import React from 'react' import { Badge } from 'antd' const result = [ <Badge status='error' text='答案错误' />, <Badge status='success' text='通过' />, <Badge status='warning' text='CPU时间超限' />, <Badge status='warning' text='运行时间超限' />, <Badge status='warning' text='内存超限' />, <Badge status='error' text='运行时错误'...
docs/app/Examples/collections/Breadcrumb/Content/index.js
ben174/Semantic-UI-React
import React from 'react' import ComponentExample from 'docs/app/Components/ComponentDoc/ComponentExample' import ExampleSection from 'docs/app/Components/ComponentDoc/ExampleSection' const BreadcrumbContentExamples = () => ( <div> <ExampleSection title='Content'> <ComponentExample title='Divider' ...
src/js/components/editor.js
adregan/notes
import React from 'react'; import BodyEditor from './bodyEditor'; import EncryptionViewer from './encryptionViewer'; import { saveNote, closeNote, renameNote, deleteNote } from '../actions/notes'; import CloseButton from './closeButton'; import throttle from 'lodash.throttle'; class Editor extends React.Component { ...
react/gameday2/components/embeds/EmbedIframe.js
jaredhasenklein/the-blue-alliance
/* eslint-disable react/no-danger */ import React from 'react' import { webcastPropType } from '../../utils/webcastUtils' const EmbedIframe = (props) => { const divStyle = { width: '100%', height: '100%', } let iframeMarkup = props.webcast.channel iframeMarkup = iframeMarkup.replace(/&lt;/, '<') ifr...
MadWare.Hathor.FrontEnd/src/js/app.js
zvizdo/MadWare.Hathor
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { Router, Route, IndexRoute, browserHistory, hashHistory } from "react-router"; import { syncHistoryWithStore } from 'react-router-redux' import { createStore, applyMiddleware } from "redux"; import thunk from ...
src/components/FormLogin/index.js
matapang/virtualraceph2
import React from 'react'; import { Form, Icon, Input, Button, Checkbox } from 'antd'; import FormWrapper from '../FormWrapper'; const FormItem = Form.Item; class FormLogin extends React.Component { handleSubmit = (e) => { e.preventDefault(); this.props.form.validateFields((err, values) => { ...
src/routes/householdDetail/HouseholdDetail.js
0xcdc/rfb-client-app
import React from 'react'; import withStyles from 'isomorphic-style-loader/withStyles'; import { HouseholdWithClientsType } from 'commonPropTypes'; import s from './HouseholdDetail.css'; import EditDetailForm from '../../components/EditDetailForm'; class HouseholdDetail extends React.Component { static propTypes = ...
app/javascript/mastodon/components/column.js
haleyashleypraesent/ProjectPrionosuchus
import React from 'react'; import PropTypes from 'prop-types'; import scrollTop from '../scroll'; class Column extends React.PureComponent { static propTypes = { children: PropTypes.node, }; scrollTop () { const scrollable = this.node.querySelector('.scrollable'); if (!scrollable) { return; ...
site/pages/guides/storybook.js
chrisdarroch/skatejs
// @flow import '../../components/layout'; import '../../components/marked'; import { define } from 'skatejs'; import { Component } from '../../utils'; @define export default class extends Component { static is = 'x-pages-guides-storybook'; render() { return this.$` <x-layout title="Using Storybook"> ...
examples/SimpleStack/Messages.js
Traviskn/react-router-native-stack
import React from 'react'; import { Container, Header, Left, Body, Right, Title, Content, Button, Icon, Text, List, ListItem, } from 'native-base'; import { Link } from 'react-router-native'; const messages = ['Hello', 'Lunch', 'Meeting']; export default function Messages({ history }) { retu...
modules/react-material-design/src/components/Tab.js
JunisphereSystemsAG/react-color
'use strict'; import React from 'react'; import ReactCSS from 'reactcss'; class Tab extends ReactCSS.Component { constructor() { super(); this.handleClick = this.handleClick.bind(this); } classes() { return { 'default': { tab: { color: this.props.inactive || this.props.col...
frontend/routes.js
heekzz/PowerHour
'use strict'; import React from 'react' import { Route, IndexRoute } from 'react-router' import Layout from './components/Layout'; import IndexPage from './components/IndexPage'; import NotFoundPage from './components/NotFoundPage'; const routes = ( <Route path="/" component={Layout}> <IndexRoute componen...
src/containers/neatListApp/NeatListApp.js
Endeauvirr/NeatIdeasList
import React from 'react'; import Header from '../../containers/Header/Header'; import Action from '../../components/Action/Action'; import AddOption from '../../components/AddOption/AddOption'; import Options from '../../components/Options/Options'; import OptionModal from '../../components/OptionModal/OptionModal'; ...
app/containers/goals/detail.js
DeividasK/my-future-ai
import React from 'react' import { Link } from 'react-router' import { connect } from 'react-redux' import { firebaseConnect, helpers } from 'react-redux-firebase' import { Container, Row, Col, ButtonGroup, Button } from 'reactstrap' import { injectIntl, defineMessages, FormattedMessage } from 'react-intl' // Componen...
src/explorer/Areas/index.js
neontribe/gbptm
import React from 'react'; import useSWR from 'swr'; import { Link } from 'react-router-dom'; import get from 'lodash/get'; import { loader } from 'graphql.macro'; import { print } from 'graphql/language/printer'; import Table from '@material-ui/core/Table'; import TableBody from '@material-ui/core/TableBody'; import ...
local-cli/templates/HelloNavigation/views/chat/ChatListScreen.js
makadaw/react-native
'use strict'; import React, { Component } from 'react'; import { ActivityIndicator, Image, ListView, Platform, StyleSheet, View, } from 'react-native'; import ListItem from '../../components/ListItem'; import Backend from '../../lib/Backend'; export default class ChatListScreen extends Component { stat...
components/org.wso2.carbon.business.rules.web/src/index.js
Niveathika92/carbon-analytics
/* * Copyright (c) 2018, 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....
src/svg-icons/navigation/arrow-back.js
barakmitz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationArrowBack = (props) => ( <SvgIcon {...props}> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"/> </SvgIcon> ); NavigationArrowBack = pure(NavigationArrowBack); NavigationArrowB...
app/javascript/mastodon/features/ui/util/react_router_helpers.js
Chronister/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import { Switch, Route } from 'react-router-dom'; import ColumnLoading from '../components/column_loading'; import BundleColumnError from '../components/bundle_column_error'; import BundleContainer from '../containers/bundle_container'; // Small wrapper t...
src/client/components/common/exposerouter.js
vacuumlabs/todolist
import React from 'react'; // Higher order component exposing router. // https://medium.com/@dan_abramov/mixins-are-dead-long-live-higher-order-components-94a0d2f9e750 export default function exposeRouter(Component) { class ExposeRouter extends React.Component { render() { return <Component {...this.props...
client/src/js/components/characterDetails/index.js
nicksenger/marvelous
import React, { Component } from 'react'; import { connect } from 'react-redux'; import { bindActionCreators } from 'redux'; import { getCharacterDetails, clearCharacterDetails } from '../../actions/index'; import DescriptionBlock from './descriptionBlock'; import RelatedCharacterPanel from './relatedCharacterPanel'; ...
node_modules/react-bootstrap/es/InputGroupButton.js
hsavit1/gosofi_webpage
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/website/src/components/page/Analytics.js
mucsi96/w3c-webdriver
import React from 'react'; // Global site tag (gtag.js) - Google Analytics const Analytics = ({ trackingId }) => ( <> <script async src={ `https://www.googletagmanager.com/gtag/js?id=${trackingId}`} /> <script dangerouslySetInnerHTML={{ __html: `window.dataLayer = window.dataLayer || []; ...
src/client.js
Coderockr/redux-skeleton
import 'babel-polyfill'; import { trigger } from 'redial'; import React from 'react'; import ReactDOM from 'react-dom'; import Router from 'react-router/lib/Router'; import match from 'react-router/lib/match'; import browserHistory from 'react-router/lib/browserHistory'; import { Provider } from 'react-redux'; import ...
src/containers/App.dev.js
tiberiuc/react-redux-router-firebase-boilerplate
import React from 'react' import {connect} from 'react-redux' import { Provider } from 'react-redux' import { Router, browserHistory } from 'react-router' import RedBox from 'redbox-react' import DevTools from './DevTools' import routes from '../routes' @connect() export default class App extends React.Component { ...
docs/src/examples/elements/Reveal/Types/RevealExampleMoveRight.js
Semantic-Org/Semantic-UI-React
import React from 'react' import { Image, Reveal } from 'semantic-ui-react' const RevealExampleMoveRight = () => ( <Reveal animated='move right'> <Reveal.Content visible> <Image src='/images/wireframe/square-image.png' size='small' /> </Reveal.Content> <Reveal.Content hidden> <Image src='/ima...
app/src/components/AboutSection/AboutSection.js
RyanCCollins/ryancollins.io
import React from 'react'; import { Row, Column, Button } from 'react-foundation'; import { Link } from 'react-router'; import './AboutSection.scss'; import Divider from '../Divider/Divider'; import Me from '../../../images/me.jpg'; import { AboutP1, AboutP2, AboutP3, AboutP4, AboutP5 } from './AboutSec...
node_modules/react-router/es6/Route.js
mbestwick/medication-search
import React from 'react'; import invariant from 'invariant'; import { createRouteFromReactElement } from './RouteUtils'; import { component, components } from './InternalPropTypes'; var _React$PropTypes = React.PropTypes; var string = _React$PropTypes.string; var func = _React$PropTypes.func; /** * A <Route> is use...
src/FormControls/Static.js
laran/react-bootstrap
import React from 'react'; import classNames from 'classnames'; import InputBase from '../InputBase'; import childrenValueValidation from '../utils/childrenValueInputValidation'; class Static extends InputBase { getValue() { const {children, value} = this.props; return children ? children : value; } ren...
src/svg-icons/action/view-agenda.js
mmrtnz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionViewAgenda = (props) => ( <SvgIcon {...props}> <path d="M20 13H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zm0-10H3c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h17c.55 0 1-.45 1-1V4c0-.5...
app/javascript/mastodon/features/reblogs/index.js
palon7/mastodon
import React from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchReblogs } from '../../actions/interactions'; import { ScrollContainer } from ...
generators/subgen/templates/src/public/main.js
linuxb/generator-berries
import React from 'react'; import ReactDom from 'react-dom'; import App from './components/App'; ReactDom.render(<App/>, document.getElementById('container'));
node_modules/react-router/es6/Lifecycle.js
nolanelena/MyProjectSite-
'use strict'; import React from 'react'; import invariant from 'invariant'; var object = React.PropTypes.object; /** * The Lifecycle mixin adds the routerWillLeave lifecycle method to a * component that may be used to cancel a transition or prompt the user * for confirmation. * * On standard transitions, router...
src/decorators/withViewport.js
btravers/ArchersBretagneRomantique
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 size for server-side rendering const RESIZE_EVENT = 'resize'; function ha...
src/server.js
JimiHFord/web-based-card-game-engine
/*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */ import 'babel-core/polyfill'; import path from 'path'; import express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import Router from './routes'; import Html from './components/Html'; import assets from './a...
linksa/Netinfos.js
liuhui219/linksa
import React from 'react'; import { View, StyleSheet, Navigator, TouchableOpacity, TouchableHighlight, Text, BackAndroid, Image, } from 'react-native'; import Token from './Token'; export default class Netinfos extends React.Component { constructor(props) { super(props); this._pressB...
src/scripts/components/menu/MenuItem.component.js
ModuloM/kodokojo-ui
/** * Kodo Kojo - Software factory done right * Copyright © 2016 Kodo Kojo (infos@kodokojo.io) * * This program 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 ...
app/routes.js
daiyingheng/dayinhen
import React from 'react'; import {Route} from 'react-router'; import { IndexRoute } from 'react-router' import App from './components/App'; import Home from './components/Home'; import Admin from './components/Admin'; import Post from './components/Post'; import ArticleList from './components/ArticleList'; import Anim...
ui/src/main/js/pages/Updates.js
crashlytics/aurora
import React from 'react'; import Breadcrumb from 'components/Breadcrumb'; import PanelGroup, { Container, StandardPanelTitle } from 'components/Layout'; import UpdateList from 'components/UpdateList'; import { getInProgressStates, getTerminalStates } from 'utils/Update'; export const MAX_QUERY_SIZE = 100; export c...
app/javascript/mastodon/features/community_timeline/index.js
NS-Kazuki/mastodon
import React from 'react'; import { connect } from 'react-redux'; import { defineMessages, injectIntl, FormattedMessage } from 'react-intl'; import PropTypes from 'prop-types'; import StatusListContainer from '../ui/containers/status_list_container'; import Column from '../../components/column'; import ColumnHeader fro...
src/containers/Page/invoice/invoice.js
EncontrAR/backoffice
import React from 'react'; import { Button, Table } from 'antd'; const columns = [{ title: '#', dataIndex: 'index', key: 'index', width: '5%', },{ title: 'Item Name', dataIndex: 'itemname', key: 'itemname', width: '65%', className: 'itemName', }, { title: 'Costs', dataIndex: 'costs', key: 'cost...
src/containers/Root.prod.js
yyssc/ssc_web-boilerplate
import React, { Component } from 'react'; import { Provider } from 'react-redux'; import { Router, Route, Link, IndexRoute } from 'react-router'; import App from './App'; import NoMatch from '../components/NoMatch'; import Welcome from './Welcome'; // Demo import DemoFormContainer from './DemoFormContainer'; import D...
docs/app/Examples/modules/Checkbox/Variations/CheckboxExampleFitted.js
mohammed88/Semantic-UI-React
import React from 'react' import { Checkbox, Segment } from 'semantic-ui-react' const CheckboxExampleFitted = () => ( <div> <Segment compact> <Checkbox /> </Segment> <Segment compact> <Checkbox slider /> </Segment> <Segment compact> <Checkbox toggle /> </Segment> </div> ) ...
react-flux-mui/js/material-ui/src/svg-icons/image/collections.js
pbogdan/react-flux-mui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ImageCollections = (props) => ( <SvgIcon {...props}> <path d="M22 16V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2zm-11-4l2.03 2.71L16 11l4 5H8l3-4zM2 6v14c0 1.1.9 2 2 2h14v-2H4V6H2z"/> ...
demos/loading/index.js
isogon/styled-mdl-website
import React from 'react' import DemoPage from '../../components/DemoPage' import InlineCode from '../../components/InlineCode' import spinner from './demos/spinner' import singleColorSpinner from './demos/singleColorSpinner' import progress from './demos/progress' import indeterminate from './demos/indeterminate' c...
src/components/Dashboard.js
kosmologist/andromeda-web
import React from 'react' import { AppBar, Toolbar, Typography, IconButton, Grid, Avatar } from '@material-ui/core' import {Timeline, Code, Brightness6Outlined} from '@material-ui/icons' import {strings} from "../res/Strings"; import ShiftListView from "./ShiftListView"; import Today from './Tod...
client/index.js
Theknickerbocker/UB_Grader
/** * Client entry point */ import React from 'react'; import { render } from 'react-dom'; import { AppContainer } from 'react-hot-loader'; import App from './App'; import { configureStore } from './store'; import styles from './main.css'; // Initialize store const store = configureStore(window.__INITIAL_STATE__); c...
packages/icons/src/md/maps/LocalMall.js
suitejs/suitejs
import React from 'react'; import IconBase from '@suitejs/icon-base'; function MdLocalMall(props) { return ( <IconBase viewBox="0 0 48 48" {...props}> <path d="M38 13c2.21 0 4 1.79 4 4v24c0 2.21-1.79 4-4 4H10c-2.21 0-4-1.79-4-4l.02-24c0-2.21 1.77-4 3.98-4h4c0-5.52 4.48-10 10-10s10 4.48 10 10h4zM24 7c-3.31 ...
src/components/SVG/Percent.js
UncleYee/crm-ui
import React from 'react'; export default class Percent extends React.Component { static propTypes = { name: React.PropTypes.string, isSelected: React.PropTypes.bool, }; constructor(props) { super(props); } componentWillMount() { } render() { return ( <svg version="1.1" xmlns="ht...
src/svg-icons/action/account-balance-wallet.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let ActionAccountBalanceWallet = (props) => ( <SvgIcon {...props}> <path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-...
app/javascript/mastodon/features/ui/components/embed_modal.js
danhunsaker/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...
pages/404.js
glassfalcon/glassfalcon.io
import React, { Component } from 'react'; import Icon from 'react-fontawesome'; import { Link } from 'react-router'; import Button from 'components/button'; import DocumentTitle from 'components/document-title'; import css from '../css/404.css'; export default class Missing extends Component { render() { retur...