code stringlengths 2 1.05M |
|---|
module("effects", { teardown: moduleTeardown });
test("sanity check", function() {
expect(1);
ok( jQuery("#dl:visible, #qunit-fixture:visible, #foo:visible").length === 3, "QUnit state is correct for testing effects" );
});
test("show()", function() {
expect(28);
var hiddendiv = jQuery("div.hidden");
hiddendiv... |
export default addCustomTags;
// @ngInject
function addCustomTags($document) {
if ($document && $document.get) {
//IE8 check ->
// http://stackoverflow.com/questions/10964966/detect-ie-version-prior-to-v9-in-javascript/10965203#10965203
const document = $document.get(0);
const div = document.createEl... |
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc'
},
all: ['Gruntfile.js', 'lib/**/*.js', 'test/**/*.js']
},
nodeunit: {
files: ['test/**/*_test.js'],
}
});
// Load plugins.
... |
const $ = require('jQuery');
const Board = require('./board.js')
const Snake = require('./snake.js')
const Food = require('./food.js')
const Portal = require('./portal.js')
const PowerUp = require('./powerup.js')
const canvas = document.getElementById("canvas");
const ctx = canvas.get... |
/*
* Paper.js - The Swiss Army Knife of Vector Graphics Scripting.
* http://paperjs.org/
*
* Copyright (c) 2011 - 2013, Juerg Lehni & Jonathan Puckey
* http://lehni.org/ & http://jonathanpuckey.com/
*
* Distributed under the MIT license. See LICENSE file for details.
*
* All rights reserved.
*/
module('Compo... |
// var utils = require('./utils');
var goog = require('./goog');
// TODO(vojta): can we handle provide "same thing provided multiple times" ?
var DependencyResolver = function(logger) {
var log = logger.create('closure');
// the state
var fileMap = Object.create(null);
var provideMap = Object.create(null);
... |
if (process.env.NODE_ENV === 'production') {
const childProcess = require('child_process');
childProcess.exec('webpack -p --config webpack.production.config.js',
function (error, stdout, stderr) {
console.log('stdout: ' + stdout);
console.log('stderr: ' + stderr);
if (error !== null) {
... |
(function (angular, window) {
angular
.module('placesWidget')
.controller('WidgetItemCtrl', ['$scope', 'COLLECTIONS', 'DB', 'Buildfire', '$rootScope', 'GeoDistance', 'Messaging', 'Location', 'EVENTS', 'PATHS', 'AppConfig', 'Orders', 'OrdersItems', '$timeout', 'ViewStack', function ($scope, COLLECTIO... |
'use strict';
var express = require('express');
var router = express.Router();
var passport = require('passport');
var auth = require('../auth.service');
var localPassportConfig = require('./passport')();
router.post('/', function(req, res, next) {
passport.authen... |
/**
* A specialized tooltip class for tooltips that can be specified in markup and automatically managed
* by the global {@link Ext.tip.QuickTipManager} instance. See the QuickTipManager documentation for
* additional usage details and examples.
*/
Ext.define('Ext.tip.QuickTip', {
extend: 'Ext.tip.ToolTip',
... |
import IntegrationsManager from './integrations-manager';
const ELEMENT_ATTR = 'data-rwr-element';
const PAYLOAD_ATTR = 'data-payload';
const INTEGRATION_NAME_ATTR = 'data-integration-name';
const OPTIONS_ATTR = 'data-options';
function _findDOMNodes(searchSelector) {
const selector = searchSelector || '[' + ELEME... |
'use strict'
const request = require('request')
const _ = require('underscore')
const jmespath = require('jmespath')
const validUrl = require('valid-url')
const jsonTransmogrifier = require('./json-transmogrifier.js')
const WebhookResults = require('./webhook-results.js')
const WebhookRequest = require('./webhook-req... |
const paginationAddon = (() => {
function paginate(container, selector, inputPageSize) {
const content = $(container);
if (content.length === 0) {
return;
}
const elements = content.find(selector);
if (elements.length === 0) {
return;
}
... |
'use strict';
var $parseMinErr = minErr('$parse');
// Sandboxing Angular Expressions
// ------------------------------
// Angular expressions are generally considered safe because these expressions only have direct access to $scope and
// locals. However, one can obtain the ability to execute arbitrary JS code by obt... |
version https://git-lfs.github.com/spec/v1
oid sha256:f11e2965c36e937e5f8eda9fb500c48a9f24a7e9367b65571fc8dd227d4f5635
size 30622
|
describe("Suite", function() {
it("keeps its id", function() {
var env = new jasmineUnderTest.Env(),
suite = new jasmineUnderTest.Suite({
env: env,
id: 456,
description: "I am a suite"
});
expect(suite.id).toEqual(456);
});
it("returns blank full name for top level s... |
{
assert.equal(result, 1);
done();
}
|
var invariant = require('fbjs/lib/invariant');
var canUseDOM = require('fbjs/lib/ExecutionEnvironment').canUseDOM;
/**
* Returns the current scroll position of the window as { x, y }.
*/
function getWindowScrollPosition() {
invariant(
canUseDOM,
'Cannot get current scroll position without a DOM'
);
re... |
import { Meteor } from 'meteor/meteor';
import { Mongo } from 'meteor/mongo';
import { check } from 'meteor/check';
import { HTTP } from 'meteor/http';
export const GameVariants = new Mongo.Collection('GameVariants');
if (Meteor.isServer) {
Meteor.publish('GameVariants', function gameVariantsPublication() {
ret... |
var searchData=
[
['acel',['Acel',['../class_organisme.html#a6322ecf5313caa7df794a33c4fc58f4e',1,'Organisme']]]
];
|
import React, { Component } from 'react'
import { findDOMNode } from 'react-dom'
import { Link as RouterLink } from 'react-router-dom'
import { Svg, Button, Container, FlexGrid } from 'components'
import { classNames } from 'helpers'
import s from './ItemWide.sass'
import toCartIcon from 'icons/tocart.svg'
const Item... |
'use strict';
var React = require('react');
var SvgIcon = require('../../svg-icon');
var AvWeb = React.createClass({
displayName: 'AvWeb',
render: function render() {
return React.createElement(
SvgIcon,
this.props,
React.createElement('path', { d: 'M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9... |
/* global describe, beforeEach, afterEach, it, expect, Erizo, sinon, navigator */
/* eslint-disable no-unused-expressions */
describe('Stream.init', () => {
beforeEach(() => {
Erizo.Logger.setLogLevel(Erizo.Logger.NONE);
sinon.spy(navigator.mediaDevices, 'getUserMedia');
sinon.spy(navigator.mediaDevices... |
import Ember from 'ember';
/**
To use this component in your app, add this to a template:
```handlebars
{{#on-canvas}}
{{#off-canvas-opener}}
<i class="fa fa-bars"></i>
{{/off-canvas-opener}}
<div class="on-canvas-body">
On Canvas Contents
</div>
{{/on-canvas}}
```
@extends Em... |
'use strict';
var sortInterval = require( './sortInterval' ),
_ = {}
_.clone = require( '../utils/clone' );
/**@function
* This function solve the equation f(x)=0 using the bisection method.
* @param {Function} f, {Array} interval, {Object} options.
* @return {Object} with properties Root, steps number used and me... |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0z" /><path d="M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" /></React.Fragment>
... |
declare module 'balanced-match' {
declare type Matches = {
start: number,
end: number,
pre: string,
body: string,
post: string,
...
};
declare module.exports: {
(a: string | RegExp, b: string | RegExp, str: string): Matches | void,
range(a: string, b: string, str: string): Array<n... |
'use strict';
const common = require('../../common');
const test_error = require(`./build/${common.buildType}/test_error`);
const assert = require('assert');
const theError = new Error('Some error');
const theTypeError = new TypeError('Some type error');
const theSyntaxError = new SyntaxError('Some syntax error');
con... |
Package.describe({
summary: "Serves a robot.txt which can be modified programatically",
version: "0.0.10",
git: "https://github.com/gadicc/meteor-robots.txt.git"
});
Package.on_use(function (api) {
api.use('webapp@1.0.0', 'server');
api.add_files('robots.js', 'server');
api.export('robots', 'server');
});
|
/*global define*/
define([
'../../Core/BoundingSphere',
'../../Core/Cartesian3',
'../../Core/defaultValue',
'../../Core/defined',
'../../Core/defineProperties',
'../../Core/destroyObject',
'../../Core/DeveloperError',
'../../Core/Event',
'../../Cor... |
"use strict";
const DefinePlugin = require("../../../../").DefinePlugin;
module.exports = [
{
name: "development",
mode: "development",
plugins: [new DefinePlugin({ __MODE__: `"development"` })]
},
{
name: "production",
mode: "production",
plugins: [new DefinePlugin({ __MODE__: `"production"` })]
},
... |
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
'... |
$(function () {
//倒计时js开始
var mydate = new Date();
$(".month").html(mydate.getMonth() + 1)
$(".day").html(mydate.getDate() + 2)
// 倒计时js结束 必须保证html中除了倒计时代码外没有别的class是month或者day的元素
//如果是1月
if (mydate.getMonth() == 0 && mydate.getDate() == 30) {
$(".m... |
'use strict';
var semver = require('semver'),
should = require('should'),
request = require('supertest'),
path = require('path'),
mongoose = require('mongoose'),
User = mongoose.model('User'),
express = require(path.resolve('./config/lib/express'));
/**
* Globals
*/
var app,
agent,
credentials,
cr... |
'use strict';
var domQuery = require('min-dom/lib/query'),
utils = require('../../../../Utils');
function getScriptType(node) {
return utils.selectedType('select[name=scriptType]', node.parentElement);
}
module.exports = function(scriptLanguagePropName, scriptValuePropName, isFormatRequired) {
return {
... |
/* http://github.com/mindmup/bootstrap-wysiwyg */
/*global jQuery, $, FileReader*/
/*jslint browser:true*/
(function ($) {
'use strict';
var readFileIntoDataUrl = function (fileInfo) {
var loader = $.Deferred(),
fReader = new FileReader();
fReader.onload = function (e) {
loader.resolve(e.target.result);
}... |
/**
* Real v1.5.19
* (c) 2015 switer
* Released under the MIT License.
*/
(function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory();
else if(typeof define === 'function' && define.amd)
define(factory);
... |
'use strict';
module.exports = require( './lib/iinChecker' );
|
// Publish all users to reactive-table (if admin)
// Limit, filter, and sort handled by reactive-table.
// https://github.com/aslagle/reactive-table#server-side-pagination-and-filtering-beta
ReactiveTable.publish("leaderboard", function() {
return Meteor.users;
});
|
$(function() {
// language filter
$('.language-select').change(function() {
var books = $('.library.row .col-md-3');
var pickLanguage = $('.language-select').val();
if (pickLanguage === '') {
// all selected
books.css('opacity', 1);
return;
}
for (var b = 0; b < books.length; b... |
/*
Highstock JS v8.0.1 (2020-03-02)
Advanced Highstock tools
(c) 2010-2019 Highsoft AS
Author: Torstein Honsi
License: www.highcharts.com/license
*/
(function(b){"object"===typeof module&&module.exports?(b["default"]=b,module.exports=b):"function"===typeof define&&define.amd?define("highcharts/modules/full-scre... |
// Colin 'Oka' Hall-Coates <yo@oka.io> MIT 2015
(function (G) {
function assign (method) {
HTTP[method] = function (url) {
return HTTP(method, url);
};
}
function chain (e, fn) {
clearTimeout(e.t);
if (fn) fn();
if (e.r.readyState < 2) {
e.t = setTimeout(function () {
e... |
var game = new Phaser.Game(960, 600, Phaser.AUTO, '', { preload: preload, create: create, update: update });
var barrasMedias;
var barrasPqnas;
var barraInicial;
var objetos;
var dinoSprite;
var plataforma;
function preload () {
game.load.image('fundo', 'assets/fundo-960-600.png');
game.load.image('plataforma', 'as... |
{
"type": "FeatureCollection",
"features": [
{ "type": "Feature", "properties": { "Unnamed: 0": 0, "Incident Number": 72120021, "Date": "07\/31\/2007", "Time": "01:03 AM", "Police District": 7.0, "Offense 1": "MOTOR VEHICLE THEFT", "Offense 2": null, "Offense 3": null, "Offense 4": null, "Offense 5": null, "Location": ... |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S12.6.3_A7_T2;
* @section: 12.6.3;
* @assertion: Only three expressions and two semicolons in "for" braces are allowed.
* Appearing of for (ExpressionNoIn_opt ; Expre... |
(function ($) {
$(document).ready(function () {
$(".ult-carousel-wrapper").each(function () {
var $this = $(this);
if ($this.hasClass("ult_full_width")) {
$this.css('left', 0);
$this.css('right', 0);
var rtl = $this.attr('data-rtl');
... |
/* Version: 16.0.9106.1000 */
Type.registerNamespace("Strings");
Strings.OfficeOM = function()
{
};
Strings.OfficeOM.registerClass("Strings.OfficeOM");
Strings.OfficeOM.L_APICallFailed = "API の呼び出しに失敗しました";
Strings.OfficeOM.L_APINotSupported = "API はサポートされていません";
Strings.OfficeOM.L_ActivityLimitReached = "アクティビティの制限に達... |
'use strict';
module.exports = {
db: 'mongodb://localhost/hdnotify',
app: {
title: 'HDNotify PROD - Notification Center',
description: 'Web Notification Tool',
keywords: 'MongoDB, Express, AngularJS, Node.js, Web',
},
version: '1.1.0',
port: process.env.PORT || 3000,
templateEngine: 'swig',
sessionSecr... |
'use strict';
const countTheOnes = (num) => (num.toString().match(/1/g) || '').length;
|
import config from 'src/config'
import {userCan} from 'src/common/util'
import findActiveProjectsForMember from 'src/server/actions/findActiveProjectsForMember'
import {Project, findProjectByNameForMember} from 'src/server/services/dataService'
import {LGCLIUsageError, LGNotAuthorizedError} from 'src/server/util/error... |
import WebExtension from './web-extension';
import { tracked } from '@glimmer/tracking';
export default class Chrome extends WebExtension {
name = 'chrome';
@tracked canOpenResource = true;
openResource(file, line) {
/*global chrome */
// For some reason it opens the line after the one specified
chr... |
const path = require('path');
module.exports = {
devtool: 'source-map',
entry: path.join(__dirname, 'src', 'index'),
output: {
path: path.join(__dirname, 'build'),
filename: 'bundle.js',
},
module: {
loaders: [{
test: /\.jsx?$/,
loader: 'babel',
include: path.join(__dirname, 'sr... |
import { expect } from 'chai';
import createV4Spacing from './createV4Spacing';
describe('createV4Spacing', () => {
it('should work as expected', () => {
let spacing;
spacing = createV4Spacing();
expect(spacing(1)).to.equal(8);
spacing = createV4Spacing(10);
expect(spacing(1)).to.equal(10);
s... |
version https://git-lfs.github.com/spec/v1
oid sha256:868fa1c1c6157570455790ca619abd7418ccd80e2490e7756a9c1c9415f140ac
size 2272
|
var ODSTileLayerMixin = {
odsOptions: {
basemap: null,
appendAttribution: null,
prependAttribution: null,
disableAttribution: null,
attributionSeparator: ' - '
},
_addAttributionPart: function(attribution, part) {
if (part) {
if (attribution) {
... |
define(function(require) {
'use strict';
var MultiCheckboxView;
var $ = require('jquery');
var _ = require('underscore');
var BaseView = require('oroui/js/app/views/base/view');
MultiCheckboxView = BaseView.extend({
defaults: {
selectAttrs: {},
value: [],
... |
import React from 'react'
import Icon from 'react-icon-base'
const FaFlag = props => (
<Icon viewBox="0 0 40 40" {...props}>
<g><path d="m7 6.1q0 1.5-1.4 2.4v27.5q0 0.3-0.2 0.5t-0.5 0.2h-1.4q-0.3 0-0.5-0.2t-0.2-0.5v-27.5q-1.4-0.9-1.4-2.4 0-1.2 0.8-2t2-0.8 2 0.8 0.8 2z m32 1.4v16.6q0 0.5-0.2 0.8t-0.9 0.6q-... |
'use strict';
var sinon = require('sinon');
var expect = require('../../../helpers/expect');
describe('CustomTapReporter', function() {
var tapReporter, logs;
before(function() {
tapReporter = require('../../../../lib/commands/nw-test/reporter');
});
beforeEach(function() {
logs = [];
sinon.st... |
/**
* @license
* Copyright 2013 Palantir Technologies, Inc.
*
* 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... |
var util = require('util');
var Log = require('log')
, log = {};
var _level = 'debug';
exports = module.exports = function(level) {
if (level) _level = level;
log = new Log('debug'); // we don't use built-in check, because it can't do granularity
var logwrapper = function() {}
logwrapper.d... |
/*
* File: app/model/modSistemaHidraulico.js
*
* This file was generated by Sencha Architect version 4.1.2.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Ext JS 5.1.x library, under independent license.
* License of Sencha Architect does not include license for Ext JS 5.1.x. For m... |
var vow = require('vows');
var assert = require('assert');
var util = require('util');
var passport_yj = require('../lib/passport-yj');
vow.describe('passport-yj').addBatch({
'module': {
'should report a version': function () {
assert.isString(passport_yj.version);
}
}
}).export(module);
|
"use strict";
module.exports = require("./src/regexp");
|
describe('switch', function () {
describe('#initSwitch', function () {
$('body').append([
'<a data-uix="switches" href="javascript:void(0)" class="J-switch switch"></a>'
].join(''));
var ndSwitch = $('.J-switch');
it('DataApi doesn\'t work for switch', function () {
... |
var env = require('./environment.js');
// The main suite of Protractor tests.
exports.config = {
seleniumAddress: env.seleniumAddress,
// Spec patterns are relative to this directory.
specs: [
'basic/*_spec.js'
],
// Exclude patterns are relative to this directory.
exclude: [
'basic/exclude*.js'
... |
var checkHasCover = true;
var coverimage = "";
var logoimage = "";
/*var backupcoverimage;*/
var backuprealcoverimage;
var backupreallogoimage;
$(".img-cover").error(function() {
$(".img-cover-box").css("height", 250);
});
$(window).load(function(){
$(window).scrollTop(200);
$(".menu-ul... |
'use strict';
//import exports = require('exports');
var _Global = require('./Core/_Global');
var _Base = require('./Core/_Base');
var _ErrorFromName = require('./Core/_ErrorFromName');
var _Log = require('./Core/_Log');
//import _Resources = require('./Core/_Resources');
var _Trace = require('./Core/_Trace');
var _Wri... |
var fs = require('fs');
var cwd = process.cwd();
var path = require('path');
var pkg = require('../package');
var originalIndex = fs.readFileSync(path.join(cwd, 'lib/index.js'), 'utf-8');
var newIndex = originalIndex
.replace(/\/components\//g, '/')
.replace(/require\(\'\.\/package.json\'\)/g, "require('./package'... |
"v0.4.6 Geetest Inc.";
(function (window) {
"use strict";
if (typeof window === 'undefined') {
throw new Error('Geetest requires browser environment');
}
var document = window.document;
var Math = window.Math;
var head = document.getElementsByTagName("head")[0];
function _Object(obj) {
this.... |
"use strict";
import { assert } from 'chai';
import AdsLoader from '../src/AdsLoader';
describe('AdsLoader', () => {
it('must be a class', () => {
assert.instanceOf(new AdsLoader(), AdsLoader);
});
describe('requestAd', ()=> {
it('must return a promise', ()=> {
const adsLoader = new AdsLoader();... |
/*jslint node: true */
'use strict';
const fs = require('fs');
const path = require('path');
const portfinder = require('portfinder');
const express = require('express');
const https = require('https');
const cors = require('cors');
const logger = require('@blackbaud/skyux-logger');
const app = express();
let server... |
'use strict'
module.exports.PORT =
process.env.PORT
|| process.env.OPENSHIFT_NODEJS_PORT
|| process.env.OPENSHIFT_IOJS_PORT
|| process.env.VCAP_APP_PORT
|| process.env.VMC_APP_PORT
|| null
module.exports.HOSTNAME =
process.env.HOSTNAME
|| process.env.OPENSHIFT_NODEJS_IP
|| process.env.OPENSHIFT_IOJS_IP
|| p... |
'use strict';
/**
* Mock object for fs
*/
module.exports.create = sandbox => {
return {
exec: sandbox.stub().yields(),
spawn: sandbox.stub().returns(/* child process object */),
execSync: sandbox.stub().returns('{}')
};
};
|
var NeDB = require("nedb");
var MongoJS = require("mongojs");
/**
* Constructs a Database object
*/
function Database () {
/* EXPOSE COLLECTIONS HERE */
this.tasks = this.collection("tasks");
};
/**
* Gets (or implicitly creates) a collection in the database.
* @param <string> the name of the collection t... |
angular.module('app.gameFrame', [])
.config(['$stateProvider',
function($stateProvider, Players) {
$stateProvider
.state('gameFrame', {
abstract: true,
url: '/game',
templateUrl: 'templates/gameFrame.html'
})
.state('gameFrame.play', {
url: '',
views: {
... |
// This file is generated automatically by `scripts/build/fp.js`. Please, don't change it.
import fn from '../../startOfISOWeek/index.js'
import convertToFP from '../_lib/convertToFP/index.js'
var startOfISOWeek = convertToFP(fn, 1)
export default startOfISOWeek
|
// Flot Charts sample data for SB Admin 2 template
//Flot Line Chart
$(document).ready(function() {
console.log("document ready");
var offset = 0;
plot();
function plot() {
var sin = [],
cos = [];
for (var i = 0; i < 12; i += 0.2) {
sin.push([i, Math.sin(i + off... |
'use strict';
angular.module('protocols').factory('Protocols', ['$resource',
function($resource) {
return $resource('protocols/:protocolId', {
protocolId: '@_id'
}, {
update: {
method: 'PUT'
}
});
}
]); |
import JasmineMatchers from '../../vendor/jasmine-expect/dist/jasmine-matchers';
import JasmineJQuery from '../../vendor/jasmine-jquery/lib/jasmine-jquery';
import $ from 'jquery';
import {module, inject} from '../mocks';
describe('solarizdApp directive', function () {
let $compile;
let $rootScope;
let $ti... |
/* jshint browser:true, globalstrict:true */
/* global angular:true */
"use strict";
/////////////////////////
//// Library Modules ////
angular.module('jQuery', []).factory('$', function($window) { return $window.$.noConflict(true); });
angular.module('lodash', []).factory('_', function($window) { return $window._.... |
import React from 'react';
import styles from './styles.css';
const Row = ({ children, ...otherProps }) => (
<div {...otherProps} className={styles.root}>
{children}
<div className={styles.clearfix} />
</div>
);
export default Row;
|
var policyTreeRules = (function() {
var display = function(node) {
// Display MI or MT rule
if (isRuleMT(node)) {
policyTreeRulesMT.display(node);
}
else {
policyTreeRulesMI.display(node);
}
$('.policyManage').addClass('hidden');
$('.p... |
/*globals Foo:true $foo:true */
import { get } from 'ember-metal/property_get';
function expectGlobalContextDeprecation(assertion) {
expectDeprecation(
assertion,
"Ember.get fetched 'localPathGlobal' from the global context. This behavior will change in the future (issue #3852)"
);
}
var obj;
var moduleO... |
import React from 'react';
import { shallow } from 'enzyme';
import UserAccountsCard from '../UserAccountsCard';
describe('<UserAccountsCard />', () => {
it('should render', () => {
const loginid = 'CR12345';
const account = {};
const accounts = [{"account":"VRTC12345","currency":"USD"},{"a... |
var __extends = (this && this.__extends) || (function () {
var extendStatics = function (d, b) {
extendStatics = Object.setPrototypeOf ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProp... |
var toolTipValueGetter = function(params) { return { value: params.value }; };
var columnDefs = [
{ headerName: "Athlete Col 1", field: "athlete", width: 150, tooltipField: 'athlete' },
{ headerName: "Athlete Col 2", field: "athlete", width: 150, tooltipComponent: 'customTooltip', tooltipValueGetter: toolTipVa... |
import { _ as _defineProperty } from './chunk-1fafdf15.js';
import { I as Icon } from './chunk-7fd02ffe.js';
var MessageMixin = {
components: _defineProperty({}, Icon.name, Icon),
// deprecated, to replace with default 'value' in the next breaking change
model: {
prop: 'active',
event: 'update:active'
... |
var _report = undefined;
define([
"util", "const"
], function(util, cconst) {
'use strict';
var report = _report = function report() {
var s = ""
for (var i=0; i<arguments.length; i++) {
if (i > 0) s += " "
s += arguments[i];
}
var lines = s.split("\n");
for (var... |
/**
* Tagify (v 3.12.0)- tags input component
* By Yair Even-Or
* Don't sell this code. (c)
* https://github.com/yairEO/tagify
*/
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define([], factory);
} else if (typeof exports === 'object') {
module.exports = factory();
} ... |
(function() {
'use strict';
angular
.module('Portfolio')
.directive('scrollToProjectsButton', scrollToProjectsButton);
/* @ngInject */
function scrollToProjectsButton() {
var directive = {
restrict: 'EA',
link: linkFunc
};
return directi... |
"use strict";
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = exports.styles = void 0;
var _extends2 = _int... |
'use strict'
// external modules
var fs = require('fs')
var path = require('path')
var LZString = require('lz-string')
var md = require('markdown-it')()
var metaMarked = require('meta-marked')
var cheerio = require('cheerio')
var shortId = require('shortid')
var Sequelize = require('sequelize')
var async = require('asy... |
/* jshint node: true */
var gulp = require('gulp'),
rename = require('gulp-rename'),
uglify = require('gulp-uglifyjs'),
clean = require('gulp-clean'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish')
gulp.task('clean', function () {
return gulp
.src('./dist', { rea... |
export default ({ children }) => children |
YUI.add('gallery-icello-date', function(Y) {
'use strict';
Y.namespace('Icello.Date');
Y.Icello.Date.addMonths = function (date, months) {
var dPlusMonths = null,
dPlusMonthsDayOne = null,
dPlusMonthsDayLast = null,
inputMonth = date.getMonth() + months,
expectedMonth = inputMont... |
function initMap() {
var latLong = [50.084750, 8.247026]; // Wiesbaden
var map = L.map("map").setView(latLong, 5);
L.tileLayer("https://b.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, <a href="https:/... |
/*!
* Copyright (c) 2015-2017 Cisco Systems, Inc. See LICENSE file.
*/
import {SparkPlugin} from '@ciscospark/spark-core';
import {defaults} from 'lodash';
import uuid from 'uuid';
const Support = SparkPlugin.extend({
namespace: `Support`,
getFeedbackUrl(options) {
options = options || {};
return this.... |
define("data/processFatalData",
["underscore",
"data/fatalEncounters"],
function(_, fatalEncounters) {
var entries = fatalEncounters.feed.entry;
var dataKeys = ['subjectsname',
'subjectsage',
'subjectsgender',
'subjectsrace',
'urlofimageofdeceased',
'dateofinjuryresultingindeathmonthdayyear',
... |
/*
* JSON 문자열을 원래 데이터나 배열, 값으로 변환합니다.
*/
global.PARSE_STR = METHOD({
run : (dataStr) => {
//REQUIRED: dataStr
try {
let data = JSON.parse(dataStr);
if (CHECK_IS_DATA(data) === true) {
return UNPACK_DATA(data);
}
else if (CHECK_IS_ARRAY(data) === true) {
let array = [];
... |
define({
"_widgetLabel": "Lagerlista",
"titleBasemap": "Baskartor",
"titleLayers": "Funktionslager",
"labelLayer": "Lagernamn",
"itemZoomTo": "Zooma till",
"itemTransparency": "Transparens",
"itemSetVisibilityRange": "Ange visningsintervall",
"itemTransparent": "Transparent",
"itemOpaque": "Opak",
"... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.