target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/svg-icons/social/location-city.js | mit-cml/iot-website-source | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialLocationCity = (props) => (
<SvgIcon {...props}>
<path d="M15 11V5l-3-3-3 3v2H3v14h18V11h-6zm-8 8H5v-2h2v2zm0-4H5v-2h2v2zm0-4H5V9h2v2zm6 8h-2v-2h2v2zm0-4h-2v-2h2v2zm0-4h-2V9h2v2zm0-4h-2V5h2v2zm6 12h-2v-2h... |
test/demo/ssr/createElement.js | picidaejs/picidaejs | import React from 'react'
import NProgress from 'nprogress'
export default function createElement(Component, props) {
// console.log('Custom createElement: ');
// console.log(' Component: ', Component);
// console.log(' props: ', props);
NProgress.done();
return React.createElement(Componen... |
src/js/components/header/demonotification.js | michaelatmender/gui | import React from 'react';
import { InfoOutlined as InfoIcon } from '@mui/icons-material';
import { MenderTooltipClickable } from '../common/mendertooltip';
const DemoNotification = ({ iconClassName, docsVersion = 'development/', sectionClassName }) => (
<MenderTooltipClickable
className={`flexbox centered ${s... |
React Native/Demos/address_book/Views/message/item.js | AngryLi/note-iOS | /**
* Created by Liyazhou on 16/8/28.
*/
import React from 'react';
import {
Text,
View,
StyleSheet,
Image,
TouchableHighlight
} from 'react-native';
import Util from './../util';
import Service from './../service';
export default class Item extends React.Component {
_loadPage(data) {
... |
frontend/src/InteractiveImport/Quality/SelectQualityModalContent.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React, { Component } from 'react';
import Form from 'Components/Form/Form';
import FormGroup from 'Components/Form/FormGroup';
import FormInputGroup from 'Components/Form/FormInputGroup';
import FormLabel from 'Components/Form/FormLabel';
import Button from 'Components/Link/Bu... |
src/Backspace.js | adamjking3/react-typing-animation | import React from 'react';
const Backspace = () => <noscript />;
Backspace.updateCursor = (cursor, { speed, count, delay }) => {
return {
...cursor,
numToErase: count,
preEraseLineNum: cursor.lineNum,
speed: speed > 0 ? speed : cursor.speed,
delay: delay > 0 ? cursor.delay + delay : cursor.delay... |
src/svg-icons/communication/present-to-all.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationPresentToAll = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h18c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 16.02H3V4.98h18v14.04zM10 12H8l4-4 4 4h-2v4h-4v-4z"/... |
examples/todomvc/containers/TodoApp.js | chibicode/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
src/svg-icons/action/account-balance-wallet.js | barakmitz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAccountBalanceWallet = (props) => (
<SvgIcon {...props}>
<path d="M21 18v1c0 1.1-.9 2-2 2H5c-1.11 0-2-.9-2-2V5c0-1.1.89-2 2-2h14c1.1 0 2 .9 2 2v1h-9c-1.11 0-2 .9-2 2v8c0 1.1.89 2 2 2h9zm-9-2h10V8H12v8zm4-... |
src/components/ForkMeOnGithubRibbon.js | alanrsoares/redux-game-of-life | import React from 'react'
const PROJECT_URL = 'https://github.com/alanrsoares/redux-game-of-life'
const ribbon = (
<div className='github-fork-ribbon'>
<a href={PROJECT_URL}>Fork me on Github</a>
</div>
)
export default () => (
<div>
<div className='github-fork-ribbon-wrapper right-bottom visible-xs'>
... |
ajax/libs/react-native-web/0.0.0-10de98778/exports/AppRegistry/renderApplication.js | cdnjs/cdnjs | function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
/... |
node_modules/react-router-dom/es/NavLink.js | FoxMessenger/nyt-react | var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
var _typeof = typeof Symbol === "function" && typeof Symbol.i... |
node_modules/@material-ui/core/esm/InputAdornment/InputAdornment.js | pcclarke/civ-techs | import _extends from "@babel/runtime/helpers/extends";
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import warning from 'warning';
import Typography from '../Typography';
import withStyles f... |
src/svg-icons/places/child-friendly.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let PlacesChildFriendly = (props) => (
<SvgIcon {...props}>
<path d="M13 2v8h8c0-4.42-3.58-8-8-8zm6.32 13.89C20.37 14.54 21 12.84 21 11H6.44l-.95-2H2v2h2.22s1.89 4.07 2.12 4.42c-1.1.59-1.84 1.75-1.84 3.08C4.5 20.43... |
ajax/libs/6to5/2.3.1/browser-polyfill.js | sullivanmatt/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
ajax/libs/vuex/2.1.1/vuex.js | him2him2/cdnjs | /**
* vuex v2.1.1
* (c) 2016 Evan You
* @license MIT
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.Vuex = factory());
}(this, (function () { 'use strict';
var ... |
src/common/date-range/legend/DateRangeLegend.js | fastmonkeys/respa-ui | import React from 'react';
import PropTypes from 'prop-types';
import injectT from '../../../../app/i18n/injectT';
const DateRangeLegend = (props) => {
const { t } = props;
return (
<div className="app-DateRangeLegend">
<div className="app-DateRangeLegend__legend-item">
<div className="app-DateR... |
src/svg-icons/action/perm-scan-wifi.js | hai-cea/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPermScanWifi = (props) => (
<SvgIcon {...props}>
<path d="M12 3C6.95 3 3.15 4.85 0 7.23L12 22 24 7.25C20.85 4.87 17.05 3 12 3zm1 13h-2v-6h2v6zm-2-8V6h2v2h-2z"/>
</SvgIcon>
);
ActionPermScanWifi = pure(A... |
src/svg-icons/social/notifications-off.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialNotificationsOff = (props) => (
<SvgIcon {...props}>
<path d="M20 18.69L7.84 6.14 5.27 3.49 4 4.76l2.8 2.8v.01c-.52.99-.8 2.16-.8 3.42v5l-2 2v1h13.73l2 2L21 19.72l-1-1.03zM12 22c1.11 0 2-.89 2-2h-4c0 1.11... |
ajax/libs/yui/3.4.0/event-custom-base/event-custom-base.js | athanclark/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module ev... |
test/ngettext-spec.js | bholloway/react-i18n-interpolation | import test from 'tape';
import sinon from 'sinon';
import React from 'react';
import {check, gen} from 'tape-check';
import {times, requireSrc} from './helpers';
import {
anyPrimitive, anyValue, anyUnkeyedComplexSubstitution,
anyKeyedPrimitiveSubstitutionKV, anyKeyedComplexSubstitutionKV,
anyIllegalPrimitiveSub... |
public/javascripts/core-js/client/shim.js | boubad/infodatalib | /**
* Core.js 0.4.10
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(global, framework, undefined){
'use strict';
/******************************************************************************
* Module : common ... |
tests/lib/rules/vars-on-top.js | FeodorFitsner/eslint | /**
* @fileoverview Tests for vars-on-top rule.
* @author Danny Fritz
* @author Gyandeep Singh
* @copyright 2014 Danny Fritz. All rights reserved.
* @copyright 2014 Gyandeep Singh. All rights reserved.
*/
"use strict";
//------------------------------------------------------------------------------
// Requiremen... |
ajax/libs/preact/5.1.0-beta.23/preact.js | holtkamp/cdnjs | !function(global, factory) {
'object' == typeof exports && 'undefined' != typeof module ? factory(exports) : 'function' == typeof define && define.amd ? define([ 'exports' ], factory) : factory(global.preact = global.preact || {});
}(this, function(exports) {
function VNode(nodeName, attributes, children) {
... |
src/common/conponent.js | angustas/company | import React from 'react';
import * as client from './client';
import Antd from 'antd';
const INSTANCES = [];
/**
* 组件标准化, 所有组件都必须继承此类。
* 标准化主要包括:
* 1. 模块统一管理, 子类必须将自身注册入MODULES中.
* 2. 通用功能标准化, 封装了加载动画、提示消息、弹窗、网络请求等公共功能.
* 3. 待续...
*/
export default class Component extends React.Component {
props = {};
... |
src/components/Hero/HeroContent.js | webpack/analyse-tool | import React from 'react';
import styles from './Hero.scss';
export default class HeroContent extends React.Component {
static displayName = 'HeroContent';
static propTypes = {
children: React.PropTypes.node,
};
render() {
const children = this.props.children;
return (
<div className={ style... |
packages/material-ui-icons/src/ChatTwoTone.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="M20 4H4v13.17L5.17 16H20V4zm-6 10H6v-2h8v2zm4-3H6V9h12v2zm0-3H6V6h12v2z" opacity=".3" /><path d="M20 18c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2H4c-1.... |
frontend/src/components/threads/moderation/controls.js | 1905410/Misago | import React from 'react';
import ErrorsModal from 'misago/components/threads/moderation/errors-list'; // jshint ignore:line
import MergeThreads from 'misago/components/threads/moderation/merge'; // jshint ignore:line
import MoveThreads from 'misago/components/threads/moderation/move'; // jshint ignore:line
import * as... |
assets/jqwidgets/demos/react/app/toolbar/nonminimizabletools/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxToolBar from '../../../jqwidgets-react/react_jqxtoolbar.js';
import JqxWindow from '../../../jqwidgets-react/react_jqxwindow.js';
class App extends React.Component {
render () {
let tools = 'toggleButton toggleButton toggleButton | tog... |
ajax/libs/angular-google-maps/2.0.5/angular-google-maps.js | wallin/cdnjs | /*! angular-google-maps 2.0.5 2014-10-23
* AngularJS directives for Google Maps
* git: https://github.com/angular-ui/angular-google-maps.git
*/
(function() {
String.prototype.contains = function(value, fromIndex) {
return this.indexOf(value, fromIndex) !== -1;
};
String.prototype.flare = function(flare)... |
src/styles/icons.js | rabbotio/minemark | import React from 'react'
const icon_facebook = (
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512' width='16' height='16'>
<g>
<path d='m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196' fill='#ffffff' />
</g>
</svg>
)
const icon_about = (
<s... |
src/components/DataTableSkeleton/DataTableSkeleton-story.js | joshblack/carbon-components-react | /**
* Copyright IBM Corp. 2016, 2018
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
/* eslint-disable no-console */
import React from 'react';
import { storiesOf } from '@storybook/react';
import { withKnobs, boolean, array... |
ajax/libs/jquery.fancytree/2.8.0/jquery.fancytree-all.js | raszi/cdnjs | /*!
* jquery.fancytree.js
* Dynamic tree view control, with support for lazy loading of branches.
* https://github.com/mar10/fancytree/
*
* Copyright (c) 2008-2015, Martin Wendt (http://wwWendt.de)
* Released under the MIT license
* https://github.com/mar10/fancytree/wiki/LicenseInfo
*
* @version 2.8.0
* @dat... |
src/svg-icons/editor/attach-file.js | rscnt/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorAttachFile = (props) => (
<SvgIcon {...props}>
<path d="M16.5 6v11.5c0 2.21-1.79 4-4 4s-4-1.79-4-4V5c0-1.38 1.12-2.5 2.5-2.5s2.5 1.12 2.5 2.5v10.5c0 .55-.45 1-1 1s-1-.45-1-1V6H10v9.5c0 1.38 1.12 2.5 2.5 2... |
app/components/main.js | tatsuhino/electron-react-redux-boilerplate | import React from 'react'
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import rootReducer from '../reducers/index.js'
import Root from './Root.js'
var TodoApp = React.createClass({
getInitialState: function(){
return {
todos: []
}
},
... |
node_modules/yeoman-generator/node_modules/inquirer/node_modules/rx/dist/rx.all.compat.js | pulluru/generator-ppcreddy | // 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
};
... |
ajax/libs/yui/3.7.0pr1/event-focus/event-focus-coverage.js | dc-js/cdnjs | if (typeof _yuitest_coverage == "undefined"){
_yuitest_coverage = {};
_yuitest_coverline = function(src, line){
var coverage = _yuitest_coverage[src];
if (!coverage.lines[line]){
coverage.calledLines++;
}
coverage.lines[line]++;
};
_yuitest_coverfunc = functio... |
who_paid_what_2/imports/stats.js | bburscher/who_paid_what | // TODO: WIP
import Chart from 'chart.js';
import React, { Component } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import { withTracker } from 'meteor/react-meteor-data';
import Payments from './api/Payments.js';
import Remainders from './api/Remainders';
import { VictoryChart, VictoryAre... |
actor-apps/app-web/src/app/components/dialog/MessagesSection.react.js | Ajunboys/actor-platform | import React from 'react';
import _ from 'lodash';
import VisibilityStore from 'stores/VisibilityStore';
import MessageActionCreators from 'actions/MessageActionCreators';
import MessageItem from 'components/common/MessageItem.react';
let _delayed = [];
let flushDelayed = () => {
_.forEach(_delayed, (p) => {
... |
ajax/libs/jquery-mobile/1.3.2/demos/js/jquery.js | billpull/cdnjs | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
ajax/libs/angular.js/1.1.5/angular-scenario.js | Showfom/cdnjs | /*!
* jQuery JavaScript Library v1.8.2
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2012 jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: Thu Sep 20 2012 21:13:05 GMT-0400 (Eastern Daylight Time)
*/
(function(... |
docs/app/Examples/collections/Grid/Types/GridExampleGrid.js | mohammed88/Semantic-UI-React | import _ from 'lodash'
import React from 'react'
import { Grid, Image } from 'semantic-ui-react'
const columns = _.times(16, (i) => (
<Grid.Column key={i}>
<Image src='http://semantic-ui.com/images/wireframe/image.png' />
</Grid.Column>
))
const GridExampleGrid = () => (
<Grid>{columns}</Grid>
)
export def... |
lib/MultiSelection/tests/MultiSelection-test.js | folio-org/stripes-components | import React from 'react';
import { describe, beforeEach, it, afterEach } from 'mocha';
import {
HTML,
MultiSelect as MultiSelectInteractor,
MultiSelectMenu as MenuInteractor,
MultiSelectOption as OptionInteractor,
Button,
TextInput,
Keyboard,
converge,
including,
runAxeTest
} from '@folio/stripes-t... |
examples/async/index.js | aphillipo/redux | import 'babel-core/polyfill';
import React from 'react';
import Root from './containers/Root';
React.render(
<Root />,
document.getElementById('root')
);
|
docs/src/app/components/pages/components/DatePicker/ExampleSimple.js | ichiohta/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
/**
* The Date Picker defaults to a portrait dialog. The `mode` property can be set to `landscape`.
* You can also disable the Dialog passing `true` to the `disabled` property.
*/
const DatePickerExampleSimple = () => (
<div>
<DatePic... |
ajax/libs/dc/2.0.0-beta.11/dc.js | jasonpang/cdnjs | /*!
* dc 2.0.0-beta.11
* http://dc-js.github.io/dc.js/
* Copyright 2012-2015 Nick Zhu & the dc.js Developers
* https://github.com/dc-js/dc.js/blob/master/AUTHORS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You ma... |
ajax/libs/forerunnerdb/1.3.21/fdb-core+views.js | iwdmb/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/views/components/AutomationEditScreen.js | physiii/open-automation | import React from 'react';
import PropTypes from 'prop-types';
import {Switch, Redirect, Link} from 'react-router-dom';
import {Route, withRoute} from './Route.js';
import NavigationScreen from './NavigationScreen.js';
import SettingsScreenContainer from './SettingsScreenContainer.js';
import Button from './Button.js';... |
app/javascript/mastodon/components/attachment_list.js | ebihara99999/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
const filename = url => url.split('/').pop().split('#')[0].split('?')[0];
class AttachmentList extends React.PureComponent {
static propTypes = {
media: ImmutablePropTypes.list.isRequired,
};
render () {
const { med... |
src/components/flows/secondPillar/confirmMandate/ConfirmMandate.js | TulevaEE/onboarding-client | import React from 'react';
import { PropTypes as Types } from 'prop-types';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import { Link, Redirect } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import { Loader, AuthenticationLoader, ErrorMessage, utils } f... |
ajax/libs/glamor/2.17.0/index.min.js | holtkamp/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.Glamor=e()}}(function(){var e;return function e(n,t,r){... |
js/src/modals/EditMeta/editMeta.spec.js | BSDStudios/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... |
src/components/TagForm/TagForm.js | nambawan/g-old | import React from 'react';
import PropTypes from 'prop-types';
// import { defineMessages, FormattedMessage } from 'react-intl';
import { defineMessages, FormattedMessage } from 'react-intl';
import Box from '../Box';
import FormField from '../FormField';
import Button from '../Button';
import Label from '../Label';
im... |
app/demos/StockChartWithVolume.js | chunghe/React-Native-Stock-Chart | import React, { Component } from 'react';
import {
InteractionManager,
View,
Dimensions,
ScrollView,
StyleSheet
} from 'react-native';
import {
VictoryBar,
VictoryLine,
VictoryAxis,
VictoryArea
} from 'victory-chart-native';
import Svg from 'react-native-svg';
import T from '../components/T';
import ... |
packages/react-widgets/src/Combobox.js | haneev/react-widgets | import React from 'react'
import PropTypes from 'prop-types'
import cn from 'classnames'
import createUncontrolledWidget from 'uncontrollable'
import Widget from './Widget'
import WidgetPicker from './WidgetPicker'
import List from './List'
import Popup from './Popup'
import Select from './Select'
import ComboboxInput... |
src/index.js | joefearnley/forcast | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<React.StrictMode>
<App />
</React.StrictMode>,
document.getElementById('root')
);
// If you want your app to work offline and load f... |
src/containers/__tests__/views/login-view-test.js | LancCJ/react-native-cyber-police | /**
* Test to check if the component renders correctly
*/
/* global it expect jest */
import 'react-native';
import React from 'react';
import renderer from 'react-test-renderer';
import LoginView from '@containers/auth/Login/LoginView';
// Login prop expects a promise
const mockPromise = new Promise(resolve => res... |
src/__tests__/TrackVisibility.js | sniphpet/react-on-screen | import React from 'react';
import sinon from 'sinon';
import TrackVisibility from './../TrackVisibility';
const hasProp = (Component, prop) => {
return {}.hasOwnProperty.call(Component, prop);
};
const Dumb = props => <div>Plop</div>;
const renderComponent = Comp => {
// Fake timers used to skip through setTimeo... |
packages/material-ui-icons/src/SignalCellularConnectedNoInternet2BarTwoTone.js | lgollut/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fillOpacity=".3" d="M22 8V2L2 22h16V8h4z" /><path d="M14 22V10L2 22h12zm6-12v8h2v-8h-2zm0 12h2v-2h-2v2z" /></React.Fragment>
, 'SignalCellularConnectedNoInternet2BarTwoTone');
|
src/scripts/components/menu/Menu.component.story.js | kodokojo/kodokojo-ui | /**
* Kodo Kojo - Software factory done right
* Copyright © 2017 Kodo Kojo (infos@kodokojo.io)
*
* This program 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 ... |
packages/veritone-react-common/src/components/formComponents/Checkbox.js | veritone/veritone-sdk | import React from 'react';
import LibCheckbox from '@material-ui/core/Checkbox';
import FormControlLabel from '@material-ui/core/FormControlLabel';
// based on https://github.com/erikras/redux-form-material-ui/blob/5.0/src/Checkbox.js
const Checkbox = ({
/* eslint-disable react/prop-types, react/jsx-no-bind */
met... |
packages/ringcentral-widgets/components/RecentActivityPanel/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import PropTypes from 'prop-types';
import classnames from 'classnames';
import classNames from 'classnames/bind';
import Header from '../Header';
import styles from './styles.scss';
import expandable from './expandable';
import dynamicsFont from '../../assets/DynamicsFont/DynamicsFont.scss';... |
src/js/components/icons/base/FolderOpen.js | odedre/grommet-final | /**
* @description FolderOpen SVG Icon.
* @property {string} a11yTitle - Accessibility Title. If not set uses the default title of the status icon.
* @property {string} colorIndex - The color identifier to use for the stroke color.
* If not specified, this component will default to muiTheme.palette.textColor.
* ... |
docs/src/app/components/pages/components/DropDownMenu/Page.js | kittyjumbalaya/material-components-web | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import dropDownMenuReadmeText from './README';
import DropDownMenuSimpleExample ... |
src/components/Projects/Outfitr/Outfitr.js | NathanBWaters/website | import React, { Component } from 'react';
import Helmet from 'react-helmet';
// import ReactMarkdown from 'react-markdown';
// import Markdown2HTML from 'react-markdown-to-html';
export default class Outfitr extends Component {
render() {
const pStyles = require('../Projects.scss');
const rStyles = require(... |
test/ListGroupItemSpec.js | pombredanne/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import ListGroupItem from '../src/ListGroupItem';
describe('ListGroupItem', () => {
it('Should output a "span" with the class "list-group-item"', () => {
let instance = ReactTestUtils.renderIntoD... |
app/src/assets/js/components/views/players.js | Huskie/ScottishPremiershipData | /* Players view component */
import React from 'react';
import firebaseApp from '../../modules/firebase';
class PlayersViewComponent extends React.Component {
constructor(props) {
super(props);
}
render() {
return (
<div className="container container--padded-vertical">
... |
src/components/MiniInfoBar/MiniInfoBar.js | cheeselover/WCF2015 | import React, {Component, PropTypes} from 'react';
import {connect} from 'react-redux';
@connect(state => ({ time: state.info.data.time }))
export default class MiniInfoBar extends Component {
static propTypes = {
time: PropTypes.number
}
render() {
const {time} = this.props;
return (
<div cla... |
components/catalog/harvests/histogram.js | sgmap/inspire | import React from 'react'
import PropTypes from 'prop-types'
import {translate} from 'react-i18next'
import {Line} from 'react-chartjs-2'
const formatData = (data, t) => {
return {
labels: Object.keys(data).map(item => item),
datasets: [
{
label: t('details.harvests.chart.label'),
lineT... |
definitions/npm/styled-components_v2.x.x/flow_v0.75.x-v0.103.x/test_styled-components_v2.x.x.js | flowtype/flow-typed | // @flow
import {renderToString} from 'react-dom/server'
import styled, {
ThemeProvider,
withTheme,
keyframes,
ServerStyleSheet,
StyleSheetManager
} from 'styled-components'
import React from 'react'
import type {
Theme,
Interpolation,
ReactComponentFunctional,
ReactComponentFunctionalUndefinedDefault... |
node_modules/react-native/Libraries/Modal/Modal.js | TrungSpy/React-Native-SampleProject | /**
* 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... |
examples/auth-with-shared-root/components/User.js | rubengrill/react-router | import React from 'react'
const User = React.createClass({
render() {
return <h1>User: {this.props.params.id}</h1>
}
})
export default User
|
src/images/Icons/account.js | sourabh-garg/react-starter-kit | import React from 'react';
export default function account(props) {
return (
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlnsXlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="48px" height="48px" viewBox="0 0 48 48" enableBackground="new 0 0 48 48" xmlSpace="preserve" {...props}>
<g tra... |
ajax/libs/falcor/0.0.15/Falcor.js | BenjaminVanRyseghem/cdnjs | /*!
* Copyright 2014 Netflix, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... |
test/common/components/App-test.js | mrinalkrishnanm/Sld | import test from 'ava';
import React from 'react';
import { shallow } from 'enzyme';
import App from '../../../src/common/components/App';
test('render with container div', t => {
const wrapper = shallow(React.createElement(App));
t.is(wrapper.find('#container').length, 1);
});
|
src/svg-icons/maps/local-cafe.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalCafe = (props) => (
<SvgIcon {...props}>
<path d="M20 3H4v10c0 2.21 1.79 4 4 4h6c2.21 0 4-1.79 4-4v-3h2c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2zm0 5h-2V5h2v3zM2 21h18v-2H2v2z"/>
</SvgIcon>
);
MapsLocalCa... |
docs/sphinxcontrib-images-0.5.0/sphinxcontrib_images_lightbox2/lightbox2/js/jquery-1.11.0.min.js | claus022015/Nutrition-Database-Modernization | /*! jQuery v1.11.0 | (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/video_list.js | nikitadeshmukh02/testVsCode | import React from 'react';
import VideoListItem from './video_list_item';
const VideoList=(props)=>{
// debugger
const videoItem= props.video.map((eachvideo)=>{
return <VideoListItem
onVideoSelect={props.onVideoSelect}
key={eachvideo.etag} video={eachvideo}/>
});
return (
<ul className='col-sm... |
node_modules/bs-recipes/recipes/webpack.react-transform-hmr/app/js/main.js | tarunitar/vinanalytix | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
docs/src/app/components/pages/components/Snackbar/ExampleSimple.js | pancho111203/material-ui | import React from 'react';
import Snackbar from 'material-ui/Snackbar';
import RaisedButton from 'material-ui/RaisedButton';
export default class SnackbarExampleSimple extends React.Component {
constructor(props) {
super(props);
this.state = {
open: false,
};
}
handleTouchTap = () => {
th... |
src/svg-icons/maps/directions-subway.js | frnk94/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsDirectionsSubway = (props) => (
<SvgIcon {...props}>
<path d="M12 2c-4.42 0-8 .5-8 4v9.5C4 17.43 5.57 19 7.5 19L6 20.5v.5h12v-.5L16.5 19c1.93 0 3.5-1.57 3.5-3.5V6c0-3.5-3.58-4-8-4zM7.5 17c-.83 0-1.5-.67-1.5... |
ajax/libs/react-router/2.5.2/ReactRouter.min.js | AMoo-Miki/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.ReactRouter=t(require("react")):e.ReactRouter=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return n[r].e... |
ajax/libs/forerunnerdb/1.3.578/fdb-all.min.js | ahocevar/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/reactor-kitchensink/src/examples/Transition/Transition.js | dbuhrman/extjs-reactor | import React, { Component } from 'react';
import { Transition, Spacer, Panel, Button, Menu, MenuItem, NumberField, Label, Container, SliderField } from '@extjs/ext-react';
import colors from '../colors';
export default class TransitionExample extends Component {
state = {
index: 1,
type: 'slide',
... |
packages/material-ui-icons/src/LocalMoviesTwoTone.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M10 5h4v14h-4z" opacity=".3" /><path d="M20 21V3h-2v2h-2V3H8v2H6V3H4v18h2v-2h2v2h8v-2h2v2h2zM8 17H6v-2h2v2zm0-4H6v-2h2v2zm0-4H6V7h2v2zm6 10h-4V5h4v14zm2-12h2v2h-2V7zm0 4h2v2h-2v-2zm0 6... |
src/public/js/components/ThankYou/index.js | Natinux/ironsource-test | import React from 'react';
import { connect } from 'react-redux';
import ThankYou from './presenter';
export default connect(null)(ThankYou); |
app/modules/humnos/components/Detail.js | arizto/humnos-mobile | 'use strict';
import React, { Component } from 'react';
import { InteractionManager, View, ScrollView, Text, TouchableHighlight, BackHandler, StyleSheet } from 'react-native';
import Icon from 'react-native-vector-icons/MaterialIcons';
import { Divider, Grid, Row, Col } from 'react-native-elements'
import immutable fr... |
src/components/block-types/block-types-controls.js | xutou12/draft-richer |
import React from 'react';
import PropTypes from 'prop-types';
import { RichUtils, EditorState } from 'draft-js';
import { blockTypes } from './block-types';
import { prefixCls } from '../../config';
// 块元素控制器
function BlockTypesControls( props ) {
const
{ editorState } = props,
selection = editorState.g... |
examples/todos/src/app/containers/App.js | ioof-holdings/redux-subspace | import React from 'react'
import { connect } from 'react-redux'
import { SubspaceProvider } from 'react-redux-subspace'
import { Footer } from '../../footer'
import { TodoApp } from '../../todos'
const App = ({ filter }) => (
<div>
<SubspaceProvider namespace='todos'>
<TodoApp filter={filter} />
</Subs... |
examples/src/components/UsersField.js | vomchik/react-select | import GravatarOption from './CustomOption';
import GravatarValue from './CustomSingleValue';
import React from 'react';
import Select from 'react-select';
const USERS = require('../data/users');
var UsersField = React.createClass({
propTypes: {
hint: React.PropTypes.string,
label: React.PropTypes.string,
},
r... |
src/components/Account/ResourceList/presenter.js | ndlib/usurper | import React from 'react'
import PropTypes from 'prop-types'
import Resource from './Resource'
import ListActions from './ListActions'
import ColumnHeaders from './ColumnHeaders'
import InlineLoading from 'components/Messages/InlineLoading'
import FilterBox from 'components/Interactive/FilterBox'
import * as helper f... |
frontend/src/views/Status/Status.js | rocknsm/docket | /*
* Copyright (c) 2017, 2018 RockNSM.
*
* This file is part of RockNSM
* (see http://rocknsm.io).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licens... |
docs/src/app/pages/components/Toggle/ExampleToggleDefault.js | GetAmbassador/react-ions | import React from 'react'
import Toggle from 'react-ions/lib/components/Toggle'
const ExampleToggleDefault = () => (
<Toggle />
)
export default ExampleToggleDefault
|
_viewlayers/react/app/app.js | mjanssen/graduation-frontend-setups | import React from 'react';
import { render } from 'react-dom';
import 'style/global';
// Define base component
import App from './components/App/App';
// Create init function to render application from
function init() {
render(<App />, document.querySelector('#root'));
}
// While developing, enable HMR
if (module... |
components/StudentPoint/components/List/List.js | yabeow/sinhvienuit | import React from 'react';
import PropTypes from 'prop-types';
import { FlatList, RefreshControl } from 'react-native';
import { View, Container } from 'native-base';
import StudentPoint from './Item';
import FinalPoint from '../Final';
import EmptyList from '../../../EmptyList';
import { ANDROID_PULL_TO_REFRESH_COLOR ... |
components/AudioPlayer/index.js | bmagic/acdh-client | import React from 'react'
import PropTypes from 'prop-types'
import classNames from 'classnames'
import Head from 'next/head'
import FormattedTime from 'components/FormattedTime'
import generateUrl from 'utils/urlGenerator'
import stylesheet from './style.scss'
export class AudioPlayer extends React.PureComponent {
... |
ajax/libs/analytics.js/2.0.1/analytics.min.js | kartikrao31/cdnjs | (function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[name])return cache[name].exports;if(modules[name])return call(name,require);throw new Error('cannot find module "'+name+'"')}function call(id,require){var m=cache[id]={exports:{}};var mod=modules[id];var n... |
src/index.js | tylergaw/colorme | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
ReactDOM.render(
<App />,
document.getElementById('root')
);
|
vendor/bower/jquery/src/sizzle/test/jquery.js | z923113762/yii2-base | /*!
* jQuery JavaScript Library v1.9.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2013-2-4
*/
(function( window, undefined ) {
// Can't do t... |
app/components/NoteInput.js | elyamad/brocantelab | import React from 'react';
import { Input } from 'react-bootstrap';
var NoteInput = React.createClass({
propsType: {
isValid: React.PropTypes.fn
},
getInitialState() {
return{
defaultValue: 1,
value: 1,
style: null,
errorMsg: 'Note must be between 1 and 5'
}
},
validatio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.