target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
assets/jqwidgets/demos/react/app/grid/cascadingcomboboxes/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxGrid from '../../../jqwidgets-react/react_jqxgrid.js';
class App extends React.Component {
render() {
let data = '[{ "Country": "Belgium", "City": "Brussels"}, {"Country": "France", "City": "Paris"}, {"Country": "USA", "City": "Washing... |
gatsby-strapi-tutorial/cms/plugins/content-manager/admin/src/components/WysiwygDropUpload/index.js | strapi/strapi-examples | /**
*
* WysiwygDropUpload
*
*/
import React from 'react';
import styles from './styles.scss';
/* eslint-disable jsx-a11y/label-has-for */
const WysiwygDropUpload = (props) => {
return (
<label
{...props}
className={styles.wysiwygDropUpload}
>
<input
onChange={() => {}}
... |
ajax/libs/angular-ui-select/0.19.8/select.js | tholu/cdnjs | /*!
* ui-select
* http://github.com/angular-ui/ui-select
* Version: 0.19.7 - 2017-04-15T14:28:36.649Z
* License: MIT
*/
(function () {
"use strict";
var KEY = {
TAB: 9,
ENTER: 13,
ESC: 27,
SPACE: 32,
LEFT: 37,
UP: 38,
RIGHT: 39,
DOWN: 40,
SHIFT: 16,
CTRL: 17,
ALT: 18,... |
pages/index.js | InnoD-WebTier/bsjas | import React from 'react';
import Helmet from 'react-helmet';
import { config } from 'config';
import { Link } from 'react-router';
import { prefixLink } from 'gatsby-helpers';
class Index extends React.Component {
render () {
const backgroundLink = prefixLink(`/assets/bg.jpeg`);
const style = {
'back... |
ajax/libs/zeroclipboard/2.1.4/ZeroClipboard.js | jimmybyrum/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.4
*/
(function(window, undefined) {
"use strict";... |
src/steps/SizeStep.js | scott113341/post | import React, { createElement as r } from 'react';
import { Link, Spacer, Step } from '../components/index.js';
import { formatPrice } from '../util.js';
export default class SizeStep extends React.Component {
render () {
const size = this.props.postcard.size;
const disabled = !this.isValid();
return ... |
ajax/libs/analytics.js/1.3.8/analytics.min.js | rigdern/cdnjs | (function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module._resol... |
src/components/buttons/InfoButton.js | dataloom/gallery | import React from 'react';
import styled from 'styled-components';
const InfoButton = styled.button`
border-radius: 3px;
background-color: #6124e2;
color: #ffffff;
font-family: 'Open Sans', sans-serif;
font-size: 14px;
padding: 10px;
width: ${props => (props.fullSize ? '100%' : 'fit-content')};
&:hove... |
src/svg-icons/notification/sms.js | ruifortes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let NotificationSms = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM9 11H7V9h2v2zm4 0h-2V9h2v2zm4 0h-2V9h2v2z"/>
</SvgIcon>
);
NotificationSm... |
packages/material-ui-icons/src/PlagiarismOutlined.js | callemall/material-ui | import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z" /><path d="M9.03 11.03c-1.37 1.37-1.37 3.58 0 4.95 1.12 1.12 2.8 1.31 4.13.59l1.88 1.88 ... |
js/jqwidgets/demos/react/app/notification/customicon/app.js | luissancheza/sice | import React from 'react';
import ReactDOM from 'react-dom';
import JqxNotification from '../../../jqwidgets-react/react_jqxnotification.js';
import JqxButton from '../../../jqwidgets-react/react_jqxbuttons.js';
import JqxInput from '../../../jqwidgets-react/react_jqxinput.js';
import JqxTextArea from '../../../jqwidg... |
ajax/libs/reactive-coffee/0.0.6/reactive-coffee.min.js | CyrusSUEN/cdnjs | (function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,ab,bb,cb,db,eb,fb=[].slice,gb={}.hasOwnProperty,hb=function(a,b){function c(){this.constructor=a}for(var d in b)gb.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b... |
example/src/main.js | xontab/react-forms-component | import React from 'react';
import ReactDOM from 'react-dom';
import Samples from './Samples';
ReactDOM.render((
<Samples />
), document.getElementById('root')); |
src/components/search_bar.js | auldsyababua/react-tube | import React, { Component } from 'react';
class SearchBar extends Component {
constructor(props) {
super (props);
this.state = { term:'' }
}
//line 11 sets state of component with new search term
//line 12 fires the callback function 'onSearchTermChange'
onInputChange(term) {
this.setState({term... |
React Fundamentals/EXAM_19.11.2017/exam-app/src/index.js | NikiStanchev/SoftUni | import React from 'react';
import ReactDOM from 'react-dom';
import './style/bootstrap.min.css'
import './style/site.css'
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import { BrowserRouter as Router } from 'react-router-dom';
import '../node_modules/toastr/build/toastr.min.css'... |
src/routes/NotifList/index.js | addityasingh/build-notification-app | import React from 'react'
import NotifListView from './components/NotifListView'
export default (store) => ({
path : 'home',
getComponent (nextState, cb) {
require.ensure([], () => {
const state = store.getState()
cb(null, () => <NotifListView {...state.user} />)
}, 'home')
},
onEnter: (nex... |
client/test/components/access/SignUpForm.spec.js | andela-eefekemo/DMS | /* global expect jest test */
import React from 'react';
import { shallow } from 'enzyme';
import toJson from 'enzyme-to-json';
import { SignUpForm } from '../../../components/access/SignUpForm';
describe('SignUpForm Component', () => {
const spy = jest.fn();
beforeEach(() => {
global.Materialize = { toast: je... |
ajax/libs/inferno-router/3.1.2/inferno-router.js | wout/cdnjs |
/*!
* Inferno.Router v3.1.2
* (c) 2017 Dominic Gannaway'
* Released under the MIT License.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('inferno-create-element'), require('inferno-component'), require('inferno'), require('path-to-regexp'... |
src/svg-icons/image/hdr-off.js | jacklam718/react-svg-iconx | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageHdrOff = (props) => (
<SvgIcon {...props}>
<path d="M17.5 15v-2h1.1l.9 2H21l-.9-2.1c.5-.2.9-.8.9-1.4v-1c0-.8-.7-1.5-1.5-1.5H16v4.9l1.1 1.1h.4zm0-4.5h2v1h-2v-1zm-4.5 0v.4l1.5 1.5v-1.9c0-.8-.7-1.5-1.5-1.5h-1... |
Docker/KlusterKiteMonitoring/klusterkite-web/src/components/ConfigurationOperations/ReadyOperations.js | KlusterKite/KlusterKite | import React from 'react';
import Relay from 'react-relay'
import Icon from 'react-fa';
import delay from 'lodash/delay'
import Modal from '../Form/Modal'
import CreateMigrationMutation from './mutations/CreateMigrationMutation';
import SetObsoleteMutation from './mutations/SetObsoleteMutation';
import './styles.cs... |
public/app/components/application.js | vincent-tr/mylife-home-ui | 'use strict';
import React from 'react';
const Application = ({ children }) => (
<div>
{ children }
</div>
);
Application.propTypes = {
children: React.PropTypes.oneOfType([
React.PropTypes.arrayOf(React.PropTypes.node),
React.PropTypes.node
])
};
export default Application;
|
app/javascript/mastodon/features/introduction/index.js | imas/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ReactSwipeableViews from 'react-swipeable-views';
import classNames from 'classnames';
import { connect } from 'react-redux';
import { FormattedMessage } from 'react-intl';
import { closeOnboarding } from '../../actions/onboarding';
import screenHell... |
src/containers/DevTools.js | oldsaratov/postcards-spa | import React from 'react';
import { createDevTools } from 'redux-devtools';
import LogMonitor from 'redux-devtools-log-monitor';
import DockMonitor from 'redux-devtools-dock-monitor';
export default createDevTools(
<DockMonitor
toggleVisibilityKey='ctrl-h'
changePositionKey='ctrl-q' >
<LogMonitor />
</... |
app/containers/HomePage/HomePage.js | mfi-dev/jag-kiosk | import React from 'react'
import LinkBox from '../../components/LinkBox'
import './HomePage.styl'
class HomePage extends React.Component {
render () {
return (
<div className='Page'>
<div className='Seal'>
<img src='assets/images/jag-seal.png' />
</div>
<nav className='Mai... |
ajax/libs/ionic/0.9.17-alpha/js/ionic.js | gereon/cdnjs | /*!
* Copyright 2013 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.17
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @helloimben, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/;
// Create namespaces
window.ionic... |
ajax/libs/riot/2.3.17/riot+compiler.js | dlueth/cdnjs | /* Riot v2.3.17, @license MIT */
;(function(window, undefined) {
'use strict';
var riot = { version: 'v2.3.17', settings: {} },
// be aware, internal usage
// ATTENTION: prefix the global dynamic variables with `__`
// counter to give a unique id to all the Tag instances
__uid = 0,
// tags instances cache... |
src/components/Twitter.js | KingCosmic/tinyQuotes | import React from 'react';
const Twitter = (props) => {
const { author, meta } = props.quote;
const { encoded, twitter } = meta;
return (
<li>
{(twitter) ?
<a href={`https://twitter.com/intent/tweet?text=${encoded}%20-${author}`} className=''
target="_blank" id="twitter" title={`Shar... |
client/router/routes.js | jasonf7/memories-of-harambe | import React from 'react';
import { Route, IndexRoute, Redirect } from 'react-router';
import App from '#app/components/app';
import Homepage from '#app/components/homepage';
import Main from '#app/components/main';
import Preview from '#app/components/preview';
import NotFound from '#app/components/not-found';
/**
*... |
src/templates/indexes/tag-index.js | bretafinley/site |
import React from 'react';
import IndexDefault from './index-default';
export default function Template(props) {
const data = props.data;
const tag = props.pathContext.tag;
return (
<div>
<h2 className="card page-title">Tag: {tag}</h2>
<IndexDefault data={data} />
</div>
);
}
export cons... |
src/common/components/Heading.js | TheoMer/este | // @flow
import type { TextProps } from './Text';
import type { Theme } from '../themes/types';
import Text from './Text';
import React from 'react';
type HeadingContext = {
theme: Theme,
};
const Heading = (props: TextProps, { theme }: HeadingContext) => {
const {
bold = true,
fontFamily = theme.heading.... |
src/index.js | SabyasachiDhar/react101 | import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import {Router, Route, browserHistory} from 'react-router';
import reducers from './reducers';
import routes from './routes';
import promise from 'redux-promise';
c... |
src/containers/Root.prod.js | fireyy/react-antd-admin | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import route from '../route';
import { HashRouter as Router } from 'react-router-dom';
export default class Root extends Component {
render() {
const { store } = this.props;
if (!this.route) this.route = route;
return (
... |
packages/material-ui-icons/src/SettingsEthernetSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7.77 6.76L6.23 5.48.82 12l5.41 6.52 1.54-1.28L3.42 12l4.35-5.24zM7 13h2v-2H7v2zm10-2h-2v2h2v-2zm-6 2h2v-2h-2v2zm6.77-7.52l-1.54 1.28L20.58 12l-4.35 5.24 1.54 1.28L23.18 12l-5.41-6.52z" />
, 'Settings... |
examples/async-data/app.js | jhta/react-router | var React = require('react');
var Router = require('react-router');
var EventEmitter = require('events').EventEmitter;
var { Route, DefaultRoute, RouteHandler, Link } = Router;
var API = 'http://addressbook-api.herokuapp.com';
var loadingEvents = new EventEmitter();
function getJSON(url) {
if (getJSON._cache[url])
... |
src/admin/src/components/controls/renderers/render_number.js | jgretz/zen-express | import React from 'react';
export const renderNumber = (data) =>
(
<span>{data ? data.toLocaleString() : ''}</span>
);
|
js/components/section.js | peterjacobson/Enspiral-Orientation-App-Redux | import React from 'react';
import Challenge from './challenge';
import mui from 'material-ui'
let Paper = mui.Paper
const divStyle = {
position: 'absolute',
width: '100%',
}
const paperStyle = {
padding: 20,
marginBottom: 40,
maxWidth: 600,
}
module.exports = React.createClass({
render: function () {
const {s... |
examples/angular2/node_modules/bower-traceur-runtime/traceur-runtime.js | watonyweng/todomvc | (function(global) {
'use strict';
if (global.$traceurRuntime) {
return ;
}
var $Object = Object;
var $TypeError = TypeError;
var $create = $Object.create;
var $defineProperties = $Object.defineProperties;
var $defineProperty = $Object.defineProperty;
var $freeze = $Object.freeze;
var $getOwnProp... |
frontend/src/Components/Page/Header/KeyboardShortcutsModal.js | Radarr/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import Modal from 'Components/Modal/Modal';
import { sizes } from 'Helpers/Props';
import KeyboardShortcutsModalContentConnector from './KeyboardShortcutsModalContentConnector';
function KeyboardShortcutsModal(props) {
const {
isOpen,
onModalClos... |
app/javascript/mastodon/features/hashtag_timeline/index.js | tri-star/mastodon | import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';
import StatusListContainer from '../ui/containers/status_list_container';
import Column from '../../components/column';
import ColumnHeader from '../../components/column_header';
import ColumnSettingsContainer from './... |
client/src/decorators/withViewport.js | pram/recipesearch | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react'; // eslint-disable-line no-unused-vars
import EventEmitter from 'eventemitter3';
import { canUseDOM } from 'fbjs/lib/ExecutionEnvironment';
let EE;
let viewport = {width: 1366, height: 768}; // Default si... |
wp-content/plugins/jetpack/modules/sharedaddy/sharing.js | cybermanpy/ecommerce | /* global WPCOM_sharing_counts, Recaptcha */
var sharing_js_options;
if ( sharing_js_options && sharing_js_options.counts ) {
var WPCOMSharing = {
done_urls : [],
twitter_count : {},
get_counts : function() {
var facebookPostIds = [],
https_url, http_url, url, urls, id, service, service_url, path_ending;
... |
example/src/index.js | Demi-IO/golden-type | import React from 'react';
import ReactDom from 'react-dom';
import App from './App';
ReactDom.render(<App/>, document.getElementById('root'));
|
src/components/FuelSavingsTextInput.spec.js | mikejablonski/newo-brew-web | import React from 'react';
import {shallow} from 'enzyme';
import FuelSavingsTextInput from './FuelSavingsTextInput';
describe('<FuelSavingsTextInput />', () => {
it('should be an input element', () => {
const props = {
name: 'testName',
onChange: jest.fn(),
placeholder: 'Type Here',
valu... |
node_modules/react-dropzone/src/index.js | EmersonAntonioDaSiilva/poc-dipol-nlc | /* eslint prefer-template: 0 */
import React from 'react';
import PropTypes from 'prop-types';
import accepts from 'attr-accept';
import getDataTransferItems from './getDataTransferItems';
const supportMultiple = (typeof document !== 'undefined' && document && document.createElement) ?
'multiple' in document.create... |
webapp/src/components/geneOntologyRibbon/fixRibbonPlacement.js | alliance-genome/agr | import React from 'react';
// hack around margin issue in the gene-ontology-ribbon
// refer to issue: https://github.com/geneontology/ribbon/issues/13
export default function fixRibbonPlacement(RibbonComponent) {
return (props) => {
const wrapperStyle = {
position: 'relative',
height: '10em'
};
... |
packages/wix-style-react/src/RichTextInputArea/RichTextInputArea.js | wix/wix-style-react | import React from 'react';
import PropTypes from 'prop-types';
import { EditorState, Editor, CompositeDecorator } from 'draft-js';
import { convertFromHTML } from 'draft-convert';
import { FontUpgradeContext } from '../FontUpgrade/context';
import { st, classes, vars } from './RichTextInputArea.st.css';
import RichText... |
ScalingAndPerformanceSample/src/ScalingAndPerformanceSample.Web/Scripts/knockout-3.2.0.debug.js | XSockets/XSockets.Samples | /*!
* Knockout JavaScript library v3.2.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(function(){
var DEBUG=true;
(function(undefined){
// (0, eval)('this') is a robust way of getting a reference to the global object
// For details,... |
src/React/Widgets/TogglePanelWidget/example/index.js | Kitware/paraviewweb | // Load CSS
import 'normalize.css';
import 'font-awesome/css/font-awesome.css';
import React from 'react';
import ReactDOM from 'react-dom';
import TogglePanelWidget from 'paraviewweb/src/React/Widgets/TogglePanelWidget';
const container = document.querySelector('.content');
document.body.style.padding = '10px';
do... |
cellbase-server/src/main/webapp/webservices/swagger-ui/lib/jquery-1.8.0.min.js | dapregi/cellbase | /*! 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==... |
packages/material-ui-icons/src/InputSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><g fill="none"><path d="M0 0h24v24H0V0z" /><path d="M0 0h24v24H0V0z" opacity=".87" /></g><path d="M21 3.01H3c-1.1 0-2 .9-2 2V9h2V4.99h18v14.03H3V15H1v4.01c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1... |
src/pages/index.js | meerasahib/meerablog1 | import React from 'react';
import Link from 'gatsby-link';
import Helmet from 'react-helmet';
import PostDate from '../components/Date';
import Preview from '../components/Preview';
import Tags from '../components/Tags';
const getParams = search => {
return search.replace('?', '').split('&').reduce((params, keyValu... |
client/src/app.js | MOOCFetcher/moocfetcher-appliance | import Main from './Main'
import React from 'react'
import ReactDOM from 'react-dom'
ReactDOM.render(<Main />, document.getElementById('app'))
|
tests/routes/Home/components/HomeView.spec.js | vijayasankar/ML2.0 | import HomeView from 'routes/Home/components/HomeView'
import Link from 'react-router/lib/Link'
import React from 'react'
import { shallow, render, mount } from 'enzyme'
import ReduxFormStub from '../../../ReduxFormStub'
describe('(View) HomeView - instantiate', () => {
let component
beforeEach(() => {
compo... |
src/svg-icons/action/assignment-ind.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionAssignmentInd = (props) => (
<SvgIcon {...props}>
<path d="M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-7 0c.55 0 1 .45 1 ... |
test/getApplicationKeyMap/GettingApplicationKeyMap.js | Chrisui/react-hotkeys | import React from 'react';
import {mount} from 'enzyme';
import {expect} from 'chai';
import sinon from 'sinon';
import {HotKeys, GlobalHotKeys} from '../../src/';
import {getApplicationKeyMap} from '../../src/';
describe('Getting the application key map:', () => {
context('when a keydown keymap is specified as str... |
ajax/libs/ember-data.js/1.0.0-beta.19.2/ember-data.prod.js | wout/cdnjs | (function() {
"use strict";
var ember$data$lib$system$model$errors$invalid$$create = Ember.create;
var ember$data$lib$system$model$errors$invalid$$EmberError = Ember.Error;
/**
A `DS.InvalidError` is used by an adapter to signal the external API
was unable to process a request because the c... |
.eslintrc.js | NotBlizzard/bluebird | module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:react/recommended",
"prett... |
ui-web/stories/DiceSelect.stories.js | JimBarrows/SavageWorldsVirtualTableTop | /**
* Created by JimBarrows on 2019-01-20.
*/
import {action} from '@storybook/addon-actions'
import {storiesOf} from '@storybook/react'
import React from 'react'
import DiceSelect from '../src/components/DiceSelect'
storiesOf('components/DiceSelect', module)
.addDecorator((story) => <div className="container"... |
node_modules/native-base/src/basic/Label.js | odapplications/WebView-with-Lower-Tab-Menu | import React, { Component } from 'react';
import { Text } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Label extends Component {
render() {
return (
<Text ref={c => this._root = c} {...this.props} />
);
}
... |
web/sites/default/files/js/js_YRP-Nv6QcQ9G1PtoNBtY3Coa5p5BvdsW5lO9p7eFoRo.js | BenjaminFeu/adimeo_project | /*! jQuery v2.2.4 | (c) jQuery Foundation | 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 window?window:this,fun... |
packages/material-ui-icons/src/SettingsInputHdmi.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M18 7V4c0-1.1-.9-2-2-2H8c-1.1 0-2 .9-2 2v3H5v6l3 6v3h8v-3l3-6V7h-1zM8 4h8v3h-2V5h-1v2h-2V5h-1v2H8V4z" /></React.Fragment>
, 'SettingsInputHdmi');
|
codes/chapter05/react-router-v4/basic/demo06/app/components/NoMatch.js | atlantis1024/react-step-by-step | import React from 'react';
class NoMatch extends React.PureComponent {
render() {
return (
<div>
<h2>无法匹配 <code>{this.props.location.pathname}</code></h2>
</div>
)
}
}
export default NoMatch;
|
sagewui/themes/newUI/static/mathjax/unpacked/extensions/TeX/mhchem.js | damahou/sagewui | /* -*- Mode: Javascript; indent-tabs-mode:nil; js-indent-level: 2 -*- */
/* vim: set ts=2 et sw=2 tw=80: */
/*************************************************************
*
* MathJax/extensions/TeX/mhchem.js
*
* Implements the \ce command for handling chemical formulas
* from the mhchem LaTeX package.
*
... |
src/svg-icons/editor/border-top.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorBorderTop = (props) => (
<SvgIcon {...props}>
<path d="M7 21h2v-2H7v2zm0-8h2v-2H7v2zm4 0h2v-2h-2v2zm0 8h2v-2h-2v2zm-8-4h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2v-2H3v2zm0-4h2V7H3v2zm8 8h2v-2h-2v2zm8-8h2V7h-2v2zm0 4h... |
src/pages/moduleHomePage/recentReply/RecentReply.js | HeliumLau/Hoop-react | import React from 'react';
import ArticleList from 'components/ArticleList.js';
export default class RecentReply extends React.Component {
constructor(props) {
super(props);
this.state = {
articlelist: [
{
title: '惊!安东尼签约火箭竟只为他!',
... |
App.js | jstrimpel/redux-react-router | import React, { Component } from 'react';
import { connect } from 'react-redux';
class App extends Component {
static willTransitionTo() {
console.log('willTransitionTo in App component');
}
render() {
let { fname, lname } = this.props;
return (
<div>Hello {fname} {lname}!</div>
);
}
... |
tests/routes/Counter/components/Counter.spec.js | Picta-it/Jammy | 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... |
src/higherOrders/Pagination.js | lenxeon/react-ui | import React from 'react'
import { objectAssign } from '../utils/objects'
import PropTypes from '../utils/proptypes'
import PureRender from '../mixins/PureRender'
export default function (Component) {
class Pagination extends React.Component {
constructor (props) {
super(props)
this.state = { page: ... |
pathfinder/vtables/appmap2cim/webpack.config.js | leanix/leanix-custom-reports | var path = require('path');
var webpack = require('webpack');
var CopyWebpackPlugin = require('copy-webpack-plugin');
var HtmlWebpackPlugin = require('html-webpack-plugin');
module.exports = {
entry: './src/index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'report.[chunkhash].js'
},
module:... |
admin/client/App/shared/Popout/PopoutFooter.js | rafmsou/keystone | /**
* Render a footer for a popout
*/
import React from 'react';
const BUTTON_BASE_CLASSNAME = 'Popout__footer__button Popout__footer__button--';
const PopoutFooter = React.createClass({
displayName: 'PopoutFooter',
propTypes: {
children: React.PropTypes.node,
primaryButtonAction: React.PropTypes.func,
pri... |
src/index.js | ETBlue/jrpilot | import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
assets/javascripts/kitten/components/graphics/icons/title-1-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const Title1Icon = ({ color, title, ...props }) => (
<svg
width="14"
height="12"
viewBox="0 0 14 12"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M9.008 0v2.56h-3.04v8... |
renderer/components/Channels/ChannelCloseDialog.js | LN-Zap/zap-desktop | import React from 'react'
import PropTypes from 'prop-types'
import { Flex, Box } from 'rebass/styled-components'
import { FormattedMessage, injectIntl } from 'react-intl'
import { withFieldState } from 'informed'
import { intlShape } from '@zap/i18n'
import Delete from 'components/Icon/Delete'
import { Dialog, Text, H... |
app/src/FlashcardExplorer.js | subnotes/gemini | /**
* Page Component for Flashcard Manager
*/
// import node packages
import React, { Component } from 'react';
import PropTypes from 'prop-types';
// import local components
import FlashcardContainer from './containers/FlashcardContainer';
import FlashcardHelper from './helpers/FlashcardHelper';
import PageDiv fro... |
ajax/libs/raven.js/raven-node@2.6.4/angular,require,vue/raven.js | cdnjs/cdnjs | /*! Raven.js 3.27.0 (200cffcc) | github.com/getsentry/raven-js */
/*
* Includes TraceKit
* https://github.com/getsentry/TraceKit
*
* Copyright (c) 2018 Sentry (https://sentry.io) and individual contributors.
* All rights reserved.
* https://github.com/getsentry/sentry-javascript/blob/master/packages/raven-js/LIC... |
FloatingActionButton.js | alangpierce/LambdaCalculusPlayground | /**
* @flow
*/
import React from 'react';
import {
Image,
TouchableWithoutFeedback,
View,
} from 'react-native';
import StatelessComponent from './StatelessComponent';
type AssetId = number;
/**
* Custom-built FAB since none of the existing FABs seem to work the way I want.
*
* TODO: Consolidate wit... |
src/svg-icons/maps/flight.js | rhaedes/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsFlight = (props) => (
<SvgIcon {...props}>
<path d="M10.18 9"/><path d="M21 16v-2l-8-5V3.5c0-.83-.67-1.5-1.5-1.5S10 2.67 10 3.5V9l-8 5v2l8-2.5V19l-2 1.5V22l3.5-1 3.5 1v-1.5L13 19v-5.5l8 2.5z"/>
</SvgIcon>... |
packages/reactor-kitchensink/src/examples/Charts/Area/StackedArea/StackedArea.js | sencha/extjs-reactor | import React, { Component } from 'react';
import { Container } from '@extjs/ext-react';
import { Cartesian } from '@extjs/ext-react-charts';
import ChartToolbar from '../../ChartToolbar';
export default class StackedAreaChartExample extends Component {
constructor(){
super();
}
store = Ext.create... |
node_modules/react-router/es/Prompt.js | morselapp/shop_directory | function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call &... |
src/svg-icons/device/developer-mode.js | lawrence-yu/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let DeviceDeveloperMode = (props) => (
<SvgIcon {...props}>
<path d="M7 5h10v2h2V3c0-1.1-.9-1.99-2-1.99L7 1c-1.1 0-2 .9-2 2v4h2V5zm8.41 11.59L20 12l-4.59-4.59L14 8.83 17.17 12 14 15.17l1.41 1.42zM10 15.17L6.83 12 1... |
ajax/libs/jquery-localScroll/1.3.3/jquery.localScroll.js | jamzgoodguy/cdnjs | /*!
* jQuery.localScroll
* Copyright (c) 2007-2014 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com
* Licensed under MIT
* http://flesler.blogspot.com/2007/10/jquerylocalscroll-10.html
* @author Ariel Flesler
* @version 1.3.3
*/
;(function(plugin) {
// AMD Support
if (typeof define =... |
examples/js/hacker-news/client/containers/LoginInfo.js | reimagined/resolve | import React from 'react'
import { useSelector } from 'react-redux'
import styled from 'styled-components'
import { Link as NormalLink } from 'react-router-dom'
import { Splitter } from '../components/Splitter'
import { Form } from './Form'
const Link = styled(NormalLink)`
color: white;
&.active {
font-weight:... |
src/svg-icons/image/crop.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageCrop = (props) => (
<SvgIcon {...props}>
<path d="M17 15h2V7c0-1.1-.9-2-2-2H9v2h8v8zM7 17V1H5v4H1v2h4v10c0 1.1.9 2 2 2h10v4h2v-4h4v-2H7z"/>
</SvgIcon>
);
ImageCrop = pure(ImageCrop);
ImageCrop.displayNam... |
kitsune/sumo/static/sumo/js/tests/lazyloadtests.js | silentbob73/kitsune | import {default as mochaJsdom, rerequire} from 'mocha-jsdom';
import {default as chai, expect} from 'chai';
import React from 'react';
import chaiLint from 'chai-lint';
import mochaJquery from './fixtures/mochaJquery.js';
chai.use(chaiLint);
describe('lazyload', () => {
mochaJsdom({useEach: true});
mochaJquery()... |
assets/jqwidgets/demos/react/app/tabs/defaultfunctionality/app.js | juannelisalde/holter | import React from 'react';
import ReactDOM from 'react-dom';
import JqxTabs from '../../../jqwidgets-react/react_jqxtabs.js';
import JqxCheckBox from '../../../jqwidgets-react/react_jqxcheckbox.js';
class App extends React.Component {
componentDidMount() {
this.refs.animation.on('change', (event) => {
... |
app/javascript/mastodon/components/hashtag.js | MastodonCloud/mastodon | import React from 'react';
import { Sparklines, SparklinesCurve } from 'react-sparklines';
import { Link } from 'react-router-dom';
import { FormattedMessage } from 'react-intl';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { shortNumberFormat } from '../utils/numbers';
const Hashtag = ({ hashtag... |
app/routes.js | sachinmour/newedenfaces-react | import React from 'react';
import {Route} from 'react-router';
import App from './components/App';
import Home from './components/Home';
import Stats from './components/Stats';
import Character from './components/Character';
import CharacterList from './components/CharacterList';
import AddCharacter from './components/... |
addons/themes/striped/layouts/Home.js | rendact/rendact | import $ from 'jquery'
import React from 'react';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import moment from 'moment';
import {Link} from 'react-router';
import scrollToElement from 'scroll-to-element';
let Home = React.createClass({
componentDidMount(){
require('../assets/css/main.c... |
src/js/components/Grommet/stories/Background.js | HewlettPackard/grommet | import React from 'react';
import { grommet, Grommet, Box, Text } from 'grommet';
import { hpe } from 'grommet-theme-hpe';
export const Background = () => {
const themeColor = 'background-back';
const hexValue = '#DCD0FF';
const cssColor = 'gold';
return (
<Box gap="medium">
<Grommet>
<Box p... |
src/Parser/Hunter/Marksmanship/Modules/Items/MKIIGyroscopicStabilizer.js | enragednuke/WoWAnalyzer | import React from 'react';
import ITEMS from 'common/ITEMS';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
/**
* Equip: Your Aimed Shot grants yo... |
project_react_template/src/js/components/Navbar.js | Mikeysax/mikey | import React from 'react';
export default class Navbar extends React.Component {
render() {
return (
<div>
<nav className="navbar navbar-default text-center" role="navigation">
<a href="https://www.npmjs.com/package/mikey">
Mikey
</a>
was b... |
node_modules/react-bootstrap/es/CarouselItem.js | skinsshark/skinsshark.github.io | import _extends from 'babel-runtime/helpers/extends';
import _objectWithoutProperties from 'babel-runtime/helpers/objectWithoutProperties';
import _classCallCheck from 'babel-runtime/helpers/classCallCheck';
import _possibleConstructorReturn from 'babel-runtime/helpers/possibleConstructorReturn';
import _inherits from ... |
frontend/src/picturedisplay/components/TagDisplay.js | mangosmoothie/picappa | import React from 'react'
import List from 'material-ui/List'
import Subheader from 'material-ui/Subheader';
import Chip from 'material-ui/Chip'
const Tag = ( {onTagClick, name} ) => {
const style = {
margin: 4
}
return (
<Chip style={style} onClick={onTagClick}>
{name}
</Chip>
)
}
export de... |
node_modules/react/lib/ReactInstanceMap.js | dianpan/github-tags | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
docs/src/app/components/pages/components/FlatButton/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 flatButtonReadmeText from './README';
import flatButtonExampleSimpleCode ... |
api/app/components/activities/tags.js | cmilfont/zonaextrema | import React from 'react';
import TagEdit from './tagedit.js'
export default function TagsCard( {description='',editHandler} ) {
const createTag = (tag, index) =>
<TagEdit key={`tag${index}`} description={tag} editHandler={editHandler} />;
const list = description.split(' ')
.map( cre... |
packages/material-ui-icons/src/ColorizeTwoTone.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="M15.8961 9.0233l-.9192-.9192 2.694-2.694.9193.9192z" opacity=".3" /><path d="M20.71 5.63l-2.34-2.34c-.2-.2-.45-.29-.71-.29s-.51.1-.7.29l-3.12... |
src/svg-icons/social/person-outline.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let SocialPersonOutline = (props) => (
<SvgIcon {...props}>
<path d="M12 5.9c1.16 0 2.1.94 2.1 2.1s-.94 2.1-2.1 2.1S9.9 9.16 9.9 8s.94-2.1 2.1-2.1m0 9c2.97 0 6.1 1.46 6.1 2.1v1.1H5.9V17c0-.64 3.13-2.1 6.1-2.1M12 4C... |
src/renderers/dom/shared/ReactDefaultInjection.js | agileurbanite/react | /**
* Copyright 2013-2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
* @providesModule ... |
packages/playground/stories/ValueIcon.story.js | appearhere/bloom | import React from 'react';
import { storiesOf } from '@storybook/react';
import {
ValueIcons,
Modifiers as m
} from '@appearhere/bloom';
const story = storiesOf('ValueIcons', module);
story
.add('ValueIcons.Handshake', () => <ValueIcons.Handshake className={m.titleLarge} />)
.add('ValueIcons.ThumbsUp', () =>... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.