path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/components/CryoCollections.js | IAmPicard/StarTrekTimelinesSpreadsheet | import React from 'react';
import STTApi from '../api';
class CryoCollection extends React.Component {
constructor(props) {
super(props);
if (!this.props.collection.iconUrl) {
STTApi.imageProvider.getImageUrl(this.props.collection.image, this.props.collection).then((found) => {
... |
test/PageHeaderSpec.js | rapilabs/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import PageHeader from '../src/PageHeader';
describe('PageHeader', function () {
it('Should output a div with content', function () {
let instance = ReactTestUtils.renderIntoDocument(
<PageHeader>
<strong>Content</str... |
ReactNativeApp/react-native-starter-app/src/navigation/index.js | jjhyu/hackthe6ix2017 | /**
* App Navigation
*
* React Native Starter App
* https://github.com/mcnamee/react-native-starter-app
*/
import React from 'react';
import { Actions, Scene, ActionConst } from 'react-native-router-flux';
// Consts and Libs
import { AppConfig } from '@constants/';
// Components
import Drawer from '@containers/u... |
src/components/Home.js | liuli0803/myapp | /**
* Created by 大丽丽 on 2017/10/18.
*/
import React from 'react';
import Header from './Header';
class Home extends React.Component {
render() {
return (
<div>
<Header />
<h1>家家家</h1>
</div>
);
}
}
export default Home; |
src/index.js | betoesquivel/intertech-lenon-positweet-ui | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
let cb = {};
if (typeof window !== 'undefined' && typeof window.Codebird !== 'undefined') {
cb = new window.Codebird();
cb.setConsumerKey(process.env.REACT_APP_CONSUMER_KEY, process.env.REACT_APP_CONSUMER_SE... |
ajax/libs/mobx/2.5.2/mobx.min.js | x112358/cdnjs | /** MobX - (c) Michel Weststrate 2015, 2016 - MIT Licensed */
"use strict";function e(e,n,r,o){return 1===arguments.length&&"function"==typeof e?P(e.name||"<unnamed action>",e):2===arguments.length&&"function"==typeof n?P(e,n):1===arguments.length&&"string"==typeof e?t(e):t(n).apply(null,arguments)}function t(e){return... |
app/page/TechPage.js | mrFlick72/mrFlick72.github.io | import React from 'react';
import "../asset/css/components.css"
import "bootstrap/dist/js/bootstrap";
import MarckDownDocumentReader from "../component/reader/MarckDownDocumentReader";
import WebContentRepository from "../domain/repository/WebContentRepository";
import RowSeparator from "../component/layout/RowSeparat... |
ajax/libs/redux-form/5.0.0/redux-form.min.js | emmy41124/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReduxForm=e(require("react")):t.ReduxForm=e(t.React)}(this,function(t){return function(t){function e(n){if(r[n])return r[n].expor... |
src/svg-icons/action/card-giftcard.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionCardGiftcard = (props) => (
<SvgIcon {...props}>
<path d="M20 6h-2.18c.11-.31.18-.65.18-1 0-1.66-1.34-3-3-3-1.05 0-1.96.54-2.5 1.35l-.5.67-.5-.68C10.96 2.54 10.05 2 9 2 7.34 2 6 3.34 6 5c0 .35.07.69.18 1H... |
server/sonar-web/src/main/js/apps/overview/main/duplications.js | vamsirajendra/sonarqube | import React from 'react';
import { Domain,
DomainHeader,
DomainPanel,
DomainNutshell,
DomainLeak,
MeasuresList,
Measure,
DomainMixin } from './components';
import { DrilldownLink } from '../../../components/shared/drilldown-link';
import { TooltipsMixin }... |
src/routes/adminNew/New.js | oct16/Blog-FE | import React from 'react';
import PropTypes from 'prop-types';
import s from './New.css';
import Link from 'components/Link';
import history from 'history';
import { message } from 'antd'
class AdminNew extends React.Component {
constructor(props) {
super(props)
this.state = {
title: '',
content... |
ui/src/main/webapp/resources/js/jquery-1.10.2.min.js | alauriano/constructionshdg | /*! 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... |
docs/src/IntroductionPage.js | thealjey/react-bootstrap | import React from 'react';
import CodeExample from './CodeExample';
import NavMain from './NavMain';
import PageHeader from './PageHeader';
import PageFooter from './PageFooter';
const IntroductionPage = React.createClass({
render() {
return (
<div>
<NavMain activePage="introduction" />
<... |
src/svg-icons/hardware/computer.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareComputer = (props) => (
<SvgIcon {...props}>
<path d="M20 18c1.1 0 1.99-.9 1.99-2L22 6c0-1.1-.9-2-2-2H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2H0v2h24v-2h-4zM4 6h16v10H4V6z"/>
</SvgIcon>
);
HardwareComputer ... |
src/components/Link.js | EvanHammond/EvanHammond.github.io | import React from 'react'
import GatsbyLink from 'gatsby-link'
const Link = ({ children, to, ...other }) => {
const internal = /^\/(?!\/)/.test(to)
if (internal) {
return (
<GatsbyLink to={to} {...other}>
{children}
</GatsbyLink>
)
}
return (
<a href={to} {...other}>
{ch... |
tools/public-components.js | zerkms/react-bootstrap | import React from 'react';
import * as index from '../src/index';
let components = [];
Object.keys(index).forEach(function (item) {
if (index[item] instanceof React.Component.constructor) {
components.push(item);
}
});
export default components;
|
__tests__/components/Password.spec.js | romagny13/react-form-validation | import React from 'react';
import { mount, shallow } from 'enzyme';
import { Password } from '../../src/index';
describe('Password', () => {
it('Should render Password with no value', () => {
let props = {
name: 'my-field'
};
const wrapper = shallow(<Password {...props} />);
... |
app/javascript/components/RoundMap/CompetitorsList/index.js | skyderby/skyderby | import React from 'react'
import styled from 'styled-components'
import { useSelector } from 'react-redux'
import Group from './Group'
const CompetitorsList = () => {
const groups = useSelector(state => state.eventRound.groups)
if (!groups) return null
return (
<Container>
{groups.map((resultIds, id... |
ios/versioned-react-native/ABI10_0_0/Libraries/Components/Touchable/TouchableHighlight.js | jolicloud/exponent | /**
* 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/Views/PageNotFound/index.js | jmikrut/keen-2017 | import React from 'react';
import ViewWrap from '../../ViewWrap';
import { Link } from 'react-router-dom';
import DocumentMeta from 'react-document-meta';
import Gutter from '../../Layout/Gutter';
import './PageNotFound.css';
const PageNotFound = (props) => {
const meta = {
title: '404 Page Not Found - Keen Stud... |
ajax/libs/victory/30.2.0/victory.min.js | joeyparrish/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.Victory=t(require("react")):e.Victory=t(e.React)}("undefined"!=typeof self?self:this,function(e){return function(e){function t(r)... |
node_modules/react-navigation/lib-rn/views/TransitionConfigs.js | RahulDesai92/PHR | import { Animated, Easing, Platform } from 'react-native';
var babelPluginFlowReactPropTypes_proptype_TransitionConfig = require('../TypeDefinition').babelPluginFlowReactPropTypes_proptype_TransitionConfig || require('prop-types').any;
var babelPluginFlowReactPropTypes_proptype_NavigationTransitionSpec = require('../... |
actor-apps/app-web/src/app/utils/require-auth.js | xiaotaijun/actor-platform | import React from 'react';
import LoginStore from 'stores/LoginStore';
export default (Component) => {
return class Authenticated extends React.Component {
static willTransitionTo(transition) {
if (!LoginStore.isLoggedIn()) {
transition.redirect('/auth', {}, {'nextPath': transition.path});
}... |
examples/movies/webpack.config.js | winjs/react-winjs | var path = require('path');
module.exports = {
cache: true,
entry: './index.jsx',
output: {
filename: 'browser-bundle.js'
},
module: {
loaders: [
{test: /\.jsx/, loader: 'jsx-loader'}
]
},
resolve: {
alias: {
'react-winjs': path.join(__dirname, '../../react-winjs')
}
},
... |
packages/demos/demo/src/components/Project/card.js | yusufsafak/cerebral | import React from 'react'
import { connect } from 'cerebral/react'
import { signal } from 'cerebral/tags'
import projectWithDetails from '../../compute/projectWithDetails'
import { displayElapsed } from '../../helpers/dateTime'
export default connect(
{
item: projectWithDetails,
penClick: signal`projects.pen... |
js/jquery.js | czhoume/timecapsule | /*! jQuery v1.11.1 | (c) 2005, 2014 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... |
jenkins-design-language/src/js/components/material-ui/svg-icons/image/switch-camera.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ImageSwitchCamera = (props) => (
<SvgIcon {...props}>
<path d="M20 4h-3.17L15 2H9L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm-5 11.5V13H9v2.5L5.5 12 9 8.5V11h6V8.5l3.5 3.5-3.5 3.5z"/>
</SvgIcon>
);
ImageSwi... |
ajax/libs/jqwidgets/12.0.1/jqwidgets-react-tsx/jqxtagcloud/react_jqxtagcloud.esm.min.js | cdnjs/cdnjs | import*as jqxcore from"../../jqwidgets/jqxcore";import*as jqxdata from"../../jqwidgets/jqxdata";import*as jqxbuttons from"../../jqwidgets/jqxbuttons";import*as jqxtagcloud from"../../jqwidgets/jqxtagcloud";import{createElement,PureComponent}from"react";var extendStatics=function(t,e){return(extendStatics=Object.setProt... |
front_end/src/pages/Reporting/ReportingNav.js | mozilla/splice | import React from 'react';
import { Link, History } from 'react-router';
export default React.createClass({
mixins: [History],
render: function() {
return (<nav>
{this.props.items.map(item => {
return (<Link to={item.link}
key={item.label}
className={this.history.isActive(item... |
src/components/Main.js | jemminger/react-pages-test | require('normalize.css');
require('styles/App.css');
import React from 'react';
import { render } from "react-dom";
import { Link } from "react-router";
let yeomanImage = require('../images/yeoman.png');
class AppComponent extends React.Component {
render() {
return (
<div>
<h1>App</h1>
<... |
examples/react-transform-boilerplate/src/App.js | broucz/react-inline-grid | /* eslint-disable react/no-multi-comp */
import React, { Component } from 'react';
import { Grid } from 'react-inline-grid';
import ToolBar from './ToolBar';
import Content from './Content';
const options = {
gutter: 16,
margin: 16,
list: [
{
name: 'phone',
query: '(max-width: 479px)'
},
... |
web/js/jquery_jquery.min_1.js | flowcode/AmulenDemoStore | /*! jQuery v1.11.1 | (c) 2005, 2014 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... |
src/components/icons/Close.js | dtjv/dtjv.github.io | import React from 'react'
export const CloseIcon = ({ className, ...props }) => (
<svg
{...props}
className={`${className}`}
role="img"
fill="currentColor"
stroke="currentColor"
viewBox="0 0 24 24"
xmlns="http://www.w3.org/2000/svg"
>
<title>Close</title>
<path
strokeLinec... |
src/js/templates/search-result.js | julianburr/wp-react-theme | import React, { Component } from 'react';
import Helmet from 'react-helmet';
import Seo from '../components/seo';
import axios from 'axios';
import { browserHistory } from 'react-router';
export default class SearchResult extends Component {
render () {
console.log('this.props.params', this.props.params)
ret... |
ajax/libs/react-instantsearch/4.0.0-beta.3/Connectors.min.js | wout/cdnjs | /*! ReactInstantSearch 4.0.0-beta.3 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
!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.Connectors=t(requir... |
node_modules/re-base/examples/firestore/chatapp/src/components/Container.js | aggiedefenders/aggiedefenders.github.io | import React from 'react';
import Message from './Message.js';
import base from '../rebase';
class Container extends React.Component {
constructor(props) {
super(props);
this.state = {
show: null
};
}
_removeMessage(ref, e) {
e.stopPropagation();
base.removeDoc(ref);
}
_toggleView(i... |
src/svg-icons/editor/format-indent-decrease.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorFormatIndentDecrease = (props) => (
<SvgIcon {...props}>
<path d="M11 17h10v-2H11v2zm-8-5l4 4V8l-4 4zm0 9h18v-2H3v2zM3 3v2h18V3H3zm8 6h10V7H11v2zm0 4h10v-2H11v2z"/>
</SvgIcon>
);
EditorFormatIndentDecre... |
fields/types/markdown/MarkdownColumn.js | alobodig/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... |
docs/src/modules/components/GoogleAnalytics.js | Kagami/material-ui | import React from 'react';
function handleClick(event) {
const rootNode = document;
let element = event.target;
while (element && element !== rootNode) {
const category = element.getAttribute('data-ga-event-category');
// We reach a tracking element, no need to look higher in the dom tree.
if (cate... |
app/src/components/Tag/DeleteModal.js | GetStream/Winds | import React from 'react';
import PropTypes from 'prop-types';
import ReactModal from 'react-modal';
import { deleteTag } from '../../api/tagAPI';
class DeleteModal extends React.Component {
constructor(props) {
super(props);
this.resetState = {
error: false,
submitting: false,
success: false,
};
... |
packages/material-ui-icons/src/FastfoodOutlined.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="M1 21.98c0 .56.45 1.01 1.01 1.01H15c.56 0 1.01-.45 1.01-1.01V21H1v.98zM8.5 8.99C4.75 8.99 1 11 1 15h15c0-4-3.75-6.01-7.5-6.01zM3.62 13c1.11-1.55... |
pootle/static/js/admin/components/User/UserForm.js | Yelp/pootle | /*
* Copyright (C) Pootle contributors.
*
* This file is a part of the Pootle project. It is distributed under the GPL3
* or later license. See the LICENSE file for a copy of the license and the
* AUTHORS file for copyright and authorship information.
*/
import React from 'react';
import { FormElement } from 'c... |
ajax/libs/ngOfficeUiFabric/0.5.0/ngOfficeUiFabric.js | menuka94/cdnjs | /*!
* ngOfficeUIFabric
* http://ngofficeuifabric.com
* Angular 1.x directives for Microsoft's Office UI Fabric
* https://angularjs.org & https://dev.office.com/fabric
* v0.5.0
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exp... |
src/interface/report/PlayerLoader.js | yajinni/WoWAnalyzer | import SPECS from 'game/SPECS';
import ROLES from 'game/ROLES';
import getAverageItemLevel from 'game/getAverageItemLevel';
import getFightName from 'common/getFightName';
import { fetchCombatants, LogNotFoundError } from 'common/fetchWclApi';
import { captureException } from 'common/errorLogger';
import ActivityIndica... |
src/svg-icons/places/airport-shuttle.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesAirportShuttle = (props) => (
<SvgIcon {...props}>
<path d="M17 5H3c-1.1 0-2 .89-2 2v9h2c0 1.65 1.34 3 3 3s3-1.35 3-3h5.5c0 1.65 1.34 3 3 3s3-1.35 3-3H23v-5l-6-6zM3 11V7h4v4H3zm3 6.5c-.83 0-1.5-.67-1.5-1.... |
ajax/libs/intl-tel-input/12.1.8/js/intlTelInput.js | cdnjs/cdnjs | /*
* International Telephone Input v12.1.8
* https://github.com/jackocnr/intl-tel-input.git
* Licensed under the MIT license
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPluginCommonjs.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ... |
tests/client/ui/components/TestRating.js | jasonthomas/addons-frontend | import React from 'react';
import {
findRenderedComponentWithType,
renderIntoDocument,
Simulate,
} from 'react-addons-test-utils';
import Rating from 'ui/components/Rating';
function render({ ...props } = {}) {
return findRenderedComponentWithType(renderIntoDocument(
<Rating {...props} />
), Rating);
}
... |
src/svg-icons/hardware/cast-connected.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareCastConnected = (props) => (
<SvgIcon {...props}>
<path d="M1 18v3h3c0-1.66-1.34-3-3-3zm0-4v2c2.76 0 5 2.24 5 5h2c0-3.87-3.13-7-7-7zm18-7H5v1.63c3.96 1.28 7.09 4.41 8.37 8.37H19V7zM1 10v2c4.97 0 9 4.03 ... |
assets/js/main.min.js | amandeepsinghdhammu/amandeepsinghdhammu.github.io | ---
layout:
---
/*!
* Minimal Mistakes Jekyll Theme 4.4.1 by Michael Rose
* Copyright 2017 Michael Rose - mademistakes.com | @mmistakes
* Licensed under MIT
*/
!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuer... |
node_modules/babel-core/node_modules/babel-runtime/helpers/jsx.js | diztinct-tim/PTS | "use strict";
exports.__esModule = true;
var _for = require("../core-js/symbol/for");
var _for2 = _interopRequireDefault(_for);
var _symbol = require("../core-js/symbol");
var _symbol2 = _interopRequireDefault(_symbol);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; ... |
packages/bonde-admin/src/components/color-picker/index.spec.js | ourcities/rebu-client | /* eslint-disable no-unused-expressions */
import React from 'react'
import { shallow } from 'enzyme'
import { expect } from 'chai'
import { ColorPicker } from './index'
describe('client/components/color-picker/index', () => {
let wrapper
const props = {
dispatch: () => {}
}
beforeAll(() => {
wrapper... |
packages/material-ui-icons/src/SyncProblemTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M3 12c0 2.21.91 4.2 2.36 5.64L3 20h6v-6l-2.24 2.24C5.68 15.15 5 13.66 5 12c0-2.61 1.67-4.83 4-5.65V4.26C5.55 5.15 3 8.27 3 12zm8 5h2v-2h-2v2zM21 4h-6v6l2.24-2.24C18.32 8.85 19 10.34 19 12c0 2.61-1.67 ... |
pilgrim3/components/serviceBrowser.js | opendoor-labs/pilgrim3 | import React from 'react';
import state from './state';
import { Link } from 'react-router';
import { map } from 'lodash';
import { relativeName } from './utils';
import ProtoInfo from './protoInfo';
import DocBlock from './docBlock';
import OptionsPopover from './optionsPopover';
export default class ServiceBrowser e... |
vulgar/src/components/Weather.js | moonclash/vulgar-weather | import React from 'react';
import City from './City';
import myData from './../captions.json';
import { getRandomInt, celsiusConverter, classRenderer } from '../helpers';
class Weather extends React.Component {
constructor() {
super();
this.updateWeather = this.updateWeather.bind(this);
this.updateCity =... |
docs/docusaurus.config.js | activerecord-hackery/ransack | // @ts-check
// Note: type annotations allow type checking and IDEs autocompletion
const lightCodeTheme = require('prism-react-renderer/themes/github');
const darkCodeTheme = require('prism-react-renderer/themes/dracula');
/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Ransack documentat... |
components/drawer/__tests__/DrawerHeader.spec.js | react-material-design/react-material-design | import React from 'react';
import { shallow } from 'enzyme';
import DrawerHeader from '../drawerHeader';
describe('<DrawerHeader />', () => {
it('should render', () => {
const drawerHeader = shallow(
<DrawerHeader>Text</DrawerHeader>,
);
expect(drawerHeader).toMatchSnapshot();
}... |
project/react-ant-multi-pages/src/pages/index/containers/AutoDestination/Item/index.js | FFF-team/generator-earth | import React from 'react'
import moment from 'moment'
import { DatePicker, Button, Form, Input, Col } from 'antd'
import BaseContainer from 'ROOT_SOURCE/base/BaseContainer'
import request from 'ROOT_SOURCE/utils/request'
import { mapMoment } from 'ROOT_SOURCE/utils/fieldFormatter'
import Rules from 'ROOT_SOURCE/utils... |
docs/src/pages/ReactPlayground.js | chris-gooley/react-materialize | import React from 'react';
import PropTypes from 'prop-types';
import {
LiveProvider,
LiveEditor,
LiveError,
LivePreview
} from 'react-live';
import * as RM from '../../../src/';
const trimmer = (code) =>
code.substring(code.indexOf('<') - 1).replace(/;/, '').trim();
const ReactPlayground = ({ code, trim =... |
src/modules/components/Modal/index.js | ruebel/synth-react-redux | import React from 'react';
import PropTypes from 'prop-types';
import styled, { keyframes } from 'styled-components';
const spin = keyframes`
from {transform:rotate(0deg);}
to {transform:rotate(360deg);}
`;
const Icon = styled.div`
position: absolute;
left: -60%;
pointer-events: none;
height: 100vh;
wid... |
modules/Redirect.js | moudy/react-router | import React from 'react'
import invariant from 'invariant'
import { createRouteFromReactElement } from './RouteUtils'
import { formatPattern } from './PatternUtils'
import { falsy } from './PropTypes'
var { string, object } = React.PropTypes
/**
* A <Redirect> is used to declare another URL path a client should be ... |
src/containers/Asians/TabControls/Settings/TournamentInformation/index.js | westoncolemanl/tabbr-web | import React from 'react'
import ListSubheader from 'material-ui/List/ListSubheader'
import TournamentName from './TournamentName'
import TournamentPrivacySetting from './TournamentPrivacySetting'
import Administrators from './Administrators'
import Dates from './Dates'
export default () =>
<div>
<ListSubheade... |
test/CollapseSpec.js | HPate-Riptide/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react-addons-test-utils';
import ReactDOM from 'react-dom';
import Collapse from '../src/Collapse';
describe('<Collapse>', () => {
let Component, instance;
beforeEach(() => {
Component = React.createClass({
render() {
let { children, ...p... |
app/javascript/mastodon/features/favourites/index.js | imomix/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import LoadingIndicator from '../../components/loading_indicator';
import { fetchFavourites } from '../../actions/interactions';
import { ScrollContainer } fr... |
docs/src/examples/elements/Step/Content/StepExampleIcon.js | Semantic-Org/Semantic-UI-React | import React from 'react'
import { Icon, Step } from 'semantic-ui-react'
const StepExampleIcon = () => (
<Step.Group>
<Step>
<Icon name='truck' />
<Step.Content>
<Step.Title>Shipping</Step.Title>
<Step.Description>Choose your shipping options</Step.Description>
</Step.Content>
... |
src/components/mobx.js | freshpack/freshpack | // Yarn scripts
// Dependencies
const dependenciesMobx = [
'mobx',
'mobx-react'
];
const devDependenciesMobx = [
'mobx-react-devtools'
];
// File templates
module.exports = {
dependenciesMobx,
devDependenciesMobx
};
|
src/index.js | suwenyang/gallery-by-react | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
Examples/UIExplorer/LayoutExample.js | YueRuo/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,
... |
themes/genius/Genius 2.3.1 Bootstrap 4/React_Full_Project/src/views/Pages/Register/Register.js | davidchristie/kaenga-housing-calculator | import React, { Component } from 'react';
class Register extends Component {
render() {
return (
<div className="container">
<div className="row justify-content-center">
<div className="col-md-6">
<div className="card mx-2">
<div className="card-block p-2">
... |
ajax/libs/react-popper/0.4.1/react-popper.js | sashberd/cdnjs | /*!
* React Popper 0.4.1
* https://github.com/souporserious/react-popper
* Copyright (c) 2017 React Popper Authors
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-dom"));
else i... |
ajax/libs/react/0.6.1/react.min.js | mrehayden1/cdnjs | !function(a,b){function e(){this._events=new Object}function f(a){a&&(a.delimiter&&(this.delimiter=a.delimiter),a.wildcard&&(this.wildcard=a.wildcard),this.wildcard&&(this.listenerTree=new Object))}function g(a){this._events=new Object,f.call(this,a)}function h(a,b,c,d){if(!c)return[];var e=[],f,g,i,j,k,l,m,n=b.length,... |
app/components/queue/ACL.js | ritishgumber/dashboard-ui | import React from 'react';
import ReactDOM from 'react-dom';
import Dialog from 'material-ui/Dialog';
import {Modal, Button, FormControl} from 'react-bootstrap';
import {updateQueue} from '../../actions';
import {connect} from 'react-redux';
import ACLRows from './aclRows.js'
class ACL extends React.Component {
const... |
app/components/TableMenu/index.js | VonIobro/ab-web | import React from 'react';
import PropTypes from 'prop-types';
import onClickOutside from 'react-onclickoutside';
import MenuHeader from './MenuHeader';
import MenuItem from './MenuItem';
import {
LogoWrapper,
MenuContainer,
} from './styles';
import { Logo } from '../Logo';
import Link from '../Link';
class Tabl... |
flow-typed/npm/eslint-config-prettier_vx.x.x.js | jdetle/nteract | // flow-typed signature: caf6d9cbed600d33a8dc40a068526f03
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.63.0
/**
* This is an autogenerated libdef stub for:
*
* 'eslint-config-prettier'
*
* Fill this stub out by replacing all the `any` types.
*
* Once filled out, we encourage you to s... |
packages/material-ui-icons/src/VideocamOffOutlined.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M9.56 8l-2-2-4.15-4.14L2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.55-.18L19.73 21l1.41-1.41-8.86-8.86L9.56 8zM5 16V8h1.... |
ajax/libs/analytics.js/2.8.21/analytics.js | mgoldsborough/cdnjs | (function umd(require){
if ('object' == typeof exports) {
module.exports = require('1');
} else if ('function' == typeof define && define.amd) {
define(function(){ return require('1'); });
} else {
this['analytics'] = require('1');
}
})((function outer(modules, cache, entries){
/**
* Global
... |
packages/form/src/RadioSelectList.js | iCHEF/gypcrete | import React from 'react';
import PropTypes from 'prop-types';
import { valueType } from './RadioSelectOption';
import SelectList from './SelectList';
export default function RadioSelectList({
value,
defaultValue,
onChange,
title,
desc,
...otherProps
}) {
return (
<SelectList
value={value}
... |
Edc.WebClient/Scripts/jquery-1.10.2.js | gerinka/EnhancedDocumentCreator | /*!
* jQuery JavaScript Library v1.10.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-07-03T13:48Z
*/
(function( window, undefined ) {
// ... |
client/modules/core/components/.stories/new_option.js | thancock20/voting-app | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { withKnobs, text, boolean, number, object } from '@kadira/storybook-addon-knobs';
import { setComposerStub } from 'react-komposer';
import NewOption from '../new_option.jsx';
storiesOf('core.NewOption', module)
.addDecorator(wi... |
src/components/TabWrapper/TabTemplate.js | GetAmbassador/react-ions | import React from 'react'
import PropTypes from 'prop-types'
class TabTemplate extends React.Component {
constructor(props) {
super(props)
}
static propTypes = {
children: PropTypes.node,
active: PropTypes.bool,
class: PropTypes.string
}
render() {
const styles = {
width: '100%',
... |
src/svg-icons/hardware/mouse.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let HardwareMouse = (props) => (
<SvgIcon {...props}>
<path d="M13 1.07V9h7c0-4.08-3.05-7.44-7-7.93zM4 15c0 4.42 3.58 8 8 8s8-3.58 8-8v-4H4v4zm7-13.93C7.05 1.56 4 4.92 4 9h7V1.07z"/>
</SvgIcon>
);
HardwareMouse =... |
packages/material-ui-icons/src/AirplanemodeActiveOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z" />
, 'AirplanemodeActiveOutlined');
|
src/shared/utils/Transaction.js | Diaosir/react | /**
* 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.
*
* @providesModule ... |
ajax/libs/seamless-immutable/7.0.1/seamless-immutable.development.js | extend1994/cdnjs | (function() {
"use strict";
function immutableInit(config) {
// https://github.com/facebook/react/blob/v15.0.1/src/isomorphic/classic/element/ReactElement.js#L21
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol.for && Symbol.for('react.element');
var REACT_ELEMENT_TYPE_FALLBACK = 0xeac7;
var... |
examples/Grid.js | chris-gooley/react-materialize | import React from 'react';
import Row from '../src/Row';
import Col from '../src/Col';
export default
<Row>
<Col s={1} className='grid-example'>1</Col>
<Col s={1} className='grid-example'>2</Col>
<Col s={1} className='grid-example'>3</Col>
<Col s={1} className='grid-example'>4</Col>
<Col s={1} className='gr... |
lib/components/Button.js | madison-kerndt/avant-garde-synesthesia | import React from 'react';
export default ({ disabled, behavior, text, className }) => {
return(
<button
onClick={() => behavior()}
className={className}
>{text}
</button>
)
}
|
src/views/components/footer/footer.js | Metaburn/doocrate | import React from 'react';
import { I18n } from 'react-i18next';
import './footer.css';
const Footer = ({ authenticated, signOut }) => (
<footer className="footer">
<I18n ns="translations">
{(t, { i18n }) => (
<div>
{t('footer.about')}
<a href="https://github.com/metaburn/doocr... |
Console/app/node_modules/antd/es/icon/index.js | RisenEsports/RisenEsports.github.io | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import React from 'react';
import classNames from 'classnames';
import omit from 'omit.js';
var Icon = function Icon(props) {
var type = props.type,
_props$className = props.className,
... |
src/components/Controls/index.js | Swizec/h1b-software-salaries |
import React, { Component } from 'react';
import _ from 'lodash';
import ControlRow from './ControlRow';
class Controls extends Component {
state = {
yearFilter: () => true,
jobTitleFilter: () => true,
USstateFilter: () => true,
year: '*',
USstate: '*',
jobTitle: '... |
client/index.js | nurpax/snap-reactjs-todo | import React from 'react'
import { render } from 'react-dom'
import Root from './containers/Root'
render(
<Root />,
document.getElementById('app')
)
|
ajax/libs/react-instantsearch/5.0.2/Connectors.js | jonobr1/cdnjs | /*! ReactInstantSearch 5.0.2 | © Algolia, inc. | https://community.algolia.com/react-instantsearch */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :... |
step2-webpack/node_modules/react/lib/ServerReactRootIndex.js | jintoppy/react-training | /**
* 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.
*
* @providesModule ... |
files/wordpress/3.0/js/jquery/jquery.js | ramda/jsdelivr | /*!
* jQuery JavaScript Library v1.4.2
* 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... |
src/svg-icons/maps/local-drink.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalDrink = (props) => (
<SvgIcon {...props}>
<path d="M3 2l2.01 18.23C5.13 21.23 5.97 22 7 22h10c1.03 0 1.87-.77 1.99-1.77L21 2H3zm9 17c-1.66 0-3-1.34-3-3 0-2 3-5.4 3-5.4s3 3.4 3 5.4c0 1.66-1.34 3-3 3zm6.... |
src/views/routes.js | astrauka/expensable-r3 | import React from 'react';
import {Route} from 'react-router';
import App from 'views/App';
import Home from 'views/Home';
import SignUp from 'views/SignUp';
import Login from 'views/Login';
import Search from 'views/Search';
import Product from 'views/Product';
export default (
<Route component={App}>
<Route pa... |
docs/src/app/components/pages/components/DropDownMenu/ExampleLongMenu.js | hai-cea/material-ui | import React from 'react';
import DropDownMenu from 'material-ui/DropDownMenu';
import MenuItem from 'material-ui/MenuItem';
const items = [];
for (let i = 0; i < 100; i++ ) {
items.push(<MenuItem value={i} key={i} primaryText={`Item ${i}`} />);
}
export default class DropDownMenuLongMenuExample extends React.Compo... |
files/react/0.14.0-rc1/react-with-addons.js | cesarmarinhorj/jsdelivr | /**
* React (with addons) v0.14.0-rc1
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="u... |
js/components/loaders/Spinner.ios.js | leehyoumin/asuraCham | /* @flow */
'use strict';
import React from 'react';
import { ActivityIndicatorIOS, Platform } from 'react-native';
import NativeBaseComponent from 'native-base/Components/Base/NativeBaseComponent';
import computeProps from 'native-base/Utils/computeProps';
export default class SpinnerNB extends NativeBaseComponent ... |
packages/maps/examples/mongo-examples/GeoDistanceSlider/src/index.js | appbaseio/reactivesearch | import React from 'react';
import ReactDOM from 'react-dom';
import { ReactiveBase } from '@appbaseio/reactivesearch';
import {
GeoDistanceSlider,
ReactiveGoogleMap,
ReactiveOpenStreetMap,
} from '@appbaseio/reactivemaps';
import Dropdown from '@appbaseio/reactivesearch/lib/components/shared/Dropdown';
const provid... |
node_modules/react-bootstrap/es/Collapse.js | ASIX-ALS/asix-final-project-frontend | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
turismo_client/src/components/nav.js | leiverandres/turismo-risaralda | import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import { Button, Menu, Icon, Label } from 'semantic-ui-react';
import NavbarOptions from './navbarOptions';
import Auth from '../utils/auth';
const userTypeName = {
user: 'Usuario',
admin: 'Administrador',
root: 'Superusuario'
};... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.