code stringlengths 2 1.05M |
|---|
class CryptoUtil {
constructor() {
}
}
CryptoUtil.exportPublicKey = async function (key) {
return await window.crypto.subtle.exportKey('spki', key);
}
CryptoUtil.exportPrivateKey = async function (key) {
return await window.crypto.subtle.exportKey('pkcs8', key);
}
CryptoUtil.uint8ArrayToHex = func... |
define(['bluebird', 'kb_lib/observed'], (Promise, Observed) => {
'use strict';
return class Menu {
constructor({config}) {
this.config = config;
this.state = new Observed();
this.state.setItem('menuItems', {
divider: {
type: 'divi... |
module.exports = function(profileInfo, browser, asyncCallback) {
browser
.evaluate(function() {
var output = [];
// Utility functions
var get = function() {
var querySelector = (sel) => document.querySelector(sel);
var startIdx = 0;
if (typeof(arguments[0]) === 'object') {
querySelector = ... |
export default class Storage{
constructor(Adapter) {
this.adapter = Adapter;
}
get (key) {return this.adapter.get(key);}
set (key, value) {return this.adapter.set(key, value)}
entries () {return this.adapter.entries()}
keys () {return this.adapter.keys()}
remove (key) {return this.adapter.delete(key)}... |
import { PropTypes } from 'react';
import momentPropTypes from 'react-moment-proptypes';
import OrientationShape from '../shapes/OrientationShape';
import anchorDirectionShape from '../shapes/AnchorDirectionShape';
export default {
id: PropTypes.string.isRequired,
placeholder: PropTypes.string,
date: momentProp... |
//>>built
define(["dojo/_base/declare","dojo/_base/lang","dojo/has","dijit/form/Button","esri/dijit/editing/tools/ToolBase","esri/kernel"],function(c,d,e,a,b,f){return c([a,b],{declaredClass:"esri.dijit.editing.tools.ButtonToolBase",postCreate:function(){this.inherited(arguments);this._setShowLabelAttr&&this._setShowLa... |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'sl', {
preview: 'Predogled'
} );
|
'use strict';
$(function () {
nodecg.listenFor('ssbmTopUpdate', updateText);
nodecg.listenFor('ssbmTopUpdateAnim', updatePanelsAnim);
nodecg.listenFor('ssbmTopMessage', showMessage);
function updatePanelsAnim(data) {
$('.panel').animate({top: "-100%"}, {duration: 1000, complete: function () { updateText(data); ... |
// Note: This is the list of formats
// The rules that formats use are stored in data/rulesets.js
exports.Formats = [
// XY Singles
///////////////////////////////////////////////////////////////////
{
name: "Random Battle",
section: "ORAS Singles",
team: 'random',
ruleset: ['PotD', 'Pokemon', 'Sleep Cla... |
/*
* <%= _.slugify(appName) %>
* https://github.com/<%= userName %>/<%= _.slugify(appName) %>
*
* Copyright (c) 2013 <%= authorName %>
* Licensed under the MIT license.
*/
'use strict';
var chai = require('chai');
chai.expect();
chai.should();
var <%= _.slugify(appName) %> = require('../lib/<%= _.slugify(appNa... |
var collisionFinder = require('../lib/collisionFinder');
var mocha = require('mocha');
var chai = require('chai');
var assert = require('assert');
var expect = chai.expect;
var ID_1 = '65506863-548f-49e0-9dd5-0632efd953b7';
var ID_2 = '194e6127-d500-4c8f-85ba-2b3b35c40587';
var ID_3 = '194e6127-d500-4c8f-85ba-2b3b35... |
/**
* Module dependencies
*/
var mongoose = require('mongoose')
, Schema = mongoose.Schema;
var CommentSchema = new Schema({
body: String,
user: {
username: String
}
});
mongoose.model('Comment', CommentSchema);
|
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var QuadTree_1=require("../../../../Utils/QuadTree"),Attractor=function(){function t(){}return t.attract=function(t,e,r){for(var i,o=e.options,a=null!==(i=t.lineLinkedDistance)&&void 0!==i?i:e.retina.lineLinkedDistance,n=t.getPosition(),c=0,l=e.particl... |
/**
* @license Highcharts JS v9.3.0 (2021-10-21)
*
* Old IE (v6, v7, v8) module for Highcharts v6+.
*
* (c) 2010-2021 Highsoft AS
* Author: Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['defa... |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "createFilterOptions", {
enumerable: true,
get: function () {
return _useAutocomplete.createFilterOptions;
}
});... |
typeof window !== "undefined" &&
(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["Hls"] = f... |
import{F as t}from"./formatter-1ac8f9c0.js";import{n as e}from"./number-8441f50e.js";import"./index-53ebe934.js";export default class extends t{static get formatter(){return e}}
|
/**
* @license Highcharts Gantt JS v10.0.0 (2022-03-07)
*
* StaticScale
*
* (c) 2016-2021 Torstein Honsi, Lars A. V. Cabrera
*
* License: www.highcharts.com/license
*/
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = fac... |
/**
* [Partial implementation[ A proposed implementation of the `Promise.all` function,
* that tries to resolve to a `result` which is the same type as the built-in iterable given as an input.
* If it can't match the type, it defaults to an array.
*
* @see https://developer.mozilla.org/en/docs/Web/JavaScript/R... |
'use strict'
angular.module('filter.fromNow', []).filter('fromNow', function() {
return function(dateString) {
return moment(dateString).fromNow();
};
});
// filter to have all dates with same time zone.
angular.module('filter.moment', []).filter('moment', function() {
return function(input, format) {
//... |
/**
* plugin admin area javascript
*/
(function($){$(function () {
if ( ! $('body.wpallimport-plugin').length) return; // do not execute any code if we are not on plugin page
var pmai_repeater_clone = function($parent){
var $clone = $parent.find('tbody:first').children('.row-clone:first').clone();
var $nu... |
import {Loop} from '../../core/Loop';
import {EventsPatchModule} from './EventsPatchModule';
/**
* @class ControlsModule
* @category modules/app
* @param {Object} [params]
* @memberof module:modules/app
* @example <caption> Creating a rendering module and passing it to App's modules</caption>
* new App([
* ne... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M12 13.5c-2.33 0-4.31 1.46-5.11 3.5h10.22c-.8-2.04-2.78-3.5-5.11-3.5zM7.82 12l1.06-1.06L9.94 12 11 10.94 9.94 9.88 11 8.82 9.94 7.76 8.88 8.82 7.82 7.76 6.76 8.82l1.06 1.06-1.06 1.06zm4.17-10C6.4... |
/* eslint-env browser, jquery */
/* global _ */
// Inject line numbers for sync scroll.
import markdownitContainer from 'markdown-it-container'
import { md } from '../extra'
import modeType from './modeType'
import appState from './appState'
import { renderCSVPreview } from './renderer/csvpreview'
import { parseFence... |
var Message = function() {
this._isAcknowledged = undefined;
}
Message.prototype.acknowledge = function() {
this._isAcknowledged = true;
this._ack(null, true);
}
Message.prototype.reject = function(why) {
if(this._isAcknowledged !== true) {
this._isAcknowledged = false;
this._ack(why, false);
}
}
module.exp... |
var paths = require('../options/paths.js');
var express = require('express');
module.exports = function (gulp) {
gulp.task('preview', function () {
var app = express();
app.use(express.static("./www"));
app.listen(8080);
console.log("Web server listening on http://127.0.0.1:8080")... |
/**
* This router is applied to the
* /subscribers base url in app.js
*/
var cwd = process.cwd();
var express = require('express');
var router = express.Router();
var smsSubcriberService = require(cwd + '/services/smsSubscriber');
var formatter = require(cwd + "/lib/formatter")
router.post("/", function(req, res... |
"use strict";
var __generator = (this && this.__generator) || function (thisArg, body) {
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.... |
/* eslint no-console: 0 no-sync: 0 */
// Automatic cancellation in node-telegram-bot-api is deprecated, disable it
process.env.NTBA_FIX_319 = 1;
const fs = require("fs");
const path = require("path");
const TelegramBot = require(process.env.IS_TEST_ENVIRONMENT ? process.env.MOCK_NTBA : "node-telegram-bot-api");
const... |
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
clean: {
dist: ['dist'],
},
bosonic: {
components: {
src: ['src/*.html'],
css: 'dist/b-sortable.css',
js: 'dist/b-sortable.js'
}
},
karma: {
unit: {
configFile: 'karma.... |
const _ = require('underscore');
class ChallengeTracker {
constructor() {
this.complete = 0;
this.challengeTypes = {
military: {
performed: 0,
max: 1,
won: 0,
lost: 0
},
intrigue: {
p... |
const expect = require('chai').expect;
describe('[Raw API] Assertions', function () {
it('Should perform eql assertion', function () {
return runTests('./testcafe-fixtures/assertions.testcafe', 'eql assertion', {
shouldFail: true,
only: 'chrome'
})
.catch(f... |
define(["angular","angular-modules"],function(e,t){t.controllers.controller("subCtrl",["$scope",function(
e){e.name="sub app"}])}); |
const meta = require('../meta.html')
const noscript = require('../noscript.html')
const markdown = require('./luyan.md')
const footer = require('../../Components/Footer.html')
const html = (templateParams) =>
`<!DOCTYPE html>
<html>
<head>
${meta}
<title>${templateParams.htmlWebpackPlugin.o... |
import { IE11OrLess, Edge } from './BrowserInfo.js';
import { expando } from './utils.js';
import PluginManager from './PluginManager.js';
export default function dispatchEvent(
{
sortable, rootEl, name,
targetEl, cloneEl, toEl, fromEl,
oldIndex, newIndex,
oldDraggableIndex, newDraggableIndex,
originalEvent... |
define({
"addLayer": "Adicionar Camada",
"layerName": "Camada",
"layerRefresh": "Atualizar",
"layerLabel": "Rótulo",
"actions": "Acções",
"mainPanelTextPlaceholder": "ex: Ùltima Atualização:",
"invalidInterval": "Apenas números inteiros positivos são permitidos",
"uploadImage": "Carregar Imagem",
"ico... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M5 5h14v14H5z",
opacity: ".3"
}, "0"), /*#__PURE__*/_jsx("path", {
d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16... |
import createSvgIcon from './utils/createSvgIcon';
import { jsx as _jsx } from "react/jsx-runtime";
export default createSvgIcon([/*#__PURE__*/_jsx("path", {
d: "M21 12.22C21 6.73 16.74 3 12 3c-4.69 0-9 3.65-9 9.28-.6.34-1 .98-1 1.72v2c0 1.1.9 2 2 2 .55 0 1-.45 1-1v-4.81c0-3.83 2.95-7.18 6.78-7.29 3.96-.12 7.22 3.06 ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S11.3.2_A2.1_T3;
* @section: 11.3.2, 11.6.3;
* @assertion: Operator x-- uses GetValue and PutValue;
* @description: If Type(x) is not Reference, throw ReferenceError (... |
//----------------------------------------------------------------------
//
// This source file is part of the Folktale project.
//
// Licensed under MIT. See LICENCE for full licence information.
// See CONTRIBUTORS for the list of contributors to the project.
//
//-----------------------------------------------------... |
// TODO: Add test for React Redux connect function
import chai from 'chai';
import { createSelector, createSelectorCreator, defaultMemoize, createStructuredSelector } from '../src/index';
import { default as lodashMemoize } from 'lodash.memoize';
let assert = chai.assert;
suite('selector', () => {
test('basic se... |
const crypto = require(`crypto`)
const select = require(`unist-util-select`)
const sharp = require(`sharp`)
const axios = require(`axios`)
const _ = require(`lodash`)
const Promise = require(`bluebird`)
const cheerio = require(`cheerio`)
const { buildResponsiveSizes } = require(`./utils`)
// If the image is hosted on ... |
var assert = require('assert');
var common = require('../../common');
var path = common.fixtures + '/data.csv';
var table = 'load_data_test';
var newline = common.detectNewline(path);
common.getTestConnection({localInfile: false}, function (err, connection) {
assert.ifError(err);
common.useTestDb(connection... |
var Event = require('../../events/Event');
var LoaderStartEvent = function (loader)
{
Event.call(this, 'LOADER_START_EVENT');
this.loader = loader;
};
LoaderStartEvent.prototype = Object.create(Event.prototype);
LoaderStartEvent.prototype.constructor = LoaderStartEvent;
module.exports = LoaderStartEvent;
|
/* global chrome, BugMagnet */
chrome.runtime.onMessage.addListener(function (request /*, sender, sendResponse */) {
'use strict';
BugMagnet.executeRequest(request);
});
|
var dom_adapter_1 = require('angular2/src/dom/dom_adapter');
var collection_1 = require('angular2/src/facade/collection');
var lang_1 = require('angular2/src/facade/lang');
/**
* This file is a port of shadowCSS from webcomponents.js to AtScript.
*
* Please make sure to keep to edits in sync with the source file.
*... |
import React from 'react'
import { render } from 'react-dom'
import { Provider } from 'react-redux'
import { combineReducers, createStore } from 'typed-redux'
import InputContainer from './components/Input/Container'
import CheckboxContainer from './components/Checkbox/Container'
import GreetContainer from './component... |
module.exports = function(grunt) {
require('grunt');
var config_file_name = 'config.json';
var auth_file_name = 'auth.json';
var config = { auth: {} };
if ( grunt.file.exists(config_file_name) ) {
config = grunt.file.readJSON('config.json');
config.js_files = gru... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><path d="M21 5h2v14h-2zM17 5h2v14h-2zM14 5H2c-.55 0-1 .45-1 1v12c0 .55.45 1 1 1h12c.55 0 1-.45 1-1V6c0-.55-.45-1-1-1zm-1 12H3V7h10v10z" /><circle cx="8" ... |
/**
* # Login.js
*
* This class is a little complicated as it handles multiple states.
*
*/
'use strict'
/**
* ## Imports
*
* Redux
*/
import { bindActionCreators } from 'redux'
import { connect } from 'react-redux'
/**
* The actions we need
*/
import * as authActions from '../reducers/auth/authActions'
imp... |
require("ember-data/system/record_arrays/record_array");
var get = Ember.get, set = Ember.set;
DS.AdapterPopulatedRecordArray = DS.RecordArray.extend({
query: null,
replace: function() {
var type = get(this, 'type').toString();
throw new Error("The result of a server query (on " + type + ") is immutable.... |
/**
* 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
* @format
*/
'use strict';
const areEqual = require('areEqual');
const deepFreeze = require('../util/deepFreeze');
cons... |
version https://git-lfs.github.com/spec/v1
oid sha256:dc940ea29de0273e92f0071e7c0bab9ab1e958914d4c8c7ca602af8da78841a9
size 1643
|
'use strict';
(function() {
// Music Controller Spec
describe('Music Controller Tests', function() {
// Initialize global variables
var MusicController,
scope,
$httpBackend,
$stateParams,
$location;
// The $resource service augments the response object with methods for updating and deleting the resour... |
'use strict';
var hexo = hexo || {};
hexo.extend.filter.register('before_post_render', require('./lib/logic'), 15);
|
var x, _y = x;
// ---
// Variable x is never written to (1:4)
|
'use strict';
module.exports = function(app, passport) {
var LocalStrategy = require('passport-local').Strategy,
TwitterStrategy = require('passport-twitter').Strategy,
GitHubStrategy = require('passport-github').Strategy,
FacebookStrategy = require('passport-facebook').Strategy,
GoogleStrate... |
/*
* Copyright (c) 2012 CoNarrative
*/
Ext.ns('glu.provider.binder');
Ext.apply(glu.provider.binder, {
getAdapter:function (config) {
// if its a plugin, return a dummy adapter that does nothing
if (config.ptype) {
return glu.provider.adapters.ptype;
}
var xtype = confi... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 9c-.04-4.39-3.6-7.93-8-7.93S4.04 4.61 4 9v6c0 4.42 3.58 8 8 8s8-3.58 8-8V9zm-2 0h-5V3.16c2.81.47 4.96 2.9 5 5.84zm-7-5.84V9H6c.04-2.94 2.19-5.37 5-5.84zM18 15c0 3.31-2.69 6-6 6s-6-2.69-6-6v-4... |
/* global module */
// Karma configuration
// http://karma-runner.github.io/0.10/config/configuration-file.html
module.exports = function (config) {
config.set({
basePath: 'app/build',
plugins: [
'karma-jasmine',
'karma-coverage',
'karma-phantomjs-launcher'
],
port: 9876,
captu... |
'use strict';
const chai = require('chai'),
expect = chai.expect,
Support = require(__dirname + '/../support'),
DataTypes = require(__dirname + '/../../../lib/data-types'),
current = Support.sequelize;
describe(Support.getTestDialectTeaser('hasOne'), () => {
it('properly use the `as` key to generate for... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var DeviceBatteryCharging90 = React.createClass({
displayName: 'DeviceBatteryCharging90',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { 'fill-opa... |
import * as React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<path d="M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z" />
, 'ArrowDownward');
|
/* global describe,beforeEach,afterEach,before,it:false */
import environment from './env/client';
import { createMouseEvent } from './utils/events';
import { moveableComponent } from '../src/js/modules/components/moveable';
import Backbone from 'backbone';
import sinon from 'sinon';
import { equal } from 'assert';
de... |
;(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);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].export... |
/**
* 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 * as React from 'react';
import {Fragment} from 'react';
import styles from './EditableValue.css';
import {useE... |
/**
* Movement Class
* Support Hammer and custom horizontal sliding
*/
class Movement {
constructor(event) {
this.initiated = false;
if (event) { this.push(event); }
}
/**
* Save initX and lastX
* @param event
*/
push(event) {
this.speedX = event.velocityX;
if (!this.initiated) {
... |
(function() {
module.exports = {
Request: require('./Request'),
Response: require('./Response'),
ResponseCode: require('./ResponseCode')
};
}).call(this);
//# sourceMappingURL=index.js.map
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S15.10.7.4_A8;
* @section: 15.10.7.4;
* @assertion: The RegExp instance multiline property has the attribute DontEnum;
* @description: Checking if enumerating the mult... |
// warning: This file is auto generated by `npm run build:tests`
// Do not edit by hand!
process.env.TZ = 'UTC'
var expect = require('chai').expect
var ini_set = require('../../../../src/php/info/ini_set') // eslint-disable-line no-unused-vars,camelcase
var ini_get = require('../../../../src/php/info/ini_get') // eslin... |
'use strict';
angular.module('PowwowNinjaApp')
.controller('MeetingCtrl', function () {
});
|
/*
* jQuery Mobile v1.4.2
* http://jquerymobile.com
*
* Copyright 2010, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license.
* http://jquery.org/license
*
*/
(function ( root, doc, factory ) {
if ( typeof define === "function" && define.amd ) {
// AMD. Register as an anonymous modul... |
angular.module(
"radiobot.module.admin",
[
"radiobot.module.admin.controller.admin"
]
);
|
//>>built
define({add:"Gehitu",addAuthor:"Gehitu egilea",addContributor:"Gehitu kolaboratzailea"}); |
const path = require('path')
require('@technologyadvice/genesis-core')(require('../genesis.config')).build({
out: path.resolve(__dirname, '../dist'),
})
|
var feathers = require('feathers');
var passport = require('passport');
var crypto = require('crypto');
var hooks = require('feathers-hooks');
var memory = require('feathers-memory');
var bodyParser = require('body-parser');
var session = require('express-session');
var feathersPassport = require('../lib/passport');
va... |
/**
* jVectorMap version 2.0.5
*
* Copyright 2011-2014, Kirill Lebedev
*
*/
(function( $ ){
var apiParams = {
set: {
colors: 1,
values: 1,
backgroundColor: 1,
scaleColors: 1,
normalizeFunction: 1,
focus: 1
},
get: {
se... |
'use strict';
var test = require('tape');
var FixturesFs = require('fixtures-fs');
var path = require('path');
var StaticConfig = require('../index.js');
test('StaticConfig is a function', function t(assert) {
assert.equal(typeof StaticConfig, 'function');
assert.end();
});
test('can create empty config', f... |
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(gene... |
module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.initConfig({
jshint:{
options:{
jshintrc: ".jshintrc"
},
files : ["./tasks/**/*.js"]
}
});
grunt.registerTask("default", ["jshin... |
module.exports = {
init
}
const { autoUpdater } = require('electron')
const get = require('simple-get')
const config = require('../config')
const log = require('./log')
const windows = require('./windows')
const AUTO_UPDATE_URL = config.AUTO_UPDATE_URL +
'?version=' + config.APP_VERSION +
'&platform=' + proces... |
/*
* Ext JS Library 2.1
* Copyright(c) 2006-2008, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/**
* @class Ext.menu.Item
* @extends Ext.menu.BaseItem
* A base class for all menu items that require menu-related functionality (like sub-menus) and are not static
* display items. ... |
define(
[],
function() {
"use strict";
$.Velocity.Sequences.euiPopcalOpenDefault = function(element, options) {
return $.Velocity.animate(element, {
opacity: [1, 0],
scaleX: [1, 0.7],
scaleY: [1, 0.7]
}, {
duration: options.duration || 100
});
};
}); |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createId(instance) {
var constructor = instance.constructor;
var className = constructor.className;
if (!className) {
throw new Error("The " + constructor + " is missing the 'className' property.");
}
retur... |
exports["sample test"] = function(test) {
test.ok(true);
test.done();
};
|
const m = require("../mobx4")
test("cascading active state (form 1)", function () {
const Store = function () {
m.extendObservable(this, { _activeItem: null })
}
Store.prototype.activeItem = function (item) {
const _this = this
if (arguments.length === 0) return this._activeItem
... |
this.spawnFunc = function(fundecl) {
return new Scope(
this,
fundecl ?
ST_FN_STMT :
ST_FN_EXPR
);
};
this.spawnLexical = function(loop) {
return new Scope(
this,
!loop ?
ST_LEXICAL :
ST_LEXICAL|ST_LOOP);
};
this.spawnCatch = function() {
return new Scope(
this,
S... |
(() => {
'use strict';
define(main);
function main() {
return uuid;
}
/**
* Generates RFC4122 compliant UUIDs.
*
* Credit: https://gist.github.com/jcxplorer/823878
*
* @returns {String} The generated UUID.
*/
function uuid() {
var uuid = "",
... |
var parseUrl = require('url').parse;
var Q = require('q');
var FormData = require('form-data');
var Utils = require('./utils');
var IonicProject = require('./project');
var Settings = require('./settings');
var log = require('./logging').logger;
var Share = module.exports;
Share.shareApp = function shareApp(appDirect... |
import Component from '@ember/component';
export default Component.extend({
classNames: ['user__skills-list']
});
|
/**
* Copyright (c) 2014, 2016, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
"use strict";
define(['ojs/ojcore', 'jquery', 'hammerjs', 'promise', 'ojs/ojjquery-hammer', 'ojs/ojcomponentcore'],
/*
* @param {Object} oj
* @param {jQuery} $
*... |
import React from 'react';
import './footer.scss';
const Footer = () => (
<div className="Footer">
<hr />
<div className="container">
<div className="col-md-2 offset-md-1 ">
<a className="Footer__Column" href="/terms-of-use">Terms of Use</a>
</div>
<div className="col-md-2">
... |
/**
* Copyright 2015 Telerik AD
*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
'use strict';
function UnauthorizedAccessError(code, error) {
Error.call(this, error.message);
Error.captureStackTrace(this, this.constructor);
this.name = 'UnauthorizedAccessError';
this.message = error.message;
this.code = code;
this.status = 401;
this.inner = error;
}
UnauthorizedAccessError.prototy... |
import redis from 'redis'
import { Promise } from 'bluebird'
import { config } from './config'
Promise.promisifyAll(redis.RedisClient.prototype)
Promise.promisifyAll(redis.Multi.prototype)
export default redis.createClient(config('/modules/redis/client'))
|
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('f-account', 'Integration | Component | f account', {
integration: true
});
const accountStub = Ember.Object.create({
name: 'name',
email: 'email',
phone: 'phone'
});
test('it can be submi... |
/**
* Auth.js
*
* @description :: TODO: You might write a short summary of how this model works and what it represents here.
* @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models
*/
module.exports = {
attributes: {
}
};
|
"use strict";
/***
* Copyright (c) 2017 [Arthur Xie]
* <https://github.com/kite-js/kite>
*
* 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 limitat... |
// TRANSFORMATION MAP
//
// url route => object => executable command
//
// /cal/2015/1 => {year: 2015,month: 1} => ./app.js 1 2015
// /cal/1/2015 => {year: 2015,month: 1} => ./app.js 1 2015
// /cal/2015 => {year: 2015} => ./app.... |
import {
Map,
MapWithDefault,
OrderedSet
} from 'ember-metal/map';
var object, number, string, map, variety;
var varieties = [['Map', Map], ['MapWithDefault', MapWithDefault]];
function testMap(nameAndFunc) {
variety = nameAndFunc[0];
QUnit.module('Ember.' + variety + ' (forEach and get are implicitly test... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.