path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/plotly.js/1.37.1/plotly-basic.min.js | sashberd/cdnjs | /**
* plotly.js (basic - minified) v1.37.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?wi... |
src/Field.js | prometheusresearch/react-ui | /**
* @copyright 2016-present, Prometheus Research, LLC
* @flow
*/
import React from 'react';
import {style, css} from 'react-stylesheet';
import Block from './Block';
import Text from './Text';
import LabelText from './LabelText';
import ErrorText from './ErrorText';
import {fontSize} from './theme';
import {uniq... |
pages/premium-themes/onepirate/privacy.js | allanalexandre/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import AppTheme from 'docs/src/modules/components/AppTheme';
import Privacy from 'docs/src/pages/premium-themes/onepirate/Privacy';
function Page() {
return (
<AppTheme title="Onepirate theme - Material-UI" des... |
src/Footer/__tests__/Section-test.js | tleunen/react-mdl | /* eslint-env mocha */
import expect from 'expect';
import React from 'react';
import { render } from '../../__tests__/render';
import { FooterSection } from '../';
describe('Footer', () => {
describe('FooterSection', () => {
it('should render a div with the specific css class', () => {
const o... |
src/svg-icons/editor/insert-link.js | andrejunges/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
ajax/libs/foundation/3.2.5/javascripts/foundation.min.js | thejameskyle/cdnjs | /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
* Build: http://modernizr.com/download/#-inlinesvg-svg-svgclippaths-touch-shiv-mq-cssclasses-teststyles-prefixes-ie8compat-load
*/
window.Modernizr=function(e,t,n){function r(e){d.cssText=e}function i(e,t){return r(g.join(e+";")+(t||""))}function s(e,t){return typeof e===... |
docs/src/app/components/pages/components/DatePicker/Page.js | tan-jerene/material-ui | import React from 'react';
import Title from 'react-title-component';
import CodeExample from '../../../CodeExample';
import PropTypeDescription from '../../../PropTypeDescription';
import MarkdownElement from '../../../MarkdownElement';
import datePickerReadmeText from './README';
import DatePickerExampleSimple from... |
app/javascript/mastodon/features/notifications/components/notification.js | Chronister/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import ImmutablePropTypes from 'react-immutable-proptypes';
import StatusContainer from '../../../containers/status_container';
import AccountContainer from '../../../containers/account_container';
import { injectIntl, FormattedMessage } from 'react-intl';
... |
spec/javascripts/jsx/blueprint_courses/components/CoursePickerTableSpec.js | venturehive/canvas-lms | /*
* 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... |
client/src/js/index.js | rmhowe/transport-app | import 'normalize.css';
import 'font-awesome/css/font-awesome.css';
import '../css/app.css';
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './containers/App';
document.addEventListener('DOMContentLoaded', () => {
ReactDOM.render(<App/>, document.getElementById... |
src/components/common/Loading.js | nightwolfz/mobx-starter | import React from 'react'
export default function Loading() {
// Loading animation...
return <main className="spinner-wrapper">
<svg className="spinner"
width="65px"
height="65px"
viewBox="0 0 66 66"
xmlns="http://www.w3.org/2000/svg">
<circle className="path"
... |
src/svg-icons/communication/ring-volume.js | mmrtnz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let CommunicationRingVolume = (props) => (
<SvgIcon {...props}>
<path d="M23.71 16.67C20.66 13.78 16.54 12 12 12 7.46 12 3.34 13.78.29 16.67c-.18.18-.29.43-.29.71 0 .28.11.53.29.71l2.48 2.48c.18.18.43.29.71.29.27 0... |
ajax/libs/angular.js/1.0.0rc1/angular-scenario.js | zimbatm/cdnjs | /** @license
* jQuery JavaScript Library v1.7
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Lic... |
src/components/TextFiltered.js | KDCinfo/track-your-cash | import React from 'react'
class TextFiltered extends React.Component {
render() {
return (
<div>
<div className={this.props.filterText.length > 0 ? 'text-filtered' : 'hide'}>Filtered: { this.props.showTotalFiltered() }</div>
<div clas... |
pages/api/card-action-area.js | Kagami/material-ui | import 'docs/src/modules/components/bootstrap';
// --- Post bootstrap -----
import React from 'react';
import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs';
import markdown from './card-action-area.md';
function Page() {
return <MarkdownDocs markdown={markdown} />;
}
export default Page;
|
RN/reactjs/reactjs-demo/demo/event-demo.js | puyanLiu/LPYFramework | import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import './index.css';
class Title extends Component {
_handleClickOnTitle(e) {
/**
* react.js调用传递给它的方法的时候,并不是通过对象方法的方式调用(this._handleClickOnTitle),
* 而是直接通过函数调用(_handleClickOnTitle),所以事件监听函数内并不能通过this获取到实例
*
* react.... |
app/javascript/mastodon/features/compose/components/action_bar.js | maa123/mastodon | import React from 'react';
import ImmutablePropTypes from 'react-immutable-proptypes';
import PropTypes from 'prop-types';
import DropdownMenuContainer from '../../../containers/dropdown_menu_container';
import { defineMessages, injectIntl } from 'react-intl';
const messages = defineMessages({
edit_profile: { id: 'a... |
lib/panels/AbstractPanel/index.js | Kitware/light-viz | import React from 'react';
import PropTypes from 'prop-types';
import SvgIcon from 'paraviewweb/src/React/Widgets/SvgIconWidget';
import style from 'LightVizStyle/AbstractPanel.mcss';
import modules from '../../modules';
import ColorBy from '../../widgets/ColorBy';
import Representation from '../../widgets/Represent... |
app/javascript/mastodon/features/keyboard_shortcuts/index.js | cybrespace/mastodon | import React from 'react';
import Column from '../ui/components/column';
import ColumnBackButtonSlim from '../../components/column_back_button_slim';
import { defineMessages, injectIntl, FormattedMessage } from 'react-intl';
import PropTypes from 'prop-types';
import ImmutablePureComponent from 'react-immutable-pure-co... |
stories/DropdownLayout/index.js | nirhart/wix-style-react | import React from 'react';
import {storiesOf} from '@kadira/storybook';
import Markdown from '../utils/Components/Markdown';
import CodeExample from '../utils/Components/CodeExample';
import Readme from '../../src/DropdownLayout/README.md';
import ExampleStandard from './ExampleStandard';
import ExampleStandardRaw fro... |
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/app/components/BodyLayout.js | kresimircoko/empathy | import React, { Component } from 'react';
class BodyLayout extends Component {
render () {
return (
<div className="body-text">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ul... |
app/containers/MainContainer.js | jiangchunyu/ReactNativeGank | /**
* Created by jiangcy on 17-1-7.
*/
import React from 'react';
import {connect} from 'react-redux';
import MainView from '../components/pages/MainView';
import * as MainActions from '../actions/MainActions';
import { bindActionCreators } from 'redux'
class MainContainer extends React.Component {
render() {
... |
client/index.js | maicongil/fcc_voting_app | /**
* Client entry point
*/
import React from 'react';
import { render } from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import App from './App';
import { configureStore } from './store';
import 'semantic-ui-css/semantic.min.css';
// Initialize store
const store = configureStore(window.__INITIAL_S... |
packages/material-ui-icons/src/LocalFloristSharp.js | allanalexandre/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M12 22c4.97 0 9-4.03 9-9-4.97 0-9 4.03-9 9zM5.6 10.25c0 1.38 1.12 2.5 2.5 2.5.53 0 1.01-.16 1.42-.44l-.02.19c0 1.38 1.12 2.5 2.5 2.5s2.5-1.12 2.... |
node_modules/bower/node_modules/insight/node_modules/inquirer/node_modules/rx/src/core/linq/observable/amb.js | fnc314/angular-seed-project | /**
* Propagates the observable sequence or Promise that reacts first.
*
* @example
* var = Rx.Observable.amb(xs, ys, zs);
* @returns {Observable} An observable sequence that surfaces any of the given sequences, whichever reacted first.
*/
Observable.amb = function () {
var acc = obs... |
tools/render.js | markhker/newCyK |
import glob from 'glob';
import { join, dirname } from 'path';
import React from 'react';
import ReactDOM from 'react-dom/server';
import Html from '../components/Html';
import task from './lib/task';
import fs from './lib/fs';
const DEBUG = !process.argv.includes('release');
function getPages() {
return new Promi... |
packages/material-ui-icons/src/Undo.js | dsslimshaddy/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Undo = props =>
<SvgIcon {...props}>
<path d="M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z" />
</SvgIcon... |
ajax/libs/react-slick/0.12.4/react-slick.min.js | x112358/cdnjs | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("react-dom")):"function"==typeof define&&define.amd?define(["react","react-dom"],e):"object"==typeof exports?exports.Slider=e(require("react"),require("react-dom")):t.Slider=e(t.React,t.ReactDOM)}(this,function(t,... |
src/routes/NotFound/NotFound.js | taikongfeizhu/webpack-develop-startkit | import React from 'react'
import { browserHistory } from 'react-router'
import './NotFound.less'
import img404 from './404.png'
import cloud404 from './cloud_404.png'
const goBack = (e) => {
e.preventDefault()
return browserHistory.goBack()
}
export const NotFound = () => (
<div style={{ background:'#f6f6f6', m... |
sms_sponsorship/webapp/src/components/WarningMessage.js | CompassionCH/compassion-modules | import React from 'react';
export default class extends React.Component {
render() {
let styles = {
alert: {
maxWidth: 960,
marginTop: 15,
marginLeft: "auto",
marginRight: "auto",
padding: 20,
color:... |
src/components/01-atoms/Tooltip/TooltipAnchor.js | buildit/bookit-web | import React from 'react'
import PropTypes from 'prop-types'
const TooltipAnchor = ({ anchorContainerRef, anchorRef, styles }) => (
<div className={styles.anchorContainer} ref={anchorContainerRef}>
<div className={styles.anchor} ref={anchorRef} />
</div>
)
TooltipAnchor.propTypes = {
anchorContainerRef: Pro... |
redux-counter-test/client/index.js | cooliean/react-study | import React from 'react'
import ReactDOM from 'react-dom'
import {createStore} from 'redux';
import Counter from './components/Counter';
let rootEl = document.getElementById('root');
import ActionTypes from './constants/action_types';
import Recucers from './reducers/reducers';
let store = createStore(Recucers);... |
grid-packages/ag-grid-docs/documentation/src/images/anchor.js | ceolter/angular-grid | import React from 'react';
const AnchorIcon = <svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="link" className="svg-inline--fa fa-link" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M326.612 185.391c59.747 59.809 58.927 155.698.36 214.59-.11.12-.... |
packages/material-ui-icons/src/ViewCarouselSharp.js | kybarg/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M7 19h10V4H7v15zm-5-2h4V6H2v11zM18 6v11h4V6h-4z" />
, 'ViewCarouselSharp');
|
app/components/StellarAccount/index.js | Proxiweb/react-boilerplate | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import api from 'utils/stellarApi';
import round from 'lodash/round';
class StellarAccount extends Component {
static propTypes = {
stellarAdr: PropTypes.string.isRequired,
onAccountLoaded: PropTypes.func.isRequired,
};
state ... |
ajax/libs/react-bootstrap/0.24.5-react-pre.0/react-bootstrap.min.js | wil93/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.ReactBootstrap=t(require("react")):e.ReactBootstrap=t(e.React)}(this,function(e){return function(e){function t(r){if(n[r])return ... |
ajax/libs/yui/3.7.0/datatable-body/datatable-body.js | marxo/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... |
test/integration/font-optimization/fixtures/with-google/pages/index.js | zeit/next.js | import React from 'react'
import Link from 'next/link'
const Page = () => {
return (
<div>
Hi!
<br />
<br />
<Link href="/with-font">
<a id="with-font">With font</a>
</Link>
</div>
)
}
export default Page
|
ajax/libs/video.js/4.6.3/video.dev.js | anshulverma/cdnjs | /**
* @fileoverview Main function src.
*/
// HTML5 Shiv. Must be in <head> to support older browsers.
document.createElement('video');
document.createElement('audio');
document.createElement('track');
/**
* Doubles as the main function for users to create a player instance and also
* the main library object.
*
... |
src/App.js | sebpearce/cycad-react | import React, { Component } from 'react';
import styles from './App.scss';
import { Route } from 'react-router-dom';
import IconDefs from './components/IconDefs';
import CaptureContainer from './components/capture/CaptureContainer';
import BudgetContainer from './components/budget/BudgetContainer';
import OverviewConta... |
client/components/position-table/position-row/PositionRow.js | kanehara/yostock | import React from 'react'
import { PositionSymbol } from './PositionSymbol'
import { PositionBasisValue } from './PositionBasisValue'
import { PositionCurrentValue } from './PositionCurrentValue'
import { PositionTotalGainLoss } from './PositionTotalGainLoss'
export function PositionRow(props) {
const style = {
... |
src/main.js | hack-duke/hackduke-dayof | import React from 'react'
import ReactDOM from 'react-dom'
import createBrowserHistory from 'history/lib/createBrowserHistory'
import { useRouterHistory } from 'react-router'
import { syncHistoryWithStore } from 'react-router-redux'
import createStore from './store/createStore'
import AppContainer from './containers/Ap... |
www/docs/en/quick-start-guide_sles-12_liberty-soc/5.2/content/search/nwSearchFnt.js | midonet/midonet-docs | /*----------------------------------------------------------------------------
* JavaScript for webhelp search
*----------------------------------------------------------------------------
This file is part of the webhelpsearch plugin for DocBook WebHelp
Copyright (c) 2007-2008 NexWave Solutions All Rights Rese... |
frontend/src/app/containers/OnboardingPage.js | dannycoates/testpilot | import React from 'react';
import Copter from '../components/Copter';
import LayoutWrapper from '../components/LayoutWrapper';
import View from '../components/View';
export default class OnboardingPage extends React.Component {
render() {
return (
<View spaceBetween={true} showNewsletterFooter={false} {.... |
client/trello/src/app/routes/home/routes/boardView/BoardView.js | Madmous/madClones | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { BoardViewHeader, Cards } from './components/index';
import './BoardView.css';
const propTypes = {
isFocusOnCreateCardForm: PropTypes.bool.isRequired,
isCreateCardFormOpen: PropTypes.bool.isRequired,
isFocusOnCreateCardIte... |
node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | wparkhurst/angular-spotifysearch | import React from 'react';
import { render } from 'react-dom';
// 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';
render(<HelloWorld />, document.getElementById('react-root'));
|
src/components/HumanApi.js | ericfu88/humanapitestclient | require('normalize.css');
require('styles/App.css');
require('fetch');
import React from 'react';
var networkUtil = require('../utils/network');
var HUMANAPI_APP_CLIENT_ID = '839a06d67943bbdcafcd2d0c13625356c135ad05';
var HumanApi = React.createClass({
handleClick: function(userId, publicToken, callback) {
var ... |
ajax/libs/rxjs-dom/4.0.3/rx.dom.js | jasonpang/cdnjs | // Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information.
;(function (factory) {
var objectTypes = {
'boolean': false,
'function': true,
'object': true,
'number': false,
'string': false,
'undefined': false
};
var ... |
lib/ui/components/common/MethodLabel.js | 500tech/mimic | import React from 'react';
import styled from 'styled-components';
import { Div } from 'ui/components/common/base';
const Label = styled(Div)`
font-size: 10px;
font-weight: 600;
min-width: 37px;
width: 37px;
user-select: none;
text-transform: uppercase;
${(props) => props.failed ? 'color: ' + props.theme... |
docs/examples/FormGroup/Example3.js | romagny13/react-form-validation | import React from 'react';
import { FormGroup, Input, Label } from 'romagny13-react-form-validation';
/** Success state*/
const Example3 = () => {
return (
<FormGroup renderSuccess canChangeValidationState>
<Label htmlFor="my-field">Field</Label>
<Input id="my-field"... |
client/components/settings/admin/index.js | ZeHiro/kresus | import React from 'react';
import { translate as $t } from '../../../helpers';
import Weboob from './weboob';
import Logs from './logs';
export default function() {
return (
<React.Fragment>
<div>
<h2>{$t('client.settings.admin_connectors')}</h2>
<Weboob />
... |
packages/react/src/components/organisms/HeaderHamburger/HeaderHamburger.stories.js | massgov/mayflower | import React from 'react';
import { StoryPage } from 'StorybookConfig/preview';
import styles from '@massds/mayflower-assets/build/scss/header-hamburger.scss';
import mainItems from './main-nav.data';
import HeaderHamburger from './index';
import { LoginItem, TranslateItem, StateItem } from 'MayflowerReactOrganisms/Hea... |
src/client.js | TallerWebSolutions/react-redux-universal-choko-example | /* global __DEVTOOLS__ */
import 'babel/polyfill';
import React from 'react';
import BrowserHistory from 'react-router/lib/BrowserHistory';
import Location from 'react-router/lib/Location';
import createStore from './redux/create';
import ApiClient from './ApiClient';
import universalRouter from './universalRouter';
co... |
src/svg-icons/editor/insert-link.js | xmityaz/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let EditorInsertLink = (props) => (
<SvgIcon {...props}>
<path d="M3.9 12c0-1.71 1.39-3.1 3.1-3.1h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4v-1.9H7c-1.71 0-3.1-1.39-3.1-3.1zM8 13h8v-2H8v2zm9-6h-4v1.9h4c1.71 0 3.1 1.39 3... |
actor-apps/app-web/src/app/components/modals/Preferences.react.js | ONode/actor-platform | import React from 'react';
import Modal from 'react-modal';
import ReactMixin from 'react-mixin';
import { IntlMixin, FormattedMessage } from 'react-intl';
import { Styles, FlatButton, RadioButtonGroup, RadioButton, DropDownMenu } from 'material-ui';
import { KeyCodes } from 'constants/ActorAppConstants';
import Actor... |
app/javascript/mastodon/features/ui/components/modal_root.js | PlantsNetwork/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import BundleContainer from '../containers/bundle_container';
import BundleModalError from './bundle_modal_error';
import ModalLoading from './modal_loading';
import ActionsModal from './actions_modal';
import MediaModal from './media_modal';
import VideoMo... |
ajax/libs/rxjs/2.2.21/rx.js | Ranks/cdnjs | // 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... |
frontend/src/components/pages/journal/MarkEditor.js | pahomovda/victorious-pirate | import React from 'react';
import TextField from 'material-ui/lib/text-field';
class MarkEditor extends React.Component {
constructor(props) {
super(props);
this.state = {
value: this.props.value
};
}
componentWillReceiveProps(nextProps) {
this.setState({
value: nextProps.value
}... |
src/index.js | maaaju/flatshare | import React from 'react'
import ReactDOM from 'react-dom'
import { browserHistory } from 'react-router'
import { Provider } from 'react-redux'
import { createStore } from 'redux'
import injectTapEventPlugin from 'react-tap-event-plugin'
import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'
import getMuiT... |
react-flux-mui/js/material-ui/src/svg-icons/image/timer.js | pbogdan/react-flux-mui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ImageTimer = (props) => (
<SvgIcon {...props}>
<path d="M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0... |
node_modules/react-haste/shared/utils/__tests__/traverseAllChildren-test.js | reallin/MyReact-Native | /**
* 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.
*
* @emails react-co... |
ajax/libs/yui/3.12.0/datatable-body/datatable-body-debug.js | jonathan-fielding/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/routes/Togglol/components/Calendar/SummaryBar.js | gazab/togglol | import React from 'react';
import { getTotalDurationForEvents, groupByProject } from '../../../../helpers/EventHelper';
class SummaryBar extends React.Component {
render () {
const events = this.props.events;
let totalHours = getTotalDurationForEvents(events);
let projectGroups = groupByP... |
entCMS.Manage/Manage/Scripts/jquery-1.4.2.min.js | plz821/entCMS | /*!
* 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.
... |
ajax/libs/core-js/0.9.17/core.js | dlueth/cdnjs | /**
* core-js 0.9.17
* 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 = {};
/*****... |
public/extlib/jquery-1.11.0.min.js | eddietree/illogictree | /*! jQuery v1.11.0 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof wind... |
src/components/Header/Header.js | Shtian/dashboard | /*! React Starter Kit | MIT License | http://www.reactstarterkit.com/ */
import React from 'react'; // eslint-disable-line no-unused-vars
import styles from './Header.less'; // eslint-disable-line no-unused-vars
import withStyles from '../../decorators/withStyles'; // eslint-disable-line no-unused-vars
import Link fro... |
App/Components/SimpleList.js | levic92/ReactNativeSampleApp | var React = require('react-native');
var {
ListView
} = React;
var RefreshableListView = require('react-native-refreshable-listview');
var SimpleListItem = require('../Components/SimpleListItem');
var ds = new ListView.DataSource({rowHasChanged: (r1, r2) => r1 !== r2});
var SimpleList = React.createClass({
ren... |
src/components/common/Table/TableFooter.js | abzfarah/Pearson.NAPLAN.GnomeH | import React, {Component, PropTypes} from 'react';
import TableRowColumn from './TableRowColumn';
function getStyles(props, context) {
const {tableFooter} = context.muiTheme;
return {
cell: {
borderTop: `1px solid ${tableFooter.borderColor}`,
verticalAlign: 'bottom',
padding: 20,
textA... |
ajax/libs/video.js/5.12.4/alt/video.novtt.js | sashberd/cdnjs | /**
* @license
* Video.js 5.12.4 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*/
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}... |
test/extract/transpile/__fixtures__/tsx.js | sverweij/dependency-cruiser | import React from 'react';
const MyComponents = {
DatePicker: function DatePicker(props) {
return React.createElement("div", null,
"Imagine a ",
props.color,
" datepicker here.");
}
};
function BlueDatePicker() {
return React.createElement(MyComponents.DatePicker,... |
src/js/components/color-form.js | pfb3cn/react_bootcamp_exercise | import React from 'react';
export class ColorForm extends React.Component {
constructor(props) {
super(props);
this.state = {
newColor: ''
};
}
static propTypes = {
addColor: React.PropTypes.func.isRequired
};
onChange = (e) => {
this.setState... |
example/examples/TakeSnapshot.js | ali-alamine/react-native-maps | import React from 'react';
import {
StyleSheet,
View,
Text,
Dimensions,
TouchableOpacity,
Image,
} from 'react-native';
import MapView from 'react-native-maps';
import flagBlueImg from './assets/flag-blue.png';
import flagPinkImg from './assets/flag-pink.png';
const { width, height } = Dimensions.get('win... |
Examples/UIExplorer/UIExplorerIntegrationTests/js/TimersTest.js | carcer/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.
*/
'use strict... |
antd-dva/ant-design-pro-demo/test/src/components/Result/index.js | JianmingXia/StudyTest | import React from 'react';
import classNames from 'classnames';
import { Icon } from 'antd';
import styles from './index.less';
export default function Result({
className, type, title, description, extra, actions, ...restProps
}) {
const iconMap = {
error: <Icon className={styles.error} type="close-circle" />,... |
node_modules/semantic-ui-react/dist/es/views/Feed/FeedLike.js | mowbell/clickdelivery-fed-test | import _extends from 'babel-runtime/helpers/extends';
import _isNil from 'lodash/isNil';
import cx from 'classnames';
import PropTypes from 'prop-types';
import React from 'react';
import { customPropTypes, getElementType, getUnhandledProps, META } from '../../lib';
import Icon from '../../elements/Icon';
/**
* A f... |
test/components/Footer.spec.js | river-lee/redux-example | import { expect } from 'chai';
import React from 'react';
import TestUtils from 'react-addons-test-utils';
import Footer from '../../app/components/Footer';
function setup(propOverrides){
const props = Object.assign({
},propOverrides);
const renderer = TestUtils.createRenderer();
renderer.render(<Footer {...p... |
ajax/libs/plotly.js/1.38.1/plotly-geo.min.js | cdnjs/cdnjs | /**
* plotly.js (geo - minified) v1.38.1
* Copyright 2012-2018, Plotly, Inc.
* All rights reserved.
* Licensed under the MIT license
*/
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?wind... |
src/svg-icons/maps/local-phone.js | mtsandeep/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let MapsLocalPhone = (props) => (
<SvgIcon {...props}>
<path d="M6.62 10.79c1.44 2.83 3.76 5.14 6.59 6.59l2.2-2.2c.27-.27.67-.36 1.02-.24 1.12.37 2.33.57 3.57.57.55 0 1 .45 1 1V20c0 .55-.45 1-1 1-9.39 0-17-7.61-17-... |
app/javascript/mastodon/containers/media_container.js | 5thfloor/ichiji-social | import React, { PureComponent, Fragment } from 'react';
import ReactDOM from 'react-dom';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { List as ImmutableList, fromJS } from 'immutable';
import { getLocale } from 'mastodon/locales';
import { getScrollbarWidth } fr... |
app/assets/javascripts/application.js | mwkling/simple-react-rails-app | // This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ... |
test/components/Voting_spec.js | AlexKVal/vote-client | import React from 'react';
import ReactDOM from 'react-dom';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import {List} from 'immutable';
import {expect} from 'chai';
import {render} from '../helpers';
import {Voting} from '../../src/components/Voting';
describe('Voting', () => {
it('renders a pair of bu... |
jquery-1.4.1.min.js | siddhutsg/asteroids | /*!
* jQuery JavaScript Library v1.4.1
* 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.
... |
app/components/LoadingIndicator/index.js | bsr203/react-boilerplate | import React from 'react';
import styles from './styles.css';
function LoadingIndicator() {
return (
<div>
<div className={styles['sk-fading-circle']}>
<div className={styles.skCircle}></div>
<div className={styles['sk-circle2']}></div>
<div className={styles['sk-circle3']}></div>
... |
src/components/form/controls/Input.js | TechyFatih/Nuzlog | import React from 'react';
import PropTypes from 'prop-types';
import { FormControl } from 'react-bootstrap';
export default class Input extends React.Component {
constructor() {
super();
this.handleChange = this.handleChange.bind(this);
}
componentWillReceiveProps(nextProps) {
if (nextProps.focus)
... |
frontend/src/app/containers/ExperimentPage/DetailsHeader.js | meandavejustice/testpilot | // @flow
import React from "react";
import classnames from "classnames";
import { Localized } from "fluent-react/compat";
import LayoutWrapper from "../../components/LayoutWrapper";
import ExperimentPlatforms from "../../components/ExperimentPlatforms";
import { experimentL10nId, isMobile } from "../../lib/utils";
im... |
pages/weather.js | runesam/react-redux-next | import React, { Component } from 'react';
import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import RecuxPromise from 'redux-promise';
import stylesheet from '../styles/weather.scss';
import Header from './../components/head';
import SearchBar from './../containers/search-ba... |
src/app/settings/Security.js | mailvelope/mailvelope | /**
* Copyright (C) 2012-2019 Mailvelope GmbH
* Licensed under the GNU Affero General Public License version 3
*/
import React from 'react';
import PropTypes from 'prop-types';
import {port} from '../app';
import {str2bool} from '../../lib/util';
import * as l10n from '../../lib/l10n';
l10n.register([
'form_canc... |
ui/src/js/common/ranking/LargeRankingContainer.js | Dica-Developer/weplantaforest | import counterpart from 'counterpart';
import React, { Component } from 'react';
require('./largeRankingContainer.less');
export default class LargeRankingContainer extends Component {
constructor(props) {
super(props);
this.state = {
fade: false
};
this.fadingDone = this.fadingDone.bind(this)... |
mobile/app/module/Sidebar/stories/Sidebar.js | liyangwood/DreamCup | import React from 'react';
import { action, storiesOf } from '@storybook/react-native';
import SidebarComponent from '../SidebarComponent';
storiesOf('module/Sidebar', module)
.add('Base', ()=>{
const p = {};
return (
<SidebarComponent {...p} />
);
});
|
src/client/assets/js/features/driver/components/Code/Code.js | me-box/iot.red | import React, { Component } from 'react';
import { Link } from 'react-router';
import "../driver.css";
export default class Code extends React.Component {
render(){
const {props:{children}} = this.props.children;
return <div className="container">
<div className="toolbar">
</div>
<div className="manif... |
ajax/libs/yui/3.3.0/simpleyui/simpleyui.js | mrehayden1/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
* @submodule yui-base
*/
if (typeof YUI != 'undefined') {
YUI._YUI = YUI;
}
/**
* The YUI global name... |
admin/src/MyLayout.js | gotthardp/lorawan-server | import React from 'react';
import { Layout } from 'react-admin';
import MyMenu from './MyMenu';
const MyLayout = (props) => <Layout {...props} menu={MyMenu}/>;
export default MyLayout;
|
src/default-props.js | asmpx/react-slick-asmpx | import React from 'react';
var defaultProps = {
className: '',
accessibility: true,
adaptiveHeight: false,
arrows: true,
autoplay: false,
autoplaySpeed: 3000,
centerMode: false,
centerPadding: '50px',
cssEase: 'ease',
customPaging: function(i) {
return <button>{i + 1}</b... |
src/components/projects/content/HTC.js | tehfailsafe/portfolio2015 | import React from 'react';
import Section from '../show/Section'
import Copy from '../show/Copy'
import CopySplitLeft from '../show/CopySplitLeft'
import CopySplitRight from '../show/CopySplitRight'
import ImageFull from '../show/ImageFull'
import VideoPlayer from '../show/VideoPlayer'
export default React.createCla... |
examples/js/column-filter/select-filter.js | echaouchna/react-bootstrap-tab | /* eslint max-len: 0 */
import React from 'react';
import { BootstrapTable, TableHeaderColumn } from 'react-bootstrap-table';
const products = [];
const qualityType = {
0: 'good',
1: 'Bad',
2: 'unknown'
};
function addProducts(quantity) {
const startId = products.length;
for (let i = 0; i < quantity; i++) ... |
ajax/libs/forerunnerdb/1.3.759/fdb-core+views.js | tholu/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... |
node_modules/react-icons/io/android-microphone-off.js | bengimbel/Solstice-React-Contacts-Project |
import React from 'react'
import Icon from 'react-icon-base'
const IoAndroidMicrophoneOff = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m28.7 27.7l4.5 4.6 2.7 2.5-1.9 1.9-7.4-7.4c-1.5 0.9-3.1 1.6-4.9 1.8v6.4h-3.6v-6.4c-5.8-0.8-10.7-5.9-10.7-12h3.1c0 5.4 4.5 9.2 9.4 9.2 1.6 0 3.2-0.4 4.5-1... |
JavaScript/jquery-1.8.3.min.js | dunitian/LoTQRCode | /*! 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===... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.