path stringlengths 5 300 | repo_name stringlengths 6 76 | content stringlengths 26 1.05M |
|---|---|---|
imoocstudy/vue-cli/fungleo/vuedemo/static/js/jquery-1.8.3.js | xixizhang96/Example | /*! jQuery v1.8.3 jquery.com | jquery.org/license */
(function(e,t){function _(e){var t=M[e]={};return v.each(e.split(y),function(e,n){t[n]=!0}),t}function H(e,n,r){if(r===t&&e.nodeType===1){var i="data-"+n.replace(P,"-$1").toLowerCase();r=e.getAttribute(i);if(typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r===... |
app/components/common/ComponentConnectorFactory.js | ariel-zplinux/data-extractor-mern | import React from 'react';
import AppDispatcher from '../../dispatcher/AppDispatcher';
export class ComponentConnectorFactory {
connect(options) {
const {component: Component, store: Store, name: name} = options;
const storeInstance = new Store();
AppDispatcher.register(storeInsta... |
test/TabbedAreaSpec.js | zerkms/react-bootstrap | import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import TabbedArea from '../src/TabbedArea';
import NavItem from '../src/NavItem';
import TabPane from '../src/TabPane';
import ValidComponentChildren from '../src/utils/ValidComponentChildren';
describe('TabbedArea', function () {
it('... |
ajax/libs/yui/3.1.1/event-custom/event-custom.js | dhenson02/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
app/components/AddCharacter.js | xdrt81y/newedenfaces-react | import React from 'react';
import AddCharacterStore from '../stores/AddCharacterStore';
import AddCharacterActions from '../actions/AddCharacterActions';
class AddCharacter extends React.Component {
constructor(props) {
super(props);
this.state = AddCharacterStore.getState();
this.onChange = this.onChang... |
static/node_modules/core-js/library/modules/es6.promise.js | awsmsrc/gophergalasubs | 'use strict';
var $ = require('./$')
, LIBRARY = require('./$.library')
, global = require('./$.global')
, ctx = require('./$.ctx')
, classof = require('./$.classof')
, $export = require('./$.export')
, isObject = require('./$.is-object')
, anObject = require('./$.an-objec... |
packages/material-ui-icons/src/ColorLens.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8zm-5.5 9c-.83 0-1.5-... |
packages/react-router/modules/__tests__/withRouter-test.js | rafrex/react-router | import expect from 'expect'
import React from 'react'
import ReactDOM from 'react-dom'
import createMemoryHistory from 'history/createMemoryHistory'
import Router from '../Router'
import Route from '../Route'
import withRouter from '../withRouter'
describe('withRouter', () => {
const div = document.createElement('di... |
admin/client/App/shared/Popout/PopoutListItem.js | creynders/keystone | /**
* Render a popout list item
*/
import React from 'react';
import blacklist from 'blacklist';
import classnames from 'classnames';
var PopoutListItem = React.createClass({
displayName: 'PopoutListItem',
propTypes: {
icon: React.PropTypes.string,
iconHover: React.PropTypes.string,
isSelected: React.PropTy... |
js/components/ThreadListItem.js | transedward/relay-chat | /**
* This file is provided by Facebook for testing and evaluation purposes
* only. Facebook reserves all rights not expressly granted.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICUL... |
Examples/UIExplorer/js/UIExplorerButton.js | Purii/react-native | /**
* Copyright (c) 2013-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.
*
* The examp... |
ajax/libs/vega/3.0.0-rc7/vega.min.js | him2him2/cdnjs | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.vega=t.vega||{})}(this,function(t){"use strict";function e(t){return null==t?null:t.fname}function n(t){return null==t?null:t.fields}function r(t){return Pv(t)?"["+t.map(r)+"]":... |
public/scripts/containers/App.js | Ohems/watodo | import 'react-select/dist/react-select.css';
import React from 'react';
import { Switch, Route, withRouter } from 'react-router-dom';
import Select from 'react-select';
import Home from './Home';
import UserList from './UserList';
import UserProfile from './UserProfile';
import ToolbarButton from '../components/Tool... |
modules/__tests__/isActive-test.js | davertron/react-router | /*eslint-env mocha */
import expect from 'expect'
import React from 'react'
import createHistory from 'history/lib/createMemoryHistory'
import IndexRoute from '../IndexRoute'
import Router from '../Router'
import Route from '../Route'
describe('isActive', function () {
let node
beforeEach(function () {
node =... |
src/components/Page.js | jasongforbes/dorian-js | import React from 'react';
const Page = function render(props) {
const page = props.getPage(props.page);
return (
<div
className="page content-card"
dangerouslySetInnerHTML={{ __html: page.body }} // eslint-disable-line react/no-danger
/>
);
};
Page.propTypes = {
page: React.PropTypes.stri... |
src/renderers/dom/client/syntheticEvents/SyntheticEvent.js | zhangwei001/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 ... |
fields/types/number/NumberFilter.js | mikaoelitiana/keystone | import React from 'react';
import ReactDOM from 'react-dom';
import { FormField, FormInput, FormRow, FormSelect } from 'elemental';
const CONTROL_OPTIONS = [
{ label: 'Exactly', value: 'equals' },
{ label: 'Greater Than', value: 'gt' },
{ label: 'Less Than', value: 'lt' },
{ label: 'Between', value: 'between' }
]... |
src/Stepper/Step.spec.js | mmrtnz/material-ui | /* eslint-env mocha */
import React from 'react';
import {shallow} from 'enzyme';
import {assert} from 'chai';
import Step from './Step';
import getMuiTheme from '../styles/getMuiTheme';
describe('<Step />', () => {
const muiTheme = getMuiTheme();
const shallowWithContext = (node, context = {}) => {
return sha... |
ajax/libs/socket.io/2.1.1/socket.io.dev.js | sashberd/cdnjs | /*!
* Socket.IO v2.1.1
* (c) 2014-2018 Guillermo Rauch
* 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([], facto... |
app/components/graphs/LineChart.js | davidychow87/etf | //This method will use d3 to render
//pass in ref to a node
//data = array of objects { symbol: MSFT, type: series, values: [{date: "2017=01=41" ...Other data}] }
import React, { Component } from 'react';
import * as d3 from 'd3';
import PropTypes from 'prop-types';
export default class LineChart extends Component {
... |
src/components/App.js | estkin/boilerplate | import React from 'react';
import { Link } from 'react-router';
class App extends React.Component {
render() {
return (
<div className="welcome">
<h1>My app</h1>
<nav>
<li><Link to="/home">Home</Link></li>
<li><Link to="/test">Test</Link></li>
<li><Link to="/no... |
src/svg-icons/action/verified-user.js | hwo411/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionVerifiedUser = (props) => (
<SvgIcon {...props}>
<path d="M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z"/>
</SvgIcon>
);
ActionVerif... |
server.js | hojberg/mastering-react | import express from 'express';
import fs from 'fs';
import { Router } from 'react-router';
import Location from 'react-router/lib/location';
import routes from './src/routes';
import ReactDOMServer from 'react-dom/server';
import React from 'react';
import Iso from 'iso';
import alt from './src/alt';
let app = express... |
ajax/libs/victory/0.4.1/victory.min.js | honestree/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.Victory=e(require("react")):t.Victory=e(t.React)}(this,function(__WEBPACK_EXTERNAL_MODULE_47__){return function(t){function e(r){... |
client/components/display-paintingDropdown.js | VaRt-io/V-aRt | import React from 'react';
const memory = 'http://www.artnewsblog.com/wp-content/uploads/2004/09/the-persistence-of-time.jpg';
const redFuji = 'https://data.ukiyo-e.org/aic/images/99027_512658.jpg';
const korea = 'https://upload.wikimedia.org/wikipedia/en/6/63/Picasso_Massacre_in_Korea.jpg';
const starry = 'https://ww... |
client/scripts/components/user/sidebar/index.js | kuali/research-coi | /*
The Conflict of Interest (COI) module of Kuali Research
Copyright © 2005-2016 Kuali, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
Lic... |
web/dist/v2.2.2.js | longze/my-cellar | !function(e){function t(i){if(n[i])return n[i].exports;var r=n[i]={exports:{},id:i,loaded:!1};return e[i].call(r.exports,r,r.exports,t),r.loaded=!0,r.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){var i=n(1),r=n(2);n(3),n(7);var o=n(9),s=n(10),a=n(17),l=document.body,c=i.extend({el:function(){return ... |
js/components/home/placeDetails.js | crod93/googlePlacesEx-react-native | 'use strict';
import React, { Component } from 'react';
import {Modal} from 'react-native';
import { connect } from 'react-redux';
import { openDrawer } from '../../actions/drawer';
import { replaceRoute } from '../../actions/route';
import { Container, Header, Title, Content, View, Text, Button, Icon} from 'native-ba... |
blueprints/view/files/__root__/views/__name__View/__name__View.js | andest01/react-timeline | import React from 'react'
type Props = {
};
export class <%= pascalEntityName %> extends React.Component {
props: Props;
render () {
return (
<div></div>
)
}
}
export default <%= pascalEntityName %>
|
app/components/Table/Table.js | arnef/ligatool-hamburg | import React from 'react';
import { View } from 'react-native';
import { connect } from 'react-redux';
import { Container, StaticListHeader, Text, Separator } from '../../components';
import * as LeaguesActions from '../../redux/modules/leagues';
import {
getNavigationStateParams,
navigate,
} from '../../redux/modu... |
RNAPPDemo/ReactComponent/node_modules/react-native/local-cli/generator/templates/index.ios.js | xuchengcheng/RNAPPDemo | /**
* Sample React Native App
* https://github.com/facebook/react-native
* @flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
class <%= name %> extends Component {
render() {
return (
<View style={styles.container}>
<T... |
wordpress/wp-content/themes/venturariver/node_modules/rx/dist/rx.lite.compat.js | brianr852/ventura-river | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
ajax/libs/yui/3.1.1/event-custom/event-custom-debug.js | tonytomov/cdnjs | YUI.add('event-custom-base', function(Y) {
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module event-custom
*/
Y.Env.evt = {
handles: {},
plugins: {}
};
/**
* Custom event engine, DOM event listener abstraction layer, synthetic DOM
* events.
* @module e... |
src/Parser/Core/Modules/Features/Images/Mana.js | hasseboulen/WoWAnalyzer | import React from 'react';
const icon = props => (
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="16 16 32 32" {...props}>
<g>
<path d="M44.584,43.126l-7.489-11.73v-4.722h0.425c1.753,0,3.335-1.432,3.335-3.29v-1.35 c0-1.857-1.582-3.328-3.335-3.328H26.736c-1.753,0-3.428,1.471-3.428,3.328v1.... |
client/pages/NotFound/index.js | kreativgebiet/kickup-react | // @flow
import React from 'react'
import Helmet from 'react-helmet'
import Button from 'components/Button'
import { Wrapper } from './styles'
export default function NotFound(): React$Node {
return (
<Wrapper>
<Helmet title="About" />
<h2>Not Found</h2>
<Button to="/">Go back home</Button>
... |
src/sesh_safe/index.js | neffbirkley/everything | import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer as HotReload } from 'react-hot-loader';
import { BrowserRouter as Router } from 'react-router-dom';
import injectTapEventPlugin from 'react-tap-event-plugin';
import { Provider } from 'react-redux';
import MuiThemeProvider from 'material... |
src/assets/scripts/components/Graph/GraphContainer.js | Eastern-Research-Group/epa-digital-services-rfi-js | import React, { Component } from 'react';
import { TextInput } from '../input/TextInput';
import EchoServerActionCreators from '../../actions/EchoServerActionCreators';
import AmbientEmissionActionCreators from '../../actions/AmbientEmissionActionCreators';
import AmbientEmissionStore from '../../stores/AmbientEmission... |
packages/material-ui-icons/src/DescriptionOutlined.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M8 16h8v2H8zm0-4h8v2H8zm6-10H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z" />
, 'DescriptionOutlined');
|
ajax/libs/rxjs/4.0.8/rx.lite.compat.js | humbletim/cdnjs | // Copyright (c) Microsoft, All rights reserved. See License.txt in the project root for license information.
;(function (undefined) {
var objectTypes = {
'function': true,
'object': true
};
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
var freeExpor... |
assets/javascripts/kitten/components/graphics/icons/envelope-icon/index.js | KissKissBankBank/kitten | import React from 'react'
import PropTypes from 'prop-types'
export const EnvelopeIcon = ({ color, title, ...props }) => (
<svg
width="17"
height="14"
viewBox="0 0 17 14"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
{title && <title>{title}</title>}
<path
d="M14... |
src/containers/Interfaces/FinishSession.js | codaco/Network-Canvas | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { connect } from 'react-redux';
import { Button } from '@codaco/ui';
import { Toggle } from '@codaco/ui/lib/components/Fields';
import { actionCreators as sessionActions } from '../../ducks/modules/session';
import { actionCreators as... |
src/components/issue-list-item.component.js | dyesseyumba/git-point | import React from 'react';
import { StyleSheet, TouchableHighlight, View, Text } from 'react-native';
import { ListItem, Icon } from 'react-native-elements';
import { colors, fonts, normalize } from 'config';
import { translate, relativeTimeToNow } from 'utils';
type Props = {
type: string,
issue: Object,
navig... |
src/components/GlobalFooter/index.js | ascrutae/sky-walking-ui | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may... |
examples/transitions/app.js | joeyates/react-router | import React from 'react';
import { Router, Route, Link, History, Lifecycle } from 'react-router';
var App = React.createClass({
render() {
return (
<div>
<ul>
<li><Link to="/dashboard">Dashboard</Link></li>
<li><Link to="/form">Form</Link></li>
</ul>
{this.props... |
src/scenes/Home/_/Logo.js | constelation/native-starter | // @flow
// Imports {{{
import { bind } from 'decko'
import Animate_ from 'constelation-animate_'
import Event_ from 'constelation-event_'
import Image from 'constelation-image'
import React from 'react'
// }}}
export default class Logo extends React.Component<void, any, void> {
node: Animate_
rotating: boolean
... |
client/src/reader/components/Toc/TocNode/styles.js | ManifoldScholar/manifold | import styled from "@emotion/styled";
import { Link } from "react-router-dom";
import { tocDrawer } from "../styles";
import { defaultTransitionProps } from "theme/styles/mixins";
import { transientOptions } from "helpers/emotionHelpers";
const toggleWidth = "24px";
const togglePadding = "12px";
const inlineEndPadding... |
protected/modules1/yupe/extensions/booster/assets/js/jqslider/jQRangeSlider-min.js | itrustam/cupon | /*
jQRangeSlider
Copyright (C) Guillaume Gautreau 2012
Dual licensed under the MIT or GPL Version 2 licenses.
*/
(function(c){c.widget("ui.rangeSliderMouseTouch",c.ui.mouse,{_mouseInit:function(){var a=this;c.ui.mouse.prototype._mouseInit.apply(this);this._mouseDownEvent=!1;this.element.bind("touchstart."+this.widge... |
app/react-native-server/src/client/manager/components/PreviewHelp.js | storybooks/react-storybook | import React from 'react';
const styles = {
main: {
margin: 15,
maxWidth: 600,
lineHeight: 1.4,
fontFamily: '"Helvetica Neue", Helvetica, "Segoe UI", Arial, freesans, sans-serif',
},
code: {
fontSize: 15,
fontWeight: 600,
padding: '2px 5px',
border: '1px solid #eae9e9',
borde... |
frontend/src/app/cmdb/host/index.js | the-invoice/nab | import React, { Component } from 'react';
import { Link } from 'react-router';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { pushPath } from 'redux-simple-router';
import { Route, IndexRoute } from 'react-router';
import { createSelector } from 'reselect';
import * as cmdb... |
vide/lib_js/jquery.js | mambax7/vide | /*! 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... |
frontend/casesearch/SearchComponent.js | datoszs/czech-lawyers | import React from 'react';
import PropTypes from 'prop-types';
import {Field} from 'redux-form/immutable';
import {SearchForm, SimpleFormLayout} from '../components';
import {InputText} from '../components/form';
const SearchComponent = ({handleSubmit, msgSearch, msgPlaceholder}) => (
<SearchForm onSubmit={handleS... |
src/containers/Asians/_components/BreakRoundMotions/index.js | westoncolemanl/tabbr-web | import React from 'react'
import { connect } from 'react-redux'
import Responsive from 'react-responsive'
import LargeMotions from './LargeMotions'
import SmallMotions from './SmallMotions'
import returnMotionCount from './returnMotionCount'
export default connect(mapStateToProps)(({
breakRound,
breakRooms,
br... |
public/js/cat_source/es6/components/languageSelector/LanguageSelectorSearch.js | matecat/MateCat | import React from 'react'
import TagsInput from 'react-tagsinput'
import Header from '../header/Header'
class LanguageSelectorSearch extends React.Component {
constructor(props) {
super(props)
}
state = {
highlightDelete: false,
}
componentDidMount() {
document.addEventListener('mousedown', ()... |
src/components/OrderInfo/OrderInfo.js | unam3/oshop | import React from 'react';
export default ({text}) => (
<div className="order-info">
{text}
</div>
);
|
ajax/libs/analytics.js/2.8.21/analytics.js | emmansun/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){
/**
* Global
... |
example/__tests__/App-test.js | rt2zz/react-native-contacts | /**
* @format
*/
import 'react-native';
import React from 'react';
import App from '../App';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
renderer.create(<App />);
});
|
app/javascript/mastodon/components/edited_timestamp/index.js | masto-donte-com-br/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { FormattedMessage, injectIntl } from 'react-intl';
import Icon from 'mastodon/components/icon';
import DropdownMenu from './containers/dropdown_menu_container';
import { connect } from 'react-redux';
import { openModal } from 'mastodon/actions/modal... |
src/components/PlannerItem/index.js | instructure/canvas-planner | /*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... |
Mr.Mining/MikeTheMiner/dist/Santas_helpers/Sia_wallet/resources/app/plugins/Files/js/components/uploadlist.js | patel344/Mr.Miner | import PropTypes from 'prop-types'
import React from 'react'
import TransferList from './transferlist.js'
import { List } from 'immutable'
const UploadList = ({uploads, onUploadClick}) => (
<div className="uploads">
<h3> Uploads </h3>
<TransferList transfers={uploads} onTransferClick={onUploadClick} />
</div>
)
... |
dev/main.js | bhargav175/react-layouts | import React from 'react';
import ReactDOM from 'react-dom';
import ReactDOMServer from 'react-dom/server';
import Layouts from '../src/index';
import babel_polyfill from 'babel-polyfill';
import reactElementToJSXString from 'react-element-to-jsx-string';
import reactToJsx from 'react-to-jsx';
require('./style.scss');... |
node_modules/react-bootstrap/es/ModalDialog.js | FoxMessenger/nyt-react | 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 ... |
src/mui/list/FilterForm.spec.js | RestUI/rest-ui | import assert from 'assert';
import { render } from 'enzyme';
import React from 'react';
import { createStore } from 'redux';
import { Provider } from 'react-redux';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider';
import { TranslationProvider... |
Website/Website/Scripts/jquery-1.10.2.min.js | iliantrifonov/to-delete | /* NUGET: BEGIN LICENSE TEXT
*
* 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 or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
source/views/sis/course-search/detail/index.js | carls-app/carls | // @flow
import React from 'react'
import {StyleSheet, Text} from 'react-native'
import type {CourseType} from '../../../../lib/course-search'
import glamorous from 'glamorous-native'
import {Badge} from '../../../building-hours/detail/badge'
import {TableView, Section, Cell} from 'react-native-tableview-simple'
impor... |
src/app.js | RaitoBezarius/react-spawn | import React from 'react';
import {render} from 'react-dom';
import {Router} from 'react-router';
import Routes from 'routes';
import createHashHistory from 'history/lib/createHashHistory';
const history = createHashHistory();
render(
<Router
routes={Routes}
history={history}
/>, document.getElementById('... |
ajax/libs/analytics.js/1.5.5/analytics.js | alexmojaki/cdnjs | ;(function(){
/**
* Require the given path.
*
* @param {String} path
* @return {Object} exports
* @api public
*/
function require(path, parent, orig) {
var resolved = require.resolve(path);
// lookup failed
if (null == resolved) {
orig = orig || path;
parent = parent || 'root';
var err = new ... |
themes/sample/files/static/js/jquery-1.9.0.min.js | Interscope/ustudio-theme | /*! jQuery v1.9.0 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license */(function(e,t){"use strict";function n(e){var t=e.length,n=st.type(e);return st.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||"function"!==n&&(0===t||"number"==typeof t&&t>0&&t-1 in e)}function r(e){var t=Tt[e]={};return st.each(e.matc... |
app/containers/NotFoundPage/index.js | rahsheen/scalable-react-app | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a neccessity for you then you can refactor i... |
DigipostClientLibWebapp/Scripts/jquery-1.10.2.js | digipost/digipost-client-lib-webapp | /* NUGET: BEGIN LICENSE TEXT
*
* 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 or online service, subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft p... |
src/svg-icons/image/brightness-6.js | ngbrown/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageBrightness6 = (props) => (
<SvgIcon {...props}>
<path d="M20 15.31L23.31 12 20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69zM12 18V6c3.31 0 6 2.69 6 6s-2.69 6-6 6z"/>... |
tech_stack/App.js | sgcharameli/ReactNativeAndReduxCourse | import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<Text>Changes you make will automatically reload... |
src/components/grid.js | boonier/piano-rolla-two | import React from 'react';
import GridLines from './gridlines';
import Notes from './notes';
// Grid
//// GridLines
//// NoteData
////// Note
////// Note
export default class Grid extends React.Component {
constructor(props) {
super(props);
this.state = this.props.state;
this.viewBox = [-0.5, -0.5, this.pro... |
tests/lib/rules/indent.js | Aladdin-ADD/eslint | /**
* @fileoverview This option sets a specific tab width for your code
* @author Dmitriy Shekhovtsov
* @author Gyandeep Singh
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------... |
ajax/libs/yui/3.9.0pr2/datatable-core/datatable-core-debug.js | Olical/cdnjs | YUI.add('datatable-core', function (Y, NAME) {
/**
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.isO... |
gadget-system-teamwork/src/components/gadgets/CreateCommentPage.js | TeodorDimitrov89/JS-Web-Teamwork-2017 | import React from 'react'
import CreateCommentForm from './CreateCommentForm'
import FormHelpers from '../common/forms/FormHelpers'
import ValidateHelpers from '../common/ValidateHelpers'
import commentActions from '../../actions/CommentActions'
import commentStore from '../../stores/CommentStore'
import toastr... |
ajax/libs/orb/1.0.5/orb.min.js | upgle/cdnjs | /**
* orb v1.0.5, Pivot grid javascript library.
*
* Copyright (c) 2014 Najmeddine Nouri <devnajm@gmail.com>.
*
* @version v1.0.5
* @link http://nnajm.github.io/orb/
* @license MIT
*/
"use strict";!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof... |
__tests__/Code/index.js | abouthiroppy/scuba | import React from 'react';
import { mount } from 'enzyme';
import { Code } from '../../src';
describe('Code component', () => {
const createDOM = (props = {}) => {
return mount(
<Code {...props}>
{props.children}
</Code>
);
};
it('should render self and subcomponents', () => {
co... |
src/components/FullElevation/FullElevation.js | abkfenris/inferno-react | import React from 'react'
import {LineChart} from 'react-d3-basic'
type Props = {
geojson: Object
};
var width = 600
var height = 200
var margins = {
left: 50,
right: 10,
top: 10,
bottom: 30
}
var chartSeries = [
{
field: 'y',
name: 'Elevation',
color: '#ff7f0e'
}
]
var x = function (d) {
... |
demo/src/components/Row.js | RoyalIcing/react-organism | import React from 'react'
const style = {
display: 'flex',
flexDirection: 'row'
}
export default function Row({
children
}) {
return (
<div style={ style } children={ children } />
)
} |
src/components/common/svg-icons/content/low-priority.js | abzfarah/Pearson.NAPLAN.GnomeH | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ContentLowPriority = (props) => (
<SvgIcon {...props}>
<path d="M14 5h8v2h-8zm0 5.5h8v2h-8zm0 5.5h8v2h-8zM2 11.5C2 15.08 4.92 18 8.5 18H9v2l3-3-3-3v2h-.5C6.02 16 4 13.98 4 11.5S6.02 7 8.5 7H12V5H8.5C4.92 5 2 7.... |
app/src/common-styles.js | buzzfeed-openlab/shit-vcs-say |
'use strict';
import React, {
StyleSheet,
Dimensions,
} from 'react-native';
import Constants from './constants.js';
const CommonStyles = StyleSheet.create({
screenBackground: {
backgroundColor:'#333333',
},
advanceButton: {
backgroundColor: '#27ae60',
height: 32,
... |
src/components/onboarding/steps/Decline.js | golemfactory/golem-electron | import React from 'react';
import Lottie from 'react-lottie';
import animData from './../../../assets/anims/onboarding/terms-are-you-sure.json'
const defaultOptions = {
loop: false,
autoplay: true,
animationData: animData,
rendererSettings: {
preserveAspectRatio: 'xMidYMid slice'
}
};
ex... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | beardandthebeanie/projects | import React from 'react';
// It's important to not define HelloWorld component right in this file
// because in that case it will do full page reload on change
import HelloWorld from './HelloWorld.jsx';
React.render(<HelloWorld />, document.getElementById('react-root'));
|
ajax/libs/react-redux/4.4.0/react-redux.min.js | BitsyCode/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("redux")):"function"==typeof define&&define.amd?define(["react","redux"],e):"object"==typeof exports?exports.ReactRedux=e(require("react"),require("redux")):t.ReactRedux=e(t.React,t.Redux)}(this,function(t,e){retu... |
src/routes/Projects/components/Projects.js | larsdolvik/portfolio | import React from 'react'
// import DuckImage from '../assets/Duck.jpg'
import './Projects.scss'
export const Projects = () => (
<div>
<h3>My projects</h3>
<div className="pageContainer">
<p>
Lorem Ipsum is unattractive, both inside and out. I fully understand why it’s former users left it for ... |
src/dumb/editor/custom_field/form_templates/GenericTextFormTemplate.js | jeckhummer/wf-constructor | import React from 'react';
import {Form} from "semantic-ui-react";
export const GenericTextFormTemplate = ({
label,
onLabelChange,
}) => {
return (
<div>
<Form.Field>
<Form.Input
label="Label"
value={label}
onCh... |
packages/es-components/src/components/patterns/callToAction/CallToAction.js | TWExchangeSolutions/es-components | import React from 'react';
import PropTypes from 'prop-types';
import styled from 'styled-components';
import Notification from '../../containers/notification/Notification';
import { getCallToActionChildren } from './getCallToActionChildren';
const Container = styled.div`
flex-basis: 100%;
`;
const CallToActionCon... |
src/Pages/Films.js | neilD2/neilD2.github.io | import React, { Component } from 'react';
import MovieList from '../store/MovieList';
class Films extends Component {
render() {
return (
<div className="container-fluid">
<p>
Here we have a top ten of historical films list. Please use our search feature to search ov... |
js/setup.js | phamngoclinh/PetOnline_vs2 |
import React, { Component } from 'react';
import { Provider } from 'react-redux';
import App from './App';
import configureStore from './configureStore';
function setup():React.Component {
class Root extends Component {
constructor() {
super();
this.state = {
isLoading: false,
stor... |
frontend/src/index.js | dimkarakostas/rupture | import React from 'react'
import ReactDOM from 'react-dom'
import { Router, Route, IndexRoute, browserHistory } from 'react-router';
import Layout from './pages/Layout';
import NetworkOverview from './pages/NetworkOverview';
import AttackConfig from './pages/AttackConfig';
import AttackInspection from './pages/AttackI... |
stories/Calendar.stories.js | jquense/react-big-calendar | import React from 'react'
import { action } from '@storybook/addon-actions'
import demoEvents from './resources/events'
import { Calendar } from '../src'
import { events, Calendar as BaseCalendar, Views } from './helpers'
import createEvents from './helpers/createEvents'
import customComponents from './resources/cus... |
modules/Repos.js | marquesarthur/learning_react | import React from 'react'
import NavLink from './NavLink'
export default React.createClass({
render() {
return (
<div>
<h2>Repos</h2>
<ul>
<li><NavLink to="/repos/reactjs/react-router">React Router</NavLink></li>
<li><NavLink to="/repos/facebook/react">React</NavLink></l... |
packages/yam-vr/components/GroupFeed/index.vr.js | unindented/little-yam | import React from 'react'
import {View} from 'react-vr'
import {autobind} from 'core-decorators'
import Spinner from '../Spinner'
import Button from '../Button'
import Threads from '../Threads'
export default class GroupFeed extends React.PureComponent {
static propTypes = {
status: React.PropTypes.string,
f... |
ajax/libs/highcharts/5.0.7/js/highmaps.src.js | seogi1004/cdnjs | /**
* @license Highmaps JS v5.0.7 (2017-01-17)
*
* (c) 2011-2016 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(root, factory) {
if (typeof module === 'object' && module.exports) {
module.exports = root.document ?
factory(root) :
factory;
... |
src/components/tools/ToolsHomeContainer.js | mitmedialab/MediaCloud-Web-Tools | import PropTypes from 'prop-types';
import React from 'react';
import { connect } from 'react-redux';
import { Grid, Row, Col } from 'react-flexbox-grid/lib';
import { FormattedMessage, injectIntl } from 'react-intl';
import messages from '../../resources/messages';
import { urlToExplorer, urlToTopicMapper, urlToSource... |
ajax/libs/react-intl/1.2.1/react-intl-with-locales.js | kennynaoh/cdnjs | (function() {
"use strict";
var $$utils$$hop = Object.prototype.hasOwnProperty;
function $$utils$$extend(obj) {
var sources = Array.prototype.slice.call(arguments, 1),
i, len, source, key;
for (i = 0, len = sources.length; i < len; i += 1) {
source = sources[i];
... |
src/components/followers/followers_list.js | carlosfh87/KN_REACT_API | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import { showLoader } from '../../actions/index';
import FollowerListItem from './followers_list_item';
class FollowersList extends Component{
constructor(props){
super(props);
}... |
LogFileReader/log-viewer-fe/app/containers/NotFoundPage/index.js | luungoc2005/LogFileReader | /**
* NotFoundPage
*
* This is the page we show when the user visits a url that doesn't have a route
*
* NOTE: while this component should technically be a stateless functional
* component (SFC), hot reloading does not currently support SFCs. If hot
* reloading is not a necessity for you then you can refactor it... |
pkg/ui/src/i18n/help-text/index.js | matt-deboer/kuill | import React from 'react'
import IconButton from 'material-ui/IconButton'
import IconHelp from 'material-ui/svg-icons/action/help-outline'
import en from './en'
var localeMap = {en: en}
async function textForLocale(locale) {
if (locale in localeMap) {
return localeMap[locale]
} else {
// code-split loadin... |
packages/flow-runtime-docs/src/components/Navbar.js | codemix/flow-runtime | /* @flow */
import React, { Component } from 'react';
import {observer} from 'mobx-react';
import {Link, IndexLink} from 'react-router';
import logo from './assets/logo.png';
@observer
export default class Navbar extends Component {
render() {
return (
<nav className="navbar navbar-dark bg-inverse">
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.