target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
graphwalker-studio/src/main/js/components/sidemenu/execution-menu.js | KristianKarl/graphwalker-project | import React, { Component } from 'react';
import { connect } from "react-redux";
import { Button, ButtonGroup } from "@blueprintjs/core";
import { runTest, pauseTest, stepTest, stopTest } from "../../redux/actions";
class ExecutionMenu extends Component {
render() {
const { disabled, running, paused, visited, ru... |
clients/packages/admin-client/src/components/forms/button.spec.js | nossas/bonde-client | /**
* @jest-environment jsdom
*/
/* eslint-disable no-unused-expressions */
import React from 'react';
import { expect } from 'chai';
import { mount } from 'enzyme';
import { Button } from '../../components/forms';
describe('client/components/forms/button', () => {
it('should render without crashed', () => {
... |
docs/welcome/js/jquery.min.js | ThatGuyHughesy/announce | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
demo09/src/containers/Root.prod.js | lxlneo/reactdemo | import React from 'react'
import PropTypes from 'prop-types'
import { Provider } from 'react-redux'
import routes from '../routes'
import { Router } from 'react-router'
const Root = ({ store, history }) => (
<Provider store={store}>
<Router history={history} routes={routes} />
</Provider>
)
Root.propTypes = {... |
ajax/libs/material-ui/4.9.4/es/internal/svg-icons/CheckCircle.js | cdnjs/cdnjs | import React from 'react';
import createSvgIcon from './createSvgIcon';
/**
* @ignore - internal component.
*/
export default createSvgIcon(React.createElement("path", {
d: "M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"
}), 'CheckCircle'); |
ajax/libs/react-toolbox/2.0.0-beta.6/card/CardText.min.js | cdnjs/cdnjs | "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CardText=void 0;var _extends=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t,a=arguments[r];for(t in a)Object.prototype.hasOwnProperty.call(a,t)&&(e[t]=a[t])}return e},_react=require("react"),_react2=_interopRequireDefault(... |
client/components/Search.js | Pocket-titan/Tonlist | import React from 'react'
import {Observable} from 'rx'
import {TextField} from 'material-ui'
import ThemeManager from 'material-ui/lib/styles/theme-manager';
import MyRawTheme from '../components/Theme.js';
import ThemeDecorator from 'material-ui/lib/styles/theme-decorator';
import {compose, withState} from 'recomp... |
ajax/libs/react-redux/0.2.2/react-redux.js | maruilian11/cdnjs | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("react"));
else if(typeof define === 'function' && define.amd)
define(["react"], factory);
else if(typeof exports === 'object')
exports["ReduxReact"] = fact... |
transforms/__testfixtures__/React-PropTypes-to-prop-types/already-migrated-import.output.js | reactjs/react-codemod | import PropTypes from 'prop-types';
import React from 'react';
const object = PropTypes.object;
const string = PropTypes.string; |
modules/__tests__/ScrollManagementMixin-test.js | RobertKielty/react-router | import expect from 'expect';
import React from 'react';
import createHistory from 'history/lib/createHashHistory';
import resetHash from './resetHash';
import execStepsWithDelay from './execStepsWithDelay';
import { getWindowScrollPosition } from '../DOMUtils';
import Router from '../Router';
import Route from '../Rout... |
app/components/shared/Popover/anchored.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import classNames from 'classnames';
import Popover from '.';
import calculateViewportOffsets from './calculate-viewport-offsets';
export default class AnchoredPopover extends React.PureComponent {
static propTypes = {
children: PropTypes.node.isReq... |
src/index.js | aydrian/personal-status-page | import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
ReactDOM.render(<App />, document.getElementById('root'));
registerServiceWorker();
|
stageopdracht/node_modules/axios/lib/adapters/xhr.js | N00bface/Real-Dolmen-Stage-Opdrachten | 'use strict';
var utils = require('./../utils');
var settle = require('./../core/settle');
var buildURL = require('./../helpers/buildURL');
var parseHeaders = require('./../helpers/parseHeaders');
var isURLSameOrigin = require('./../helpers/isURLSameOrigin');
var createError = require('../core/createError');
var btoa ... |
packages/giu/src/inputs/timePickerAnalog.js | guigrpa/giu | // @flow
import React from 'react';
import classnames from 'classnames';
import { cancelEvent } from '../gral/helpers';
import { startOfToday } from '../gral/dates';
import { KEYS } from '../gral/constants';
import type { Moment, KeyboardEventPars } from '../gral/types';
const PI = Math.PI;
const PI2 = Math.PI * 2;
c... |
src/layouts/navigation.js | twitchett/gatsby-uno | import React from 'react'
import Link from 'gatsby-link'
/**
* Generates a list of page links from pages under /src/pages
*/
const Navigation = () => (
<nav className="cover-navigation cover-navigation--primary">
<ul className="navigation">
{/* TODO capture current page */}
<li className="n... |
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/dist/rx.all.js | pabloalba/kam-fu | // 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
};
... |
packages/ringcentral-widgets-docs/src/app/pages/Components/IconField/index.js | u9520107/ringcentral-js-widget | import React from 'react';
import { parse } from 'react-docgen';
import CodeExample from '../../../components/CodeExample';
import ComponentHeader from '../../../components/ComponentHeader';
import PropTypeDescription from '../../../components/PropTypeDescription';
import Demo from './Demo';
// eslint-disable-next-lin... |
ajax/libs/forerunnerdb/1.3.517/fdb-core+views.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... |
20170621/react-router-4/src/Profile.js | fengnovo/fengnovo-react-test | import React from 'react'
const Profile = () => (
<div>
<h3>个人设置</h3>
</div>
)
export default Profile |
Faw.Web.Client/src/routes/Achivment/Details/components/AchivmentExpressionList.js | Demenovich-A-J/Family-s-adventure-world | import React from 'react'
import _ from 'lodash'
import { Cell, IconButton } from 'react-mdl'
export const AchivmentExpressionList = (props) => {
let groupedByName = _.groupBy(props.expressionProperties, 'modelName')
return (
<Cell col={12}>
{
_.isEmpty(groupedByName)
? (
<... |
src/pages/sorting/Shellsort/Shellsort.js | hyy1115/react-redux-webpack2 | import React from 'react'
class Shellsort extends React.Component {
render() {
return (
<div>Shellsort</div>
)
}
}
export default Shellsort |
test/browser/es6-module-exports-spec.js | rscnt/material-ui | import React from 'react';
import TestUtils from 'react-addons-test-utils';
import injectTheme from './fixtures/inject-theme';
const Divider = require('Divider').default;
const ActionAccessibility = require('svg-icons').ActionAccessibility;
import ImportGetMuiTheme from 'styles/getMuiTheme';
const RequireGetMuiTheme ... |
docs/src/components/UseI18n.js | HsuTing/cat-components | 'use strict';
import React from 'react';
import PropTypes from 'prop-types';
import radium from 'radium';
import Button from 'cat-components/lib/button';
import {language} from 'cat-components/lib/i18n';
@radium
@language
export default class UseI18n extends React.Component {
static propTypes = {
translate: Pro... |
ajax/libs/react-virtualized/9.17.1/react-virtualized.min.js | jonobr1/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("ReactDOM")):"function"==typeof define&&define.amd?define(["React","ReactDOM"],t):"object"==typeof exports?exports.ReactVirtualized=t(require("React"),require("ReactDOM")):e.ReactVirtualized=t(e.React,e.ReactDOM)}... |
tests/react/useContext_hook.js | mroch/flow | // @flow
import React from 'react';
{
React.useMutationEffect(); // Error: function requires another argument.
}
type CustomType = {|
foo: string,
bar: number,
|};
{
let stringValue: string;
let numericValue: number;
let customValue: CustomType;
const StringContext = React.createContext('hello');
s... |
src/Popover/Popover.spec.js | hwo411/material-ui | /* eslint-env mocha */
import React from 'react';
import {assert} from 'chai';
import {shallow, mount} from 'enzyme';
import Popover from './Popover';
import PopoverAnimationDefault from './PopoverAnimationDefault';
import Paper from '../Paper';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Popover />',... |
config/routes.js | lsjroberts/react-redux-skeleton | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import { App } from 'containers/app';
import { Home } from 'routes/home';
import { Example } from 'routes/example';
export default (
<Route path='/' component={ App }>
<IndexRoute component={ Home } />
<Route path='/example' compon... |
node_modules/radium/webpack.config.js | geng890518/editor-ui | var path = require('path');
var webpack = require('webpack');
module.exports = {
cache: true,
entry: path.join(__dirname, '/modules/index.js'),
externals: [
{
"react": {
root: "React",
commonjs2: "react",
commonjs: "react",
amd: "react"
}
}
],
output: {
... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/List/Page.js | pbogdan/react-flux-mui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import listReadmeText from './README';
import listExampleSimpleCode from '!raw!.... |
src/shipit/frontend/src/index.js | La0/mozilla-relengapi | import 'bootstrap/dist/css/bootstrap.min.css';
import 'font-awesome/css/font-awesome.min.css';
import React from 'react';
import { render } from 'react-dom';
import App from './App';
import {
SHIPIT_API_URL,
RELEASE_CHANNEL,
RELEASE_VERSION,
} from './config';
const root = document.getElementById('root');
const... |
voting-server/node_modules/core-js/library/modules/es6.promise.js | danshapiro-optimizely/full_stack_redux | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, aFunction = req... |
ajax/libs/F2/1.3.0/f2.no-easyXDM.js | hare1039/cdnjs | ;(function(exports) {
if (exports.F2 && !exports.F2_TESTING_MODE) {
return;
}
/*!
JSON.org requires the following notice to accompany json2:
Copyright (c) 2002 JSON.org
http://json.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated d... |
src/components/browsevacancy/BrowseVacancy.js | Vasyl1989/Opus.ua | import React from 'react';
import Header from '../common/Header';
import Footer from '../common/Footer';
import Results from './Results';
import TitlebarBrowseVacancy from './TitlebarBrowseVacancy';
const BrowseVacancy = () => {
return (
<div>
<Header />
<TitlebarBrowseVacancy/>
<Results />
... |
ajax/libs/yui/3.11.0pr1/datatable-body/datatable-body.js | redmunds/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... |
frontend/src/routes.js | Pseudonick47/sherlock | import React from 'react';
import { Route } from 'react-router';
/* containers */
import { App } from './containers/App';
import ChooseLocationsDialog from './components/Dialogs/ChooseLocationsDialog';
import FileUpload from './components/FileUpload';
import { HomeContainer } from './containers/HomeContainer';
import ... |
node_modules/react-icons/fa/terminal.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const FaTerminal = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m14.6 21.9l-10.4 10.4q-0.3 0.3-0.6 0.3t-0.5-0.3l-1.1-1.1q-0.2-0.2-0.2-0.5t0.2-0.5l8.8-8.8-8.8-8.7q-0.2-0.3-0.2-0.6t0.2-0.5l1.1-1.1q0.3-0.2 0.5-0.2t0.6 0.2l10.4 10.4q... |
src/client/src/Components/Nav.js | severnsc/brewing-app | import React from 'react';
import { Link } from 'react-router-dom';
import '../App.css';
const Nav = (props) => {
let navClass = props.isOpen ? 'nav open' : 'nav'
return(
<nav className={navClass}>
<ul className="navItems">
<li><Link onClick={props.onClick} to='/timer'><p>Timer</p... |
ajax/libs/forerunnerdb/1.3.530/fdb-all.js | dakshshah96/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/home/informationForm/formComponents/schoolInfo.js | tskuse/operationcode_frontend | import React from 'react';
import Form from 'shared/components/form/form';
import { Line } from 'rc-progress';
import PropTypes from 'prop-types';
import FormSelect from 'shared/components/form/formSelect/formSelect';
import { SCHOOLINFO } from 'shared/constants/status';
import styles from './formComponents.css';
cons... |
ajax/libs/analytics.js/2.8.1/analytics.min.js | aashish24/cdnjs | (function umd(require){if("object"==typeof exports){module.exports=require("1")}else if("function"==typeof define&&define.amd){define(function(){return require("1")})}else{this["analytics"]=require("1")}})(function outer(modules,cache,entries){var global=function(){return this}();function require(name,jumped){if(cache[... |
app/javascript/mastodon/features/explore/results.js | maa123/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import { FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import { expandSearch } from 'mastodon/actions/search';
import Account from 'mastodon/containers/account_contai... |
node_modules/react-icons/ti/social-tumbler-circular.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const TiSocialTumblerCircular = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m24 26v-2.1c-0.7 0.5-1.4 0.7-2 0.7-0.3 0-0.6-0.1-1-0.3-0.2-0.1-0.3-0.3-0.4-0.5-0.1-0.2-0.1-0.7-0.1-1.4v-3.3h3v-2.1h-3v-3.2h-1.8c-0.2 0.7-0.3 1.3-0.5 1.6... |
app/containers/PeriodicTableSelector/index.js | mhoffman/CatAppBrowser | /*
*
* PeriodicTableSelector
*
*/
import React from 'react';
import { connect } from 'react-redux';
/* import { createStructuredSelector } from 'reselect'; */
import PeriodicTable from './PeriodicTable';
import { clickElement, clearSelection } from './actions';
export class PeriodicTableSelector extends React.Co... |
node_modules/react-icons/go/mirror.js | bairrada97/festival |
import React from 'react'
import Icon from 'react-icon-base'
const GoMirror = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m12.5 12.5l-7.5 7.5 7.5 7.5v-5h15v5l7.5-7.5-7.5-7.5v5h-15v-5z m7.5-12.5l-20 12.5v27.5l20-10 20 10v-27.5l-20-12.5z m17.5 35l-15-7.5v-2.5h-5v2.5l-15 7.5v-20l15-10v10h5v-... |
src/Kunstmaan/AdminBundle/Resources/ui/vendor_bower/select2/docs/vendor/js/jquery.min.js | treeleaf/KunstmaanBundlesCMS | /*! jQuery v1.11.2 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
techCurriculum/ui/solutions/3.3/src/components/Title.js | AnxChow/EngineeringEssentials-group | /**
* Copyright 2017 Goldman Sachs.
* 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... |
ajax/libs/mediaelement/2.0.1/jquery.js | dominicrico/cdnjs | /*!
* jQuery JavaScript Library v1.4.4
* http://jquery.com/
*
* Copyright 2010, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2010, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... |
Routers/index.android.js | victorditadi/IQApp | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class Routers extends Component {
render() {
return (
<View style={styles.container}>... |
ajax/libs/yui/3.7.0/datatable-body/datatable-body.js | djavaui/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... |
src/scenes/App/scenes/PlayerLeaderboards/components/PlayerLeaderboardTitle/index.js | jsza/tempus-website | import React from 'react'
import './styles.styl'
export default function PlayerLeaderboardTitle ({ rankType }) {
let icon
if (rankType === 'overall') {
icon = (
<i className="fa fa-users player-ranks-icon" />
)
}
else if (rankType === 'soldier') {
icon = <span className="tf-icon soldier lar... |
src/svg-icons/action/picture-in-picture.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionPictureInPicture = (props) => (
<SvgIcon {...props}>
<path d="M19 7h-8v6h8V7zm2-4H3c-1.1 0-2 .9-2 2v14c0 1.1.9 1.98 2 1.98h18c1.1 0 2-.88 2-1.98V5c0-1.1-.9-2-2-2zm0 16.01H3V4.98h18v14.03z"/>
</SvgIcon>
... |
blueocean-material-icons/src/js/components/svg-icons/action/question-answer.js | jenkinsci/blueocean-plugin | import React from 'react';
import SvgIcon from '../../SvgIcon';
const ActionQuestionAnswer = (props) => (
<SvgIcon {...props}>
<path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z"/>
</SvgIcon>
);
ActionQuestionAnswer.displayName ... |
node_modules/karma/node_modules/core-js/library/modules/es6.promise.js | patttieo/Timber-Hockey | 'use strict';
var LIBRARY = require('./_library')
, global = require('./_global')
, ctx = require('./_ctx')
, classof = require('./_classof')
, $export = require('./_export')
, isObject = require('./_is-object')
, anObject = req... |
src/charts/scatter-plot.js | WaldoJeffers/react-dc | import React from 'react'
import dc from 'dc'
import BaseChart from './base-chart'
import coordinateGridMixin from '../mixins/coordinate-grid-mixin'
import scatterMixin from '../mixins/scatter-mixin'
@scatterMixin
@coordinateGridMixin
export default class ScatterPlot extends BaseChart{
static displayName = 'ScatterP... |
public/assets/application-977e15c2e755e037c206ea82691f122c24e247b6d6072a736f838f4b16dcf698.js | 3osman/pharmacy_handling | !function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.moment=b()}(this,function(){"use strict";function a(){return Md.apply(null,arguments)}function b(a){Md=a}function c(a){return"[object Array]"===Object.prototype.toString.call(a)}funct... |
packages/wix-style-react/src/FloatingHelper/FloatingHelperContent/docs/index.story.js | wix/wix-style-react | import React from 'react';
import FloatingHelperContent from '..';
import Box from '../../../Box/Box';
import Text from '../../../Text/Text';
import { storySettings } from './storySettings';
import Image from 'wix-ui-icons-common/Image';
import * as examples from './examples';
import LinkTo from '@storybook/addon-links... |
ajax/libs/yui/3.9.0/simpleyui/simpleyui.js | Download/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
**/
/*jshint eqeqeq: false*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
The... |
src/routes/Auth/routes/ForgotPassword/components/ForgotPassword.js | willthefirst/book-buddy | import React from 'react'
import { Form, FormGroup, ControlLabel } from 'react-bootstrap'
import { Col } from 'react-flexbox-grid'
import { Field, reduxForm } from 'redux-form'
import LaddaButton, { L, SLIDE_DOWN } from 'react-ladda'
const ForgotPassword = (props) => {
const { handleSubmit } = props
return (
... |
src/components/MiniInfoBar/MiniInfoBar.js | jxzly229190/react-redux-universal-hot-example | 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... |
app/components/Contact/SearchBar.js | leesander1/hearmenow-electron | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import TextField from 'material-ui/TextField';
import DebounceInput from 'react-debounce-input';
import styles from '../Contact.css';
export default class SearchBar extends Component {
static propTypes = {
handleOnChange: PropTypes.fu... |
react-flux-mui/js/material-ui/docs/src/app/components/pages/components/Card/ExampleExpandable.js | pbogdan/react-flux-mui | import React from 'react';
import {Card, CardActions, CardHeader, CardText} from 'material-ui/Card';
import FlatButton from 'material-ui/FlatButton';
const CardExampleExpandable = () => (
<Card>
<CardHeader
title="Without Avatar"
subtitle="Subtitle"
actAsExpander={true}
showExpandableButt... |
example/examples/AnimatedMarkers.js | mvakulich/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Animated,
} from 'react-native';
import MapView from 'react-native-maps';
const screen = Dimensions.get('window');
const ASPECT_RATIO = screen.width / screen.height;
const LATITUDE = 37.78825;
const LONGITUDE = -122... |
packages/wix-style-react/src/TableToolbar/test/MainExample.js | wix/wix-style-react | import React from 'react';
import { TableToolbar, Card, Search, Dropdown } from 'wix-style-react';
export default class MainExample extends React.Component {
render() {
const collectionOptions = [
{ id: 0, value: 'All Products' },
{ id: 1, value: 'Towels' },
{ id: 2, value: 'Slippers' },
];... |
tests/client/ui/components/TestOverlay.js | squarewave/addons-frontend | import React from 'react';
import { renderIntoDocument } from 'react-addons-test-utils';
import Overlay from 'ui/components/Overlay';
describe('<Overlay />', () => {
function render(props = {}) {
return renderIntoDocument(<Overlay {...props} />);
}
it('renders an Overlay', () => {
const root = render(... |
src/methods.js | byumark/react-table | import React from 'react'
import _ from './utils'
export default Base => class extends Base {
getResolvedState (props, state) {
const resolvedState = {
..._.compactObject(this.state),
..._.compactObject(this.props),
..._.compactObject(state),
..._.compactObject(props)
}
return res... |
src/components/Header/Header.js | mimiflynn/react-starter-kit | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react';
import styles from './Header.css';
import withStyles from '../../decorators/withStyles';
import Link from '../../utils/Link';
import Navigation from '../Navigation';
@withStyles(styles)
class Header {
render() {
... |
demo/components/Title/index.js | css-modules/css-modules-require-hook | import React from 'react';
import base from './Title.css';
export default ({ styles = base, ..._ }) => (
<h1 { ..._ } className={ styles.common }/>
);
|
_inc/client/components/navigation-settings/test/component.js | iamtakashi/jetpack | /**
* External dependencies
*/
import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import sinon from 'sinon';
/**
* Internal dependencies
*/
import { NavigationSettings } from '../index';
describe( 'NavigationSettings', () => {
let wrapper,
testProps,
options;
before... |
src/InputBase.js | RichardLitt/react-bootstrap | import React from 'react';
import classNames from 'classnames';
import FormGroup from './FormGroup';
class InputBase extends React.Component {
getInputDOMNode() {
return React.findDOMNode(this.refs.input);
}
getValue() {
if (this.props.type === 'static') {
return this.props.value;
} else if (t... |
test/LabelSpec.js | jakubsikora/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import Label from '../src/Label';
describe('Label', function () {
it('Should output a label with message', function () {
let instance = ReactTestUtils.renderIntoDocument(
<Label>
<strong>Message</strong>
</Labe... |
modules/__tests__/matchRoutes-test.js | bs1180/react-router | import expect from 'expect'
import React from 'react'
import { createMemoryHistory } from 'history'
import { createRoutes } from '../RouteUtils'
import matchRoutes from '../matchRoutes'
import Route from '../Route'
import IndexRoute from '../IndexRoute'
describe('matchRoutes', function () {
let routes
let
Root... |
packages/showcase/showcase-components/source-linker.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
src/components/common/svg-icons/action/settings-phone.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSettingsPhone = (props) => (
<SvgIcon {...props}>
<path d="M13 9h-2v2h2V9zm4 0h-2v2h2V9zm3 6.5c-1.25 0-2.45-.2-3.57-.57-.35-.11-.74-.03-1.02.24l-2.2 2.2c-2.83-1.44-5.15-3.75-6.59-6.58l2.2-2.21c.28-.27.36-... |
src/components/Icon/Icon.js | propertybase/react-lds | import React from 'react';
import PropTypes from 'prop-types';
import cx from 'classnames';
import IconSVG from './IconSVG';
const iconClass = (sprite, icon) => icon.replace(/_/g, '-');
const Icon = (props) => {
const {
background,
className,
div,
icon,
size,
sprite,
svgClassName,
t... |
lib/components/Login.js | mlimberg/Digidex | import React from 'react';
const Login = ({ authorize, setUser, text, id }) => {
return (
<div>
<button className='button'
id={id + '-btn'}
onClick={()=> {
authorize().then((fromFirebase) => setUser(fromFirebase));
}}>
{text}
</button>... |
core/modules/contextual/js/contextual.js | kameleonbe/kam-drupal8 | /**
* @file
* Attaches behaviors for the Contextual module.
*/
(function ($, Drupal, drupalSettings, _, Backbone, JSON, storage) {
"use strict";
var options = $.extend(drupalSettings.contextual,
// Merge strings on top of drupalSettings so that they are not mutable.
{
strings: {
open: Dr... |
examples/universal/server/server.js | naoishii/ohk2016C | /* eslint-disable no-console, no-use-before-define */
import path from 'path'
import Express from 'express'
import qs from 'qs'
import webpack from 'webpack'
import webpackDevMiddleware from 'webpack-dev-middleware'
import webpackHotMiddleware from 'webpack-hot-middleware'
import webpackConfig from '../webpack.config... |
examples/js/advance/demo.js | powerhome/react-bootstrap-table | /* eslint max-len: 0 */
import React from 'react';
import EditTypeTable from './edit-type-table';
import DataInsertTypeTable from './insert-type-table';
import AutoRowKeyTable from './auto-rowkey-table';
import ValidatorTable from './validator-table';
import HideOnInsertTable from './hide-on-insert-table';
import Disab... |
internals/templates/containers/LanguageProvider/index.js | davecyen/react-boilerplate-material | /*
*
* 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... |
egghead.io/react_fundamentals/lessons/13-dynamic/main.js | andrisazens/learning_react | // https://jsbin.com/qubonu/edit?js,output
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
ReactDOM.render(<App />, document.getElementById('app'));
|
go-betz/src/views/new-match/index.js | FabioFischer/go-betz | import React from 'react';
import { TextField } from 'material-ui';
import { Select, AdministrativeButton } from './../../components';
import { team, match } from './../../services';
class NewMatch extends React.Component {
state = {
description: '',
teamA: 0,
teamB: 0,
date: {},
time: {},
... |
saga/seata-saga-statemachine-designer/ggeditor/components/ContextMenu/index.js | seata/seata | import React from 'react';
import { pick } from '@utils';
import Editor from '@components/Base/Editor';
import { CONTEXT_MENU_CONTAINER } from '@common/constants';
import withGGEditorContext from '@common/context/GGEditorContext/withGGEditorContext';
import Menu from './Menu';
class ContextMenu extends React.Component... |
src/svg-icons/image/vignette.js | pancho111203/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageVignette = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-9 15c-4.42 0-8-2.69-8-6s3.58-6 8-6 8 2.69 8 6-3.58 6-8 6z"/>
</SvgIcon>... |
webpack.dist.js | madgoods/bp-gulp-angular2 | var webpack = require('webpack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
module.exports = {
entry: {
'polyfills': './src/app/polyfills.ts',
'vendor': './src/app/vendor.ts',
'app': './src/app/main.ts'
},
output : {
filename : '[name].js... |
src/addons/dragAndDrop/EventWrapper.js | jquense/react-big-calendar | import PropTypes from 'prop-types'
import React from 'react'
import clsx from 'clsx'
import { accessor as get } from '../../utils/accessors'
import { DnDContext } from './DnDContext'
class EventWrapper extends React.Component {
static contextType = DnDContext
static propTypes = {
type: PropTypes.oneOf(['date'... |
src/components/Feedback/Feedback.js | liuyutao/react-test | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React, { Component } from 'react';
import styles from './Feedback.css';
import withStyles from '../../decorators/withStyles';
@withStyles(styles)
class Feedback extends Component {
render() {
return (
<div className="Feedback... |
src/components/login/LoginPage.js | TulevaEE/onboarding-client | import React from 'react';
import { PropTypes as Types } from 'prop-types';
import { Redirect, withRouter } from 'react-router-dom';
import { FacebookProvider, Like } from 'react-facebook';
import { bindActionCreators } from 'redux';
import { connect } from 'react-redux';
import './LoginPage.scss';
import { logo, Aut... |
src/entypo/ProgressOne.js | cox-auto-kc/react-entypo | import React from 'react';
import EntypoIcon from '../EntypoIcon';
const iconClass = 'entypo-svgicon entypo--ProgressOne';
let EntypoProgressOne = (props) => (
<EntypoIcon propClass={iconClass} {...props}>
<path d="M18,5H2C0.9,5,0,5.9,0,7v6c0,1.1,0.9,2,2,2h16c1.1,0,2-0.9,2-2V7C20,5.9,19.1,5,18,5z M18,13H2... |
client/src/components/view/chat/test.js | FrancooHM/gem | import React from 'react';
import ReactDOM from 'react-dom';
import ChatView from '.';
it('chat view renders without crashing', () => {
const div = document.createElement('div');
ReactDOM.render(<ChatView />, div);
});
|
doc/js/jquery.js | djannot/web-automation-center | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
files/core-js/0.9.1/core.js | RoberMac/jsdelivr | /**
* Core.js 0.9.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
*/
!function(undefined){
'use strict';
var __e = null, __g = null;
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******... |
app/javascript/mastodon/features/account/components/header.js | kagucho/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import emojify from '../../../emoji';
import escapeTextContentForBrowser from 'escape-html';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import IconButton from '../..... |
examples-native/crna-kitchen-sink/storybook/stories/Button/index.ios.js | storybooks/react-storybook | import React from 'react';
import PropTypes from 'prop-types';
import { TouchableHighlight } from 'react-native';
export default function Button({ onPress, children }) {
return <TouchableHighlight onPress={onPress}>{children}</TouchableHighlight>;
}
Button.defaultProps = {
children: null,
onPress: () => {},
};
... |
frontend/src/AddMovie/ImportMovie/Import/ImportMovieHeader.js | geogolem/Radarr | import PropTypes from 'prop-types';
import React from 'react';
import VirtualTableHeader from 'Components/Table/VirtualTableHeader';
import VirtualTableHeaderCell from 'Components/Table/VirtualTableHeaderCell';
import VirtualTableSelectAllHeaderCell from 'Components/Table/VirtualTableSelectAllHeaderCell';
import transl... |
packages/material-ui-icons/src/NetworkCellRounded.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path fillOpacity=".3" d="M4.41 22H20c1.1 0 2-.9 2-2V4.41c0-.89-1.08-1.34-1.71-.71L3.71 20.29c-.63.63-.19 1.71.7 1.71z" /><path d="M17 7L3.71 20.29c-.... |
app/components/Button/index.js | mxstbr/react-boilerplate-site | /**
*
* Button.react.js
*
* A common button, if you pass it a prop "route" it'll render a link to a react-router route
* otherwise it'll render a link with an onclick
*/
import React from 'react';
import styles from './styles.css';
import Icon from 'Icon'
function Button(props) {
let classNames = [ styles.bu... |
src/index.js | gmmendezp/portfolio | import React from 'react'
import ReactDOM from 'react-dom'
import { Provider } from 'react-redux'
import { normalize, setupPage } from 'csstips'
import { cssRule } from 'typestyle'
import { CSS } from './constants'
import Router from './router'
import registerServiceWorker from './registerServiceWorker'
import configu... |
assets/components/entry.js | alwayalive/admin-be | //框架组件
import React from 'react'
import { render } from 'react-dom'
import { Router,Route,browserHistory,hashHistory,IndexRoute } from 'react-router';
import { createStore, applyMiddleware } from 'redux'
import { Provider } from 'react-redux'
import thunk from 'redux-thunk'
//自定义组件
import App from './home/app'
import ... |
packages/material-ui-icons/src/RoomServiceSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M2 17h20v2H2v-2zm11.84-9.21c.1-.24.16-.51.16-.79 0-1.1-.9-2-2-2s-2 .9-2 2c0 .28.06.55.16.79C6.25 8.6 3.27 11.93 3 16h18c-.27-4.07-3.25-7.4-7.16-8.21z" />
, 'RoomServiceSharp');
|
frontend/app/routes.js | briancappello/flask-react-spa | import React from 'react'
import { Route, Switch } from 'react-router-dom'
import startCase from 'lodash/startCase'
import { compile } from 'path-to-regexp'
import {
ArticleDetail,
Articles,
CategoryDetail,
Series,
SeriesDetail,
TagDetail,
} from 'blog/pages'
import {
ForgotPassword,
Login,
Logout,
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.