text
stringlengths 2
6.14k
|
|---|
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.10.0 (2021-10-11)
*/
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.Env");n.add("print",function(n){var t,i;function e(){return i.execCommand("mcePrint")}(t=n).addCommand("mcePrint",function(){r.browser.isIE()?t.getDoc().execCommand("print",!1,null):t.getWin().print()}),(i=n).ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:e}),i.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:e}),n.addShortcut("Meta+P","","mcePrint")})}();
|
define('ghost-admin/controllers/team/index', ['exports', 'ember-controller', 'ember-computed', 'ember-service/inject'], function (exports, _emberController, _emberComputed, _emberServiceInject) {
exports['default'] = _emberController['default'].extend({
showInviteUserModal: false,
users: (0, _emberComputed.alias)('model'),
session: (0, _emberServiceInject['default'])(),
activeUsers: (0, _emberComputed.filter)('users', function (user) {
return (/^active|warn-[1-4]|locked$/.test(user.get('status'))
);
}),
invitedUsers: (0, _emberComputed.filter)('users', function (user) {
var status = user.get('status');
return status === 'invited' || status === 'invited-pending';
}),
actions: {
toggleInviteUserModal: function toggleInviteUserModal() {
this.toggleProperty('showInviteUserModal');
}
}
});
});
|
import {
UTSessionPing,
UTUserEventPing,
} from "test/schemas/pings";
import {GlobalOverrider} from "test/unit/utils";
import {UTEventReporting} from "lib/UTEventReporting.jsm";
const FAKE_EVENT_PING_PC = {
"event": "CLICK",
"source": "TOP_SITES",
"addon_version": "123",
"user_prefs": 63,
"session_id": "abc",
"page": "about:newtab",
"action_position": 5,
"locale": "en-US",
};
const FAKE_SESSION_PING_PC = {
"session_duration": 1234,
"addon_version": "123",
"user_prefs": 63,
"session_id": "abc",
"page": "about:newtab",
"locale": "en-US",
};
const FAKE_EVENT_PING_UT = [
"activity_stream", "event", "CLICK", "TOP_SITES", {
"addon_version": "123",
"user_prefs": "63",
"session_id": "abc",
"page": "about:newtab",
"action_position": "5",
},
];
const FAKE_SESSION_PING_UT = [
"activity_stream", "end", "session", "1234", {
"addon_version": "123",
"user_prefs": "63",
"session_id": "abc",
"page": "about:newtab",
},
];
describe("UTEventReporting", () => {
let globals;
let sandbox;
let utEvents;
beforeEach(() => {
globals = new GlobalOverrider();
sandbox = globals.sandbox;
sandbox.stub(global.Services.telemetry, "setEventRecordingEnabled");
sandbox.stub(global.Services.telemetry, "recordEvent");
utEvents = new UTEventReporting();
});
afterEach(() => {
globals.restore();
});
describe("#sendUserEvent()", () => {
it("should queue up the correct data to send to Events Telemetry", async () => {
utEvents.sendUserEvent(FAKE_EVENT_PING_PC);
assert.calledWithExactly(global.Services.telemetry.recordEvent, ...FAKE_EVENT_PING_UT);
let ping = global.Services.telemetry.recordEvent.firstCall.args;
assert.validate(ping, UTUserEventPing);
});
});
describe("#sendSessionEndEvent()", () => {
it("should queue up the correct data to send to Events Telemetry", async () => {
utEvents.sendSessionEndEvent(FAKE_SESSION_PING_PC);
assert.calledWithExactly(global.Services.telemetry.recordEvent, ...FAKE_SESSION_PING_UT);
let ping = global.Services.telemetry.recordEvent.firstCall.args;
assert.validate(ping, UTSessionPing);
});
});
describe("#uninit()", () => {
it("should call setEventRecordingEnabled with a false value", () => {
assert.equal(global.Services.telemetry.setEventRecordingEnabled.firstCall.args[0], "activity_stream");
assert.equal(global.Services.telemetry.setEventRecordingEnabled.firstCall.args[1], true);
utEvents.uninit();
assert.equal(global.Services.telemetry.setEventRecordingEnabled.secondCall.args[0], "activity_stream");
assert.equal(global.Services.telemetry.setEventRecordingEnabled.secondCall.args[1], false);
});
});
});
|
function testLength() {
// Test higher dimension shape up to 8D
var shape = [];
for (var i = 0; i < 8; i++) {
shape.push(i+1);
var p = new ParallelArray(shape, function () { return 0; });
// Length should be outermost dimension
assertEq(p.length, shape[0]);
}
}
if (getBuildConfiguration().parallelJS)
testLength();
|
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
//-----------------------------------------------------------------------------
var BUGNUMBER = 355829;
var summary = 'js_ValueToObject should return the original object if OBJ_DEFAULT_VALUE returns a primitive value';
var actual = '';
var expect = '';
//-----------------------------------------------------------------------------
test();
//-----------------------------------------------------------------------------
function test()
{
enterFunc ('test');
printBugNumber(BUGNUMBER);
printStatus (summary);
expect = actual = 'Good conversion';
var primitiveValues = [
true, false, 0, 1, -2, 0.1, -2e100, 0/0, 1/0, -1/1, "", "xxx",
undefined, null
];
for (var i = 0; i != primitiveValues.length; ++i) {
var v = primitiveValues[i];
var obj = { valueOf: function() { return v; } };
var obj2 = Object(obj);
if (obj !== obj2)
actual = "Bad conversion for '"+v + "'";
}
reportCompare(expect, actual, summary);
exitFunc ('test');
}
|
/*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
* details.
*
* You should have received a copy of the GNU Affero General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
import $ from 'jquery'
import YouTubeApi from 'tinymce_plugins/instructure_links/youtube_api'
const videoId = 'DgDk50dHbjM'
const link = {attr: () => {}, text: () => {}}
const vidTitle = 'this is my video title'
let ytApi
QUnit.module('YouTube API', {
setup () {
$.youTubeID = () => {return videoId}
ytApi = new YouTubeApi()
},
teardown () {
$.youTubeID = undefined
}
})
test('titleYouTubeText changes the text of a link to match the title', () => {
sinon.stub(ytApi, 'fetchYouTubeTitle').callsArgWith(1, vidTitle)
const mock = sinon.mock(link).expects('text').withArgs(vidTitle)
ytApi.titleYouTubeText(link)
mock.verify()
})
test('titleYouTubeText increments the failure count on failure', () => {
sinon.stub(ytApi, 'fetchYouTubeTitle').callsArgWith(1, null, {responseText: 'error'})
const mock = sinon.mock(link).expects('attr').thrice()
ytApi.titleYouTubeText(link)
mock.verify()
})
|
(function () {
'use strict';
var chartMod = angular.module('cloudbrain')
chartMod.value('API_URL', 'http://demo.apiserver.cloudbrain.rocks');
//Data Service
chartMod.factory('dataService',['$http','$interval', 'API_URL', function ($http, $interval, API_URL) {
var powerBandPromise = null;
var DATA_SPEED = 500;
function startPowerBand(deviceName, deviceId, callback) {
var curTimestamp = new Date().getTime();
if (!powerBandPromise) {
powerBandPromise = $interval(function() {
$http.jsonp(API_URL + '/power_bands?device_name=' + deviceName +
'&device_id=' + deviceId +
'&callback=JSON_CALLBACK&start=' + curTimestamp).then(function(response) {
// TODO: Update the curTimestamp with the latest timestamp from the
// data currently returned.
callback(response.data);
});
}, DATA_SPEED);
}
}
function stopPowerBand() {
if (powerBandPromise) {
$interval.cancel(powerBandPromise);
powerBandPromise = null;
}
}
// Public service interface
return {
startPowerBand: startPowerBand,
stopPowerBand: stopPowerBand,
};
}]);
})();
|
/**
* Filter type for {@link Ext.grid.column.Number number columns}.
*
* Based on Ext.grid.filters.filter.Number.
*/
Ext.define('NetProfile.grid.filters.filter.IPv4', {
extend: 'NetProfile.grid.filters.filter.TriFilter',
alias: 'grid.filter.ipv4',
uses: ['NetProfile.form.field.IPv4'],
type: 'ipv4',
config: {
fields: {
ge: {
iconCls: Ext.baseCSSPrefix + 'grid-filters-gt',
margin: '0 0 3px 0'
},
le: {
iconCls: Ext.baseCSSPrefix + 'grid-filters-lt',
margin: '0 0 3px 0'
},
eq: {
iconCls: Ext.baseCSSPrefix + 'grid-filters-eq',
margin: 0
}
}
},
itemDefaults: {
xtype: 'ipv4field',
allowBlank: true,
hideEmptyLabel: false,
labelSeparator: '',
labelWidth: 29
},
menuDefaults: {
// A menu with only form fields needs some body padding. Normally this padding
// is managed by the items, but we have no normal menu items.
bodyPadding: 3,
showSeparator: false
},
createMenu: function()
{
var me = this,
listeners = {
scope: me,
change: me.onIPValueChange
},
itemDefaults = me.getItemDefaults(),
menuItems = me.menuItems,
fields = me.getFields(),
field, i, len, key, item, cfg;
me.callParent();
me.fields = {};
for(i = 0, len = menuItems.length; i < len; i++)
{
key = menuItems[i];
if(key !== '-')
{
field = fields[key];
cfg = {
value: (me.filter && me.filter[key] ? me.filter[key].getValue() : null),
labelClsExtra: Ext.baseCSSPrefix + 'grid-filters-icon ' + field.iconCls
};
if(itemDefaults)
Ext.merge(cfg, itemDefaults);
Ext.merge(cfg, field);
delete cfg.iconCls;
me.fields[key] = item = me.menu.add(cfg);
item.filter = me.filter[key];
item.filterKey = key;
item.on(listeners);
}
else
me.menu.add(key);
}
},
getValue: function(field)
{
var value = {};
value[field.filterKey] = field.getValue();
return value;
},
onIPValueChange: function(field, newval)
{
var me = this,
updateBuffer = me.updateBuffer;
if(updateBuffer)
me.task.delay(updateBuffer, null, null, [me.getValue(field)]);
else
me.setValue(me.getValue(field));
}
});
|
/* */
"format cjs";
/**
* Sinon.JS 1.12.2, 2015/09/10
*
* @author Christian Johansen (christian@cjohansen.no)
* @author Contributors: https://github.com/cjohansen/Sinon.JS/blob/master/AUTHORS
*
* (The BSD License)
*
* Copyright (c) 2010-2014, Christian Johansen, christian@cjohansen.no
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
* * Neither the name of Christian Johansen nor the names of his contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/**
* Helps IE run the fake timers. By defining global functions, IE allows
* them to be overwritten at a later point. If these are not defined like
* this, overwriting them will result in anything from an exception to browser
* crash.
*
* If you don't require fake timers to work in IE, don't include this file.
*
* @author Christian Johansen (christian@cjohansen.no)
* @license BSD
*
* Copyright (c) 2010-2013 Christian Johansen
*/
function setTimeout() {}
function clearTimeout() {}
function setImmediate() {}
function clearImmediate() {}
function setInterval() {}
function clearInterval() {}
function Date() {}
// Reassign the original functions. Now their writable attribute
// should be true. Hackish, I know, but it works.
setTimeout = sinon.timers.setTimeout;
clearTimeout = sinon.timers.clearTimeout;
setImmediate = sinon.timers.setImmediate;
clearImmediate = sinon.timers.clearImmediate;
setInterval = sinon.timers.setInterval;
clearInterval = sinon.timers.clearInterval;
Date = sinon.timers.Date;
/**
* Helps IE run the fake XMLHttpRequest. By defining global functions, IE allows
* them to be overwritten at a later point. If these are not defined like
* this, overwriting them will result in anything from an exception to browser
* crash.
*
* If you don't require fake XHR to work in IE, don't include this file.
*
* @author Christian Johansen (christian@cjohansen.no)
* @license BSD
*
* Copyright (c) 2010-2013 Christian Johansen
*/
function XMLHttpRequest() {}
// Reassign the original function. Now its writable attribute
// should be true. Hackish, I know, but it works.
XMLHttpRequest = sinon.xhr.XMLHttpRequest || undefined;
/**
* Helps IE run the fake XDomainRequest. By defining global functions, IE allows
* them to be overwritten at a later point. If these are not defined like
* this, overwriting them will result in anything from an exception to browser
* crash.
*
* If you don't require fake XDR to work in IE, don't include this file.
*/
function XDomainRequest() {}
// Reassign the original function. Now its writable attribute
// should be true. Hackish, I know, but it works.
XDomainRequest = sinon.xdr.XDomainRequest || undefined;
|
// DATA_TEMPLATE: empty_table
oTest.fnStart("oLanguage.sUrl");
/* Note that we only test the internal storage of language information pulled form a file here
* as the other language tests will check it goes into the DOM correctly
*/
$(document).ready(function () {
/* Check the default */
var oTable = $('#example').dataTable({
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"bDeferRender": true
});
var oSettings = oTable.fnSettings();
oTest.fnTest(
"sUrl is blank by default",
null,
function () {
return oSettings.oLanguage.sUrl == "";
}
);
oTest.fnWaitTest(
"Loading of German file loads language information",
function () {
oSession.fnRestore();
oTable = $('#example').dataTable({
"sAjaxSource": "../../../examples/ajax/sources/arrays.txt",
"bDeferRender": true,
"oLanguage": {
"sUrl": "../../../examples/examples_support/de_DE.txt"
}
});
oSettings = oTable.fnSettings();
},
function () {
var bReturn =
oSettings.oLanguage.sProcessing == "Bitte warten..." &&
oSettings.oLanguage.sLengthMenu == "_MENU_ Einträge anzeigen" &&
oSettings.oLanguage.sZeroRecords == "Keine Einträge vorhanden." &&
oSettings.oLanguage.sInfo == "_START_ bis _END_ von _TOTAL_ Einträgen" &&
oSettings.oLanguage.sInfoEmpty == "0 bis 0 von 0 Einträgen" &&
oSettings.oLanguage.sInfoFiltered == "(gefiltert von _MAX_ Einträgen)" &&
oSettings.oLanguage.sInfoPostFix == "" &&
oSettings.oLanguage.sSearch == "Suchen" &&
oSettings.oLanguage.oPaginate.sFirst == "Erster" &&
oSettings.oLanguage.oPaginate.sPrevious == "Zurück" &&
oSettings.oLanguage.oPaginate.sNext == "Nächster" &&
oSettings.oLanguage.oPaginate.sLast == "Letzter";
return bReturn;
}
);
/* One DOM check just to ensure that they go into the DOM */
oTest.fnTest(
"Loaded language goes into the DOM",
null,
function () {
return document.getElementById('example_info').innerHTML = "1 bis 10 von 57 Einträgen";
}
);
oTest.fnComplete();
});
|
// Two call or construct signatures are considered identical when they have the same number of type parameters and, considering those
// parameters pairwise identical, have identical type parameter constraints, identical number of parameters with identical kind(required,
// optional or rest) and types, and identical return types.
var A = (function () {
function A() {
}
A.prototype.foo = function (x, y) {
return null;
};
return A;
})();
var B = (function () {
function B() {
}
B.prototype.foo = function (x, y) {
return null;
};
return B;
})();
var C = (function () {
function C() {
}
C.prototype.foo = function (x, y) {
return null;
};
return C;
})();
var D = (function () {
function D() {
}
D.prototype.foo = function (x, y) {
return null;
};
return D;
})();
var a;
var b = { foo: function (x, y) {
return '';
} };
function foo1(x) {
}
function foo1b(x) {
}
function foo1c(x) {
}
function foo2(x) {
}
function foo3(x) {
}
function foo4(x) {
}
function foo5(x) {
}
function foo5b(x) {
}
function foo5c(x) {
}
function foo6c(x) {
}
function foo6(x) {
}
function foo7(x) {
}
function foo8(x) {
}
function foo9(x) {
}
function foo10(x) {
}
function foo11(x) {
}
function foo12(x) {
}
function foo12b(x) {
}
function foo13(x) {
}
function foo14(x) {
}
function foo15(x) {
}
|
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// 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 in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/**
* Controller for the replica set list view.
*
* @final
*/
export class ReplicaSetListController {
/**
* @param {!backendApi.ReplicaSetList} replicaSetList
* @param {!angular.Resource} kdReplicaSetListResource
* @ngInject
*/
constructor(replicaSetList, kdReplicaSetListResource) {
/** @export {!backendApi.ReplicaSetList} */
this.replicaSetList = replicaSetList;
/** @export {!angular.Resource} */
this.replicaSetListResource = kdReplicaSetListResource;
}
}
|
/*
Copyright 2016 The LUCI Authors. All rights reserved.
Use of this source code is governed under the Apache License, Version 2.0
that can be found in the LICENSE file.
*/
'use strict';
// Include Gulp & tools we'll use
var gulp = require('gulp');
var luci = require('../gulp-common.js');
var path = require('path');
luci.setup(gulp, __dirname, {
includes: function(gulp, layout) {
return gulp.src([
path.join('inc', 'bower_components', 'page', 'page.js'),
]).pipe(gulp.dest(layout.dist('inc/bower_components/page')));
},
});
|
// Copyright 2017 The Kubernetes Dashboard Authors.
//
// 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 in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import podModule from 'pod/module';
describe('Pod card list controller', () => {
/**
* @type {!PodCardListController}
*/
let ctrl;
/**
* @type {!NamespaceService}
*/
let data;
beforeEach(() => {
angular.mock.module(podModule.name);
angular.mock.inject(($componentController, $rootScope, kdNamespaceService) => {
/** @type {!NamespaceService} */
data = kdNamespaceService;
/** @type {!PodCardListController} */
ctrl = $componentController(
'kdPodCardList', {$scope: $rootScope, kdNamespaceService_: data}, {});
});
});
it('should instantiate the controller properly', () => {
expect(ctrl).not.toBeUndefined();
});
it('should return the value from Namespace service', () => {
expect(ctrl.areMultipleNamespacesSelected()).toBe(data.areMultipleNamespacesSelected());
});
it('should show and hide metrics', () => {
ctrl.podList = {};
expect(ctrl.showMetrics()).toBe(false);
ctrl.podList.pods = [];
expect(ctrl.showMetrics()).toBe(false);
ctrl.podList.pods = [{}];
expect(ctrl.showMetrics()).toBe(false);
ctrl.podList.pods = [{metrics: {}}];
expect(ctrl.showMetrics()).toBe(true);
});
it('should return correct select id', () => {
// given
let expected = 'pods';
ctrl.podList = {};
ctrl.podListResource = {};
// when
let got = ctrl.getSelectId();
// then
expect(got).toBe(expected);
});
it('should return empty select id', () => {
// given
let expected = '';
// when
let got = ctrl.getSelectId();
// then
expect(got).toBe(expected);
});
});
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.9-2-d-7
description: Object.freeze - 'O' is a RegExp object
---*/
var regObj = new RegExp();
Object.freeze(regObj);
assert(Object.isFrozen(regObj), 'Object.isFrozen(regObj) !== true');
|
//>>built
define(
"dojox/editor/plugins/nls/kk/TableDialog", //begin v1.x content
({
insertTableTitle: "Кесте кірістіру",
modifyTableTitle: "Кестені өзгерту",
rows: "Жолдар:",
columns: "Бағандар:",
align: "Туралау:",
cellPadding: "Ұяшық өрісі:",
cellSpacing: "Ұяшық аралығы:",
tableWidth: "Кесте ені:",
backgroundColor: "Өң түсі:",
borderColor: "Жиек түсі:",
borderThickness: "Жиек қалыңдығы",
percent: "пайыз",
pixels: "нүктелер",
"default": "әдепкі",
left: "сол жақ",
center: "ортасы",
right: "оң жақ",
buttonSet: "Орнату", // translated elsewhere?
buttonInsert: "Кірістіру",
buttonCancel: "Болдырмау",
selectTableLabel: "Кестені таңдау",
insertTableRowBeforeLabel: "Жолды алдына қосу",
insertTableRowAfterLabel: "Жолды артына қосу",
insertTableColumnBeforeLabel: "Бағанды алдына қосу",
insertTableColumnAfterLabel: "Бағанды артына қосу",
deleteTableRowLabel: "Жолды жою",
deleteTableColumnLabel: "Бағанды жою"
})
//end v1.x content
);
|
"use strict";
// {{ scaffold.name }} service
let stackhut = require('./stackhut');
// create each service as either an ES6 class or an object of functions
class Default extends stackhut.Service {
constructor() {
super();
// empty
}
add(x, y){
let res = x + y;
return Promise.resolve(res);
}
}
// export the services here
module.exports = {
Default : new Default()
};
|
define(['modules/maps/module'], function (module) {
'use strict';
var _mapsCounter = 0;
module.registerDirective('smartMapInstance', function ($q, uiGmapGoogleMapApi, uiGmapIsReady, SmartMapInstances) {
return {
restrict: 'A',
compile: function (tElement, tAttributes) {
_mapsCounter++;
tElement.removeAttr('smart-map-instance data-smart-map-instance').addClass('smart-map-instance');
var scope = tElement.scope();
var mapId = tAttributes.smartMapInstance;
var dfd = $q.defer();
SmartMapInstances.add(mapId, dfd.promise);
tElement.data('smart.map.dfd', dfd);
uiGmapIsReady.promise(_mapsCounter).then(function () {
$('.smart-map-instance').each(function(){
var element = $(this);
var map = element.children('.angular-google-map').scope().map;
element.data('smart.map.dfd').resolve(map)
});
});
tElement.on('$destroy', function () {
SmartMapInstances.remove(mapId);
});
dfd.promise.then(function (map) {
scope.$on('$smartContentResize', function () {
google.maps.event.trigger(map, 'resize');
});
});
}
}
});
});
|
// Copyright (c) 2012 Ecma International. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es5id: 15.2.3.7-5-b-36
description: >
Object.defineProperties - value of 'enumerable' property of
'descObj' is 0 (8.10.5 step 3.b)
---*/
var obj = {};
var accessed = false;
Object.defineProperties(obj, {
prop: {
enumerable: 0
}
});
for (var property in obj) {
if (property === "prop") {
accessed = true;
}
}
assert.sameValue(accessed, false, 'accessed');
|
/*
* This class provides access to native mapping applications on the device.
*/
function Map() {
};
/*
* Shows a native map on the device with pins at the given positions.
* @param {Array} positions
*/
Map.prototype.show = function(positions) {
var jsonPos = {};
var pos = null;
if (typeof positions == 'object') {
// If positions is an array, then get the first only, since google's query
// can't take more than one marker (believe it or not).
// Otherwise we assume its a single position object.
if (positions.length) {
pos = positions[0];
} else {
pos = positions;
}
}
else if (navigator.geolocation.lastPosition) {
pos = navigator.geolocation.lastPosition;
} else {
// If we don't have a position, lets use nitobi!
pos = { coords: { latitude: 49.28305, longitude: -123.10689 } };
}
this.service = navigator.service.Request('palm://com.palm.applicationManager', {
method: 'open',
parameters: {
id: 'com.palm.app.maps',
params: {
query: "@" + pos.coords.latitude + "," + pos.coords.longitude
}
}
});
};
if (typeof navigator.map == "undefined") navigator.map = new Map();
|
// ==========================================================================
// Project: SproutCore - JavaScript Application Framework
// Copyright: ©2008-2011 Apple Inc. All rights reserved.
// License: Licensed under MIT license (see license.js)
// ==========================================================================
// ========================================================================
// SC.guidFor Tests
// ========================================================================
/*globals module test ok isObj equals expects */
module("Console object");
test("The console object should be defined for all browsers and work if supported", function() {
ok((console!==undefined), "console should not be undefined");
console.info("Console.info is working");
console.log("Console.log is working");
console.warn("Console.warn is working");
console.error("Console.error is working");
});
|
/*eslint-env mocha*/
/*global assert,it,describe*/
describe("e2e/07-autoxhr/31-xhr-excludes", function() {
var t = BOOMR_test;
var tf = BOOMR.plugins.TestFramework;
it("Should get 2 beacons: 1 onload, 1 xhr (XMLHttpRequest !== null)", function(done) {
this.timeout(3000);
t.ifAutoXHR(
done,
function() {
t.ensureBeaconCount(done, 2);
});
});
it("Should have the second beacon contain the URL of the second XHR", function(done) {
this.timeout(5000);
t.ifAutoXHR(
done,
function() {
t.ensureBeaconCount(function() {
assert.include(tf.beacons[1].u, "script200.js");
done();
}, 2);
});
});
});
|
import _curry2 from './internal/_curry2.js';
import _dispatchable from './internal/_dispatchable.js';
import _xdropWhile from './internal/_xdropWhile.js';
import slice from './slice.js';
/**
* Returns a new list excluding the leading elements of a given list which
* satisfy the supplied predicate function. It passes each value to the supplied
* predicate function, skipping elements while the predicate function returns
* `true`. The predicate function is applied to one argument: *(value)*.
*
* Dispatches to the `dropWhile` method of the second argument, if present.
*
* Acts as a transducer if a transformer is given in list position.
*
* @func
* @memberOf R
* @since v0.9.0
* @category List
* @sig (a -> Boolean) -> [a] -> [a]
* @sig (a -> Boolean) -> String -> String
* @param {Function} fn The function called per iteration.
* @param {Array} xs The collection to iterate over.
* @return {Array} A new array.
* @see R.takeWhile, R.transduce, R.addIndex
* @example
*
* const lteTwo = x => x <= 2;
*
* R.dropWhile(lteTwo, [1, 2, 3, 4, 3, 2, 1]); //=> [3, 4, 3, 2, 1]
*
* R.dropWhile(x => x !== 'd' , 'Ramda'); //=> 'da'
*/
var dropWhile = /*#__PURE__*/_curry2( /*#__PURE__*/_dispatchable(['dropWhile'], _xdropWhile, function dropWhile(pred, xs) {
var idx = 0;
var len = xs.length;
while (idx < len && pred(xs[idx])) {
idx += 1;
}
return slice(idx, Infinity, xs);
}));
export default dropWhile;
|
config_rs1 = {
_id : "rs1",
members : [ { _id:0, host:"localhost:27010", priority:1 }, { _id:1, host:"localhost:27017" } ]
};
rs.initiate(config_rs1);
|
/* globals App: true */
App = {}
|
// Copyright IBM Corp. 2013,2016. All Rights Reserved.
// Node module: strong-remoting
// This file is licensed under the Artistic License 2.0.
// License text available at https://opensource.org/licenses/Artistic-2.0
/**
* Expose the `Meta` plugin.
*/
module.exports = Meta;
/**
* Module dependencies.
*/
var Remoting = require('../');
/**
* Create a remotable Meta module for plugging into `RemoteObjects`.
*/
function Meta(remotes, options) {
// Unfold options.
var name = (options && options.name) || 'meta';
// We need a temporary REST adapter to discover our available routes.
var adapter = remotes.handler('rest').adapter;
var extension = {};
var helper = Remoting.extend(extension);
helper.method(routes, { returns: { type: 'object', root: true }});
function routes(callback) {
callback(null, adapter.allRoutes());
}
helper.method(classes, { returns: { type: 'object', root: true }});
function classes(callback) {
callback(null, remotes.classes());
}
remotes.exports[name] = extension;
return extension;
}
|
/**
* @fileoverview Tests for no-empty-label rule.
* @author Ilya Volodin
*/
"use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
var eslint = require("../../../lib/eslint"),
ESLintTester = require("../../../lib/testers/eslint-tester");
//------------------------------------------------------------------------------
// Tests
//------------------------------------------------------------------------------
var eslintTester = new ESLintTester(eslint);
eslintTester.addRuleTest("lib/rules/no-empty-label", {
valid: [
"labeled: for (var i in {}) { }",
{ code: "labeled: for (var i of {}) { }", ecmaFeatures: { forOf: true } },
"labeled: for (var i=10; i; i--) { }",
"labeled: while(i) {}",
"labeled: do {} while (i)",
"labeled: switch(i) { case 1: break; default: break; }"
],
invalid: [
{ code: "labeled: var a = 10;", errors: [{ message: "Unexpected label labeled", type: "LabeledStatement"}] }
]
});
|
/**
* Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
it.todo(() => {});
|
/*
Equation Editor Plugin for CKEditor v4
Version 2.1
This plugin allows equations to be created and edited from within CKEditor.
For more information goto: http://www.codecogs.com/latex/integration/ckeditor_v4/install.php
Copyright CodeCogs 2006-2013
Written by Will Bateman.
Special Thanks to:
- Kyle Jones for a fix to allow multiple editor to load on one page
*/
window.CCounter=0;
CKEDITOR.dialog.add( 'eqneditorDialog', function(editor)
{
var http = ('https:' == document.location.protocol ? 'https://' : 'http://');
window.CCounter++;
return {
title : editor.lang.eqneditor.title,
minWidth : 550,
minHeight : 380,
resizable: CKEDITOR.DIALOG_RESIZE_NONE,
contents : [
{
id : 'CCEquationEditor',
label : 'EqnEditor',
elements : [
{
type: 'html',
html: '<div id="CCtoolbar'+window.CCounter+'"></div>',
style: 'margin-top:-9px'
},
{
type: 'html',
html: '<label for="CClatex'+window.CCounter+'">Equation (LaTeX):</label>',
},
{
type: 'html',
html: '<textarea id="CClatex'+window.CCounter+'" rows="5"></textarea>',
style:'border:1px solid #8fb6bd; width:540px; font-size:16px; padding:5px; background-color:#ffc',
},
{
type: 'html',
html: '<label for="CCequation'+window.CCounter+'">Preview:</label>'
},
{
type :'html',
html: '<div style="position:absolute; left:5px; bottom:0; z-index:999"><a href="http://www.codecogs.com" target="_blank"><img src="'+http+'latex.codecogs.com/images/poweredbycc.gif" alt="Powered by CodeCogs" style="vertical-align:-4px; border:none"/></a> <a href="http://www.codecogs.com/latex/about.php" target="_blank">About</a> | <a href="http://www.codecogs.com/latex/popup.php" target="_blank">Install</a> | <a href="http://www.codecogs.com/pages/forums/forum_view.php?f=28" target="_blank">Forum</a> | <a href="http://www.codecogs.com" target="_blank">CodeCogs</a> © 2007-2014</div><img id="CCequation'+window.CCounter+'" src="'+http+'www.codecogs.com/images/spacer.gif" />'
}
]
}
],
onLoad : function() {
EqEditor.embed('CCtoolbar'+window.CCounter,'','efull');
EqEditor.add(new EqTextArea('CCequation'+window.CCounter, 'CClatex'+window.CCounter),false);
},
onShow : function() {
var dialog = this,
sel = editor.getSelection(),
image = sel.getStartElement().getAscendant('img',true);
// has the users selected an equation. Make sure we have the image element, include itself
if(image)
{
var sName = image.getAttribute('src').match( /(gif|svg)\.latex\?(.*)/ );
if(sName!=null) EqEditor.getTextArea().setText(sName[2]);
dialog.insertMode = true;
}
// set-up the field values based on selected or newly created image
dialog.setupContent( dialog.image );
},
onOk : function() {
var eqn = editor.document.createElement( 'img' );
eqn.setAttribute( 'alt', EqEditor.getTextArea().getLaTeX());
eqn.setAttribute( 'src', EqEditor.getTextArea().exportEquation('urlencoded'));
editor.insertElement(eqn);
EqEditor.Example.add_history(EqEditor.getTextArea().getLaTeX());
}
};
});
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'fakeobjects', 'fr-ca', {
anchor: 'Ancre',
flash: 'Animation Flash',
hiddenfield: 'Champ caché',
iframe: 'IFrame',
unknown: 'Objet inconnu'
});
|
exports.up = (pgm) => {
pgm.renameTable('t2', 't2r')
}
|
'use strict';
var gulp = require('gulp');
var paths = gulp.paths;
var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
gulp.task('lint', function() {
return gulp.src([
paths.src + '/**/*.js'
])
.pipe(jshint())
.pipe(jshint.reporter(stylish))
.pipe(jshint.reporter('fail'));
});
var jscs = require('gulp-jscs');
gulp.task('code-style', function() {
return gulp.src([
paths.src + '/**/*.js'
])
.pipe(jscs());
});
gulp.task('coding-standards', ['lint', 'code-style']);
|
var animalAppControllers = angular.module('HomelessController', []);
animalApp.controller('HomelessController', function($scope) {
});
|
/*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'eo', {
IdInputLabel: 'Id',
advisoryTitleInputLabel: 'Priskriba Titolo',
cssClassInputLabel: 'Stilfolioklasoj',
edit: 'Redakti Div',
inlineStyleInputLabel: 'Enlinia stilo',
langDirLTRLabel: 'Maldekstre dekstren (angle LTR)',
langDirLabel: 'Skribdirekto',
langDirRTLLabel: 'Dekstre maldekstren (angle RTL)',
languageCodeInputLabel: ' Lingvokodo',
remove: 'Forigi Div',
styleSelectLabel: 'Stilo',
title: 'Krei DIV ujon',
toolbar: 'Krei DIV ujon'
});
|
import r from 'restructure';
import { LookupTable } from './aat';
let BslnSubtable = new r.VersionedStruct('format', {
0: { // Distance-based, no mapping
deltas: new r.Array(r.int16, 32)
},
1: { // Distance-based, with mapping
deltas: new r.Array(r.int16, 32),
mappingData: new LookupTable(r.uint16)
},
2: { // Control point-based, no mapping
standardGlyph: r.uint16,
controlPoints: new r.Array(r.uint16, 32)
},
3: { // Control point-based, with mapping
standardGlyph: r.uint16,
controlPoints: new r.Array(r.uint16, 32),
mappingData: new LookupTable(r.uint16)
}
});
export default new r.Struct({
version: r.fixed32,
format: r.uint16,
defaultBaseline: r.uint16,
subtable: BslnSubtable
});
|
var Substance = require('substance');
var Tool = Substance.Surface.Tool;
var _ = require("substance/helpers");
var CiteTool = Tool.extend({
name: "cite",
update: function(surface, sel) {
this.surface = surface; // IMPORTANT!
// Set disabled when not a property selection
if (!surface.isEnabled() || sel.isNull() || !sel.isPropertySelection()) {
return this.setDisabled();
}
var newState = {
surface: surface,
sel: sel,
disabled: false
};
this.setToolState(newState);
},
// Needs app context in order to request a state switch
createCitation: function(citationTargetType) {
var citation;
var doc = this.context.doc;
var citationType = doc.getSchema().getNodeClass(citationTargetType).static.citationType;
var surface = this.surface;
var editor = surface.getEditor();
console.log('citationType', citationType);
surface.transaction(function(tx, args) {
var selection = args.selection;
var path = selection.start.path;
var startOffset = selection.start.offset;
if (!selection.isCollapsed) {
var out = editor.delete(tx, args);
args.selection = out.selection;
}
args.text = '$';
editor.insertText(tx, args);
citation = tx.create({
id: Substance.uuid(citationType),
"type": citationType,
"targets": [],
"path": path,
"startOffset": startOffset,
"endOffset": startOffset + 1,
});
citation.label = "???";
args.selection = citation.getSelection();
return args;
});
return citation;
},
toggleTarget: function(citationId, targetId) {
var doc = this.context.doc;
var citation = doc.get(citationId);
var newTargets = citation.targets.slice();
if (_.includes(newTargets, targetId)) {
newTargets = _.without(newTargets, targetId);
} else {
newTargets.push(targetId);
}
this.surface.transaction(function(tx, args) {
tx.set([citation.id, "targets"], newTargets);
return args;
});
}
});
module.exports = CiteTool;
|
/**
* Returns true if targetString ends with substring. Otherwise, returns false.
* @param {string} targetString
* @param {string} substring
* @returns {boolean}
*/
function endsWith(targetString, substring) {
return targetString.endsWith(substring);
}
module.exports = endsWith;
|
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dojox.dtl.html"]){dojo._hasResource["dojox.dtl.html"]=true;dojo.provide("dojox.dtl.html");dojo.deprecated("dojox.dtl.html","All packages and classes in dojox.dtl that start with Html or html have been renamed to Dom or dom");dojo.require("dojox.dtl.dom");dojox.dtl.HtmlTemplate=dojox.dtl.DomTemplate;}
|
version https://git-lfs.github.com/spec/v1
oid sha256:c53d0bfa3a80a45737c7e7b26b6d39d855b48b5c6095d9418e70969b0680e922
size 30050
|
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path d="M14 3.25l-10 10V17h3.75l10-10L14 3.25zM6.92 15H6v-.92l8-8 .92.92-8 8zM20.71 4.04c.39-.39.39-1.02 0-1.41L18.37.29a.9959.9959 0 0 0-1.41 0L15 2.25 18.75 6l1.96-1.96z" /><path fillOpacity=".36" d="M0 20h24v4H0v-4z" /></React.Fragment>
, 'BorderColorOutlined');
|
/**
* Copyright 2014 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function(f, define){
define([], f);
})(function(){
(function( window, undefined ) {
var kendo = window.kendo || (window.kendo = { cultures: {} });
kendo.cultures["en-NZ"] = {
name: "en-NZ",
numberFormat: {
pattern: ["-n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
percent: {
pattern: ["-n %","n %"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "%"
},
currency: {
pattern: ["-$n","$n"],
decimals: 2,
",": ",",
".": ".",
groupSize: [3],
symbol: "$"
}
},
calendars: {
standard: {
days: {
names: ["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],
namesAbbr: ["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],
namesShort: ["Su","Mo","Tu","We","Th","Fr","Sa"]
},
months: {
names: ["January","February","March","April","May","June","July","August","September","October","November","December",""],
namesAbbr: ["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",""]
},
AM: ["a.m.","a.m.","A.M."],
PM: ["p.m.","p.m.","P.M."],
patterns: {
d: "d/MM/yyyy",
D: "dddd, d MMMM yyyy",
F: "dddd, d MMMM yyyy h:mm:ss tt",
g: "d/MM/yyyy h:mm tt",
G: "d/MM/yyyy h:mm:ss tt",
m: "dd MMMM",
M: "dd MMMM",
s: "yyyy'-'MM'-'dd'T'HH':'mm':'ss",
t: "h:mm tt",
T: "h:mm:ss tt",
u: "yyyy'-'MM'-'dd HH':'mm':'ss'Z'",
y: "MMMM yyyy",
Y: "MMMM yyyy"
},
"/": "/",
":": ":",
firstDay: 1
}
}
}
})(this);
return window.kendo;
}, typeof define == 'function' && define.amd ? define : function(_, f){ f(); });
|
define([
'aeris/util',
'aeris/api/models/aerisapimodel'
], function(_, AerisApiModel) {
/**
* @publicApi
* @class Advisory
* @namespace aeris.api.models
* @extends aeris.api.models.AerisApiModel
*
* @constructor
* @override
*/
var Advisory = function(opt_attrs, opt_options) {
var options = _.defaults(opt_options || {}, {
endpoint: 'advisories'
});
AerisApiModel.call(this, opt_attrs, options);
};
_.inherits(Advisory, AerisApiModel);
/**
* @method parse
*/
Advisory.prototype.parse = function(resp) {
// Note that a request to the advisories endpoint using an
// an id returns an array of responses.
return resp.response ? resp.response[0] : resp;
};
return _.expose(Advisory, 'aeris.api.models.Advisory');
});
|
import React from 'react';
import MediaBox from '../src/MediaBox';
export default
<MediaBox src="assets/sample-1.jpg" caption="A demo media box1" width="650"/>;
|
/**
* @license Highcharts JS v7.1.3 (2019-08-14)
*
* Dot plot series type for Highcharts
*
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define('highcharts/modules/dotplot', ['highcharts'], function (Highcharts) {
factory(Highcharts);
factory.Highcharts = Highcharts;
return factory;
});
} else {
factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
}
}(function (Highcharts) {
var _modules = Highcharts ? Highcharts._modules : {};
function _registerModule(obj, path, args, fn) {
if (!obj.hasOwnProperty(path)) {
obj[path] = fn.apply(null, args);
}
}
_registerModule(_modules, 'modules/dotplot.src.js', [_modules['parts/Globals.js'], _modules['parts/Utilities.js']], function (H, U) {
/* *
*
* (c) 2009-2019 Torstein Honsi
*
* Dot plot series type for Highcharts
*
* License: www.highcharts.com/license
*
* !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!!
*
* */
/**
* @private
* @todo
* - Check update, remove etc.
* - Custom icons like persons, carts etc. Either as images, font icons or
* Highcharts symbols.
*/
var objectEach = U.objectEach;
var extend = H.extend, pick = H.pick, seriesType = H.seriesType;
/**
* @private
* @class
* @name Highcharts.seriesTypes.dotplot
*
* @augments Highcharts.Series
*/
seriesType('dotplot', 'column', {
itemPadding: 0.2,
marker: {
symbol: 'circle',
states: {
hover: {},
select: {}
}
}
}, {
drawPoints: function () {
var series = this, renderer = series.chart.renderer, seriesMarkerOptions = this.options.marker, itemPaddingTranslated = this.yAxis.transA *
series.options.itemPadding, borderWidth = this.borderWidth, crisp = borderWidth % 2 ? 0.5 : 1;
this.points.forEach(function (point) {
var yPos, attr, graphics, itemY, pointAttr, pointMarkerOptions = point.marker || {}, symbol = (pointMarkerOptions.symbol ||
seriesMarkerOptions.symbol), radius = pick(pointMarkerOptions.radius, seriesMarkerOptions.radius), size, yTop, isSquare = symbol !== 'rect', x, y;
point.graphics = graphics = point.graphics || {};
pointAttr = point.pointAttr ?
(point.pointAttr[point.selected ? 'selected' : ''] ||
series.pointAttr['']) :
series.pointAttribs(point, point.selected && 'select');
delete pointAttr.r;
if (series.chart.styledMode) {
delete pointAttr.stroke;
delete pointAttr['stroke-width'];
}
if (point.y !== null) {
if (!point.graphic) {
point.graphic = renderer.g('point').add(series.group);
}
itemY = point.y;
yTop = pick(point.stackY, point.y);
size = Math.min(point.pointWidth, series.yAxis.transA - itemPaddingTranslated);
for (yPos = yTop; yPos > yTop - point.y; yPos--) {
x = point.barX + (isSquare ?
point.pointWidth / 2 - size / 2 :
0);
y = series.yAxis.toPixels(yPos, true) +
itemPaddingTranslated / 2;
if (series.options.crisp) {
x = Math.round(x) - crisp;
y = Math.round(y) + crisp;
}
attr = {
x: x,
y: y,
width: Math.round(isSquare ? size : point.pointWidth),
height: Math.round(size),
r: radius
};
if (graphics[itemY]) {
graphics[itemY].animate(attr);
}
else {
graphics[itemY] = renderer.symbol(symbol)
.attr(extend(attr, pointAttr))
.add(point.graphic);
}
graphics[itemY].isActive = true;
itemY--;
}
}
objectEach(graphics, function (graphic, key) {
if (!graphic.isActive) {
graphic.destroy();
delete graphic[key];
}
else {
graphic.isActive = false;
}
});
});
}
});
H.SVGRenderer.prototype.symbols.rect = function (x, y, w, h, options) {
return H.SVGRenderer.prototype.symbols.callout(x, y, w, h, options);
};
});
_registerModule(_modules, 'masters/modules/dotplot.src.js', [], function () {
});
}));
|
#!/usr/bin/env node
/*global require, global*/
var test = require('tape');
var Promise = require('bluebird');
var util = require('base-widget/spec/util');
var cli = require('../lib/cli');
var Slap = require('../lib/ui/Slap');
test("cli", function (t) {
Promise.using(cli({screen: util.screenFactory()}), function (slap) {
t.test("should create an instance of slap", function (st) {
st.plan(1);
st.ok(slap instanceof Slap);
});
return new Promise(function (resolve) { t.on('end', resolve); });
}).done();
});
|
import React, { Component } from 'react'
import { Dropdown } from 'semantic-ui-react'
const options = [
{ key: 'English', text: 'English', value: 'English' },
{ key: 'French', text: 'French', value: 'French' },
{ key: 'Spanish', text: 'Spanish', value: 'Spanish' },
{ key: 'German', text: 'German', value: 'German' },
{ key: 'Chinese', text: 'Chinese', value: 'Chinese' },
]
class DropdownExampleAdditionLabelComponent extends Component {
state = { options }
handleAddition = (e, { value }) => {
this.setState({
options: [{ text: value, value }, ...this.state.options],
})
}
handleChange = (e, { value }) => this.setState({ currentValue: value })
render() {
const { currentValue } = this.state
return (
<Dropdown
options={this.state.options}
placeholder='Choose Language'
search
selection
fluid
allowAdditions
additionLabel={<i style={{ color: 'red' }}>Custom Language: </i>}
value={currentValue}
onAddItem={this.handleAddition}
onChange={this.handleChange}
/>
)
}
}
export default DropdownExampleAdditionLabelComponent
|
import _curry2 from './internal/_curry2.js';
/**
* Divides the first parameter by the second and returns the remainder. Note
* that this function preserves the JavaScript-style behavior for modulo. For
* mathematical modulo see [`mathMod`](#mathMod).
*
* @func
* @memberOf R
* @since v0.1.1
* @category Math
* @sig Number -> Number -> Number
* @param {Number} a The value to the divide.
* @param {Number} b The pseudo-modulus
* @return {Number} The result of `b % a`.
* @see R.mathMod
* @example
*
* R.modulo(17, 3); //=> 2
* // JS behavior:
* R.modulo(-17, 3); //=> -2
* R.modulo(17, -3); //=> 2
*
* const isOdd = R.modulo(R.__, 2);
* isOdd(42); //=> 0
* isOdd(21); //=> 1
*/
var modulo = _curry2(function modulo(a, b) { return a % b; });
export default modulo;
|
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
// MIT License. See license.txt
frappe.ui.form.Footer = Class.extend({
init: function(opts) {
var me = this;
$.extend(this, opts);
this.make();
this.make_assignments();
this.make_attachments();
this.make_tags();
this.make_comments();
// render-complete
$(this.frm.wrapper).on("render_complete", function() {
me.refresh();
})
},
make: function() {
var me = this;
this.wrapper = $('<div class="form-footer container">\
<!--i class="icon-cut" style="margin-top: -23px; margin-bottom: 23px; \
display: block; margin-left: 15px;"></i-->\
<div>\
<div class="help-area"></div>\
</div>\
<div class="after-save row">\
<div class="col-md-8">\
<div class="form-comments">\
<h5><i class="icon-comments"></i> '+__("Comments")+'</h5>\
</div>\
</div>\
<div class="col-md-4">\
<div class="form-tags">\
<h5 style="display: inline-block"><i class="icon-tag"></i> '+__("Tags")+'</h5>\
<span class="tag-area"></span><br>\
</div><br><br>\
<div class="form-assignments" style="margin-bottom: 7px;">\
<h5>\
<i class="icon-flag"></i> '+__("Assigned To")+': \
<button class="btn small btn-default pull-right"\
style="margin-top:-7px;">'+__("Add")+'</button>\
</h5>\
</div><br><br>\
<div class="form-attachments">\
<h5>\
<i class="icon-paper-clip"></i> '+__("Attachments")+':\
<button class="btn small btn-default pull-right"\
style="margin-top:-7px;">'+__("Add")+'</button>\
</h5>\
</div>\
</div>\
</div>\
</div>')
.appendTo(this.parent);
this.wrapper.find(".btn-save").click(function() {
me.frm.save('Save', null, this);
})
this.help_area = this.wrapper.find(".help-area").get(0);
},
make_tags: function() {
this.frm.tags = new frappe.ui.TagEditor({
parent: this.wrapper.find(".tag-area"),
frm: this.frm,
})
},
make_attachments: function() {
this.frm.attachments = new frappe.ui.form.Attachments({
parent: this.wrapper.find(".form-attachments"),
frm: this.frm
});
},
make_assignments: function() {
this.frm.assign_to = new frappe.ui.form.AssignTo({
parent: this.wrapper.find(".form-assignments"),
frm: this.frm
});
},
make_comments: function() {
this.frm.comments = new frappe.ui.form.Comments({
parent: this.wrapper.find(".form-comments"),
frm: this.frm
})
},
refresh: function() {
if(this.frm.doc.__islocal) {
this.parent.addClass("hide");
} else {
this.parent.removeClass("hide");
this.frm.attachments.refresh();
this.frm.comments.refresh();
this.frm.assign_to.refresh();
this.frm.tags.refresh();
}
},
});
|
/**
* Copyright © 2015 Magento. All rights reserved.
* See COPYING.txt for license details.
*/
var config = {
map: {
'*': {
configurable: 'Magento_ConfigurableProduct/js/configurable'
}
}
};
|
/**
* @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'specialchar', 'cs', {
euro: 'Znak eura',
lsquo: 'Počáteční uvozovka jednoduchá',
rsquo: 'Koncová uvozovka jednoduchá',
ldquo: 'Počáteční uvozovka dvojitá',
rdquo: 'Koncová uvozovka dvojitá',
ndash: 'En pomlčka',
mdash: 'Em pomlčka',
iexcl: 'Obrácený vykřičník',
cent: 'Znak centu',
pound: 'Znak libry',
curren: 'Znak měny',
yen: 'Znak jenu',
brvbar: 'Přerušená svislá čára',
sect: 'Znak oddílu',
uml: 'Přehláska',
copy: 'Znak copyrightu',
ordf: 'Ženský indikátor rodu',
laquo: 'Znak dvojitých lomených uvozovek vlevo',
not: 'Logistický zápor',
reg: 'Znak registrace',
macr: 'Pomlčka nad',
deg: 'Znak stupně',
sup2: 'Dvojka jako horní index',
sup3: 'Trojka jako horní index',
acute: 'Čárka nad vpravo',
micro: 'Znak mikro',
para: 'Znak odstavce',
middot: 'Tečka uprostřed',
cedil: 'Ocásek vlevo',
sup1: 'Jednička jako horní index',
ordm: 'Mužský indikátor rodu',
raquo: 'Znak dvojitých lomených uvozovek vpravo',
frac14: 'Obyčejný zlomek jedna čtvrtina',
frac12: 'Obyčejný zlomek jedna polovina',
frac34: 'Obyčejný zlomek tři čtvrtiny',
iquest: 'Znak obráceného otazníku',
Agrave: 'Velké písmeno latinky A s čárkou nad vlevo',
Aacute: 'Velké písmeno latinky A s čárkou nad vpravo',
Acirc: 'Velké písmeno latinky A s vokáněm',
Atilde: 'Velké písmeno latinky A s tildou',
Auml: 'Velké písmeno latinky A s dvěma tečkami',
Aring: 'Velké písmeno latinky A s kroužkem nad',
AElig: 'Velké písmeno latinky Ae',
Ccedil: 'Velké písmeno latinky C s ocáskem vlevo',
Egrave: 'Velké písmeno latinky E s čárkou nad vlevo',
Eacute: 'Velké písmeno latinky E s čárkou nad vpravo',
Ecirc: 'Velké písmeno latinky E s vokáněm',
Euml: 'Velké písmeno latinky E s dvěma tečkami',
Igrave: 'Velké písmeno latinky I s čárkou nad vlevo',
Iacute: 'Velké písmeno latinky I s čárkou nad vpravo',
Icirc: 'Velké písmeno latinky I s vokáněm',
Iuml: 'Velké písmeno latinky I s dvěma tečkami',
ETH: 'Velké písmeno latinky Eth',
Ntilde: 'Velké písmeno latinky N s tildou',
Ograve: 'Velké písmeno latinky O s čárkou nad vlevo',
Oacute: 'Velké písmeno latinky O s čárkou nad vpravo',
Ocirc: 'Velké písmeno latinky O s vokáněm',
Otilde: 'Velké písmeno latinky O s tildou',
Ouml: 'Velké písmeno latinky O s dvěma tečkami',
times: 'Znak násobení',
Oslash: 'Velké písmeno latinky O přeškrtnuté',
Ugrave: 'Velké písmeno latinky U s čárkou nad vlevo',
Uacute: 'Velké písmeno latinky U s čárkou nad vpravo',
Ucirc: 'Velké písmeno latinky U s vokáněm',
Uuml: 'Velké písmeno latinky U s dvěma tečkami',
Yacute: 'Velké písmeno latinky Y s čárkou nad vpravo',
THORN: 'Velké písmeno latinky Thorn',
szlig: 'Malé písmeno latinky ostré s',
agrave: 'Malé písmeno latinky a s čárkou nad vlevo',
aacute: 'Malé písmeno latinky a s čárkou nad vpravo',
acirc: 'Malé písmeno latinky a s vokáněm',
atilde: 'Malé písmeno latinky a s tildou',
auml: 'Malé písmeno latinky a s dvěma tečkami',
aring: 'Malé písmeno latinky a s kroužkem nad',
aelig: 'Malé písmeno latinky ae',
ccedil: 'Malé písmeno latinky c s ocáskem vlevo',
egrave: 'Malé písmeno latinky e s čárkou nad vlevo',
eacute: 'Malé písmeno latinky e s čárkou nad vpravo',
ecirc: 'Malé písmeno latinky e s vokáněm',
euml: 'Malé písmeno latinky e s dvěma tečkami',
igrave: 'Malé písmeno latinky i s čárkou nad vlevo',
iacute: 'Malé písmeno latinky i s čárkou nad vpravo',
icirc: 'Malé písmeno latinky i s vokáněm',
iuml: 'Malé písmeno latinky i s dvěma tečkami',
eth: 'Malé písmeno latinky eth',
ntilde: 'Malé písmeno latinky n s tildou',
ograve: 'Malé písmeno latinky o s čárkou nad vlevo',
oacute: 'Malé písmeno latinky o s čárkou nad vpravo',
ocirc: 'Malé písmeno latinky o s vokáněm',
otilde: 'Malé písmeno latinky o s tildou',
ouml: 'Malé písmeno latinky o s dvěma tečkami',
divide: 'Znak dělení',
oslash: 'Malé písmeno latinky o přeškrtnuté',
ugrave: 'Malé písmeno latinky u s čárkou nad vlevo',
uacute: 'Malé písmeno latinky u s čárkou nad vpravo',
ucirc: 'Malé písmeno latinky u s vokáněm',
uuml: 'Malé písmeno latinky u s dvěma tečkami',
yacute: 'Malé písmeno latinky y s čárkou nad vpravo',
thorn: 'Malé písmeno latinky thorn',
yuml: 'Malé písmeno latinky y s dvěma tečkami',
OElig: 'Velká ligatura latinky OE',
oelig: 'Malá ligatura latinky OE',
'372': 'Velké písmeno latinky W s vokáněm',
'374': 'Velké písmeno latinky Y s vokáněm',
'373': 'Malé písmeno latinky w s vokáněm',
'375': 'Malé písmeno latinky y s vokáněm',
sbquo: 'Dolní 9 uvozovka jednoduchá',
'8219': 'Horní obrácená 9 uvozovka jednoduchá',
bdquo: 'Dolní 9 uvozovka dvojitá',
hellip: 'Trojtečkový úvod',
trade: 'Obchodní značka',
'9658': 'Černý ukazatel směřující vpravo',
bull: 'Kolečko',
rarr: 'Šipka vpravo',
rArr: 'Dvojitá šipka vpravo',
hArr: 'Dvojitá šipka vlevo a vpravo',
diams: 'Černé piky',
asymp: 'Téměř se rovná'
} );
|
/** Search and NLP (natural language processing) support */
var englishInvalidKeywords = /^and|or|to|the|if|with|which|an$/;
function isValidKeyword(x) {
if (x.length < 2) return false;
return !englishInvalidKeywords.test(x);
}
function getKeywords(s) {
return s.toLowerCase().replace(',',' ').replace('\.',' ')
.replace('\:',' ')
.replace('\/',' ').split(' ');
}
function updateTagSuggestions(t, mt, onAdd, getEditedFocus) {
t = getKeywords(t);
var keywords = _.filter(t, isValidKeyword);
mt.html('');
var matched = { };
_.each(keywords, function(keyword) {
var types = self.tags();
function keywordMatchesTag(k, t) {
var name = types[t].name;
var desc = types[t].description;
if (desc) {
name = name + ' ' + desc;
}
var kk = getKeywords(name);
return _.contains(kk, k);
}
for (var t in types) {
if (keywordMatchesTag(keyword, t)) {
matched[t] = true;
}
}
});
for (var m in matched) {
(function() {
var e = getEditedFocus();
if (objHasTag(e, m))
return;
var mx = self.getTag(m);
var mn = mx.name;
//var bb = $('<button>' + mn + '?</button>');
var ti = getTagIcon(m);
if (ti)
mn = '<img src="' + ti + '"/>"' + mn;
var bb = $('<a href="#">' + mn + '?</a>');
bb.click(function() {
onAdd( { id: mx.uri } );
});
mt.append('+');
mt.append(bb);
mt.append(' ');
})();
}
}
|
/* ===========================================================
* bootstrap-popover.js v2.0.4
* http://twitter.github.com/bootstrap/javascript.html#popovers
* ===========================================================
* Copyright 2012 Twitter, 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 applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* =========================================================== */
!function ($) {
"use strict"; // jshint ;_;
/* POPOVER PUBLIC CLASS DEFINITION
* =============================== */
var Popover = function (element, options) {
this.init('popover', element, options)
}
/* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js
========================================== */
Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, {
constructor: Popover
, setContent: function () {
var $tip = this.tip()
, title = this.getTitle()
, content = this.getContent()
$tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title)
$tip.find('.popover-content > *')[this.options.html ? 'html' : 'text'](content)
$tip.removeClass('fade top bottom left right in')
}
, hasContent: function () {
return this.getTitle() || this.getContent()
}
, getContent: function () {
var content
, $e = this.$element
, o = this.options
content = $e.attr('data-content')
|| (typeof o.content == 'function' ? o.content.call($e[0]) : o.content)
return content
}
, tip: function () {
if (!this.$tip) {
this.$tip = $(this.options.template)
}
return this.$tip
}
, destroy: function () {
this.hide().$element.off('.' + this.type).removeData(this.type)
}
})
/* POPOVER PLUGIN DEFINITION
* ======================= */
$.fn.popover = function (option) {
return this.each(function () {
var $this = $(this)
, data = $this.data('popover')
, options = typeof option == 'object' && option
if (!data) $this.data('popover', (data = new Popover(this, options)))
if (typeof option == 'string') data[option]()
})
}
$.fn.popover.Constructor = Popover
$.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, {
placement: 'right'
, content: ''
, template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"><p></p></div></div></div>'
})
}(window.jQuery);
|
/**
* Enables graph dragging.
*/
function enableGraphDragging() {
/* Extending the jQuery draggable option to be fitted with right click for either graph or graphRootSVG.
This also disables the context menu for graphRootSVG, but not for the tab.*/
$.extend($.ui.draggable.prototype, {
_mouseInit: function() {
var context = this;
if (!this.options.mouseButton) {
this.options.mouseButton = 1;
}
$.ui.mouse.prototype._mouseInit.apply(this, arguments);
this.started = false;
},
_mouseDown: function(event) {
(this._mouseStarted && this._mouseUp(event));
this._mouseDownEvent = event;
var that = this,
btnIsLeft = (event.which === this.options.mouseButton),
elIsCancel = (typeof this.options.cancel === 'string' && event.target.nodeName ? $(event.target).closest(this.options.cancel).length : false);
if (!btnIsLeft || elIsCancel || !this._mouseCapture(event)) {
return true;
}
this.mouseDelayMet = !this.options.delay;
if (!this.mouseDelayMet) {
this._mouseDelayTimer = setTimeout(function () {
that.mouseDelayMet = true;
}, this.options.delay);
}
if (this._mouseDistanceMet(event) && this._mouseDelayMet(event)) {
this._mouseStarted = (this._mouseStart(event) !== false);
if (!this._mouseStarted) {
event.preventDefault();
return true;
}
}
// This is apparently for Gecko and Opera, but I haven't tested it out yet.
if (true === $.data(event.target, this.widgetName + '.preventClickEvent')) {
$.removeData(event.target, this.widgetName + '.preventClickEvent');
}
this._mouseMoveDelegate = function(event) {
return that._mouseMove(event);
};
this._mouseUpDelegate = function(event) {
return that._mouseUp(event);
};
$(document)
.bind('mousemove.' + this.widgetName, this._mouseMoveDelegate)
.bind('mouseup.' + this.widgetName, this._mouseUpDelegate);
event.preventDefault();
mouseHandled = true;
return true;
}
});
$('#graphRootSVG').draggable({
mouseButton: 3
});
}
/**
* Disables Tab key.
* @param {object} event The keydown event.
* @returns {boolean} Whether the key is the tab key.
*/
document.onkeydown = function (event) {
'use strict';
if (event.which === 9) { // 9 is the Tab key.
return false;
}
};
/**
* Initializes interface to cookie settings; blank interface if no cookies exist
* TODO: Function too long
*/
function initializeGraphSettings() {
'use strict';
// Clear FCE count and 'Check My POSt!' tab
currentFCEs = 0;
currentFCEs100 = 0;
currentFCEs200 = 0;
currentFCEs300 = 0;
currentFCEs400 = 0;
currentFCEsMAT = 0;
clickedCourses = [];
// Clear 'My Courses' tab
$('#courseGrid').empty();
$('input:checkbox').attr('checked', false);
$('input:text').attr('value', '');
// Set initial node status
$.each(nodes, function (i, node) {
var nodeStatus = getCookie(window[node].id);
if (nodeStatus.length === 0) {
nodeStatus = 'inactive';
setCookie(node, nodeStatus);
}
if (initiallyTakeable.indexOf(node) > -1 && nodeStatus === 'inactive') {
window[node].status = 'takeable';
} else {
window[node].status = nodeStatus;
}
// Check the courses with FCE reqs
if (window[node].hybrid === false) {
if (window[node].status === 'active' || window[node].status === 'overridden') {
updateClickedCourses(node, true);
}
}
});
$.each(nodes, function (i, node) {
window[node].updateSVG();
$.each(window[node].outEdges, function (i, edge) {
edge.updateStatus();
});
});
updateFCECount();
// Clear any active focus
if (activeFocus !== '') {
$('.focusTabs').tabs('option', 'active', false);
$('ellipse.spotlight').remove();
clearFocus();
}
// only run this if the CSC graph is loaded
if (getCookie('active-graph') === '1') {
csc318.updateStatus();
csc454.updateStatus();
}
}
/**
* Resets graph to default (no Nodes selected).
*/
function reset() {
'use strict';
// Set initial node status
$.each(nodes, function (i, node) {
if (initiallyTakeable.indexOf(node) > -1) {
window[node].status = 'takeable';
} else {
window[node].status = 'inactive';
}
setCookie(window[node].id, window[node].status);
window[node].updateSVG();
});
// Edges
$('path').attr('data-active', 'inactive');
$('.region').removeAttr('data-active');
// Clear 'My Courses' tab
$('#courseGrid').empty();
// Clear any active focus
if (activeFocus !== '') {
$('.focusTabs').tabs('option', 'active', false);
$('ellipse.spotlight').remove();
clearFocus();
}
// Clear FCE count and 'Check My POSt!' tab
currentFCEs = 0;
currentFCEs100 = 0;
currentFCEs200 = 0;
currentFCEs300 = 0;
currentFCEs400 = 0;
currentFCEsMAT = 0;
clickedCourses = [];
updateFCECount();
fillFCECount();
$('input:checkbox').attr('checked', false);
$('input:text').attr('value', '');
}
/**
* Removes all tool-tips.
*/
function removeToolTips() {
'use strict';
$('.tooltip-group').remove();
}
/**
* Clears all timeouts.
*/
function clearAllTimeouts() {
'use strict';
for (var i = 0; i < timeouts.length; i++) {
clearTimeout(timeouts[i]);
}
timeouts = [];
}
|
// Generated by CoffeeScript 1.9.3
var LocalizationManager, Polyglot, cozydb;
Polyglot = require('node-polyglot');
cozydb = require('cozydb');
LocalizationManager = (function() {
function LocalizationManager() {}
LocalizationManager.prototype.polyglot = null;
LocalizationManager.prototype.initialize = function(callback) {
if (callback == null) {
callback = function() {};
}
return this.ensureReady(callback);
};
LocalizationManager.prototype.setRenderer = function(renderer) {
return this.renderer = renderer;
};
LocalizationManager.prototype.retrieveLocale = function(callback) {
return cozydb.api.getCozyLocale(function(err, locale) {
if ((err != null) || !locale) {
locale = 'en';
}
return callback(null, locale);
});
};
LocalizationManager.prototype.ensureReady = function(callback) {
if (this.polyglot) {
return callback(null, this.polyglot);
}
return this.retrieveLocale((function(_this) {
return function(err, locale) {
var phrases;
if (err) {
return callback(err);
}
phrases = (function() {
try {
return require("../locales/" + locale);
} catch (_error) {
err = _error;
return require('../locales/en');
}
})();
_this.polyglot = new Polyglot({
locale: locale,
phrases: phrases
});
return callback(null, _this.polyglot);
};
})(this));
};
LocalizationManager.prototype.t = function(key, params) {
var ref;
if (params == null) {
params = {};
}
return (ref = this.polyglot) != null ? ref.t(key, params) : void 0;
};
LocalizationManager.prototype.render = function(name, options, callback) {
return this.ensureReady((function(_this) {
return function(err) {
var viewName;
if (err) {
return callback(err);
}
viewName = _this.polyglot.currentLocale + "_" + name;
return _this.renderer(viewName, options, callback);
};
})(this));
};
return LocalizationManager;
})();
module.exports = new LocalizationManager();
|
import React from 'react';
import Analyzer from 'parser/core/Analyzer';
import Abilities from 'parser/core/modules/Abilities';
import SPELLS from 'common/SPELLS';
import SpellLink from 'common/SpellLink';
class InitialMarrowrendCast extends Analyzer {
static dependencies = {
abilities: Abilities,
};
firstMRCast = false;
firstMRCastWithoutDRW = false;
on_byPlayer_cast(event) {
if (event.ability.guid !== SPELLS.MARROWREND.id || this.firstMRCast) {
return;
}
this.firstMRCast = true;
if (!this.selectedCombatant.hasBuff(SPELLS.DANCING_RUNE_WEAPON_BUFF.id)) {
this.firstMRCastWithoutDRW = true;
}
}
get initialMRThresholds() {
return {
actual: this.firstMRCastWithoutDRW,
isEqual: true,
style: 'boolean',
};
}
suggestions(when) {
when(this.initialMRThresholds).isTrue().addSuggestion((suggest, actual, recommended) => {
return suggest(<>Use your first <SpellLink id={SPELLS.MARROWREND.id} /> together with <SpellLink id={SPELLS.DANCING_RUNE_WEAPON.id} /> to build up stacks of <SpellLink id={SPELLS.BONE_SHIELD.id} /> faster without wasting as much runes. This will also increase your initial threat-genration as your burst DPS will increase significantly. Don't treat <SpellLink id={SPELLS.DANCING_RUNE_WEAPON.id} /> as a defensive CD unless you really need the parry and increased Runic Power generation defensively.</>)
.icon(SPELLS.DANCING_RUNE_WEAPON.icon);
});
}
}
export default InitialMarrowrendCast;
|
/* global describe, it, expect */
(function() {
'use strict';
var root = this;
root.define([], function() {
describe('In Roboblocks.Blocks.text_print block', function () {
it('generates expected default Arduino code', function () {
expect( true ).to.equal( true );
var bool = Blockly.Block.obtain(Blockly.mainWorkspace, 'text_print');
assert.equal(Blockly.Arduino.workspaceToCode(), 'void setup()\n{\n\n}\n\n\nvoid loop()\n{\n print(\'\');\n\n}');
});
});
});
}).call( this );
|
sap.ui.define(['sap/uxap/BlockBase'], function (BlockBase) {
"use strict";
var myBlock = BlockBase.extend("sap.uxap.testblocks.BasicDivBlock", {
metadata: {
properties: {
"height": {type: "string", group: "Appearance"},
"backgroundColor": {type: "string", group: "Appearance"}
}
}
});
return myBlock;
}, true);
|
/*
* Waltz - Enterprise Architecture
* Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project
* See README.md for more information
*
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific
*
*/
import _ from "lodash";
import { CORE_API } from "../../common/services/core-api-utils";
import { initialiseData } from "../../common";
import { buildHierarchies } from "../../common/hierarchy-utils";
import { select } from "d3-selection";
import template from "./dynamic-nav-aid.html";
import { rgb } from "d3-color";
const bindings = {
};
const initialState = {};
const baseDimensions = {
graph: {
width: 1000,
height: 600,
},
margin: {
top: 40,
left: 5,
right: 5,
bottom: 50
},
label: {
height: 10,
minSpacing: 8,
width: 200
},
header: {
height: 20
}
};
let redraw = null;
function prepareGraph(svg) {
const header = svg
.append("g")
.classed("dna-header", true);
const topBlocks = svg
.append("g")
.classed("dna-top-blocks", true);
return {
header,
svg,
topBlocks
};
}
function update(sections,
model,
tweakers) {
redraw = () => update(sections, model, tweakers);
const blocks = sections.topBlocks
.selectAll(".dna-block")
.data(model, d => d.id);
drawNestedBlocks(blocks);
}
function drawNestedBlocks(selection) {
console.log("drawNestedBlocks: ", selection);
const newBlockGs = selection
.enter()
.append("g")
.classed("dna-block", true)
.attr("transform", (d, i) => `translate(${i * 100} 0)`);
const fill = rgb("#6d84ff");
newBlockGs
.append("rect")
.attrs((d, i) => {
console.log({d, i});
return {
fill,
stroke: "#ccc",
width: 100,
height: 100
}
});
newBlockGs
.append("rect")
.attrs(() => {
return {
fill: fill.darker(1.5),
stroke: "#ccc",
width: 100,
height: 25
}
});
newBlockGs
.append("text")
.attrs(() => {
return {
fill: "#FFF",
dy: 12,
dx: 25
};
})
.text(d => d.name);
const children = newBlockGs
.selectAll(".dna-block")
.data((d) => d.children, d => d.id)
.enter();
if (!children.empty()) {
children.each(d => drawNestedBlocks(d));
}
}
function drawBlocks(section, model) {
const blocks = section
.selectAll(".dna-block")
.data(model, d => d.id);
// enter
const newBlockGs = blocks
.enter()
.append("g")
.classed("dna-block", true)
.attr("transform", (d, i) => `translate(${i * 100} 0)`);
const fill = rgb("#6d84ff");
newBlockGs
.append("rect")
.attrs(() => {
return {
fill,
stroke: "#ccc",
width: 100,
height: 100
}
});
newBlockGs
.append("rect")
.attrs((d, i) => {
return {
fill: fill.darker(1.5),
stroke: "#ccc",
width: 100,
height: 25
}
});
newBlockGs
.append("text")
.attrs(() => {
return {
fill: "#FFF",
dy: 12,
dx: 25
};
})
.text(d => d.name);
newBlockGs
.selectAll(".dna-block")
.data((d) => d.children)
.enter()
.append("g")
.call(d => drawBlocks(d));
}
function controller($element, $window, serviceBroker) {
const vm = initialiseData(this, initialState);
const svg = select($element.find("svg")[0]);
const svgSections = prepareGraph(svg);
const render = () => {
svgSections.svg
.attr("width", baseDimensions.graph.width)
.attr("height", baseDimensions.graph.height);
update(svgSections, vm.dataTypeHierarchy);
};
const debouncedRender = _.debounce(render, 100);
vm.$onInit = () => {
serviceBroker
.loadViewData(CORE_API.DataTypeStore.findAll, [])
.then(r => vm.dataTypes = r.data)
.then(() => vm.dataTypeHierarchy = buildHierarchies(vm.dataTypes, false));
angular
.element($window)
.on("resize", debouncedRender);
};
vm.$onChanges = () => debouncedRender();
vm.$onDestroy = () => angular
.element($window)
.off("resize", debouncedRender);
}
controller.$inject = [
"$element",
"$window",
"ServiceBroker"
];
const component = {
template,
bindings,
controller
};
export default {
component,
id: "waltzDynamicNavAid"
};
|
var arityFn = [
require('./0'),
require('./1'),
require('./2'),
require('./3'),
require('./4'),
require('./5')
];
module.exports = function(fn, n) {
if (n && n <= 5) {
return arityFn[n](fn);
} else {
return fn;
}
};
|
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
export default [
'en-AS',
[
['a', 'p'],
['AM', 'PM'],
],
[
['AM', 'PM'],
,
],
[
['S', 'M', 'T', 'W', 'T', 'F', 'S'], ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa']
],
,
[
['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
[
'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September',
'October', 'November', 'December'
]
],
,
[['B', 'A'], ['BC', 'AD'], ['Before Christ', 'Anno Domini']], 0, [6, 0],
['M/d/yy', 'MMM d, y', 'MMMM d, y', 'EEEE, MMMM d, y'],
['h:mm a', 'h:mm:ss a', 'h:mm:ss a z', 'h:mm:ss a zzzz'],
[
'{1}, {0}',
,
'{1} \'at\' {0}',
],
['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'],
['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], '$', 'US Dollar',
function (n) {
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
if (i === 1 && v === 0)
return 1;
return 5;
}
];
//# sourceMappingURL=en-AS.js.map
|
/**
* @license
* Copyright 2015 Google Inc. All Rights Reserved.
*
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
CLASS({
package: 'foam.apps.chatter.ui',
name: 'NotificationsView',
imports: [
'messageDAO',
'clientView',
'nickname$ as name'
],
properties: [
{
name: 'messageDAO',
postSet: function(old, nu) {
if ( old ) old.unlisten(this.listener);
if ( nu ) nu.listen(this.listener);
}
},
{
name: 'listener',
factory: function() {
var self = this;
return {
put: function(m) {
if ( Notification.permission != 'granted' ) return;
if ( m.content.indexOf(self.name.get()) != -1 ) {
var n = new Notification(m.from + ': ' + m.content);
n.onclick = function() {
self.clientView.openChannel(m.channelId);
};
}
}
}
}
}
],
methods: [
function init() {
Notification.requestPermission(function() {});
},
]
});
|
//* @protected
enyo.kind({
name: "enyo.DbRepeaterList",
kind: enyo.VFlexBox,
published: {
pageSize: 50,
stripSize: 20
},
events: {
onQuery: "",
onSetupRow: ""
},
chrome: [
{kind: "Scroller", flex: 1, accelerated: false, components: [
{name: "client", kind: enyo.VirtualRepeater, accelerated: true, onGetItem: "getItem"}
]}
],
create: function() {
this.data = [];
this.inherited(arguments);
this.stripSizeChanged();
this.reset();
},
stripSizeChanged: function(inSender) {
this.$.client.setStripSize(this.stripSize);
},
fetch: function(inRow) {
return this.data[inRow];
},
getItem: function(inSender, inIndex) {
var record = this.fetch(inIndex);
if (record) {
this.doSetupRow(record, inIndex);
return true;
}
return record;
},
rendered: function() {
this.inherited(arguments);
if (this.bottomUp) {
this.scrollToBottom();
}
},
scrollToBottom: function() {
this.$.scroller.scrollToBottom();
},
build: function() {
// destroy previous request to make sure to cancel any watches
if (this.request) {
this.request.destroy();
this.request = null;
}
var query = {
limit: this.pageSize,
desc: this.desc
};
return this.doQuery(query);
},
queryResponse: function(inResponse, inRequest) {
// cache request object so it's possible to destroy.
this.request = inRequest;
this.data = inResponse.results;
if (this.bottomUp) {
this.data.reverse();
}
this.render();
},
updateRow: function(inIndex) {
this.$.client.renderRow(inIndex);
},
refresh: function() {
this.render();
},
reset: function() {
this.build();
},
punt: function() {
this.$.scroller.setScrollTop(0);
this.build();
}
});
|
{
"AUTHORIZATION_REQUIRED": "Du har ikke adgang til at bruge fil manageren.",
"INVALID_ACTION": "Invalid handling.",
"MODE_ERROR": "Mode fejl.",
"DIRECTORY_ALREADY_EXISTS": "Mappen '%s' eksisterer allerede.",
"FILE_ALREADY_EXISTS": "The file '%s' already exists.",
"UNABLE_TO_CREATE_DIRECTORY": "Ude af stand til at oprette mappen %s.",
"INVALID_VAR": "Invalid variabel %s.",
"DIRECTORY_NOT_EXIST": "Mappen %s eksisterer ikke.",
"UNABLE_TO_OPEN_DIRECTORY": "Ude af stand til at åbne mappen %s.",
"ERROR_RENAMING_DIRECTORY": "Omdøbning af mappen %s til %s mislykkedes.",
"ERROR_RENAMING_FILE": "Omdøbning af filen %s til %s mislykkedes.",
"INVALID_DIRECTORY_OR_FILE": "Invalid mappe eller fil.",
"INVALID_FILE_UPLOAD": "Invalid fil til upload: Har du valgt en fil?",
"UPLOAD_FILES_SMALLER_THAN": "Filen er for stor, filen skal være mindre end %s.",
"UPLOAD_IMAGES_ONLY": "Upload kun billeder, ingen andre filer er tilladte.",
"UPLOAD_IMAGES_TYPE_JPEG_GIF_PNG": "Kun billeder af typen JPEG, GIF eller PNG kan blive uploadet.",
"FILE_DOES_NOT_EXIST": "Filen %s eksisterer ikke.",
"LANGUAGE_FILE_NOT_FOUND": "Sprogfil ikke fundet.",
"default_foldername": "Min mappe",
"prompt_foldername": "Skriv navnet på den nye mappe",
"no_foldername": "Ingen mappe var angivet.",
"create_folder": "Opret mappe",
"cancel": "Annullér",
"select_from_left": "Vælg et emne til venstre.",
"fck_select_integration": "Funktionen 'Vælg' er kun brugt ved brug af FCKEditor eller CKEditor.",
"new_filename": "Skriv et nyt navn for filen",
"successful_rename": "Omdøbt med succes.",
"rename": "Omdøb",
"confirmation_delete": "Er du sikker på du ønsker at slette filen?",
"successful_delete": "Slettet med succes.",
"successful_added_file": "Den nye fil blev tilføjet.",
"successful_added_folder": "Den nye mappe blev oprettet.",
"select": "Vælg",
"download": "Hent",
"del": "Slet",
"parentfolder": "Hovedmappe",
"dimensions": "Dimensioner",
"created": "Oprettet",
"modified": "Ændret",
"size": "Størrelse",
"name": "Navn",
"could_not_retrieve_folder": "Var ude af stand til at modtage mappens indhold.",
"yes": "Ja",
"no": "Nej",
"upload": "Upload",
"loading_data": "Transferring data ...",
"new_folder": "Ny mappe",
"grid_view": "Skift til gitter visning.",
"list_view": "Skift til liste visning.",
"current_folder": "Du er her: ",
"bytes": " bytes",
"kb": "kb",
"mb": "mb",
"gb": "gb"
}
|
/*
* Copyright 2013 Amadeus s.a.s.
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
Aria.tplScriptDefinition({
$classpath : "test.aria.html.textinput.bind.BindableTestCaseTplScript",
$prototype : {
typing : function (value) {
if (!this.data.keystrokes) {
this.data.keystrokes = [];
}
this.data.keystrokes.push(value);
},
somethingOnBlur : function () {
this.data.wasBlurred = true;
}
}
});
|
/*!
* ${copyright}
*/
// Provides the JSON model implementation of a property binding
sap.ui.define(['sap/ui/model/PropertyBinding'],
function(PropertyBinding) {
"use strict";
/**
* @class
* Property binding implementation for JSON format.
*
* @param {sap.ui.model.control.ControlModel} oModel
* @param {string} sPath
* @param {object} [oContext]
* @alias sap.ui.model.control.ControlPropertyBinding
* @extends sap.ui.model.PropertyBinding
*/
var ControlPropertyBinding = PropertyBinding.extend("sap.ui.model.control.ControlPropertyBinding", /** @lends sap.ui.model.control.ControlPropertyBinding.prototype */ {
constructor : function(oModel, sPath, oContext){
PropertyBinding.apply(this, arguments);
this.oValue = this._getValue();
}
});
/**
* Returns the current value of the bound target
* @return {object} the current value of the bound target
*/
ControlPropertyBinding.prototype.getValue = function(){
return this.oValue;
};
/**
* Sets the current value on the control
*/
ControlPropertyBinding.prototype.setValue = function(oValue){
this.oValue = oValue;
this.oContext.setProperty(this.sPath, oValue);
};
/**
* Returns the current value of the bound target (incl. re-evaluation)
* @return {object} the current value of the bound target
*/
ControlPropertyBinding.prototype._getValue = function () {
return this.oContext.getProperty(this.sPath);
};
/**
* Setter for context
*/
ControlPropertyBinding.prototype.setContext = function(oContext) {
this.oContext = oContext;
this.checkUpdate();
};
/**
* Check whether this Binding would provide new values and in case it changed,
* inform interested parties about this.
* @protected
*/
ControlPropertyBinding.prototype.checkUpdate = function() {
var oValue = this._getValue();
if (oValue !== this.oValue) {// optimize for not firing the events when unneeded
this.oValue = oValue;
this._fireChange();
}
};
return ControlPropertyBinding;
});
|
/**
* Copyright 2015 The AMP HTML Authors.
*
* 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 in writing, software
* distributed under the License is distributed on an "AS-IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @fileoverview Shows a Pinterest widget.
* Examples:
* <code>
*
* <amp-pinterest height=20 width=40
* data-do="buttonPin"
* data-url="http://www.flickr.com/photos/kentbrew/6851755809/"
* data-media="http://farm8.staticflickr.com/7027/6851755809_df5b2051c9_z.jpg"
* data-description="Next stop: Pinterest">
* </amp-pinterest>
*
* <amp-pinterest width=245 height=330
* data-do="embedPin"
* data-url="https://www.pinterest.com/pin/99360735500167749/">
* </amp-pinterest>
*
* </code>
*/
import {CSS} from '../../../build/amp-pinterest-0.1.css';
import {FollowButton} from './follow-button';
import {PinWidget} from './pin-widget';
import {SaveButton} from './save-button';
import {Services} from '../../../src/services';
import {htmlFor} from '../../../src/static-template';
import {isLayoutSizeDefined} from '../../../src/layout';
import {user, userAssert} from '../../../src/log';
/**
* AMP Pinterest
* data-do
* - buttonPin: Save button
* - buttonFollow: User follow button
*/
class AmpPinterest extends AMP.BaseElement {
/** @param {!AmpElement} element */
constructor(element) {
super(element);
/** @private {string} */
this.type_ = '';
}
/**
* @param {boolean=} onLayout
* @override
*/
preconnectCallback(onLayout) {
// preconnect to widget APIpinMedia
Services.preconnectFor(this.win).url(
this.getAmpDoc(),
'https://widgets.pinterest.com',
onLayout
);
}
/** @override */
isLayoutSupported(layout) {
return isLayoutSizeDefined(layout);
}
/** @override */
buildCallback() {
this.type_ = userAssert(
this.element.getAttribute('data-do'),
'The data-do attribute is required for <amp-pinterest> %s',
this.element
);
}
/** @override */
layoutCallback() {
return this.render().then((node) => {
return this.element.appendChild(node);
});
}
/**
* Renders the component
* @return {*} TODO(#23582): Specify return type
*/
render() {
switch (this.type_) {
case 'embedPin':
return new PinWidget(this.element).render();
case 'buttonPin':
return new SaveButton(this.element).render();
case 'buttonFollow':
return new FollowButton(this.element).render();
}
return Promise.reject(user().createError('Invalid type: %s', this.type_));
}
/** @override */
createLoaderLogoCallback() {
if (this.type_ != 'embedPin') {
return {};
}
const html = htmlFor(this.element);
return {
color: '#E60019',
content: html`
<svg viewBox="0 0 72 72">
<path
fill="currentColor"
d="M36,26c-5.52,0-9.99,4.47-9.99,9.99c0,4.24,2.63,7.85,6.35,9.31c-0.09-0.79-0.16-2.01,0.03-2.87
c0.18-0.78,1.17-4.97,1.17-4.97s-0.3-0.6-0.3-1.48c0-1.39,0.81-2.43,1.81-2.43c0.86,0,1.27,0.64,1.27,1.41
c0,0.86-0.54,2.14-0.83,3.33c-0.24,1,0.5,1.81,1.48,1.81c1.78,0,3.14-1.88,3.14-4.57c0-2.39-1.72-4.06-4.18-4.06
c-2.85,0-4.51,2.13-4.51,4.33c0,0.86,0.33,1.78,0.74,2.28c0.08,0.1,0.09,0.19,0.07,0.29c-0.07,0.31-0.25,1-0.28,1.13
c-0.04,0.18-0.15,0.22-0.34,0.13c-1.25-0.58-2.03-2.4-2.03-3.87c0-3.15,2.29-6.04,6.6-6.04c3.46,0,6.16,2.47,6.16,5.77
c0,3.45-2.17,6.22-5.18,6.22c-1.01,0-1.97-0.53-2.29-1.15c0,0-0.5,1.91-0.62,2.38c-0.22,0.87-0.83,1.96-1.24,2.62
c0.94,0.29,1.92,0.44,2.96,0.44c5.52,0,9.99-4.47,9.99-9.99C45.99,30.47,41.52,26,36,26z"
/>
</svg>
`,
};
}
}
AMP.extension('amp-pinterest', '0.1', (AMP) => {
AMP.registerElement('amp-pinterest', AmpPinterest, CSS);
});
|
/*
* Copyright 2015 Google Inc. All Rights Reserved.
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
var MathUtil = require('../math-util.js');
var DEBUG = false;
/**
* Given an orientation and the gyroscope data, predicts the future orientation
* of the head. This makes rendering appear faster.
*
* Also see: http://msl.cs.uiuc.edu/~lavalle/papers/LavYerKatAnt14.pdf
*
* @param {Number} predictionTimeS time from head movement to the appearance of
* the corresponding image.
*/
function PosePredictor(predictionTimeS) {
this.predictionTimeS = predictionTimeS;
// The quaternion corresponding to the previous state.
this.previousQ = new MathUtil.Quaternion();
// Previous time a prediction occurred.
this.previousTimestampS = null;
// The delta quaternion that adjusts the current pose.
this.deltaQ = new MathUtil.Quaternion();
// The output quaternion.
this.outQ = new MathUtil.Quaternion();
}
PosePredictor.prototype.getPrediction = function(currentQ, gyro, timestampS) {
if (!this.previousTimestampS) {
this.previousQ.copy(currentQ);
this.previousTimestampS = timestampS;
return currentQ;
}
// Calculate axis and angle based on gyroscope rotation rate data.
var axis = new MathUtil.Vector3();
axis.copy(gyro);
axis.normalize();
var angularSpeed = gyro.length();
// If we're rotating slowly, don't do prediction.
if (angularSpeed < MathUtil.degToRad * 20) {
if (DEBUG) {
console.log('Moving slowly, at %s deg/s: no prediction',
(MathUtil.radToDeg * angularSpeed).toFixed(1));
}
this.outQ.copy(currentQ);
this.previousQ.copy(currentQ);
return this.outQ;
}
// Get the predicted angle based on the time delta and latency.
var deltaT = timestampS - this.previousTimestampS;
var predictAngle = angularSpeed * this.predictionTimeS;
this.deltaQ.setFromAxisAngle(axis, predictAngle);
this.outQ.copy(this.previousQ);
this.outQ.multiply(this.deltaQ);
this.previousQ.copy(currentQ);
return this.outQ;
};
module.exports = PosePredictor;
|
// Copyright 2018 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
esid: sec-Intl.RelativeTimeFormat
description: The prototype of the Intl.RelativeTimeFormat constructor is %FunctionPrototype%.
info: |
Unless specified otherwise in this document, the objects, functions, and constructors described in this standard are subject to the generic requirements and restrictions specified for standard built-in ECMAScript objects in the ECMAScript 2019 Language Specification, 10th edition, clause 17, or successor.
Unless otherwise specified every built-in function object has the %FunctionPrototype% object as the initial value of its [[Prototype]] internal slot.
features: [Intl.RelativeTimeFormat]
---*/
assert.sameValue(
Object.getPrototypeOf(Intl.RelativeTimeFormat),
Function.prototype,
"Object.getPrototypeOf(Intl.RelativeTimeFormat) equals the value of Function.prototype"
);
|
goog.provide('gxnat.slicerNode.Node');
goog.require('gxnat.slicerNode');
/**
* @struct
* @constructor
*/
gxnat.slicerNode.Node = function(){
goog.getUid(this);
};
goog.exportSymbol('gxnat.slicerNode.Node', gxnat.slicerNode.Node);
|
#!/usr/bin/env node
'use strict';
const chalk = require('chalk');
const Vorpal = require('vorpal');
const GitHubAPI = require('github-api');
const untildify = require('untildify');
const fs = require('fs');
const path = require('path');
const os = require('os');
const child_process = require('child_process');
const execSync = child_process.execSync;
const vorpal = new Vorpal();
// Expects to be in a checkout of react that is a sibling of the react checkout you want to operate on
// eg ~/code/react@release-manager/scripts/release-manager & ~/code/react
// TODO: Make this an argument to the script
let PATH_TO_REPO = null;
const PATH_TO_CONFIG = path.resolve(os.homedir(), '.react-release-manager.json');
const DEFAULT_CONFIG = {
githubToken: null,
reactPath: path.resolve('../../../react'),
};
// Quick dry run opt-in. This allows quick debugging of execInRepo without
// actually running the command, ensuring no accidental publishing.
const DRY_RUN = false;
// Enabled commands
const COMMANDS = [
'init',
'docs-prs',
'q',
'stable-prs',
'version',
'npm-publish',
'npm-check-access',
'npm-grant-access',
'start-release',
];
// HELPERS
// Simple helper to write out some JSON for debugging
function writeTo(file, data) {
var folder = path.join(__dirname, 'data');
if (!fs.existsSync(folder)) {
fs.mkdirSync(folder);
}
fs.writeFile(
path.join(folder, file),
JSON.stringify(data, null, 2)
);
}
// Wrapper around exec so we don't have to worry about paths
function execInRepo(command) {
vorpal.log(chalk.gray(`Executing ${chalk.underline(command)}`));
if (DRY_RUN) {
return '';
}
return execSync(command, {
cwd: PATH_TO_REPO,
encoding: 'utf8',
}).trim();
}
function getReactVersion() {
return (JSON.parse(fs.readFileSync(path.join(PATH_TO_REPO, 'package.json'), 'utf8'))).version;
}
const app = {
vorpal,
updateConfig() {
// TODO: write this. This should make it possible to start without a config
// and go through the init process to create one and then re-init the github
// setup.
this.config = this.loadConfig();
},
loadConfig() {
try {
// TODO: validate config
let config = JSON.parse(fs.readFileSync(PATH_TO_CONFIG, 'utf8'));
config.reactPath = path.normalize(untildify(config.reactPath));
PATH_TO_REPO = config.reactPath;
return config;
} catch (e) {
console.error('Attempt to load config file failed. Please run `init` command for initial setup or make sure ~/.react-release-manager.json is valid JSON. Using a default config which may not work properly.');
return DEFAULT_CONFIG;
}
},
init() {
this.config = this.loadConfig();
this.PATH_TO_CONFIG = PATH_TO_CONFIG;
// GITHUB
this.github = new GitHubAPI({
token: this.config.githubToken,
});
this.ghrepo = this.github.getRepo('facebook', 'react');
this.ghissues = this.github.getIssues('facebook', 'react');
// HELPERS
this.writeTo = writeTo;
this.execInRepo = execInRepo;
this.getReactVersion = getReactVersion;
// Register commands
COMMANDS.forEach((command) => {
vorpal.use(require(`./commands/${command}`)(vorpal, app));
});
var v = vorpal
.history('react-release-manager')
.delimiter('rrm \u2234');
v.exec('help');
v.show();
},
};
app.init();
|
var cdb = require('cartodb.js');
module.exports = cdb.core.View.extend({
initialize: function() {
_.bindAll(this, '_onWindowScroll');
this._bindScroll();
},
_onWindowScroll: function() {
this.$el[ $(window).scrollTop() > this.options.anchorPoint ? 'addClass' : 'removeClass' ]('is-fixed');
},
_unbindScroll: function() {
$(window).unbind('scroll', this._onWindowScroll);
},
_bindScroll: function() {
this._unbindScroll();
$(window).bind('scroll', this._onWindowScroll);
},
clean: function() {
this._unbindScroll();
this.elder('clean');
}
});
|
const axios = require('axios');
const createRojakClient = (endpoint) => {
const getSentimentsOfCandidate = (candidateId) => axios
.get(`${endpoint}/candidates/${candidateId}/media-sentiments`)
.then(resp => resp.data);
return {
getSentimentsOfCandidate,
};
};
module.exports = createRojakClient;
|
define(
//begin v1.x content
{
"dateFormatItem-yM": "MM/yyyy GGGGG",
"dateFormatItem-yQ": "Q yyyy GGGGG",
"dayPeriods-format-wide-pm": "p.m.",
"eraNames": [
"eB"
],
"dateFormatItem-MMMEd": "E d MMM",
"dateFormatItem-hms": "h:mm:ss a",
"dateFormatItem-yQQQ": "QQQ y G",
"days-standAlone-wide": [
"Diumenge",
"Dilluns",
"Dimarts",
"Dimecres",
"Dijous",
"Divendres",
"Dissabte"
],
"dateFormatItem-MMM": "LLL",
"months-standAlone-narrow": [
"g",
"f",
"m",
"a",
"m",
"j",
"j",
"a",
"s",
"o",
"n",
"d"
],
"dayPeriods-format-wide-am": "a.m.",
"quarters-standAlone-abbr": [
"1T",
"2T",
"3T",
"4T"
],
"dateFormatItem-y": "y G",
"timeFormat-full": "H.mm.ss zzzz",
"months-standAlone-abbr": [
"gen.",
"febr.",
"març",
"abr.",
"maig",
"juny",
"jul.",
"ag.",
"set.",
"oct.",
"nov.",
"des."
],
"dateFormatItem-Ed": "E d",
"dateFormatItem-yMMM": "MMM y G",
"days-standAlone-narrow": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"eraAbbr": [
"eB"
],
"dateFormat-long": "d MMMM y G",
"timeFormat-medium": "H.mm.ss",
"dateFormatItem-Hm": "HH:mm",
"dateFormat-medium": "d MMM y G",
"dateFormatItem-Hms": "HH:mm:ss",
"dayPeriods-format-narrow-pm": "p.m.",
"dateFormatItem-yMd": "d/M/yyyy",
"quarters-standAlone-wide": [
"1r trimestre",
"2n trimestre",
"3r trimestre",
"4t trimestre"
],
"dateFormatItem-ms": "mm:ss",
"dayPeriods-format-narrow-am": "a.m.",
"months-standAlone-wide": [
"gener",
"febrer",
"març",
"abril",
"maig",
"juny",
"juliol",
"agost",
"setembre",
"octubre",
"novembre",
"desembre"
],
"dateFormatItem-MMMd": "d MMM",
"timeFormat-long": "H.mm.ss z",
"months-format-abbr": [
"de gen.",
"de febr.",
"de març",
"d’abr.",
"de maig",
"de juny",
"de jul.",
"d’ag.",
"de set.",
"d’oct.",
"de nov.",
"de des."
],
"timeFormat-short": "H.mm",
"dateFormatItem-H": "HH",
"quarters-format-abbr": [
"1T",
"2T",
"3T",
"4T"
],
"days-format-abbr": [
"dg.",
"dl.",
"dt.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-M": "L",
"days-format-narrow": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"dateFormatItem-yMMMd": "d MMM y",
"dateFormatItem-MEd": "E, d/M",
"months-format-narrow": [
"G",
"F",
"M",
"A",
"M",
"J",
"J",
"A",
"S",
"O",
"N",
"D"
],
"days-standAlone-short": [
"dg.",
"dl.",
"dm.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-hm": "h:mm a",
"days-standAlone-abbr": [
"dg",
"dl",
"dt",
"dc",
"dj",
"dv",
"ds"
],
"dateFormat-short": "dd/MM/yyyy GGGGG",
"dateFormatItem-yMMMEd": "E, d MMM y G",
"dateFormat-full": "EEEE, dd MMMM y G",
"dateFormatItem-Md": "d/M",
"dateFormatItem-yMEd": "E, dd/MM/yyyy GGGGG",
"months-format-wide": [
"de gener",
"de febrer",
"de març",
"d’abril",
"de maig",
"de juny",
"de juliol",
"d’agost",
"de setembre",
"d’octubre",
"de novembre",
"de desembre"
],
"days-format-short": [
"dg.",
"dl.",
"dt.",
"dc.",
"dj.",
"dv.",
"ds."
],
"dateFormatItem-d": "d",
"quarters-format-wide": [
"1r trimestre",
"2n trimestre",
"3r trimestre",
"4t trimestre"
],
"eraNarrow": [
"eB"
],
"days-format-wide": [
"diumenge",
"dilluns",
"dimarts",
"dimecres",
"dijous",
"divendres",
"dissabte"
],
"dateFormatItem-h": "h a"
}
//end v1.x content
);
|
(function() {
var Tabs = function(element, options) {
this.element = element;
this.$element = $(element);
this.options = options;
this.metadata = this.$element.data('options');
};
Tabs.prototype = {
defaults: {
tabListClass: ".list__tabs", // The selector for the list of buttons
tabItemClass: ".list__link", // The selector for a button item
btnIndexAttr: "href", // The attribute on the button to use that matches up to the content id (prefix with 'data-' if applicable)
tabContentClass: ".tabs__content", // The selector for the list of tabbed contents
tabBodyClass: ".tabs__body", // The selector for a tabbed content item
activeClass: "active", // The class to use when an element is active
inactiveClass: "inactive", // The class to use when an element is inactive
defaultTab: undefined // The id of the tab which is to be selected by default
},
_init: function() {
this.config = $.extend({}, this.defaults, this.options, this.metadata);
// Set a default tab value if none is set
if (this.config.defaultTab === undefined) {
var $btns = this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass);
if ($btns.length > 0) { this.config.defaultTab = this._getButtonIndex($btns[0]); }
}
// Default all tabs and content to be displayed on load
this._updateAll(this.config.defaultTab);
var that = this;
// Initialise the handle click of buttons
this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass).click(function(e) { e.preventDefault(); that._handleClick(this); });
ALLOY.Logger.startup('ALLOY.Tabs Started');
},
_getButtonIndex: function(btn) {
if (this.config.btnIndexAttr.substring(0, 5) === "data-") {
var att = this.config.btnIndexAttr.substring(5);
return $(btn).data(att);
}
else { return $(btn).attr(this.config.btnIndexAttr); }
},
_handleClick: function(el) {
var id = this._getButtonIndex($(el).closest(this.config.tabListClass + " " + this.config.tabItemClass)[0]);
this._updateAll(id);
},
_setBtnActive: function(btn, id, content) {
var elId = this._getButtonIndex($(btn)[0]);
if (elId === id) { $(btn).removeClass(this.config.inactiveClass).addClass(this.config.activeClass); }
else { $(btn).removeClass(this.config.activeClass).addClass(this.config.inactiveClass); }
},
_updateAll: function(id) {
var that = this;
this.$element.find(this.config.tabListClass + " " + this.config.tabItemClass).each(function() { that._setBtnActive(this, id, false); });
this.$element.find(this.config.tabContentClass + " " + this.config.tabBodyClass).removeClass(this.config.activeClass).addClass(this.config.inactiveClass);
$(id).removeClass(this.config.inactiveClass).addClass(this.config.activeClass);
}
};
Tabs.defaults = Tabs.prototype.defaults;
$.fn.tabs = function(options) {
return this.each(function() {
new Tabs(this, options)._init();
});
};
// Autostart Plugin
ALLOY.Logger.trace('ALLOY.Tabs Initializing');
$(".tabs").tabs();
})();
|
for (var i = 1; i <= 100; i++) {
if (i % 15 === 0) {
console.log('FizzBuzz');
} else if (i % 3 === 0) {
console.log('Fizz');
} else if (i % 5 === 0) {
console.log('Buzz');
} else {
console.log(i);
}
}
|
(function() {
'use strict';
angular.module('formlyApp').factory('province', province);
function province() {
function getProvinces() {
return [{
"name": "Alberta",
"value": "alberta"
}, {
"name": "British Columbia",
"value": "british_columbia"
}, {
"name": "Manitoba",
"value": "manitoba"
}, {
"name": "New Brunswick",
"value": "new_brunswick"
}, {
"name": "Newfoundland and Labrador",
"value": "newfoundland_and_labrador"
}, {
"name": "Northwest Territories",
"value": "northwest_territories"
}, {
"name": "Nova Scotia",
"value": "nova_scotia"
}, {
"name": "Nunavut",
"value": "nunavut"
}, {
"name": "Ontario",
"value": "ontario"
}, {
"name": "Prince Edward Island",
"value": "prince_edward_island"
}, {
"name": "Quebec",
"value": "quebec"
}, {
"name": "Saskatchewan",
"value": "saskatchewan"
}, {
"name": "Yukon",
"value": "Yukon"
}];
}
return {
getProvinces: getProvinces
}
}
})();
|
var parent = require('../../actual/instance/replace-all');
module.exports = parent;
|
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _react = require('react');
var _react2 = _interopRequireDefault(_react);
var _pure = require('recompose/pure');
var _pure2 = _interopRequireDefault(_pure);
var _SvgIcon = require('../../SvgIcon');
var _SvgIcon2 = _interopRequireDefault(_SvgIcon);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var ContentRemoveCircle = function ContentRemoveCircle(props) {
return _react2.default.createElement(
_SvgIcon2.default,
props,
_react2.default.createElement('path', { d: 'M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z' })
);
};
ContentRemoveCircle = (0, _pure2.default)(ContentRemoveCircle);
ContentRemoveCircle.displayName = 'ContentRemoveCircle';
exports.default = ContentRemoveCircle;
|
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
define([
'ko',
'underscore'
], function (ko, _) {
'use strict';
function iterator(callback, args, elem) {
callback = elem[callback];
if (_.isFunction(callback)) {
return callback.apply(elem, args);
}
return callback;
}
function wrapper(method) {
return function (iteratee) {
var callback = iteratee,
elems = this(),
args = _.toArray(arguments);
if (_.isString(iteratee)) {
callback = iterator.bind(null, iteratee, args.slice(1));
args.unshift(callback);
}
args.unshift(elems);
return _[method].apply(_, args);
};
}
_.extend(ko.observableArray.fn, {
each: wrapper('each'),
map: wrapper('map'),
filter: wrapper('filter'),
some: wrapper('some'),
every: wrapper('every'),
groupBy: wrapper('groupBy'),
sortBy: wrapper('sortBy'),
findWhere: function (properties) {
return _.findWhere(this(), properties);
},
contains: function (value) {
return _.contains(this(), value);
},
hasNo: function () {
return !this.contains.apply(this, arguments);
},
getLength: function () {
return this().length;
},
indexBy: function (key) {
return _.indexBy(this(), key);
},
without: function () {
var args = Array.prototype.slice.call(arguments);
args.unshift(this());
return _.without.apply(_, args);
},
first: function () {
return _.first(this());
},
last: function () {
return _.last(this());
},
pluck: function () {
var args = Array.prototype.slice.call(arguments);
args.unshift(this());
return _.pluck.apply(_, args);
}
});
});
|
if (typeof ColumnsPlugins === 'undefined') var ColumnsPlugins = {};
ColumnsPlugins.gotopage = {
init: function() {
var $this = this;
$this.$el.one('keyup', '.gotopage', function() {
$this.gotoPage(parseInt($(this).val()));
});
},
create: function() {
this.view.currentPage = this.page;
this.view.totalPages = this.pages;
}
}
|
var fs = require('fs');
var spawn = require('child_process').spawn;
var path = require('path');
var Promise = require('bluebird');
module.exports = function(log) {
var install = function (project, options) {
options = options || {};
return new Promise(function(resolve, reject){
var bowerJson = JSON.stringify({
dependencies: project.bower.dependencies,
devDependencies: options.production ? [] : project.bower.devDependencies,
resolutions: project.bower.resolutions,
name: project.name
}, null, 4);
var errorLog = '';
log.info('Bower Installing:', project.name);
// TODO: remove sync methods
fs.writeFileSync(project.tempPath + '/bower.json', bowerJson);
if (project.bower.rc) {
fs.writeFileSync(project.tempPath + '/.bowerrc', JSON.stringify(project.bower.rc));
}
var cmd = path.join(__dirname, '..', '..', 'node_modules', '.bin', 'bower');
var args = ['install', '--config.interactive=false'];
if (options.production) {
args.push('--production');
}
var cli = spawn(cmd, args, { cwd: project.tempPath });
cli.stdout.on('data', function (data) {
if (data && data.length > 0) {
log.debug(data.toString().trim());
}
});
cli.stderr.on('data', function (data) {
if (data && data.length > 0) {
errorLog += data.toString().trim();
log.debug(data.toString().trim());
}
});
cli.on('close', function (code) {
cli.kill('SIGINT');
if (code === 0) {
log.info('Bower Install complete:', project.name);
fs.unlink(project.tempPath + '/bower.json', function () {
fs.unlink(project.tempPath + '/.bowerrc', function () {
return resolve();
});
});
} else {
return reject(errorLog);
}
});
});
};
return {
install: install
}
};
|
// Base 64 encoding
const BASE_64_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
const BASE_64_VALS = Object.create(null);
const getChar = val => BASE_64_CHARS.charAt(val);
const getVal = ch => ch === '=' ? -1 : BASE_64_VALS[ch];
for (let i = 0; i < BASE_64_CHARS.length; i++) {
BASE_64_VALS[getChar(i)] = i;
};
const encode = array => {
if (typeof array === "string") {
const str = array;
array = newBinary(str.length);
for (let i = 0; i < str.length; i++) {
const ch = str.charCodeAt(i);
if (ch > 0xFF) {
throw new Error(
"Not ascii. Base64.encode can only take ascii strings.");
}
array[i] = ch;
}
}
const answer = [];
let a = null;
let b = null;
let c = null;
let d = null;
for (let i = 0; i < array.length; i++) {
switch (i % 3) {
case 0:
a = (array[i] >> 2) & 0x3F;
b = (array[i] & 0x03) << 4;
break;
case 1:
b = b | (array[i] >> 4) & 0xF;
c = (array[i] & 0xF) << 2;
break;
case 2:
c = c | (array[i] >> 6) & 0x03;
d = array[i] & 0x3F;
answer.push(getChar(a));
answer.push(getChar(b));
answer.push(getChar(c));
answer.push(getChar(d));
a = null;
b = null;
c = null;
d = null;
break;
}
}
if (a != null) {
answer.push(getChar(a));
answer.push(getChar(b));
if (c == null) {
answer.push('=');
} else {
answer.push(getChar(c));
}
if (d == null) {
answer.push('=');
}
}
return answer.join("");
};
// XXX This is a weird place for this to live, but it's used both by
// this package and 'ejson', and we can't put it in 'ejson' without
// introducing a circular dependency. It should probably be in its own
// package or as a helper in a package that both 'base64' and 'ejson'
// use.
const newBinary = len => {
if (typeof Uint8Array === 'undefined' || typeof ArrayBuffer === 'undefined') {
const ret = [];
for (let i = 0; i < len; i++) {
ret.push(0);
}
ret.$Uint8ArrayPolyfill = true;
return ret;
}
return new Uint8Array(new ArrayBuffer(len));
};
const decode = str => {
let len = Math.floor((str.length * 3) / 4);
if (str.charAt(str.length - 1) == '=') {
len--;
if (str.charAt(str.length - 2) == '=') {
len--;
}
}
const arr = newBinary(len);
let one = null;
let two = null;
let three = null;
let j = 0;
for (let i = 0; i < str.length; i++) {
const c = str.charAt(i);
const v = getVal(c);
switch (i % 4) {
case 0:
if (v < 0) {
throw new Error('invalid base64 string');
}
one = v << 2;
break;
case 1:
if (v < 0) {
throw new Error('invalid base64 string');
}
one = one | (v >> 4);
arr[j++] = one;
two = (v & 0x0F) << 4;
break;
case 2:
if (v >= 0) {
two = two | (v >> 2);
arr[j++] = two;
three = (v & 0x03) << 6;
}
break;
case 3:
if (v >= 0) {
arr[j++] = three | v;
}
break;
}
}
return arr;
};
export const Base64 = { encode, decode, newBinary };
|
var fs = require('fs')
var path = require('path')
var compiler = require('../lib/compiler')
var assert = require('assert')
var hash = require('hash-sum')
// test custom transform
compiler.applyConfig({
customCompilers: {
test: function (content, cb) {
content = content.replace('not ', '')
cb(null, content)
}
}
})
function read (file) {
return fs.readFileSync(path.resolve(__dirname, file), 'utf-8')
}
function test (name) {
it(name, function (done) {
var filePath = 'fixtures/' + name + '.vue'
var fileContent = read(filePath)
var expected = read('expects/' + name + '.js')
.replace(/\{\{id\}\}/g, '_v-' + hash(require.resolve('./' + filePath)))
// test registering dependency
var deps = []
function addDep (file) {
deps.push(file)
}
compiler.on('dependency', addDep)
process.env.VUEIFY_TEST = true
process.env.NODE_ENV = name === 'non-minified'
? 'development'
: 'production'
compiler.compile(
fileContent,
path.resolve(__dirname, filePath),
function (err, result) {
// the cb is handled by a Promise, so the assertion
// errors gets swallowed and the test never fails.
// do it in a separate tick.
setTimeout(function () {
if (err) throw err
assert.equal(result, expected, 'should compile correctly')
// check src
if (name === 'src') {
assert.equal(deps[0], __dirname + '/fixtures/test.html')
assert.equal(deps[1], __dirname + '/fixtures/test.styl')
assert.equal(deps[2], __dirname + '/fixtures/src/test.js')
}
if (name === 'less' || name === 'sass' || name === 'styl') {
assert.equal(deps[0], __dirname + '/fixtures/imports/import.' + name)
}
compiler.removeListener('dependency', addDep)
done()
}, 0)
}
)
})
}
describe('Vueify compiler', function () {
fs.readdirSync(path.resolve(__dirname, 'expects'))
.forEach(function (file) {
test(path.basename(file, '.js'))
})
})
|
var foo = function () {
var ref = babelHelpers.asyncToGenerator(function* () {
var wat = yield bar();
});
return function foo() {
return ref.apply(this, arguments);
};
}();
|
'use strict';
const common = require('../common');
if (!common.hasCrypto)
common.skip('missing crypto');
if (!common.enoughTestMem)
common.skip('Insufficient memory for TLS benchmark test');
// Because the TLS benchmarks use hardcoded ports, this should be in sequential
// rather than parallel to make sure it does not conflict with tests that choose
// random available ports.
const runBenchmark = require('../common/benchmark');
runBenchmark('tls', { NODEJS_BENCHMARK_ZERO_ALLOWED: 1 });
|
import isBrowser from 'src/lib/isBrowser'
describe('isBrowser', () => {
it('should return true in a browser', () => {
// tests are run in a browser, this should be true
isBrowser.should.be.true()
})
it('should return false when there is no document', () => {
require('imports?document=>undefined!src/lib/isBrowser').default.should.be.false()
require('imports?document=>null!src/lib/isBrowser').default.should.be.false()
})
it('should return false when there is no window', () => {
require('imports?window=>undefined!src/lib/isBrowser').default.should.be.false()
require('imports?window=>null!src/lib/isBrowser').default.should.be.false()
})
})
|
// References:
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/
// https://gist.github.com/1579671
// http://updates.html5rocks.com/2012/05/requestAnimationFrame-API-now-with-sub-millisecond-precision
// https://gist.github.com/timhall/4078614
// https://github.com/Financial-Times/polyfill-service/tree/master/polyfills/requestAnimationFrame
// requestAnimationFrame
var lastTime = Date.now();
var vendors = [ 'ms', 'moz', 'webkit', 'o' ];
for (var x = 0; x < vendors.length && !window.requestAnimationFrame; x++)
{
window.requestAnimationFrame = window[vendors[x] + 'RequestAnimationFrame'];
window.cancelAnimationFrame = window[vendors[x] + 'CancelAnimationFrame'] || window[vendors[x] + 'CancelRequestAnimationFrame'];
}
if (!window.requestAnimationFrame)
{
window.requestAnimationFrame = function (callback)
{
if (typeof callback !== 'function')
{
throw new TypeError(callback + 'is not a function');
}
var currentTime = Date.now();
var delay = 16 + lastTime - currentTime;
if (delay < 0)
{
delay = 0;
}
lastTime = currentTime;
return setTimeout(function () {
lastTime = Date.now();
callback(performance.now());
}, delay);
};
}
if (!window.cancelAnimationFrame)
{
window.cancelAnimationFrame = function(id)
{
clearTimeout(id);
};
}
|
/**
* Filter to keep request sequence.
*/
var logger = require('pomelo-logger').getLogger('pomelo', __filename);
var taskManager = require('../../common/manager/taskManager');
module.exports = function() {
return new Filter();
};
var Filter = function() {
};
/**
* request serialization after filter
*/
Filter.prototype.before = function(msg, session, next) {
taskManager.addTask(session.id, function(task) {
session.__serialTask__ = task;
next();
}, function() {
logger.error('[serial filter] msg timeout, msg:' + JSON.stringify(msg));
});
};
/**
* request serialization after filter
*/
Filter.prototype.after = function(err, msg, session, resp, next) {
var task = session.__serialTask__;
if(task) {
if(!task.done() && !err) {
err = new Error('task time out. msg:' + JSON.stringify(msg));
}
}
next(err);
};
|
var SCRATCH_UUID = 'a495ff20c5b14b44b5121370f02d74de';
var SCRATCH_ONE = 'a495ff21c5b14b44b5121370f02d74de';
function ScratchOne() {
}
ScratchOne.prototype.readOne = function(callback) {
this.readDataCharacteristic(SCRATCH_UUID, SCRATCH_ONE, callback);
};
ScratchOne.prototype.writeOne = function(data, callback) {
this.writeDataCharacteristic(SCRATCH_UUID, SCRATCH_ONE, data, callback);
};
ScratchOne.prototype.notifyOne = function(onRead, callback) {
this.notifyCharacteristic(SCRATCH_UUID, SCRATCH_ONE, true, onRead, callback);
};
ScratchOne.prototype.unnotifyOne = function(onRead, callback) {
this.notifyCharacteristic(SCRATCH_UUID, SCRATCH_ONE, false, onRead, callback);
};
module.exports = ScratchOne;
|
var FRAME_RATE = 50;
var MY_RADIUS = 10;
var MAX_SPEED = 10;
var walkerManagers = [];
function Walker(x, y, radius, index) {
this.x = x;
this.y = y;
this.radius = radius;
this.index = index;
}
Walker.prototype.update = function(time) {
this.x += (sin(this.index + time) + map(noise(time, this.index), 0, 1, -2, 2));
this.y += (cos(this.index + time) + map(noise(time, this.index), 0, 1, -2, 2));
this.radius -= 0.08;
}
Walker.prototype.render = function() {
noStroke();
fill(206, 33, 89, 90);
ellipse(this.x, this.y, this.radius + 2, this.radius + 2);
fill(206, 33, 89);
ellipse(this.x, this.y, this.radius, this.radius);
}
function WalkerManager(x, y) {
this.x = x;
this.y = y;
this.loc = createVector(random(x), random(y));
this.loc.x = constrain(this.loc.x, MY_RADIUS, width - MY_RADIUS);
this.loc.y = constrain(this.loc.y, MY_RADIUS, height - MY_RADIUS);
this.noff = createVector(random(10), random(10));
this.counter = 0;
this.history = [];
}
WalkerManager.prototype.walk = function (time) {
if (isMousePressed) {
var easing = createVector(mouseX, mouseY).sub(this.loc).mult(0.06);
this.loc.add(easing);
} else {
var lerpX = map(noise(this.noff.y, this.noff.x), 0, 1, MAX_SPEED * -1, MAX_SPEED);
var lerpY = map(noise(this.noff.x, this.noff.y), 0, 1, MAX_SPEED * -1, MAX_SPEED);
this.loc.add(createVector(lerpX, lerpY));
this.loc.x = constrain(this.loc.x, MY_RADIUS, width - MY_RADIUS);
this.loc.y = constrain(this.loc.y, MY_RADIUS, height - MY_RADIUS);
var nLerp = map(noise(this.counter), 0, 1, 0, 0.01);
this.noff.add(nLerp, nLerp);
}
this.radius = noise(time) * 40;
this.history.push(new Walker(this.loc.x, this.loc.y, this.radius, this.counter));
this.counter++;
};
WalkerManager.prototype.update = function(time) {
this.history.forEach(function(walker, index) {
if (index === this.history.length - 1) {
return;
}
walker.update(time);
if (walker.radius <= 0) {
this.history.splice(index, 1);
}
}.bind(this));
}
WalkerManager.prototype.render = function () {
this.history.forEach(function(walker, index) {
walker.render();
});
var lastWalker = this.history[this.history.length - 1];
var radius = Math.min(lastWalker.radius + 6, MY_RADIUS * 2);
fill(206, 33, 89, 90);
ellipse(lastWalker.x, lastWalker.y, radius, radius);
};
function setup() {
createCanvas(windowWidth, windowHeight);
frameRate(FRAME_RATE);
background(255);
for(var i = 0; i < 1; i++) {
walkerManagers.push(new WalkerManager(width, height));
}
}
function draw() {
background(255);
walkerManagers.forEach(function(walkerManager) {
walkerManager.walk(frameCount * 0.1);
walkerManager.render();
walkerManager.update(frameCount * 0.1);
});
}
|
function test() {
var o = {};
o.__proto__ = Array.prototype;
return o instanceof Array;
}
if (!test())
throw new Error("Test failed");
|
'use strict';
const common = require('../common');
const assert = require('assert');
const cp = require('child_process');
const net = require('net');
if (process.argv[2] === 'child') {
process.stdout.write('this should be ignored');
process.stderr.write('this should not be ignored');
const pipe = new net.Socket({ fd: 4 });
process.on('disconnect', () => {
pipe.unref();
});
pipe.setEncoding('utf8');
pipe.on('data', (data) => {
process.send(data);
});
} else {
assert.throws(() => {
cp.fork(__filename, {stdio: ['pipe', 'pipe', 'pipe', 'pipe']});
}, /Forked processes must have an IPC channel/);
let ipc = '';
let stderr = '';
const buf = Buffer.from('data to send via pipe');
const child = cp.fork(__filename, ['child'], {
stdio: [0, 'ignore', 'pipe', 'ipc', 'pipe']
});
assert.strictEqual(child.stdout, null);
child.on('message', (msg) => {
ipc += msg;
if (ipc === buf.toString()) {
child.disconnect();
}
});
child.stderr.on('data', (chunk) => {
stderr += chunk;
});
child.on('exit', common.mustCall((code, signal) => {
assert.strictEqual(code, 0);
assert.strictEqual(signal, null);
assert.strictEqual(stderr, 'this should not be ignored');
}));
child.stdio[4].write(buf);
}
|
var TemplateLibraryTemplateView = require( 'elementor-templates/views/template/base' ),
TemplateLibraryTemplateLocalView;
TemplateLibraryTemplateLocalView = TemplateLibraryTemplateView.extend( {
template: '#tmpl-elementor-template-library-template-local',
ui: function() {
return _.extend( TemplateLibraryTemplateView.prototype.ui.apply( this, arguments ), {
deleteButton: '.elementor-template-library-template-delete',
morePopup: '.elementor-template-library-template-more',
toggleMore: '.elementor-template-library-template-more-toggle',
toggleMoreIcon: '.elementor-template-library-template-more-toggle i',
} );
},
events: function() {
return _.extend( TemplateLibraryTemplateView.prototype.events.apply( this, arguments ), {
'click @ui.deleteButton': 'onDeleteButtonClick',
'click @ui.toggleMore': 'onToggleMoreClick',
} );
},
onDeleteButtonClick: function() {
var toggleMoreIcon = this.ui.toggleMoreIcon;
elementor.templates.deleteTemplate( this.model, {
onConfirm: function() {
toggleMoreIcon.removeClass( 'eicon-ellipsis-h' ).addClass( 'eicon-loading eicon-animation-spin' );
},
onSuccess: function() {
elementor.templates.showTemplates();
},
} );
},
onToggleMoreClick: function() {
this.ui.morePopup.show();
},
onPreviewButtonClick: function() {
open( this.model.get( 'url' ), '_blank' );
},
} );
module.exports = TemplateLibraryTemplateLocalView;
|
import { loadTranslations } from "/imports/plugins/core/core/server/startup/i18n";
// import ar from "./ar.json";
// import bg from "./bg.json";
// import de from "./de.json";
// import el from "./el.json";
import en from "./en.json";
// import es from "./es.json";
// import fr from "./fr.json";
// import he from "./he.json";
// import hr from "./hr.json";
// import it from "./it.json";
// import my from "./my.json";
// import nb from "./nb.json";
// import nl from "./nl.json";
// import pl from "./pl.json";
// import pt from "./pt.json";
// import ro from "./ro.json";
// import ru from "./ru.json";
// import sl from "./sl.json";
// import sv from "./sv.json";
// import tr from "./tr.json";
// import vi from "./vi.json";
// import zh from "./zh.json";
//
// we want all the files in individual
// imports for easier handling by
// automated translation software
//
loadTranslations([en]);
// loadTranslations([ar, bg, de, el, en, es, fr, he, hr, it, my, nb, nl, pl, pt, ro, ru, sl, sv, tr, vi, zh]);
|
/*
YUI 3.8.0 (build 5744)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("lang/datatype-date-format_es-AR",function(e){e.Intl.add("datatype-date-format","es-AR",{a:["dom","lun","mar","mi\u00e9","jue","vie","s\u00e1b"],A:["domingo","lunes","martes","mi\u00e9rcoles","jueves","viernes","s\u00e1bado"],b:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],B:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],c:"%a, %d %b %Y %Hh'%M:%S %Z",p:["A.M.","P.M."],P:["a.m.","p.m."],x:"%d/%m/%y",X:"%Hh'%M:%S"})},"3.8.0");
|
/*
* /MathJax/localization/it/MathML.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* 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 in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
MathJax.Localization.addTranslation( "it", "MathML", {
version: "2.5.0",
isLoaded: true,
strings: {
BadMglyph: "mglyph errato: %1",
BadMglyphFont: "Font errato: %1",
MathPlayer: "MathJax non \u00E8 stato in grado di avviare MathPlayer.\n\nSe MathPlayer non \u00E8 installato, devi prima installarlo.\nPu\u00F2 darsi anche che le tue impostazioni di sicurezza stiano impedendo\nl'esecuzione dei controlli ActiveX. Controlla la voce Opzioni Internet\ndel menu Strumenti e seleziona il pannello Protezione, quindi premi\nil pulsante 'Livello personalizzato...'. Verifica che siano abilitati\n'Esegui controlli ActiveX e plug-in' e 'Comportamento file binari e script'\n\nOra come ora vedrai dei messaggi d'errore al posto delle formule.",
CantCreateXMLParser: "MathJax non \u00E8 in grado di creare un parser XML per MathML. Verifica che\nl'impostazione 'Esegui script controlli ActiveX contrassegnati come sicuri'\nsia abilitata (usa la voce Opzioni Internet nel menu Strumenti,\ne seleziona il pannello Sicurezza, quindi premi il pulsante\n'Livello personalizzato...' per far questo).\n\nLe equazioni in MathML non potranno essere elaborate da MathJax.",
UnknownNodeType: "Tipo di nodo sconosciuto: %1",
UnexpectedTextNode: "Nodo di testo non previsto: %1",
ErrorParsingMathML: "Errore nell'analisi di MathML",
ParsingError: "Errore nell'analisi di MathML: %1",
MathMLSingleElement: "MathML deve essere formato da un singolo elemento",
MathMLRootElement: "MathML deve essere formato da un elemento \u003Cmath\u003E, non %1"
}
} );
MathJax.Ajax.loadComplete( "[MathJax]/localization/it/MathML.js" );
|
// moment.js locale configuration
// locale : malayalam (ml)
// author : Floyd Pink : https://github.com/floydpink
(function( factory )
{
if (typeof define === 'function' && define.amd) {
define( ['moment'], factory ); // AMD
} else {
if (typeof exports === 'object') {
module.exports = factory( require( '../moment' ) ); // Node
} else {
factory( (typeof global !== 'undefined' ? global : this).moment ); // node or other global
}
}
}( function( moment )
{
return moment.defineLocale( 'ml', {
months: 'ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ'.split( '_' ),
monthsShort: 'ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.'.split( '_' ),
weekdays: 'ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച'.split( '_' ),
weekdaysShort: 'ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി'.split( '_' ),
weekdaysMin: 'ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ'.split( '_' ),
longDateFormat: {
LT: 'A h:mm -നു',
LTS: 'A h:mm:ss -നു',
L: 'DD/MM/YYYY',
LL: 'D MMMM YYYY',
LLL: 'D MMMM YYYY, LT',
LLLL: 'dddd, D MMMM YYYY, LT'
},
calendar: {
sameDay: '[ഇന്ന്] LT',
nextDay: '[നാളെ] LT',
nextWeek: 'dddd, LT',
lastDay: '[ഇന്നലെ] LT',
lastWeek: '[കഴിഞ്ഞ] dddd, LT',
sameElse: 'L'
},
relativeTime: {
future: '%s കഴിഞ്ഞ്',
past: '%s മുൻപ്',
s: 'അൽപ നിമിഷങ്ങൾ',
m: 'ഒരു മിനിറ്റ്',
mm: '%d മിനിറ്റ്',
h: 'ഒരു മണിക്കൂർ',
hh: '%d മണിക്കൂർ',
d: 'ഒരു ദിവസം',
dd: '%d ദിവസം',
M: 'ഒരു മാസം',
MM: '%d മാസം',
y: 'ഒരു വർഷം',
yy: '%d വർഷം'
},
meridiem: function( hour, minute, isLower )
{
if (hour < 4) {
return 'രാത്രി';
} else {
if (hour < 12) {
return 'രാവിലെ';
} else {
if (hour < 17) {
return 'ഉച്ച കഴിഞ്ഞ്';
} else {
if (hour < 20) {
return 'വൈകുന്നേരം';
} else {
return 'രാത്രി';
}
}
}
}
}
} );
} ));
|
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define([], function() {
"use strict";
/**
* Provide methods for sap.m.routing.Targets in sync mode
* @private
* @experimental
* @since 1.33
*/
return {
/**
* @private
*/
display: function () {
var iViewLevel,
sName;
// don't remember previous displays
this._oLastDisplayedTarget = null;
var oReturnValue = this._super.display.apply(this, arguments);
// maybe a wrong name was provided then there is no last displayed target
if (this._oLastDisplayedTarget) {
iViewLevel = this._getViewLevel(this._oLastDisplayedTarget);
sName = this._oLastDisplayedTarget._oOptions.name;
}
this._oTargetHandler.navigate({
viewLevel: iViewLevel,
navigationIdentifier: sName
});
return oReturnValue;
},
/**
* @private
*/
_displaySingleTarget: function (sName) {
var oTarget = this.getTarget(sName);
if (oTarget) {
this._oLastDisplayedTarget = oTarget;
}
return this._super._displaySingleTarget.apply(this, arguments);
}
};
}, /* bExport= */ true);
|
define("dijit/form/_Spinner", ["dojo", "dijit", "text!dijit/form/templates/Spinner.html", "dijit/form/ValidationTextBox"], function(dojo, dijit) {
dojo.declare(
"dijit.form._Spinner",
dijit.form.RangeBoundTextBox,
{
// summary:
// Mixin for validation widgets with a spinner.
// description:
// This class basically (conceptually) extends `dijit.form.ValidationTextBox`.
// It modifies the template to have up/down arrows, and provides related handling code.
// defaultTimeout: Number
// Number of milliseconds before a held arrow key or up/down button becomes typematic
defaultTimeout: 500,
// minimumTimeout: Number
// minimum number of milliseconds that typematic event fires when held key or button is held
minimumTimeout: 10,
// timeoutChangeRate: Number
// Fraction of time used to change the typematic timer between events.
// 1.0 means that each typematic event fires at defaultTimeout intervals.
// < 1.0 means that each typematic event fires at an increasing faster rate.
timeoutChangeRate: 0.90,
// smallDelta: Number
// Adjust the value by this much when spinning using the arrow keys/buttons
smallDelta: 1,
// largeDelta: Number
// Adjust the value by this much when spinning using the PgUp/Dn keys
largeDelta: 10,
templateString: dojo.cache("dijit.form", "templates/Spinner.html"),
baseClass: "dijitTextBox dijitSpinner",
// Set classes like dijitUpArrowButtonHover or dijitDownArrowButtonActive depending on
// mouse action over specified node
cssStateNodes: {
"upArrowNode": "dijitUpArrowButton",
"downArrowNode": "dijitDownArrowButton"
},
adjust: function(/*Object*/ val, /*Number*/ delta){
// summary:
// Overridable function used to adjust a primitive value(Number/Date/...) by the delta amount specified.
// The val is adjusted in a way that makes sense to the object type.
// tags:
// protected extension
return val;
},
_arrowPressed: function(/*Node*/ nodePressed, /*Number*/ direction, /*Number*/ increment){
// summary:
// Handler for arrow button or arrow key being pressed
if(this.disabled || this.readOnly){ return; }
this._setValueAttr(this.adjust(this.get('value'), direction*increment), false);
dijit.selectInputText(this.textbox, this.textbox.value.length);
},
_arrowReleased: function(/*Node*/ node){
// summary:
// Handler for arrow button or arrow key being released
this._wheelTimer = null;
if(this.disabled || this.readOnly){ return; }
},
_typematicCallback: function(/*Number*/ count, /*DOMNode*/ node, /*Event*/ evt){
var inc=this.smallDelta;
if(node == this.textbox){
var k=dojo.keys;
var key = evt.charOrCode;
inc = (key == k.PAGE_UP || key == k.PAGE_DOWN) ? this.largeDelta : this.smallDelta;
node = (key == k.UP_ARROW || key == k.PAGE_UP) ? this.upArrowNode : this.downArrowNode;
}
if(count == -1){ this._arrowReleased(node); }
else{ this._arrowPressed(node, (node == this.upArrowNode) ? 1 : -1, inc); }
},
_wheelTimer: null,
_mouseWheeled: function(/*Event*/ evt){
// summary:
// Mouse wheel listener where supported
dojo.stopEvent(evt);
// FIXME: Safari bubbles
// be nice to DOH and scroll as much as the event says to
var scrollAmount = evt.detail ? (evt.detail * -1) : (evt.wheelDelta / 120);
if(scrollAmount !== 0){
var node = this[(scrollAmount > 0 ? "upArrowNode" : "downArrowNode" )];
this._arrowPressed(node, scrollAmount, this.smallDelta);
if(!this._wheelTimer){
clearTimeout(this._wheelTimer);
}
this._wheelTimer = setTimeout(dojo.hitch(this,"_arrowReleased",node), 50);
}
},
postCreate: function(){
this.inherited(arguments);
// extra listeners
this.connect(this.domNode, !dojo.isMozilla ? "onmousewheel" : 'DOMMouseScroll', "_mouseWheeled");
this._connects.push(dijit.typematic.addListener(this.upArrowNode, this.textbox, {charOrCode:dojo.keys.UP_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout, this.minimumTimeout));
this._connects.push(dijit.typematic.addListener(this.downArrowNode, this.textbox, {charOrCode:dojo.keys.DOWN_ARROW,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout, this.minimumTimeout));
this._connects.push(dijit.typematic.addListener(this.upArrowNode, this.textbox, {charOrCode:dojo.keys.PAGE_UP,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout, this.minimumTimeout));
this._connects.push(dijit.typematic.addListener(this.downArrowNode, this.textbox, {charOrCode:dojo.keys.PAGE_DOWN,ctrlKey:false,altKey:false,shiftKey:false,metaKey:false}, this, "_typematicCallback", this.timeoutChangeRate, this.defaultTimeout, this.minimumTimeout));
}
});
return dijit.form._Spinner;
});
|
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
define([
'underscore',
'contrail-view',
'contrail-list-model'
], function (_, ContrailView, ContrailListModel) {
var vRouterCfgListView = ContrailView.extend({
el: $(contentContainer),
render: function () {
var self = this, viewConfig = this.attributes.viewConfig;
var listModelConfig = {
remote: {
ajaxConfig: {
url: ctwc.get(ctwc.URL_CFG_VROUTER_DETAILS),
type: "GET"
},
dataParser: ctwp.vRouterCfgDataParser
}
};
var contrailListModel = new ContrailListModel(listModelConfig);
this.renderView4Config(this.$el,
contrailListModel, getvRouterCfgListViewConfig());
}
});
var getvRouterCfgListViewConfig = function () {
return {
elementId: cowu.formatElementId([ctwl.CFG_VROUTER_LIST_ID]),
view: "SectionView",
viewConfig: {
rows: [
{
columns: [
{
elementId: ctwl.CFG_VROUTER_LIST_ID,
title: ctwl.CFG_VROUTER_TITLE,
view: "vRouterCfgGridView",
viewPathPrefix:
"config/infra/vrouters/ui/js/views/",
app: cowc.APP_CONTRAIL_CONTROLLER,
viewConfig: {}
}
]
}
]
}
}
};
return vRouterCfgListView;
});
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.