code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
/*jshint camelcase: false*/
module.exports = (grunt) => {
'use strict';
// load all grunt tasks
require('time-grunt')(grunt);
require('load-grunt-tasks')(grunt);
// configurable paths
const config = {
app: 'app',
dist: 'dist',
distMac32: 'dist/MacOS32',
distMac64: 'dist/MacOS64',
dist... | reduxdj/node-webkit-redux-custombuilder | Gruntfile.js | JavaScript | apache-2.0 | 12,611 |
/*
* Copyright 2016 The Closure Compiler 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... | Medium/closure-compiler | test/com/google/javascript/jscomp/runtime_tests/symbol_test.js | JavaScript | apache-2.0 | 1,481 |
// Reset
$('.touch .client-wrap').click(function(event){
var target = $( event.target );
if ( target.hasClass( "client-close" ) ) {
$('.client-wrap div.client').addClass('reset');
}
else{
$('.client-wrap div.client').removeClass('reset');
}
});
// David Walsh simple lazy loading
[].forEach.cal... | urban-knight/dmcc-website | public/js/clients.js | JavaScript | apache-2.0 | 512 |
(function() {
'use strict';
angular
.module('sentryApp')
.controller('TimeFrameController', TimeFrameController);
TimeFrameController.$inject = ['$scope', '$state', 'TimeFrame', 'ParseLinks', 'AlertService', 'paginationConstants', 'pagingParams'];
function TimeFrameController ($scope,... | quanticc/sentry | src/main/webapp/app/entities/time-frame/time-frame.controller.js | JavaScript | apache-2.0 | 1,937 |
/*price range*/
$('#sl2').slider();
var RGBChange = function() {
$('#RGB').css('background', 'rgb('+r.getValue()+','+g.getValue()+','+b.getValue()+')')
};
/*scroll to top*/
$(document).ready(function(){
$(function () {
$.scrollUp({
scrollName: 'scrollUp', // Element ID
scrollDistance: ... | ReinID/ReinID | Samples/.Net/.Netproperty4u/Property4U/Scripts/main.js | JavaScript | apache-2.0 | 2,179 |
import { extend } from 'flarum/extend';
import PermissionGrid from 'flarum/components/PermissionGrid';
export default function() {
extend(PermissionGrid.prototype, 'moderateItems', items => {
items.add('tag', {
icon: 'fas fa-tag',
label: app.translator.trans('flarum-tags.admin.permissions.tag_discuss... | drthomas21/WordPress_Tutorial | community_htdocs/vendor/flarum/tags/js/src/admin/addTagPermission.js | JavaScript | apache-2.0 | 389 |
const loopback = require('loopback');
const boot = require('loopback-boot');
const request = require('request-promise');
const config = require('./config.json');
const log = require('log4js').getLogger('server');
const jwt = require('jwt-simple');
var app = module.exports = loopback();
var apiUrl = config.restApiRoot ... | SaaSManager/todo-example | server/server.js | JavaScript | apache-2.0 | 1,921 |
'use strict';
angular.module('donetexampleApp')
.service('ParseLinks', function () {
this.parse = function (header) {
if (header.length == 0) {
throw new Error("input must not be of zero length");
}
// Split parts by comma
var parts = header.... | CyberCastle/DoNetExample | DoNetExample.Gui/scripts/components/util/parse-links.service.js | JavaScript | apache-2.0 | 1,252 |
var searchData=
[
['interactiontype',['InteractionType',['../class_student_record.html#a00e060bc8aa9829e5db087e2cba21009',1,'StudentRecord']]]
];
| rstals/Unity-SCORM-Integration-Kit | Documentation/search/enums_2.js | JavaScript | apache-2.0 | 148 |
'use strict';
/**
* @ngdoc function
* @name lubriApp.controller:MembersCtrl
* @description
* # MembersCtrl
* Controller of the lubriApp
*/
angular.module('lubriApp')
.config(function($stateProvider) {
$stateProvider.state('app.members', {
abstract: true,
url: '/members',
templateUrl: 'vi... | g8te/lubri | client/app/scripts/controllers/members.js | JavaScript | apache-2.0 | 7,033 |
/*
Copyright 2015 Ricardo Tubio-Pardavila
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 agre... | satnet-project/satnet-ng | src/operations/directives/Requests.js | JavaScript | apache-2.0 | 17,236 |
import Vue from 'vue'
import { hasFetch, normalizeError, addLifecycleHook } from '../utils'
const isSsrHydration = (vm) => vm.$vnode && vm.$vnode.elm && vm.$vnode.elm.dataset && vm.$vnode.elm.dataset.fetchKey
const nuxtState = window.<%= globals.context %>
export default {
beforeCreate () {
if (!hasFetch(this))... | BigBoss424/portfolio | v6/node_modules/@nuxt/vue-app-edge/template/mixins/fetch.client.js | JavaScript | apache-2.0 | 1,830 |
/*!
* Copyright 2012 Sakai Foundation (SF) Licensed under the
* Educational Community 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.osedu.org/licenses/ECL-2.0
*
* Unless required by applicable... | Coenego/3akai-ux | ui/js/group.js | JavaScript | apache-2.0 | 5,033 |
angular.module('app.services', [
'app.services.actions',
'app.services.connection',
'app.services.coverart',
'app.services.locale',
'app.services.logging',
'app.services.mopidy',
'app.services.paging',
'app.services.platform',
'app.services.router',
'app.services.servers',
'app.services.settings'
... | tkem/mopidy-mobile | www/app/services/services.js | JavaScript | apache-2.0 | 324 |
/**
* @license Highcharts JS v7.1.1 (2019-04-09)
*
* (c) 2014-2019 Highsoft AS
* Authors: Jon Arild Nygard / Oystein Moseng
*
* License: www.highcharts.com/license
*/
'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.e... | Qesy/Q-Frame | Static/bootstrap/Highcharts-7.1.1/modules/treemap.src.js | JavaScript | apache-2.0 | 92,176 |
// SERVER-4516 and SERVER-6913: test that update and findAndModify tolerate
// an _id in the update document, as long as the _id will not be modified
var t = db.jstests_server4516;
var startingDoc = {_id: 1, a: 1};
function prepare() {
t.drop();
t.save(startingDoc);
}
function update_succeeds(updateDoc, qid,... | christkv/mongo-shell | test/jstests/core/update_find_and_modify_id.js | JavaScript | apache-2.0 | 1,313 |
/**
* @fileoverview Defines compressors utility methods.
*
* @see https://google.github.io/styleguide/javascriptguide.xml
* @see https://developers.google.com/closure/compiler/docs/js-for-compiler
* @module glize/compressors
*/
import * as lzw from 'lzw-compressor';
/**
* Enumeration of available compression t... | Datamart/Glize | src/compressors/index.js | JavaScript | apache-2.0 | 1,646 |
// ----------------------------------------------------------------------------
// Module initialization
var Config = require("config").config;
var utils = require("utils");
var validators = require("validators");
// ----------------------------------------------------------------------------
// Setting class.
functio... | garlictech/APIXMobil | app/controllers/setting.js | JavaScript | apache-2.0 | 2,314 |
(function() {
'use strict';
angular
.module('fitappApp')
.controller('RequestResetController', RequestResetController);
RequestResetController.$inject = ['$timeout', 'Auth'];
function RequestResetController ($timeout, Auth) {
var vm = this;
vm.error = null;
vm... | tomkasp/fitapp | src/main/webapp/app/account/reset/request/reset.request.controller.js | JavaScript | apache-2.0 | 1,089 |
'use strict';
const { extend } = require('underscore');
const dbclient = require('abacus-dbclient');
const { testCollectedUsageID, testResourceID, testOrganizationID, testSpaceID, testConsumerID, testPlanID,
testResourceType, testAccountID, testMeteringPlanID, testRatingPlanID,
testPricingPlanID } = require('./f... | cloudfoundry-incubator/cf-abacus | lib/aggregation/aggregator/src/test/usage-builder.js | JavaScript | apache-2.0 | 2,638 |
/**
* @license Apache-2.0
*
* Copyright (c) 2018 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/random/streams/arcsine/test/test.main.js | JavaScript | apache-2.0 | 23,031 |
"use strict";
import chai from "chai";
import chaiAsPromised from "chai-as-promised";
import sinon from "sinon";
import BusinessElementsClient from "../src";
import uuid from "uuid";
import * as requests from "../src/requests";
chai.use(chaiAsPromised);
chai.should();
chai.config.includeStack = true;
const FAKE_SERV... | Product-Foundry/business-elements-client-js | test/attribute_test.js | JavaScript | apache-2.0 | 2,495 |
'use strict';
angular.module('playgroundApp', [
'playgroundApp.filters',
'playgroundApp.services',
'playgroundApp.directives',
'ngRoute',
'ui.bootstrap',
'ui',
])
.config(function($locationProvider, $routeProvider, $httpProvider,
$dialogProvider) {
$locationProvider.html5Mo... | jackpunt/playground | app/js/app.js | JavaScript | apache-2.0 | 1,117 |
define([
'jquery',
'underscore',
'backbone',
'app'
],
function (
$, _, Backbone, app
) {
var Models = {},
Collections = {},
Views = {};
Models.Project = Backbone.Model.extend();
Collections.Projects = Backbone.Model.extend({
model: Models.Project,
url: function() {
return app.api('projects/' + this... | Redmart/os-mobilizer | frontend/source/js/modules/Projects.js | JavaScript | apache-2.0 | 666 |
import App from '../containers/App';
import { PageNotFound } from '../components';
import homeRoute from '../features/home/route';
import taggrRoute from '../features/taggr/route';
const routes = [{
path: '/',
component: App,
childRoutes: [
homeRoute,
taggrRoute,
{ path: '*', name: 'Page not found',... | thehig/taggr | src/common/routeConfig.js | JavaScript | apache-2.0 | 1,246 |
'use strict';
const Task = require('co-task');
const sql = require('../api/helpers/sql');
module.exports = {
up: function (queryInterface, Sequelize) {
return Task.spawn(function* () {
yield queryInterface.addColumn('ClassicSalads', 'ClassicSaladCatagoryId', Sequelize.INTEGER);
yield sql.foreignKeyU... | arcana261/SaladioBackEnd | migrations/20161221201621-associate-classicsaladcatagory-and-classicsalad.js | JavaScript | apache-2.0 | 734 |
/*global describe, beforeEach, it*/
'use strict';
var assert = require('yeoman-generator').assert;
var helper = require('./helper');
describe('mcap:connections', function () {
beforeEach(function (done) {
var answers = {
name: 'MyApp'
};
// Creates a generateor with the default options / argumen... | mwaylabs/mcap-cli | generators/generator-mcap/test/test-connections.js | JavaScript | apache-2.0 | 1,116 |
const browserSync = require('../../../');
const utils = require('../utils');
const register = require('../../../dist/plugins/clients').ClientEvents.register;
const assert = require('chai').assert;
describe('Client connection stream', function () {
it('does not have duplicates', function (done) {
... | BrowserSync/browser-sync-core | test/mocha/api/clients$.js | JavaScript | apache-2.0 | 2,869 |
'use strict';
// https://github.com/tc39/proposal-iterator-helpers
var aCallable = require('../internals/a-callable');
var anObject = require('../internals/an-object');
var getBuiltIn = require('../internals/get-built-in');
var getMethod = require('../internals/get-method');
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
v... | cloudfoundry-community/asp.net5-buildpack | fixtures/node_apps/angular_dotnet/ClientApp/node_modules/core-js/internals/async-iterator-iteration.js | JavaScript | apache-2.0 | 2,973 |
/*!
* ${copyright}
*/
sap.ui.require([
"jquery.sap.global",
"sap/ui/base/SyncPromise",
"sap/ui/model/BindingMode",
"sap/ui/model/ChangeReason",
"sap/ui/model/ClientListBinding",
"sap/ui/model/Context",
"sap/ui/model/ContextBinding",
"sap/ui/model/Filter",
"sap/ui/model/MetaModel",
"sap/ui/model/PropertyBind... | cschuff/openui5 | src/sap.ui.core/test/sap/ui/core/qunit/odata/v4/ODataMetaModel.qunit.js | JavaScript | apache-2.0 | 161,426 |
export const removeWeight = (element) => {
try {
element.removeAttribute('data-weight');
} catch (e) {
// We are now in IE11 territory
if (!!element) {
element.setAttribute('data-weight', null);
}
}
};
| OpenConext/OpenConext-engineblock | theme/base/javascripts/wayf/search/removeWeight.js | JavaScript | apache-2.0 | 230 |
'use strict';
module.exports = function (grunt) {
grunt.config(
'a11y', {
live: {
options: {
urls: ['www.google.com']
}
}
});
};
| spolnik/javascript-workspace | grunt/TodoApp/tasks/a11y.js | JavaScript | apache-2.0 | 166 |
OC.L10N.register(
"settings",
{
"Security & Setup Warnings" : "Säkerhets & Inställningsvarningar",
"Cron" : "Cron",
"Sharing" : "Dela",
"Security" : "Säkerhet",
"Email Server" : "E-postserver",
"Log" : "Logg",
"Authentication error" : "Fel vid autentisering",
"Your full name has ... | kebenxiaoming/owncloudRedis | settings/l10n/sv.js | JavaScript | apache-2.0 | 21,151 |
var config = require('./lib/config');
var FaceRec = require('./lib/facerec').FaceRec;
var hfr = new FaceRec(config);
// constant
var threshold = 20;
var prevX;
var prevY;
setInterval(function() {
var result = hfr.detect();
console.log('result:' + JSON.stringify(result));
if (result && result.pos_x &... | project-humix/humix-facerec-module | test.js | JavaScript | apache-2.0 | 992 |
var structCO__config__t =
[
[ "CNT_NMT", "structCO__config__t.html#aeef814580eb5ece5156e63bfc1b490c9", null ],
[ "ENTRY_H1017", "structCO__config__t.html#ad17f77b55de3d90ec983fcac49eeab6d", null ],
[ "CNT_HB_CONS", "structCO__config__t.html#a0031fc8f80e95f8480c918dbf8289671", null ],
[ "ENTRY_H1016", "s... | CANopenNode/CANopenSocket | docs/structCO__config__t.js | JavaScript | apache-2.0 | 3,451 |
/**
* Copyright 2013-present NightWorld.
*
* 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 ag... | zoltangbereczky/node-oauth2-server | lib/authorise.js | JavaScript | apache-2.0 | 6,699 |
//// [contextualTypeWithUnionTypeMembers.ts]
//When used as a contextual type, a union type U has those members that are present in any of
// its constituent types, with types that are unions of the respective members in the constituent types.
interface I1<T> {
commonMethodType(a: string): string;
commonPrope... | freedot/tstolua | tests/baselines/reference/contextualTypeWithUnionTypeMembers.js | JavaScript | apache-2.0 | 6,404 |
'use strict';
var path = require('path');
var util = require('util');
module.exports = function(grunt) {
grunt.registerMultiTask('vjslanguages', 'A Grunt plugin for compiling VideoJS language assets.', function() {
var createLanguageFile = function(languageName, languageData, jsFilePath) {
var jsTemplate... | videojs/grunt-videojs-languages | tasks/videojs_languages.js | JavaScript | apache-2.0 | 1,338 |
$(document).ready(function(){
$("#inc_tab #tb1").removeClass();
$("#inc_tab #tb4").addClass("active");
$("#user_name").blur(function(){
var user_name = $.trim($(this).val());
$(this).val(user_name);
if (user_name.length==0){
$(this).parent().find("#user_name_null_warn").show();
$(this).parent().fin... | wxiwei/manage | src/main/webapp/WEB-INF/js/user/userEditor.js | JavaScript | apache-2.0 | 1,536 |
define(
['app/models/proto_model'],
function(ProtoModel) {
var Model = ProtoModel.extend({
// matches first part of method name in @remote.method
urlRoot: '/cru_api.order_',
must_be_floats: ['sub_total', 'actual_total'],
});
return Model;
}
);
| babybunny/rebuildingtogethercaptain | gae/js/app/models/order.js | JavaScript | apache-2.0 | 317 |
/*
* ! ${copyright}
*/
sap.ui.define([
"delegates/odata/v4/TableDelegate",
"sap/ui/core/Core"
], function(
TableDelegate,
Core
) {
"use strict";
/**
* Test delegate for OData V4.
*/
var ODataTableDelegate = Object.assign({}, TableDelegate);
/**
* Updates the binding info with the relevant path and mo... | SAP/openui5 | src/sap.ui.mdc/test/sap/ui/mdc/internal/TableWithFilterBar/delegate/GridTable.delegate.js | JavaScript | apache-2.0 | 1,110 |
var logger = require('../logging').getLogger(__LOGGER__);
var {PAGE_CSS_NODE_ID} = require('../constants');
var Q = require('q');
var PageUtil = require('./PageUtil')
var loadedCss = {};
module.exports = {
registerPageLoad: function registerPageLoad() {
if (SERVER_SIDE) {
throw new Error("ClientCssHelper.regi... | redfin/react-server | packages/react-server/core/util/ClientCssHelper.js | JavaScript | apache-2.0 | 3,519 |
var child_process = require('child_process'),
fs = require('fs'),
path = require('path');
module.exports = function(context) {
var IOS_DEPLOYMENT_TARGET = '8.0',
SWIFT_VERSION = '3.0',
COMMENT_KEY = /_comment$/,
CORDOVA_VERSION = process.env.CORDOVA_VERSION;
run();
functio... | pmwisdom/cordova-background-geolocation-services | hooks/add_swift_support.js | JavaScript | apache-2.0 | 8,172 |
var activeElements = [];
var sleepElements = [];
var promises = [];
$.ajax("https://osiproghackuc2015.osisoft.com/piwebapi/assetdatabases/D0EgxEhIf8KUieOFdFcX1IWQZ8qIGYDdE0m5aJCwNb4x_gSlVQSVRFUjAwMVxQSUZJVE5FU1M/elements", {
type : 'GET',
headers: { "Authorization" : "Basic " + btoa("osiproghack\\hackuser051:bO2... | dstcontrols/UnhandledException | customJS/piWebAPI.js | JavaScript | apache-2.0 | 2,755 |
(function(jQuery) {
"use strict";
var control = Echo.Control.manifest("Echo.Tests.Controls.TestControl");
if (Echo.Control.isDefined(control)) return;
control.init = function() {
if (!Echo.Variables) {
Echo.Variables = {};
}
Echo.Variables.TestControl = "production";
this.ready();
};
control.config = {};
con... | EchoAppsTeam/js-sdk | tests/fixtures/resources/loader/scripts.prod.js | JavaScript | apache-2.0 | 395 |
exports.view = function() {
this.render();
};
exports.async = function() {
this.render();
};
| alibaba/plover | packages/plover/test/fixtures/core/app/modules/helper/index.js | JavaScript | apache-2.0 | 99 |
module.exports = {
readFiles: readFiles
};
var filewalker = require('filewalker');
var _ = require('kling/kling.js');
var fs = require('fs');
function readFiles(directory, fileSuffix) {
return new Promise(function(resolve, reject) {
var files = [];
filewalker(directory)
.on('file',... | petercrona/latmask | src/reader/reader.js | JavaScript | apache-2.0 | 880 |
/**
* 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 ... | mdhgriffiths/fluxthis | lib/implore.es6.js | JavaScript | apache-2.0 | 4,808 |
/*
* Copyright 2016 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 i... | ariatemplates/at-diff | test/checks/compareWithPreviousOutputs.check.js | JavaScript | apache-2.0 | 1,985 |
/*
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 ... | janl/jscouch | jscouch.documents.js | JavaScript | apache-2.0 | 3,006 |
define(function (require) {
var SymbolDraw = require('../helper/SymbolDraw');
var LargeSymbolDraw = require('../helper/LargeSymbolDraw');
require('../../echarts').extendChartView({
type: 'scatter',
init: function () {
this._normalSymbolDraw = new SymbolDraw();
... | aholake/hiringviet | src/main/webapp/resources/vendors/echarts/src/chart/scatter/ScatterView.js | JavaScript | apache-2.0 | 1,369 |
/**
* @author fanguozhu
*/
$(function()
{
var tab = new TabPanel("tab",true);
var f_tree = new Fieldset("f_tree","公司列表",{
state: Fieldset.OPEN_STATE,
topdown: false
});
var mytree = new PorTreeT("tree", "-1", "手机公司",{isDefaultClick:0} );
var dw = new DataWrapper();
dw.service("PRtree");
... | stserp/erp1 | source/web/por2/demo/Demo/TreeTabDemo.js | JavaScript | apache-2.0 | 1,666 |
module.exports = unbuild
unbuild.usage = "npm unbuild <folder>\n(this is plumbing)"
var readJson = require("read-package-json")
, rm = require("./utils/gently-rm.js")
, gentlyRm = require("./utils/gently-rm.js")
, npm = require("./npm.js")
, path = require("path")
, fs = require("graceful-fs")
, lifecycle ... | fabm/BabyHelp | node_modules/npm/lib/unbuild.js | JavaScript | apache-2.0 | 3,505 |
var gplay = require('google-play-scraper');
var fs = require('fs')
var Promise = require('promise');
var myArgs = process.argv.slice(2);
var passed_appid = myArgs[0];
var passed_appcount = myArgs[1];
console.log(passed_appid);
var read = Promise.denodeify(fs.readFile);
var write = Promise.denodeify(fs.writeFile);
var d... | iresium/apprater | scraper.js | JavaScript | apache-2.0 | 764 |
// Models
app.SearchModel = Backbone.Model.extend({
idAttribute: "session_token",
urlRoot: function() {
var u = '/search/' + this.id;
return u;
}
});
// Collections
app.SearchCollection = Backbone.Collection.extend({
model: app.SearchModel,
url: function()... | GOPINATH-GS4/stock | public/lib/cards.js | JavaScript | apache-2.0 | 1,119 |
function htmlEncode(value){
return $('<div/>').text(value).html();
}
var app = angular.module("oasassets",[]).controller("snippetsController",function($scope){
$scope.snippet = function(item){
var elem = $("#"+item);
var contents = elem.html().trim();
elem.html(htmlEncode(contents));
... | bizoru/assets-oas | js/app.js | JavaScript | apache-2.0 | 510 |
(function (chaiJquery) {
// Module systems magic dance.
if (typeof require === "function" && typeof exports === "object" && typeof module === "object") {
// NodeJS
module.exports = chaiJquery;
} else if (typeof define === "function" && define.amd) {
// AMD
define(function () {
return chaiJqu... | reaktor/jquery.spinner | test/chai-jquery-1.0.0.js | JavaScript | apache-2.0 | 6,187 |
'use strict';
viewModel.MonitoringAlarm = new Object();
var ma = viewModel.MonitoringAlarm;
ma.minDatetemp = new Date();
ma.maxDatetemp = new Date();
ma.minDateRet = new Date();
ma.maxDateRet = new Date();
vm.currentMenu('Alarm Data');
vm.currentTitle('Alarm Data');
vm.isShowDataAvailability(false);
vm.breadcrumb(... | eaciit/windapp | web/assets/core/js/page-monitoring/monitoring-alarm.js | JavaScript | apache-2.0 | 14,310 |
import React from 'react';
import { action } from '@storybook/addon-actions';
import { Action } from '../Actions';
import ActionBar from './ActionBar.component';
const primary = {
label: 'Primary',
icon: 'talend-cog',
bsStyle: 'primary',
'data-feature': 'actionbar.primary',
onClick: action('You clicked me'),
};
... | Talend/ui | packages/components/src/ActionBar/ActionBar.stories.js | JavaScript | apache-2.0 | 6,576 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const options_1 = require("./options");
class TslintFixTask {
constructor(configOrPath, options) {
if (options) {
this._configOrPath = configOrPath;
this._options = options;
}
else {
... | cloudfoundry-community/asp.net5-buildpack | fixtures/node_apps/angular_dotnet/ClientApp/node_modules/@angular-devkit/schematics/tasks/tslint-fix/task.js | JavaScript | apache-2.0 | 913 |
'use strict';
var fs = require('fs');
var path = require('path');
var util = require('util');
var dbg = require('debug');
// process.env.TABTAB_DEBUG = process.env.TABTAB_DEBUG || '/tmp/tabtab.log';
var out = process.env.TABTAB_DEBUG ? fs.createWriteStream(process.env.TABTAB_DEBUG, { flags: 'a' }) : null;
module.ex... | bhav0904/netDelSolution | node_modules/tabtab/src/debug.js | JavaScript | apache-2.0 | 1,398 |
// Copyright (c) 2015-2016 Yuya Ochiai
// Copyright (c) 2016-present Mattermost, Inc. All Rights Reserved.
// See LICENSE.txt for license information.
import AutoLaunch from 'auto-launch';
import {app} from 'electron';
function shouldQuitApp(cmd) {
if (process.platform !== 'win32') {
return false;
}
const sq... | yuya-oc/desktop | src/main/squirrelStartup.js | JavaScript | apache-2.0 | 1,409 |
var nodes = new vis.DataSet([
/* {id: a, label: b, ...}, */
{id: '192', label: 'VALUE\n13.0', color: '#31b0d5', title: 'Name: VALUE<br>Alias: null<br>Value: 13.0<br>Type: CONSTANT_VALUE<br>Id: 192<br>Formula Expression: Formula String: VALUE; Formula Values: 13.0; Formula Ptg: 13.0; Ptgs:... | DataArt/CalculationEngine | calculation-engine/engine-tests/engine-it-graph/src/test/resources/standard_data_js_files/data_CHOOSE_Fx_cells_B2.js | JavaScript | apache-2.0 | 9,297 |
[
{
"title": "Ventes véhicules",
"url": "",
"imageUrl": "http://lim.local.inetpsa.com/application/images/service/car2.jpg",
"language": "fr-FR",
"order": "1",
"workplace": "All",
"department": "All",
"categoryPro": "All",
"status": "published",
"children": [
{... | florentbruel/livein | services.js | JavaScript | apache-2.0 | 2,378 |
sap.ui.define(["sap/ui/integration/Designtime"], function (
Designtime
) {
"use strict";
return function () {
return new Designtime({
"form": {
"items": {
"validationGroup": {
"type": "group",
"label": "Validation"
},
"OrderID": {
"manifestpath": "/sap.card/configuration/par... | SAP/openui5 | src/sap.ui.integration/test/sap/ui/integration/demokit/cardExplorer/webapp/samples/designtimeValidation/dt/configuration.js | JavaScript | apache-2.0 | 3,586 |
/**
* Created by Jacky.Gao on 2017-02-09.
*/
import {alert} from '../MsgBox.js';
export default class EditPropertyConditionDialog{
constructor(conditions){
this.conditions=conditions;
this.dialog=$(`<div class="modal fade" role="dialog" aria-hidden="true" style="z-index: 11001">
<div ... | youseries/ureport | ureport2-js/src/dialog/EditPropertyConditionDialog.js | JavaScript | apache-2.0 | 9,326 |
//// [/lib/initial-buildOutput.txt]
/lib/tsc --b /src/core --verbose
12:01:00 AM - Projects in this build:
* src/core/tsconfig.json
12:01:00 AM - Project 'src/core/tsconfig.json' is out of date because output file 'src/core/anotherModule.js' does not exist
12:01:00 AM - Building project '/src/core/tsconfig... | minestarks/TypeScript | tests/baselines/reference/tsbuild/sample1/initial-build/when-module-option-changes.js | JavaScript | apache-2.0 | 3,067 |
/* -------------------------------------------------------------------------- */
/* Copyright 2002-2020, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); you may ... | baby-gnu/one | src/sunstone/public/app/tabs/acls-tab/tabId.js | JavaScript | apache-2.0 | 1,267 |
'use strict';
module.exports = function(config) {
config.set({
files: [
'tests/main.js',
{pattern: 'app/js/**/*.js', included: false},
{pattern: 'app/bower_components/**/*.js', included: false},
{pattern: 'tests/specs/**/*.js', included: false},
{... | spolnik/javascript-workspace | grunt/TodoApp/tests/karma.conf.js | JavaScript | apache-2.0 | 619 |
// Copyright 2017 The Oppia Authors. 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 ap... | AllanYangZhou/oppia | core/templates/dev/head/domain/exploration/InteractionObjectFactory.js | JavaScript | apache-2.0 | 3,481 |
"use strict";
import {Vector2, Vector3, Matrix4, Vector4} from 'vectormath';
/*
NOTE: this was originally a WebGL UI library I wrote.
it's gone through several transitions since then, and
is now a canvas2d UI library (bleh). the code is quite
horrible.
*/
#include "src/utils/utildefine.js"
//we keep track of any c... | joeedh/webblender | src/editors/interface/UICanvas.js | JavaScript | apache-2.0 | 46,545 |
$.FAQ = function(){
$self = this;
this.url = "/faq"
this.send = function(inputs){
var params = new FormData();
// var csrf = $("#csrf").val();
// params.append("csrf_ID", csrf);
$.each(inputs, function(key, val){
params.append(key,val);
});
$.ajax({
url : $self.url,
type: 'PO... | ajaykiet2/htdocs | assets/js/website/faq.js | JavaScript | apache-2.0 | 1,284 |
$(document).ready(function(){
$('#datepickerDay1').hide();
$('#datepickerDay2').hide();
$('#datepickerMnd1').hide();
$('#datepickerMnd2').hide();
$('#datepickerYear1').hide();
$('#datepickerYear2').hide();
$('select').change(function(){
var index = $('select').val();
if(index == 0){ //day
... | lavhmrps/SharityCRM | js/comparison.js | JavaScript | apache-2.0 | 25,646 |
/* The all pages that do not require authentication */
function UnAuthenticatedHandler() {
"use strict";
this.displayAboutPage = function(req, res, next) {
return res.render("about");
};
this.displayContactPage = function(req, res, next) {
return res.render("contact");
};
this... | bertonjulian/NodeGoat | app/routes/unauthenticated.js | JavaScript | apache-2.0 | 549 |
function $childNode(o) {
return window.frames[o]
}
function animationHover(o, e) {
o = $(o), o.hover(function () {
o.addClass("animated " + e)
}, function () {
window.setTimeout(function () {
o.removeClass("animated " + e)
}, 2e3)
})
}
function WinMove() {
var o =... | pantisocracy/live-report | src/main/resources/static/resource/js/content.min.js | JavaScript | apache-2.0 | 1,277 |
/*!
* Module requirements
*/
var NeopreneError = require('../error')
/**
* Document Validation Error
*
* @api private
* @param {Document} instance
* @inherits NeopreneError
*/
function ValidationError (instance) {
NeopreneError.call(this, "Validation failed");
Error.captureStackTrace(this, arguments.cal... | rorymadden/neoprene | lib/errors/validation.js | JavaScript | apache-2.0 | 813 |
/**
* App routes.
*/
var homepage = require('./homepage');
var user = require('./user');
var news = require('./news');
var test = require('./test');
var passport = require('passport');
function ensureAuthenticated(req, res, next) {
if (req.isAuthenticated()) { return next(); }
req.flash('error', '抱歉,您尚未登录。... | dotkrnl/helium | routes/index.js | JavaScript | apache-2.0 | 2,456 |
jQuery("#simulation")
.on("click", ".s-cd8b0318-8942-4a64-b2c9-ee7c253d6b7d .click", function(event, data) {
var jEvent, jFirer, cases;
if(data === undefined) { data = event; }
jEvent = jimEvent(event);
jFirer = jEvent.getEventFirer();
if(jFirer.is("#s-Label_58")) {
cases = [
{
... | yicold/axure-case | caiqu/财趣v1.5/resources/screens/cd8b0318-8942-4a64-b2c9-ee7c253d6b7d-1445822636718.js | JavaScript | apache-2.0 | 13,587 |
/* COPYRIGHT 2012 SUPERMAP
* 本程序只能在有效的授权许可下使用。
* 未经许可,不得以任何手段擅自使用或传播。*/
/**
* @requires SuperMap/Util.js
* @requires SuperMap/REST.js
*/
/**
* Class: SuperMap.REST.ChartQueryParameters
* 海图查询参数类,该类用于设置海图查询时的相关参数,海图查询分为海图属性
* 查询和海图范围查询两类,通过属性queryMode指定查询模式。必设属性有:
* queryMode、chartLayerNames、chart... | SuperMap/iClient-for-JavaScript | libs/SuperMap/REST/Query/ChartQueryParameters.js | JavaScript | apache-2.0 | 6,706 |
'use strict';
var chai = require('chai');
var promised = require('chai-as-promised');
chai.use(promised);
global.expect = chai.expect;
exports.config = {
// The timeout for each script run on the browser. This should be longer
// than the maximum time your application needs to stabilize between tasks.
a... | jangalinski/camunda-bpm-webapp | webapp/src/test/js/e2e/ci.conf.js | JavaScript | apache-2.0 | 2,310 |
/*
* @class TableExamplesService
*/
export default class TableExamplesService {
constructor($http) {
this.$http = $http;
}
static getClassName() { return 'TableExamplesService'; }
getClassName() { return TableExamplesService.getClassName(); }
/*
* @func getColumns
* @desc getes a list of columns... | garrettwong/GDashboard | client/app/components/tableExamples/tableExamples.service.js | JavaScript | apache-2.0 | 1,084 |
describe('app.components.SaveProfileModal', function() {
beforeEach(function () {
module('app.components', 'ui.bootstrap', 'gettext');
});
describe('service', function () {
var callbackObject;
var saveSpy;
var doNotSaveSpy;
var cancelSpy;
beforeEach(function () {
bard.inject('SaveP... | dtaylor113/manageiq-ui-self_service | tests/profiles/save-profile-modal-service.spec.js | JavaScript | apache-2.0 | 1,584 |
/*
* Copyright (c) 2012-2015 S-Core Co., Ltd.
*
* 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 ... | 5hk/webida-client | apps/dashboard/src/js/main_bak.js | JavaScript | apache-2.0 | 22,004 |
"use strict";
var router_1 = require('@angular/router');
var authorize_component_1 = require('./authorize/authorize-component');
var user_component_1 = require('./User/user-component');
var welcome_component_1 = require('./welcome-component');
exports.routes = [
{ path: '', component: welcome_component_1.welcome },... | devilsuraj/openiddict-samples | Samples/resource-owner-password-credential/Angualar2-Client-ROPC/app/app.route.js | JavaScript | apache-2.0 | 586 |
ngDefine(
'cockpit.plugin.statistics-plugin.controllers',
function(module) {
module
.controller(
'processDefinitionCtrl',
[
'$scope',
'DataFactory',
'Uri',
function($scope, DataFactory, Uri) {
... | nagyistoce/camunda-cockpit-plugin-statistics | src/main/resources/plugin-webapp/statistics-plugin/app/controllers/processDefinitionCtrl.js | JavaScript | apache-2.0 | 3,679 |
/**
* Red Hat Open Innovation Labs API
* A generic model to support automation at all levels of the application and infrastructure lifecycle.
*
* OpenAPI spec version: 0.3.0-alpha
* Contact: rhc-open-innovation-labs@redhat.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https... | priley86/labs-console | app/automation/model/Service.js | JavaScript | apache-2.0 | 3,193 |
(function($) {
module("referenceReads1");
// Test case : Reference Reads 1
_asyncTest("Reference Reads 1", function()
{
expect(6);
GitanaTest.authenticateFullOAuth().then(function() {
var platform = this;
// create a few things
var repository = nu... | gitana/gitana-javascript-driver | tests/js/testReferenceReads1.js | JavaScript | apache-2.0 | 2,469 |
$(function () {
var controller = new ScrollMagic.Controller({
globalSceneOptions: {
triggerHook: 'onLeave',
reverse: true
}
});
// $('.homepage .panel').each(function () {
// var element = $(this);
// console.log(element);
// new ... | shamroze/squarespace-gulp-scaffolding | sqs_template/scripts/parallax.js | JavaScript | apache-2.0 | 4,557 |
angular.module('aac.controllers.main', [])
/**
* Main layout controller
* @param $scope
*/
.controller('MainCtrl', function($scope, $rootScope, $location, Data, Utils) {
$scope.go = function(v) {
$location.path(v);
}
$scope.activeView = function(view) {
return view == $rootScope.currentView ? 'ac... | smartcommunitylab/AAC | src/main/resources/public/js/account/main.js | JavaScript | apache-2.0 | 3,561 |
jQuery(function($) {
//smooth scroll
$('.navbar-nav > li.anchor').click(function(event) {
//event.preventDefault();
var target = $(this).find('>a').prop('hash');
$('#navbar .active').removeClass('active');
$(this).addClass('active');
$('html, body').animate({
scrollTop: $(target).offset().top
}, ... | clinm/visu-regions-autonomes-france | js/main.js | JavaScript | apache-2.0 | 656 |
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var STATIC_REG = /.*\.(png|jpe?g|gif|svg|woff2?|eot|ttf|otf)$/;
var VER_REG = /[\W][\d\w]+(?=\.\w+$)/;
var _default = function _default(req, res, next) {
var filePaths = req.url.split('/');
if (STATIC_REG.... | angrytoro/fetool | lib/server/middlewares/webpackStatic.js | JavaScript | apache-2.0 | 497 |
System.register([], function (exports_1, context_1) {
"use strict";
var __moduleName = context_1 && context_1.id;
function toSnakeCase(camelCase) {
if (!camelCase) {
throw new Error("Please provide camelCase.");
}
return camelCase.replace(/([A-Z])/g, "-$1").toLowerCase();... | roelvanlisdonk/dev | apps/sportersonline/www/libraries/am/common/text/to.snake.case.js | JavaScript | apache-2.0 | 497 |
import { createStore, applyMiddleware, compose } from 'redux'
import logger from 'redux-logger'
import thunkMiddleware from 'redux-thunk'
import rootReducer from './reducers'
const configureStore = () => {
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
return createStore(rootReduc... | AleksandrRogachev94/chat-vote-go-frontend | src/configureStore.js | JavaScript | apache-2.0 | 471 |
(function outer(modules, cache, entries){
/**
* Global
*/
var global = (function(){ return this; })();
/**
* Require `name`.
*
* @param {String} name
* @param {Boolean} jumped
* @api public
*/
function require(name, jumped){
if (cache[name]) return cache[name].exports;
if (mo... | wdamron/duo-jsx | test/exp_react.js | JavaScript | apache-2.0 | 1,625 |
/**
* Copyright 2015 The AMP HTML Authors. 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 require... | aghassemi/amphtml | extensions/amp-instagram/0.1/amp-instagram.js | JavaScript | apache-2.0 | 7,111 |
var addressBar = element(by.css("#addressBar")),
url = 'http://www.example.com/base/ratingList.html#!/path?a=b#h';
it("should show fake browser info on load", function(){
expect(addressBar.getAttribute('value')).toBe(url);
expect(element(by.binding('$location.protocol()')).getText()).toBe('http');
expect(e... | lvkklemo/shopApp | library/angular-1.4.9/docs/examples/example-location-hashbang-mode/protractor.js | JavaScript | apache-2.0 | 2,038 |
"use strict";
define(["lib/three.min"], function() {
var Reality = function(sourceCanvas){
// Create a default camera and scene.
var camera = new THREE.Camera();
var scene = new THREE.Scene();
// Create a plane geometry to hold the sourceCanvas texture
var geometry = new T... | xsoh/3DKabah | arview.js | JavaScript | apache-2.0 | 3,251 |
const $ = require('jquery');
const { BagItProfile } = require('../../bagit/bagit_profile');
const { Job } = require('../../core/job');
const { JobRunController } = require('./job_run_controller');
const { PackageOperation } = require('../../core/package_operation');
const path = require('path');
const { StorageService ... | APTrust/easy-store | ui/controllers/job_run_controller.test.js | JavaScript | apache-2.0 | 2,913 |
/**
* @license Apache-2.0
*
* Copyright (c) 2020 The Stdlib 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 a... | stdlib-js/stdlib | lib/node_modules/@stdlib/stats/base/dists/signrank/cdf/lib/factory.js | JavaScript | apache-2.0 | 2,313 |
/**
* @license
* Copyright The Closure Library Authors.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Displays and edits the value of a cookie.
* Intended only for debugging.
*/
goog.provide('goog.ui.CookieEditor');
goog.require('goog.asserts');
goog.require('goog.dom');
goog.require('goog.dom.T... | google/closure-library | closure/goog/ui/cookieeditor.js | JavaScript | apache-2.0 | 4,463 |