target stringlengths 5 300 | feat_repo_name stringlengths 6 76 | text stringlengths 26 1.05M |
|---|---|---|
src/index.js | citcen/eudora | import 'core-js/fn/object/assign';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/Main';
// Render the main component into the dom
ReactDOM.render(<App />, document.getElementById('app'));
|
src/index.js | rawild/thedatamediagroup | import React from 'react';
import ReactDOM from 'react-dom';
import App from './js/components/App';
import registerServiceWorker from './registerServiceWorker';
import './index.css';
import { AppContainer } from 'react-hot-loader'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import todoApp... |
node_modules/native-base/__tests__/backward/Button.android.js | odapplications/WebView-with-Lower-Tab-Menu | import 'react-native';
import renderer from 'react-test-renderer';
import React from 'react';
import { Button } from './../../src/backward/Widgets/Button';
// import Icon from '../../../Components/Widgets/Icon';
// Note: test renderer must be required after react-native.
jest.mock('Platform', () => {
const Platf... |
Components/Core.TaxonomyPicker/Core.TaxonomyPickerWeb/Scripts/jquery-1.9.1.min.js | dalehhirt/PnP | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
ajax/libs/yui/3.13.0/event-focus/event-focus-min.js | underyx/cdnjs | YUI.add("event-focus",function(e,t){function u(t,r,u){var a="_"+t+"Notifiers";e.Event.define(t,{_useActivate:o,_attach:function(i,s,o){return e.DOM.isWindow(i)?n._attach([t,function(e){s.fire(e)},i]):n._attach([r,this._proxy,i,this,s,o],{capture:!0})},_proxy:function(t,r,i){var s=t.target,f=t.currentTarget,l=s.getData(... |
__tests__/generic_component_test.js | catalin-enache/ab_utils | 'use strict';
jest.dontMock('../src/common/helpers');
jest.dontMock('../src/common/validators');
jest.dontMock('../src/components/generic_component');
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
const GenericComponent = require('../src/components/gen... |
ajax/libs/react-router/2.1.0/ReactRouter.min.js | redmunds/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... |
user_guide/searchindex.js | jaiswarvipin/lms-open-source-framework | Search.setIndex({envversion:42,terms:{linebreak:24,fopen_read_write_create_strict:122,file_upload:11,some_librari:134,yellow:[6,138],poorli:98,four:[158,94,59,144,60,134,130,136,133],ofb:85,prefix:[],oldest:136,hate:140,optimize_databas:81,consider:[59,34],"0x7f":34,whose:34,accur:[0,34,123,160,47,101],aug:98,my_contro... |
stories/SingleDatePicker_day.js | tombatossals/react-dates | import React from 'react';
import moment from 'moment';
import { storiesOf } from '@storybook/react';
import isInclusivelyAfterDay from '../src/utils/isInclusivelyAfterDay';
import isSameDay from '../src/utils/isSameDay';
import SingleDatePickerWrapper from '../examples/SingleDatePickerWrapper';
const datesList = [
... |
src/components/tweetToolbar.js | philly-d/chirp-for-twitter | import React from 'react'
import classNames from 'classnames'
import { getTweetLength } from 'twitter-text'
function getCharCount(text, hasScreenshots) {
if (hasScreenshots) {
text = text.trim() + ' http://pic.twitter.com'
}
return getTweetLength(text)
}
const TweetToolbar = (props) => {
const... |
src/pages/404.js | codenetwork/CodeNetwork.co | import React from 'react'
import Layout from '../components/layout'
import SEO from '../components/seo'
const NotFoundPage = () => (
<Layout>
<SEO title="404: Not found" />
<h1>NOT FOUND</h1>
<p>You just hit a route that doesn't exist... the sadness.</p>
</Layout>
)
export default NotFoundPage
|
app/components/stations/StationsActions.js | sheldhur/Vector | // @flow
import { Button, Dropdown, Icon, Menu, Modal } from 'antd';
import { remote } from 'electron';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import * as stationActions from '../../actions/station';
import * as uiActions from '../../... |
node_modules/native-base/src/basic/Spinner.js | odapplications/WebView-with-Lower-Tab-Menu | import React, { Component } from 'react';
import { ActivityIndicator } from 'react-native';
import { connectStyle } from '@shoutem/theme';
import variables from '../theme/variables/platform';
import mapPropsToStyleNames from '../Utils/mapPropsToStyleNames';
class Spinner extends Component {
render() {
return (
... |
app/containers/App/index.js | vlastoun/picture-uploader-crud | /**
*
* App.react.js
*
* This component is the skeleton around the actual pages, and should only
* contain code that should be seen on all pages. (e.g. navigation bar)
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If... |
ajax/libs/core-js/2.1.1/shim.js | amoyeh/cdnjs | /**
* core-js 2.1.1
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2016 Denis Pushkarev
*/
!function(__e, __g, undefined){
'use strict';
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require f... |
src/Main/Gear.js | hasseboulen/WoWAnalyzer | import React from 'react';
import PropTypes from 'prop-types';
import Icon from 'common/Icon';
import ItemLink from 'common/ItemLink';
import ITEM_QUALITIES from 'common/ITEM_QUALITIES';
class Gear extends React.PureComponent {
static propTypes = {
selectedCombatant: PropTypes.object.isRequired,
};
render()... |
tests/lib/CustomStep.spec.js | EdenBD/react-simple-chatbot | import React from 'react';
import { describe, it } from 'mocha';
import { expect } from 'chai';
import { mount } from 'enzyme';
import { CustomStep } from '../../lib/steps';
import CustomStepContainer from '../../lib/steps/custom/CustomStepContainer';
const Example = () => (
<div className="example">
Example
<... |
src/svg-icons/image/exposure-zero.js | tan-jerene/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageExposureZero = (props) => (
<SvgIcon {...props}>
<path d="M16.14 12.5c0 1-.1 1.85-.3 2.55-.2.7-.48 1.27-.83 1.7-.36.44-.79.75-1.3.95-.51.2-1.07.3-1.7.3-.62 0-1.18-.1-1.69-.3-.51-.2-.95-.51-1.31-.95-.36-.44... |
docs/tutorial/DO_NOT_TOUCH/11/src/index.js | FWeinb/cerebral | import Router from 'cerebral-router'
import React from 'react'
import {render} from 'react-dom'
import {Controller} from 'cerebral'
import App from './components/App'
import {Container} from 'cerebral/react'
import Devtools from 'cerebral/devtools'
import HttpProvider from 'cerebral-provider-http'
import app from './mo... |
ajax/libs/react-data-grid/0.13.29/react-data-grid.js | froala/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["ReactDataGrid"] = f... |
ajax/libs/react-bootstrap-table/3.3.8/react-bootstrap-table.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrapTable=t(require("react"),require("react-dom")):e.ReactBootstrapTable=t(e.React,e.R... |
examples/breadcrumbs/app.js | nhunzaker/react-router | import React from 'react'
import { render } from 'react-dom'
import { createHistory, useBasename } from 'history'
import { Router, Route, Link } from 'react-router'
require('./app.css')
const history = useBasename(createHistory)({
basename: '/breadcrumbs'
})
class App extends React.Component {
static title = 'Ho... |
src/scripts/pages/NewProject.page.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 ... |
ajax/libs/forerunnerdb/1.3.59/fdb-legacy.min.js | tholu/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... |
web/src/containers/AlgorithmLog.js | miaolz123/samaritan | import { ResetError } from '../actions';
import { LogList } from '../actions/log';
import React from 'react';
import { connect } from 'react-redux';
import { browserHistory } from 'react-router';
import { Button, Table, Tag, notification } from 'antd';
class Log extends React.Component {
constructor(props) {
sup... |
stories/examples/TableProps.js | reactstrap/reactstrap | import React from 'react';
import { Table } from 'reactstrap';
import Props from './Props';
const Example = () => (
<Props component={Table} />
);
export default Example;
|
fields/types/code/CodeField.js | kwangkim/keystone | import _ from 'underscore';
import CodeMirror from 'codemirror';
import Field from '../Field';
import React from 'react';
import { FormInput } from 'elemental';
/**
* TODO:
* - Remove dependency on underscore
*/
// See CodeMirror docs for API:
// http://codemirror.net/doc/manual.html
module.exports = Field.create... |
ajax/libs/yui/3.6.0/datatable-core/datatable-core.js | joeylakay/cdnjs | YUI.add('datatable-core', function(Y) {
/**
The core implementation of the `DataTable` and `DataTable.Base` Widgets.
@module datatable
@submodule datatable-core
@since 3.5.0
**/
var INVALID = Y.Attribute.INVALID_VALUE,
Lang = Y.Lang,
isFunction = Lang.isFunction,
isObject = Lang.isObject,
... |
RNTester/js/ViewExample.js | shrutic123/react-native | /**
* 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.
*
* @flow
* ... |
modules/API/.eslintrc.js | KalinduDN/kalindudn.github.io | module.exports = {
'extends': '../../react/.eslintrc.js'
};
|
app/js/profiles/components/AdvancedSidebar.js | blockstack/blockstack-portal | import React from 'react'
import PropTypes from 'prop-types'
import { Link } from 'react-router'
const AdvancedSidebar = (props) => {
const tabs = [
{ urlComponent: 'zone-file', label: 'Update zone file', isActive: false },
{ urlComponent: 'transfer-name', label: 'Transfer name', isActive: false }
]
tabs... |
CompositeUi/src/views/layout/ContentRightLayout.js | kreta/kreta | /*
* This file is part of the Kreta package.
*
* (c) Beñat Espiña <benatespina@gmail.com>
* (c) Gorka Laucirica <gorka.lauzirika@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
import CrossIcon from './../../svg/cross.... |
rojak-ui-web/src/app/result/MediaResult.js | bobbypriambodo/rojak | import React from 'react'
import ResultGateway from './ResultGateway'
import styles from './result.css'
const MediaResult = () => {
return (
<ResultGateway showIn={[/^(media: )/]}>
<div className={styles.resultWrapper}>
THIS IS MEDIA
</div>
</ResultGateway>
)
}
export default MediaResu... |
geonode/contrib/monitoring/frontend/src/components/molecules/average-memory/index.js | ingenieroariel/geonode | import React from 'react';
import PropTypes from 'prop-types';
import CircularProgress from 'material-ui/CircularProgress';
import HoverPaper from '../../atoms/hover-paper';
import styles from './styles';
class AverageMemory extends React.Component {
static propTypes = {
mem: PropTypes.number,
}
static con... |
ajax/libs/6to5/1.12.25/browser.js | Olical/cdnjs | !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.to5=e()}}(function(){var define,module,exports;return... |
examples/add-progress-bar/Navigation.js | americanexpress/react-albus | import React from 'react';
import { WithWizard } from 'react-albus';
const Navigation = () => (
<WithWizard
render={({ next, previous, step, steps }) => (
<div className="example-buttons">
{steps.indexOf(step) < steps.length - 1 && (
<button className="btn-fluid margin-1-b" onClick={next}... |
server/server.js | Ripley6811/TAIMAU-CHARTS | import Express from 'express';
import mongoose from 'mongoose';
import bodyParser from 'body-parser';
import cookieParser from 'cookie-parser';
import path from 'path';
// Webpack Requirements
import webpack from 'webpack';
import config from '../webpack.config.dev';
import webpackDevMiddleware from 'webpack-dev-middl... |
jquery/jquery.min.js | thomasJang/axisj | /*! jQuery v1.11.1 | (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... |
public/js/cat_source/es6/components/segments/SegmentsCommentsIcon.js | riccio82/MateCat | /**
* React Component for the warnings.
*/
import React from 'react'
import CommentsStore from '../../stores/CommentsStore'
import SegmentsActions from '../../actions/SegmentActions'
import CommentsConstants from '../../constants/CommentsConstants'
import MBC from '../../utils/mbc.main'
import Shortcuts from '../../... |
src/svg-icons/action/event.js | owencm/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionEvent = (props) => (
<SvgIcon {...props}>
<path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/>
</SvgIcon>
... |
ajax/libs/vkui/4.22.0/cjs/components/Spinner/Spinner.min.js | cdnjs/cdnjs | "use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault").default,_interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard").default;Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _jsxRuntime=require("../../lib/jsxRuntime"),_... |
ajax/libs/F2/1.3.1/f2.no-easyXDM.min.js | DSpeichert/cdnjs | /*! F2 - v1.3.1 - 10-15-2013 - See below for copyright and license */
(function(exports){if(!exports.F2||exports.F2_TESTING_MODE){/*!
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 obta... |
src/svg-icons/action/help.js | ArcanisCz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionHelp = (props) => (
<SvgIcon {...props}>
<path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83... |
lib/jquery-core/jquery-1.4.2.js | beppenapo/fontiperlastoria | /*!
* jQuery JavaScript Library v1.4.2
* 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.
... |
src/TabbedArea.js | brynjagr/react-bootstrap | import React from 'react';
import Tabs from './Tabs';
import TabPane from './TabPane';
import ValidComponentChildren from './utils/ValidComponentChildren';
import deprecationWarning from './utils/deprecationWarning';
const TabbedArea = React.createClass({
componentWillMount() {
deprecationWarning(
'TabbedA... |
client/node_modules/uu5g03/dist-node/forms/number.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin} from './../common/common.js';
import {Button, Glyphicon} from './../bricks/bricks.js';
import TextInputMixin from './text-input-mixin.js';
import './number.less';
export default React.createClass({
mixins: [
BaseMixin,
ElementaryMixin,
Text... |
docs/pages/api-docs/grid.js | lgollut/material-ui | import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import { prepareMarkdown } from 'docs/src/modules/utils/parseMarkdown';
const pageFilename = 'api/grid';
const requireRaw = require.context('!raw-loader!./', false, /\/grid\.md$/);
export default function Page({ docs }) {
... |
app/javascript/mastodon/features/getting_started/index.js | koba-lab/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnLink from '../ui/components/column_link';
import ColumnSubheading from '../ui/components/column_subheading';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import { connect } from 'react-redux';
import Prop... |
RNDemo/RNComment/node_modules/react-native/Libraries/Image/Image.ios.js | 995996812/Web | /**
* 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... |
app/components/SignIn/index.js | theClubhouse-Augusta/JobWeasel-FrontEnd | /**
*
* SignIn
*
*/
import React from 'react';
import './style.css';
import './styleM.css';
import LeftIcon from 'react-icons/lib/fa/chevron-left';
import RightIcon from 'react-icons/lib/fa/chevron-right';
export default class SignIn extends React.PureComponent {
constructor(props) {
super(props);
this.st... |
ajax/libs/react-bootstrap/0.28.0/react-bootstrap.min.js | joeyparrish/cdnjs | !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],t):"object"==typeof exports?exports.ReactBootstrap=t(require("react"),require("react-dom")):e.ReactBootstrap=t(e.React,e.ReactDOM)}(... |
src/components/TransactionHistory.js/TransactionHistory.js | deluxe-pig/cloud-farmer | // TransactionHistory.js
import React, { Component } from 'react';
import styles from './SimpleMeter.css';
import { Link } from 'react-router';
export default class TransactionHistory extends Component {
render() {
return (
<div>
</div>
);
}
}
|
client/src/Game/Prototype03/Setting/background.js | hold-the-door-game/Prototypes | import React from 'react';
import bind from 'react-autobind';
import Game from 'Game/index.js'
class Background extends React.Component {
constructor(props) {
super(props);
bind(this);
this.backdrop = window.PIXI.Sprite.fromImage('assets/sprites/office_building_total_01.png');
const backdrop = this.b... |
misc/tabledrag.js | idfive/drupal-boilerplate | (function ($) {
/**
* Drag and drop table rows with field manipulation.
*
* Using the drupal_add_tabledrag() function, any table with weights or parent
* relationships may be made into draggable tables. Columns containing a field
* may optionally be hidden, providing a better user experience.
*
* Created tableD... |
src/main.js | anhkhang2304/k-redux | import React from 'react'
import ReactDOM from 'react-dom'
import createStore from './store/createStore'
import './styles/main.scss'
// Store Initialization
// ------------------------------------
const store = createStore(window.__INITIAL_STATE__)
// Render Setup
// ------------------------------------
const MOUNT_N... |
ajax/libs/react-native-web/0.11.4/vendor/react-native/VirtualizedSectionList/index.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); }
f... |
app/javascript/mastodon/features/ui/components/column_header.js | alarky/mastodon | import React from 'react';
import PropTypes from 'prop-types';
export default class ColumnHeader extends React.PureComponent {
static propTypes = {
icon: PropTypes.string,
type: PropTypes.string,
active: PropTypes.bool,
onClick: PropTypes.func,
hideOnMobile: PropTypes.bool,
columnHeaderId: P... |
packages/nova-core/lib/modules/containers/withEdit.js | HelloMeets/HelloMakers | /*
Generic mutation wrapper to edit a document in a collection.
Sample mutation:
mutation moviesEdit($documentId: String, $set: MoviesInput, $unset: MoviesUnset) {
moviesEdit(documentId: $documentId, set: $set, unset: $unset) {
...MoviesEditFormFragment
}
}
Arguments:
- documentId: the id of... |
src/molecules/DataRow/__tests__/data_row.spec.js | policygenius/athenaeum | import React from 'react';
import { expect } from 'chai';
import { shallow } from 'enzyme';
import DataRow from 'molecules/DataRow';
describe('<DataRow />', () => {
it('renders', () => {
const wrapper = shallow(<DataRow label='Some data' value={100} />);
expect(wrapper.length).to.equal(1);
});
});
|
docs/src/app/components/pages/components/DatePicker/ExampleInternational.js | pomerantsev/material-ui | import React from 'react';
import DatePicker from 'material-ui/DatePicker';
import areIntlLocalesSupported from 'intl-locales-supported';
let DateTimeFormat;
/**
* Use the native Intl.DateTimeFormat if available, or a polyfill if not.
*/
if (areIntlLocalesSupported(['fr'])) {
DateTimeFormat = global.Intl.DateTime... |
src/parser/shaman/enhancement/modules/talents/LightningShield.js | sMteX/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS/index';
import SpellIcon from 'common/SpellIcon';
import { formatNumber, formatPercentage } from 'common/format';
import Analyzer from 'parser/core/Analyzer';
import StatisticBox from 'interface/others/StatisticBox';
class LightningShield extends Analyzer ... |
app/client.js | eiriklv/redux-blog-example | /* eslint-env browser */
/* global process */
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import HashHistory from 'react-router/lib/HashHistory';
import Root from './Root';
const history = (process.env.NODE_ENV === 'production')
? new BrowserHisto... |
packages/material-ui-icons/src/FilterTiltShiftRounded.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 d="M11 3.23c0-.64-.59-1.13-1.21-.99-1.12.26-2.18.7-3.12 1.3-.53.34-.61 1.1-.16 1.55.32.32.83.4 1.21.16.77-.49 1.62-.85 2.54-1.05.44-.1.74-.51.74... |
src/app.js | bendyorke/auth0-profile | import React from 'react'
import ReactDOM from 'react-dom'
import 'whatwg-fetch'
import 'bootstrap/dist/css/bootstrap.css'
import './app.css'
import App from 'containers/App/App'
import {hashHistory} from 'react-router'
import makeRoutes from './routes'
const routes = makeRoutes()
const mountNode = document.queryS... |
client/node_modules/uu5g03/doc/main/server/public/data/source/uu5-forms-v3-internal-items-input.js | UnicornCollege/ucl.itkpd.configurator | import React from 'react';
import {BaseMixin, ElementaryMixin, LsiMixin} from './../../common/common.js';
import {Span} from './../../bricks/bricks.js';
import {Link, Glyphicon} from './../../bricks/bricks.js';
import './items-input.less';
export default React.createClass({
//@@viewOn:mixins
mixins: [
Base... |
test/fixtures/rename/react-source.js | cmstead/js-refactor-atom | import React, { Component } from 'react';
import { withRouter, Link, Redirect } from 'react-router-dom';
import { observer, inject } from 'mobx-react';
import cn from 'classnames';
import Guest from './Guest';
import Member from './Member';
import Routes from '../Routes';
import styles from './index.sass';
@inject('... |
ajax/libs/asynquence-contrib/0.28.0/contrib-es6.src.js | froala/cdnjs | /*! asynquence-contrib
v0.28.0 (c) Kyle Simpson
MIT License: http://getify.mit-license.org
*/
(function UMD(dependency,definition){
if (typeof module !== "undefined" && module.exports) {
// make dependency injection wrapper first
module.exports = function $$inject$dependency(dep) {
// only try to `requ... |
client/tests/components/pages/LandingPage.spec.js | andela-iukwuoma/docman | import expect from 'expect';
import sinon from 'sinon';
import React from 'react';
import { shallow, mount } from 'enzyme';
import { LandingPage } from
'../../../components/pages/LandingPage';
const signup = sinon.spy(() => Promise.resolve());
const signin = sinon.spy(() => Promise.resolve());
const spyHandleChange = ... |
src/components/ManageRoles/ManageRoles.js | RegOpz/RegOpzWebApp | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { hashHistory, Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators, dispatch } from 'redux';
import _ from 'lodash';
import {
actionFetchRoles
} from '../../actions/RolesAction';
import {
ac... |
assets/jsx/ReactComponents/OpenMenu.js | molgenis/gene-network | var _ = require('lodash')
var React = require('react')
var TriangleDown = require('./SVGCollection').TriangleDown
var TriangleUp = require('./SVGCollection').TriangleUp
var color = require('../../js/color')
var OpenMenu = React.createClass({
propTypes: {
options: React.PropTypes.array,
style: Reac... |
ajax/libs/vkui/4.26.0/lib/jsxRuntime.min.js | cdnjs/cdnjs | import*as React from"react";import{prefixClass}from"./prefixClass";function processProps(e){var r,a,t,s={};for(r in e)Object.prototype.hasOwnProperty.call(e,r)&&"vkuiClass"!==r&&(s[r]=e[r]);return e.vkuiClass&&(a=e.className,t=prefixClass(e.vkuiClass),s.className=a?a+" "+t:t),s}function createScopedElement(e,r){var a=a... |
assets/javascripts/sso/components/AdminNewAppCard.js | laincloud/sso | import StyleSheet from 'react-style';
import React from 'react';
import CardFormMixin from './CardFormMixin';
import {Admin} from '../models/Models';
let AdminNewAppCard = React.createClass({
mixins: [CardFormMixin],
getInitialState() {
return {
formValids: {
'fullname': true,
'redirect... |
ajax/libs/forerunnerdb/1.3.642/fdb-core.js | dannyxx001/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/ionic/0.9.19-alpha/js/ionic.js | samthor/cdnjs | /*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v0.9.19
* 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/react-router/4.0.0-beta.3/react-router.min.js | kennynaoh/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react")):"function"==typeof define&&define.amd?define(["react"],e):"object"==typeof exports?exports.ReactRouter=e(require("react")):t.ReactRouter=e(t.React)}(this,function(t){return function(t){function e(r){if(n[r])return n[r].e... |
ajax/libs/angular-data/1.5.1/angular-data.js | jasonpang/cdnjs | /**
* @author Jason Dobry <jason.dobry@gmail.com>
* @file angular-data.js
* @version 1.5.1 - Homepage <http://angular-data.pseudobry.com/>
* @copyright (c) 2014 Jason Dobry <https://github.com/jmdobry/>
* @license MIT <https://github.com/jmdobry/angular-data/blob/master/LICENSE>
*
* @overview Data store for Angular.js.... |
front_end/src/pages/Tiles/TileViewPage.js | ncloudioj/splice | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
import { updateDocTitle, pageVisit, displayMessage, shownMessage } from 'actions/App/AppActions';
import { updateTile } from 'actions/Tiles/TileActions';
import { fetchHierarchy } from 'actions/App/... |
src/routes/topicPage/index.js | xugy0926/shuoriyu | import React from 'react';
import TopicPage from './TopicPage';
import fetch from '../../core/fetch';
import { host } from '../../config';
import * as topicService from '../../services/topicService';
export default {
path: '/topic/:tid',
async action(context, {tid}) {
return <TopicPage topicId={tid}/>;
},
... |
app/components/shared/BuildStatusDescription.js | fotinakis/buildkite-frontend | import React from 'react';
import PropTypes from 'prop-types';
import { minute } from 'metrick/duration';
import { getDateString, getRelativeDateString } from '../../lib/date';
import { buildStatus } from '../../lib/builds';
class BuildStatusDescription extends React.PureComponent {
static propTypes = {
build: P... |
src/Parser/MistweaverMonk/Modules/Traits/InfusionOfLife.js | mwwscott0/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import SpellLink from 'common/SpellLink';
import { formatPercentage } from 'common/format';
import Module from 'Parser/Core/Module';
import calculateEffectiveHealing from 'Parser/Core/calculateEffectiveHealing';
i... |
node_modules/react-native/local-cli/templates/HelloNavigation/components/ListItem.js | solium/swift-react-native-hybrid | 'use strict';
import React, { Component } from 'react';
import {
Platform,
StyleSheet,
Text,
TouchableHighlight,
TouchableNativeFeedback,
View,
} from 'react-native';
/**
* Renders the right type of Touchable for the list item, based on platform.
*/
const Touchable = ({onPress, children}) => {
const c... |
ajax/libs/vue/0.12.13/vue.js | 2947721120/cdnjs | /*!
* Vue.js v0.12.13
* (c) 2015 Evan You
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
else if(typ... |
src/Parser/DemonHunter/Havoc/Modules/Items/Tier21_4set.js | hasseboulen/WoWAnalyzer | import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
import SpellIcon from 'common/SpellIcon';
import AbilityTracker from 'Parser/Core/Modules/AbilityTracker';
impo... |
node_modules/grunt-jscs/node_modules/jscs/node_modules/babel-core/lib/transformation/pipeline.js | squarewave24/rafalbuch.com | "use strict";
exports.__esModule = true;
// istanbul ignore next
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
// istanbul ignore next
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a cl... |
presentation/game/components/GridContainer.js | haampie/2048-react-slides | import React, { Component } from 'react';
export default class GridContainer extends Component {
render() {
return (
<div className="grid-container">
<div className="grid-row">
<div className="grid-cell"></div>
<div className="grid-cell"></div>
<div className="grid-cel... |
app/components/MarketingFlag.js | Byte-Code/lm-digital-store-private-test | import React, { Component } from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import glamorous from 'glamorous';
import MarketingBadge from './MarketingBadge';
import { getPromotions, filterPromotions } from '../utils/marketingUtils';
const Wrapper = glamorous.div({
display: 'flex',
justif... |
internals/templates/app.js | SenyOrg/kekecmed-frontend | /**
* app.js
*
* This is the entry file for the application, only setup and boilerplate
* code.
*/
import 'babel-polyfill';
/* eslint-disable import/no-unresolved, import/extensions */
// Load the manifest.json file and the .htaccess file
import '!file?name=[name].[ext]!./manifest.json';
import 'file?name=[name].... |
modules/ScrollManagementMixin.js | jeffreywescott/react-router | import React from 'react';
import { canUseDOM, setWindowScrollPosition } from './DOMUtils';
import NavigationTypes from './NavigationTypes';
var { func } = React.PropTypes;
function getCommonAncestors(branch, otherBranch) {
return branch.filter(route => otherBranch.indexOf(route) !== -1);
}
function shouldUpdateSc... |
ajax/libs/handsontable/0.16.1/handsontable.full.js | hanbyul-here/cdnjs | /*!
* Handsontable 0.16.1
* Handsontable is a JavaScript library for editable tables with basic copy-paste compatibility with Excel and Google Docs
*
* Copyright (c) 2012-2014 Marcin Warpechowski
* Copyright 2015 Handsoncode sp. z o.o. <hello@handsontable.com>
* Licensed under the MIT license.
* http://handsonta... |
desktop-application/node_modules/react-bootstrap/lib/Col.js | santosh-surya/pcb-cnc-machine | 'use strict';
var _extends = require('babel-runtime/helpers/extends')['default'];
var _Object$keys = require('babel-runtime/core-js/object/keys')['default'];
var _interopRequireDefault = require('babel-runtime/helpers/interop-require-default')['default'];
exports.__esModule = true;
var _react = require('react');
... |
src/js/components/icons/Spinning.js | ieugen/grommet | // (C) Copyright 2014-2015 Hewlett-Packard Development Company, L.P.
var React = require('react');
var CLASS_ROOT = "icon-spinning";
var Spinning = React.createClass({
render: function() {
var classes = [CLASS_ROOT];
if (this.props.small) {
classes.push(CLASS_ROOT + "--small");
}
if (this.pr... |
frontend/src/app/containers/ExperimentPage/IncompatibleAddons.js | flodolo/testpilot | // @flow
import React, { Component } from "react";
import { Localized } from "fluent-react/compat";
import "./index.scss";
import type { IncompatibleAddonsProps } from "./types";
export default class IncompatibleAddons extends Component<IncompatibleAddonsProps> {
render() {
const { incompatible } = this.props... |
docs/app/Examples/elements/Button/GroupVariations/ButtonExampleGroupLabeledIcon.js | koenvg/Semantic-UI-React | import React from 'react'
import { Button } from 'semantic-ui-react'
const ButtonExampleGroupLabeledIcon = () => (
<Button.Group labeled>
<Button icon='play' content='Play' />
<Button icon='pause' content='Pause' />
<Button icon='shuffle' content='Shuffle' />
</Button.Group>
)
export default ButtonExa... |
app/components/AuthBox/index.js | jshumakerpruitt/ContactsClient | /**
*
* AuthBox
*
* state = { signIn: Boolean }
* shows a signin or a sign up form
*/
import React from 'react';
import { Flex } from 'reflexbox';
import {
Heading,
} from 'rebass';
import SignInForm from 'components/SignInForm';
import SignUpForm from 'components/SignUpForm';
export class AuthBox extends Rea... |
scripts/jest/preprocessor.js | xiaxuewuhen001/react | 'use strict';
var path = require('path');
var babel = require('babel');
var coffee = require('coffee-script');
var tsPreprocessor = require('./ts-preprocessor');
// This assumes the module map has been built. This might not be safe.
// We should consider consuming this from a built fbjs module from npm.
var moduleM... |
fixtures/nesting/src/legacy/Greeting.js | yungsters/react | import React from 'react';
import {Component} from 'react';
import {findDOMNode} from 'react-dom';
import {Link} from 'react-router-dom';
import {connect} from 'react-redux';
import {store} from '../store';
import ThemeContext from './shared/ThemeContext';
import Clock from './shared/Clock';
store.subscribe(() => {
... |
src/components/Layout/Layout.js | taekungngamonosus/monoreact | /**
* React Starter Kit (https://www.reactstarterkit.com/)
*
* Copyright © 2014-present Kriasoft, LLC. All rights reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE.txt file in the root directory of this source tree.
*/
import React from 'react';
import PropTypes from 'prop-... |
O3658/04 Building UX components with add-in model/Demos/ModifyUserExperience/ModifyUserExperienceWeb/Scripts/jquery-1.9.1.js | VesaJuvonen/TrainingContent | /* NUGET: BEGIN LICENSE TEXT
jQuery v1.9.1
Microsoft grants you the right to use these script files for the sole purpose of either: (i) interacting through your browser with the Microsoft website, subject to the website's terms of use; or (ii) using the files as included with a Microsoft product subject to that produc... |
src/components/record_list_item.js | xuan6/admin_dashboard_local_dev | import React from 'react';
import {ListGroupItem} from 'react-bootstrap';
const RecordListItem = ({record,action,tab}) => {
var date = record.time;
var recordinfo = record.record;
var values = recordinfo.valuecategory;
var stringlength = recordinfo.valuecategory.length;
var valuesStr = values.slice... |
ajax/libs/jquery/1.11.0/jquery.js | hcxiong/cdnjs | /*!
* jQuery JavaScript Library v1.11.0
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-01-23T21:02Z
*/
(function( global, factory ) {
if ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.