path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
app/main.js | shawnxusy/git-dashboard | import React from 'react';
import Router from 'react-router';
import ReactDOM from 'react-dom';
import createBrowserHistory from 'history/lib/createBrowserHistory';
import routes from './routes';
import Navbar from './components/Navbar';
let history = createBrowserHistory();
ReactDOM.render(<Router history={history}>... |
ajax/libs/styled-components/3.4.0-0/styled-components.cjs.min.js | cdnjs/cdnjs | "use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var hyphenate=_interopDefault(require("fbjs/lib/hyphenateStyleName")),isPlainObject=_interopDefault(require("is-plain-object")),Stylis=_interopDefault(require("stylis")... |
ajax/libs/react/0.12.0-rc1/react.js | thesandlord/cdnjs | /**
* React v0.12.0-rc1
*/
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.React=e()}}(function(){v... |
src/examples/basicExample/app.js | Hovakimyan/Drag-and-drop-tree-react | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import SortableTree, { toggleExpandedForAll } from '../../index';
import styles from './stylesheets/app.scss';
import '../shared/favicon/apple-touch-icon.png';
import '../shared/favicon/favicon-16x16.png';
import '../shared/favicon/favicon-32x3... |
src/components/MaintainTransactionalReport/MaintainTransactionReportRules.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import { Link } from 'react-router';
import { Tab, Tabs } from 'react-bootstrap';
import _ from 'lodash';
import {
actionFetchReportTemplate,
actio... |
ajax/libs/forerunnerdb/1.3.483/fdb-core.min.js | jdh8/cdnjs | !function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.ex... |
test/specs/views/Item/ItemHeader-test.js | ben174/Semantic-UI-React | import faker from 'faker'
import React from 'react'
import * as common from 'test/specs/commonTests'
import ItemHeader from 'src/views/Item/ItemHeader'
describe('ItemHeader', () => {
common.isConformant(ItemHeader)
common.rendersChildren(ItemHeader)
describe('content prop', () => {
it('renders text', () =>... |
src/routes/Home/components/HomeView.js | DaveSpringer/bmg-rap-sheets | import React from 'react'
import { Link } from 'react-router'
import './HomeView.scss'
export const HomeView = () => (
<div className='hidden-print'>
<h4>Welcome!</h4>
<p>
Bruce's Utility Belt is a collection of tools for the Batman Miniature
Game. It is intended to be a resource to help players ... |
frontend/src/app/App.js | kamirov/song-synonymizer | import React, { Component } from 'react';
import { Grid } from 'material-ui';
import SidebarContainer from '../sidebar/SidebarContainer';
import InputBoxContainer from '../synonymization/InputBoxContainer';
import OutputBoxContainer from '../synonymization/OutputBoxContainer';
import MessageContainer from "../message/... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | maxipad37/maxipad37.github.io | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
app/javascript/mastodon/features/compose/components/emoji_picker_dropdown.js | ambition-vietnam/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl } from 'react-intl';
import { EmojiPicker as EmojiPickerAsync } from '../../ui/util/async-components';
import Overlay from 'react-overlays/lib/Overlay';
import classNames from 'classnames';
import ImmutablePropTypes from ... |
src/decorators/withContext.js | epylinkn/monument | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { PropTypes, Component } from 'react'; // eslint-disable-line no-unused-vars
import emptyFunction from 'fbjs/lib/emptyFunction';
function withContext(ComposedComponent) {
return class WithContext extends Component {
static p... |
src/class/options/OptionsUtils.js | tegon/traktflix | import React from 'react';
import BrowserStorage from '../BrowserStorage';
import OptionsActionsCreators from './OptionsActionCreators';
import Settings from '../../settings';
class OptionsUtils {
constructor() {
this.options = [{
id: `disableScrobbling`,
name: ``,
description: ``,
value:... |
assets/jqwidgets/demos/react/app/listbox/keyboardnavigation/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxListBox from '../../../jqwidgets-react/react_jqxlistbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.myListBox.focus();
}
render() {
let countries = [
{ value: 'AF', label: 'Afgha... |
app/components/Tasks.js | andregoncalvesdev/ticktock-app | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators} from 'redux';
import styles from './Tasks.module.css';
import TaskListItem from './TaskListItem'
export default class Tasks extends Component {
constructor(props) {
super(props);
this.state = {
... |
ajax/libs/monaco-editor/0.5.0/min/vs/editor/editor.main.nls.de.js | seogi1004/cdnjs | /*!-----------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Version: 0.5.1(08f87581b67d53e0906047a4cf8809fe685ca23e)
* Released under the MIT license
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
*-------------------------------------... |
classic/src/scenes/content/src/Scenes/BrowserScene/BrowserScene.js | wavebox/waveboxapp | import PropTypes from 'prop-types'
import React from 'react'
import shallowCompare from 'react-addons-shallow-compare'
import BrowserView from 'wbui/Guest/BrowserView'
import BrowserSearch from './BrowserSearch'
import BrowserToolbar from './BrowserToolbar'
import { browserActions, browserStore } from 'stores/browser'
... |
client/node_modules/uu5g03/dist-node/doc-kit/component.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import Environment from '../environment/environment.js';
import {BaseMixin, ElementaryMixin, SectionMixin} from '../common/common.js';
import {Lsi, Section, Ul, Li, FileViewer, Table, Div} from '../bricks/bricks.js';
import Demo from './demo.js';
import SourceCode from './source-code.js';
im... |
src/svg-icons/content/forward.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentForward = (props) => (
<SvgIcon {...props}>
<path d="M12 8V4l8 8-8 8v-4H4V8z"/>
</SvgIcon>
);
ContentForward = pure(ContentForward);
ContentForward.displayName = 'ContentForward';
export default Conte... |
client/src/components/Tabs.js | ddrscott/sql_probe | import './Tabs.css';
import React, { Component } from 'react';
export default class extends Component {
render() {
const { props: { tabs, currentTab, onSelect } } = this;
return (
<ul className='Tabs flex flex--row flex-content-center'>
{tabs.map(tab =>
<li
className={`Tab... |
ajax/libs/instantsearch.js/1.8.12/instantsearch-preact.js | honestree/cdnjs | /*! instantsearch.js 1.8.12 | © Algolia Inc. and other contributors; Licensed MIT | github.com/algolia/instantsearch.js */(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && defi... |
ajax/libs/babel-core/4.7.0/browser.min.js | AMoo-Miki/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.babel=e()}}(function(){var e,n,l;return function t(e,n,... |
ajax/libs/redux-little-router/8.1.0/redux-little-router.min.js | sufuf3/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):"object"==typeof exports?exports.ReduxLittleRouter=t(require("react")):e.ReduxLittleRouter=t(e.React)}(this,function(e){return function(e){function t(n){if(r[n])r... |
webapp-src/src/Hutch/LangDropdown.js | babelouest/hutch | import React, { Component } from 'react';
import i18next from 'i18next';
import messageDispatcher from '../lib/MessageDispatcher';
class LangDropdown extends Component {
constructor(props) {
super(props);
this.state = {
config: props.config
};
this.changeLang = this.changeLang.bind(this... |
src/registerServiceWorker.js | michaelghinrichs/school-working-days-calculator | // In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
// it offline capabilities. However, it also means that developers (and users)
// will only see deployed updates on the "N+1" visit to a page, since previously... |
app/components/TerminalLogs.js | tiberiusuciu/rpg-io | import React, { Component } from 'react';
import styles from '../styles/TerminalLogs.css';
// TODO: Change to moment.js timing
let id = 0;
class TerminalLogs extends Component {
render() {
return (
<div className={styles.lineLength} >
<ul className={styles.listStyling}>
{
// Log = {
// use... |
clients/packages/admin-client/src/mobilizations/widgets/__plugins__/pressure/components/pressure-form/index.js | nossas/bonde-client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import classnames from 'classnames';
import { FormattedMessage, injectIntl, intlShape } from 'react-intl';
import * as pressureHelper from '../../../../../../mobilizations/widgets/utils/pressure-helper';
import {
isValidEmail,
isValidPhon... |
src/React/Widgets/ProgressLoaderWidget/index.js | Kitware/paraviewweb | import React from 'react';
import PropTypes from 'prop-types';
import style from 'PVWStyle/ReactWidgets/ProgressLoaderWidget.mcss';
export default function ProgressLoaderWidget(props) {
return (
<div className={style.container}>
<div className={style.loader} />
<div className={style.message}>{props.... |
node_modules/react-router/es6/RoutingContext.js | ottomajik/react-demo | 'use strict';
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function _classCallCheck(instance, Constructor... |
src/components/Accession/test.js | ProteinsWebTeam/interpro7-client | // @flow
import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import { Accession } from '.';
const renderer = new ShallowRenderer();
describe('<Accession />', () => {
test('should render the accession component for UniProt reviewed', () => {
renderer.render(
<Accession db... |
docs/src/app/components/pages/components/SelectField/ExampleFloatingLabel.js | owencm/material-ui | import React from 'react';
import SelectField from 'material-ui/SelectField';
import MenuItem from 'material-ui/MenuItem';
const items = [
<MenuItem key={1} value={1} primaryText="Never" />,
<MenuItem key={2} value={2} primaryText="Every Night" />,
<MenuItem key={3} value={3} primaryText="Weeknights" />,
<Menu... |
docs/src/examples/jalaali.js | mberneti/react-datepicker2 | import React from 'react'
import momentJalaali from 'moment-jalaali'
import DatePicker from '../../../src/components/DatePicker';
class component extends React.Component {
constructor(props) {
super(props);
this.state = {
value: momentJalaali('1396/7/6', 'jYYYY/jM/jD')
};
}
render() {
retur... |
ajax/libs/angular.js/1.0.1/angular-scenario.js | bergie/cdnjs | /*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
ajax/libs/react-dom/16.3.0/cjs/react-dom-unstable-native-dependencies.development.js | seogi1004/cdnjs | /** @license React v16.3.0
* react-dom-unstable-native-dependencies.development.js
*
* Copyright (c) 2013-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.
*/
'use strict';
if (process.env.NODE_ENV !== "produc... |
ajax/libs/react/0.4.2/react.js | oivoodoo/cdnjs | /**
* React v0.4.2
*/
(function(e){if("function"==typeof bootstrap)bootstrap("react",e);else if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else if("undefined"!=typeof ses){if(!ses.ok())return;ses.makeReact=e}else"undefined"!=typeof window?window.React=e():globa... |
ReactFlux/node_modules/reactify/node_modules/react-tools/src/modern/class/__tests__/ReactES6Class-test.js | wandarkaf/React-Bible | /**
* Copyright 2013-2015, 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-co... |
node_modules/react-icons/io/flash-off.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoFlashOff = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m9 35.3c-5.4-3-9-8.7-9-15.3 0-9.7 7.8-17.5 17.5-17.5 1.9 0 3.7 0.3 5.3 0.9 0.2 0 0.2 0 0.4 0.1 0.9 0.3 1.9 0.7 2.7 1.2 5.4 3 9.1 8.7 9.1 15.3 0 9.7-7.8 17.5-17.5 17.... |
ajax/libs/F2/1.2.1/f2.min.js | zimbatm/cdnjs | /*! F2 - v1.2.1 - 08-08-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obta... |
.eslintrc.js | CrewBuilder/crew-builder | /**
* These rules enforce Hack Reactor's style guide.
* Visit this repo for more information:
* https://github.com/reactorcore/eslint-config-hackreactor
*/
module.exports = {
env: {
'es6': true
},
parserOptions: {
ecmaFeatures: {
'jsx': true,
'experimentalObjectRestSpread': true,
},... |
fields/components/columns/CloudinaryImageSummary.js | mikaoelitiana/keystone | import React from 'react';
// import CloudinaryImage from 'react-cloudinary-img';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
const IMAGE_SIZE = 18;
const linkStyle = {
marginRight: 8,
};
const boxStyle = {
borderRadius: 3,
display: 'inline-block',
height: IMAGE_SIZE,
overflow... |
app/routes.js | robertfall/community-assessment | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from 'shared/components/App';
import Menu from 'shared/components/Menu';
import NotFoundPage from 'shared/components/NotFoundPage';
import households from 'households';
const { Form, Index, Delete } = households.components;
export... |
packages/core/src/icons/components/Loading.js | iCHEF/gypcrete | import React from 'react';
export default function SvgLoading(props) {
return (
<svg
id="loading_svg__loading_svg"
xmlns="http://www.w3.org/2000/svg"
width="1em"
height="1em"
viewBox="0 0 32 32"
{...props}
>
<defs>
<style />
</defs>
<path
... |
ajax/libs/mobx-react/0.1.5/index.js | jonobr1/cdnjs | (function() {
function mrFactory(mobservable, React) {
var reactComponentId = 1;
var isTracking = false;
var observeUntilInvalid = mobservable.observeUntilInvalid;
// WeakMap<Node, Object>;
var componentByNodeRegistery = typeof WeakMap !== "undefined" ? new WeakMap() : undef... |
hit-the-road-react/src/components/AppFooter.js | buckmelton/hit-the-road | import React, { Component } from 'react';
import '../css/App.css';
import '../css/normalize.css';
import '../css/skeleton.css';
class AppFooter extends Component {
render() {
return (
<div className="htr-footer">
<p>About - Press - Contact Us - FAQ - Privacy Policy - Careers - Popular Destinations ... |
src/components/Feedback/Feedback.js | kevinchau321/TReactr | /**
* 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 withStyles from 'isom... |
src/routes/Counter/components/Counter.js | yhhuang79/admin-web | import React from 'react'
export const Counter = (props) => (
<div style={{ margin: '0 auto' }} >
<h2>Counter: {props.counter}</h2>
<button className='btn btn-default' onClick={props.increment}>
Increment
</button>
{' '}
<button className='btn btn-default' onClick={props.doubleAsync}>
... |
src/javascript/index.js | knowbody/redux-react-router-example-app | import 'babel/polyfill';
import React from 'react';
import { render } from 'react-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import createHashHistory from 'history/lib/createHashHistory';
import Root from './Root';
/*
Needed for onTouchTap
Can go away when react 1.0 release
Check this repo:... |
src/decorators/withViewport.js | jbsouvestre/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from '../../node_modules/react/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height:... |
app/index.js | JedWatson/picture-tour-app | import './css/main.css';
import React from 'react';
import ReactDOM from 'react-dom';
import CSSTransitionGroup from 'react-addons-css-transition-group';
import StepStore from './stores/step';
import Start from './components/Start';
import Step from './components/Step';
const App = React.createClass({
getInitialSt... |
src/utils/CustomPropTypes.js | nickuraltsev/react-bootstrap | import React from 'react';
import warning from 'react/lib/warning';
import childrenToArray from './childrenToArray';
const ANONYMOUS = '<<anonymous>>';
/**
* Create chain-able isRequired validator
*
* Largely copied directly from:
* https://github.com/facebook/react/blob/0.11-stable/src/core/ReactPropTypes.js#L9... |
src/js/components/ui/CardContent/CardContent.js | nekuno/client | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import styles from './CardContent.scss';
import CardIcons from '../CardIcons';
import Image from '../Image';
import LinkImageService from '../../../services/LinkImageService';
import NetworkLine from "../NetworkLine/NetworkLine";
import Conte... |
examples/nextjs/pages/_app.js | oliviertassinari/material-ui | import * as React from 'react';
import PropTypes from 'prop-types';
import Head from 'next/head';
import { ThemeProvider } from '@mui/material/styles';
import CssBaseline from '@mui/material/CssBaseline';
import { CacheProvider } from '@emotion/react';
import theme from '../src/theme';
import createEmotionCache from '.... |
ajax/libs/react-router/0.9.4/react-router.js | wenzhixin/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.ReactRouter=e()}}(function(){var define,module,export... |
example/examples/Overlays.js | adamivancza/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
} from 'react-native';
import MapView from 'react-native-maps';
const { width, height } = Dimensions.get('window');
const ASPECT_RATIO = width / height;
const LATITUDE = 37.78825;
const LONGITUDE = -122.4324;
const LATITUDE_DELTA = 0.092... |
components/react-semantify/src/views/card.js | react-douban/douban-book-web | import React from 'react';
import ClassGenerator from '../mixins/classGenerator';
let defaultClassName = 'ui card';
const Card = React.createClass({
mixins: [ClassGenerator],
render: function () {
let {className, ...other} = this.props;
return (
<div {...other} className={this.getClassName(defau... |
app/javascript/mastodon/components/avatar_overlay.js | ikuradon/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { autoPlayGif } from '../initial_state';
export default class AvatarOverlay extends React.PureComponent {
static propTypes = {
account: ImmutablePropTypes.map.isRequired,
friend:... |
src/_stories/BarChartStory.js | guzmonne/conapps-charts | import React from 'react'
import {text, boolean, number, object, color, select} from '@kadira/storybook-addon-knobs'
import Chance from 'chance'
import {BLUE, DARK_BLUE} from './variables.js'
import TooltipLinearScale from './components/TooltipLinearScale.js'
import BarChart from '../components/BarChart.js'
const ch... |
src/app.js | caalberts/react-game-of-life | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import App from './components/app.react'
import Universe from './life/universe'
import ecosystemReducer from './reducers/ecosystem-reducer'
let height = Math.floor(window.innerHeight / ... |
tests/baselines/reference/jsxComplexSignatureHasApplicabilityError.js | microsoft/TypeScript | //// [jsxComplexSignatureHasApplicabilityError.tsx]
/// <reference path="/.lib/react16.d.ts" />
import * as React from "react";
interface Props<T extends OptionValues> {
value?: Option<T> | T;
onChange?(value: Option<T> | undefined): void;
}
type ExtractValueType<T> = T extends ReactSelectProps<infer U> ? ... |
src/svg-icons/editor/format-strikethrough.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatStrikethrough = (props) => (
<SvgIcon {...props}>
<path d="M10 19h4v-3h-4v3zM5 4v3h5v3h4V7h5V4H5zM3 14h18v-2H3v2z"/>
</SvgIcon>
);
EditorFormatStrikethrough = pure(EditorFormatStrikethrough);
Edit... |
ajax/libs/yui/3.3.0/loader/loader.js | anshulverma/cdnjs | YUI.add('loader-base', function(Y) {
/**
* The YUI loader core
* @module loader
* @submodule loader-base
*/
if (!YUI.Env[Y.version]) {
(function() {
var VERSION = Y.version,
BUILD = '/build/',
ROOT = VERSION + BUILD,
CDN_BASE = Y.Env.base,
GALLERY_VERSI... |
src/js/index.js | grommet/grommet-qikshot | import 'whatwg-fetch';
import '../scss/index.scss';
import React from 'react';
import { render } from 'react-dom';
import { browserHistory, match } from 'react-router';
import QikshotContext from './QikshotContext';
import routes from './routes';
let element = document.getElementById('content');
let asyncData;
let... |
client/components/about/About.spec.js | UruIT/react-seed | import React from 'react';
import ShallowRenderer from 'react-test-renderer/shallow';
import About from './About';
describe('<About/>', () => {
it('snapshot', () => {
const renderer = new ShallowRenderer();
const tree = renderer.render(<About />);
expect(tree).toMatchSnapshot();
});
});
|
node_modules/browser-sync/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | andrewpen/apendleton | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
src/server/render.js | fustic/hubrick-frontend-challenge | // Express middleware to render the app server-side and expose its state
// to the client
import React from 'react';
import serialize from 'serialize-javascript';
import app from '../app';
import HtmlDocument from './HtmlDocument';
import { navigateAction } from 'fluxible-router';
let webpackStats;
if (process.env... |
src/interface/Portal.js | ronaldpereira/WoWAnalyzer | import React from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import PortalTarget from './PortalTarget';
class Portal extends React.PureComponent {
static propTypes = {
children: PropTypes.node.isRequired,
};
state = {
elem: null,
};
componentDidMount() {
this.... |
ajax/libs/primereact/6.6.0-rc.1/avatar/avatar.esm.js | cdnjs/cdnjs | import React, { Component } from 'react';
import { classNames, ObjectUtils } from 'primereact/core';
function _classCallCheck(instance, Constructor) {
if (!(instance instanceof Constructor)) {
throw new TypeError("Cannot call a class as a function");
}
}
function _defineProperties(target, props) {
for (var ... |
demo/src/parallax_starfield.js | RinconStrategies/react-web-animation | /* eslint-disable react/no-did-mount-set-state */
import React, { Component } from 'react';
import range from 'lodash.range';
import assign from 'lodash.assign';
import { AnimationGroup, Animatable } from 'react-web-animation';
export default class ParallaxStarfield extends Component {
constructor() {
super();
... |
webpack.config.babel.js | bvaughn/react-wait-to-render | 'use strict';
import fs from 'fs';
import path from 'path';
import webpack from 'webpack';
import HtmlWebpackPlugin from 'html-webpack-plugin';
import ExtractTextPlugin from 'extract-text-webpack-plugin';
import Clean from 'clean-webpack-plugin';
import merge from 'webpack-merge';
import React from 'react';
import Rea... |
ajax/libs/forerunnerdb/1.3.795/fdb-core+views.js | cdnjs/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/rxjs/2.4.5/rx.lite.extras.compat.js | danut007ro/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'und... |
ajax/libs/material-ui/5.0.0-alpha.8/Avatar/Avatar.min.js | cdnjs/cdnjs | "use strict";var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard"),_interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=exports.styles=void 0;var _extends2=_interopRequireDefault(require("@bab... |
src/svg-icons/action/system-update-alt.js | nathanmarks/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSystemUpdateAlt = (props) => (
<SvgIcon {...props}>
<path d="M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13h-6v1.99h6v14.03H3V5.49h6V3.5H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-14c0-1.1-.9-2-2-2z"/>
... |
js/App/Components/TabViews/SubViews/Jobs/Weekdays.js | telldus/telldus-live-mobile-v3 | /**
* Copyright 2016-present Telldus Technologies AB.
*
* This file is part of the Telldus Live! app.
*
* Telldus Live! app is free : 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
*... |
public/js/components/Sections/Dashboard.js | enaqx/stressor | /**
* Dashboard Section Component
*/
'use strict';
var React = require('react');
var SideMenu = require('../Menu/SideMenu');
var DashboardSection = React.createClass({
render: function() {
return (
<div>
<SideMenu />
<div className = 'content'>
<h3>Dashboard Section</h3>
... |
app/jsx/assignments_2/teacher/components/ConfirmDialog.js | djbender/canvas-lms | /*
* Copyright (C) 2019 - 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/TimeseriesComponent.spec.js | maartenlterpstra/GeoWeb-FrontEnd | import React from 'react';
import TimeseriesComponent from './TimeseriesComponent';
import { mount } from 'enzyme';
import moment from 'moment';
describe('(Component) TimeseriesComponent', () => {
it('Renders a TimeseriesComponent', () => {
const location = {
name: 'EHAM',
x: 4.77,
y: 52.3
... |
assets/javascripts/kitten/components/graphics/animations/lendo-loading-animation/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
import styled, { keyframes } from 'styled-components'
import classNames from 'classnames'
const ola = keyframes`
0% {
transform: translateY(0);
}
60% {
transform: translateY(0);
}
68% {
transform: translateY(0.8px);
}
95% {
tran... |
src/components/Pagination/Pagination.Skeleton.js | wfp/ui | import React from 'react';
import SkeletonText from '../SkeletonText';
export default class PaginationSkeleton extends React.Component {
render() {
return (
<div className="wfp--pagination wfp--skeleton">
<div className="wfp--pagination__left">
<SkeletonText width="70px" />
<Ske... |
docs/app/Examples/views/Feed/Content/FeedExampleExtraText.js | aabustamante/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const FeedExampleExtraText = () => (
<Feed>
<Feed.Event>
<Feed.Label image='/assets/images/avatar/small/laura.jpg' />
<Feed.Content>
<Feed.Date>3 days ago</Feed.Date>
<Feed.Summary>
<a>Laura Faucet</a> create... |
imports/ui/components/EmailNotVerified/EmailNotVerified.js | jamiebones/Journal_Publication |
import React from 'react';
import PropTypes from 'prop-types';
import { Meteor } from 'meteor/meteor';
import { Bert } from 'meteor/themeteorchef:bert';
import { createContainer } from 'meteor/react-meteor-data';
import { Row, Col , Button } from 'react-bootstrap';
const re... |
assets/vendor/modernizr/test/js/lib/jquery-1.7b2.js | t0t/fkrquimica | /*!
* jQuery JavaScript Library v1.7b2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
src/pages/create-run-button.js | getinsomnia/insomnia.rest | import React from 'react';
import SocialCards from '../components/social-cards';
import Title from '../partials/title';
import CreateRunLink from '../components/create-run-link';
export default () => (
<React.Fragment>
<article>
<Title>Create Run Button</Title>
<SocialCards title="Insomnia" summary="... |
node_modules/node_modules/material-ui/svg-icons/action/pets.js | SerendpityZOEY/Fixr-RelevantCodeSearch | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
client/components/about.js | nizarayari/PersonalWebsite | import React, { Component } from 'react';
import SkillSet from './skillSet'
export default class About extends Component {
render(){
return (
<div className='about'>
<div className="about__header">
<h3 className="about__header__title" id='about-me'> About myself </h3>
<div ... |
client/src/components/Login.js | serban-petrescu/candidate-management | import React from 'react';
import ButtonLogin from './ButtonLogin';
import {Grid, FormGroup, FormControl, ControlLabel, HelpBlock, Row, Col} from 'react-bootstrap';
import {verifyUser} from '../actions/LoginLogout';
import {bindActionCreators} from "redux";
import {connect} from "react-redux";
import {showNotification}... |
client/src/modules/journal/journal.view.js | euqen/spreadsheet-core | 'use strict';
import React from 'react';
import {Link} from 'react-router';
import bind from './../../infrastructure/store-connector';
import dispatcher from './../../infrastructure/dispatcher';
import ErrorCollector from './../../components/error-collector';
import counterpart from 'counterpart';
import Translate fro... |
packages/material-ui-icons/src/Clear.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><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 12z" /><path fill="none" d="M0 0h24v24H0z" /></React.Fragment>
, 'Clear');
|
ajax/libs/onsen/1.3.6/js/onsenui_all.min.js | ahocevar/cdnjs | /*! onsenui - v1.3.6 - 2015-07-23 */
!function(){function getAttributes(element){return Node_get_attributes.call(element)}function setAttribute(element,attribute,value){try{Element_setAttribute.call(element,attribute,value)}catch(e){}}function removeAttribute(element,attribute){Element_removeAttribute.call(element,attr... |
ee/app/engagement-dashboard/client/components/UsersTab/index.stories.js | iiet/iiet-chat | import { Margins } from '@rocket.chat/fuselage';
import React from 'react';
import { UsersTab } from '.';
export default {
title: 'admin/enterprise/engagement/UsersTab',
component: UsersTab,
decorators: [
(fn) => <Margins children={fn()} all='x24' />,
],
};
export const _default = () => <UsersTab />;
|
docs/src/pages/components/switches/FormControlLabelPosition.js | lgollut/material-ui | import React from 'react';
import Switch from '@material-ui/core/Switch';
import FormGroup from '@material-ui/core/FormGroup';
import FormControlLabel from '@material-ui/core/FormControlLabel';
import FormControl from '@material-ui/core/FormControl';
export default function FormControlLabelPosition() {
return (
... |
app-src/modules/issueList/index.js | mBourges/speedbacklog | import React from 'react';
import { connect } from 'react-redux';
import IssueListComponent from './component';
import { fetchIssues } from './actions';
class IssueList extends React.Component {
componentWillMount() {
this.props.getIssues();
}
render() {
return (<IssueListComponent
... |
ajax/libs/yui/3.7.2/event-custom-base/event-custom-base-debug.js | visualjeff/cdnjs | YUI.add('event-custom-base', function (Y, NAME) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @mo... |
src/svg-icons/alert/error-outline.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AlertErrorOutline = (props) => (
<SvgIcon {...props}>
<path d="M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 ... |
packages/material-ui-icons/src/PlaceTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M17 9c0-2.76-2.24-5-5-5S7 6.24 7 9c0 2.85 2.92 7.21 5 9.88 2.12-2.69 5-7 5-9.88zM9.5 9c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5... |
Ethereum-based-Roll4Win/node_modules/react-prop-types/lib/componentOrElement.js | brett-harvey/Smart-Contracts | 'use strict';
exports.__esModule = true;
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
var _react = require('react');
va... |
ajax/libs/yui/3.17.1/datatable-body/datatable-body-debug.js | emijrp/cdnjs | /*
YUI 3.17.1 (build 0eb5a52)
Copyright 2014 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base... |
src/node_modules/babel-preset-es2015/node_modules/babel-plugin-transform-regenerator/node_modules/babel-core/node_modules/babel-register/node_modules/core-js/modules/es6.promise.js | ksparakis/cyan | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
ajax/libs/6to5/1.13.3/browser.js | kellyselden/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
app/components/LotGDNavigator.js | lotgd/client-react-native | // @flow
'use strict';
import React, { Component } from 'react';
import { View } from 'react-native';
import { StackNavigator } from 'react-navigation';
import util from 'util';
import Login from './Login';
import CharacterCreate from './CharacterCreate';
import UserCreate from './UserCreate';
import Home from './Hom... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.