path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
node_modules/react-prop-types/lib/componentOrElement.js | xuan6/admin_dashboard_local_dev | '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... |
src/svg-icons/file/cloud.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let FileCloud = (props) => (
<SvgIcon {...props}>
<path d="M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96z"/>... |
front/app/js/components/containers/Footer.js | nudoru/React-Starter-3 | import React from 'react';
import { css } from 'emotion';
import { colorList, metrics } from '../../theme/Theme';
import { Container } from '../controls/containers/Container';
const componentStyle = css`
position: relative;
display: flex;
background-color: ${colorList.grey8};
padding-top: ${metrics.spacing[3]}... |
Mvc.JQuery.Datatables.Example/Scripts/jquery-1.5.1.min.js | mcintyre321/mvc.jquery.datatables | /*!
* Note: While Microsoft is not the author of this file, Microsoft is
* offering you a license subject to the terms of the Microsoft Software
* License Terms for Microsoft ASP.NET Model View Controller 3.
* Microsoft reserves all other rights. The notices below are provided
* for informational purposes only and are ... |
src/components/ToggleSlider/ToggleSlider.stories.js | InsideSalesOfficial/insidesales-components | import React from 'react';
import { ThemeProvider } from 'styled-components';
import { storiesOf, action } from '@storybook/react';
import ToggleSlider from './';
import { colors } from '../styles/colors.js';
import { generateFlexedThemeBackground } from '../styles/index.js';
class ToggleSliderWrapper extends React.... |
analysis/druidguardian/src/modules/features/FrenziedRegenGoEProcs.js | yajinni/WoWAnalyzer | import React from 'react';
import { formatPercentage } from 'common/format';
import { SpellIcon } from 'interface';
import StatisticBox, { STATISTIC_ORDER } from 'parser/ui/StatisticBox';
import SPELLS from 'common/SPELLS';
import Analyzer from 'parser/core/Analyzer';
import GuardianOfElune from './GuardianOfElune';
... |
src/components/reported_selector.js | deepdeev/nocrime-frontend | import React from 'react';
const ReportedSelector = (props) => (
<span >
<label>{props.title}</label>
<span >
{props.options.map(option => {
return (
<label key={option}>
<input className="space"
name={props.setName}
onChange={props.controlFunc}
value={option}
checked... |
public/systemjs/app/pages/fetch/jade.js | snowkeeper/keystonejs-site | import React from 'react'
import jade from 'jade/lib/runtime'
import jadeTemplates from '../../html/templates'
import api from '../../html/markedApi'
import _ from 'lodash'
import {languages, routes, config} from '../../config'
import {baseRoute, cleanPath, getFileName} from '../../common/util'
import Debug from 'debug... |
fancybox/lib/jquery-1.10.1.min.js | geynske006/jenjen | /*! jQuery v1.10.1 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.1.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.1",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
client/js/components/parts/GameInterface/PlayerInfo/Card.react.js | Kineolyan/Catane | 'use strict';
/*
React component containing the card
*/
import React from 'react';
import {Group, Text} from 'react-art';
import Rectangle from 'react-art/shapes/rectangle';
export default class Card extends React.Component {
/**
* @return {React.Element} the rendered element
*/
render() {
return ... |
packages/wix-style-react/src/FeatureList/FeatureList.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { st, classes } from './FeatureList.st.css';
import { dataHooks } from './constants';
import FluidColumns from '../common/FluidColumns';
import Text from '../Text';
/** FeatureList is a group of layouts that displays image, description and title. ... |
src/shipit/frontend/src/components/NotFound/index.js | lundjordan/services | import React from 'react';
import ErrorStatus from '../Error';
export default class NotFound extends React.PureComponent {
render() {
const ex = Object.assign(
new Error(`The requested route ${this.props.location.pathname} was not found.`),
{
response: {
status: 404,
},
... |
Libraries/ReactNative/ReactNativeDOMIDOperations.js | judastree/react-native | /**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @provides... |
src/components/common/Header.js | blurbyte/node-travis-test | import React from 'react';
//components
import BlurbyteLogo from './Logo';
const styles = require('./Header.css');
const Header = () => (
<header className={styles.banner} role="banner">
<span className={styles.logo}><BlurbyteLogo /></span>
<p className={styles.description}>Node.js Travis CI Test</p>
</h... |
public/js/cat_source/es6/components/icons/IconTick.js | matecat/MateCat | import React from 'react'
const IconTick = ({width = '42', height = '42', style, color = '#000000'}) => {
return (
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 12"
width={`${width}px`}
height={`${height}px`}
style={style}
>
<path
fill={color}
fil... |
node_modules/react-icons/fa/sort-numeric-desc.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaSortNumericDesc = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m33 6.5q0-1.5-0.9-2.6t-2.3-1.2q-1.2 0-1.9 0.8t-0.7 2.1 0.8 2.1 2.4 0.9q1.1 0 1.9-0.6t0.7-1.6z m-13.6 25.6q0 0.3-0.2 0.6l-7.1 7.1q-0.2 0.2-0.5 0.2-0.3 0-0.5-0.... |
gravity/gravity-frontend/src/pill.js | DataKind-BLR/analytics | import React, { Component } from 'react';
class HighlightPill extends Component {
render() {
return (
<div className='stat-tile'>
<span>{this.props.value}</span>
<label>{this.props.label}</label>
</div>
)
}
}
export default HighlightPill;
|
src/svg-icons/device/screen-lock-portrait.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceScreenLockPortrait = (props) => (
<SvgIcon {...props}>
<path d="M10 16h4c.55 0 1-.45 1-1v-3c0-.55-.45-1-1-1v-1c0-1.11-.9-2-2-2-1.11 0-2 .9-2 2v1c-.55 0-1 .45-1 1v3c0 .55.45 1 1 1zm.8-6c0-.66.54-1.2 1.2-1.... |
src/class/popup/LoginButton.js | MrMamen/traktflix | import PropTypes from 'prop-types';
import React from 'react';
import ErrorBoundary from '../ErrorBoundary';
import Loading from './Loading';
class LoginButton extends React.Component {
constructor(props) {
super(props);
}
async handleClick(e) {
this.props.onLoginClicked(e);
const options = await br... |
ajax/libs/yui/3.14.0/datatable-body/datatable-body-coverage.js | Mrkebubun/cdnjs | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/datatable-body/datatable-body.js']) {
__coverage__['build/datatable-body/datatable-body.js'] = {"path":"build/datatable-body/datatable-body.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13"... |
src/routes/login/login.js | brian-kilpatrick/react-starter-kit | import React from 'react';
import PropTypes from 'prop-types';
import { logger } from '../../utils';
import history from '../../history';
function Login({flash}) {
return (
<form method="POST">
Email: <br/>
<input name="email" type="text" />
<br/>
Password: <br/>
<inpu... |
src/index.js | atyenoria/chat-server-client | import React from 'react';
import { render } from 'react-dom';
import { App } from './App';
render(<App />, document.getElementById('root'));
|
packages/veritone-react-common/src/components/DataTable/story.js | veritone/veritone-sdk | import React from 'react';
import { storiesOf } from '@storybook/react';
import faker from 'faker';
import { flow, map, range, startCase, truncate, upperFirst } from 'lodash';
import { arrayOf, object, func } from 'prop-types';
import MuiTable from '@material-ui/core/Table';
import TableRow from '@material-ui/core/Tabl... |
ajax/libs/react-data-grid/1.0.75/react-data-grid.js | extend1994/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-dom"], factory);
else if(typeof exports === 'obje... |
lib/cli/generators/METEOR/template/.stories/index.js | bigassdragon/storybook | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { linkTo } from '@storybook/addon-links';
import Button from './Button';
import Welcome from './Welcome';
storiesOf('Welcome', module)
.add('to Storybook', () => (
<Welcome showApp... |
backbone.js | gonrin/GonrinJS | // Backbone.js 1.2.3
// (c) 2010-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
// Backbone may be freely distributed under the MIT license.
// For all details and documentation:
// http://backbonejs.org
(function(factory) {
// Establish the root object, `window` (`se... |
packages/ui-toolkit/src/tooltip/index.js | yldio/joyent-portal | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import { Popper as BasePopper, Arrow } from 'react-popper';
import rndId from 'rnd-id';
import remcalc from 'remcalc';
import is from 'styled-is';
import style from './style';
const arrowClassName = r... |
node_modules/react-icons/fa/cc-discover.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaCcDiscover = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m5.5 17.9q0 0.9-0.7 1.5-0.5 0.4-1.5 0.4h-0.3v-3.8h0.3q1.1 0 1.5 0.5 0.7 0.5 0.7 1.4z m31.1-1.1q0 0.9-1.1 0.9h-0.4v-1.8h0.4q1.1 0 1.1 0.9z m-29.9 1.1q0-1.3-0.9-2.1t... |
ajax/libs/vue/2.1.8/vue.common.js | holtkamp/cdnjs | /*!
* Vue.js v2.1.8
* (c) 2014-2016 Evan You
* Released under the MIT License.
*/
'use strict';
/* */
/**
* Convert a value to a string that is actually rendered.
*/
function _toString (val) {
return val == null
? ''
: typeof val === 'object'
? JSON.stringify(val, null, 2)
: String(val)
}... |
test/TooltipSpec.js | xsistens/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Tooltip from '../src/Tooltip';
describe('Tooltip', function () {
it('Should output a tooltip with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Tooltip positionTop={10} positionLeft={20}>
... |
src/components/Login.js | cheminfo/visualizer-on-tabs | import React from 'react';
import superagent from 'superagent';
const conf = require('../config/config.js');
const styles = {
position: 'fixed',
right: 20,
top: 10
};
class Login extends React.Component {
constructor() {
super();
this.state = {};
this.logout = this.logout.bind(this);
if (!con... |
src/routes/ztabs/index.js | Nikhil22/trooper | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-2016 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 ZHeader from '../../comp... |
src/components/DBTable/InnerForm.js | RodgerLai/nodejs-nedb-excel | import React from 'react';
import {
Form,
Icon,
Row,
Col,
Button,
message,
Upload,
notification
} from 'antd';
import globalConfig from 'config.js';
import moment from 'moment'; // antd@2.0之后, 日期相关的都变成moment对象了, 以前是Date对象
import FormSchemaUtils from './InnerFormSchemaUtils';
import Logger from '../../u... |
packages/mui-icons-material/lib/SupervisorAccountOutlined.js | oliviertassinari/material-ui | "use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
examples/todomvc/index.js | dsimmons/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
import 'todomvc-app-css/index.css';
React.render(
<Root />,
document.getElementById('root')
);
|
ajax/libs/clappr/0.0.26/clappr.js | iskitz/cdnjs | require=(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o]... |
src/hoister.js | ulisesbocchio/react-redux-boilerout | import React from 'react';
export function hoistClassBehavior(clazz, behaviour) {
const instanceKeys = Reflect.ownKeys(behaviour);
for (let property of instanceKeys) {
const hoistedDescriptor = Reflect.getOwnPropertyDescriptor(behaviour, property);
const originalDescriptor = Reflect.getOwnPrope... |
ajax/libs/jQRangeSlider/4.1.1/jQRangeSliderBar.js | peteygao/cdnjs | /**
* jQRangeSlider
* A javascript slider selector that supports dates
*
* Copyright (C) Guillaume Gautreau 2012
* Dual licensed under the MIT or GPL Version 2 licenses.
*
*/
(function($, undefined){
"use strict";
$.widget("ui.rangeSliderBar", $.ui.rangeSliderDraggable, {
options: {
leftHandle: null,
... |
shared/app/Tms/components/Icons/FavoriteOn.js | pebie/react-universally-node-config | import PropTypes from 'prop-types';
import React from 'react';
/**
* FavoriteOn icon
*
* @return {jsx}
*/
const FavoriteOn = ({ svgClass, pathClass }) =>
(<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 54 55"
className={svgClass}
aria-labelledby="title desc"
tabIndex="0"
role="img"
... |
client/components/Flass/Lecture/Analysis/SingleChoice/SingleChoiceComponent.js | Nexters/flass | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { SingleChoice } from './SingleChoiceStyled';
const propTypes = {
answer: PropTypes.string.isRequired,
userAnswers: PropTypes.array.isRequired,
isCorrect: PropTypes.bool.isRequired
};
const defaultProps = {};
class SingleChoic... |
frontend/src/TrackFile/Editor/TrackFileEditorModalContentConnector.js | lidarr/Lidarr | /* eslint max-params: 0 */
import _ from 'lodash';
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { fetchQualityProfileSchema } from 'Store/Actions/settingsActions';
import { clearTracks, fetchTracks ... |
src/svg-icons/maps/directions-car.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsCar = (props) => (
<SvgIcon {...props}>
<path d="M18.92 6.01C18.72 5.42 18.16 5 17.5 5h-11c-.66 0-1.21.42-1.42 1.01L3 12v8c0 .55.45 1 1 1h1c.55 0 1-.45 1-1v-1h12v1c0 .55.45 1 1 1h1c.55 0 1-.45 1-1... |
ajax/libs/yui/3.0.0beta1m3/yui/yui.js | maruilian11/cdnjs | /**
* YUI core
* @module yui
*/
(function() {
var _instances = {}, _startTime = new Date().getTime(), p, i,
add = function () {
if (window.addEventListener) {
return function(el, type, fn, capture) {
el.addEventListener(type, fn, (!!capture));
... |
templates/rubix/rails/rails-example/src/routes/EditTodo.js | jeffthemaximum/jeffline | import React from 'react';
import ReactDOM from 'react-dom';
import { withRouter } from 'react-router';
import {
Row,
Col,
Grid,
Form,
Panel,
Button,
Checkbox,
PanelBody,
FormGroup,
FormControl,
ControlLabel,
PanelContainer } from '@sketchpixy/rubix';
import client from '@sketchpixy/rubix/lib... |
node_modules/react-icons/ti/social-instagram-circular.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiSocialInstagramCircular = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 5c-8.3 0-15 6.7-15 15s6.7 15 15 15 15-6.7 15-15-6.7-15-15-15z m0 11.7c1.8 0 3.3 1.5 3.3 3.3s-1.5 3.3-3.3 3.3-3.3-1.5-3.3-3.3 1.5-3.3 3.3-3.3z m4.7... |
src/parser/deathknight/frost/modules/features/AlwaysBeCasting.js | FaideWW/WoWAnalyzer | import React from 'react';
import CoreAlwaysBeCasting from 'parser/shared/modules/AlwaysBeCasting';
import SPELLS from 'common/SPELLS';
import { formatPercentage } from 'common/format';
import { STATISTIC_ORDER } from 'interface/others/StatisticBox';
import SpellLink from 'common/SpellLink';
class AlwaysBeCasting ex... |
node_modules/react/lib/ReactUpdateQueue.js | niole/react-scroll-component | /**
* Copyright 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.
*
* @providesModule React... |
src/svg-icons/communication/live-help.js | kittyjumbalaya/material-components-web | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationLiveHelp = (props) => (
<SvgIcon {...props}>
<path d="M19 2H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h4l3 3 3-3h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 16h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 11.9 13 12.5 13... |
src/redux/utils/createDevToolsWindow.js | cluk3/SkyProgrammingTest | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import DevTools from '../../containers/DevToolsWindow'
export default function createDevToolsWindow (store) {
const win = window.open(
null,
'redux-devtools', // give it a name so it reuses the same window
`... |
src/Menu/examples.js | narqo/react-islands | import React from 'react';
import App from '../App';
import Menu from './index.js';
import Item from '../Item';
import Group from '../Group';
class MenuExample extends React.Component {
constructor(props) {
super(props);
// FIXME: Сейчас в конструкторе Menu value обрабатывается.
// Напр... |
public/js/components/user_instructor.js | AC287/wdi_final_arrowlense2.0_FE | import React from 'react'
import {Link} from 'react-router'
import Firebase from 'firebase'
import EditImgUrl from './user_img_edit.js'
import CreateClass from './class_new.js'
export default React.createClass({
contextTypes: {
user: React.PropTypes.string,
userid: React.PropTypes.string,
userinfo: Reac... |
ajax/libs/react-virtualized/7.12.1/react-virtualized.min.js | Amomo/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("React.addons.shallowCompare"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","React.addons.shallowCompare","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("R... |
docs/src/app/components/pages/components/Dialog/Page.js | hwo411/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dialogReadmeText from './README';
import DialogExampleSimple from './Exam... |
docs/src/pages/demos/tabs/ScrollableTabsButtonPrevent.js | cherniavskii/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import AppBar from 'material-ui/AppBar';
import Tabs, { Tab } from 'material-ui/Tabs';
import PhoneIcon from '@material-ui/icons/Phone';
import FavoriteIcon from '@material-ui/icons/Favorite';
import PersonPi... |
src/client/apps/webpack/client.js | craigspaeth/positron | import App from './components/App'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(
<App />, document.getElementById('react-root')
)
|
blueocean-material-icons/src/js/components/svg-icons/editor/border-color.js | kzantow/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorBorderColor = (props) => (
<SvgIcon {...props}>
<path d="M17.75 7L14 3.25l-10 10V17h3.75l10-10zm2.96-2.96c.39-.39.39-1.02 0-1.41L18.37.29c-.39-.39-1.02-.39-1.41 0L15 2.25 18.75 6l1.96-1.96z"/><path fillOpacity=".36" d="M0 20h24v4H0z"/>
... |
test/test_helper.js | erjin/ReduxSimpleStarter | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
ajax/libs/clappr/0.0.84/clappr.js | ColinEberhardt/cdnjs | require=(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)... |
lib/controllers/repository-conflict-controller.js | atom/github | import path from 'path';
import React from 'react';
import PropTypes from 'prop-types';
import yubikiri from 'yubikiri';
import {CompositeDisposable} from 'event-kit';
import ObserveModel from '../views/observe-model';
import ResolutionProgress from '../models/conflicts/resolution-progress';
import EditorConflictContr... |
src/routes.js | Kelvinmijaya/reactlite-starter-kit | import React from 'react'
import { Route, IndexRoute } from 'react-router'
import CoreLayout from './layouts/CoreLayout/CoreLayout'
import { HomeView } from './module/home'
export default (store) => (
<Route path='/' component={CoreLayout}>
<IndexRoute component={HomeView} />
</Route>
)
|
packages/material-ui-icons/src/SignalCellularAltTwoTone.js | allanalexandre/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="M17 4h3v16h-3V4zM5 14h3v6H5v-6zm6-5h3v11h-3V9z" /></g></React.Fragment>
, 'SignalCellularAltTwoTone');
|
test/WellSpec.js | mengmenglv/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Well from '../src/Well';
describe('Well', function () {
it('Should output a well with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Well>
<strong>Content</strong>
</Well>
... |
lib/svg-icons/device/settings-system-daydream.js | checkraiser/material-ui2 | 'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var DeviceSettingsSystemDaydream = React.createClass({
displayName: 'DeviceSettingsSystemDaydream',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', {... |
packages/web/src/components/list/SingleDataList.js | appbaseio/reactivesearch | import React, { Component } from 'react';
import {
updateQuery,
setQueryOptions,
setCustomQuery,
setDefaultQuery,
} from '@appbaseio/reactivecore/lib/actions';
import hoistNonReactStatics from 'hoist-non-react-statics';
import {
checkValueChange,
checkPropChange,
getClassName,
checkSomePropChange,
getQueryOpt... |
ajax/libs/angular-google-maps/2.1.2/angular-google-maps.js | coupang/cdnjs | /*! angular-google-maps 2.1.2 2015-06-04
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
;
(function( window, angular, undefined ){
'use strict';
/*
!
The MIT License
Copyright (c) 2010-2013 Google, Inc. http://angularjs.org
Permission is hereby granted, f... |
src/javascripts/config/layers/downloadBundles.js | aAXEe/online_chart_ol3 | /**
* @license AGPL-3.0
* @author aAXEe (https://github.com/aAXEe)
*/
'use strict'
import $ from 'jquery'
import _ from 'lodash'
import React from 'react'
import ol from 'openlayers'
import ChartLayer from '../chartlayer'
import { ClickOnMarkersMessage, hashCode } from 'utils'
import MdDownload from 'react-icons/lib/m... |
fields/types/markdown/MarkdownColumn.js | snowkeeper/keystone | import React from 'react';
import ItemsTableCell from '../../components/ItemsTableCell';
import ItemsTableValue from '../../components/ItemsTableValue';
var MarkdownColumn = React.createClass({
displayName: 'MarkdownColumn',
propTypes: {
col: React.PropTypes.object,
data: React.PropTypes.object,
},
renderValue... |
test/ProgressBarSpec.js | dongtong/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ProgressBar from '../src/ProgressBar';
import {shouldWarn} from './helpers';
const getProgressBarNode = wrapper => {
return React.findDOMNode(ReactTestUtils.findRenderedDOMComponentWithClass(wrapper, 'progress-bar'));
};
descri... |
ajax/libs/forerunnerdb/1.3.47/fdb-core.min.js | sreym/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... |
src/routes/SingleEvent/components/EnrollForm/EnrollForm.js | athenekilta/ilmomasiina | import React from 'react';
import Formsy from 'formsy-react';
import _ from 'lodash';
import { CheckboxGroup, Select, Input, Textarea, RadioGroup } from 'formsy-react-components';
import './EnrollForm.scss';
export class EnrollForm extends React.Component {
constructor(props) {
super(props);
this.parseSubmi... |
ajax/libs/styled-components/5.2.2/styled-components.browser.esm.js | cdnjs/cdnjs | import{typeOf as e,isElement as t,isValidElementType as n}from"react-is";import r,{useState as o,useContext as i,useMemo as s,useEffect as a,useRef as c,createElement as u,useDebugValue as l,useLayoutEffect as d}from"react";import h from"shallowequal";import p from"@emotion/stylis";import f from"@emotion/unitless";impo... |
examples/react/components/NotFound.js | spicydonuts/lucid-router | import React from 'react'
const NotFound = () => <h3>404</h3>
export default NotFound
|
ee/client/omnichannel/additionalForms/BusinessHoursMultiple.stories.js | Sing-Li/Rocket.Chat | import React from 'react';
import { Box, Skeleton } from '@rocket.chat/fuselage';
import { BusinessHoursMultiple } from './BusinessHoursMultiple';
export default {
title: 'omnichannel/businessHours/ee/BusinessHoursMultiple',
component: BusinessHoursMultiple,
};
const departmentList = [
[1, 'Support'],
[2, 'Marke... |
app/javascript/mastodon/features/home_timeline/index.js | dwango/mastodon | import React from 'react';
import { connect } from 'react-redux';
import { expandHomeTimeline } from '../../actions/timelines';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../comp... |
src/views/PreviewItemView.js | nitrog7/nl-fluid | import React from 'react';
import * as components from 'components';
const {
Box,
Code,
Component,
Container
} = components;
export default class PreviewItemView extends Component {
constructor(props) {
super(props);
this.state = {
};
}
render() {
return (
<Container directio... |
node_modules/react-icons/ti/folder.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const TiFolder = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m30 10h-10c0-1.8-1.5-3.3-3.3-3.3h-6.7c-2.8 0-5 2.2-5 5v16.6c0 2.8 2.2 5 5 5h20c2.8 0 5-2.2 5-5v-13.3c0-2.8-2.2-5-5-5z m-20 0h6.7c0 1.8 1.5 3.3 3.3 3.3h10c0.9 0 1.7 0.8... |
src/routes/Manga/components/Title.js | bharley/manga-reader | import React from 'react';
import { Col, Row } from 'react-bootstrap';
import classes from './Title.scss';
const Title = ({
title,
}) => {
if (!title) {
return false;
}
return (
<Row>
<Col xs={12}>
<h1 className={classes.title}>
{title}
</h1>
</Col>
</Row>
)... |
src/content/work/assets/SubscriptionsForSaas/modules/Chart/index.js | jmikrut/keen-2017 | import React, { Component } from 'react';
import Graph from './Graph';
import './index.css';
class ChartModule extends Component {
constructor(props) {
super(props)
this.handleClick = this.handleClick.bind(this)
this.arrayX = [44.5, 84.5, 124.5, 164.5, 204.5, 244.5, 284.5, 324.5, 364.5, 404.5, 444.5, 484.5, ... |
index.native.js | jitsi/jitsi-meet-react | import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';
import { createStore } from 'redux';
import Thunk from 'redux-thunk';
import config from './config';
import { App } from './features/app';
import {
MiddlewareRegistry,
ReducerRegistry
} from './features/base/redux';
... |
src/applications/personalization/profile/tests/components/ProfileWrapper.unit.spec.js | department-of-veterans-affairs/vets-website | import React from 'react';
import { MemoryRouter } from 'react-router-dom';
import { expect } from 'chai';
import ProfileWrapper from '../../components/ProfileWrapper';
import getRoutes from '../../routes';
import { PROFILE_PATHS } from '../../constants';
import { renderWithProfileReducers as render } from '../unit-t... |
common/components/Nav.js | maxruby/stayfriends_test | import React from 'react'
import IndexLink from 'react-router/lib/IndexLink'
import Link from 'react-router/lib/Link'
import { StyleSheet, css } from 'aphrodite'
const Nav = () => (
<div>
<IndexLink to='/' className={css(styles.link)} activeClassName={css(styles.link, styles.activeLink)}>
Home
</IndexL... |
src/Region.js | casavi/react-region-select | import React, { Component } from 'react';
import { PropTypes } from 'prop-types';
import objectAssign from 'object-assign';
import style from './style';
class Region extends Component {
constructor (props) {
super(props);
}
renderHandles () {
return (
<div>
<div data-dir='se' style={style.RegionHandleSE... |
projects/twitch-ui/src/components/StreamPlayerHls.stories.js | unindented/twitch-x | import React from 'react'
import {storiesOf} from '@storybook/react'
import {action} from '@storybook/addon-actions'
import StreamPlayerHls from './StreamPlayerHls'
const stream = {
id: 'playoverwatch'
}
const streamWithPlaylist = {
...stream,
playlist: 'https://video-dev.github.io/streams/x36xhzz.m3u8'
}
cons... |
src/components/Footer/__tests__/Footer-test.js | chrisslater/snapperfish | import React from 'react';
import { expect } from 'chai';
import Footer from '../Footer';
import shallowWithContext from 'testing/shallowWithContext';
import mountWithContext from 'testing/mountWithContext';
describe('Component', function () {
describe('<Footer />', function () {
describe('#render()', function (... |
RnPractice/zhihu/ThemesList.js | qianhk/KaiJs | 'use strict';
import React, {
Component,
} from 'react';
import {
AsyncStorage,
Platform,
ListView,
Image,
StyleSheet,
Text,
View,
TouchableNativeFeedback,
TouchableHighlight,
} from 'react-native';
var DataRepository = require('./DataRepository');
var repository = new DataRe... |
packages/material-ui-icons/src/CallMade.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CallMade = props =>
<SvgIcon {...props}>
<path d="M9 5v2h6.59L4 18.59 5.41 20 17 8.41V15h2V5z" />
</SvgIcon>;
CallMade = pure(CallMade);
CallMade.muiName = 'SvgIcon';
export default CallMade;
|
node_modules/rc-form/es/createBaseForm.js | yhx0634/foodshopfront | import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import _toConsumableArray from 'babel-runtime/helpers/toConsumableArray';
import React from 'react';
import crea... |
src/routes.js | wasong/hackr_matchr | import React from 'react'
import { Router, Route, browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import AuthService from './utils/auth'
import App from './components/App'
import Auth from './components/Auth'
import Login from './components/Login'
import config from '../config/auth'
const ... |
src/components/video_detail.js | dcpete/qtube-react | import React from 'react';
const VideoDetail = ({video}) => {
if (!video) {
return (
<div className="video-container col-md-8">
<img src="https://i.ytimg.com/vi/Es44QTJmuZ0/maxresdefault.jpg"/>
</div>
);
}
const videoId = video.id.videoId;
const url = `https://www.youtube.com/embed... |
src/svg-icons/av/add-to-queue.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvAddToQueue = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v12c0 1.1.89 2 2 2h5v2h8v-2h5c1.1 0 1.99-.9 1.99-2L23 5c0-1.11-.9-2-2-2zm0 14H3V5h18v12zm-5-7v2h-3v3h-2v-3H8v-2h3V7h2v3h3z"/>
... |
ajax/libs/yui/3.7.1/datatable-core/datatable-core-coverage.js | thetable/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
src/svg-icons/maps/local-car-wash.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCarWash = (props) => (
<SvgIcon {...props}>
<path d="M17 5c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2.7c0 .83.67 1.5 1.5 1.5zm-5 0c.83 0 1.5-.67 1.5-1.5 0-1-1.5-2.7-1.5-2.7s-1.5 1.7-1.5 2... |
tests/extractFromDOM-test.js | RoyalIcing/react-organism | import expect from 'expect'
import React from 'react'
import {render, unmountComponentAtNode} from 'react-dom'
import ReactTestUtils from 'react-dom/test-utils'
import makeOrganism from 'src/'
import extractFromDOM from 'src/adjustArgs/extractFromDOM'
const waitMs = duration => new Promise(resolve => setTimeout(resol... |
src/dumb/block_graph/ReadonlyBlockGraph.js | jeckhummer/wf-constructor | import React from 'react';
import {WORKFLOW_GRID} from "../../styles";
import {ReadonlyArrowBlock} from "./ReadonlyArrowBlock";
import {Grid} from '../common/Grid';
import * as _ from "lodash";
import {ReadonlyTaskBlock} from "./ReadonlyTaskBlock";
import {EmptyBlockStub} from "./EmptyBlockStub";
export const Readonly... |
ajax/libs/vue-material/1.0.0-beta-5/components/MdIcon/index.js | joeyparrish/cdnjs | !(function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("vue"));else if("function"==typeof define&&define.amd)define(["vue"],t);else{var r=t("object"==typeof exports?require("vue"):e.Vue);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}})(this,(function(e){return (funct... |
packages/babel-plugin/__tests__/disable-source-map/__fixtures__/css.js | emotion-js/emotion | import { css } from '@emotion/react'
let style = css({ color: 'hotpink' })
|
node_modules/express.io/test/express/node_modules/connect/node_modules/qs/test/browser/jquery.js | pazell981/pazGroupChat | /*!
* jQuery JavaScript Library v1.6.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.
... |
src/components/contactview.js | karynntran/karynnanimated | import React, { Component } from 'react';
const ContactView = (props) => {
return (
<section className="content contact-content">
<div className="inner-content">
<ul className="email-ul">
<li className="contact-li">
<div className="contact-type email">
<a href="mailto:karynn.tran@gmail.co... |
packages/rocketchat-ui/package.js | fazilou/chat | Package.describe({
name: 'rocketchat:ui',
version: '0.1.0',
// Brief, one-line summary of the package.
summary: '',
// URL to the Git repository containing the source code for this package.
git: '',
// By default, Meteor will default to using README.md for documentation.
// To avoid submitting documentation, se... |
ajax/libs/antd-mobile/0.7.8/antd-mobile.min.js | emmy41124/cdnjs | /*!
* antd-mobile v0.7.8
*
* Copyright 2015-present, Alipay, Inc.
* All rights reserved.
*/
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?export... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.