path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
src/Flags/Luxembourg.js | runjak/css-flags | // @flow
import React from 'react';
import LinearFlag from './LinearFlag';
import gradient from '../utils/gradient';
const red = '#EE2537';
const white = '#FFFFFF';
const blue = '#00A2DF';
export default function Luxembourg() {
return (
<LinearFlag
gradient={`${gradient([red, white, blue])}`}
/>
);... |
app/scenes/CustomerSearch.js | besing/frischeApp | 'use strict';
import React, {Component} from 'react';
import {
View,
ListView,
Text
} from 'react-native';
// Import 3rd Party Node Modules
import { SearchBar, ListItem } from 'react-native-elements';
// Import Scenes & Components
import ArticlesList from '../scenes/ArticlesList';
// Import Globals, Confi... |
src/CircularProgress.js | soledaddiez/react-native-circular-progress | import React from 'react';
import PropTypes from 'prop-types';
import { View, Platform } from 'react-native';
import { Surface, Shape, Path, Group } from '../../react-native/Libraries/ART/ReactNativeART';
import MetricsPath from 'art/metrics/path';
export default class CircularProgress extends React.Component {
cir... |
ajax/libs/jqwidgets/10.1.1/jqwidgets-react-tsx/jqxtogglebutton/react_jqxtogglebutton.esm.js | cdnjs/cdnjs | import * as jqxcore from '../../jqwidgets/jqxcore';
import * as jqxbuttons from '../../jqwidgets/jqxbuttons';
import { createElement, PureComponent } from 'react';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed unde... |
app/components/NewTransactionModal.js | danielfranca/xpensetrackrreact | import React from 'react';
export default function NewTransactionModal(props) {
return (
<div className="ui modal" id="newTransactionModal">
<i className="close icon"></i>
<div className="header">
Add New Transaction
</div>
<h4 className="ui horizontal di... |
ajax/libs/yui/3.7.2/simpleyui/simpleyui.js | cloudrifles/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
* @main yui
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The YUI gl... |
Examples/Movies/SearchBar.ios.js | martinbigio/react-native | /**
* The examples provided by Facebook are for non-commercial testing and
* evaluation purposes only.
*
* Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
... |
src/svg-icons/communication/rss-feed.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRssFeed = (props) => (
<SvgIcon {...props}>
<circle cx="6.18" cy="17.82" r="2.18"/><path d="M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83c0-8.59-6.97-15.56-15.56-15.56zm0 5.66v2.83c3.9 0 7.07 3.17... |
packages/material-ui-icons/src/RoomServiceTwoTone.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="M12 9.58c-2.95 0-5.47 1.83-6.5 4.41h13c-1.03-2.58-3.55-4.41-6.5-4.41z" opacity=".3" /><path d="M2 17h20v2H2zM13.84 7.79c.1-.24.16-.51.16-.79 0-1... |
app/containers/LanguageProvider/index.js | kamil-mrzyglod/AosArmyBuilder | /*
*
* 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... |
investninja-web-ui-admin/src/vendor/recharts/demo/component/Rectangle.js | InvestNinja/InvestNinja-web-ui | import React, { Component } from 'react';
import { Surface, Rectangle } from 'recharts';
class RectangleDemo extends Component {
state = {
x: 50,
y: 50,
width: 80,
height: 100,
};
changeSize() {
this.setState({
x: Math.random() * 50,
y: Math.random() * 50,
width: Math.rando... |
js/auth/NewPasswordForm.js | BarberHour/barber-hour | import React, { Component } from 'react';
import {
View,
Text,
StyleSheet,
StatusBar,
TextInput,
Platform
} from 'react-native';
import { connect } from 'react-redux';
import t from 'tcomb-form-native';
const Form = t.form.Form;
import Button from '../common/Button';
import Toolbar from '../common/Toolbar... |
assets/jqwidgets/demos/react/app/splitter/loadingsplitpanelswithxhr/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxSplitter from '../../../jqwidgets-react/react_jqxsplitter.js';
class App extends React.Component {
componentDidMount() {
let loadPage = (url, tabIndex) => {
let request = new XMLHttpRequest();
request.open('GET'... |
ajax/libs/intl-tel-input/5.1.7/js/intlTelInput.js | yinghunglai/cdnjs | /*
International Telephone Input v5.1.7
https://github.com/Bluefieldscom/intl-tel-input.git
*/
// wrap in UMD - see https://github.com/umdjs/umd/blob/master/jqueryPlugin.js
(function(factory) {
if (typeof define === "function" && define.amd) {
define([ "jquery" ], function($) {
factory($, window... |
src/js/components/Services/ServiceTabs.js | hadnazzar/ModernBusinessBootstrap-ReactComponent | import React from 'react';
export default class Body extends React.Component {
render() {
return(
<div class="container">
<div class="row">
<div class="col-lg-12">
<h2 class="page-header">Service Tabs</h2>
</div>
<div class="col-lg-... |
test/dom-map-view-spec.js | AbdulMuhsinSE/mapjs | /*global MAPJS, jQuery, describe, it, beforeEach, afterEach, _, expect, navigator, jasmine, Color, spyOn, observable, window*/
describe('innerText', function () {
'use strict';
var underTest;
beforeEach(function () {
jQuery.fn.innerText.check = false;
underTest = jQuery('<span></span>').appendTo('body');
spyOn... |
src/components/slider/demos/disabled.js | isogon/material-components | import React from 'react'
import { Slider } from '../../../'
export default () => <Slider min={0} max={100} defaultValue={60} disabled />
|
front_end/front_end_app/src/client/todos/tocheck.react.js | carlodicelico/horizon | import Component from '../components/component.react';
import React from 'react';
import {FormattedHTMLMessage} from 'react-intl';
import {Link} from 'react-router';
export default class ToCheck extends Component {
static propTypes = {
msg: React.PropTypes.object.isRequired
}
render() {
const {msg} = t... |
imports/ui/components/home.js | AdmitHub/ScholarFisher | import React from 'react'
import { Link } from 'react-router'
import Burger from './burger';
export default class Home extends React.Component {
render() {
return (
<div>
<div className="hero container-fluid header">
<div className="col-xs-1">
<Burger />
</div>
... |
packages/material-ui-icons/src/PlayForWorkTwoTone.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="M11 5v5.59H7.5l4.5 4.5 4.5-4.5H13V5h-2zm-5 9c0 3.31 2.69 6 6 6s6-2.69 6-6h-2c0 2.21-1.79 4-4 4s-4-1.79-4-4H6z" /></React.Fragment>
, 'PlayForWor... |
analysis/deathknightblood/src/modules/features/Ossuary.js | anom0ly/WoWAnalyzer | import { t } from '@lingui/macro';
import { formatPercentage } from 'common/format';
import SPELLS from 'common/SPELLS';
import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer';
import Events from 'parser/core/Events';
import BoringSpellValueText from 'parser/ui/BoringSpellValueText';
import Statistic from 'pa... |
app/components/MediumEditor/index.js | Zurico/t7 | // MIT: FormidableLabs/component-playground
import blacklist from 'blacklist';
import React from 'react';
import ReactDOM from 'react-dom';
import 'katex/dist/katex.min.css';
import 'medium-editor/dist/css/medium-editor.css';
import 'medium-editor/dist/css/themes/default.css';
import MediumEditor from 'medium-editor';... |
src/components/home/index.js | OpenChemistry/mongochemclient | import React, { Component } from 'react';
import withStyles from '@material-ui/core/styles/withStyles';
import Typography from '@material-ui/core/Typography';
import Grid from '@material-ui/core/Grid';
import Card from '@material-ui/core/Card';
import Paper from '@material-ui/core/Paper';
import Button from '@materia... |
src/app/components/Footer.js | akzuki/BoardgameAPI | import React from 'react';
export class Footer extends React.Component {
render() {
return (
<footer>
<div className="container">
<div className="row text-center">
<ul className="list-inline">
<li... |
ajax/libs/yui/3.10.0/datatable-body/datatable-body.js | AlicanC/cdnjs | YUI.add('datatable-body', function (Y, NAME) {
/**
View class responsible for rendering the `<tbody>` section of a table. Used as
the default `bodyView` for `Y.DataTable.Base` and `Y.DataTable` classes.
@module datatable
@submodule datatable-body
@since 3.5.0
**/
var Lang = Y.Lang,
isArray = Lang.isA... |
tests/site7/code2/partial2.js | dominikwilkowski/cuttlebelle | import PropTypes from 'prop-types';
import React from 'react';
/**
* The Partial component for the default layout of partials
*/
const Partial = ({ _body, subtitle }) => (
<article>
{ subtitle && <h2>{ subtitle }</h2> }
<div>{ _body }</div>
</article>
);
Partial.propTypes = {
/**
* subtitle: Partial titl... |
ajax/libs/6to5/1.13.6/browser-polyfill.js | perdona/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... |
src/scenes/session/components/scene/index.js | fokye/react-webpack-skeleton | import Panel from '_/components/panel';
import PropTypes from 'prop-types';
import React from 'react';
import styles from './styles.css';
import { t } from '_/services/i18n';
/**
* This scene renders the UI for creating a session (i.e: a sign in page).
*/
class SessionScene extends React.Component {
static get pr... |
src/svg-icons/av/fiber-manual-record.js | pradel/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvFiberManualRecord = (props) => (
<SvgIcon {...props}>
<circle cx="12" cy="12" r="8"/>
</SvgIcon>
);
AvFiberManualRecord = pure(AvFiberManualRecord);
AvFiberManualRecord.displayName = 'AvFiberManualRecord';
... |
ajax/libs/muicss/0.5.4/extra/mui-react-combined.min.js | him2him2/cdnjs | !function(e){var t=e.babelHelpers={};t["typeof"]="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},t.jsx=function(){var e="function"==typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.eleme... |
packages/material-ui-icons/src/CameraRoll.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let CameraRoll = props =>
<SvgIcon {...props}>
<path d="M14 5c0-1.1-.9-2-2-2h-1V2c0-.55-.45-1-1-1H6c-.55 0-1 .45-1 1v1H4c-1.1 0-2 .9-2 2v15c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2h8V5h-8zm-2 13h-2v-2h2v2zm0-9h-2V7h2v2... |
packages/react/components/list-button.js | AdrianV/Framework7 | import React from 'react';
import Utils from '../utils/utils';
import Mixins from '../utils/mixins';
import __reactComponentDispatchEvent from '../runtime-helpers/react-component-dispatch-event.js';
import __reactComponentSlots from '../runtime-helpers/react-component-slots.js';
import __reactComponentSetProps from '..... |
ajax/libs/redux-form/7.0.0-alpha.3/redux-form.js | nolsherry/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("react-redux"), require("redux"));
else if(typeof define === 'function' && define.amd)
define(["react", "react-redux", "redux"], factory);
e... |
examples/animated-framer-motion/src/index.js | react-tools/react-table | import React from 'react'
import ReactDOM from 'react-dom'
import './index.css'
import App from './App'
ReactDOM.render(<App />, document.getElementById('root'))
|
src/card/test.js | twilson63/t63 | import React from 'react'
import test from 'tape'
import { shallow } from 'enzyme'
import Card from './'
const { Text } = Card
test('<Card />', t => {
const wrapper = shallow(
<Card>
<Text>Hello World</Text>
</Card>
)
t.ok(wrapper.contains(<Text>Hello World</Text>))
t.end()
})
|
node_modules/antd/es/tree/index.js | prodigalyijun/demo-by-antd | import _extends from 'babel-runtime/helpers/extends';
import _defineProperty from 'babel-runtime/helpers/defineProperty';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _createClass from 'babel-runtime/helpers/createClass';
import _possibleConstructorReturn from 'babel-runtime/helpers/possib... |
ajax/libs/yasqe/1.1.0/yasqe.min.js | OnsenUI/cdnjs | !function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASQE=e()}}(function(){var e;return function t(e,r,i){function n(s,a){if(!r[s]){if(!... |
ajax/libs/zeroclipboard/2.1.5/ZeroClipboard.Core.js | KOLANICH/cdnjs | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.1.5
*/
(function(window, undefined) {
"use strict";... |
ajax/libs/babel-core/5.8.31/browser.min.js | LeaYeh/cdnjs |
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.babel=e()}}(function(){var e,t,r;return function n(e,... |
ajax/libs/extjs/4.2.1/src/data/NodeStore.js | tresni/cdnjs | /*
This file is part of Ext JS 4.2
Copyright (c) 2011-2013 Sencha Inc
Contact: http://www.sencha.com/contact
GNU General Public License Usage
This file may be used under the terms of the GNU General Public License version 3.0 as
published by the Free Software Foundation and appearing in the file LICENSE included in... |
src/components/help.js | rscarson/Lavendeux | import React from 'react';
import { Container } from 'react-bootstrap';
import { helpText } from '../include/help_strings';
/**
* Render the help tab
* @param {Object} props Component properties
* @returns Component contents
*/
function Help(props) {
return (
<Container dangerouslySetInnerHTML={
... |
packages/material-ui-icons/lib/ElectricMopedOutlined.js | mbrookes/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")... |
ajax/libs/orb/1.0.1/orb.js | rileyjshaw/cdnjs | /**
* orb v1.0.1, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri.
*
* @version v1.0.1
* @link http://nnajm.github.io/orb/
* @license MIT
*/
'use strict';
! function(e) {
if ("object" == typeof exports && "undefined" != typeof module) module.exports = e();
else if ("function" == ... |
Realization/frontend/czechidm-core/src/components/basic/Table/DateCell.js | bcvsolutions/CzechIdMng | import React from 'react';
import moment from 'moment';
//
import DefaultCell from './DefaultCell';
/**
* Renders cell with date content.
* Parametrs are automatically propagated from table / row / column.
*
* @param number rowIndex
* @param array[json] input data
* @param property column key
* @param props oth... |
ajax/libs/yasgui/1.0.7/yasgui.bundled.min.js | quba/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;"undefined"!=typeof window?t=window:"undefined"!=typeof global?t=global:"undefined"!=typeof self&&(t=self),t.YASGUI=e()}}(function(){var e;return function t(e,n,r... |
src/routes/links/index.js | transitlinks/web-app | import { getLog } from '../../core/log';
const log = getLog('routes/links');
import React from 'react';
import ErrorPage from '../../components/common/ErrorPage';
import Links from './Links';
import { createParamString } from '../../core/utils';
import { getActiveTripQuery, getLinksQuery } from '../../data/queries/que... |
app/containers/Store/StoreItem.js | ryanwashburne/react-skeleton | // React
import PropTypes from 'prop-types';
import React from 'react';
import { NavLink } from 'react-router-dom';
// Redux
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as storeActions from 'app/reducers/storeReducer';
import * as global from 'app/reducers/globalReducer'... |
src/components/ResultsBar.js | AdlerPlanetarium/pluto-poll | import React from 'react';
export default class Bar extends React.Component {
render() {
return (
<div className="bar">
<h5 className="name">{this.props.candidate}</h5>
<div className="result-container">
<div
id={this.props.candidate}
className="result-bar"... |
pages/error/index.js | tomalexing/quiz | /**
* React Static Boilerplate
* https://github.com/kriasoft/react-static-boilerplate
*
* Copyright © 2015-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
... |
src/components/Editor/EditorPreviewPane/EditorPreview.js | Aloomaio/netlify-cms | import PropTypes from 'prop-types';
import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
function isVisible(field) {
return field.get('widget') !== 'hidden';
}
const style = {
fontFamily: 'Roboto, "Helvetica Neue", HelveticaNeue, Helvetica, Arial, sans-serif',
};
/**
* Use a st... |
frontend/src/App.js | mshenfield/subreddit_algebra | import React, { Component } from 'react';
import ErrorNotification from './components/ErrorNotification';
import Footer from './components/Footer';
import Header from './components/Header';
import OperatorSelector from './components/OperatorSelector';
import SubredditInput from './components/SubredditInput';
import Sub... |
src/scripts/routes.js | jie/microgate | import cookie from './utils/cookie'
import React from 'react'
import { Router, Route } from 'react-router'
import AccountLoginApp from './containers/account'
import { MainApp } from './containers/admin'
import { DashboardApp } from './containers/admin'
import { ApiCreateApp, ApisListApp } from './containers/admin'
impo... |
src/client/routes.js | kingisaac95/docmanager | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './components/App';
import HomePage from './components/home/HomePage';
import Dashboard from './components/DashboardPage';
import Documents from './components/document/DocumentPage';
import Users from './components/user/UserPag... |
src/desktop/apps/consign/components/thank_you/index.js | kanaabe/force | import Document from '../../../../components/main_layout/public/icons/consignments-doc.svg'
import GreenCheck from '../../../../components/main_layout/public/icons/green-check.svg'
import PropTypes from 'prop-types'
import React from 'react'
import Select from '../../../../components/main_layout/public/icons/consignmen... |
recursos/js/jquery.mobile-1.3.1.js | handark/restacarta | /*
* jQuery Mobile 1.3.1
* Git HEAD hash: 74b4bec049fd93e4fe40205e6157de16eb64eb46 <> Date: Wed Apr 10 2013 21:57:23 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory )... |
examples/todomvc/containers/App.js | mcanthony/redux-devtools | import React, { Component } from 'react';
import TodoApp from './TodoApp';
import { createStore, combineReducers, compose } from 'redux';
import { devTools, persistState } from 'redux-devtools';
import { DevTools, DebugPanel, LogMonitor } from 'redux-devtools/lib/react';
import { Provider } from 'react-redux';
import *... |
course/format/amd/src/local/content/actions.js | lameze/moodle | // This file is part of Moodle - http://moodle.org/
//
// Moodle 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 later version.
//
// Moodle is dis... |
js/app/signin/handler.js | monetario/web |
'use strict';
import React from 'react';
import {Router, Route, Link} from 'react-router'
import Reflux from 'reflux';
import Store from './store';
import SignInForm from './components';
var SignInHandler = React.createClass({
mixins: [
Reflux.listenTo(Store, 'onStoreUpdate')
],
getInitialState() {
... |
src/entry.js | P3trur0/tinyws-client | import React from 'react';
import ReactDOM from 'react-dom';
import { Router, Route, IndexRoute, browserHistory } from "react-router";
import '../css/app.scss';
import NewCompany from "./components/NewCompany";
import CompaniesBox from "./components/CompaniesBox";
import ModifyCompany from "./components/ModifyCompany... |
src/components/Close/Close.js | typical000/paveldavydov | import React from 'react'
import PropTypes from 'prop-types'
import {rotateZ, translate, multiple} from 'css-functions'
import injectSheet from '../../utils/jss'
import {transition} from '../../utils/css'
const styles = (theme) => {
const color = theme.text.default
const size = 24
const barWeight = 3
return {... |
fields/types/relationship/RelationshipColumn.js | riyadhalnur/keystone | import React from 'react';
import ItemsTableCell from '../../../admin/client/components/ItemsTableCell';
import ItemsTableValue from '../../../admin/client/components/ItemsTableValue';
const moreIndicatorStyle = {
color: '#bbb',
fontSize: '.8rem',
fontWeight: 500,
marginLeft: 8,
};
var RelationshipColumn = React.... |
docs/app/Examples/elements/Button/Variations/ButtonExampleVerticallyAttached.js | Rohanhacker/Semantic-UI-React | import React from 'react'
import { Button, Segment } from 'semantic-ui-react'
const ButtonExampleVerticallyAttached = () => (
<div>
<Button attached='top'>Top</Button>
<Segment attached>
<img src='http://semantic-ui.com/images/wireframe/paragraph.png' />
</Segment>
<Button attached='bottom'>Bot... |
packages/material-ui/src/Button/Button.js | Kagami/material-ui | // @inheritedComponent ButtonBase
import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import { componentPropType, chainPropTypes } from '@material-ui/utils';
import withStyles from '../styles/withStyles';
import { fade } from '../styles/colorManipulator';
import ButtonBa... |
test/BootstrapMixinSpec.js | albertojacini/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import BootstrapMixin from '../src/BootstrapMixin';
import styleMaps from '../src/styleMaps';
import { shouldWarn } from './helpers';
let Component;
describe('BootstrapMixin', () => {
beforeEach(() => {
Component = React.createCla... |
ajax/libs/react/18.0.0-rc.0-next-790b5246f-20220118/cjs/react-jsx-runtime.development.min.js | cdnjs/cdnjs | "use strict";"production"!==process.env.NODE_ENV&&function(){var e=require("react"),p=require("object-assign"),y=60103,a=60106;exports.Fragment=60107;var r,d=60108,m=60114,g=60109,v=60110,b=60112,h=60113,_=60120,k=60115,w=60116,j=60129,O=60130,R=60131,i=60132;"function"==typeof Symbol&&Symbol.for&&(y=(r=Symbol.for)("re... |
ajax/libs/react-native-web/0.17.2/cjs/exports/ScrollView/index.min.js | cdnjs/cdnjs | "use strict";exports.__esModule=!0,exports.default=void 0;var _createReactClass=_interopRequireDefault(require("create-react-class")),_dismissKeyboard=_interopRequireDefault(require("../../modules/dismissKeyboard")),_invariant=_interopRequireDefault(require("fbjs/lib/invariant")),_mergeRefs=_interopRequireDefault(requi... |
src/App.js | talexand/redux-simple-router-test | import React, { Component } from 'react';
import { NICE, SUPER_NICE } from './colors';
class Counter extends Component {
constructor(props) {
super(props);
this.state = { counter: 0 };
this.interval = setInterval(() => this.tick(), 1000);
}
tick() {
this.setState({
counter: this.state.coun... |
src/app/components/SearchEngine/SearchEngine.js | harsh376/Hector | // @flow
import React from 'react';
import './SearchEngine.scss';
import CustomImage from '../CustomImage/CustomImage';
import searchHome from '../../static/search_home.png';
import searchAutopredict from '../../static/search_autopredict.png';
import searchHistory from '../../static/search_history.png';
import searchS... |
dist/simple-360-player.min.js | gbentaieb/simple-360-player | /*
Modernizr 3.0.0pre (Custom Build) | MIT
*/
(function(p,k){"object"===typeof exports&&"object"===typeof module?module.exports=k():"function"===typeof define&&define.amd?define([],k):"object"===typeof exports?exports.Simple360Player=k():p.Simple360Player=k()})(this,function(){return function(p){function k(n){if(f[n])... |
docs/src/pages/component-demos/lists/CheckboxListSecondary.js | dsslimshaddy/material-ui | // @flow weak
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { withStyles } from 'material-ui/styles';
import List, { ListItem, ListItemSecondaryAction, ListItemText } from 'material-ui/List';
import Checkbox from 'material-ui/Checkbox';
import Avatar from 'material-ui/Avatar';
im... |
ajax/libs/react-instantsearch/4.1.0-beta.4/Connectors.js | nolsherry/cdnjs | /*! ReactInstantSearch 4.1.0-beta.4 | © Algolia, inc. | https://community.algolia.com/react-instantsearch/ */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && ... |
app/routes.js | rhberro/the-react-client | import { Route, Switch } from 'react-router-dom'
import React from 'react'
import About from './components/views/About'
import Home from './components/views/Home'
import NotFound from './components/views/NotFound'
function Routes () {
return (
<Switch>
<Route exact path='/' component={Home} />
<Rout... |
testdriven/jquery-1.11.3.min.js | chyeh727/tut-tictactoe | /*! 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... |
node_modules/material-ui/svg-icons/maps/local-offer.js | SerendpityZOEY/Solr-Search-React-UI | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
docs/src/pages/components/tooltips/DelayTooltips.js | allanalexandre/material-ui | import React from 'react';
import Button from '@material-ui/core/Button';
import Tooltip from '@material-ui/core/Tooltip';
function DelayTooltips() {
return (
<Tooltip title="Add" enterDelay={500} leaveDelay={200}>
<Button>[500ms, 200ms]</Button>
</Tooltip>
);
}
export default DelayTooltips;
|
src/views/components/projects/ProjectUserEditor.js | Domiii/project-empire |
import { getOptionalArgument, NOT_LOADED } from 'dbdi/util';
import { EmptyObject, EmptyArray } from 'src/util';
import map from 'lodash/map';
import isEmpty from 'lodash/isEmpty';
import pickBy from 'lodash/pickBy';
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import autoBind from ... |
ajax/libs/flocks.js/1.6.1/flocks.min.js | davidbau/cdnjs | if("undefined"===typeof React)var React=require("react");
(function(){function h(a){return"[object Array]"===Object.prototype.toString.call(a)}function l(a){return"undefined"===typeof a}function v(a){return"object"!==typeof a||"[object Array]"===Object.prototype.toString.call(a)?!1:!0}function b(a,c){if("string"===type... |
es/components/viewer2d/scene.js | vovance/3d-demo | var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err;... |
components/EventsCard.js | cleaskitchen/cleaskitchen.github.io | import React from 'react';
import {Card,CardMedia} from 'material-ui/Card';
import {Grid,Row,Col} from 'react-bootstrap';
const EventsCard = () => (
<Grid>
<Row>
<Col md={4}>
<Card>
<CardMedia>
<img src="./images/Chalkboard-background.... |
src/svg-icons/notification/sd-card.js | ichiohta/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... |
chrome-extension/src/browser_action/containers/App/index.js | hiiamyes/paiyun-auto-apply | import React, { Component } from 'react';
import styled from 'styled-components';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import Select from 'react-select';
import DatePicker from 'react-datepicker';
import moment from 'moment';
import Loader from 'halogen/ScaleLoader';
import... |
packages/material-ui-icons/src/Brightness7Sharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12 20 8.69zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6zm0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 ... |
assets/script/modules/wedding-pat.min.js | eavlee/Funky | !function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var l=n[a]={exports:{}};t[a][0].call(l.exports,function(e){var n=t[a][1][e];return o(n?n:e)},l,l.ex... |
test/react-test/post-likes.js | clbn/freefeed-react-client | import test from 'tape'
import React from 'react'
import PostLikes from 'src/components/post-likes'
import sd from 'skin-deep'
const renderLikes = (likes, omittedLikes = 0) => {
const post = {omittedLikes}
const tree = sd.shallowRender(React.createElement(PostLikes, {likes, post}))
return tree.getRenderOutput(... |
4.2.0/src/examples/WizardForm.js | erikras/redux-form-docs | import React, { Component, PropTypes } from 'react'
import WizardFormFirstPage from './WizardFormFirstPage'
import WizardFormSecondPage from './WizardFormSecondPage'
import WizardFormThirdPage from './WizardFormThirdPage'
class WizardForm extends Component {
constructor(props) {
super(props)
// Pro tip: The... |
ajax/libs/react-highcharts/8.3.2/ReactHighcharts.src.js | sreym/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"), require("highcharts"));
else if(typeof define === 'function' && define.amd)
define(["react", "highcharts"], factory);
else if(typeof exports === 'ob... |
ajax/libs/angular-google-maps/1.2.3/angular-google-maps.js | mikelambert/cdnjs | /*! angular-google-maps 1.2.3 2014-10-05
* AngularJS directives for Google Maps
* git: https://github.com/nlaplante/angular-google-maps.git
*/
/**
* @name InfoBox
* @version 1.1.12 [December 11, 2012]
* @author Gary Little (inspired by proof-of-concept code from Pamela Fox of Google)
* @copyright Copyright 201... |
example/src/App.js | Tom910/react-async-loading | import React, { Component } from 'react';
import Button from './components/Button/ButtonAsync.js';
import Link from './components/Link/LinkAsync.js';
export default class App extends Component {
render() {
return (
<div>
Test:
<Button>BUTTON</Button> <Link href='http://google.com'>LINK</Lin... |
ajax/libs/yui/3.5.1/event-focus/event-focus-min.js | CrossEye/cdnjs | YUI.add("event-focus",function(f){var d=f.Event,c=f.Lang,a=c.isString,e=f.Array.indexOf,b=c.isFunction(f.DOM.create('<p onbeforeactivate=";"/>').onbeforeactivate);function g(i,h,k){var j="_"+i+"Notifiers";f.Event.define(i,{_attach:function(m,n,l){if(f.DOM.isWindow(m)){return d._attach([i,function(o){n.fire(o);},m]);}el... |
packages/react-art/src/ReactART.js | rickbeerendonk/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import ReactVersion from 'shared/ReactVersion';
import {LegacyRoot} from 'shared/ReactRootTags';
import... |
src/chapters/02-pogojna-verjetnost/diagram.js | medja/ovs-prirocnik | import React, { Component } from 'react';
import Formula from 'components/formula';
import { External, Line, Rectangle, Surface } from 'components/graphics';
import Event from './event';
class Diagram extends Component {
state = {
selected: null,
focused: null
};
box = {
... |
src/components/Navbar/Navbar.js | semenov/tasks | /*
* React.js Starter Kit
* Copyright (c) 2014 Konstantin Tarkus (@koistya), KriaSoft LLC.
*
* 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'; // eslint-disable-line no-unused-vars
class Navbar {
rende... |
src/svg-icons/action/alarm-add.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAlarmAdd = (props) => (
<SvgIcon {...props}>
<path d="M7.88 3.39L6.6 1.86 2 5.71l1.29 1.53 4.59-3.85zM22 5.72l-4.6-3.86-1.29 1.53 4.6 3.86L22 5.72zM12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9c4.97 0 9-4.03 9-9s-4.... |
frontend/src/Settings/Indexers/Restrictions/RestrictionsConnector.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { deleteRestriction, fetchRestrictions } from 'Store/Actions/settingsActions';
import createTagsSelector from 'Store/Selectors/createTagsSelector';
impor... |
react/reactRedux/redux-master/examples/universal/client/index.js | huxinmin/PracticeMakesPerfect | import 'babel-polyfill'
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import configureStore from '../common/store/configureStore'
import App from '../common/containers/App'
const preloadedState = window.__PRELOADED_STATE__
const store = configureStore(preloadedStat... |
ajax/libs/jquery/1.4.0/jquery.min.js | nareshs435/cdnjs | /*!
* jQuery JavaScript Library v1.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://docs.jquery.com/License
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL License... |
catalog/app/containers/Auth/PassReset.js | quiltdata/quilt | import * as FF from 'final-form'
import React from 'react'
import * as RF from 'react-final-form'
import * as redux from 'react-redux'
import * as Config from 'utils/Config'
import * as NamedRoutes from 'utils/NamedRoutes'
import * as Sentry from 'utils/Sentry'
import Link from 'utils/StyledLink'
import defer from 'ut... |
src/svg-icons/av/add-to-queue.js | igorbt/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"/>
... |
app/routes.js | AmazingHorse/ee-toolkit | /* eslint flowtype-errors/show-errors: 0 */
import React from 'react';
import { Switch, Route } from 'react-router';
import App from './containers/App';
import HomePage from './containers/HomePage';
import CounterPage from './containers/CounterPage';
export default () => (
<App>
<Switch>
<Route path="/coun... |
src/main/webapp/bower_components/modernizr/test/js/lib/jquery-1.7b2.js | GIP-RECIA/esup-publisher-ui | /*!
* jQuery JavaScript Library v1.7b2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.