path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
public/assets/application-9a688de18b207a3cf36790a9e3d0a3dd.js | BigAppleSoftball/ratingsManager | !function(t,e){"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){function n(t){var e=t.length,n=oe.type(t);return"functi... |
source/patterns/00-atoms/progress-tracker-step/docs/progress-tracker-step.example.js | apparena/patterns | import React from 'react';
import {ProgressTrackerStep} from 'apparena-patterns-react';
export default function ProgressTrackerStepExample() {
return (
<div>
<ProgressTrackerStep text="Adresse"/>
<ProgressTrackerStep text="Paymethod" active/>
<ProgressTrackerStep text="C... |
tests/react_custom_funs/create_element.js | facebook/flow | // @flow
import React from 'react';
declare var any: any;
React.createElement(); // Error: Needs a minimum of two arguments.
React.createElement('div'); // OK
React.createElement(42); // Error: Number is not a valid component type.
React.createElement('div', {...null}); // OK
React.createElement(42, {}); // Error: N... |
ajax/libs/styled-components/3.4.3/styled-components.esm.js | sufuf3/cdnjs | import hyphenate from 'fbjs/lib/hyphenateStyleName';
import React, { cloneElement, Component, createElement } from 'react';
import Stylis from 'stylis';
import _insertRulePlugin from 'stylis-rule-sheet';
import PropTypes from 'prop-types';
import stream from 'stream';
import hoistStatics from 'hoist-non-react-statics';... |
ajax/libs/forerunnerdb/1.3.597/fdb-core+views.js | extend1994/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... |
tests/routes/Counter/components/Counter.spec.js | xiaoyai0622/youTubeApiTest | import React from 'react'
import { bindActionCreators } from 'redux'
import { Counter } from 'routes/Counter/components/Counter'
import { shallow } from 'enzyme'
describe('(Component) Counter', () => {
let _props, _spies, _wrapper
beforeEach(() => {
_spies = {}
_props = {
counter : 5,
...bindA... |
source/setup/components/ArchiveTypeChooser.js | perry-mitchell/buttercup-chrome | import React, { PureComponent } from "react";
import PropTypes from "prop-types";
import styled from "styled-components";
import { Button, ButtonGroup, Text, Classes } from "@blueprintjs/core";
import { VAULT_TYPES } from "../../shared/library/icons.js";
const ArchiveTypeImage = styled.img`
width: 2rem;
height... |
node_modules/rc-tabs/es/TabBarMixin.js | ZSMingNB/react-news | import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _extends from 'babel-runtime/helpers/extends';
import React from 'react';
import classnames from 'classnames';
import warning from 'warning';
var tabBarExtraContentStyle = {
float: 'right'
};
export default {
getDefaultProps: function getD... |
react/react-pure-component/src/index.js | kobeCan/practices | import React from 'react';
import ReactDOM from 'react-dom';
class ListOfWords extends React.PureComponent {
render () {
const { words } = this.props;
return <div>{ words.join(',') }</div>
}
}
class WordAdder extends React.Component {
constructor (props) {
super(props);
thi... |
js/react-native/tech_stack/__tests__/index.ios.js | petarov/sandbox | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
index.ios.js | jeasonHu/RNHelloWord | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
} from 'react-native';
import Indexroot from './index';
export default class RNHelloWord extends Component {
render() {
return (
<Indexroot />
);
... |
__tests__/components/TextInput-test.js | odedre/grommet-final | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import TextInput from '../../src/js/components/TextInput';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('TextInput',... |
src/routes.js | Cheapass/cheapass | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import Router from 'react-routing/src/Router';
import http from './core/HttpClient';
import App from './components/App';
import ContentPage from './components/ContentPage';
import ContactPage from './components/ContactP... |
examples/shopping-cart/src/components/ProductItem.spec.js | jhwgnu/redux | import React from 'react'
import { shallow } from 'enzyme'
import Product from './Product'
import ProductItem from './ProductItem'
const setup = product => {
const actions = {
onAddToCartClicked: jest.fn()
}
const component = shallow(
<ProductItem product={product} {...actions} />
)
return {
co... |
src/components/Controls.js | ballercat/die-young | import React from 'react';
import PropTypes from 'prop-types';
import Drawer from 'material-ui/Drawer';
import MenuItem from 'material-ui/MenuItem';
import { omit, compose } from 'ramda';
const cleanProps = omit(['newWorkspace']);
class WorkbenchControls extends React.Component {
render() {
const { newWorkspace... |
js/TimedSearch.js | nathanjameshill/ReefWatchPrototype | import React from 'react'
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table'
import { Form, Button, FormGroup, ControlLabel, FormControl, Grid, Col, Row } from 'react-bootstrap';
import CustomGrid from './components/GridControl/Grid'
import * as Data from "../data/data"
import Panel from "./compo... |
app/javascript/mastodon/components/__tests__/display_name-test.js | SerCom-KC/mastodon | import React from 'react';
import renderer from 'react-test-renderer';
import { fromJS } from 'immutable';
import DisplayName from '../display_name';
describe('<DisplayName />', () => {
it('renders display name + account name', () => {
const account = fromJS({
username: 'bar',
acct: 'bar@baz',
... |
__tests__/components/Columns-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Columns from '../../src/js/components/Columns';
// needed because this:
// https://github.com/facebook/jest/issues/1353
jest.mock('react-dom');
describe('Columns', () =>... |
files/babel/5.4.1/browser-polyfill.js | Craga89/jsdelivr | (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... |
js/tests/vendor/jquery.min.js | copasetickid/bootstrap | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
ajax/libs/redux-form/2.4.5/redux-form.min.js | AMoo-Miki/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/js/components/Cabler.js | grommet/grommet-cabler | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { configureFromLocation, set } from '../actions';
import App from 'grommet/components/App';
import Home from './Home';
import Diagram from './Diagram';
class Cab... |
node_modules/bower/node_modules/insight/node_modules/configstore/node_modules/js-yaml/node_modules/argparse/node_modules/underscore.string/test/test_underscore/vendor/jquery.js | jrwh81/ultimate-gift-guide-web-app | /*!
* 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.
... |
src/StatementRow.js | jschirrmacher/trustfact | import React from 'react';
export default class StatementRow extends React.Component {
render() {
return <li>{this.props.content.text}</li>;
}
}
|
src/svg-icons/image/gradient.js | skarnecki/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageGradient = (props) => (
<SvgIcon {...props}>
<path d="M11 9h2v2h-2zm-2 2h2v2H9zm4 0h2v2h-2zm2-2h2v2h-2zM7 9h2v2H7zm12-6H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 18H7v-2h2v2z... |
ajax/libs/material-ui/5.0.0-alpha.28/FormControl/useFormControl.js | cdnjs/cdnjs | import * as React from 'react';
import FormControlContext from './FormControlContext';
export default function useFormControl() {
return React.useContext(FormControlContext);
} |
packages/mui-icons-material/lib/CurrencyRubleSharp.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")... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | thall17/thall17.github.io | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
examples/absolute-layout/src/App.js | tannerlinsley/react-table | import React from 'react'
import styled from 'styled-components'
import { useTable, useAbsoluteLayout } from 'react-table'
import makeData from './makeData'
const Styles = styled.div`
padding: 1rem;
* {
box-sizing: border-box;
}
.table {
border: 1px solid #000;
max-width: 700px;
overflow-x: ... |
ajax/libs/forerunnerdb/1.3.738/fdb-core+views.js | jonobr1/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... |
scripts/webpack.config.dev.js | echo008/react-demo | // @remove-on-eject-begin
/**
* Copyright (c) 2015-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// @remove-on-eject-end
'use strict';
const autoprefixer = require('autoprefixer');
const path = require('path... |
src/components/form/util/submitted.js | Vision100IT/v100it-template | import React from 'react';
import PropTypes from 'prop-types';
const submitted = WrappedComponent => {
class Submitted extends React.Component {
constructor(props, ctx) {
super(props, ctx);
this.state = {
submitted: false
};
this.resetModel = this.resetModel.bind(this);
this.handleSubmit = this.h... |
client/src/app/slot-fill/FillContext.js | camunda/bpmn-io-modeler | /**
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
* under one or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership.
*
* Camunda licenses this file to you under the MIT; you may not use this ... |
packages/material-ui-icons/src/ConfirmationNumberSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M22 10V4H2.01v6c1.1 0 1.99.9 1.99 2s-.89 2-2 2v6h20v-6c-1.1 0-2-.9-2-2s.9-2 2-2zm-9 7.5h-2v-2h2v2zm0-4.5h-2v-2h2v2zm0-4.5h-2v-2h2v2z" /></React.Fragment>
, 'ConfirmationNumberSharp');
|
ajax/libs/rxjs/2.3.2/rx.lite.compat.js | nouveller/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false... |
src/interface/statistics/AzeritePowerStatistic.js | sMteX/WoWAnalyzer | /**
* Use this for Azerite Powers so they're put in the right category.
*/
import React from 'react';
import PropTypes from 'prop-types';
import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY';
import STATISTIC_ORDER from 'interface/others/STATISTIC_ORDER';
import Statistic from './Statistic';
const ... |
app/utils/bindContext.js | EpicWork/EpicWork | import React from 'react'
import { connect } from 'react-redux'
import { bindActionCreators } from 'redux'
import { compose, withContext, getContext } from 'recompose'
export default (mapStateToProps, actions, ...decorator) => component => compose(
connect(mapStateToProps, dispatch => ({
actions: bindActionCreat... |
static/Brython3.1.0-20150301-090019/Lib/jqueryui/jquery-1.11.2.min.js | 40223136/w11-2 | /*! jQuery v1.11.2 | (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... |
examples/star-wars/js/components/StarWarsShip.js | andimarek/generic-relay | /**
* This file provided by Facebook is 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,
* FITNES... |
src/Image.js | pombredanne/react-bootstrap | import React from 'react';
import classNames from 'classnames';
const Image = React.createClass({
propTypes: {
/**
* Sets image as responsive image
*/
responsive: React.PropTypes.bool,
/**
* Sets image shape as rounded
*/
rounded: React.PropTypes.bool,
/**
* Sets imag... |
app/javascript/mastodon/features/ui/components/compose_panel.js | glitch-soc/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import SearchContainer from 'mastodon/features/compose/containers/search_container';
import ComposeFormContainer from 'mastodon/features/compose/containers/compose_form_container';
import NavigationContainer from 'mast... |
src/internal/EnhancedSwitch.js | rscnt/material-ui | import React from 'react';
import EventListener from 'react-event-listener';
import keycode from 'keycode';
import transitions from '../styles/transitions';
import FocusRipple from './FocusRipple';
import TouchRipple from './TouchRipple';
import Paper from './../Paper';
import warning from 'warning';
function getStyle... |
src/components/MyTableContents.js | fredrikku/rikku-grommet-react-sample | import React from 'react';
import _ from 'lodash';
import PropTypes from 'prop-types';
import TableRow from 'grommet/components/TableRow';
import { dollarBalance, regularForm, allCaps} from '../myTags';
const MyTableContents = (props) => {
const sortIndex = ("sortIndex" in props ? props.sortIndex : null);
const sor... |
src/svg-icons/maps/local-shipping.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalShipping = (props) => (
<SvgIcon {...props}>
<path d="M20 8h-3V4H3c-1.1 0-2 .9-2 2v11h2c0 1.66 1.34 3 3 3s3-1.34 3-3h6c0 1.66 1.34 3 3 3s3-1.34 3-3h2v-5l-3-4zM6 18.5c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-... |
GADBannerView.js | lotosbin/react-native-google-firebase-admob | import React from 'react';
import {
NativeModules,
requireNativeComponent,
View,
NativeEventEmitter,
} from 'react-native';
const RCTGADBannerView = requireNativeComponent('RCTGADBannerView', GADBannerView);
export default class GADBannerView extends React.Component {
constructor() {
super();
this.... |
docs/app/Examples/views/Feed/Types/FeedExampleEventsProp.js | vageeshb/Semantic-UI-React | import React from 'react'
import { Feed } from 'semantic-ui-react'
const events = [{
date: '1 Hour Ago',
image: 'http://semantic-ui.com/images/avatar/small/elliot.jpg',
meta: '4 Likes',
summary: 'Elliot Fu added you as a friend',
}, {
date: '4 days ago',
image: 'http://semantic-ui.com/images/avatar/small/h... |
ajax/libs/yui/3.3.0pr3/simpleyui/simpleyui.js | freak3dot/cdnjs |
/**
* The YUI module contains the components required for building the YUI seed
* file. This includes the script loading mechanism, a simple queue, and
* the core utilities for the library.
* @module yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
src/Tabs.js | glenjamin/react-bootstrap | import React from 'react';
import PropTypes from 'prop-types';
import { elementType } from 'prop-types-extra';
import requiredForA11y from 'prop-types-extra/lib/isRequiredForA11y';
import uncontrollable from 'uncontrollable';
import Nav from './Nav';
import NavLink from './NavLink';
import NavItem from './NavItem';
im... |
docs/src/pages/demos/chips/ChipsPlayground.js | Kagami/material-ui | import React from 'react';
import PropTypes from 'prop-types';
import { withStyles } from '@material-ui/core/styles';
import MarkdownElement from '@material-ui/docs/MarkdownElement';
import Grid from '@material-ui/core/Grid';
import FormControl from '@material-ui/core/FormControl';
import FormLabel from '@material-ui/c... |
archimate-frontend/src/main/javascript/components/view/nodes/model_t/node.js | zhuj/mentha-web-archimate | import React from 'react'
import { BaseNodeLikeWidget } from '../_base'
export const TYPE='node';
export class NodeWidget extends BaseNodeLikeWidget {
getClassName(node) { return 'a-node model_t node'; }
}
|
src/components/popUp.js | DaveJump/online-reader | import React from 'react';
class PopUp extends React.Component{
render(){
return (
<section className="popUpBox" onTouchEnd={this.props.popUpClick} style={{display: this.props.popUpShow ? 'block' : 'none'}} >
<div><h3>{this.props.popUpMsg}</h3></div>
</section>
)
}
}
export default PopUp; |
src/components/infinite-loader-icon/index.js | datea/datea-webapp-react | import './infinite-loader-icon.scss';
import React from 'react';
import CircularProgress from '@material-ui/core/CircularProgress';
const InfiniteLoaderIcon = () =>
<div className="infinite-loader-icon" key={0}>
<CircularProgress size={30} style={{color: '#999'}} />
</div>
export default InfiniteLoaderIcon;
|
ajax/libs/es6-shim/0.20.3/es6-shim.js | lobbin/cdnjs | /*!
* https://github.com/paulmillr/es6-shim
* @license es6-shim Copyright 2013-2014 by Paul Miller (http://paulmillr.com)
* and contributors, MIT License
* es6-shim: v0.20.2
* see https://github.com/paulmillr/es6-shim/blob/master/LICENSE
* Details and documentation:
* https://github.com/paulmillr/es6-... |
tests/site3/code2/components/sections.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The Sections component for section text
*/
const Sections = ({ _parseMD, headline }) => (
<div>
{ _parseMD( headline ) }
</div>
);
Sections.propTypes = {
/**
* headline: "Headline with **markdown** allowed"
*/
headline: PropTypes.strin... |
js/src/ui/Balance/balance.spec.js | nipunn1313/parity | // Copyright 2015-2017 Parity Technologies (UK) Ltd.
// This file is part of Parity.
// Parity is free software: 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
// (at your option) any lat... |
front-end/src/components/TeamColumns.js | keithb418/scrum-team-app | import React from "react";
import PropTypes from "prop-types";
import TeamColumn from "./TeamColumn";
import AddTeamColumn from "./AddTeamColumn";
const TeamColumns = ({ teams, deleteTeam, deleteTeamMember, changeTeam }) => {
const teamColumns = teams.map((team) =>
<TeamColumn
key={team._id}
id={te... |
src/routes.js | nfcortega89/nikkotoonaughty | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/app';
import Main from './components/main';
import Card from './components/card';
export default (
<Route path="/" component={App}>
<IndexRoute component={Main} />
<Route path="/redirect" component={Ma... |
src/svg-icons/device/signal-cellular-connected-no-internet-0-bar.js | manchesergit/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceSignalCellularConnectedNoInternet0Bar = (props) => (
<SvgIcon {...props}>
<path fillOpacity=".3" d="M22 8V2L2 22h16V8z"/><path d="M20 22h2v-2h-2v2zm0-12v8h2v-8h-2z"/>
</SvgIcon>
);
DeviceSignalCellularC... |
profiles/panopoly/libraries/tinymce/jscripts/tiny_mce/plugins/legacyoutput/editor_plugin_src.js | johnnywo/wohngesund | /**
* editor_plugin_src.js
*
* Copyright 2009, Moxiecode Systems AB
* Released under LGPL License.
*
* License: http://tinymce.moxiecode.com/license
* Contributing: http://tinymce.moxiecode.com/contributing
*
* This plugin will force TinyMCE to produce deprecated legacy output such as font elements, u... |
ajax/libs/forerunnerdb/1.3.606/fdb-all.min.js | sajochiu/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... |
packages/material-ui-icons/src/ClearOutlined.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="M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z" /></React.Fragment>
, 'ClearOutli... |
internals/templates/containers/LanguageProvider/index.js | Third9/mark-one | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
jenkins-design-language/src/js/components/material-ui/svg-icons/editor/border-right.js | alvarolobato/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const EditorBorderRight = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zM3 5h2V3H3v2zm4 0h2V3H7v2zm0 8h2v-2H7v2zm-4 8h2v-2H3v2zm8 0h2v-2h-2v2zm-8-8h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm8 8h2v-2h-2v2zm4-4h2v-2h-2v2zm4-10v18h2V3h-2zm-4 18h... |
ajax/libs/angular.js/1.0.2/angular-scenario.js | jaggedsoft/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.
... |
app/react-icons/fa/calendar-o.js | scampersand/sonos-front | import React from 'react';
import IconBase from 'react-icon-base';
export default class FaCalendarO extends React.Component {
render() {
return (
<IconBase viewBox="0 0 40 40" {...this.props}>
<g><path d="m4.4 37.1h31.4v-22.8h-31.4v22.8z m8.5-27.1v-6.4q0-0.3-0.2-0.5t-0.5-0.2h-1.... |
src/index.js | thomasantony/react-concerto | import React from 'react';
import { render } from 'react-dom';
import { App } from './containers/App';
render(<App />,
document.getElementById('root'));
|
app/javascript/mastodon/features/ui/components/embed_modal.js | Nyoho/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-component';
import { defineMessages, FormattedMessage, injectIntl } from 'react-intl';
import api from 'mastodon/api';
import IconButton from 'mastodon/components/icon_button';
const messages = defin... |
packages/material-ui-icons/src/ViewStreamSharp.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M4 18h17v-6H4v6zM4 5v6h17V5H4z" /></g></React.Fragment>
, 'ViewStreamSharp');
|
app/packs/src/components/chemspectra/ChemSpectraEditor.js | ComPlat/chemotion_ELN | import React from 'react';
import ReactDOM from 'react-dom';
import { ChemSpectraClient } from '@complat/chem-spectra-client';
const domLoadedCb = () => {
const csElement = document.getElementById('ChemSpectraEditor');
if (csElement) {
ReactDOM.render(
<ChemSpectraClient editorOnly />,
csElement,... |
node_modules/react-router/es6/IndexRedirect.js | narmeen12/ecan | import React from 'react';
import warning from './routerWarning';
import invariant from 'invariant';
import Redirect from './Redirect';
import { falsy } from './InternalPropTypes';
var _React$PropTypes = React.PropTypes;
var string = _React$PropTypes.string;
var object = _React$PropTypes.object;
/**
* An <IndexRedir... |
src/components/Copy/spec.js | korabh/quran.com-frontend | import React from 'react';
import { shallow } from 'enzyme';
import Copy from './index';
const text = 'Some text';
let wrapper;
describe('<Copy />', () => {
beforeEach(() => {
wrapper = shallow(<Copy text={text} />);
});
it('should render', () => {
expect(wrapper).to.be.ok; // eslint-disable-line
})... |
src/js/views/Modals/HotkeysInfo.js | jaedb/Iris | import React from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Modal from './Modal';
import * as uiActions from '../../services/ui/actions';
import { I18n, i18n } from '../../locale';
const hotkeys = [
{ label: 'info', keysets: [['i']] },
{ label: 'pla... |
src/browser/app/Header.js | robinpokorny/este | // @flow
import type { State, User } from '../../common/types';
import React from 'react';
import linksMessages from '../../common/app/linksMessages';
import { Box, Link } from '../app/components';
import { FormattedMessage } from 'react-intl';
import { compose } from 'ramda';
import { connect } from 'react-redux';
co... |
web/src/App.js | ncpierson/soundoftext | import React, { Component } from 'react';
import { Switch, Route } from 'react-router-dom';
import ReactGA from 'react-ga';
import Header from './Header/Header';
import Footer from './Footer/Footer';
import Home from './Home/Home';
import Docs from './Docs/Docs';
import Supporters from './Supporters/Supporters';
impor... |
stories/Label/ExampleStandard.js | skyiea/wix-style-react | import React from 'react';
import {Label, Input} from 'wix-style-react';
export default () =>
<div style={{display: 'flex', alignItems: 'center'}}>
<Label dataHook="story-label" for="my-input-id" appearance="T1.1">
Label text
</Label>
<Input id="my-input-id"/>
</div>;
|
src/components/LiveStationModal (copy).js | TorinoMeteo/tm-realtime-map | import React from 'react'
import PropTypes from 'prop-types'
import Modal from 'react-modal'
import { isOffline } from 'utils/map'
import moment from 'moment'
const LiveStationModal = (props) => {
let offlineWarning = isOffline(props.data)
? (<p className='alert alert-danger' style={{ marginTop: '1rem' }}>
... |
src/server/ui/index.js | duro/react-redux-webpack-univeral-starter | import React from 'react';
import Location from 'react-router/lib/Location';
import ServerConfig from 'server/config'
import path from 'path';
import ApiClient from 'client/lib/ApiClient';
import universalRouter from 'client/lib/universalRouter';
import Html from 'client/views/Html';
import createStore from 'client/lib... |
ajax/libs/rxjs/2.3.21/rx.lite.extras.js | idleberg/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... |
public/js/components/chat/tabs1.react.js | TRomesh/Coupley | import React from 'react';
import List from 'material-ui/lib/lists/list';
import ListItem from 'material-ui/lib/lists/list-item';
import TextField from 'material-ui/lib/text-field';
import Divider from 'material-ui/lib/divider';
import IconButton from 'material-ui/lib/icon-button';
import Tabs from 'material-ui/lib/tab... |
client/packages/core-dashboard-worona/src/dashboard/loading-dashboard-theme-worona/components/Home/index.js | worona/worona | import React from 'react';
import style from './style.css';
export const Home = () => (
<div>
<div className={style.messages}>
<div className={style.spinner}>
<div className={style.bounce1}></div>
<div className={style.bounce2}></div>
<div className={style.bounce3}></div>
... |
src/components/Detail.js | Casey1449/Forgiveness-Box | import React, { Component } from 'react';
import { Link } from 'react-router';
import List from './List';
class Detail extends Component {
constructor(){
super()
this.state = {
grudgeObj: ''
}
}
getThisGrudge(id){
fetch(`/grudges/${id}`)
.then((res) => { return res.json(); })
.... |
client/modules/users/components/.stories/list.js | StorytellerCZ/Socialize-starter | import React from 'react';
import { storiesOf, action } from '@kadira/storybook';
import { setComposerStub } from 'react-komposer';
import List from '../list.jsx';
storiesOf('users.List', module)
.add('default view', () => {
return (
<List />
);
})
|
src/js/components/routes/Home.react.js | teamUndefined/creativity | import React from 'react';
import {
Paper,
RaisedButton,
CircularProgress
} from 'material-ui';
var Home = React.createClass({
getInitialState() {
return {
search: false
}
},
componentDidMount() {
this.props.socket.on("lobby_found", function(lobbyPath) {
window.location = lobbyPath;
});
this.p... |
examples/backbone_require/node_modules/backbone/backbone.js | rwson/todomvc | // Backbone.js 1.1.2
// (c) 2010-2014 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(root, factory) {
// Set up Backbone appropriately for ... |
release/assets/js/jquery.js | biddyweb/sipml5 | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(bb,L){var av=bb.document,bu=bb.navigator,bl=bb.location;var b=(function(){var bF=function(b0,b1){return new bF.fn.init(b0,b1,bD)},bU=bb.jQuery,bH=bb.$,bD,bY=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,bM=/\S/,bI=/^\s+/,bE=/\s+$/,bA=/^<(\w+)\s*\/?>(?:<\/\1>)?... |
app/javascript/mastodon/features/ui/components/boost_modal.js | tateisu/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import Button from '../../../components/button';
import StatusContent from '../../../components/status_content';
import Av... |
app/domain/page/About.js | zhufengketang/app | /***********************************************
*
* MIT License
*
* Copyright (c) 2016 珠峰课堂,Ramroll
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including with... |
ajax/libs/react-native-web/0.11.7/exports/createElement/index.js | cdnjs/cdnjs | /**
* Copyright (c) Nicolas Gallagher.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
*
*/
import AccessibilityUtil from '../../modules/AccessibilityUtil';
import createDOMProps from '../../modules/createDOMProps';
import { injectE... |
test/fixtures/webpack-message-formatting/src/AppUnknownExport.js | mangomint/create-react-app | import React, { Component } from 'react';
import { bar } from './AppUnknownExport';
class App extends Component {
componentDidMount() {
bar();
}
render() {
return <div />;
}
}
export default App;
|
src/javascript/client/client.js | realseanp/dolli-website | import polyfill from 'babel-polyfill'; // eslint-disable-line no-unused-vars
import d from 'debug';
import React from 'react';
import ReactDOM from 'react-dom';
import { Router, browserHistory } from 'react-router';
import routes from './components/Routes';
import app from './app';
import fetchRouteData from 'utils/fe... |
ajax/libs/material-ui/4.9.4/es/internal/svg-icons/RadioButtonChecked.js | cdnjs/cdnjs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C... |
ajax/libs/forerunnerdb/2.0.13/fdb-core.js | extend1994/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... |
htdocs/owncloud-serv/core/js/jquery-1.10.0.min.js | ACOKing/ArcherVMPeridot | /*! jQuery v1.10.0 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery-1.10.0.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.0",d=p.concat,h=p.push,g=p.slice,m=p.indexOf,y=c.toString,v=c.hasOwnProperty,b... |
extensions/gadget/assets/wso2-architecture/js/jquery.min.js | madawas/carbon-store | /*! jQuery v@1.8.0 jquery.com | jquery.org/license */
(function(a,b){function G(a){var b=F[a]={};return p.each(a.split(s),function(a,c){b[c]=!0}),b}function J(a,c,d){if(d===b&&a.nodeType===1){var e="data-"+c.replace(I,"-$1").toLowerCase();d=a.getAttribute(e);if(typeof d=="string"){try{d=d==="true"?!0:d==="false"?!1:d=... |
enrolment-ui/src/modules/ProjectUsers/components/EmailList.js | overture-stack/enrolment | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { emailCheck, removeEmail } from '../redux';
import './emailList.scss';
import spinner from '../../../assets/img/spinner.svg';
class EmailList extends Component {
static displayName = 'EmailList';
constructor(props) {
su... |
src/svg-icons/notification/sd-card.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSdCard = (props) => (
<SvgIcon {...props}>
<path d="M18 2h-8L4.02 8 4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-6 6h-2V4h2v4zm3 0h-2V4h2v4zm3 0h-2V4h2v4z"/>
</SvgIcon>
);
NotificationS... |
src/svg-icons/image/straighten.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageStraighten = (props) => (
<SvgIcon {...props}>
<path d="M21 6H3c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2zm0 10H3V8h2v4h2V8h2v4h2V8h2v4h2V8h2v4h2V8h2v8z"/>
</SvgIcon>
);
ImageStr... |
src/Dialog/DialogActions.spec.js | und3fined/material-ui | // @flow weak
/* eslint-env mocha */
import React from 'react';
import { assert } from 'chai';
import { createShallowWithContext } from 'test/utils';
import DialogActions, { styleSheet } from './DialogActions';
describe('<DialogActions />', () => {
let shallow;
let classes;
before(() => {
shallow = createS... |
actor-apps/app-web/src/app/components/Deactivated.react.js | suxinde2009/actor-platform | import React from 'react';
class Deactivated extends React.Component {
render() {
return (
<div className="deactivated row center-xs middle-xs">
<div className="deactivated__window">
<h2>Tab deactivated</h2>
<p>
Oops, you have opened another tab with Actor, so we had... |
misc/jquery.js | wild-iris/d7md |
/*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.