code stringlengths 2 1.05M |
|---|
version https://git-lfs.github.com/spec/v1
oid sha256:817c7660edbc8475fb34af11e788c2531da964e4a1a5d447741804a4fc0409b2
size 2477
|
import React from 'react'
import Icon from 'react-icon-base'
const MdTimelapse = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m20 33.4c7.3 0 13.4-6.1 13.4-13.4s-6.1-13.4-13.4-13.4-13.4 6.1-13.4 13.4 6.1 13.4 13.4 13.4z m0-30c9.2 0 16.6 7.4 16.6 16.6s-7.4 16.6-16.6 16.6-16.6-7.4-16.6-16.6 7... |
// Instagram global values
Alloy.Globals.instagram = {
clientId: "your-instagram-client-id",
clientSecret: "your-instagram-client-secret",
urlCallback: "your-instagram-URL-callback"
};
// This is the scale required for the grids in order to trigger the main navigation
Alloy.Globals.triggerNavigationScale = 0.6;
// ... |
/**
* @ignore
* Observer for custom event
* @author yiminghe@gmail.com
*/
KISSY.add('event/custom/observer', function (S, BaseEvent) {
/**
* Observer for custom event
* @class KISSY.Event.CustomEventObserver
* @extends KISSY.Event.Observer
* @private
*/
function CustomEventObserver... |
version https://git-lfs.github.com/spec/v1
oid sha256:acf69f6ec9e5e207bb6a680c787f57b7b2b728b1c91fa68226bd3ef11d6dec9b
size 2391
|
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M16.76 9l1.41 1.41-9.19 9.19 1.41 1.41 9.19-9.19L21 13.24V9h-4.24zm-8.28 3.75l3.54-3.54 2.19.92 1.48-1.48L4.56 4.23 3.5 5.29l4.42 11.14 1.48-1.48-.92-2.2zm-.82-1.72L5.43 6.16l4.87 2.23-2.64 2.64z... |
import _ from 'underscore';
import assert from 'assert';
import { oldToNew as oldToNewPluginIds, newToOld as newToOldPluginIds }
from 'cordova-registry-mapper';
export const CORDOVA_ARCH = "web.cordova";
export const AVAILABLE_PLATFORMS = ['ios', 'android'];
const PLATFORM_TO_DISPLAY_NAME_MAP = {
'ios': 'iOS',
... |
var App, store, debugAdapter, get = Ember.get;
var run = Ember.run;
module("DS.DebugAdapter", {
setup: function() {
Ember.run(function() {
App = Ember.Application.create();
App.toString = function(){ return 'App'; };
App.ApplicationStore = DS.Store.extend({
adapter: DS.Adapter.extend()... |
"use strict";
const ccxt = require ('../../ccxt')
, settings = require ('./credentials.json')
const enableRateLimit = true
async function test () {
const ids = ccxt.exchanges.filter (id => id in settings)
const exchanges = ccxt.indexBy (await Promise.all (ids.map (async id => {
// instanti... |
(function() {
'use strict';
angular.module('app.profile', ['ui.router','app.profile.view','app.profile.edit'])
.config(config);
config.$inject = ['$stateProvider'];
function config($stateProvider) {
$stateProvider
.state( 'profileEdit', {
url: '/user/edit/:username',
vie... |
/** Implements serialization of objects. Serializable objects are treated as special
and their included/excluded function return values are used to decide which of their fields to serialize.
This Serializer does NOT serialize Serializable objects uniquely and does not support any cyclic references.
Uses following r... |
/**
* Created by dev14 on 2016. 1. 26..
*/
var fs = require('fs');
var mysql = require('mysql');
var connection = mysql.createConnection({
host :'localhost',
port : 3306,
user : 'root',
password : '1111',
database:'chat'
});
exports.loginCheck = function(req,res) {
if (!req.body)
... |
var React = require('react');
var InputField = React.createClass({
getInitialState: function(){
return { editing: false };
},
handleEdit: function(){
this.setState({ editing: true });
},
onBlur: function(e){
/* Se podria hacer una validacion */
this.setState({ editing: false });
},
inputDidMount: fu... |
// This file is an entry point for angular tests
// Avoids some weird issues when using webpack + angular.
import 'angular';
import 'angular-mocks/angular-mocks';
const contextSrc = require.context('./src', true, /\.js$/);
const contextExamples = require.context('./examples', true, /\.js$/);
contextSrc.keys().forEac... |
let task1Solution = require("./1. Hills/solution");
let task2Solution = require("./2. Chess Moves KQ/solution");
let task3Solution = require("./3. CookieLESS and CookieHas/solution");
let task1Tests = [
["5 1 7 4 8"],
["5 1 7 6 3 6 4 2 3 8"],
["10 1 2 3 4 5 4 3 2 1 10"]
];
let task2Tests = [
["3", "4"... |
import test from 'ava'
import _ from 'lodash'
import { set, info } from '../lib/logger'
/**
* Shows usage for clients, and validates that it works!
*/
test('set loggers', t => {
let msg
// Can set only certain loggers, and let others use debug logging
const loggers = {
info: function () { msg = 'id ' + _... |
/* */
"format global";
}());
|
(function () {
"use strict";
angular.module('dlDashboard').directive('dlWidgetBody',
['$compile', '$modal',
function ($compile, $modal) {
return {
templateUrl: 'ext-modules/dlDashboard/dlWidgetBodyTemplate.html',
link: function (scope... |
export default class SirTrevorListComponent extends React.Component {
static propTypes = {
sirTrevorData: React.PropTypes.object.isRequired
}
render () {
return (
<div className='sir-trevor-list-block'>
<ul>
{(() => {
return this.props.sirTrevorData.listItems.map((list... |
import angular from 'angular';
/**
* I am the messages directive for description and error message handling
*
* @param {object} $injector I am the Angular injector for optional dependencies
* @param {object} sfErrorMessage I contain the interpolation function for messages
*
* @return {object} I am the message ... |
// Get all of our friend data
var data = require('../data.json');
exports.view = function(req, res){
//console.log(data);
res.render('index', data);
}; |
require({cache:{
'url:dojox/grid/resources/View.html':"<div class=\"dojoxGridView\" role=\"presentation\">\n\t<div class=\"dojoxGridHeader\" dojoAttachPoint=\"headerNode\" role=\"presentation\">\n\t\t<div dojoAttachPoint=\"headerNodeContainer\" style=\"width:9000em\" role=\"presentation\">\n\t\t\t<div dojoAttachPoint=\... |
var assert = require('assert');
var path = require('path');
var fs = require('fs');
var muk = require('muk');
var Index = require('../../lib/index.js');
var instance = new Index();
instance.load();
think.APP_PATH = path.dirname(__dirname) + think.sep + 'testApp';
var Base = think.safeRequire(path.resolve(__dirname,... |
import BlogIndexController from '../index';
export default class Category extends BlogIndexController {
}
|
export const playMode = {
sequence: 0,
loop: 1,
random: 2
};
|
/* see http://stackoverflow.com/questions/30106476/using-javascripts-atob-to-decode-base64-doesnt-properly-decode-utf-8-strings */
export default function atob(str) {
str = str.replace(/\s/g, '');
str = window ? window.atob(str) : nodeAtob(str);
return decodeURIComponent(escape(str));
}
function nodeAtob(str) ... |
const {Component} = wp.element;
const {__, setLocaleData} = wp.i18n;
import apiFetch from '@wordpress/api-fetch';
import React from 'react';
import Select from 'react-select';
export default class VersionInput extends Component {
constructor( props ) {
super( props );
this.state = { versions: [], currentDownloa... |
import Listing from './Listing';
import CommentsEndpoint from '../apis/CommentsEndpoint';
import NotImplementedError from '../apiBase/errors/NotImplementedError';
export default class CommentsPage extends Listing {
static endpoint = CommentsEndpoint
static fetch(apiOptions, id) {
if (typeof id === 'string') {... |
var baseIndexOf = require('../internal/baseIndexOf');
/** Used for native method references. */
var arrayProto = Array.prototype;
/** Native method references. */
var splice = arrayProto.splice;
/**
* Removes all provided values from `array` using `SameValueZero` for equality
* comparisons.
*
* **Not... |
/**
* @fileOverview Data 命名空间的入口文件
* @ignore
*/
var BUI = require('bui-common'),
Data = BUI.namespace('Data');
BUI.mix(Data, {
Sortable: require('./src/sortable'),
Proxy: require('./src/proxy'),
AbstractStore: require('./src/abstractstore'),
Store: require('./src/store'),
Node: require('./src/node'),... |
"use strict";
var aurelia_metadata_1 = require('aurelia-metadata');
var style_locator_1 = require('./style-locator');
var style_engine_1 = require('./style-engine');
var StyleResource = (function () {
function StyleResource() {
}
StyleResource.prototype.initialize = function (container, target) {
th... |
/**
* Created by tim on 5/10/16.
==========================================================================
Predator.js in data-science-games.
Author: Tim Erickson
Copyright (c) 2016 by The Concord Consortium, Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you ma... |
/**
* @author: @AngularClass
*/
// Look in ./config folder for webpack.dev.js
module: {
noParse: [
/aws-sdk/
]
}
switch (process.env.NODE_ENV) {
case 'prod':
case 'production':
module.exports = require('./config/webpack.prod')({env: 'production'});
break;
case 'test':
case 'testing':
m... |
/*jslint nomen: true, plusplus: true, es5: true, regexp: true */
/*global Notification, GS, GSX, GSXmagnifyingSettings, console, Linkified, $, _ */
var GSXUtil = (function () {
'use strict';
return {
/**
* Ask user for notification permission
*/
grantNotificationPermission: function () {
N... |
'use strict';
var express = require('express');
var q = require('q');
var app = express();
var assert = require('assert');
var utilities = require('../../../utilities');
app.get('/:id/translations/:language', function (req, res) {
q.resolve().then(function () {
assert(req.hasOwnProperty('song'));
... |
/**
* @memberOf Jymfony.Component.HttpServer.Tests.Fixtures.RegisterControllers
*/
export default class ControllerDummy
{
}
|
/**
* Represents a Firebase User
*/
export class User {
/**
* A unique user ID, intented as the user's unique key accross all providers
* @type {string}
*/
uid = null;
/**
* The authentication method used
* @type {string}
*/
provider = null;
/**
* The Firebase authentication token fo... |
import NoOpShadow from './shadows/NoOpShadow';
import GradientShadow from './shadows/GradientShadow';
import {InvisibleBoxWrapper} from './foregroundBoxes/InvisibleBoxWrapper';
import GradientBox from './foregroundBoxes/GradientBox';
import CardBox from "./foregroundBoxes/CardBox";
import CardBoxWrapper from "./foregr... |
'use strict';
/**
* Dependencies
*/
const isPositive = require('./is-positive');
/**
* isPositive()
*/
describe('isPositive()', () => {
it('should consider positive numbers positive', () => {
expect(isPositive(1)).to.be.true();
expect(isPositive(1.25)).to.be.true();
expect(isPositive(1000)).to.be.tr... |
/*!
* BlendButton.js
* Developed under the MIT license.
* @version 0.9
* @author mach3
*/
(function($, undefined){
$.fn.extend({
/**
* jQuery.fn.blendButton();
* @param Object option configuration
* @return itself
*/
blendButton : function(option){
var my = {};
my.option = $.extend({
in... |
var eventEmitter = require('./eventEmitter');
var svgElement = require('./svgElement');
var select = require('./select');
var move = require('./move');
var utils = require('./utils');
var uriToPng = require('./uriToPng');
var defaults = {
width: 500,
height: 500,
scaleFactor: 1,
unit: 'pixel',
dpi... |
/*!
* jQuery UI Widget @VERSION
* http://jqueryui.com
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license.
* http://jquery.org/license
*/
//>>label: Widget
//>>group: UI Core
//>>description: Provides a factory for creating stateful widgets with a common API.
//>>docs: http:/... |
var searchData=
[
['commandbuffer_0',['commandBuffer',['../struct_vma_defragmentation_info2.html#a7f71f39590c5316771493d2333f9c1bd',1,'VmaDefragmentationInfo2']]]
];
|
module.exports = /* glsl */ `
attribute vec3 aPosition;
attribute vec3 aNormal;
uniform mat4 uProjectionMatrix;
uniform mat4 uViewMatrix;
uniform mat4 uModelMatrix;
varying vec3 vNormalWorld;
varying vec3 vPositionWorld;
void main () {
vec4 positionWorld = uModelMatrix * vec4(aPosition, 1.0);
vPositionWorld = pos... |
/**
* Spooky Bank Transaction Aggregator
* ----------------------------------
*
* Depends (Via Bower on MacOSX):
* Node.js >= 0.8
* PhantomJS >= 1.9
* CasperJS >= 1.0
*
* NOTE: To install casper, use the following patch as a work around for the "CasperJS 1.0.x does not support PhantomJS version >= 1... |
'use strict';
/**
* Main Project Config
* see '/project/docs/nitro-config.md'
*/
const extend = require('extend');
const baseConfig = require('@nitro/app/app/core/config');
const defaultConfig = {
code: {
validation: {
eslint: {
live: false,
},
htmllint: {
live: true,
},
jsonSchema: {
... |
const name = 'countdown';
describe("Metro 4 :: Countdown", () => {
it('Component Initialization', ()=>{
cy.visit("cypress/"+name+".html");
})
}) |
define("dojorama/ui/release/nls/ReleaseCreatePage", {
root: {
pageTitle: 'Create New Release'
}
}); |
(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... |
angular.module('gettext').directive('translate', function (gettextCatalog, $interpolate, $parse, $compile) {
/**
* Trim fallback for old browsers(instead of jQuery)
* Based on AngularJS-v1.2.2 (angular.js#620)
*/
var trim = (function () {
if (!String.prototype.trim) {
return f... |
module.exports = {
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended",
"prettier/@typescript-eslint"
],
plugins: ["react-hooks"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true
},
proj... |
(function(module) {
module.run(['$httpBackend', '$filter', '$location', function($httpBackend, $filter, $location) {
// Intercept only the calls we want to mock
// EXAMPLE CRUD INTERCEPTION OF A RESOURCE NAMED "Products".
// Feel free to refactor this out into other files, but heed t... |
module.exports = require('./lib/summary.js');
|
(function() {
'use strict';
angular
.module('app')
.config(config);
config.$inject = [];
function config() {
}
}());
|
/// <reference path="../imports.ts" />
var Msp;
(function (Msp) {
'use strict';
var MapController = (function () {
function MapController($scope, $http) {
this.$scope = $scope;
this.$http = $http;
this.map = this.createMap();
var center = this.map.getCen... |
exports.BattleItems = {
"abomasite": {
id: "abomasite",
name: "Abomasite",
spritenum: 575,
megaStone: "Abomasnow-Mega",
megaEvolves: "Abomasnow",
onTakeItem: function (item, source) {
if (item.megaEvolves === source.baseTemplate.baseSpecies) return false;
return true;
},
num: 674,
gen: 6,
des... |
var cal = {};
function generateEvent() {
var event = {
'summary' : $('#eventtitle').val(),
'description' : 'PM for ' + window.location.href
};
event.start = {};
event.start.dateTime = new Date().toISOString();
event.start.timeZone = cal.timezone;
event.id = cal.eventId;
eve... |
var get = Ember.get, set = Ember.set;
Ember.ManyArray = Ember.RecordArray.extend({
_records: null,
originalContent: null,
_modifiedRecords: null,
unloadObject: function(record) {
var obj = get(this, 'content').findBy('clientId', record._reference.clientId);
get(this, 'content').removeObject(obj);
... |
game.SpendGold = Object.extend({
init: function(x, y, settings){
this.now = new Date().getTime();
this.lastBuy = new Date().getTime();
this.updateWhenPaused = true;
this.paused = false;
this.alwaysUpdate = true;
this.buying = false;
},
update: function(){... |
import Service from '@ember/service';
import hbs from 'htmlbars-inline-precompile';
import {describe, it} from 'mocha';
import {A as emberA} from '@ember/array';
import {expect} from 'chai';
import {find, findAll, render, settled} from '@ember/test-helpers';
import {setupRenderingTest} from 'ember-mocha';
let notifica... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var ImageFilter7 = React.createClass({
displayName: 'ImageFilter7',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M3 5H1v16c0 1.1.9 2 2 2h16v... |
// Forecast: The weather effect that will be applied at the end of a turn, which causes fires to spread.
// DO NOT MODIFY THIS FILE
// Never try to directly create an instance of this class, or modify its member variables.
// Instead, you should only be reading its variables and calling its functions.
const client = ... |
$( document ).ready(function() {
// CSRF Token Settings
// https://docs.djangoproject.com/en/dev/ref/csrf/#ajax
// using jQuery
function getCookie(name) {
var cookieValue = null;
if (document.cookie && document.cookie !== '') {
var cookies = document.cookie.split(';');
... |
ace.define("ace/snippets/toml",["require","exports","module"],function(e,t,n){"use strict";t.snippetText=undefined,t.scope="toml"})
|
exports.config = {
directConnect: true,
capabilities: {
browserName: 'chrome',
chromeOptions: {
// Important for benchpress to get timeline data from the browser
'args': ['--js-flags=--expose-gc'],
'perfLoggingPrefs': {
'traceCategories': 'b... |
import {tau} from "../math.js";
import noop from "../noop.js";
export default function PathContext(context) {
this._context = context;
}
PathContext.prototype = {
_radius: 4.5,
pointRadius: function(_) {
return this._radius = _, this;
},
polygonStart: function() {
this._line = 0;
},
polygonEnd: ... |
define({
"size.natural": "OriginalgröÃe",
"button.addimg.tooltip": "Bild hinzufügen",
"floatingmenu.tab.img": "Bild",
"floatingmenu.tab.formatting": "Formatierung",
"floatingmenu.tab.resize": "GröÃe anpassen",
"floatingmenu.tab.crop": "Zuschneiden",
"button.uploadimg.tooltip": "Bild hochladen",
"button.upl... |
ZRF = {
JUMP: 0,
IF: 1,
FORK: 2,
FUNCTION: 3,
IN_ZONE: 4,
FLAG: 5,
SET_FLAG: 6,
POS_FLAG: 7,
SET_POS_FLAG: 8,
ATTR: 9,
SET_ATTR: 10,
PROMOTE: 11,
MODE: 12,
ON_BO... |
//noinspection BadExpressionStatementJS
'format es6';
let name = 'root.formsdemo';
import { registerUiState } from 'nn-ng-utils';
import controller from './formsdemo-state-controller';
import template from './formsdemo-state.html!text';
let config = {
abstract : false,
url : '^/formsdemo',
templ... |
tinyMCE.addI18n('cs.media_dlg',{
title:"Vlo\u017Eit/editovat vkl\u00E1dan\u00E1 m\u00E9dia",
general:"Hlavn\u00ED",
advanced:"Pokro\u010Dil\u00E9",
file:"Soubor/URL",
list:"Seznam",
size:"Rozm\u011Bry",
preview:"N\u00E1hled",
constrain_proportions:"Zachovat proporce",
type:"Typ",
id:"ID",
name:"N\u00E1zev",
... |
'use strict';
// TODO: turn into class
export default {
get: function(resource) {
return function(path) {
try {
// do Ajax call
return path;
} catch (e) {
return {error: 'ajax error', resource: resource};
}
};
}
};
|
/* ************************************ */
/* Define helper functions */
/* ************************************ */
var getInstructFeedback = function() {
return '<div class = centerbox><p class = center-block-text>' + feedback_instruct_text +
'</p></div>'
}
var randomDraw = function(lst) {
var index = Math.fl... |
module.exports = function(grunt) {
/**
* 1.清理
* 2.用bower安装依赖
* 3.生成stylus样式
*/
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
//clean the dist before copy & compile files
clean: {
dist: ["dist/"],
examples: ["examples/butterfly"]
},
//just run 'grunt bowe... |
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbo... |
/**
* @name packages task
* @desc
*/
module.exports = function(grunt){
grunt.registerTask('packages',function(){
var tasks = [
'clean:bower',
'bower:install',
'bowercopy'
];
grunt.task.run(tasks);
});
}; |
'use strict';
/**
* Module dependencies.
*/
var passport = require('passport');
module.exports = function(app) {
// User Routes
var users = require('../../app/controllers/users.server.controller');
// Setting up the users profile api
app.route('/users/me').get(users.me);
app.route('/users').put(users.upd... |
'use strict';
exports._parent = require('../../view/user-base');
exports['submitted-menu'] = function () {
li({ class: 'submitted-menu-item-active' }, a({ href: '/statistics/' }, "Statistics"));
};
exports['sub-main'] = {
class: { content: true, 'user-forms': true },
content: function () {
h2("Registrations sta... |
var mysql = require('mysql');
var dbRobot = require('../../dbRobot');
var DateHelper = require('../../common/DateHelper');
var pool = dbRobot.getPool();
var SQLs = {
getAlbums: 'select album_id, album_title, pic_url from images group by album_id',
getImagesByAlbumId: 'select pic_url,pic_title from image... |
/* @flow */
export function snakeToError(type: string): string{
// splits type then capitalizes each word
// turns 'example-text' into 'Example Text'
let format = type.split('-');
format = format.map((item)=>{
return item[0].toUpperCase() + item.slice(1);
});
let formattedType = format.join(' ');
... |
/** Modified from original Node-Red source, for audio system visualization
* vim: set ts=4:
* Copyright 2014 IBM Corp.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.a... |
//>>built
define("dojo/_base/lang dojo/_base/declare dojo/_base/Color ../../RectangularGauge ../../LinearScaler ../../RectangularScale ../../RectangularValueIndicator ../DefaultPropertiesMixin".split(" "),function(e,f,d,g,h,k,l,m){return f("dojox.dgauges.components.grey.VerticalLinearGauge",[g,m],{borderColor:[148,152,... |
const { pluralise } = require('../config/nunjucks/filters')
function hasExportPermission(userPermissions, targetPermission) {
return userPermissions.includes(targetPermission)
}
function invalidNumberOfItems(resultCount, maxItems) {
return resultCount === 0 || resultCount >= maxItems
}
function buildExportMessag... |
const DrawCard = require('../../drawcard');
const GameActions = require('../../GameActions');
class DelenaFlorent extends DrawCard {
setupCardAbilities(ability) {
this.persistentEffect({
condition: () => this.game.currentPhase === 'challenge',
match: card => card.isMatch({ type: 'ch... |
import _ from 'lodash';
import React, { Component } from 'react';
import { connect } from 'react-redux';
import { Link } from 'react-router-dom';
import { fetchPosts } from '../actions';
class PostsIndex extends Component {
componentDidMount() {
this.props.fetchPosts();
}
renderPosts() {
return _.map(th... |
/*!
* MediaElement.js
* HTML5 <video> and <audio> shim and player
* http://mediaelementjs.com/
*
* Creates a JavaScript object that mimics HTML5 MediaElement API
* for browsers that don't understand HTML5 or can't play the provided codec
* Can play MP4 (H.264), Ogg, WebM, FLV, WMV, WMA, ACC, and MP3
*
* Copyri... |
/**
* @author Widya Saseno (saseno@gmail.com)
*/
oldModule.controller('oldModule.PTSPController', ['$scope', '$location', '$constant', 'CivilServiceService', 'HighchartService',
function ($scope, $location, $constant, civilServiceService, highchartService) {
$scope.waitingTime = highchartService.waitingT... |
'use strict';
var $ = require('jquery');
var ModernRequester = require('../../src/js/requester/modern');
if (window.FormData) {
describe('Modern Requester', function() {
var formView = jasmine.createSpyObj('formView', ['resetFileInput']);
var uploader = {
$targetFrame: $('iframe'),
... |
define(function() {
/*
* Extends `Math` with some useful methods.
*/
Math.lerp = function(a, b, t) {
return (1 - t) * a + t * b;
};
Math.clamp = function(x, l, u) {
return Math.min(u, Math.max(x, l));
};
return Math;
}); |
/**
* 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 type {ReactComponentMeasure, TimelineData, ViewState} from '../types';
import type {
Interaction,
Intrinsic... |
YUI.add('datatype-date-format', function (Y, NAME) {
/**
* The `datatype` module is an alias for three utilities, Y.Date,
* Y.Number and Y.XML, that provide type-conversion and string-formatting
* convenience methods for various JavaScript object types.
*
* @module datatype
* @main datatype
*/
/**
* The Date ... |
import React, { memo, useMemo } from 'react';
import PropTypes from 'prop-types';
import { useRBAC, LoadingIndicatorPage, difference } from '@strapi/helper-plugin';
import ListView from '../ListView';
import { generatePermissionsObject } from '../../utils';
const Permissions = props => {
const viewPermissions = use... |
'use strict';
var Node = module.exports = function Node() {
};
/**
* Clone this node (return itself)
*
* @return {Node}
* @api private
*/
Node.prototype.clone = function () {
var err = new Error('node.clone is deprecated and will be removed in v2.0.0');
console.warn(err.stack);
return this;
};
Node... |
//>>built
define(["./has"],function(a){if(a("host-browser")){var c=navigator,b=c.userAgent,c=c.appVersion,d=parseFloat(c);a.add("edge",parseFloat(b.split("Edge/")[1])||void 0);a.add("webkit",!a("edge")&&parseFloat(b.split("WebKit/")[1])||void 0);a.add("chrome",!a("edge")&&!0&&parseFloat(b.split("Chrome/")[1])||void 0);... |
var gulp = require('gulp');
var runSequence = require('run-sequence');
var changed = require('gulp-changed');
var plumber = require('gulp-plumber');
var to5 = require('gulp-babel');
var sourcemaps = require('gulp-sourcemaps');
var paths = require('../paths');
var compilerOptions = require('../babel-options');
var assig... |
///////////////////////////////////////////////////////////////////////////////
//
// AutobahnJS - http://autobahn.ws, http://wamp.ws
//
// A JavaScript library for WAMP ("The Web Application Messaging Protocol").
//
// Copyright (c) Crossbar.io Technologies GmbH and contributors
//
// Licensed under the MIT Licens... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... |
import React from 'react';
import { render } from 'react-dom';
import store from './app/store';
import { Provider } from 'react-redux';
/**
* Get and set application code...
*/
import App from './app';
// Create app component
const app = document.querySelector('#root');
// Render main application
render(<Provid... |
(function(){
var app = angular.module('store', [ ]);
app.controller('StoreController', function(){
this.product = gem;
});
var gem = {
name: 'Daniel Will George',
price: 'Age: 27',
description: 'Left Brain: Computer Science, Right Brain: Actor',
}
})();
|
import Ember from 'ember';
export function d3SelectAll([selector]) {
return function(d3el) {
// if (Ember.typeOf(d3el) === 'string') {
// d3el = selectAll(d3el);
// }
return d3el.selectAll(selector);
};
}
export default Ember.Helper.helper(d3SelectAll);
|
"use strict";
var through = require('through2'),
gutil = require('gulp-util'),
http = require('http'),
https = require('https'),
inject = require('connect-inject'),
connect = require('connect'),
proxy = require('proxy-middleware'),
watch = require('node-watch'),
fs = require('fs'),
serveIndex = requi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.