path stringlengths 5 304 | repo_name stringlengths 6 79 | content stringlengths 27 1.05M |
|---|---|---|
ajax/libs/knockout/3.3.0/knockout-debug.js | billybonz1/cdnjs | /*!
* Knockout JavaScript library v3.3.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
(function(){
var DEBUG=true;
(function(undefined){
// (0, eval)('this') is a robust way of getting a reference to the global object
// For details,... |
core/com.b2international.snowowl.core.rest/snow-owl-api-docs/src/App.js | b2ihealthcare/snow-owl | import 'antd/dist/antd.css';
import 'rapidoc';
import React from 'react';
import { BackTop } from 'antd';
import { parse } from 'qs';
class App extends React.Component {
state = {
selectedKey: 'core',
apis: [],
serverUrl: process.env.REACT_APP_SO_BASE_URL || process.env.PUBLIC_URL
}
componentDidMo... |
features/apimgt/org.wso2.carbon.apimgt.admin.feature/src/main/resources/admin/source/src/app/components/Base/Header/Header.js | thusithak/carbon-apimgt | /*
* Copyright (c) 2017, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
*
* WSO2 Inc. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/li... |
ActivityCounter/src/index.js | vmalvaro/react-projects | import React from 'react'
import { render } from 'react-dom'
import { App } from './components/App'
import { Whoops404 } from './components/Whoops404'
import { HashRouter as Router, Route, Switch, Link } from 'react-router-dom'
import { AddDayForm } from './components/AddDayFormStateless'
window.React = React;
// r... |
server/public/js/libs/jquery.mobile.js | tcase360/email-client | /*!
* jQuery Mobile 1.4.0
* Git HEAD hash: f09aae0e035d6805e461a7be246d04a0dbc98f69 <> Date: Thu Dec 19 2013 17:34:22 UTC
* http://jquerymobile.com
*
* Copyright 2010, 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ... |
ajax/libs/yasr/2.4.8/yasr.bundled.min.js | ramda/cdnjs | !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.YASR=t()}}(function(){var t;return function e(t,n,r){... |
app/javascript/mastodon/features/ui/components/column_subheading.js | riku6460/chikuwagoddon | import React from 'react';
import PropTypes from 'prop-types';
const ColumnSubheading = ({ text }) => {
return (
<div className='column-subheading'>
{text}
</div>
);
};
ColumnSubheading.propTypes = {
text: PropTypes.string.isRequired,
};
export default ColumnSubheading;
|
ajax/libs/qooxdoo/2.1.1/q.js | Nivl/cdnjs | /** qooxdoo v.2.1.1 | (c) 2012 1&1 Internet AG 1und1.de | qooxdoo.org/license */
(function(){
if (!window.qx) window.qx = {};
var qx = window.qx;
if (!qx.$$environment) qx.$$environment = {};
var envinfo = {"json":true,"qx.application":"library.Application","qx.debug":false,"qx.debug.databinding":false,"qx.debug.dispo... |
app/routes.js | mersocarlin/react-webpack-template | import React from 'react';
import { Route } from 'react-router';
import App from './containers/app';
import About from './containers/about';
import Home from './containers/home';
import NoMatch from './containers/no-match';
export default (
<Route component={App}>
<Route path="/" component={Home} />
<Rou... |
ajax/libs/yui/3.8.0/datatable-core/datatable-core-debug.js | potomak/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... |
client/fragments/quizzes/debris-result/index.js | yeoh-joer/synapse | /**
* External dependencies
*/
import React from 'react'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
import page from 'page'
import { Chart } from 'chart.js'
import { Doughnut, Line } from 'react-chartjs-2'
/**
* Internal dependencies
*/
import Button from 'client/components/button'
im... |
src/js/components/gsbpm/details/subs-by-phase.js | UNECE/Model-Explorer | import React from 'react'
import { Link } from 'react-router'
import { sparqlConnect} from 'sparql-connect'
import { linkGSBPMSub } from '../routes'
/**
* Builds the query that retrives all the subprocesses for a GSBPM phase
*/
//TODO we retrieve twice the same information, see GSBPM description query.
//There might... |
ajax/libs/babel-core/5.3.1/browser-polyfill.min.js | perfect-pixell/cdnjs | (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex... |
src/routes.js | TobiasBales/PlayuavOSDConfigurator | import React from 'react';
import { Route, IndexRoute } from 'react-router';
import App from './App';
import Config from './config/Config';
import Pixler from './pixler/Pixler';
export default (
<Route path="/" component={App}>
<IndexRoute component={Config} />
<Route path="pixler" component={Pixler} />
</... |
src/routes/admin/index.js | Frenzzy/react-starter-kit | /**
* 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 Layout from '../../co... |
examples/todomvc/containers/TodoApp.js | mikekidder/redux-devtools | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { bindActionCreators } from 'redux';
import Header from '../components/Header';
import MainSection from '../components/MainSection';
import * as TodoActions from '../actions/TodoActions';
class TodoApp extends Component {
render(... |
actor-apps/app-web/src/app/components/sidebar/HeaderSection.react.js | Johnnywang1221/actor-platform | import React from 'react';
import MyProfileActions from 'actions/MyProfileActions';
import LoginActionCreators from 'actions/LoginActionCreators';
import AvatarItem from 'components/common/AvatarItem.react';
import MyProfileModal from 'components/modals/MyProfile.react';
import ActorClient from 'utils/ActorClient';
... |
admin/client/App/shared/CreateForm.js | giovanniRodighiero/cms | /**
* The form that's visible when "Create <ItemName>" is clicked on either the
* List screen or the Item screen
*/
import React from 'react';
import assign from 'object-assign';
import vkey from 'vkey';
import AlertMessages from './AlertMessages';
import { Fields } from 'FieldTypes';
import InvalidFieldType from '... |
src/tags/Tag.js | Sekhmet/busy | import React from 'react';
import numeral from 'numeral';
import { Link } from 'react-router';
import FavoriteButton from '../favorites/FavoriteButton';
import Icon from '../widgets/Icon';
const Tag = ({
tag,
removeCategoryFavorite,
addCategoryFavorite,
isFavorited
}) =>
<div className="page">
<div class... |
src/TimePicker/Clock.js | rscnt/material-ui | import React from 'react';
import TimeDisplay from './TimeDisplay';
import ClockHours from './ClockHours';
import ClockMinutes from './ClockMinutes';
class Clock extends React.Component {
static propTypes = {
format: React.PropTypes.oneOf(['ampm', '24hr']),
initialTime: React.PropTypes.object,
isActive: ... |
ajax/libs/reactive-coffee/0.0.4/reactive-coffee.min.js | mikesir87/cdnjs | !function(){var a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S={}.hasOwnProperty,T=function(a,b){function c(){this.constructor=a}for(var d in b)S.call(b,d)&&(a[d]=b[d]);return c.prototype=b.prototype,a.prototype=new c,a.__super__=b.prototype,a},U=[].slice,V=this;"undefined"==t... |
__tests__/index.ios.js | mchlltt/mementoes-mobile | import 'react-native';
import React from 'react';
import Index from '../index.ios.js';
// Note: test renderer must be required after react-native.
import renderer from 'react-test-renderer';
it('renders correctly', () => {
const tree = renderer.create(
<Index />
);
});
|
jquery.min.js | swechaFSMI/swechafsmi.github.io | /*! jQuery v1.7.1 jquery.com | jquery.org/license */
(function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.parentWindow:!1}function cv(a){if(!ck[a]){var b=c.body,d=f("<"+a+">").appendTo(b),e=d.css("display");d.remove();if(e==="none"||e===""){cl||(cl=c.createElement("iframe"),cl.frameBorde... |
src/client.js | AnthonyWhitaker/react-redux-universal-hot-example | /**
* THIS IS THE ENTRY POINT FOR THE CLIENT, JUST LIKE server.js IS THE ENTRY POINT FOR THE SERVER.
*/
import 'babel-core/polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/create';
import ApiClient fr... |
fields/types/cloudinaryimage/CloudinaryImageField.js | davibe/keystone | import _ from 'underscore';
import $ from 'jquery';
import React from 'react';
import Field from '../Field';
import Select from 'react-select';
import { Button, FormField, FormInput, FormNote } from 'elemental';
import Lightbox from '../../../admin/src/components/Lightbox';
/**
* TODO:
* - Remove dependency on jQuer... |
examples/navigation/epics/adminAccess.js | jesinity/redux-observable | import { Observable } from 'rxjs/Observable';
import { push } from 'react-router-redux';
import * as ActionTypes from '../ActionTypes';
import { accessDenied } from '../actions';
export default function adminAccess(action$) {
return action$.ofType(ActionTypes.CHECKED_ADMIN_ACCESS)
// If you wanted to do an actua... |
docs/public/static/examples/v36.0.0/tutorial/sharing-web-workaround.js | exponent/exponent | import React from 'react';
import { Image, Platform, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
import * as ImagePicker from 'expo-image-picker';
import * as Sharing from 'expo-sharing';
import uploadToAnonymousFilesAsync from 'anonymous-files';
export default function App() {
let [selectedImage... |
client/src/components/template/footer.js | joshuaslate/mern-starter | import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router';
class FooterTemplate extends Component {
renderLinks() {
if (this.props.authenticated) {
return [
<li key={1}>
<Link to="/">Home</Link>
</li>,
<li key={2}>... |
ajax/libs/react/0.11.0/react-with-addons.js | sparkgeo/cdnjs | /**
* React (with addons) v0.11.0
*/
!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.React=e()}}(fu... |
src/components/FuelSavingsForm.js | shiftunion/dinnerpanic-ui | import React, {PropTypes} from 'react';
import FuelSavingsResults from './FuelSavingsResults';
import FuelSavingsTextInput from './FuelSavingsTextInput';
// Destrucuring props for brevity below.
const FuelSavingsForm = ({saveFuelSavings, calculateFuelSavings, appState}) => {
const onTimeframeChange = function (e) {
... |
packages/react-devtools-shared/src/devtools/views/Components/TreeFocusedContext.js | acdlite/react | /**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
*/
import {createContext} from 'react';
const TreeFocusedContext = createContext<boolean>(false);
export default TreeFo... |
src/Parser/Rogue/Subtlety/Modules/Talents/DarkShadow/DarkShadowEvis.js | enragednuke/WoWAnalyzer | import React from 'react';
import SPELLS from 'common/SPELLS';
import SpellIcon from 'common/SpellIcon';
import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox';
import SpellLink from 'common/SpellLink';
import Wrapper from 'common/Wrapper';
import DarkShadow from './DarkShadow';
class DarkShadowEvis exte... |
ajax/libs/jquery-tools/1.2.7/jquery.tools.min.js | chrisharrington/cdnjs | /*!
* jQuery Tools v1.2.7 - The missing UI library for the Web
*
* dateinput/dateinput.js
* overlay/overlay.js
* overlay/overlay.apple.js
* rangeinput/rangeinput.js
* scrollable/scrollable.js
* scrollable/scrollable.autoscroll.js
* scrollable/scrollable.navigator.js
* tabs/tabs.js
* tabs/tabs.sli... |
html/node_modules/bs-recipes/recipes/webpack.react-hot-loader/app/js/main.js | HashtagTeamName/q | 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'));
|
app/javascript/client_messenger/messageWindow.js | michelson/chaskiq | import React from 'react'
import styled from '@emotion/styled'
const theme = {
desaturation: 0,
lightness: 0,
hue: 0,
bg: '#F7F7F7',
linkColor: '#2D77B6',
fontColor: '#1F2937',
accentColor: '#234457'
}
const IntroStyle = styled.div`
.close {
/*position: absolute;
top: 0.5rem;
right: 0.5rem... |
src/app/js/icons/TemplateIcon.js | AppSaloon/socket.io-tester | import React from 'react'
const TemplateIcon = ({size, color, customStyle, viewBox, children}) =>
<svg
style={{
height: size,
fill: color,
...customStyle
}}
version="1.1"
x="0px"
y="0px"
viewBox={viewBox}
>
{children}
... |
index.android.js | mrphu3074/react-native-bootstrap | import React from 'react';
import { AppRegistry } from 'react-native';
import RootApp from './src/RootApp'
AppRegistry.registerComponent('RNBootstrap', () => RootApp);
|
packages/material-ui-icons/src/WeekendSharp.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="M6 9.03V14h12V9.03h2V5H4v4.03z" /><path d="M19 15H5v-4.97H1V19h22v-8.97h-4z" /></React.Fragment>
, 'WeekendSharp');
|
ajax/libs/bootstrap-material-design/4.0.0-alpha/bootstrap-material-design.iife.js | extend1994/cdnjs | /*!
* Bootstrap Material Design v4.0.0-alpha (https://github.com/FezVrasta/bootstrap-material-design)
* Copyright 2014-2016 Federico Zivolo
* Licensed under MIT (https://github.com/FezVrasta/bootstrap-material-design/blob/master/LICENSE)
*/
(function () {
'use strict';
var __commonjs_global = typeof window... |
src/widgets/DropdownRow.js | sussol/mobile | /* eslint-disable react/forbid-prop-types */
/**
* mSupply Mobile
* Sustainable Solutions (NZ) Ltd. 2019
*/
import React from 'react';
import { StyleSheet, TextInput } from 'react-native';
import PropTypes from 'prop-types';
import { DropDown } from './DropDown';
import { FlexRow } from './FlexRow';
import { LIGH... |
test/test_helper.js | lnrd256/twitter_client | import _$ from 'jquery';
import React from 'react';
import ReactDOM from 'react-dom';
import TestUtils from 'react-addons-test-utils';
import jsdom from 'jsdom';
import chai, { expect } from 'chai';
import chaiJquery from 'chai-jquery';
import { Provider } from 'react-redux';
import { createStore } from 'redux';
import... |
app/jsx/assignments_2/teacher/components/Overrides/OverrideSummary.js | djbender/canvas-lms | /*
* Copyright (C) 2018 - 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... |
examples/react-native/components/Home.js | aksonov/react-native-router-flux | import React from 'react';
import {View, Text, StyleSheet} from 'react-native';
import Button from 'react-native-button';
import {Actions} from 'react-native-router-flux';
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
backgroundColor: '#F5FCF... |
src/ui/quark/CenteredContent/index.js | jkubos/tickator-ide | import React from 'react'
import classNames from 'classnames'
import styles from './style.less'
export class CenteredContent extends React.Component {
render() {
return <div className={styles.main} onClick={e=>this._onClick(e)}>
{this.props.children}
</div>
}
_onClick(e) {
if (this.props.onCl... |
project/LearnReact/node_modules/material-ui/svg-icons/av/closed-caption.js | xzzw9987/Memos | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDe... |
ajax/libs/6to5/3.0.0/browser.js | wmkcc/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... |
internals/templates/languageProvider/languageProvider.js | pashakbit/react-gallery | /*
*
* LanguageProvider
*
* this component connects the redux state language locale to the
* IntlProvider component and i18n messages (loaded from `app/translations`)
*/
import React from 'react';
import { connect } from 'react-redux';
import { createSelector } from 'reselect';
import { IntlProvider } from 'reac... |
ajax/libs/6to5/1.14.9/browser.js | codevinsky/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... |
app/modules/header/style.js | donofkarma/react-starter | // import React from 'react';
import styled from 'styled-components';
import clearfix from 'styles/utilities/clearfix';
import { colors } from 'styles/tokens/color';
export const SiteHeader = styled.header`
${ clearfix }
padding: 10px;
background: ${ colors.grey.light };
`;
|
public/src/components/products/ProductRow.js | andy1992/react-redux-crud | import React from 'react';
import { Link } from 'react-router';
class ProductRow extends React.Component
{
constructor(props) {
super(props);
this.state = {
checked: this.props.checked
};
this.onChange = this.onChange.bind(this);
}
onChange(e) {
// TODO ... |
app/components/GameShow/AdditionalDetails.js | cdiezmoran/AlphaStage-2.0 | import React from 'react';
import { array, string } from 'prop-types';
import styles from './AdditionalDetails.scss';
import DetailsRow from './DetailsRow';
const AdditionalDetails = ({ languages, publisher, spaceRequired, website }) => (
<div className={styles.AdditionalDetails}>
<p className={styles.Title}>Ad... |
docs/components/Grid/Examples/index.js | enjoylife/storybook | import React from 'react';
import PropTypes from 'prop-types';
import Grid from '../Grid';
import './style.css';
const Examples = ({ items }) =>
<div className="examples">
<div className="heading">
<h1>Storybook Examples</h1>
<a
className="edit-link"
href="https://github.com/storybook... |
demo/2/2.js | nyakovenko/react-swiper | import React from 'react';
import ReactDom from 'react-dom';
import ReactDomServer from 'react-dom/server';
import Swiper from '../../dist/react-swiper';
const App = React.createClass({
render() {
var config = {
slidesPerView: 1,
paginationClickable: true,
spaceBetween: ... |
ajax/libs/material-ui/5.0.0-alpha.18/styles/useTheme.js | cdnjs/cdnjs | import { useTheme as useThemeWithoutDefault } from '@material-ui/styles';
import React from 'react';
import defaultTheme from './defaultTheme';
export default function useTheme() {
const theme = useThemeWithoutDefault() || defaultTheme;
if (process.env.NODE_ENV !== 'production') {
// eslint-disable-next-line r... |
app/containers/HomePage.js | SimpleWeek/desktop-tray-app | import React, { Component } from 'react';
import Home from '../components/Home';
export default class HomePage extends Component {
render() {
return (
<Home />
);
}
}
|
src/server.js | Romsters/react-redux-universal-hot-example | import Express from 'express';
import React from 'react';
import Location from 'react-router/lib/Location';
import config from './config';
import favicon from 'serve-favicon';
import compression from 'compression';
import httpProxy from 'http-proxy';
import path from 'path';
import createStore from './redux/create';
im... |
src/components/cards/Location.js | Cheffheid/ghibli-react | import React from 'react';
import { Link } from 'react-router-dom'
class Location extends React.Component {
render() {
return (
<li className="location">
<h2>
<Link to={`/location/${this.props.data.id}`}>
{this.props.data.name}
</Link>
</h2>
<p class="meta">
{this.props.data.cli... |
modules/Print/NavLink.js | corbmanj/tote | // modules/NavLink.js
import React from 'react'
import { Link } from 'react-router'
export default function NavLink (props) {
return <Link {...props} activeClassName="active"/>
}
|
examples/counter/index.js | andrew-codes/redux | import React from 'react';
import App from './containers/App';
React.render(
<App />,
document.getElementById('root')
);
|
src/isomorphic/classic/element/ReactElementValidator.js | guoshencheng/react | /**
* Copyright 2014-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 ... |
project/src/scenes/Admin/Settings/SettingForm.js | strues/boldr | // @flow
import React from 'react';
import Form, { FormField, Control, Input, Label } from '@boldr/ui/Form';
type Props = {
id: number,
value: any,
};
type State = {
value: any,
};
class SettingForm extends React.Component<Props, State> {
state = { value: this.props.value };
props: Props;
handleChange =... |
src/js/components/Box/stories/Border.js | grommet/grommet | import React from 'react';
import { Box, Text } from 'grommet';
export const BorderBox = () => (
// Uncomment <Grommet> lines when using outside of storybook
// <Grommet theme={...}>
<Box pad="small" gap="small" align="start">
<Box pad="small" border>
true
</Box>
<Box direction="row-responsive... |
webapp/src/NewGame.js | erwannT/go-dart | import React, { Component } from 'react';
import NewGameButton from './NewGameButton'
import logo from './logo.svg';
class NewGame extends Component {
constructor(props) {
super(props)
this.state = {
flavors: []
}
}
componentDidMount() {
console.log("fetching flavors")
fetch('/api/sty... |
dist/build/bundle.js | Hive-Team/venus | !function e(t,n,a){function r(i,s){if(!n[i]){if(!t[i]){var l="function"==typeof require&&require;if(!s&&l)return l(i,!0);if(o)return o(i,!0);throw new Error("Cannot find module '"+i+"'")}var c=n[i]={exports:{}};t[i][0].call(c.exports,function(e){var n=t[i][1][e];return r(n?n:e)},c,c.exports,e,t,n,a)}return n[i].exports... |
Public/cdn/zeroclipboard/2.0.0/ZeroClipboard.js | h136799711/API01 | /*!
* ZeroClipboard
* The ZeroClipboard library provides an easy way to copy text to the clipboard using an invisible Adobe Flash movie and a JavaScript interface.
* Copyright (c) 2014 Jon Rohan, James M. Greene
* Licensed MIT
* http://zeroclipboard.org/
* v2.0.0
*/
(function(window, undefined) {
"use strict";... |
files/rxjs/2.2.10/rx.lite.js | ramda/jsdelivr | // 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,
'u... |
web/src/components/public/detail/Action.js | caicloud/cyclone | import React from 'react';
import PropTypes from 'prop-types';
const Action = props => {
return <div className="action">{props.children}</div>;
};
Action.propTypes = {
children: PropTypes.node,
};
export default Action;
|
__tests__/components/Table-test.js | linde12/grommet | // (C) Copyright 2014-2016 Hewlett Packard Enterprise Development LP
import React from 'react';
import renderer from 'react-test-renderer';
import Table from '../../src/js/components/Table';
import TableHeader from '../../src/js/components/Table';
import TableRow from '../../src/js/components/Table';
// needed becau... |
test/regressions/site/src/tests/RadioGroup/SimpleRadioGroup.js | und3fined/material-ui | // @flow weak
import React from 'react';
import { RadioGroup, LabelRadio as Radio } from 'material-ui/Radio';
export default function SimpleRadioGroup() {
return (
<div style={{ width: 100 }}>
<RadioGroup selectedValue="home">
<Radio label="Home" value="home" />
<Radio label="Work" value="... |
Tests/Components/RoundedButtonTest.js | friskipr/Ignite_MyApp | import 'react-native'
import React from 'react'
import RoundedButton from '../../App/Components/RoundedButton'
import { shallow } from 'enzyme'
import renderer from 'react-test-renderer'
test('RoundedButton component renders correctly', () => {
const tree = renderer.create(<RoundedButton onPress={() => {}} text='how... |
4.5/src/SoundBoard/bower_components/jquery-validation/lib/jquery-1.6.4.js | tutsplus/get-started-with-aspnet | /*!
* jQuery JavaScript Library v1.6.4
* 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 Licenses.
... |
app/containers/App/index.js | bhefty/react-redux-boilerplate | import React from 'react'
import Helmet from 'react-helmet'
import styled, { ThemeProvider } from 'styled-components'
import { Switch, Route } from 'react-router-dom'
import Header from 'components/Header'
import Footer from 'components/Footer'
import HomePage from 'containers/HomePage/Loadable'
import FeaturePage fro... |
webpack/components/shared_show/GroupLookUp.js | CDCgov/SDP-Vocabulary-Service | import React, { Component } from 'react';
import PropTypes from 'prop-types';
import currentUserProps from '../../prop-types/current_user_props';
class GroupLookUp extends Component {
render() {
let groups = this.props.item.groups || [];
return (
<div className="btn-group">
<button className="b... |
src/svg-icons/av/branding-watermark.js | verdan/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let AvBrandingWatermark = (props) => (
<SvgIcon {...props}>
<path d="M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16h-9v-6h9v6z"/>
</SvgIcon>
);
AvBrandingWatermark = pure(AvBran... |
stories/Alert.js | Bandwidth/shared-components | import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import Alert from 'components/Alert';
import Grid from 'layouts/Grid';
import ipsum from 'lorem-ipsum';
class DismissState extends React.PureComponent {
state = { show: true };
handleClose =... |
ajax/libs/oojs-ui/0.17.7/oojs-ui-windows.js | ahocevar/cdnjs | /*!
* OOjs UI v0.17.7
* https://www.mediawiki.org/wiki/OOjs_UI
*
* Copyright 2011–2016 OOjs UI Team and other contributors.
* Released under the MIT license
* http://oojs.mit-license.org
*
* Date: 2016-08-03T16:38:22Z
*/
( function ( OO ) {
'use strict';
/**
* An ActionWidget is a {@link OO.ui.ButtonWidget ... |
server/sonar-web/src/main/js/apps/background-tasks/components/Header.js | lbndev/sonarqube | /*
* SonarQube
* Copyright (C) 2009-2017 SonarSource SA
* mailto:info AT sonarsource DOT com
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, o... |
app/javascript/mastodon/containers/media_gallery_container.js | increments/mastodon | import React from 'react';
import PropTypes from 'prop-types';
import { IntlProvider, addLocaleData } from 'react-intl';
import { getLocale } from '../locales';
import MediaGallery from '../components/media_gallery';
import { fromJS } from 'immutable';
const { localeData, messages } = getLocale();
addLocaleData(locale... |
src/Components/DatePicker/MonthsView.js | sqhtiamo/zaro | import React from 'react';
import createClass from 'create-react-class';
import onClickOutside from 'react-onclickoutside';
/* eslint-disable */
function capitalize(str) {
return str.charAt(0).toUpperCase() + str.slice(1);
}
const DOM = React.DOM;
const DateTimePickerMonths = onClickOutside(createClass({
renderMon... |
packages/showcase/misc/2d-dragable-plot.js | uber-common/react-vis | // Copyright (c) 2016 - 2017 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify... |
packages/react-widgets/test/CalendarMonth-test.js | haneev/react-widgets | import React from 'react'
import tsp from 'teaspoon';
import Month from '../src/Month'
describe('Month Component', function(){
it('should use the right format', () => {
var date = new Date(2015, 1, 16, 0, 0, 0)
, formatter = sinon.spy(() => 'hi')
tsp(
<Month
value={date}
focuse... |
packages/material-ui-icons/src/Feedback.js | AndriusBil/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from 'material-ui/SvgIcon';
let Feedback = props =>
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-7 12h-2v-2h2v2zm0-4h-2V6h2v4z" />
</SvgIcon>;
Feedback = pure(Feedback);
Fee... |
common/components/App.js | BostonGlobe/elections-2017 | import React from 'react'
import PropTypes from 'prop-types'
const App = ({ children }) => (
<div className='App'>
{ children }
</div>
)
App.propTypes = {
children: PropTypes.object.isRequired,
}
export default App
|
packages/material-ui-icons/src/OpacityTwoTone.js | Kagami/material-ui | import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M24 0H0v24h24V0zm0 0H0v24h24V0zM0 24h24V0H0v24z" /><path d="M16.24 9.65L12 5.27 7.76 9.6C6.62 10.73 6.01 12 6 14h12c-.01-2-.62-3.23-1.76-4.35z" opacity=".3" /><path d="M17.... |
ajax/libs/yui/3.18.0/scrollview-base/scrollview-base-debug.js | aashish24/cdnjs | YUI.add('scrollview-base', function (Y, NAME) {
/**
* The scrollview-base module provides a basic ScrollView Widget, without scrollbar indicators
*
* @module scrollview
* @submodule scrollview-base
*/
// Local vars
var getClassName = Y.ClassNameManager.getClassName,
DOCUMENT = Y.config.doc,
IE = Y.UA.ie... |
ajax/libs/webshim/1.14.0/dev/shims/moxie/js/moxie.js | jacoborus/cdnjs | /**
* mOxie - multi-runtime File API & XMLHttpRequest L2 Polyfill
* v1.2.1
*
* Copyright 2013, Moxiecode Systems AB
* Released under GPL License.
*
* License: http://www.plupload.com/license
* Contributing: http://www.plupload.com/contributing
*
* Date: 2014-05-14
*/
/**
* Compiled inline version. (Library ... |
src/components/layout.js | openregister/specification | import React from 'react';
import PropTypes from 'prop-types';
import { StaticQuery, graphql } from 'gatsby';
import 'prismjs/themes/prism.css';
const Layout = ({children}) => (
<StaticQuery
query={graphql`
query LayoutQuery {
core: coreToml {
title
}
}`}
render={() => {... |
js/vendor/jquery-1.9.1.min.js | JonathanMatthey/ogglpro | /*! jQuery v1.9.1 | (c) 2005, 2012 jQuery Foundation, Inc. | jquery.org/license
//@ sourceMappingURL=jquery.min.map
*/(function(e,t){var n,r,i=typeof t,o=e.document,a=e.location,s=e.jQuery,u=e.$,l={},c=[],p="1.9.1",f=c.concat,d=c.push,h=c.slice,g=c.indexOf,m=l.toString,y=l.hasOwnProperty,v=p.trim,b=function(e,t){return... |
packages/mui-icons-material/lib/esm/KeyboardDoubleArrowDown.js | oliviertassinari/material-ui | import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M18 6.41 16.59 5 12 9.58 7.41 5 6 6.41l6 6z"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "m18 13-1.41-1.41L12 16.17l-4.59-4.58L6 13l6 6z"
}, "1")], 'KeyboardD... |
ajax/libs/choices.js/2.8.9/choices.js | jdh8/cdnjs | /*! choices.js v2.8.9 | (c) 2017 Josh Johnson | https://github.com/jshjohnson/Choices#readme */
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define([], fact... |
ajax/libs/forerunnerdb/1.3.755/fdb-core+persist.min.js | rlugojr/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... |
ajax/libs/nuclear-js/0.6.0/nuclear.js | shelsonjava/cdnjs | (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(typeof exports === 'object')
exports["Nuclear"] = factory();
else
root["Nuclear"]... |
test/integration/List/selectableList.spec.js | pancho111203/material-ui | import React from 'react';
import {assert} from 'chai';
import {shallow} from 'enzyme';
import List from 'src/List/List';
import ListItem from 'src/List/ListItem';
import makeSelectable from 'src/List/makeSelectable';
import injectTheme from '../fixtures/inject-theme';
import getMuiTheme from 'src/styles/getMuiTheme';
... |
ajax/libs/material-ui/5.0.0-alpha.24/node/List/ListContext.js | cdnjs/cdnjs | "use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var React = _interopRequireWildcard(require("react"));
/**
* @ignore - internal component.
*/
const ListContext = /*#__PU... |
ajax/libs/F2/1.2.1/f2.no-bootstrap.min.js | upgle/cdnjs | /*! F2 - v1.2.2 - 08-22-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... |
docs/src/app/components/pages/components/IconMenu/ExampleSimple.js | w01fgang/material-ui | import React from 'react';
import IconMenu from 'material-ui/IconMenu';
import MenuItem from 'material-ui/MenuItem';
import IconButton from 'material-ui/IconButton';
import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert';
/**
* Simple Icon Menus demonstrating some of the layouts possible using the `anc... |
src/js/components/app-component.js | dashukin/StyleMe | 'use strict';
import React from 'react';
import AppStore from '../stores/store';
import AppActions from '../actions/actions';
import StylesheetsComponent from './app-stylesheets-component';
import OptionsComponent from './app-options-component';
import FooterActionsComponent from './app-footer-actions-component';
imp... |
src/GreenNav.js | jrios6/GreenNav | import React, { Component } from 'react';
import ol from 'openlayers';
import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar';
import FlatButton from 'material-ui/FlatButton';
import { green50 } from 'material-ui/styles/colors';
import FontIcon from 'material-ui/FontIcon';
import Di... |
src/svg-icons/action/speaker-notes.js | spiermar/material-ui | import React from 'react';
import pure from 'recompose/pure';
import SvgIcon from '../../SvgIcon';
let ActionSpeakerNotes = (props) => (
<SvgIcon {...props}>
<path d="M20 2H4c-1.1 0-1.99.9-1.99 2L2 22l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zM8 14H6v-2h2v2zm0-3H6V9h2v2zm0-3H6V6h2v2zm7 6h-5v-2h5v2zm3-3h-8V9h8v2zm0-... |
components/DiscussionSection.js | concensus/react-native-ios-concensus | import React, { Component } from 'react';
import {
StyleSheet,
Text,
TextInput,
View,
ListView,
KeyboardAvoidingView,
Keyboard,
} from 'react-native';
import DiscussionPost from './DiscussionPost';
import { firebase, newComment } from '../api/firebase';
export default class DiscussionSectio... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.