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
/** * Created by scott on 2/25/2017. */ var IsNullOrBlank = function(str){ if(str == null || str == ""){ return true; } try{ if(str.trim() == ""){ return true; } }catch(err){} return false; }; $( document ).ready(function() { toastr.options = { "clo...
scottcl88/CarManagerSite
script/edit_repair.js
JavaScript
gpl-3.0
7,711
// Given an unsorted array of integers, find the length of the longest consecutive elements sequence. // Your algorithm should run in O(n) complexity. // Example: // Input: [100, 4, 200, 1, 3, 2] // Output: 4 // Explanation: The longest consecutive elements sequence is [1, 2, 3, 4]. Therefore its length is 4. /** ...
whelan957/leetcode
javascript/Search/leetcode128_LongestConsecutiveSequence.js
JavaScript
gpl-3.0
1,306
angular.module('starter.popupdialogs', []) /* * Costumized PopUpDIalogs */ .factory('PopupDialogs', function($log, $ionicPopup, $translate, $rootScope, ApiService, AppContext) { // local def --> on service is called --> showIonicAlertWith18nText var methodShowIonicAlertWith18nText = function(i18nKeyTitle, ...
rootzoll/konfetti-app
www/js/service-popupdialogs.js
JavaScript
gpl-3.0
20,824
define( "ace/mode/csp", ["require", "exports", "module", "ace/lib/oop", "ace/mode/text", "ace/tokenizer", "ace/mode/csp_highlighter", "ace/mode/matching_brace_outdent", "ace/mode/folding/csp_style"], function (require, exports, module) { "use strict"; var oop = require("../lib/oop"); ...
pressgang-ccms/PressGangCCMSUI
src/main/webapp/javascript/ace/mode-csp.js
JavaScript
gpl-3.0
18,677
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'about', 'hr', { copy: 'Copyright © $1. All rights reserved.', dlgTitle: 'O CKEditoru', help: 'Provjeri $1 za pomoć.', moreInfo: 'Za inform...
tsmaryka/hitc
public/javascripts/ckeditor/plugins/about/lang/hr.js
JavaScript
gpl-3.0
443
/* * RESTx: Sane, simple and effective data publishing and integration. * * Copyright (C) 2010 MuleSoft Inc. http://www.mulesoft.com * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by *...
jbrendel/RESTx
static_files/restx/scripts/restx_js_client_example.js
JavaScript
gpl-3.0
20,421
{ if(window['c']===void 0)window['c']=Object.create(null); function isset(o){return void 0!==o;} window['Scope']=function(scope){ var self = Object.create(null); self.vars=isset(scope) ? scope.vars : new Array();//another ternary operator FOR THE WIN self['getVar']=function(varname){ if(isset(self.vars[varn...
mailmindlin/teach-oop
emulator.js
JavaScript
gpl-3.0
2,412
var {ipcRenderer} = require('electron'), fs = require('fs-extra'), path = require('path'); var ipcWrapper = {}, emulators_list = [], games_folder_list = []; /* window.alert = function(message, title) { console.log(message, title); } alert('test', 'title test') */ ipcWrapper.ipc = ipcRenderer; ipcWrap...
RedDuckss/CemUI
app/wrapper/js/main.js
JavaScript
gpl-3.0
35,674
import { curryN } from "ramda"; const GLOBAL_GROUP = "__global_roles__"; /** * @name hasPermission * @method * @memberof Accounts * @param {Object} user - The user object, with `roles` property, to check. * @param {String[]} permissions - Array of permission strings. The account must have at least one of them ei...
anthonybrown/reaction
imports/plugins/core/accounts/server/no-meteor/hasPermission.js
JavaScript
gpl-3.0
1,798
"use strict"; module.exports = function (db, module) { var helpers = module.helpers.mongo; module.setObject = function (key, data, callback) { callback = callback || helpers.noop; if (!key) { return callback(); } db.collection('objects').update({_key: key}, {$set: data}, {upsert: true, w: 1}, function (...
hgGeorg/NodeBB
src/database/mongo/hash.js
JavaScript
gpl-3.0
5,858
define( 'Core/SpriteSheet', ['Core', 'underscore', ], function (Core, _) { "use strict"; function SpriteSheet(data) { this.framerate = data.framerate || 0; this.imageUris = data.imageUris || []; this.images = data.images || []; this.frames = data.frames || []; //FIXME: these are not frames as in easle whi...
Delvar/html5game
source/Core/SpriteSheet.js
JavaScript
gpl-3.0
476
Slides = new Meteor.Collection('slides'); SlideElements = new Meteor.Collection('slideElements'); Meteor.methods({ /** * Adds a slide to an existing slideshow * * @param id : the slide's id * @param slideshowId : the destination slideshow's id * @return : */ addSlideshow: functi...
ExpoTeam/expo
src/collections/slides.js
JavaScript
gpl-3.0
4,393
/*! Copyright (c) 2011 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * Thanks to: Seamus Leahy for adding deltaX and delta...
NIF-au/TissueStack
src/web/js/TissueStack.MouseWheel.js
JavaScript
gpl-3.0
3,782
var imagePath = "/images"; if (document.images) { lownav1on = new Image(); lownav1on.src = imagePath+"/navbar/tairdb_y.gif"; lownav2on = new Image(); lownav2on.src = imagePath+"/navbar/tools_y.gif"; lownav3on = new Image(); lownav3on.src = imagePath+"/navbar/info_y.gif"; lownav4on = new Image(); low...
tair/tairweb
js/navbar_cereon.js
JavaScript
gpl-3.0
1,449
angular.module('app') .controller('ScoreController', function($scope, ScoreCounterSvc, TeamSettingsSvc, GraphicsSvc) { $scope.data = {}; $scope.teamData = {}; ScoreCounterSvc.updateData(); ScoreCounterSvc.getUpdates(function (data) { $scope.data = data; $scop...
xtv-online/football-graphics
graphics-control/client/js/controllers/ScoreController.js
JavaScript
gpl-3.0
1,506
var searchData= [ ['root_5fuserid',['ROOT_USERID',['../classLinuxUserId.html#a7a229d8237521d4c0a8034cea9554273',1,'LinuxUserId']]] ];
tailored/qiptables
html/search/variables_72.js
JavaScript
gpl-3.0
136
angular.module('storyApp.storage') .factory('Storage', ['EventHandler', function(EventHandler) { return function Storage(engine, namespace) { this.engine = engine; this.namespace = namespace; this.events = EventHandler.create('set', 'get', 'delete', 'error'); this.on = function(events, callback) { this.eve...
choosatron/choosatron-write
source/app/storage/storage.factory.js
JavaScript
gpl-3.0
2,215
'use strict'; angular.module('docScrypt.version.version-directive', []) .directive('appVersion', ['version', function(version) { return function(scope, elm, attrs) { elm.text(version); }; }]);
devlimelabs/docScrypt
app/components/version/version-directive.js
JavaScript
gpl-3.0
203
jQuery(document).ready(function($) { function fill_table(data) { $('#submissions_body').html('') ; var $bgcolor = 0 ; $.each(data,function(key,val){ $('#submissions_body').append('<tr class="color'+$bgcolor+'">'+ '<td>'+val.id+'</td>'+ '<td>'+val.problem+'</td>'+ '<td>'+val.user+'</td>'+ '<td>N/A</td>...
UVaOJ/WordPress-Plugin-OnlineJudge
onlinejudge/public/js/submissions.js
JavaScript
gpl-3.0
832
window.App = window.App || {}; window.App.Loader = { loaderEl: document.getElementById('loader'), page: document.querySelector('html'), init() { this.loaderEl.classList.add('fade-in'); }, destroy() { this.loaderEl.classList.remove('fade-in'); }, displayPage() { th...
superKalo/crypto-currency-chrome-extension
src/js/loader.js
JavaScript
gpl-3.0
363
/** * SQL Editor view for the application. View allow define and evaluate user custom sql. */ Ext.define('JavaDbAdmin.view.sqlEditor.SqlEditor', { extend: 'Ext.form.Panel', xtype: 'sqlEditor', controller: 'sqlEditor', layout: 'fit', items: [{ xtype: 'textareafield', emptyText: 'I...
AbramsCze/javaDbAdmin
ext/classic/src/view/sqlEditor/SqlEditor.js
JavaScript
gpl-3.0
626
dojo.provide("dojox.validate._base"); dojo.require("dojo.regexp"); // dojo core expressions dojo.require("dojox.validate.regexp"); // additional expressions dojox.validate.isText = function(/*String*/value, /*Object?*/flags){ // summary: // Checks if a string has non whitespace characters. // Parameters allow y...
NESCent/plhdb
WebRoot/js/dojox/validate/_base.js
JavaScript
gpl-3.0
7,170
// Karma configuration module.exports = function (config) { config.set({ // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '.', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['jasmine', 'chai-as-pro...
eciis/web
feature-toggles/test/karma.conf.js
JavaScript
gpl-3.0
2,647
import mongoose from 'mongoose'; /* This is not directly used but it is imported so that the models it contains are declared */ import User from './user'; var Schema = mongoose.Schema; // Define and export User's schema and model var post_schema = new Schema({ publisher: { type: Schema.Types.ObjectId, ref: 'Use...
marioguerriero/opengram
server/models/post.js
JavaScript
gpl-3.0
566
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (factory((global.d3 = global.d3 || {}))); }(this, function (exports) { 'use strict'; var version = "0.2.1"; var thirdPi ...
zenvisage/zenvisage
src/main/webapp/js/lib/d3-hexbin.js
JavaScript
gpl-3.0
3,317
function run_test() { if (!("@mozilla.org/toolkit/crash-reporter;1" in Components.classes)) { dump("INFO | test_crash_oom.js | Can't test crashreporter in a non-libxul build.\n"); return; } do_crash( function() { crashType = CrashTestUtils.CRASH_OOM; crashReporter.annotateCrashReport("Tes...
Yukarumya/Yukarum-Redfoxes
toolkit/crashreporter/test/unit/test_oom_annotation_windows.js
JavaScript
mpl-2.0
933
import React from 'react' import { storiesOf } from '@storybook/react' import { action } from '@storybook/addon-actions' import Input from './Input' storiesOf('Input', module).add('default', () => ( <Input label="label" placeholder="bonsoir" value="" onChange={action('onChange')} required /> ))
Mojja/Gojji
src/components/Input/Input.stories.js
JavaScript
mpl-2.0
300
import React from 'react'; import { Simulate, renderIntoDocument } from 'react-addons-test-utils'; import { findDOMNode } from 'react-dom'; import { loadEntities } from 'core/actions'; import { GLOBAL_EVENTS, EXTENSION_TYPE, INSTALL_STATE, } from 'core/constants'; import * as InfoDialog from 'core/containers/Inf...
jasonthomas/addons-frontend
tests/client/disco/containers/TestDiscoPane.js
JavaScript
mpl-2.0
5,946
// Karma configuration file, see link for more information // https://karma-runner.github.io/0.13/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular/cli'], plugins: [ require('karma-jasmine'), require('karma-chrome-...
Kirtaner/Taimaponics
karma.conf.js
JavaScript
mpl-2.0
1,569
const defaults = require("../../defaults"); const points = require("../../outputs/points")(defaults.dimensions); const dimensions = require("../../outputs/figures/dimensions")( defaults, points ); it.skip("generates points with keys to indicate positions.", () => { // T // TL TR // BL BR const wren ...
wikihouseproject/buildx-editor
src/lib/wren/__tests__/outputs/points.js
JavaScript
mpl-2.0
651
/* global describe, it, before, after, afterEach */ const mockery = require('mockery') const sinon = require('sinon') const Immutable = require('immutable') const assert = require('assert') const appConstants = require('../../../../../js/constants/appConstants') require('../../../braveUnit') describe('urlBarSuggestio...
timborden/browser-laptop
test/unit/app/browser/reducers/urlBarSuggestionsReducerTest.js
JavaScript
mpl-2.0
3,621
/* 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/. */ "use strict"; // Skipping due to window creation being unsupported in Fennec module.metadata = { engines: { ...
Yukarumya/Yukarum-Redfoxes
addon-sdk/source/test/test-content-sync-worker.js
JavaScript
mpl-2.0
32,380
/*! * Copyright 2002 - 2015 Webdetails, a Pentaho company. All rights reserved. * * This software was developed by Webdetails and is provided under the terms * of the Mozilla Public License, Version 2.0, or any later version. You may not use * this file except in compliance with the license. If you need a copy of ...
scottyaslan/cdf
cdf-core/cdf/js-modules/dashboard/Dashboard.notifications.js
JavaScript
mpl-2.0
6,809
// DO NOT EDIT! This test has been generated by /offscreen-canvas/tools/gentest.py. // OffscreenCanvas test in a worker:2d.drawImage.9arg.destsize // Description: // Note: importScripts("/resources/testharness.js"); importScripts("/2dcontext/resources/canvas-tests.js"); var t = async_test(""); var t_pass = t.done.bin...
UK992/servo
tests/wpt/web-platform-tests/offscreen-canvas/drawing-images-to-the-canvas/2d.drawImage.9arg.destsize.worker.js
JavaScript
mpl-2.0
2,033
import React from "react" import { makeFroth } from "../../../../../utils" import CardCaption from "./CardCaption" import Placeholder from "../../../vignettes/Picture/components/Placeholder" export default props => { return ( <figure onClick={event => event.stopPropagation()} style={{ marginBottom: ...
dmitrizzle/Analog.Cafe
src/app/core/components/controls/Card/components/CardFigure.js
JavaScript
mpl-2.0
741
var load = require( '../dist/load.min.js' ); var test = require( 'tape' ); test( "should allow when with label", function(t) { t.plan( 1 ); load( { "label": "./js/when-label.js" } ); load.when( "label", function() { t.pass( "when called for label" ); } ); } ); test( "should allow when with filen...
nexussays/load.js
test/when.js
JavaScript
mpl-2.0
1,377
initSidebarItems({"fn":[["clock_gettime",""]]});
susaing/doc.servo.org
clock_ticks/imp/sidebar-items.js
JavaScript
mpl-2.0
48
(function (Pirkle) { Pirkle.Dom = { eventHandlerCache: {}, removeNodes: function (el) { while (el.firstChild) { el.removeChild(el.firstChild); } }, bindOne: function (node, eventName, handler, capture) { if (!node || !eventName || !handler) { return false; } ...
Asuza/pirkle-js
classes/Dom.js
JavaScript
mpl-2.0
1,376
/* 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/. */ define([ 'intern', 'intern!object', 'intern/chai!assert', 'require', 'intern/node_modules/dojo/node!xmlh...
jpetto/fxa-content-server
tests/functional/sync_reset_password.js
JavaScript
mpl-2.0
8,452
#!/usr/bin/env node var program = require('commander') , getAWS = require('./libs/getAWS') , consts = require('./libs/consts') , debug = require("debug") , d = { status: debug("status") }; program .version('0.0.1') .option('-r, --region <region>', 'AWS region', String, 'us-east-1')...
mostlygeek/learn-simpleworkflow
startNewExecution.sh.js
JavaScript
mpl-2.0
1,110
import { HmisClient } from '/imports/api/hmisApi'; import { logger } from '/imports/utils/logger'; // import Questions from '/imports/api/questions/questions'; Meteor.publish('tags.all', function publishAllTags() { logger.info(`PUB[${this.userId}]: tags.all`); let stopFunction = false; this.unblock(); this.on...
ctagroup/home-app
imports/api/tags/server/publications.js
JavaScript
mpl-2.0
3,068
/* 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/. */ define([ 'intern', 'intern!object', 'intern/chai!assert', 'require', 'intern/node_modules/dojo/node!xmlh...
jrgm/fxa-content-server
tests/functional/sign_up.js
JavaScript
mpl-2.0
11,998
/*! * Copyright 2002 - 2019 Webdetails, a Hitachi Vantara company. All rights reserved. * * This software was developed by Webdetails and is provided under the terms * of the Mozilla Public License, Version 2.0, or any later version. You may not use * this file except in compliance with the license. If you need a ...
webdetails/cdf
pentaho-js/src/main/javascript/cdf-legacy/components/Pentaho.Analyzer.js
JavaScript
mpl-2.0
5,166
/* 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/. */ "use strict"; const { Cu } = require("chrome"); const { DebuggerServer } = require("devtools/server/main"); const...
gabrielmassaki/Firefox
tracer.js
JavaScript
mpl-2.0
19,429
import { run } from '@ember/runloop'; import { find, render, triggerKeyEvent } from '@ember/test-helpers'; import { module, test } from 'qunit'; import { setupRenderingTest } from 'ember-qunit'; import hbs from 'htmlbars-inline-precompile'; import { componentA11yAudit } from 'nomad-ui/tests/helpers/a11y-audit'; import ...
hashicorp/nomad
ui/tests/integration/components/streaming-file-test.js
JavaScript
mpl-2.0
4,642
/* * This program is part of the OpenLMIS logistics management information system platform software. * Copyright © 2017 VillageReach * * This program 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, e...
OpenLMIS/openlmis-stockmanagement-ui
src/stock-adjustment-creation/adjustment-creation.module.js
JavaScript
agpl-3.0
1,349
import { TYPE } from "metabase/lib/types"; export const field_special_types = [{ 'id': TYPE.PK, 'name': 'Entity Key', 'section': 'Overall Row', 'description': 'The primary key for this table.' }, { 'id': TYPE.Name, 'name': 'Entity Name', 'section': 'Overall Row', 'description': 'The "na...
ArminMa/metabaseElectronExecutable
frontend/src/metabase/lib/core.js
JavaScript
agpl-3.0
2,522
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt frappe.provide("erpnext"); frappe.provide("erpnext.utils"); $.extend(erpnext, { get_currency: function(company) { if(!company && cur_frm) company = cur_frm.doc.company; if(company) ...
gsnbng/erpnext
erpnext/public/js/utils.js
JavaScript
agpl-3.0
19,350
$(function(){ $(window).scroll(function(){ if ($(this).scrollTop() > 200) { $('.navbar-inverse').fadeIn(500); } else { $('.navbar-inverse').fadeOut(500); } }); $('#video-container').click(function(){ $('#video-container').html('<iframe width="750" heig...
EFForg/ngw-website
docs/js/main.js
JavaScript
agpl-3.0
4,489
// Copyright © Team Janitor. All rights reserved. // The following code is covered by the AGPL-3.0 license. function expandPost (hash) { // If hash is an empty string then select first blog const blogId = hash.slice(1) || document.querySelector('.article-wrapper h1').id; document.getElementById(blogId + '-cb').c...
JanitorTechnology/janitor
static/js/blog.js
JavaScript
agpl-3.0
662
import test from 'ava' ; import { parse } from '../../../src' ; test( 'parse' , t => { t.throws( parse.bind( null , 16 , 16 , '!00b0C0def' ) , { message: /invalid/ } ) ; t.throws( parse.bind( null , 37 , 37 , '!' ) , { message: /not implemented/ } ) ; t.deepEqual( parse( 2 , 2 , '0' ) , [ 0 ] ) ; t.deepEqual( pa...
aureooms/js-integer-little-endian
test/src/1-new/parse.js
JavaScript
agpl-3.0
1,859
/** * AngularJS image map editor * * @author Hein Bekker <hein@netbek.co.za> * @copyright (c) 2015 Hein Bekker * @license http://www.gnu.org/licenses/agpl-3.0.txt AGPLv3 */ (function (window, angular, undefined) { 'use strict'; angular .module('nb.pictureMapEditor', [ 'dialogService', 'ngDragDrop', ...
netbek/nb-picture-map-editor
src/js/nb-picture-map-editor.module.js
JavaScript
agpl-3.0
433
/* * 2112008.js: Zakum Party Quest Rock - drops an item (elixir) */ "use strict"; function act() { rm.dropItems(); }
NoetherEmmy/intransigentms-scripts
reactor/2112008.js
JavaScript
agpl-3.0
125
(function() { Ext.define('CMDBuild.controller.administration.tasks.common.workflowForm.CMWorkflowFormController', { comboField: undefined, gridField: undefined, /** * Gatherer function to catch events * * @param (String) name * @param (Object) param * @param (Function) callback */ cmOn: fu...
jzinedine/CMDBuild
cmdbuild/src/main/webapp/javascripts/cmdbuild/controller/administration/tasks/common/workflowForm/CMWorkflowFormController.js
JavaScript
agpl-3.0
2,706
'use strict'; var assert = require('assert'); var crypto = require('..'); describe('sha512', function() { it('truism.hex', function() { assert.equal( crypto.sha512('').hex(), 'cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce' + '47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927d...
cyphrd/crypto
test/sha512.unittests.js
JavaScript
agpl-3.0
2,462
// Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt cur_frm.add_fetch('employee','employee_name','employee_name'); cur_frm.add_fetch('employee','company','company'); frappe.ui.form.on("Leave Application", { onload: function(frm) { if (!fr...
indictranstech/trufil-erpnext
erpnext/hr/doctype/leave_application/leave_application.js
JavaScript
agpl-3.0
2,978
angular.module('process', ['ngResource', 'ui.bootstrap', 'ngTable', 'angular.filter']) .constant('NEW_PROCESS_DEFAULT_WHITELIST', [ "bpm_workflowDescription", "bpm_workflowDueDate", "bpm_workflowPriority", // "bpm_sendEMailNotifications", // "bpm_percentComplete", "bpm_comment", // "bpm_status",...
MakeITBologna/zefiro
zefiro/src/main/webapp/js/app/process.js
JavaScript
agpl-3.0
17,208
/* * * (c) Copyright Ascensio System SIA 2010-2019 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL it...
ONLYOFFICE/web-apps
apps/presentationeditor/main/app/model/EquationGroup.js
JavaScript
agpl-3.0
2,447
/** * XBlockContainerPage is used to display Studio's container page for an xblock which has children. * This page allows the user to understand and manipulate the xblock and its children. */ define(["jquery", "underscore", "gettext", "js/views/pages/base_page", "js/views/utils/view_utils", "js/views/contain...
xiandiancloud/edx-platform
cms/static/js/views/pages/container.js
JavaScript
agpl-3.0
14,071
(function () { 'use strict'; angular .module('messages.services') .factory('MessagesService', MessagesService); MessagesService.$inject = ['$resource']; function MessagesService($resource) { var Message = $resource('/api/messages/:messageId', { messageId: '@_id' }, { update: { ...
trendzetter/VegetableGardenPlanner
modules/messages/client/services/messages.client.service.js
JavaScript
agpl-3.0
1,173
/* * SjclService unit tests * * Tests if SjclService.codec.utf8String.toBits() and * SjclService.codec.codec.utf8String.fromBits() work properly */ /* jshint ignore:start */ describe("SjclService tests", function () { beforeEach(module("avCrypto")); beforeEach(inject(function (_SjclService_) { sjcl = _S...
agoravoting/agora-core-view
crypto/sjcl-service-spec.js
JavaScript
agpl-3.0
570
OC.L10N.register( "lib", { "Cannot write into \"config\" directory!" : "Impossible d’escriure dins lo repertòri « config » !", "This can usually be fixed by giving the webserver write access to the config directory" : "Aqueste problèma es generalament resolgut en donant al servidor web un accès en escri...
sakukode/owncloud-custom
lib/l10n/oc.js
JavaScript
agpl-3.0
18,818
/** * Copyright (c) 2012, Martin Borho. * Licensed under the Affero General Public License version 3 or later. * See LICENSE for details. */ var Mainline = function(data, combined) { this.docs = data.docs; this.rendered = data.html; this.combined = combined; this.expanded = true; this.co...
mborho/silozippr
lib/static/js/mainline.js
JavaScript
agpl-3.0
4,327
/** * Copyright (C) 2019-2020 The Software Heritage developers * See the AUTHORS file at the top-level directory of this distribution * License: GNU Affero General Public License version 3, or any later version * See top-level LICENSE file for more information */ import 'script-loader!notebookjs'; import AnsiUp ...
SoftwareHeritage/swh-web-ui
assets/src/bundles/webapp/notebook-rendering.js
JavaScript
agpl-3.0
4,069
OC.L10N.register( "settings", { "Wrong password" : "Nepareiza parole", "Saved" : "Saglabāts", "No user supplied" : "Nav norādīts lietotājs", "Unable to change password" : "Nav iespējams nomainīt paroli", "Authentication error" : "Autentifikācijas kļūda", "Wrong admin recovery password. P...
pixelipo/server
settings/l10n/lv.js
JavaScript
agpl-3.0
18,059
'use strict'; /** * Holds the browsers' pilot singleton. * * @module manage/browsersPilotManager */ var BrowserPilot = process.requireManage('app/server/BrowserPilot.js'); /** * The browsers' pilot. * * @type {BrowserPilot} * @private */ var pilot = null; /** * Sets the browsers' pilot singleton. * * @m...
veo-labs/openveo-manage
app/server/browsersPilotManager.js
JavaScript
agpl-3.0
904
// // Copyright (c) 2016 by VACmatch // // This program 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, either version 3 of the // License, or (at your option) any later version. // // This program is...
vacmatch/vacmatch-mobile
src/app/models/web/sport/Sport.js
JavaScript
agpl-3.0
962
import React from "react"; import { connect } from "react-redux"; import "react-select/dist/react-select.css"; import "react-virtualized-select/styles.css"; import Select from "react-virtualized-select"; import { debounce } from 'lodash'; import { controlsWidth, isValueValid, strainSymbol, genotypeSymbol} from "../../u...
nextstrain/auspice
src/components/controls/filter.js
JavaScript
agpl-3.0
10,089
// Copyright 2015 by Paulo Augusto Peccin. See license.txt distributed with this file. // General, immutable info about host Touch Buttons jt.TouchControls = { buttons: [ "T_B", "T_A" ] // Specific order for vertical in-line placement on the screen };
ppeccin/javatari.js
src/main/room/controls/TouchControls.js
JavaScript
agpl-3.0
266
/** * Handle every Socket linked to the Room. */ class SocketRoom { /** * Save the Socket instance. * @param {Socket} socket - The instance of Socket. * @constructor */ constructor(socket) { this._socket = socket; } /** * Join a room to start the game. * @param {String} tokenPlayer - The token of t...
landswar/game
public/src/websockets/SocketRoom.js
JavaScript
agpl-3.0
598
import ITEMS from 'common/ITEMS'; import SPELLS from 'common/SPELLS'; import Module from 'Parser/Core/Module'; import Combatants from 'Parser/Core/Modules/Combatants'; import isAtonement from '../Core/isAtonement'; import AtonementSource from '../Features/AtonementSource'; const debug = true; class MarchOfTheLegion...
mwwscott0/WoWAnalyzer
src/Parser/DisciplinePriest/Modules/Items/MarchOfTheLegion.js
JavaScript
agpl-3.0
1,230
var clover = new Object(); // JSON: {classes : [{name, id, sl, el, methods : [{sl, el}, ...]}, ...]} clover.pageData = {"classes":[{"el":108,"id":79936,"methods":[{"el":42,"sc":2,"sl":40},{"el":82,"sc":2,"sl":47},{"el":86,"sc":2,"sl":84},{"el":90,"sc":2,"sl":88},{"el":96,"sc":2,"sl":92},{"el":107,"sc":2,"sl":98}],"na...
cm-is-dog/rapidminer-studio-core
report/html/com/rapidminer/gui/look/painters/AbstractCachedPainter.js
JavaScript
agpl-3.0
1,001
'use strict'; const db = requireDb(); let removeInvitation = function (userId, contactId) { return db.cypher().match('(u:User {userId: {userId}})<-[invitedRel:HAS_INVITED]-(u2:User {userId: {contactId}})') .delete('invitedRel') .end({userId, contactId}); }; let blockOtherUser = async function (us...
Elyoos/Elyoos
dumondaMe/api/models/user/otherUser/block.js
JavaScript
agpl-3.0
1,053
function ($scope) { var fc = $scope.fieldCustomizations; $scope.format = (fc && fc.format) ? fc.format : 'MMMM dd, yyyy'; }
ChiweenieDijon/noonian-sys
noonian_pkg/FieldTypeUiSpec/dbui.core.date.view.[controller_fn].0EOzSaCaS2OrxRIr2WfbXA.js
JavaScript
agpl-3.0
135
OC.L10N.register( "settings", { "Wrong password" : "错误密码", "The new password can not be the same as the previous one" : "新密码不能和之前的密码相同", "No user supplied" : "没有满足的用户", "Authentication error" : "认证错误", "Wrong admin recovery password. Please check the password and try again." : "错误的管理员恢复密码。请检...
sharidas/core
settings/l10n/zh_CN.js
JavaScript
agpl-3.0
25,464
angular.module('app.cases.directives', []);
HelloLily/hellolily
frontend/app/cases/directives/module.js
JavaScript
agpl-3.0
44
/** * Copyright (C) 2020 3D Repo Ltd * * This program 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, either version 3 of the * License, or (at your option) any later version. * * This program is distri...
3drepo/3drepo.io
scripts/reporting/statsGenElastic/teamspaceActivity.js
JavaScript
agpl-3.0
4,209
window.Wy = { split: function(){ var sel, range; if (window.getSelection){ // IE9 and non-IE sel = window.getSelection(); if (sel.getRangeAt && sel.rangeCount) { range = sel.getRangeAt(0); C.log(range); var node = range.startContainer.parentNode, ...
readfm/ggif
modules/wysiwyg.js
JavaScript
agpl-3.0
3,477
/* Copyright (C) 2010 Marcos Lopes <marcosmlopes01@gmail.com> * Copyright (C) 2010 Rogério Hilbert Lima <rogerhil@gmail.com> * * This program 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, eithe...
rogerhil/cdpc
data/media/js/forms.js
JavaScript
agpl-3.0
2,074
'use strict'; /*©mit************************************************************************** * * * This file is part of FRIEND UNIFYING PLATFORM. * * Copyright (c) Friend Software Labs AS. All rights reserved. ...
FriendSoftwareLabs/friendup
services/REST/rest.js
JavaScript
agpl-3.0
8,701
function SwatRadioNoteBook(id) { this.id = id; this.current_page = null; YAHOO.util.Event.onDOMReady(this.init, this, true); } SwatRadioNoteBook.FADE_DURATION = 0.25; SwatRadioNoteBook.SLIDE_DURATION = 0.15; SwatRadioNoteBook.prototype.init = function() { var table = document.getElementById(this.id); // get ra...
silverorange/swat
www/javascript/swat-radio-note-book.js
JavaScript
lgpl-2.1
4,587
var databaseDataSourceServices = angular.module('databaseDataSourceServices', ['ngResource']); databaseDataSourceServices.factory('DatabaseDataSource', ['$resource', function ($resource) { return $resource('/admin/businessintelligence/abixen/multi-visualization/database-data-sources/:id', {}, { ...
inallib/abixen-platform
abixen-platform-business-intelligence-service/src/main/web/admin/businessintelligence/abixen/multi-visualization/modules/database-data-source/javascript/services.js
JavaScript
lgpl-2.1
417
/*! * 网络扫描引擎类 * * 版权所有 2017 陈学芹 联系方式: 7219530@qq.com * * 本软件在GNU LGPL-V2.1协议下发布,欢迎使用. */ 'use strict'; /** * Expose `createApplication()`. */ exports = module.exports = createApplication; function createEngine() { var engine = {}; return engine; }
cxueqin/falcon
falcon/nmap/nmap-engine.js
JavaScript
lgpl-2.1
329
var classes__3_8js = [ [ "searchData", "dd/def/classes__3_8js.html#ad01a7523f103d6242ef9b0451861231e", null ] ];
HydroCouple/hydrocouple.github.io
hydrocoupledocs/html/dd/def/classes__3_8js.js
JavaScript
lgpl-3.0
116
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
lbndev/sonarqube
server/sonar-web/src/main/js/helpers/handlebars/fileFromPath.js
JavaScript
lgpl-3.0
950
// UI functions function connectFace() { // document.getElementById('expandAll').onclick = function () { treeView.expandAll(); }; // document.getElementById('collapseAll').onclick = function () { treeView.collapseAll(); }; document.getElementById('pause').onclick = function () { if (paused) { document....
remap/ndn-flow
application/website/js/name-consumer.js
JavaScript
lgpl-3.0
6,286
/** * Main explorer Panel for admin * * */ /*Ext.override(Ext.dd.DDProxy, { startDrag: function(x, y) { var dragEl = Ext.get(this.getDragEl()); var el = Ext.get(this.getEl()); dragEl.applyStyles({border:'','z-index':2000}); dragEl.update(el.dom.innerHTML); dragEl.addC...
karacos/karacos-wsgi
resources/static/karacos/explorer/explorer.js
JavaScript
lgpl-3.0
1,684
/* * pingServer.js * * EventDance examples * * Copyright (C) 2010-2012, Igalia S.L. * * Authors: * Eduardo Lima Mitev <elima@igalia.com> */ imports.searchPath.unshift ("../common"); const Evd = imports.gi.Evd; const LISTEN_PORT = 8080; Evd.tls_init (); /* daemon */ var daemon = new Evd.Daemon.get_defaul...
elima/EventDance
examples/js/pingServer.js
JavaScript
lgpl-3.0
1,816
import {ThemeBootstrapService} from 'services/theme/ui-theme-service'; import {ThemeRestClient} from 'services/rest/ui-theme-rest-service'; import {stub} from 'test/test-utils'; describe('ThemeBootstrapService', () => { let themeRestClient = stub(ThemeRestClient); let themeBootstrapService; beforeEach(() => { ...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/test/services/theme/ui-theme-service.spec.js
JavaScript
lgpl-3.0
1,488
var matcher_editor = new Object(); matcher_editor.input_group_vm = null; matcher_editor.tmp_conditions_vm = null; matcher_editor.tmp_conditions = { }; matcher_editor.form_meta = { 'Header':[ { 'group_name':'Name of header want to test', 'input':[ { ...
alexazhou/VeryNginx
verynginx/dashboard/js/matcher_editor.js
JavaScript
lgpl-3.0
13,214
import {ModelRestoreInheritedAttributeActionProcessor} from 'administration/model-management/actions/restore/model-restore-inherited-attribute-action-processor'; import {ModelRestoreInheritedAttributeAction} from 'administration/model-management/actions/restore/model-restore-inherited-attribute-action'; import {ModelCh...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/test/administration/model-management/actions/restore/model-restore-inherited-attribute-action-processor.spec.js
JavaScript
lgpl-3.0
3,407
/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License...
Builders-SonarSource/sonarqube-bis
server/sonar-web/src/main/js/apps/permissions/shared/store/groups/groups.js
JavaScript
lgpl-3.0
1,147
"use strict"; var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property"); var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault"); _Object$defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _class...
Brewskey/spark-protocol
dist/lib/logger.js
JavaScript
lgpl-3.0
1,524
/* * @Author: Administrator * @Date: 2015-10-27 15:36:07 * @Last Modified by: Administrator * @Last Modified time: 2015-10-28 14:25:52 */ 'use strict'; console.log('this scripts works'); function addGlary() { var support = (document.getElementsByTagName && document.getElementById && document.getElementsByClassNa...
vicvinc/overJs
src/practise/dom/index.js
JavaScript
unlicense
1,105
angular.module("config", []) .constant("ENV", { "development": { "name": "TestApp", "apiEndpoint": "http://localhost:9001/api/", "restPaths": { "quiz": "quiz", "solution": "solution", "maths": "maths", "di":...
anirvann/testApp
config.js
JavaScript
unlicense
426
const db = require('../lib/db') const upsert = 'insert into migrations (id, data) values (1, $1) on conflict (id) do update set data = $1' function DbMigrateStore () { } DbMigrateStore.prototype.save = function (set, fn) { let insertData = JSON.stringify({ lastRun: set.lastRun, migrations: set.migrations ...
joshmh/lamassu-server
lib/db-migrate-store.js
JavaScript
unlicense
567
var require = { baseUrl: '/', paths: { 'jquery': 'lib/jquery-2.1.1', 'text': 'lib/text', 'underscore': 'lib/underscore', 'underscore.string': 'lib/underscore.string', 'qunit': 'lib/qunit-1.15.0', 'sinon': 'lib/sinon-1.10.3' }, shim: { 'qunit': { ...
SeanShubin/iteration-tracker
gui/src/main/resources/serve-from-classpath/require-config.js
JavaScript
unlicense
636
import React from 'react'; import ReactDOM from 'react-dom'; import ViewGrid from './ViewGrid'; it('renders without crashing', () => { const div = document.createElement('div'); ReactDOM.render(<ViewGrid />, div); });
theansaname/cautious-guide
src/components/ViewGrid.test.js
JavaScript
unlicense
223
function makeFriendlyDates(arr) { const months = [ 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December' ]; let date1 = arr[0].split('-'), date2 = arr[1].split('-'), year1 = parseInt(dat...
Wheatability/jsAlgorithms
advanced_algorithms/friendlyDates.js
JavaScript
unlicense
2,332
/** * @overview Book and Pages Generator Lib * @module books * @author Dominik Sigmund * @version 0.1 * @description This Lib is the new way to create Pages and Books. * @memberof resilienz * @requires module:fs * @requires module:path * @requires module:uuid * @requires module:child_process * @requires modu...
WebDaD/Resilienz
lib/books.js
JavaScript
unlicense
17,687