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
var classsql_grid_choice_editor = [ [ "sqlGridChoiceEditor", "classsql_grid_choice_editor.html#af026ff4513fa36bc2f7405795848b6ef", null ], [ "sqlGridChoiceEditor", "classsql_grid_choice_editor.html#a86a4f84ec744eda78324b3751ef21ac0", null ], [ "BeginEdit", "classsql_grid_choice_editor.html#a500640c3fa8ab933...
mikewolfli/workflow
doxygen/html/classsql_grid_choice_editor.js
JavaScript
unlicense
1,211
define(['services/services', 'services/AnalysisService', 'services/FileOperationService', 'services/FtpDownloadService' ], function(services) { services.service("HmsDownloadService", ['$q', '$rootScope', 'AnalysisService', 'FileOperationService','FtpDownloadService', function($q, $rootScope, Ana...
muyingzhi/ehrOffline
app/scripts/services/HmsDownloadService.js
JavaScript
unlicense
11,300
if (typeof define !== 'function') { var define = require('amdefine')(module); } define([ 'chai', 'mocha', 'boringrpg/lib/models/adventure' ], function(chai, mocha, CUT) { 'use strict'; var expect = chai.expect; describe('Adventure', function() { describe('creation', function () { context('with data (man...
Offirmo/online-adventur.es
client/apps/boringrpg/lib/models/adventure.spec.js
JavaScript
unlicense
2,218
import expect from "expect" import validateHelper, { expectNoErrors } from "./validate-helper.js" describe("validation plugin - semantic - operations", () => { describe("Operations must have unique (name + in combination) parameters", () => { }) describe("Operations must have unique operationIds", () => { ...
ccjadrian/ccjadrian.github.io
swagger-editor/test/plugins/validate-semantic/operations.js
JavaScript
unlicense
1,424
/** * mabetle javascript lib * @author korbenzhang */ function addBookmark(title,url) { try{ window.external.AddFavorite( url, title); }catch (e){ try{ window.sidebar.addPanel(title, url,""); }catch(e){ alert("加入收藏失败,请使用Ctrl+D进行添加!") } } } function setHomepage(url){ if (document.all){ document...
mabetle/mps
public/webassets/js/mabetle.js
JavaScript
apache-2.0
979
var Services = require('/Services'), Alloy = require('alloy'); var oevents = { load: function(callback) { console.log("huhu"); var today = new Date(); var lastUpdate = ""//Info.getInfo("eventsLastUpdate"); //var minDate = today.getTime() - (60*1000*60*60*24); //var maxDate = today.getTime() + (60*1000*60*6...
yannisgu/myoapp-alloy
app/oevents.js
JavaScript
apache-2.0
1,851
/* * Copyright © 2015 - 2021 SSHTOOLS Limited (support@sshtools.com) * * 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 req...
sshtools/forker
forker-examples/wrapper-javascript-test.cfg.js
JavaScript
apache-2.0
1,157
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
AutorestCI/azure-sdk-for-node
lib/services/recoveryServicesBackupManagement/lib/models/azureSqlProtectedItem.js
JavaScript
apache-2.0
3,703
/*! ziggeo - v0.1.30 - 2022-02-17 Copyright (c) Apache-2.0 Software License. */ (function () { var Scoped = this.subScope(); Scoped.binding('base', 'global:BetaJS'); Scoped.binding('module', 'global:ZiggeoSdk'); Scoped.define("module:", function () { return { "guid": "dc4166d4-b177-4212-abd5-ab255907a7d8", "...
Ziggeo/ZiggeoNodeSdk
dist/ziggeo.js
JavaScript
apache-2.0
37,508
import React from 'react' import Navigation from './navigation/Navigation' import { connect } from 'react-redux' import Popup from 'react-popup' import Welcome from './Welcome' import Settings from './Settings' import Editor from './editor/Editor' import Configuration from '../../models/Configuration' import PropTypes ...
svrnm/demomonkey
src/components/options/OptionsPageApp.js
JavaScript
apache-2.0
7,365
/* * Copyright 2017 StreamSets 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...
rockmkd/datacollector
datacollector-ui/src/main/webapp/app/home/packageManager/upload_extras/uploadExtras.js
JavaScript
apache-2.0
2,563
module.exports = { sidebar: [ 'index', { type: 'category', label: 'Stencila Hub', items: [ { type: 'category', label: 'Accounts', items: [ { type: 'autogenerated', dirName: 'accounts', }, ], ...
stencila/stencila
help/guides/sidebars.js
JavaScript
apache-2.0
1,393
// Copyright 2010, Mike Samuel // // 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...
bjorndm/prebake
code/src/org/prebake/service/tools/json-schema.js
JavaScript
apache-2.0
14,951
function updateChange(value){ var path =$("#file").val(); $("img").attr("src",path); } function flashWrite(id, flashUri, vWidth, vHeight, winMode) { var _obj_ = ""; _obj_ = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swfla...
ManGroup/Demo
SUN/WebRoot/js/util.js
JavaScript
apache-2.0
4,744
/** * @fileoverview This is a layer that lays its children out into a grid. Its * implementation is based off of the CSS Grid Spec. * * Example: * <code> * <amp-story-grid-layer template="fill"> * ... * </amp-story-grid-layer> * </code> */ import {scopedQuerySelectorAll} from '#core/dom/query'; import { ...
media-net/amphtml
extensions/amp-story/1.0/amp-story-grid-layer.js
JavaScript
apache-2.0
3,646
(function () { 'use strict'; angular .module('app.admin') .controller('AdminPeriodoController', AdminPeriodoController); AdminPeriodoController.$inject = ['logger', 'myAppConfig', 'uiGridConstants', '$scope', 'adminDataService', '$rootScope', 'Idle', '$state']; /* @ngInject */ ...
flogarcdos/novaSLA-webapp
src/client/app/admin/periodo/periodo.controller.js
JavaScript
apache-2.0
9,218
'use strict'; var widgetsRepeater = by.repeater('w in wsc.widgets.hits'); var WidgetsPage = function () { browser.get('widgets'); }; WidgetsPage.prototype = Object.create({}, { header: { get: function () { return element(by.css('h1')); }}, widgets: { get: function () { return element.al...
NCI-GDC/portal-ui-legacy
app/tests/pages/widgets.po.js
JavaScript
apache-2.0
503
// we save the canvas and the gl context globally var canvas; var gl; // program and attribute locations var shaderProgram; // attribute locations var aVertexPositionId; var aVertexNormalId; var aVertexColorId; var uNormalMatrixId; var uModelViewMatrixId; var uProjectionMatrixId; var projectionMatrix; // objects to...
wuethrich44/cg-pong
pong.js
JavaScript
apache-2.0
12,758
//// [destructuringAssignment_private.ts] class C { private x = 0; private o = [{ a: 1 }]; } let x: number; ([{ a: { x } }] = [{ a: new C() }]); ({ o: [{ a: x }]} = new C()); const nameX = "x"; ([{ a: { [nameX]: x } }] = [{ a: new C() }]); const nameO = "o"; ({ [nameO]: [{ a: x }]} = new C()); //// [dest...
weswigham/TypeScript
tests/baselines/reference/destructuringAssignment_private.js
JavaScript
apache-2.0
686
var spawn = require("child_process").spawn; var fs = require("fs"); var Path = require("path"); var async = require("async"); var rimraf = require("rimraf"); var mkdirp = require('mkdirp'); var wc; module.exports = { init: function(url, locallocation, callback) { rimraf(locallocation, function() { wc = Path.res...
yamikuronue/BusFactor
lib/hg.js
JavaScript
apache-2.0
1,921
export { default as Checkbox } from '../../components/checkbox/checkbox'; /* export { default as FileUploader } from '../../components/file-uploader/file-uploader'; export { default as FabButton } from '../../components/fab/fab'; export { default as ContentSwitcher } from '../../components/content-switcher/content-swit...
wfp/ui
src/globals/js/components.js
JavaScript
apache-2.0
2,563
'use strict' var config = require('../config') var utils = require('../utils') var ComponentManager = require('../componentManager') var flexbox = require('../flexbox') require('fixedsticky') function Component(data, nodeType) { this.data = data this.node = this.create(nodeType) this.createChildren() this.up...
sospartan/weex
src/h5-render/src/components/component.js
JavaScript
apache-2.0
8,523
'use strict'; /** * @ngdoc service * @name ubiApp.Account * @description * # Account * Factory in the ubiApp. */ angular.module('ubiApp').factory('Calendar', function ($http,serverLoc) { var svc=this; svc.cal=function(calendar){ return $http.get(serverLoc.serverUrl + '/auth/calendar/'+calendar); ...
healyma/ubidobi
ubi2/app/scripts/services/calendar.js
JavaScript
apache-2.0
607
'use strict'; var app = angular.module('testapp', ['chartjs']); app.controller('testCtrl', function ($scope) { $scope.doughnutData = [ {value: 50, color: '#333'}, {value: 100, color: '#666'} ]; $scope.doughnutOptions = { segmentStrokeWidth: 20 }; $scope.lineData = { labels : ["January","Fe...
evanx/chronic
src/chronic/web/test/chart1.js
JavaScript
apache-2.0
2,386
// @flow import React from 'react'; import { CustomSubmitDialog } from '../../../../base/dialog'; import { translate } from '../../../../base/i18n'; import { connect } from '../../../../base/redux'; import AbstractStartRecordingDialog, { mapStateToProps } from '../AbstractStartRecordingDialog'; import StartRecord...
gpolitis/jitsi-meet
react/features/recording/components/Recording/native/StartRecordingDialog.js
JavaScript
apache-2.0
2,684
$(document).ready(function () { var bodyId = "updMorerBody"; init(); //用户类别 BasePage.BindUserTypeControl("utype"); //验收状态 BasePage.BindAccepStatusControl("acceptStatus"); //维修状态 BasePage.BindMaintainStatusControl("maintainStatus"); //故障类别 FaultTypeUtil.BindFaultTypeComo...
huanxu20011572/evm
evm/src/main/webapp/js/updMaintainOrder.js
JavaScript
apache-2.0
26,397
goog.provide('tr.Chain.test'); goog.setTestOnly('tr.Chain.test'); goog.require('tr.Chain'); goog.require('tr.Closure'); goog.require('tr.Stub'); goog.require('tr.enums.State'); describe('tr.Chain', function() { var stubTaskA, stubTaskB, stubTaskC, stubTaskD, stubTaskE, stubTaskF; beforeEach(function() { stu...
wparad/task-runner
tests/tr/chain.js
JavaScript
apache-2.0
13,918
var group__CO__socketCAN__OD__storage = [ [ "CO_OD_storage.h", "CO__OD__storage_8h.html", null ], [ "CO_OD_storage_t", "structCO__OD__storage__t.html", [ [ "odAddress", "structCO__OD__storage__t.html#ac434d6480330c026761fe8a82e32839b", null ], [ "odSize", "structCO__OD__storage__t.html#aefd1cb33fa03...
CANopenNode/CANopenSocket
docs/group__CO__socketCAN__OD__storage.js
JavaScript
apache-2.0
1,447
// http://paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ window.log = function(){ log.history = log.history || []; log.history.push(arguments); if(this.console){ console.log( Array.prototype.slice.call(arguments) ); } }; $.ajaxSetup({ cache: false }); // jquery.couch.js needs some call...
iriscouch/futon_couchdb
priv/mobilefuton/js/mobile.futon.js
JavaScript
apache-2.0
21,980
/* * Copyright (c) 2009-2017. Authors: see NOTICE file. * * 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 app...
charybdeBE/Cytomine-core
web-app/application/views/ontology/OntologyView.js
JavaScript
apache-2.0
4,837
import chai from 'chai'; import {Base58} from '../../../src/utils/base58.js'; import {Utils} from '../../../src/utils/utils'; chai.expect(); const expect = chai.expect; describe("Utils: Base58 Encoding / Decoding", () => { it('should encode', () => { const data = new Array(64).fill(0); const encoded = Base...
gagarin55/waves.js
test/unit/utils/base58.spec.js
JavaScript
apache-2.0
933
/* Qookery - Declarative UI Building for Qooxdoo Copyright (c) Ergobyte Informatics S.A., www.ergobyte.gr 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/LICE...
ergobyte/qookery
qookerydemo/source/class/qookerydemo/ResultArea.js
JavaScript
apache-2.0
1,950
import React from "react"; import PropTypes from "prop-types"; import styledSystemPropTypes from "@styled-system/prop-types"; import { validProps } from "../../__internal__/utils/ether"; import tagComponent from "../../__internal__/utils/helpers/tags/tags"; import { filterStyledSystemMarginProps } from "../../style/ut...
Sage/carbon
src/components/fieldset/fieldset.component.js
JavaScript
apache-2.0
1,658
/** * @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/snanstdevtk/benchmark/benchmark.js
JavaScript
apache-2.0
2,039
/* | Copyright 2015 Esri | | 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 writi...
DVRPCfreight/cufc-evaluation
js/widgets/PopupWindow/SocialMediaSignin.js
JavaScript
apache-2.0
9,349
const { expect } = require('chai') const { getScope, mockApi } = require('../util') module.exports = (scopeType, url) => { describe('Applications', () => { let scope, api before(async () => { scope = getScope(scopeType) api = mockApi(url) }) it('should create an application', async () =...
evrythng/evrythng.js
test/integration/entity/applications.spec.js
JavaScript
apache-2.0
1,859
/** * Created by plter on 7/29/16. */ ///<reference path="../node_modules/definitively-typed/easeljs/easeljs.d.ts"/> var ucai; (function (ucai) { var Main = (function () { function Main() { var stage = new createjs.Stage("canvas"); createjs.Ticker.on("tick", function () { ...
plter/HTML5Course20160612
20160729/HelloCreatejs/src/Main.js
JavaScript
apache-2.0
1,104
'use strict'; /** * @ngdoc function * @name sbAdminApp.controller:MainCtrl * @description * # MainCtrl * Controller of the sbAdminApp */ angular.module('sbAdminApp') .controller('ChartCtrl', ['$scope', '$timeout', function ($scope, $timeout) { $scope.line = { labels: ['一月', '二月', '三月', '四月', '五月', '六月'...
scuxiayiqian/zuims-management-front
app/scripts/controllers/chartContoller.js
JavaScript
apache-2.0
1,752
/** * Copyright 2021 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 applic...
GoogleChrome/kino
src/js/pages/Downloads.js
JavaScript
apache-2.0
6,169
//>>built define("dojox/gfx/vml_attach","dojo/_base/kernel dojo/_base/lang ./_base ./matrix ./path dojo/_base/Color ./vml".split(" "),function(u,l,g,m,v,n,k){u.experimental("dojox.gfx.vml_attach");k.attachNode=function(a){if(!a)return null;var d=null;switch(a.tagName.toLowerCase()){case k.Rect.nodeType:a=d=new k.Rect(a...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/gfx/vml_attach.js
JavaScript
apache-2.0
5,217
import React from 'react' import { makeStyles } from '@material-ui/core/styles' import { Typography, Paper, Modal, IconButton, Icon } from '@material-ui/core' const useStyles = makeStyles(theme => ({ positioning: { width: '100vw', height: '100vh', display: 'flex', justifyContent: 'center', alignI...
CanopyTax/toggle-meister
tmeister/static/src/common/modal/modal.component.js
JavaScript
apache-2.0
1,483
const assert = require('assert'); const { Op } = require('sequelize'); const supertest = require('supertest'); const server = require('../../server'); const models = require('../../models'); const { username, password, name, tel, is_admin } = require('../fixtures/user').user; const { User } = models; const request = s...
bytedance/fedlearner
web_console/tests/api/logout.test.js
JavaScript
apache-2.0
1,746
var searchData= [ ['treedeletenode',['treeDeleteNode',['../balancedTreeAPI_8h.html#a9e7afb343a6e90301c677995b2cf80ff',1,'balancedTreeAPI.c']]], ['treefindmax',['treeFindMax',['../balancedTreeAPI_8h.html#ad13470266c2e2f8aaf00e108222dc5db',1,'balancedTreeAPI.c']]], ['treefindmin',['treeFindMin',['../balancedTreeAPI...
dominickhera/PosaRepo
summer/a4/docs/html/search/functions_7.js
JavaScript
apache-2.0
1,304
describe('layer-date', function() { var el; beforeAll(function(done) { if (layerUI.components['layer-conversation-panel'] && !layerUI.components['layer-conversation-panel'].classDef) layerUI.init({}); setTimeout(done, 1000); }); beforeEach(function() { if (layerUI.components['layer-conversation-pa...
layerhq/layer-ui-web
src/components/subcomponents/layer-date/test.js
JavaScript
apache-2.0
1,730
/** * @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/math/base/assert/is-probability/lib/index.js
JavaScript
apache-2.0
1,104
/* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: Apache-2.0 ABOUT THIS NODE.JS EXAMPLE: This example works with the AWS SDK for JavaScript version 3 (v3), which is available at https://github.com/aws/aws-sdk-js-v3. Purpose: transcribe_delete_job.ts demonstrates how to del...
awsdocs/aws-doc-sdk-examples
javascriptv3/example_code/transcribe/src/transcribe_delete_job.js
JavaScript
apache-2.0
1,243
// 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 un...
garrensmith/couchdb-fauxton
app/addons/documents/routes-mango.js
JavaScript
apache-2.0
4,338
// @copyright 2017-2018 adalberto.lacruz@gmail.com // eslint-disable-next-line import { MessageManager } from './message-manager.js'; // eslint-disable-next-line import { ObservableEvent } from '../types/observable-event.js'; /** * Manager for actions subscription * The controlled components define actions in their...
AdalbertoLacruz/alg-components
lib/src/base/bus-manager.js
JavaScript
apache-2.0
3,216
/** * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you...
mistercrunch/panoramix
superset-frontend/src/visualizations/TimeTable/TimeTableChartPlugin.js
JavaScript
apache-2.0
1,591
/** * @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/dsmean/lib/ndarray.js
JavaScript
apache-2.0
1,541
/** * @copyright CHECKROOM NV 2015 */ "use strict"; define(["settings", "helper", "cheqroom-core"], function(settings, helper, cr) { var run = function() { var collection = "items"; var collectionKits = "kits"; // Get a user with token $.when( ...
CHECKROOM/checkroom_core_js
tests/js/tests/keyvalueTest.js
JavaScript
apache-2.0
3,082
import React from 'react'; import util from 'util'; import { Checkbox, Dropdown, MenuItem } from 'react-bootstrap'; import AnalogComponent from './analogcomponent'; import DigitalComponent from './digitalcomponent'; import BaseWidget from './basewidget'; import { unitChoice } from '../settings/conversions'; import { ...
SignalK/instrumentpanel
lib/ui/widgets/universal.js
JavaScript
apache-2.0
8,711
// Copyright 2014 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 requir...
miyucy/oppia
extensions/widgets/interactive/LogicProof/static/js/teacher.js
JavaScript
apache-2.0
16,363
/** * Created by Sam on 2015/9/1 0001. */ (function() { "use strict"; var MongoClient = require('mongodb').MongoClient, EventEmitter = require('events').EventEmitter, moment = require('moment'); function Logger(module, url) { var url = url || "mongodb://localhost:27017/logger", ...
lizhekang/my-node
LogHelper.js
JavaScript
apache-2.0
2,413
/* * ../../../..//jax/output/SVG/fonts/STIX-Web/Variants/BoldItalic/Main.js * * Copyright (c) 2009-2018 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 * ...
GerHobbelt/MathJax
jax/output/SVG/fonts/STIX-Web/Variants/BoldItalic/Main.js
JavaScript
apache-2.0
15,981
"use strict"; var util = require('util'); var chai = require('chai'); var async = require('async'); var _ = require('lodash'); var moment = require('moment'); var refmodel = require('../refmodel'); var section = require('../../../lib/section'); var entry = require('../../../lib/entry'); var search = require('../../.....
amida-tech/blue-button-record
test/unit/fhir/test-fhir-basic.js
JavaScript
apache-2.0
17,434
var fs = require('fs'), tls = require('tls'), path = require('path'), constants = require('constants'), expect = require('chai').expect, IS_NODE = typeof window === 'undefined', server = IS_NODE && require('../../fixtures/servers/_servers'), // @note nodeVersionDiscrepancy: v12 onwards, Nod...
postmanlabs/postman-runtime
test/integration/protocol-profile-behavior/tlsProtocols.test.js
JavaScript
apache-2.0
56,789
const fs = require('fs'); const path = require('path'); const indexRoutes = [ ]; const notControllers = [ 'index.js', '.DS_Store', ]; module.exports.register = (server, options, next) => { server.route(indexRoutes); fs.readdir(__dirname, (err, files) => { if (err) return next(err); files.forEach((f...
LifoApp/lifo-server
views/index.js
JavaScript
apache-2.0
1,031
/*jslint node:true, unparam:true, nomen:true */ 'use strict'; var swaggerDocs = require('express-swagger-docs'), path = require('path'), routerFolder = path.join(__dirname, '..', '/controllers'), viewsFolder = path.join(__dirname, '..', '/views'); module.exports = function (server) { server.use(swagge...
getlackey/cms
app/app-middleware/30-swagger.js
JavaScript
apache-2.0
401
Cloud.debug = true; function LoginWindow(cb) { var self = Ti.UI.createWindow(); var usernameField = Ti.UI.createTextField({ width: '75%', hintText: 'Username', top: 10, left: 100 }); self.add(usernameField); var passwordField = Ti.UI.createTextField({ width: '75%', hintText: 'Password', passwordMask...
joshthecoder/todo_titanium_bb10
Resources/views/login_window.js
JavaScript
apache-2.0
890
'use strict'; /* ======== A Handy Little Nodeunit Reference ======== https://github.com/caolan/nodeunit Test methods: test.expect(numAssertions) test.done() Test assertions: test.ok(value, [message]) test.equal(actual, expected, [message]) test.notEqual(actual, expected, [message]) tes...
bev-a-tron/pledge_service
node_modules/grunt-preprocess/node_modules/preprocess/test/preprocess_test.js
JavaScript
apache-2.0
45,806
// test RangeNode var assert = require('assert'), approx = require('../../../tools/approx'), math = require('../../../index'), Node = require('../../../lib/expression/node/Node'), ConstantNode = require('../../../lib/expression/node/ConstantNode'), SymbolNode = require('../../../lib/expression/node/...
BigFav/mathjs
test/expression/node/RangeNode.test.js
JavaScript
apache-2.0
8,581
/** * @license * Copyright 2018 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 require...
youtube/js_mse_eme
harness/focusManager.js
JavaScript
apache-2.0
10,507
window.cls || (window.cls = {}); cls.CookieManager || (cls.CookieManager = {}); cls.CookieManager["1.0"] || (cls.CookieManager["1.0"] = {}); cls.CookieManager.CookieManagerViewBase = function() { this.createView = function(container){}; this.insert_add_cookie_row_after_objectref = function(objectref){}; this.en...
operasoftware/dragonfly
src/cookie-manager/cookie_manager_views.js
JavaScript
apache-2.0
24,477
'use strict'; var async = require('async'); var getRequiredRegistrationFields = require('./get-required-registration-fields'); /** * @private * @callback validateAccountCallback * @param {Error[]} errors - An array of Account validation errors (if there * are any). Will be null if no errors are present and the...
doormanjs/doorman
lib/express-doorman/helpers/validate-account.js
JavaScript
apache-2.0
2,475
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ /*! * Copyright 2013 Twitter, Inc. * * Licensed under the Creative Commons Attribution 3.0 Unported License. For * details, see http://creativecommons.org/licenses/by/3.0/. */ // Intended to ...
dantevaz/JSWorld
docs-assets/js/ie8-responsive-file-warning.js
JavaScript
apache-2.0
586
import React from "react"; class ClickToSelect extends React.Component { constructor() { super(); this.selectAll = this.selectAll.bind(this); } selectAll() { global.document.getSelection().selectAllChildren(this.refs.node); } render() { return ( <span onClick={this.selectAll} ref="nod...
jcloud-shengtai/dcos-ui_CN
src/js/components/ClickToSelect.js
JavaScript
apache-2.0
478
/** * Copyright 2014 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 appli...
VikramTiwari/gcloud-node
system-test/storage.js
JavaScript
apache-2.0
29,454
/** * Copyright 2021 The Google Earth Engine Community 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required...
google/earthengine-community
samples/javascript/apidocs/ee-geometry-linearring-projection.js
JavaScript
apache-2.0
1,301
// Copyright 2008 The Closure Library 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 requ...
knutwalker/google-closure-library
closure/goog/testing/loosemock.js
JavaScript
apache-2.0
8,529
var express = require('express'); var path = require('path'); var favicon = require('serve-favicon'); var logger = require('morgan'); var cookieParser = require('cookie-parser'); var bodyParser = require('body-parser'); var routes = require('./routes/index'); var users = require('./routes/users'); var db = require('....
luksdlt92/mk-admin
app.js
JavaScript
apache-2.0
1,475
exports.create = function() { var self= Ti.UI.createWindow({}); require('/modules/facebookphoto').get(function(data){ Ti.API.log(data); }); return self; }
AppWerft/360--Panorama
Resources/modules/fbphotowindow.js
JavaScript
apache-2.0
162
import apiService from './api.service' export const URL = { get: '/api/cluster/nodes' } export const fetchNodes = () => apiService.get(URL.get) export const editNode = (id, payload) => apiService.put(`${URL.get}/${id}`, payload) export const removeNode = (id) => apiService.remove(`${URL.get}/${id}`)
OpenWiseSolutions/openhub-framework
admin-console/src/services/nodes.service.js
JavaScript
apache-2.0
305
/*!@license * Infragistics.Web.ClientUI common utilities localization resources 13.1.20131.1012 * * Copyright (c) 2011-2013 Infragistics Inc. * * http://www.infragistics.com/ * */ $.ig = $.ig || {}; if (!$.ig.util) { $.ig.util = {}; $.extend($.ig.util, { locale: { unsupportedBrowser: "El explorador actual n...
mikeleishen/bacosys
frame/frame-web/src/main/webapp/script/ig/modules/i18n/infragistics.util-es.js
JavaScript
apache-2.0
947
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @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 */ const rxjs_1 = require("rxjs"); const op...
cloudfoundry-community/asp.net5-buildpack
fixtures/node_apps/angular_dotnet/ClientApp/node_modules/@angular-devkit/core/src/virtual-fs/host/safe.js
JavaScript
apache-2.0
1,482
'use strict'; var myapp; myapp.service('Session', function () { this.create = function (data) { this.id = data.id; this.login = data.login; this.firstName = data.firstName; this.lastName = data.lastName; this.email = data.email; this.userRoles = []; angular.fo...
williamkouwonou/biblitheque-y1
admin-ui/src/main/resources/static/appjs/services.js
JavaScript
apache-2.0
2,620
/** * @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/srange/benchmark/benchmark.native.js
JavaScript
apache-2.0
2,179
exports.exec = function(conditions,picker_title,event_obj){ var rowView = Ti.UI.createView({ height:40 }); rowView.addEventListener('click', function(e){ // PopOverの作成 var popTableView = Ti.UI.createTableView({ data : [ {title: L('search_map_shinjuku'),value:1...
KeiichiHonma/appTsa
Resources/include/ui/parts/region_popover.js
JavaScript
apache-2.0
1,384
var mongodb = require('mongodb'); var Db = mongodb.Db; var Connection = mongodb.Connection; var Server = mongodb.Server; var BSON = mongodb.BSONPure; var ObjectID = mongodb.ObjectID; var assert = require('assert'); SetupProvider = function (host, port) { var provider = this; var connectionString = process.env...
alonl/bestmatch-server
setupprovider.js
JavaScript
apache-2.0
4,078
ace.define("ace/mode/csound_preprocessor_highlight_rules",[], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var CsoundPreprocessorHighlightRules = function(embeddedRulePrefix) { this.embeddedRule...
SAP/openui5
src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/mode-csound_score.js
JavaScript
apache-2.0
14,149
/* Copyright 2016 IBM Corporation 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...
ibm-wch/wchtools-cli
authoring-api/lib/renditionsREST.js
JavaScript
apache-2.0
2,552
exports.create = function(_media) { var type = _media.enclosure.type.split('/')[0]; console.log(type); if (type === 'audio') return { view : null, type : type }; var self = Ti.UI.createView({ width : Ti.UI.FILL, height : Ti.UI.FILL }); self.url = _media.enclosure.url; self.container = Ti.UI.createS...
AppWerft/PodCampus
Resources/modules/latest_view.js
JavaScript
apache-2.0
2,407
/* * Copyright 2015 IBM Corp. * * 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...
EclairJS/eclairjs-node
examples/ml/bucketizer.js
JavaScript
apache-2.0
2,074
'use strict'; /** * Requirements * @ignore */ const Filter = require('./Filter.js').Filter; /** * @memberOf nunjucks.filter */ class ModuleClassesFilter extends Filter { /** * @inheritDoc */ constructor() { super(); this._name = 'moduleClasses'; } /** * @inhe...
entoj/entoj-system
source/nunjucks/filter/ModuleClassesFilter.js
JavaScript
apache-2.0
1,241
// Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved. // See License.txt for license information. import {connect} from 'react-redux'; import {bindActionCreators} from 'redux'; import {getIncomingHook, updateIncomingHook} from 'mattermost-redux/actions/integrations'; import EditIncomingWebhook from './...
rickbatka/mattermost-webapp
components/integrations/components/edit_incoming_webhook/index.js
JavaScript
apache-2.0
912
/* * Sub class that adds a check box in front of the tree item icon * * Created by Erik Arvidsson (http://webfx.eae.net/contact.html#erik) * * Disclaimer: This is not any official WebFX component. It was created due to * demand and is just a quick and dirty implementation. If you are * interested i...
wangzijian777/contentManager
content/webapp/e3/tree/xtree/checkboxTreeItem.js
JavaScript
apache-2.0
12,586
/** * @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/base/binomial/lib/binomial.js
JavaScript
apache-2.0
1,267
var winRegister = function(param){ var self = Ti.UI.createWindow({ backgroundColor:'#fff', barImage:"images/top_logo.png", fullscreen:false }); var TopBarView = require("publicUI/TopBarView"); var t = new TopBarView(); self.add(t); t.addBackButton(function(e){ Ti.Facebook.removeEventListener("login",l...
ddssssdd/Photoshare
Resources/ui/winRegister.js
JavaScript
apache-2.0
8,897
/* * @Author: liupuyan * @Date: 2017-01-06 09:04:01 * @Last Modified by: liupuyan * @Last Modified time: 2017-01-06 10:11:36 */ 'use strict'; function Rect(option) { this._init(option); } Rect.prototype = { _init: function(option) { this.x = option.x || 0; this.y = option.y || 0; this.h = option.x || 0; ...
puyanLiu/LPYFramework
前端练习/10canvas/js/19rect.js
JavaScript
apache-2.0
1,175
const getElementById = require('../../_common/common_functions').getElementById; const BinarySocket = require('../base/socket'); const Client = require('../base/client'); const State = require('../../_common/storage').State; const ClosePopup = (() => { let el_gaming_popup, el_accept_btn; const onLoad = () => ...
binary-com/binary-static
src/javascript/app/common/game_close_popup.js
JavaScript
apache-2.0
2,676
//// [derivedClassTransitivity.js] // subclassing is not transitive when you can remove required parameters and add optional parameters var __extends = this.__extends || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } __.prototype = b.pro...
fdecampredon/jsx-typescript-old-version
tests/baselines/reference/derivedClassTransitivity.js
JavaScript
apache-2.0
944
var GTW = window.GTW || {}; GTW.init_marker = function(env) { // geometry // textures // programs var coords = [ 0, 0, 1, 0, 0, 1, 1, 1 ]; var buffers = { verts: webgl.makeVertexBuffer(new Float32Array(coords)) }; var textures = { pin_sharp: webgl.loadTexture2D(GTW.resource_...
travis-zhang/codeving
temp/cybermap_20161207/assets/map/scripts/marker.js
JavaScript
apache-2.0
2,746
/** * AnalyticsNotice component tests. * * Site Kit by Google, Copyright 2021 Google LLC * * 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 * * https://www.apache.org/licenses/LICEN...
google/site-kit-wp
assets/js/modules/optimize/components/common/AnalyticsNotice.test.js
JavaScript
apache-2.0
2,782
import React from 'react'; import { shallow, mount } from 'enzyme'; import { expect } from 'chai'; import About from '../../src/components/About' describe('<About />', () => { it('renders a <div>', () => { const wrapper = shallow(<About />); expect(wrapper.find('div')).to.have.length(1); }); });
unicredit/react-boilerplate
test/components/AboutTest.js
JavaScript
apache-2.0
313
/** * @license * Copyright 2012 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 requir...
shepheb/foam
core/visitor.js
JavaScript
apache-2.0
2,655
var SplashController = /** @class */ (function () { function SplashController(addSplashWindowModel) { this._addSplashWindowModel = addSplashWindowModel; } // Insert the info button in the cesium navigation help popup (the question mark button) SplashController.prototype.insertSplashInfoHelp = fu...
3dcitydb/3dcitydb-web-map
3dwebclient/utils/SplashController.js
JavaScript
apache-2.0
14,337
var DetailsTaskModel = function () { /* Observerables */ var self = this; self.taskId = localStorage.getItem('taskId'); self.taskDetails = ko.observable({'task_id': '', 'title': ''}); self.taskComments = ko.observableArray(); self.taskSubtasks = ko.observableArray(); self.taskSubtasks.extend...
tabeth/wundergear
js/tasks/details.js
JavaScript
apache-2.0
5,167
define(["jquery"], function($) { $(document).bind("plespace", function(event) { updateWidgets(event.spaceResource.getURI(), event.widgets); updateMemberOfSpace(event.spaceResource, event.memberOfSpace); }); var updateMemberOfSpace = function(spaceResource, memberOfSpace) { if (memberOfSpace) { var addWidget...
rwth-acis/ROLE-SDK
services/roleUUPrototype/src/main/webapp/ui/javascript/widgets.js
JavaScript
apache-2.0
3,122
define("arale/calendar/1.0.0/i18n/fr-debug", [], { Su: "Di", Mo: "Lu", Tu: "Ma", We: "Me", Th: "Je", Fr: "Ve", Sa: "Sa", Jan: "janv.", Feb: "févr.", Mar: "mars", Apr: "avr.", May: "mai", Jun: "juin", Jul: "juil.", Aug: "août", Sep: "sept.", Oct: "oct."...
fuxiaoling/gulp
src/static/libs/cmd/arale/calendar/1.0.0/i18n/fr-debug.js
JavaScript
apache-2.0
362
/* jshint globalstrict:true, strict:true, maxlen: 5000 */ /* global assertEqual, assertTrue, assertFalse, assertFail */ // ////////////////////////////////////////////////////////////////////////////// // / @brief tests for user access rights // / // / @file // / // / DISCLAIMER // / // / Copyright 2018 ArangoDB GmbH,...
fceller/arangodb
tests/js/client/authentication/user-access-right-task-update-view-arangosearch.js
JavaScript
apache-2.0
19,246