target
stringlengths
5
300
feat_repo_name
stringlengths
6
76
text
stringlengths
26
1.05M
Examples/UIExplorer/AlertIOSExample.js
abdelouahabb/react-native
/** * The examples provided by Facebook are for non-commercial testing and * evaluation purposes only. * * Facebook reserves all rights not expressly granted. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, ...
src/js/app.js
takuan-osho/react-es2015-skelton
import React from 'react'; import ReactDOM from 'react-dom'; class App extends React.Component { render() { return ( <div>Sample App</div> ); } } ReactDOM.render( <App />, document.getElementById('app') );
src/isomorphic/components/Topic/index.js
hzhu/react-universal
import React from 'react' const Topic = ({ match }) => ( <div> <h3>{match.params.topicId}</h3> </div> ) export default Topic
client/src/components/PasswordChange/index.js
googleinterns/Pictophone
import React, { Component } from 'react'; import { withRouter } from 'react-router-dom'; import { compose } from 'recompose'; import { Col, Form, Button } from 'react-bootstrap'; import { withFirebase } from '../Firebase'; import * as ROUTES from '../../constants/routes'; import './PasswordChange.css'; const INITIAL...
frontend/app/main.js
silenceper/dcmp
import React from 'react'; import ReactDOM from 'react-dom'; import App from './components/App'; ReactDOM.render( <App />, document.getElementById('app') );
packages/mineral-ui-icons/src/IconFormatAlignRight.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Icon from 'mineral-ui/Icon'; import type { IconProps } from 'mineral-ui/Icon/types'; /* eslint-disable prettier/prettier */ export default function IconFormatAlignRight(props: IconProps) { const iconProps = { rtl: false, ...props }; return ( <Icon {...i...
src/components/Messages/Info/Info.specs.js
auth0-extensions/auth0-extension-ui
import React from 'react'; import { mount } from 'enzyme'; import { expect } from 'chai'; import sinon from 'sinon'; import Info from './'; const { describe, it } = global; describe('Info', () => { const field = { message: 'This is the info message' }; let wrapper; describe('test elements', () => { ...
ajax/libs/yui/3.3.0/simpleyui/simpleyui-debug.js
thisispiers/cdnjs
/** * The YUI module contains the components required for building the YUI seed * file. This includes the script loading mechanism, a simple queue, and * the core utilities for the library. * @module yui * @submodule yui-base */ if (typeof YUI != 'undefined') { YUI._YUI = YUI; } /** * The YUI global name...
ajax/libs/analytics.js/2.3.3/analytics.min.js
agraebe/cdnjs
(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n...
src/components/logo.js
roman01la/ihub-events
import React from 'react'; import { LOGO } from '../config/config'; const Logo = () => <img className='ihub-logo' src={LOGO} width={180} />; export default Logo;
src/views/pages/search-page/search-page.js
r-park/soundcloud-redux
import React from 'react'; import PropTypes from 'prop-types'; import { connect } from 'react-redux'; import { searchActions } from 'src/core/search'; import ContentHeader from '../../components/content-header'; import Tracklist from '../../components/tracklist'; import './search-page.css'; export class SearchPage ...
packages/ringcentral-widgets-docs/src/app/pages/Components/MeetingScheduleButton/Demo.js
u9520107/ringcentral-js-widget
import React from 'react'; // eslint-disable-next-line import MeetingScheduleButton from 'ringcentral-widgets/components/MeetingScheduleButton'; const props = {}; props.onClick = () => alert('clicked'); /** * A example of `MeetingScheduleButton` */ const MeetingScheduleButtonDemo = () => ( <MeetingScheduleButton ...
ajax/libs/highstock/2.1.3/highstock.src.js
KyleMit/cdnjs
// ==ClosureCompiler== // @compilation_level SIMPLE_OPTIMIZATIONS /** * @license Highstock JS v2.1.3 (2015-02-27) * * (c) 2009-2014 Torstein Honsi * * License: www.highcharts.com/license */ // JSLint options: /*global Highcharts, HighchartsAdapter, document, window, navigator, setInterval, clearInterval, clearT...
ajax/libs/phaser/2.0.1/custom/p2.js
NMastracchio/cdnjs
/** * The MIT License (MIT) * * Copyright (c) 2013 p2.js authors * * 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 ...
src/components/Header/Header.js
waelio/react-starter-kit
/*! 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...
src/djanban/static/angularapps/taskboard/node_modules/@angular/forms/src/directives/reactive_directives/form_group_directive.js
diegojromerolopez/djanban
/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[...
packages/react/components/popup.js
AdrianV/Framework7
import React from 'react'; import Mixins from '../utils/mixins'; import Utils from '../utils/utils'; import __reactComponentWatch from '../runtime-helpers/react-component-watch.js'; import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js'; import __reactComponentSlots from '../ru...
docs/src/app/app.js
tan-jerene/material-ui
import React from 'react'; import ReactDOM from 'react-dom'; import {Router, useRouterHistory} from 'react-router'; import AppRoutes from './AppRoutes'; import injectTapEventPlugin from 'react-tap-event-plugin'; import {createHashHistory} from 'history'; // Helpers for debugging window.React = React; window.Perf = req...
ajax/libs/mobx/2.3.5/mobx.min.js
pvnr0082t/cdnjs
/** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */ "use strict";function Z(n,i,u){var o,e,r;"string"==typeof n?(o=n,e=i,r=u):"function"==typeof n&&(o=n.name||"Autorun@"+a(),e=n,r=i),l(e,"autorun methods cannot have modifiers"),t("function"==typeof e,"autorun expects a function"),t(0===e.length,"autorun expec...
src/svg-icons/navigation/unfold-less.js
kasra-co/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let NavigationUnfoldLess = (props) => ( <SvgIcon {...props}> <path d="M7.41 18.59L8.83 20 12 16.83 15.17 20l1.41-1.41L12 14l-4.59 4.59zm9.18-13.18L15.17 4 12 7.17 8.83 4 7.41 5.41 12 10l4.59-4.59z"/> </SvgIcon> )...
packages/dante2/src/editor/components/decorators/link.js
michelson/Dante
import React from 'react' export default class Link extends React.Component { constructor(props) { super(props) this.isHover = false this.link = React.createRef() } _validateLink =()=> { const str = "demo"; /*eslint-disable */ const pattern = new RegExp('^(https?:\/\/)?' + // protocol ...
src/components/Columns/Columns.js
nambawan/g-old
// taken from https://github.com/grommet/grommet/blob/master/src/js/components/Columns.js /* eslint-disable */ import React from 'react'; import PropTypes from 'prop-types'; import cn from 'classnames'; import withStyles from 'isomorphic-style-loader/withStyles'; import s from './Columns.css'; class Columns extends Re...
app/index.js
MOTK-FED/mo-boilerplate
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; class HelloReact extends Component { render() { return <div>11111</div> } } ReactDOM.render(<HelloReact />, document.getElementById('content'));
ajax/libs/thorax/2.0.0rc6/thorax.min.js
DaneTheory/cdnjs
(function(e,t){"use strict";function _(e){var t=e.length,n=y.type(e);return y.isWindow(e)?!1:e.nodeType===1&&t?!0:n==="array"||n!=="function"&&(t===0||typeof t=="number"&&t>0&&t-1 in e)}function P(e){var t=D[e]={};return y.each(e.match(w)||[],function(e,n){t[n]=!0}),t}function j(e,n,r,i){if(!y.acceptData(e))return;var ...
archimate-frontend/src/main/javascript/components/view/NewLinkMenu.js
zhuj/mentha-web-archimate
import React from 'react' import Button from '@material-ui/core/Button'; import Divider from '@material-ui/core/Divider'; import List from '@material-ui/core/List'; import ListItem from '@material-ui/core/ListItem'; import { relationships } from './edges/view/viewRelationship' import { constraints } from './edges/con...
app/components/FlowVariable/index.js
bruceli1986/react-qdp
/** * * FlowVariable:流程办理过程 * */ import React from 'react'; import { Modal, Table, Tabs } from 'antd'; import moment from 'moment'; import styles from './styles.css'; class FlowVariable extends React.Component { constructor(props, context) { super(props, context); this.state = { loading: true, };...
lib/components/analysis/__tests__/map.js
conveyal/scenario-editor
// @flow import toJson from 'enzyme-to-json' import React from 'react' import Map from '../map' import * as mock from '../../../utils/mock-data' import {toLatLngBounds} from '../../../utils/bounds' const createProps = () => ({ analysisBounds: toLatLngBounds(mock.mockRegion.bounds), disableMarker: false, displa...
ajax/libs/react-datetime/2.8.11/react-datetime.js
BenjaminVanRyseghem/cdnjs
/* react-datetime v2.8.11 https://github.com/YouCanBookMe/react-datetime MIT: https://github.com/YouCanBookMe/react-datetime/raw/master/LICENSE */ (function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React"), requi...
exp/blockingscripts/jquery-1.10.2.min.js
oceanlau/oceanlau.github.com
/*! jQuery v1.10.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery-1.10.2.min.map */ (function(e,t){var n,r,i=typeof t,o=e.location,a=e.document,s=a.documentElement,l=e.jQuery,u=e.$,c={},p=[],f="1.10.2",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b...
addons/info/example/story.js
enjoylife/storybook
import React from 'react'; import Button from './Button'; import { storiesOf } from '@storybook/react'; import { action } from '@storybook/addon-actions'; import backgrounds from 'react-storybook-addon-backgrounds'; storiesOf( 'Button' ).addWithInfo( 'simple usage', 'This is the basic usage with the button with...
vertex_ui/src/components/ScrollBarContainer/ScrollBarContainer.js
zapcoop/vertex
import React from 'react'; import { PropTypes } from 'prop-types'; import Ps from 'perfect-scrollbar'; import _ from 'underscore'; import 'perfect-scrollbar/dist/css/perfect-scrollbar.css'; class ScrollBarContainer extends React.Component { static propTypes = { children: PropTypes.node.isRequired, component...
common/components/HpNavRoot.js
BostonGlobe/elections-2017
import React from 'react' import HpNav from './../containers/HpNav.js' const HomepageRoot = () => ( <HpNav /> ) export default HomepageRoot
test/integration/react-profiling-mode/pages/index.js
azukaru/next.js
import React from 'react' const Index = () => { return ( <React.Profiler id="hello" onRender={(...res) => { window.profileResults = window.profileResults || [] window.profileResults.push(res) }} > <p>hello world</p> </React.Profiler> ) } export default Index
test/js/AR/arNodeTest.js
viromedia/viro
/** * Copyright (c) 2017-present, Viro Media, 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 R...
ajax/libs/datatables/1.10.7/js/jquery.js
emijrp/cdnjs
/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind...
react/LightbulbIcon/LightbulbIcon.iconSketch.js
seekinternational/seek-asia-style-guide
import React from 'react'; import LightbulbIcon from './LightbulbIcon'; export const symbols = { 'LightbulbIcon': <LightbulbIcon /> };
public/assets/scripts/containers/resources/recent.js
luisfbmelo/reda
import React from 'react'; import { Component } from 'react'; import { connect } from 'react-redux'; import { fetchResources, setHighlight, setFavorite } from '@/actions/resources'; import { fetchConfig } from '@/actions/config'; import { bindActionCreators } from 'redux'; import RecentResources from '@/components/reso...
ajax/libs/inferno/1.0.0-alpha3/inferno-compat.js
sashberd/cdnjs
/*! * inferno-compat v1.0.0-alpha3 * (c) 2016 Dominic Gannaway * Released under the MIT License. */ (function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.Infer...
src/primitives/container/sidebar-container/index.js
mpigsley/sectors-without-number
import React from 'react'; import PropTypes from 'prop-types'; import { FormattedMessage } from 'react-intl'; import FlexContainer from 'primitives/container/flex-container'; import ActionHeader from 'primitives/text/action-header'; import ButtonLink from 'primitives/other/button-link'; import './style.scss'; export...
packages/material-ui-icons/src/DvrOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M21 3H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h5v2h8v-2h5c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 14H3V5h18v12zm-2-9H8v2h11V8zm0 4H8v2h11v-2zM7 8H5v2h2V8zm0 4H5v2h2v-2z" /> , 'DvrOutlined');
5.3.0/src/components/DevTools.js
erikras/redux-form-docs
import React from 'react' import { createDevTools } from 'redux-devtools' import LogMonitor from 'redux-devtools-log-monitor' import DockMonitor from 'redux-devtools-dock-monitor' import { toggleVisibilityKey, changePositionKey } from './devToolsConfig' export default createDevTools( <DockMonitor {...{ toggleVis...
app/day.js
wvicioso/dapr
import React, { Component } from 'react'; import { Navigator, StyleSheet, Text, TextInput, ScrollView, TouchableOpacity, View, Image, ListView, LayoutAnimation } from 'react-native'; const Carousel = require('react-native-carousel'); const SideMenu = require('react-native-side-menu'); import Dress ...
Components/RoomList.js
colm2/mizen
import React, { Component } from 'react'; import { AppRegistry, StyleSheet, Text, View, ListView, DeviceEventEmitter } from 'react-native'; import { connect, Provider } from 'react-redux'; import NearbyInfo from './NearbyInfo'; import RoomRowItem from './RoomRowItem'; import ProjectList from './ProjectList'; exp...
app/javascript/mastodon/features/compose/components/upload_progress.js
MitarashiDango/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import Motion from '../../ui/util/optional_motion'; import spring from 'react-motion/lib/spring'; import Icon from 'mastodon/components/icon'; export default class UploadProgress extends React.PureComponent { static propTypes = { active: PropTypes.b...
src/components/typing-test-summary.js
orouvinen/mytype-frontend
import React from 'react'; import { wpm, accuracy } from '../helpers/wpm'; const summaryStyle = { clear: "both", display: "block", margin: "30px 0 0 0", padding: "8px", textAlign: "center", }; const TypingTestSummary = props => { if (!props.typingTest.finished) return null; const { correctChars, wr...
node_modules/redbox-react/examples/react-hot-loader-example/index.js
jdl031/FHIR-test-app
import React from 'react' import App from './components/App' const root = document.getElementById('root') React.render(<App />, root)
src/lib/spec.js
mozilla/webmaker-core
var React = require('react'); function getValidationErrors(spec) { var result = null; var VALID_KEYS = ['category', 'default', 'validation', 'editor']; var VALID_CATEGORIES = ['styles', 'attributes']; var keys = Object.keys(spec); if (!keys.length) { result = 'Spec must have at least one prop'; } ...
files/react/0.12.0/react-with-addons.min.js
korusdipl/jsdelivr
/** * React (with addons) v0.12.0 * * Copyright 2013-2014, 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...
actor-apps/app-web/src/app/components/DialogSection.react.js
KitoHo/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...
packages/material-ui-icons/src/ClearOutlined.js
kybarg/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <path d="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" /> , 'ClearOutlined');
ui/src/components/Footer/Footer.js
ebradshaw/insight
import React, { Component } from 'react'; import Navbar from 'react-bootstrap/lib/Navbar' class Footer extends Component { render() { return ( <Navbar fixedBottom> <Navbar.Header> <Navbar.Text> Elliott Bradshaw - 2017 </Navbar.Text> ...
src/components/Studio.js
MiRECoFu/textcontroller
'use strict'; require('styles/Studio.scss') import React from 'react'; import ReactDOM from 'react-dom'; import { Link } from 'react-router' var AMUIReact = require('amazeui-react'); var Button = AMUIReact.Button; var Icon = AMUIReact.Icon; //获取用户信息 //获取 img src class Studio extends React.Component { constructor(...
ajax/libs/jquery/1.4.1/jquery.min.js
alejandroiglesias/cdnjs
/*! * jQuery JavaScript Library v1.4.1 * http://jquery.com/ * * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * Includes Sizzle.js * http://sizzlejs.com/ * Copyright 2010, The Dojo Foundation * Released under the MIT, BSD, and GPL Licenses. ...
src/PanelContainer.js
billyryanwill/amplify
import React, { Component } from 'react'; import Playlist from './Playlist'; class PanelContainer extends Component { render() { return ( <main> <Playlist/> </main> ); } } export default PanelContainer;
files/yasgui/1.1.8/yasgui.bundled.min.js
Third9/jsdelivr
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r...
routes/GeneralAssembly/GeneralAssembly.js
RickFrom1987/rickfrom1987.com
import React from 'react'; import ArticleLayout from '../../components/Layout/ArticleLayout'; import { title, url, html } from './GeneralAssembly.md'; class GeneralAssemblyPage extends React.Component { componentDidMount() { document.title = title; } render() { return ( <ArticleLayout title={titl...
web/src/js/__tests__/components/Header/OptionMenuSpec.js
MatthewShao/mitmproxy
import React from 'react' import renderer from 'react-test-renderer' import { Provider } from 'react-redux' import OptionMenu from '../../../components/Header/OptionMenu' import { TStore } from '../../ducks/tutils' describe('OptionMenu Component', () => { it('should render correctly', () => { let store = T...
src/TimePicker/ClockMinutes.spec.js
hai-cea/material-ui
/* eslint-env mocha */ import React from 'react'; import {shallow} from 'enzyme'; import {assert} from 'chai'; import {spy} from 'sinon'; import getMuiTheme from '../styles/getMuiTheme'; import ClockMinutes from './ClockMinutes'; describe('<ClockMinutes />', () => { const muiTheme = getMuiTheme(); const shallowWit...
components/admin/PageLayoutForm.js
BanManagement/BanManager-WebUI
import { useEffect, useMemo, useState } from 'react' import GridLayout from 'react-grid-layout' import { find, maxBy, pick } from 'lodash-es' import ErrorMessages from '../ErrorMessages' import PageHeader from '../PageHeader' import Button from '../Button' import { breakpoints } from '../Media' import { useMutateApi } ...
app/javascript/mastodon/features/account_timeline/index.js
KnzkDev/mastodon
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePropTypes from 'react-immutable-proptypes'; import PropTypes from 'prop-types'; import { fetchAccount } from '../../actions/accounts'; import { expandAccountFeaturedTimeline, expandAccountTimeline } from '../../actions/timelines'; import ...
app/javascript/mastodon/features/notifications/components/column_settings.js
mimumemo/mastodon
import React from 'react'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import { FormattedMessage } from 'react-intl'; import ClearColumnButton from './clear_column_button'; import SettingToggle from './setting_toggle'; export default class ColumnSettings extends Reac...
node_modules/@material-ui/core/esm/List/ListContext.js
pcclarke/civ-techs
import React from 'react'; /** * @ignore - internal component. */ var ListContext = React.createContext({}); export default ListContext;
src/components/macros.js
DarklyLabs/LaserWeb4
import React from 'react'; import { connect } from 'react-redux'; import ReactDOM from 'react-dom'; import { PanelGroup, Panel, Tooltip } from 'react-bootstrap'; import Icon from './font-awesome' import { addMacro, removeMacro, setMacro, fireMacroById } from '../actions/macros' import { runCommand } from './com.js'; ...
src/containers/AppContainer.js
Sixtease/MakonReact
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { BrowserRouter, Router } from 'react-router-dom'; import { Provider } from 'react-redux'; import CoreLayout from '../layouts/CoreLayout'; import { commence_session_init } from './actions'; let previous_location; const router_set_stat...
js/vendor/jquery-1.9.1.min.js
UCSF-CMP/pbbr
/*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license //@ sourceMappingURL=jquery.min.map */(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return...
src/layouts/PageLayout/PageLayout.js
cdtinney/cdtinney.github.io
import React from 'react'; import PropTypes from 'prop-types'; import DefaultLayout from '../DefaultLayout'; import PageHeader from '../../components/PageHeader'; import classes from './PageLayout.module.css'; function PageLayout({ pageTitle, pageDescription, title, titleHref, children, }) { return ( ...
packages/react-error-overlay/src/components/ErrorOverlay.js
tharakawj/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. */ /* @flow */ import React, { Component } from 'react'; import { black } from '../styles'; import type { Node as ReactNode } from 'react'...
internals/templates/containers/HomePage/index.js
anhldbk/react-boilerplate
/* * HomePage * * This is the first thing users see of our App, at the '/' route * * NOTE: while this component should technically be a stateless functional * component (SFC), hot reloading does not currently support SFCs. If hot * reloading is not a necessity for you then you can refactor it and remove * the l...
src/components/Playback.js
cannc4/Siren
import React from 'react'; import { inject, observer } from 'mobx-react'; import '../styles/App.css'; import '../styles/Home.css'; import '../styles/Layout.css'; @inject('menubarStore') @observer export default class Playback extends React.Component { handlePlayRecordings = (i, sent) => { console.log("here")...
docs/src/components/Docs/Props/EditorStyleProp/index.js
michalko/draft-wyswig
import React from 'react'; import Codemirror from 'react-codemirror'; export default () => ( <div> <h3>Styling the editor</h3> <div className="docs-desc"> The editor by default will have uses DraftJS editor as it is without any styling and it will occupy 100% width of container. Some stylin...
core/shared/vendor/backbone/backbone.js
cloudcmd/ghost-blog
// Backbone.js 1.0.0 // (c) 2010-2013 Jeremy Ashkenas, DocumentCloud Inc. // Backbone may be freely distributed under the MIT license. // For all details and documentation: // http://backbonejs.org (function(){ // Initial Setup // ------------- // Save a reference to the global object (`wi...
src/svg-icons/maps/traffic.js
pancho111203/material-ui
import React from 'react'; import pure from 'recompose/pure'; import SvgIcon from '../../SvgIcon'; let MapsTraffic = (props) => ( <SvgIcon {...props}> <path d="M20 10h-3V8.86c1.72-.45 3-2 3-3.86h-3V4c0-.55-.45-1-1-1H8c-.55 0-1 .45-1 1v1H4c0 1.86 1.28 3.41 3 3.86V10H4c0 1.86 1.28 3.41 3 3.86V15H4c0 1.86 1.28 3.41...
packages/react-router-native/examples/Params.js
justjavac/react-router-CN
import React from 'react' import { StyleSheet, Text, View } from 'react-native' import { NativeRouter, Route, Link } from 'react-router-native' const Child = ({ match }) => ( <Text>ID: {match.params.id}</Text> ) const ParamsExample = () => ( <NativeRouter> <View style={styles.container}> <Text style={st...
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/List/ExampleChat.js
pbogdan/react-flux-mui
import React from 'react'; import MobileTearSheet from '../../../MobileTearSheet'; import Avatar from 'material-ui/Avatar'; import {List, ListItem} from 'material-ui/List'; import Subheader from 'material-ui/Subheader'; import Divider from 'material-ui/Divider'; import CommunicationChatBubble from 'material-ui/svg-icon...
client/components/types/ManageCollectionClones.js
axax/lunuc
import React from 'react' import PropTypes from 'prop-types' import { DeleteIconButton, BackupIconButton, DoneIconButton, SimpleList, SimpleDialog, Tooltip } from 'ui/admin' import Util from 'client/util' import {COLLECTIONS_QUERY} from '../../constants' import {withKeyValues} from 'client/conta...
trsearch/src/index.js
balaSpyrus/wave11
import React from 'react'; import ReactDOM from 'react-dom'; import './index.css'; import App from './App'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render(<App />, document.getElementById('root')); registerServiceWorker();
src/index.js
ship-components/ship-components-tag-input
import React from 'react'; import PropTypes from 'prop-types'; import { List } from 'immutable'; import Promise from 'bluebird'; import superagent from 'superagent'; import TagContainer from './TagContainer'; export default class TagInput extends React.Component { constructor(props) { super(props); this.sta...
src/components/Header.react.js
rudionrails/signup-widget-react-mobx
import React from 'react'; const Header = ({ onClose, }) => ( <div className="jsw-header"> <nav className="navbar navbar flex-items-xs-center"> <div className="pull-xs-right"> <button className="jsw-header__btn-close" type="button" onClick={onClose} > ...
docs/app/Examples/collections/Breadcrumb/Content/BreadcrumbExampleSectionProps.js
Rohanhacker/Semantic-UI-React
import React from 'react' import { Breadcrumb } from 'semantic-ui-react' const sections = [ { content: 'Home', link: true }, { content: 'Search', active: true }, ] const BreadcrumbExampleSectionProps = () => ( <Breadcrumb sections={sections} /> ) export default BreadcrumbExampleSectionProps
tests/react_children/component.js
claudiopro/flow
// @flow import React from 'react'; import type {Node} from 'react'; class MyComponent extends React.Component<{children: Node}, void> { render(): Node { // OK: Can pass a node down like so. return <MyComponent>{this.props.children}</MyComponent>; } } class MyComponentOptional extends React.Component<{ch...
packages/flow-upgrade/src/upgrades/0.53.0/ReactComponentExplicitTypeArgs/__tests__/fixtures/StateNotDefinedButUsed.js
samwgoldman/flow
// @flow import React from 'react'; class MyComponent1 extends React.Component { render() { return this.state.children; } } class MyComponent2 extends React.Component { render() { const state = {}; return state; } } const expression1 = () => class extends React.Component { render() { ...
client/extensions/woocommerce/woocommerce-services/components/radio-buttons/index.js
Automattic/woocommerce-connect-client
/** @format */ /* eslint-disable react/no-danger */ /** * External dependencies */ import React from 'react'; import PropTypes from 'prop-types'; /** * Internal dependencies */ import FormFieldset from 'components/forms/form-fieldset'; import FormLabel from 'components/forms/form-label'; import FormLegend from 'c...
src/server.js
kriuz/clicker
import Express from 'express'; import React from 'react'; import ReactDOM from 'react-dom/server'; import config from './config'; import favicon from 'serve-favicon'; import compression from 'compression'; import httpProxy from 'http-proxy'; import path from 'path'; import createStore from './redux/create'; import ApiC...
test/Absolute.spec.js
itsolutions-dev/react-styled-ui
import React from 'react'; import ReactTestRenderer from 'react-test-renderer'; import 'styled-components-test-utils/lib/jest'; import theme from '../src/theme'; import Absolute from '../src/Absolute'; import * as utils from '../src/utils/'; describe('Absolute', () => { test('should render a Absolute', () => { c...
src/website/app/demos/Text/Text/bestPractices.js
mineral-ui/mineral-ui
/* @flow */ import React from 'react'; import Text from '../../../../../library/Text'; import type { BestPractices } from '../../../pages/ComponentDoc/types'; const bestPractices: BestPractices = [ { type: 'do', description: `Use a [logical order](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/...
ajax/libs/react-motion-ui-pack/0.3.0/react-motion-ui-pack.js
jdh8/cdnjs
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(require("React"), require("ReactMotion"), require("Measure")); else if(typeof define === 'function' && define.amd) define(["React", "ReactMotion", "Measure"], factory)...
docs/server.js
aparticka/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 =...
packages/material-ui-icons/lib/esm/FolderSharedOutlined.js
mbrookes/material-ui
import createSvgIcon from './utils/createSvgIcon'; import { jsx as _jsx } from "react/jsx-runtime"; export default createSvgIcon( /*#__PURE__*/_jsx("path", { d: "M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 12H4V6h5.17l2 2H20v10zm-5-5c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 ...
modules/RoutingContext.js
levjj/react-router
import React from 'react' import invariant from 'invariant' import getRouteParams from './getRouteParams' const { array, func, object } = React.PropTypes /** * A <RoutingContext> renders the component tree for a given router state * and sets the history object and the current location in context. */ const RoutingC...
src/icons/IosHelp.js
fbfeix/react-icons
import React from 'react'; import IconBase from './../components/IconBase/IconBase'; export default class IosHelp extends React.Component { render() { if(this.props.bare) { return <g> <g> <path d="M256,48C141.1,48,48,141.1,48,256c0,114.9,93.1,208,208,208c114.9,0,208-93.1,208-208C464,141.1,370.9,48,256,48z M26...
src/app/development/permits/utils.js
cityofasheville/simplicity2
import React from 'react'; import { getZoningLink } from '../../address/zoning'; import TypePuck from '../trc/TypePuck'; import Icon from '../../../shared/Icon'; import { IM_WATER, IM_TINT, IM_RECYCLE, IM_HOME2, IM_CITY, IM_LANDMARK, IM_MONUMENT, IM_FISH, } from '../../../shared/iconConstants'; export ...
dashboard/containers/App.js
MEDIGO/laika
import React from 'react' import { BrowserRouter as Router, Redirect, Route, Switch } from 'react-router-dom' import Container from '../components/Container' import Footer from '../components/Footer' import Header from '../components/Header' import Main from '../components/Main' import EnvironmentCreate from ...
src/renderers/dom/shared/wrappers/__tests__/ReactDOMOption-test.js
flipactual/react
/** * Copyright 2013-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. * * @emails react...
node_modules/laravel-elixir/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-es2015-computed-properties/node_modules/babel-helper-define-map/node_modules/babel-helper-function-name/node_modules/babel-traverse/lib/path/lib/hoister.js
romero1989/suge-project
"use strict"; var _classCallCheck = require("babel-runtime/helpers/class-call-check")["default"]; var _interopRequireWildcard = require("babel-runtime/helpers/interop-require-wildcard")["default"]; exports.__esModule = true; var _babelTypes = require("babel-types"); var t = _interopRequireWildcard(_babelTypes); v...
src/javascripts/app.js
bezreyhan/front_end_starter
import React from 'react'; import ReactDOM from 'react-dom'; import routes from './routes'; import { Provider } from 'react-redux'; import store from './store'; ReactDOM.render( <Provider store={store}> {routes} </Provider>, document.getElementById('content') );
src/components/dialogs/dialog-license-registration.js
quanglam2807/webcatalog
import React from 'react'; import PropTypes from 'prop-types'; import Button from '@material-ui/core/Button'; import TextField from '@material-ui/core/TextField'; import Dialog from '@material-ui/core/Dialog'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core...
packages/material-ui-icons/src/Theaters.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path d="M18 3v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2V3h-2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm10 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V7h2v2z" /><path fill="none" d="M0 0h24v24H0z" /></Re...
src/components/repo-card/styles.js
eseom/Gitten
import { StyleSheet, Platform } from 'react-native' export default StyleSheet.create({ })
packages/material-ui-icons/src/ViewStreamSharp.js
Kagami/material-ui
import React from 'react'; import createSvgIcon from './utils/createSvgIcon'; export default createSvgIcon( <React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z" /></g></React.Fragment> , 'ViewStreamSharp');
examples/huge-apps/routes/Course/components/Nav.js
jepezi/react-router
import React from 'react'; import { Link } from 'react-router'; import AnnouncementsRoute from '../routes/Announcements'; import AssignmentsRoute from '../routes/Assignments'; import GradesRoute from '../routes/Grades'; const styles = {}; styles.nav = { borderBottom: '1px solid #aaa' }; styles.link = { display: ...