path
stringlengths
5
296
repo_name
stringlengths
5
85
content
stringlengths
25
1.05M
node_modules/react-bootstrap/es/MediaLeft.js
Chen-Hailin/iTCM.github.io
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 ...
app/javascript/mastodon/features/pinned_statuses/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 { fetchPinnedStatuses } from '../../actions/pin_statuses'; import Column from '../ui/components/column'; import ColumnBackButtonSlim from '../../compon...
src/js/components/ContentBlocks/BlockColorSwatch/BlockColorSwatchWireframe.js
grommet/grommet-cms-boilerplate
/* @flow */ import React from 'react'; import Box from 'grommet/components/Box'; import BrushIcon from 'grommet/components/icons/base/Brush'; export default function BlockColorSwatchWireframe() { return ( <Box pad={{ between: 'small' }}> <Box style={{ height: 60 }} pad="small" color...
src/presentations/reactDay/reactRedux/components/logo/index.js
react-skg/meetup
import React, { Component } from 'react'; import { Image } from 'spectacle'; import logo from './logo.svg'; class ReduxLogo extends Component { render() { const { size } = this.props; return ( <Image src={logo} alt="Redux" width="20%" style={{ maxHeight: size ...
src/index.js
ckwong93/reactivelist
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; import { Provider } from 'react-redux'; import { createStore } from 'redux'; import reducer from './reducers'; import './index.css'; const store = createStore(reducer); ReactDOM.render( <Provider store={store}> <App...
src/svg-icons/social/people-outline.js
pomerantsev/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let SocialPeopleOutline = (props) => ( <SvgIcon {...props}> <path d="M16.5 13c-1.2 0-3.07.34-4.5 1-1.43-.67-3.3-1-4.5-1C5.33 13 1 14.08 1 16.25V19h22v-2.75c0-2.17-4.33-3.25-6.5-3.25zm-4 4.5h-10v-1.25c0-.54 2.56-1.7...
src/components/close-button.js
nordsoftware/react-foundation
import React from 'react'; import { GeneralPropTypes, FlexboxPropTypes, createClassName, generalClassNames, removeProps, objectKeys } from '../utils'; /** * Close button component. * http://foundation.zurb.com/sites/docs/close-button.html * * @param {Object} props * @returns {Object} */ export const CloseButton ...
app/scripts/Chat/ChatFlavor.js
nthitz/mashupfm
import React from 'react' let urlRegex = new RegExp(/(([-a-zA-Z0-9@:%_\+~#?&\/=][.]*){1,256}\.[a-z]{2,4}\b(\/[-a-zA-Z0-9@:%_\+.~#?&\/=]*)?)/gi) let protocolRegex = /^https?:\/\// let imgRegex = /\.(?:jpe?g|gif|png)$/ function splitEntities(message) { let messagePieces = message.split(' ') return messagePieces.map...
examples/jsxstyle.js
threepointone/glamor
import React from 'react' import { View, Row, Column } from '../src/jsxstyle' export class App extends React.Component { render() { return <div> <Row> <Column> some text </Column> <Column> some text </Column> </Row> </div> } }
packages/netlify-cms-core/src/components/UI/ErrorBoundary.js
netlify/netlify-cms
import React from 'react'; import PropTypes from 'prop-types'; import { translate } from 'react-polyglot'; import styled from '@emotion/styled'; import yaml from 'yaml'; import { truncate } from 'lodash'; import copyToClipboard from 'copy-text-to-clipboard'; import { localForage } from 'netlify-cms-lib-util'; import { ...
src/routes/home/index.js
murthymuddu/murthy-umg
/** * React Starter Kit (https://www.reactstarterkit.com/) * * Copyright © 2014-present Kriasoft, LLC. All rights reserved. * * This source code is licensed under the MIT license found in the * LICENSE.txt file in the root directory of this source tree. */ import React from 'react'; import Home from './Home'; i...
app/components/Renovation/index.js
medevelopment/UMA
import React, { Component } from 'react'; import * as toastify from '../../functions/Toastify'; import axios from 'axios'; import firebase from 'firebase'; import { propertySections } from '../../functions/propertiesFuncs'; import NotifyUpdate from '../NotifyUpdate'; import styled from 'styled-components'; import { ...
examples/js/advance/validator-table.js
powerhome/react-bootstrap-table
/* eslint max-len: 0 */ /* eslint no-unused-vars: 0 */ import React from 'react'; import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'; const jobs = []; const jobTypes = [ 'A', 'B', 'C', 'D' ]; function addJobs(quantity) { const startId = jobs.length; for (let i = 0; i < quantity; i++) { ...
src/svg-icons/navigation/last-page.js
tan-jerene/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationLastPage = (props) => ( <SvgIcon {...props}> <path d="M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"/> </SvgIcon> ); NavigationLastPage = pure(NavigationLastPage); NavigationLastPage.di...
test/components/Voting_spec.js
betoesquivel/client_server
import React from 'react'; import ReactDOM from 'react-dom'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, Simulate } from 'react-addons-test-utils'; import {List} from 'immutable'; import {expect} from 'chai'; import Voting from '../../src/components/Voting'; describe('Voting', () => { it(...
app/jsx/assignments/FinalGraderSelectMenu.js
djbender/canvas-lms
/* * Copyright (C) 2018 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
src/components/ExampleTwoDeepComponent.js
somsekhardash/somsekhardash.github.io
import React from 'react'; import PropTypes from 'prop-types'; import Interactive from 'react-interactive'; import { Link } from 'react-router-dom'; import { Li } from '../styles/style'; import s from '../styles/exampleTwoDeepComponent.style'; const propTypes = { location: PropTypes.object.isRequired, }; export def...
src/svg-icons/hardware/dock.js
hwo411/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let HardwareDock = (props) => ( <SvgIcon {...props}> <path d="M8 23h8v-2H8v2zm8-21.99L8 1c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V3c0-1.1-.9-1.99-2-1.99zM16 15H8V5h8v10z"/> </SvgIcon> ); HardwareDock = ...
src/app/component/select-menu-item/select-menu-item.story.js
all3dp/printing-engine-client
import React from 'react' import {storiesOf} from '@storybook/react' import {action} from '@storybook/addon-actions' import SelectMenuItem from '.' storiesOf('SelectMenuItem', module) .add('default', () => ( <SelectMenuItem value={{value: 'value', label: 'Select Menu Item'}} onClick={action('onClick...
a-note-app/src/components/App/index.js
Remexllee/randr-practice
import React from 'react'; import NotesList from '../NotesList'; import NoteDetail from '../NoteDetail'; import * as style from './style'; const App = () => ( <div style={style.wrapper}> <NotesList/> <NoteDetail/> </div> ); export default App;
docs/app/Examples/views/Card/Content/LinkCard.js
jcarbo/stardust
import React from 'react' import { Card } from 'stardust' const LinkCard = () => ( <Card href='#link' header='Elliot Baker' meta='Friend' description='Elliot is a sound engineer living in Nashville who enjoys playing guitar and hanging with his cat.' /> ) export default LinkCard
fields/types/geopoint/GeoPointColumn.js
jacargentina/keystone
import React from 'react'; import ItemsTableCell from '../../components/ItemsTableCell'; import ItemsTableValue from '../../components/ItemsTableValue'; var GeoPointColumn = React.createClass({ displayName: 'GeoPointColumn', propTypes: { col: React.PropTypes.object, data: React.PropTypes.object, }, renderValue...
src/parser/hunter/survival/modules/spells/ButcheryCarve.js
FaideWW/WoWAnalyzer
import SPELLS from 'common/SPELLS'; import Analyzer from 'parser/core/Analyzer'; import SpellUsable from 'parser/shared/modules/SpellUsable'; import StatisticBox from 'interface/others/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import React from 'react'; import SpellLink from 'common/SpellLink'; import It...
app/javascript/mastodon/components/status.js
h3zjp/mastodon
import React from 'react'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import Avatar from './avatar'; import AvatarOverlay from './avatar_overlay'; import AvatarComposite from './avatar_composite'; import RelativeTimestamp from './relative_timestamp'; import DisplayNa...
src/views/components/search-bar/search-bar.js
r-park/soundcloud-redux
import React from 'react'; import classNames from 'classnames'; import PropTypes from 'prop-types'; import './search-bar.css'; class SearchBar extends React.Component { static propTypes = { handleSearch: PropTypes.func.isRequired, search: PropTypes.object.isRequired }; constructor() { super(...arg...
src/index.js
Beardles/novelizr
import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import './index.css' import App from './App' import registerServiceWorker from './registerServiceWorker' import store from './store' ReactDOM.render( <Provider store={store}> <App /> </Provider>, docu...
src/js/screens/Home.js
grommet/next-sample
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Anchor, Box, Button, Chart, CheckBox, Grid, Heading, Image, Markdown, Menu, Meter, Paragraph, RadioButton, RoutedAnchor, RoutedButton, Stack, Text, TextInput, Video, } from 'grommet'; import { Actions } from 'grommet-icons'; ...
src/components/RepoRow.js
njscococo/ReactTutorial2
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; export default class RepoRow extends Component{ constructor(props){ super(props); this.rowClick = this.rowClick.bind(this); } rowClick(e){ console.log(e.target); } render(){ let repoInfo =...
app/javascript/mastodon/features/public_timeline/components/column_settings.js
masto-donte-com-br/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { injectIntl, FormattedMessage } from 'react-intl'; import SettingToggle from '../../notifications/components/setting_toggle'; export default @injectIntl class ColumnSettings extends React....
src/controller/common/BaseController.js
dazhifu/react-touch-ui
import React from 'react'; // export class BaseController extends React.Component { constructor(props) { super(props); } componentDidMount() { this.props.nav.addViewInst.call(this.props.nav,this); } componentResume () { } componentPause () { } componentWillUn...
spotify-react-router-auth/client/components/Login.js
janmattfeld/LauchSpot
import React, { Component } from 'react'; import loginSVG from '../log_in.svg'; /** * Our login page * Has a login button that hit's the login url */ export default class Login extends Component { render() { return ( <div className="login"> <h2>Here's our login page!</h2> <a href="/login...
tab.js
xiewang/react-native-emoticons
import React from 'react'; import PropTypes from 'prop-types'; import { Text, View, TouchableOpacity, Navigator, InteractionManager, Platform, ScrollView, Image, DeviceEventEmitter } from 'react-native'; import styles from './style'; class TabBar extends React.Component { constr...
packages/cf-component-select/example/async/component.js
jroyal/cf-ui
import React from 'react'; import { Select } from 'cf-component-select'; class SelectComponent extends React.Component { constructor(props) { super(props); this.state = { value: 'one' }; } handleChange(value) { this.setState({ value }); } getOptions(input, callback) { setTimeout(() => { ...
src/parser/paladin/holy/modules/checklist/Component.js
sMteX/WoWAnalyzer
import React from 'react'; import PropTypes from 'prop-types'; import { Trans } from '@lingui/macro'; import RESOURCE_TYPES from 'game/RESOURCE_TYPES'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import ResourceLink from 'common/ResourceLink'; import { TooltipElement } from 'common/To...
client/app/scripts/components/node-details/__tests__/node-details-table-test.js
alban/scope
import React from 'react'; import TestUtils from 'react-dom/test-utils'; import { Provider } from 'react-redux'; import configureStore from '../../../stores/configureStore'; // need ES5 require to keep automocking off const NodeDetailsTable = require('../node-details-table.js').default; describe('NodeDetailsTable', (...
src/components/Offer/index.js
EthHead/ens.trade
import React from 'react'; import ethereumjsAbi from 'ethereumjs-abi'; import * as ENSTrade from '../ENSTrade'; import Address from '../Address'; import actions from '../../actions'; import Button from '../Button'; import s from './styles.css'; class OfferList extends React.Component { constructor(props) { super...
installer/frontend/form.js
aknuds1/tectonic-installer
import _ from 'lodash'; import React from 'react'; import { connect } from 'react-redux'; import { dispatch as dispatch_ } from './store'; import { configActions, registerForm } from './actions'; import { toError, toIgnore, toAsyncError, toExtraData, toInFly, toExtraDataInFly, toExtraDataError } from './utils'; import...
app/javascript/mastodon/components/permalink.js
kibousoft/mastodon
import React from 'react'; import PropTypes from 'prop-types'; export default class Permalink extends React.PureComponent { static contextTypes = { router: PropTypes.object, }; static propTypes = { className: PropTypes.string, href: PropTypes.string.isRequired, to: PropTypes.string.isRequired, ...
app/javascript/containers/public/WidgetPage.js
Vizzuality/forest-atlas-landscape-cms
import React from 'react'; import PropTypes from 'prop-types'; import PublicContainer from 'containers/shared/PublicContainer'; import StandaloneWidget from 'components/public/StandaloneWidget'; const WidgetPageContainer = ({ widget }) => { if (!widget || !widget.widget_config) { return null; } return ( ...
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-bricks-button-group.js
UnicornCollege/ucl.itkpd.configurator
import React from 'react'; import {BaseMixin, ElementaryMixin, ColorSchemaMixin, ContentMixin, Tools} from '../common/common.js'; import Button from './button.js'; import './button-group.less'; export const ButtonGroup = React.createClass({ //@@viewOn:mixins mixins: [ BaseMixin, ElementaryMixin, Colo...
src/v0/component/date_picker/index.js
huanganqi/wsapp
import R from 'ramda' import React from 'react' import { Text, View, TouchableWithoutFeedback, } from 'react-native' import moment from 'moment' import DatePicker from 'react-native-datepicker' import * as variable from '../../theme/ume-theme/variable' import toast from '../../component/toast/normal' i...
app/Main.js
jaredhanson/auth0-sso-dashboard
require('./styles/main.less'); import React from 'react'; import Auth from './lib/Auth'; import Router from 'react-router'; import injectTapEventPlugin from 'react-tap-event-plugin'; // Setup document.title = __SITE_TITLE__; window.React = React; injectTapEventPlugin(); // Routes import App from './lib/components/Ap...
src/app.js
change-soft8/cs-project-antd
import React from 'react' import { render } from 'react-dom' import { browserHistory, Router } from 'react-router' import withExampleBasename from '../cfg/withExampleBasename' import routes from './config/routes' render(( <Router history={withExampleBasename(browserHistory)} routes={routes} /> ), document...
src/Popup.js
intljusticemission/react-big-calendar
import PropTypes from 'prop-types' import React from 'react' import getOffset from 'dom-helpers/offset' import getScrollTop from 'dom-helpers/scrollTop' import getScrollLeft from 'dom-helpers/scrollLeft' import * as dates from './utils/dates' import EventCell from './EventCell' import { isSelected } from './utils/sele...
05_ES6/Code/fork-es6/app/components/ConversationPane.js
AngularJS-Angular2-Angular4/react-learning-2
import React from 'react'; import Message from './Message'; import autoBind from 'react-autobind'; import samples from '../sample-data'; class ConversationPane extends React.Component { constructor(props) { super(props); autoBind(this); } sortByDateDesc(a, b) { return a.time < b.time ? -1 : a.time > ...
src/page/spa/components/loading/index.js
SteamerTeam/steamer-react
import React, { Component } from 'react'; import pureRender from 'pure-render-decorator'; require('./index.less'); @pureRender export default class List extends Component { constructor(props, context) { super(props, context); this.state = { }; } componentWillMount() { } componentDidMount() { } r...
src/DateContentRow.js
Incubity/react-big-calendar
import cn from 'classnames'; import getHeight from 'dom-helpers/query/height'; import qsa from 'dom-helpers/query/querySelectorAll'; import React from 'react'; import { findDOMNode } from 'react-dom'; import dates from './utils/dates'; import { accessor, elementType } from './utils/propTypes'; import { segStyle, event...
src/queue/BoardSquare.js
IACJ/react-datastructer
import React, { Component } from 'react'; import { DropTarget } from 'react-dnd'; import ItemTypes from './ItemTypes'; import {getDataStructer } from './Control'; const squareTarget = { canDrop(props, monitor) { if(monitor.getItem().position==="WaitingArea"&&props.position==="MainArea" &&props.id =...
src/components/pc_container.js
nanhaishiyounan/css3
import React from 'react'; import {Row, Col,Tabs, Carousel} from 'antd'; const TabPane = Tabs.TabPane; import PCNewsBlock from './pc_news_block'; export default class PCContainer extends React.Component { constructor(){ super(); this.state={ }; } render() { const settings = { dots: true, infi...
src/components/DiceSpinning.js
jiparker/bowl-game
import React from 'react'; import PropTypes from 'prop-types'; const DiceSpinning = (props) => { let color = `color-${props.colorNumber}`; return ( <div> <div id="wrapper" className={color}> <div id="platform"> <div id="dice"> <div className="side front"> <div ...
8.2.1/examples/asyncChangeValidation/dist/bundle.js
erikras/redux-form-docs
!function(t){function n(e){if(r[e])return r[e].exports;var i=r[e]={i:e,l:!1,exports:{}};return t[e].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var r={};n.m=t,n.c=r,n.i=function(t){return t},n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{configurable:!1,enumerable:!0,get:e})},n.n=function(t){var r=t&&t.__e...
app/containers/Commande/containers/CommandesLongTerme.js
Proxiweb/react-boilerplate
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { Link } from 'react-router'; import { createStructuredSelector } from 'reselect'; import round from 'lodash/round'; import { Card, CardActions, CardHeader } from 'material-ui/Card'; import Shoppi...
src/stories/index.js
mathworld-games/math-game-web
import React from 'react'; import {storiesOf} from '@storybook/react'; import {action} from '@storybook/addon-actions'; import {linkTo} from '@storybook/addon-links'; import {MemoryRouter} from 'react-router'; import Game from '../components/game-v.0.1/game/game'; import {Button, Welcome} from '@storybook/react/demo...
src/app/Auth/Auth.js
harsh376/Hector
import React from 'react'; import LayoutBootstrap from '../containers/LayoutBootstrap/LayoutBootstrap'; import imageUrl from './static/google_signin.png'; export default class Auth extends React.Component { componentDidMount() { if (this.props.enableAuth) { this.props.fetchAccountDetails(); } } re...
src/components/search/SearchResults.js
katima-g33k/blu-react-desktop
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { Button, Glyphicon, } from 'react-bootstrap'; import i18n from '../../lib/i18n'; import SearchColumns from '../../lib/TableColumns'; import { Spinner, Table } from '../general'; export default class Search extends Component { ...
.history/src/components/InstaCelebs/index_20171001005004.js
oded-soffrin/gkm_viewer
import React from 'react'; import { connect } from 'react-redux' import _ from 'lodash' const imgMap = { d: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/18095129_753964814784600_2717222797960019968_a.jpg', e: 'https://instagram.ftlv1-2.fna.fbcdn.net/t51.2885-19/s150x150/12071219_1640349196212432...
__tests__/components/Search-test.js
odedre/grommet-final
// (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP import React from 'react'; import renderer from 'react-test-renderer'; import Search from '../../src/js/components/Search'; // needed because this: // https://github.com/facebook/jest/issues/1353 jest.mock('react-dom'); describe('Search', () => { ...
src/containers/GoogleBooksPage.js
great-design-and-systems/cataloguing-app
import '../images/search-header.jpg'; import * as headerActions from '../actions/HeaderActions'; import * as actions from '../actions/GoogleBookActions'; import * as alertActions from '../actions/NotificationActions'; import { IFrame, PageBody, PageHeader, ResponsiveButton } from '../components/common/'; import { LAB...
test/components/Counter.spec.js
CodingMonkeyzh/remind-me
/* eslint no-unused-expressions: 0 */ import { expect } from 'chai'; import { spy } from 'sinon'; import React from 'react'; import { renderIntoDocument, scryRenderedDOMComponentsWithTag, findRenderedDOMComponentWithClass, Simulate } from 'react-addons-test-utils'; import Counter from '../../app/components/Coun...
swagger-editor/test/unit/standalone/topbar-insert/index.js
thomaxxl/safrs
import React from 'react'; import SwaggerUI from 'swagger-ui'; import insertPlugin from 'src/standalone/topbar-insert'; import { fromJS } from 'immutable'; import { configure, mount } from 'enzyme'; import Adapter from '@wojtekmaj/enzyme-adapter-react-17'; configure({ adapter: new Adapter() }); function getSystem(spe...
src/helpers/__tests__/makeRouteHooksSafe-test.js
AndriyShepitsen/svredux
import { expect } from 'chai'; import React from 'react'; import { IndexRoute, Route } from 'react-router'; import makeRouteHooksSafe from '../makeRouteHooksSafe'; describe('makeRouteHooksSafe', () => { it('should work with JSX routes', () => { const onEnter = () => { throw new Error('Shouldn\'t call onEn...
client/components/position-table/PositionTable.js
kanehara/yostock
import React from 'react'; import { PositionSymbol } from './position-row'; import { PositionRow } from "./position-row/PositionRow"; export function PositionTable(props) { const positionRows = props.positions.map(position => { return <PositionRow position = { position } key = { position.symbol }/> }) retu...
src/svg-icons/editor/space-bar.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorSpaceBar = (props) => ( <SvgIcon {...props}> <path d="M18 9v4H6V9H4v6h16V9z"/> </SvgIcon> ); EditorSpaceBar = pure(EditorSpaceBar); EditorSpaceBar.displayName = 'EditorSpaceBar'; EditorSpaceBar.muiName ...
src/route/dashboard/MpUserStat.js
simors/yjbAdmin
/** * Created by yangyang on 2017/10/30. */ import React from 'react' import {connect} from 'react-redux' import {Row, Col, Card} from 'antd' import {dashboardAction, dashboardSelector} from './redux' class MpUserStat extends React.PureComponent { constructor(props) { super(props) } componentWillMount() {...
_docs_website/pages/index.js
danibram/mocker-data-generator
import Head from 'next/head' import Router from 'next/router' import React from 'react' import Doc from '../components/Doc' export default class Index extends React.Component { state = { ready: false } componentDidMount() { Router.onRouteChangeComplete = () => this.setState({ ready: true }...
js/TopNav.react.js
Sable/McLab-Web
import AT from './constants/AT'; import classnames from 'classnames'; import Dispatcher from './Dispatcher'; import KindAnalysisActions from './actions/KindAnalysisActions'; import OnLoadActions from './actions/OnLoadActions'; import React from 'react'; const {PropTypes, Component} = React; const fortranOnClick = fun...
src/components/MyArticlePreview.js
Seeingu/medium-demo
/* 用于article 和 favorited articles */ import React from 'react'; import styled from 'styled-components'; import PropTypes from 'prop-types'; import { notify, Modal } from 'see-common-components'; import { connect } from 'react-redux'; import { unLikeArticle, setCurrSlug, updateMyArticle, deleteMyArticle } fro...
src/index.js
lancespears/profile-maker
import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { combineReducers, createStore, applyMiddleware, compose } from 'redux'; import { Router, browserHistory } from 'react-router'; import thunk from 'redux-thunk'; import promise from 'redux-promise'; import createL...
examples/using-preact/pages/about.js
giacomorebonato/next.js
import React from 'react' export default () => ( <div>About us</div> )
src/Slider/Slider.spec.js
rhaedes/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import sinon from 'sinon'; import keycode from 'keycode'; import Slider from './Slider'; import getMuiTheme from '../styles/getMuiTheme'; describe('<Slider />', () => { const muiTheme = getMuiTheme(); con...
common/route/AdminRoutes.js
ebertmi/webbox
import React from 'react'; import { Route, IndexRoute, Redirect } from 'react-router'; import AdminApp from '../containers/admin/AdminApp'; import UserOverview from '../containers/admin/UserOverview'; import CourseOverview from '../containers/admin/CourseOverview'; import LogOverview from '../containers/admin/LogOverv...
lib/site/layout/component.js
democracy-os-fr/democracyos
import React from 'react' import Header from 'lib/header/component' export default ({ children }) => ( <div id='outer-layout'> <Header /> {children} </div> )
app/containers/HomePage.js
jkup/starter-kit
import React, { Component } from 'react'; import Home from '../components/Home'; export default class HomePage extends Component { render() { return ( <Home /> ); } }
react-dev/pages/default.js
DeryLiu/DeryLiu.github.io
import React, { Component } from 'react'; export default class Default extends Component { render() { return ( <html lang="en"> {'{% include head.html %}'} <body> { '{{ content }}'} <div id="root" /> </body> <script src="{{site.url}}/assets/js/b...
docs/src/app/components/pages/components/TextField/ExampleError.js
spiermar/material-ui
import React from 'react'; import TextField from 'material-ui/TextField'; const TextFieldExampleError = () => ( <div> <TextField hintText="Hint Text" errorText="This field is required" /><br /> <TextField hintText="Hint Text" errorText="The error text can be as long as you want, i...
public/js/components/profile/visitor/activityfeed/activityListComp.react.js
MadushikaPerera/Coupley
import React from 'react'; import Card from 'material-ui/lib/card/card'; import CardMedia from 'material-ui/lib/card/card-media'; import CardText from 'material-ui/lib/card/card-text'; import ListItem from 'material-ui/lib/lists/list-item'; import Divider from 'material-ui/lib/divider'; import Avatar from 'material-ui/...
src/svg-icons/maps/local-hotel.js
kittyjumbalaya/material-components-web
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsLocalHotel = (props) => ( <SvgIcon {...props}> <path d="M7 13c1.66 0 3-1.34 3-3S8.66 7 7 7s-3 1.34-3 3 1.34 3 3 3zm12-6h-8v7H3V5H1v15h2v-3h18v3h2v-9c0-2.21-1.79-4-4-4z"/> </SvgIcon> ); MapsLocalHotel = pu...
local-cli/templates/HelloNavigation/views/welcome/WelcomeText.android.js
mironiasty/react-native
'use strict'; import React, { Component } from 'react'; import { StyleSheet, Text, View, } from 'react-native'; export default class WelcomeText extends Component { render() { return ( <View style={styles.container}> <Text style={styles.welcome}> Welcome to React Native! </...
javascript/app.js
kdoran/moriana-react
// starting point for the frontend import React from 'react' import ReactDOM from 'react-dom' import { Provider } from 'react-redux' import store from 'store/store' import { parseHash } from 'utils/routing' import {initExpiryWatcher} from 'utils/expiry-watcher' import SiteHeader from 'containers/site-header' import Shi...
app/javascript/mastodon/features/account_timeline/index.js
ebihara99999/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount, fetchAccountTimeline, expandAccountTimeline, } from '../../actions/accounts'; import StatusList from '../../components/status_lis...
pages/_error.js
alivelee/NextTech
import React from 'react' import { OAUTH_USER_URL,USER_API_KEY,REDIRECT_URL } from '../utility/api' import { AnimatedButton } from '../styles/components/Button'; import { Wrapper,Info } from '../styles/components/Error'; import { Heading } from '../styles/components/Headings'; export default class Error extends React.C...
frontend/src/components/icons/Snapshot.js
webrecorder/webrecorder
import React from 'react'; function Snapshot() { return ( <svg xmlns="http://www.w3.org/2000/svg" id="svg2" style={{ enableBackground: 'new 0 0 40 40' }} viewBox="0 0 40 40" y="0px" x="0px" version="1.1"> <g id="Layer_1"> <g id="g5"> <path id="path7" d="m 35.7,3.4 -25.2,0 c -1,0 -1.8,0.8 ...
src/svg-icons/editor/insert-link.js
ArcanisCz/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let EditorInsertLink = (props) => ( <SvgIcon {...props}> <path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3...
react-flux-mui/js/material-ui/src/svg-icons/av/sort-by-alpha.js
pbogdan/react-flux-mui
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 ...
src/browser/app/Logo.js
redcom/doctori-romani-in-berlin
// @flow import React from 'react'; import { Box, Image } from '../../common/components'; import { Link } from '../components'; const getWebsiteLogo = () => require('./doctori-romani-in-berlin.jpg'); const clipPathStyle = () => ({ 'clip-path': 'polygon(3% 5px, 100% 0%, 92% 60%, 62% 75%, 46% 110%, 50% 82%, 0% 75%)',...
client/test/components/comicDetails/index.spec.js
nicksenger/marvelous
/* eslint-env mocha */ import React from 'react'; import { expect } from 'chai'; import { shallow } from 'enzyme'; import sinon from 'sinon'; import { ComicDetails } from '../../../src/js/components/comicDetails/index'; describe('<ComicDetails />', () => { it('should render if no details', () => { const wrapper...
src/windowFocus.js
gabrielbull/react-desktop
import { windowIsFocused } from './monitor'; import React, { Component } from 'react'; function WindowFocus(options, ComposedComponent) { return class extends Component { constructor() { super(); this.state = { isWindowFocused: windowIsFocused() }; } componentDidMount() { ...
packages/example-react/client.js
RafalFilipek/fela
import React from 'react' import { render } from 'react-dom' import { Provider } from 'react-fela' import App from './app' import createRenderer from './renderer' const renderer = createRenderer() render( <Provider renderer={renderer}> <App /> </Provider>, document.getElementById('app') )
node_modules/react-images/src/components/Icon.js
ed1d1a8d/macweb
import PropTypes from 'prop-types'; import React from 'react'; import icons from '../icons'; const Icon = ({ fill, type, ...props }) => { const icon = icons[type]; return ( <span dangerouslySetInnerHTML={{ __html: icon(fill) }} {...props} /> ); }; Icon.propTypes = { fill: PropTypes.string, type: PropT...
src/frontend/screens/Invoice/not-found.js
Koleso/invoicer
import React from 'react'; // Components import { Grid, GridColumn } from 'components/Grid'; import Screen from 'components/Screen'; import Box from 'components/Box'; import EmptyState from 'components/EmptyState'; const Invoice = () => ( <Screen title="Faktury" pageTitle="Faktura nenalezena"> <Grid> <GridColum...
src/js/components/Home/partial/MicroservicesFoundationKit.js
ajainsyn/project
import React from 'react'; import microservices from '../../../../assets/images/microservices.png'; const MicroservicesFoundationKit = () => ( <section className="section" id="microservices"> <div className="container"> <div className="row align-items-center"> <div className="col-sm...
packages/react-cookie-demo/src/server.js
eXon/react-cookie
import React from 'react'; import ReactDOMServer from 'react-dom/server'; import { CookiesProvider } from 'react-cookie'; import Html from './components/Html'; import App from './components/App'; export default function middleware(req, res) { const markup = ReactDOMServer.renderToString( <CookiesProvider cookie...
src/routes/home/index.js
lassegit/gitdude.com
import React from 'react'; import Home from './Home'; import Dashboard from './Dashboard'; import Layout from '../../components/Layout'; export default { path: ['/', '/frontpage'], async action({ fetch, isAuthenticated, user, path }) { if (isAuthenticated && path !== '/frontpage') { const resp = await f...
src/components/FloatingActionButton/FloatingActionButton.js
markdyousef/zen-editor
// @flow import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import styled from 'styled-components'; import ImageButton from '../ImageButton'; import EmbedButton from '../EmbedButton'; import { getSelectedBlockNode } from '../../utils/display'; import Icon from '../../icons/plus'; import D...
src/js/components/icons/base/DivideFour.js
codeswan/grommet
import React from 'react'; import Columns from './Columns'; export default (props) => { console.warn( 'DivideFour has been renamed to Columns.' + ' Plese update your import statement.' ); return <Columns {...props} />; };
docs/client/components/pages/Mention/CustomComponentMentionEditor/index.js
koaninc/draft-js-plugins
import React, { Component } from 'react'; import { EditorState } from 'draft-js'; import Editor from 'draft-js-plugins-editor'; // eslint-disable-line import/no-unresolved import createMentionPlugin, { defaultSuggestionsFilter } from 'draft-js-mention-plugin'; // eslint-disable-line import/no-unresolved import editorSt...
client/modules/App/components/Footer/Footer.js
sethkaufee/TherapyApp
import React from 'react'; import { FormattedMessage } from 'react-intl'; // Import Style import styles from './Footer.css'; // Import Images import bg from '../../header-bk.png'; export function Footer() { return ( <div style={{ background: `#FFF url(${bg}) center` }} className={styles.footer}> <p>&copy...
test/headerTest.js
merj4/merj
'use strict'; import React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; import { shallow, mount, render } from 'enzyme'; //import each component in its own import statement as needed import Header from '../app/components/header.js'; //use shallow if stateLESS component //shallow test = only...
actor-apps/app-web/src/app/components/common/ConnectionState.react.js
hzy87email/actor-platform
import React from 'react'; import classnames from 'classnames'; import ConnectionStateStore from 'stores/ConnectionStateStore'; const getStateFromStore = () => { return { connectionState: ConnectionStateStore.getState() }; }; class ConnectionState extends React.Component { constructor(props) { super(pro...
edit/reactSample/react-sample/src/components/edit.js
WhenHub/dev-samples
import React, { Component } from 'react'; import { Form, Text, Textarea } from 'react-form'; import { Link } from 'react-router-dom' class Edit extends Component { constructor(props) { super(props); this.state = { whencast: { name: "", ...