code
stringlengths
2
1.05M
/* global d3 */ /* global nv */ /* browser: true */ 'use strict'; var _slice = [].slice; var _ = require('lodash'); var aggregate = require('./aggregate'); var colors = require('./colors'); var statuses = require('./statuses'); var barGraphs = _slice.call(document.querySelectorAll('[data-graph=bar]')); var data = bar...
module.exports = require("./qajax")(require("q"), require("xmlhttprequest").XMLHttpRequest, null);
/** * @param {string} s * @return {string[][]} */ var partition = function (s) { const result = [], combination = []; const getPartition = (s, idx) => { if (idx === s.length) { result.push(combination.slice()); return; } for (let i = idx; i < s.length; i++) {...
/*@ngInject*/ module.exports = function SearchCtrl($state, <% if (config) { %>config, <%= appname %>Api<% } else { %>api, data<% } %>) { var ctrl = this; // ======================================== // interface // ======================================== ctrl.api = <% if (config) { %><%= appname %>Api<% } el...
define(['angularApp'], function(app) { app.controller('StatisticsCtrl', ['$scope', '$interval', '$timeout', function($scope, $interval, $timeout) { $scope.setInt = function() { $interval(game.coreLoop, game.options.interval); log("Core loop interval set."); }; $scope...
var Webpack = require('webpack'); var ExtractTextPlugin = require('extract-text-webpack-plugin'); var HtmlWebpackPlugin = require('html-webpack-plugin'); var Path = require('path'); var myAlias = { components: Path.join(__dirname, '../src/components'), state: Path.join(__dirname, '../src/vuex/state'), muta...
version https://git-lfs.github.com/spec/v1 oid sha256:5acb316e56d9f3353944117203accf78c4c9ca87d0fba1692665d249e323b309 size 3422
#!/usr/bin/env node (function () { "use strict"; var btoa = require('../index'); console.log(btoa(process.argv[2])); }());
const consulaModule = require('./module.js') consulaModule.config(['$routeProvider', function($routeProvider) { $routeProvider .when('/', { templateUrl: 'home/home.html' }) .when('/patients', { templateUrl: 'patients/patientList.html', controller: 'patientListController' ...
import React from 'react'; import './Header.scss'; export default () => <div className="HeaderComponent"> <div className="text"> <span className="name"> rmndrz </span> <span className="version"> v1.0.0 </span> </div> ...
var raw = require('raw-body'); var xml2js = require('xml2js'); var _ = require('underscore'); var http = require('http'); var parser = new xml2js.Parser(); var dftCfg = { host: '127.0.0.1', port: 7070, path: '/http-bind/', method: 'POST', listen: '/JHB/' }; function getBody(req) { req = req.req || req; var type...
import React from 'react' import './SearchView.scss' import datas from '../../../store/data.json' import AutoResponsive from 'autoresponsive-react' import Chip from 'material-ui/Chip' let cardStyle = { width: 190, height: 240 } class SearchView extends React.Component { constructor (props) { super(props) ...
import {expect} from 'chai'; import views from '../../../src/app/redux/modules/views'; import moment from 'moment'; const dateFormat = 'DD/MM/YYYY HH:mm'; describe('redux - reducer "views"', () => { it('should return an initial state', () => { const initialState = { ...
/** * Jdigi * * Copyright 2015, Bob Jamison * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * ...
var config = require('./../config.js'); var r = require('rethinkdb'); var assert = require('assert'); var connections = {}; var TEST_DB = 'reqlitetest'; var TEST_TABLE = 'reqlitetestcontrol'; var MISSING_ID = 'nonExistingId'; var MISSING_FIELD = 'nonExistingField'; var MISSING_INDEX = 'nonExistingIndex'; var compare...
var path = require('path'); var express = require('express'); var webpack = require('webpack'); var config = require('./webpack.dev.config'); var opn = require('opn'); var app = express(); var compiler = webpack(config); var port = 1704; app.use(require('webpack-dev-middleware')(compiler, { noInfo: true, publicPat...
defineClass('Tada.Git.Dialog.Fetch', 'Tada.Git.Dialog.AbstractDialog', { __constructor: function(options) { this.__base($.extend({ responseTemplateId: "Tada-Git-Dialog-Fetch", repositoryTemplateId: "Tada-Git-Dialog-RepoInfo" }, options)); }, _processRepository: function(re...
import { color } from '../utils'; import { DEFAULT_MATERIAL, MAX_DIRECTIONAL } from '../constants'; import Material from '../core/material'; import Texture from '../core/texture'; import { UBO, DIRECTIONAL, FOG } from '../renderer/chunks'; class Default extends Material { constructor(props = {}) { super();...
var NGrams = function() { this.items = []; }; // adds an item to the list of ngrams ensuring uniqueness and count occurrences NGrams.prototype.add = function(ngram) { // do we have an ngram object with tokens? if(ngram.tokens.length > 0) { var aTokenString = ngram.tokens.join(); var exists = this.items.f...
(function () { 'use strict'; angular.module('ngTimeSlider', []) .constant('$', window.$) .directive('ngTimeSlider', ngTimeSlider); ngTimeSlider.$inject = ['$', '$rootScope']; function ngTimeSlider($, $rootScope) { return { restrict: 'A', scope: { ...
'use strict'; /* global Connector */ Connector.trackSelector = '.player-controls__title'; Connector.artistSelector = '.player-controls__artists'; Connector.isPlaying = function() { return $('body').hasClass('body_state_playing'); }; Connector.getTrackArt = function() { var backgroundStyle = $('.slider__item_playi...
'use strict'; /** * @ngdoc function * @name bluereconlineApp.controller:ProgramList * @description * # ProgramList * Controller of the bluereconlineApp */ angular.module('bluereconlineApp') .controller('ProgramInfo', ['$scope', 'ProInfoLoader', '$routeParams', 'ActiveUser', '$aside', '$location', 'MakeToast', ...
/** * @fileoverview the core class of the application. */ goog.provide('app.Core'); goog.provide('appOne'); goog.require('app.Module'); goog.require('ssd.helpers'); goog.require('app.ui.Debug'); goog.require('ssd.invocator'); /** * The base class * * This class will be exported as the main entry point * * @con...
const electron = require('electron'); const url = require('url'); const path = require('path'); const {app, BrowserWindow, Menu, ipcMain} = electron; let mainWindow; let addWindow; // Set ENV process.env.NODE_ENV = 'production'; //Listen for app to be ready app.on('ready', function () { //Create new window ...
/** * Created by darrell-shofstall on 7/21/17. */ import React from 'react'; import { Field, reduxForm } from 'redux-form/immutable'; // <--- immutable import import validate from './validate'; const renderField = ({ input, label, type, meta: { touched, error } }) => ( <div> <label>{label}</label> <div> ...
;(function ($, window, document, undefined) { 'use strict'; Foundation.libs.alert = { name : 'alert', version : '5.5.2', settings : { callback : function () {} }, init : function (scope, method, options) { this.bindings(method, options); }, events : funct...
module.exports = function(config) { config.set({ frameworks: ['browserify', 'mocha', 'sinon'], files: [ 'test/**/*.spec.js', 'node_modules/whatwg-fetch/fetch.js' ], preprocessors: { 'test/**/*.spec.js': 'browserify' }, browserify: { transform: [ ['babelify', { ...
'use strict'; // Use Applicaion configuration module to register a new module ApplicationConfiguration.registerModule(ApplicationConfiguration.modules.bankmain);
version https://git-lfs.github.com/spec/v1 oid sha256:f77755b8bb5960189e2e99d71b9ecf950368fb36c07d87a380cb80e9ab639e46 size 1534
'use strict'; require('babel-polyfill'); let str = 'console'; if (str) { let str = 'browser'; document.write(`Hello, ${str}!`); } console.log(`Hello, ${str}!`); import * as math from './lib/math.es6.js'; console.log('2π = ' + math.sum(math.pi, math.pi));
'use strict'; var chai = require('chai'); chai.Assertion.includeStack = true; var assert = chai.assert; var path = require('path'), stringify = require('json-stringify-safe'); var emulator = require('../../src/emulator'); // console.log('emulator ', emulator); describe('Sample tests', function () { it('shou...
require("./50.js"); require("./101.js"); require("./203.js"); require("./405.js"); module.exports = 406;
//returns euclidian distance squared function distance2(x1, y1, x2, y2) { return Math.pow((x2 - x1), 2) + Math.pow((y2 - y1), 2); } function isInt(n) { return typeof n === "number" && parseFloat(n) == parseInt(n, 10) && !isNaN(n); } /* * @param {list} players * @param {id} id * @return {number} index */ f...
define(function () { var me; function DebugWriter(targetDiv) { me = this; if (!(this instanceof DebugWriter)) { throw new TypeError("DebugWriter constructor cannot be called as a function."); } this.targetDiv = targetDiv; this.targetDiv.empty(); } De...
'use strict'; songbuzzApp.controller('PlayerController', ['$scope', '$interval', 'PlayerService', /** @constructor * * This is the PlayerController. * * @param $scope * @param $interval {object} Angular setInterval wrapper service. * @param PlayerService */ function ($scope,...
var albumRes = require('../resources/album_res'), noop = require('../utils/noop'); module.exports.run = function(channel) { channel.on('album_update', function (album) { // check if the album exist in database albumRes.fetchByInfos(album.name, album.artist, function (err, dbAlbum) { if (err) return con...
describe('Views', function (){ var assert = require('assert'); it ('should render children before parent', function (done){ var views = require('../lib/nigiri.js')(); views.define('v1', ['v2'], function (data, children, cb){ cb(null, 'this is the first and' + children.v2); }); views.define('v2', [], fun...
'use strict'; angular.module('app.security', []) .factory('security', ['$http', '$q', function($http, $q) { var that = this; function populateUserAccessLevels(role){ service.currentUserAccessLevels = {}; _.each(securityConfig.accessLevels, function(value, key){ ...
/* Adds a function to create a note object that contains information about a musical note: - name, e.g. 'C' - octave, -1 - 9 - fullName: 'C1' - frequency: 234.16, based on the basic pitch - number: 60 midi note number Adds several utility methods organised around the note object */ 'use stric...
/** * angular-mask * Personalized input masks for AngularJS * @version v1.2.6 * @link https://github.com/mareczek/angular-input-masks * @license MIT */ (function (angular) { var StringMask = (function() { var tokens = { '0': {pattern: /\d/, default: '0'}, '9': {pattern: /\d/, optional: true}, '#': {patter...
(function () { 'use strict'; angular .module('app.main.swEditor') .directive('swEditor', swEditor); /* @ngInject */ function swEditor() { // Usage: // // Creates: // var directive = { bindToController: true, controller: 'SwEditorController', templateUrl: 'app/main/swEditor/swEditor.html',...
/* global createjs */ var flowjs = flowjs || {}; flowjs.flowConnector = function flowConnector(xa, ya, xb, yb) { this.color = "blue"; this.alpha = 1; this.strokeWidth = 3; this.xa = xa; this.ya = ya; this.xb = xb; this.yb = yb; }; flowjs.flowConnector.prototype.generateLine...
const chai = require('chai'); const ReactInspectlet = require('../src/index').default.ReactInspectlet; // Tell chai that we'll be using the "should" style assertions. chai.should(); describe('react-inspectlet', function() { beforeEach(function() { this.jsdom = require('jsdom-global')() }); afterEach(funct...
// Some comment console.log('in a'); console.log('in b'); console.log('in c'); console.log('in app_tree.js');
import readRequestBody from "./readRequestBody" import readRequestHeaders from "./readRequestHeaders" import readRequestMethod from "./readRequestMethod" import readRequestUrl from "./readRequestUrl" import readRequestPath from "./readRequestPath" import readRequestQuery from "./readRequestQuery" import readRequestVers...
export default String('\n\ #ifdef USE_SKINNING\n\ \n\ vec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\ \n\ vec4 skinned = vec4( 0.0 );\n\ skinned += boneMatX * skinVertex * skinWeight.x;\n\ skinned += boneMatY * skinVertex * skinWeight.y;\n\ skinned += boneMatZ * skinVertex * skinWeight.z;\n\ skinned +...
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Creates an action which when dispatched informs the channels reducer to add a new channel of some kind */ function createAddChannelAction(kind, value) { return { type: "ADD_CHANNEL", payload: { kind: kind, value: value } }; } expor...
export default class ElasticSearchQueryService { getSearchQueryBody(searchQuery, years = []) { return Object.assign( {}, this.getQueryObject(searchQuery), this.getAggregationsObject(), this.getPostFilterObject(years) ); } getQueryObject(searc...
// Copyright (c) 2019 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, merge...
'use strict'; const express = require('express'); const app = express(); const bodyParser = require('body-parser'); const http = require('http'); const request = require('../common/request'); const common = require('../common/common'); let config; if (process.env.NODE_ENV === "local") { config = require('../config...
'use strict'; define(['./core'], function( BoardJS ) { BoardJS.Util = { isElement: function(obj) { return !!(obj && obj.nodeType === 1); }, isFunction: function(obj) { return !!(obj && obj.constructor && obj.call && obj.apply); }, isObject: function(obj) {...
import React from 'react'; import MarkdownDocs from 'docs/src/modules/components/MarkdownDocs'; import markdown from './filled-input.md'; export default function Page() { return <MarkdownDocs markdown={markdown} />; }
angular.module( 'smartHousing' ).config( function ( $httpProvider ){ $httpProvider.interceptors.push( 'loadingInterceptor' ); });
process.stdin.resume(); process.stdin.setEncoding('ascii'); let input = ""; process.stdin.on('data', (data) => { input += data; }); process.stdin.on('end', () => { main(); }); function assert(pass, message) { const start = pass ? "pass =>" : "fail =>"; console.log(`${start} ${message}`); } /* //...
// http://eslint.org/docs/user-guide/configuring module.exports = { root: true, parser: 'babel-eslint', parserOptions: { sourceType: 'module' }, env: { browser: true, }, // https://github.com/feross/standard/blob/master/RULES.md#javascript-standard-style extends: 'standard', // required to li...
var Comb = require('../lib/core'); var assert = require('assert'); describe('constructor', function() { it('Passing no options to constructor', function() { var comb = new Comb(); assert.equal(null, comb._.handlers); assert.deepEqual([], comb._.optionsOrder); }); it('Pass...
/* Copyright (C) 2015 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: An alert template displays a message on screen and asks the user to perform some action, such as confirm a purchase or destructive action. This variation of the alert template uses a description to p...
import React from 'react'; import { Heading, Slide, Text, Layout, Fill, List, ListItem } from 'spectacle'; const images = { reduxLogo: require('../../assets/images/redux.svg'), reduxFlow: require('../../assets/images/reduxFlow.jpg') }; const purple = '#764ABC'; const ReduxSlides = [ <Slide transition={...
'use strict'; var gulp = require('gulp'); var jsonutil = require('jsonutil'); var runSequence = require('run-sequence'); var del = require('del'); var wiredep = require('wiredep'); var Server = require('karma').Server; var $ = require('gulp-load-plugins')({ pattern: ['gulp-*'] }); var testFiles; gulp.task('prepar...
"use strict"; var Pig = (function() { // Vertices used by each cube instance var vbo = null; var nbo = null; var tbo = null; var tanbo = null; var numVertices = 0; //generate trianglar function tri(trianglar, points, normals) { trip(trianglar, points, normals, 0, 2, 1, vec3(0, 0, 1)); //front face tr...
import test from 'ava'; import makeParser from '../../parser'; import { makeFragment } from '../../parser/fragment'; import semantics from '../../semantics'; import validate from '..'; const parser = makeParser([]); const stmt = makeFragment(parser); const parseAndValidate = source => validate(semantics(parser(sourc...
/*! * XRegExp-All * <xregexp.com> * Steven Levithan (c) 2012-present MIT License */ // Module systems magic dance // Don't use strict mode for this function, so it can assign to global (function(root, definition) { // RequireJS if (typeof define === 'function' && define.amd) { define(definition); ...
define( ['view/RenderedView', 'data/Link', 'util/Util', 'text!tmpl/UserPicker.html'], function (RenderedView, Link, Util, tmpl) { var frameworkId = "${frameworkId}"; var currentUser = "${user.id}"; var This = RenderedView.extend({ template: _.template( tmpl ), initialize: function(options) { ...
// @flow import path from 'path'; import { getComponents } from '../getComponents'; // Checking the order of fixtures if irrelevant in this these tests, // so we target fixture by name instead function getFixtureByName(fixtures, fixtureName) { const fixture = fixtures.find(f => f.name === fixtureName); if (!fixtu...
/** * TODO * PortletContainer 作为一个独立的容器组件使用。 * 它既是一个符合界面组态规范的组件,亦是一个布局容器。 */ Ext.define('Brick.portal.component.PortletContainer', { extend: 'Brick.portal.LayoutContainer', initComponent: function () { this.callParent(); }, plugins: ['portal-absolutelayout'], /** * 获取布局插件 ...
// Widget should be used only with instrumented code loaded before! (function (global) { /** * Sort Methods for widget * @enum {function(a:ProfilerRecord, b:ProfilerRecord) : number} */ var profilerWidgetSortMethods = { bySelfTotalTime : function (a, b) { if (a.ownTotalTime > b.ownTotalTime) { return...
var gulp = require("gulp"); var babel = require("gulp-babel"); var exec = require('child_process').exec; gulp.task("es5ify", function() { return gulp.src("src/*.js") .pipe(babel()) .pipe(gulp.dest("dist")); });
'use strict'; var selectors; var filepath = 'config/customcolors.json'; var customColors = {}; var symbolcolors = {}; var fs = require('fs'); var request = require('request'); function writeIconCSS() { fs.appendFile('config/custom.css', selectors); } function load () { fs.readFile(filepath, 'utf8', functi...
'use babel'; // vars must be named the same thing in the import // as they are in the export import keyFuncs from '../utils/key-funcs.js'; const keyConstructor = atom.keymaps.constructor; export default class DefaultKeys { constructor() { const k = this; // "k" for "keyboard" const acceptableEvents = ["c...
var either = require('./either'); exports.left = either.left; exports.right = either.right; exports.InvalidOptionError = either.InvalidOptionError;
/** @module ember-data */ import Ember from 'ember'; import Adapter from "ember-data/adapter"; import { AdapterError, InvalidError, UnauthorizedError, ForbiddenError, NotFoundError, ConflictError, ServerError, TimeoutError, AbortError } from 'ember-data/adapters/errors'; import BuildURLMixin from "...
{ var target = unsafeUnwrap(this); var list; var root = getTreeScope(this).root; if (root instanceof scope.wrappers.ShadowRoot) { return findElements(this, index, result, p, ns, localName); } else if (target instanceof OriginalElement) { list = originalElementGetElementsByTagNameNS.call(target, ns, l...
/* * multiple-processes-test.js: Tests for spawning multiple processes with forever * * (C) 2010 Nodejitsu Inc. * MIT LICENCE * */ var assert = require('assert'), net = require('net'), path = require('path'), vows = require('vows'), forever = require('../lib/forever'); vows.describe('forever/mul...
'use strict'; angular.module("core.oauthrevoke", []);
var 0foo = 0;
/*fix for vue-binding materialize-select value issues*/ Vue.directive("select", { "twoWay": true, "bind": function () { $(this.el).material_select(); var self = this; $(this.el).on('change', function() { self.set($(self.el).val()); }); }, update: function ...
import CircularProgressBar from './CircularProgressBar'; import Registry from '@ui-autotools/registry'; const metadata = Registry.getComponentMetadata(CircularProgressBar); metadata.exportInfo = { path: 'src/CircularProgressBar/CircularProgressBar.js', };
// webserver import express from 'express' import morgan from 'morgan' import bodyparser from 'body-parser' import hbs from 'express-handlebars' // middlewares import upnp from './upnp' import api from './api' const app = express() // system middleware app.use(morgan('combined')) app.use(bodyparser.urlencoded({ ext...
/** * 名片库 * @Date: 2017-03-30 15:16:44 * @Last Modified by: Administrator * @Last Modified time: 2017-03-31 09:45:41 */ 'use strict'; import React from 'react'; import { observer } from 'decorators'; import { $user } from 'stores'; import { SearchBar } from 'antd-mobile'; import { Spin, Img, AppListView, AppSwi...
import transparentize from 'polished/lib/color/transparentize' import {translate, translateZ, rotateZ} from 'css-functions' import theme from '../../theme' const backgroundLineColor = transparentize(0.2, theme.cardColor) export default { notFound: { position: 'absolute', top: 0, left: 0, right: 0, ...
'use strict'; angular.module('yapp') .service('Repository', function(){ var db = firebase.database(), getWords = function(){ return db.ref('/words').once('value') .then(function(data) { return JSON.parse(data.val()); }) }, ...
define([ "./core", "./attributes/val", "./attributes/attr", "./attributes/prop", "./attributes/classes" ], function (jQuery) { // Return jQuery for attributes-only inclusion return jQuery; });
'use strict'; var mongoose = require('mongoose'), SupportVictory = mongoose.model('SupportVictory'), _ = require('lodash'); exports.create = function (req, res) { var supportVictory = new SupportVictory(req.body); supportVictory.user = req.user; supportVictory.save(function (err, supportVictory) {...
Template.searchResultsItem.events({ 'click .js-add-track': function (event) { var queue_id = Template.parentData()._id; var spotify_id = this.id; Meteor.call('queue_addTrack', queue_id, spotify_id); Session.set(SEARCHING_KEY, false); searchResults.set([]); } });
import React from 'react'; import {Route, IndexRoute} from 'react-router'; import App from 'components/app'; import HomePage from 'components/pages/home'; import UixDashboardPage from 'components/pages/uix/dashboard'; import UixSortablePage from 'components/pages/uix/sortable'; import LearnDashboardPage from 'component...
import { ObserveListener, RouteChangeListener } from 'core/listeners'; export class Feature { constructor() { this.settings = { enabled: ynabToolKit.options[this.constructor.name] }; } shouldInvoke() { // Default to no action. Unless you're implementing a CSS only feature, // you MUST over...
'use strict' import 'colors' import emoji from 'node-emoji' export default function log (msg, type) { if (!msg) return false const status = { 'ok': `:white_check_mark: ${msg}`.bold.green, 'warn': `:warning: ${msg}`.bold.yellow, 'err': `:x: ${msg}`.bold.red, 'red': msg.bold.red, 'yellow': m...
import { combineReducers } from 'redux'; import reducerWeather from './reducerWeather'; const rootReducer = combineReducers({ weather: reducerWeather }); export default rootReducer;
/** * Message resource for apeman project. * @module apemanlocale * @version 6.0.2 */ 'use strict' const print = require('./print') const validate = require('./validate') const apemanlocale = require('./apemanlocale') const defineLocale = require('./localing/define_locale') const resolver = require('./resolver') ...
'use strict'; angular.module('ukerApp') .controller('LoginCtrl', function ($scope, Auth, $location, $window) { $scope.user = {}; $scope.errors = {}; $scope.login = function(form) { $scope.submitted = true; if(form.$valid) { Auth.login({ email: $scope.user.email, ...
'use strict'; var mongoose = require('mongoose'), path = require('path'), async = require('async'), mime = require('mime'), _ = require('lodash'); var components = require('../../components'); var apiUtils = components.apiUtils; var getFileModelForType; exports.getFileModelForType = getFileModelForT...
/** * Production for KISON * @author yiminghe@gmail.com */ KISSY.add("kison/production", function (S, Base) { return Base.extend({ equals: function (other) { var self = this; if (!S.equals(other.get("rhs"), self.get("rhs"))) { return false; } ...
var constants = require('./constants'); var Snake = require('./snake'); var Score = require('./menu/score'); var Button = require('./menu/button'); function Canvas() { // Get contents elements this.div = document.getElementById('snake-div'); this.canvas = document.getElementById('snake'); if (this.div === un...
'use strict'; var chai = require('chai'), expect = chai.expect, sinon = require('sinon'), sandbox = require('sandboxed-module'); chai.use(require('sinon-chai')); describe('Server', () => { var env = {}; beforeEach(() => { env = {}; env.log = sandbox.require('../mocks/log')(); env.config = { ...
'use strict'; var koaSend = require('koa-send'); var path = require('path'); /** * ファイルの種類によりキャッシュファイルを生成して保存 * その後、 */ var portletTemplate = function (app) { return function*(file){ var f; f = path.join(app.root, file); yield koaSend(this, f); }; }; module.exports = exports = portletTemplate;
/** * @fileoverview Provides a feature popup directive. */ goog.provide('app.FeaturePopupController'); goog.provide('app.featurePopupDirective'); goog.require('app'); goog.require('app.Mymaps'); goog.require('app.profileDirective'); goog.require('goog.asserts'); goog.require('ol.events'); goog.require('ol.extent'); ...
import {bootstrap} from 'aurelia-bootstrapper'; import {StageComponent} from 'aurelia-testing'; import {PLATFORM} from 'aurelia-pal'; describe('Stage Attribute Item Component', () => { let component, boundData; beforeEach(() => { boundData = { attribute: { name: 'foo', value: ...
import HashHistory from './history/Hash' import HTML5History from './history/Html5' import Link from './Link' var historyBackends = { hash: HashHistory, html5: HTML5History }; function Listener(option, callback) { option = option || {}; var self = this; var root = 'undefined' === typeof option.root ? null...
import assignRanks from '../../src/assignRanks/index.js' import tape from 'tape' import { Graph } from 'graphlib' tape('rank assignment: overall', test => { // // f -------, b<-, // a -- b -- c -- e ` // `------ d -' // \ // <h---<g-` // const graph = new Graph({ directed: tru...
import { createApp } from 'vue' import puppeteer from 'puppeteer' export function mount (store, component) { const el = createElement() component.render = component.render || (() => {}) const app = createApp(component) app.use(store) return app.mount(el) } function createElement () { const el = docume...