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
// DOMContentLoaded is fired once the document has been loaded and parsed, // but without waiting for other external resources to load (css/images/etc) // That makes the app more responsive and perceived as faster. // https://developer.mozilla.org/Web/Reference/Events/DOMContentLoaded window.addEventListener('DOMConten...
chanchett/phoenix
phoenix-browser/js/app.js
JavaScript
mpl-2.0
4,370
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ var fs = require('fs'); var jsdom = require('jsdom'); function cleanTag (tree) { cleanAttributes(tree); } func...
michalbe/appmaker
lib/verify.js
JavaScript
mpl-2.0
4,462
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* 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 stri...
Yukarumya/Yukarum-Redfoxes
devtools/client/animationinspector/components/animation-timeline.js
JavaScript
mpl-2.0
15,627
var c_ecall = [ [ "Operation modes", "c_ecall.html#le_ecall_operation", null ], [ "eCall Session", "c_ecall.html#le_ecall_session", null ], [ "Minimum Set of Data (MSD)", "c_ecall.html#le_ecall_msd", null ], [ "Concurrency", "c_ecall.html#le_ecall_concurrency", null ], [ "ERA-GLONASS compliancy", "c...
legatoproject/legato-docs
15_01_1/c_ecall.js
JavaScript
mpl-2.0
750
/* * 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/. */ /* * Copyright (c) 2014, Joyent, Inc. */ var test = require('tape').test; var libuuid = require('libuuid');...
misterbisson/sdc-cloudapi
test/networks.test.js
JavaScript
mpl-2.0
6,128
/* * 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/. */ /* * Copyright (c) 2019, Joyent, Inc. */ var fs = require('fs'); var util = require('util'); var path = req...
joyent/sdc-cnapi
lib/endpoints/index.js
JavaScript
mpl-2.0
12,203
/* 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/. */ const chai = require('chai'); const chaiAsPromised = require('chai-as-promised'); const moment = require('moment')...
beloitcollegecomputerscience/OED
src/server/test/db/barchartReadingsTests.js
JavaScript
mpl-2.0
8,081
module.exports = { rules: { // Ensure <a> and <Link> tags are valid (require 'href' or 'to') // https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/anchor-is-valid.md 'jsx-a11y/anchor-is-valid': ['error', { components: ['Link'], specialLink: ['to'], aspects: ['noHref...
scotiabank/eslint-config-scotiabank
packages/eslint-config-scotiabank-react/rules/react-a11y.js
JavaScript
mpl-2.0
367
'use strict'; module.exports = function (req, res, next) { var result = {} ; var query = req.query; var path = req.path; for ( var name in query ){ switch(name) { case 'insee': var inseeParts = req.codeInseeParts; if (path === '/commune') { result...
sgmap/apicarto
lib/prepare-params-cadastre.js
JavaScript
agpl-3.0
3,001
var searchData= [ ['date',['date',['../classmain_1_1models_1_1PeriodException.html#a63b5ae9de2af612841590167c6e1c0ad',1,'main.models.PeriodException.date()'],['../classmain_1_1models_1_1Travel.html#acb9106fa002616e5f31fe2e1883db6a1',1,'main.models.Travel.date()']]], ['depart_5fafter',['DEPART_AFTER',['../classmain_...
DjangoChained/TchouTchouGo
docs/search/all_4.js
JavaScript
agpl-3.0
953
/* * The Kuali Financial System, a comprehensive financial management system for higher education. * * Copyright 2005-2017 Kuali, Inc. * * 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 Foundat...
quikkian-ua-devops/will-financials
kfs-web/src/main/webapp/kr/scripts/core.js
JavaScript
agpl-3.0
17,380
var uniq = require('uniq'); var robot = require('./robot.js'); console.log(robot([4, 7, 7, 12, 12, 5])); console.log(uniq([104, 107, 107, 1012, 1012, 105]));
FleetingClouds/brfy-issue-example
boop.js
JavaScript
agpl-3.0
159
//page.js //scripts for bootstrap // enable tooltips // $(function () { // $('[data-toggle="tooltip"]').tooltip(); // }); $(document).ready(function(){ $('[data-toggle="tooltip"]').tooltip({ trigger: "hover" }); }); //enable modal focus $('#site-list-modal').on('shown.bs.modal', fun...
anttiruonakoski/korppi
js/bootstraphelper.js
JavaScript
agpl-3.0
1,187
/* Copyright 2008-2013 Clipperz Srl This file is part of Clipperz, the online password manager. For further information about its features and functionalities please refer to http://www.clipperz.com. * Clipperz is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Pub...
nikolaykhodov/clipperz-password-manager
frontend/gamma/tests/tests/Clipperz/Async.test.js
JavaScript
agpl-3.0
27,115
'use strict'; var lrSnippet = require('grunt-contrib-livereload/lib/utils').livereloadSnippet; var mountFolder = function (connect, dir) { return connect.static(require('path').resolve(dir)); }; module.exports = function (grunt) { // load all grunt tasks require('matchdep').filterDev('grunt-*').forEach(grunt.loa...
stainsby/aec-enrol-verify
ui/Gruntfile.js
JavaScript
agpl-3.0
6,555
define([ 'ext/lodash', 'ext/backbone', 'store', 'when' ], function(_, Backbone, Storage, when) { var State = Backbone.Model.extend({ module: 'state', requires: [ 'user' ], defaults: { milestones: { monthly: 160, weekly: 40, daily: 8 } }, save: functio...
amireh/togglcrunch
src/js/models/state.js
JavaScript
agpl-3.0
1,373
/* * Translated default messages for the jQuery validation plugin. * Locale: ES (Spanish; Español) */ (function ($) { $.extend($.validator.messages, { required: "Aquest camp és obligatori.", remote: "Per favor, emplena aquest camp.", email: "Per favor, escriu una adreça de correu vàlida", url: "Per favor, e...
gvSIGAssociation/gvsig-web
src/main/webapp/scripts/jquery/i18n/jquery.validate-ca.js
JavaScript
agpl-3.0
1,252
"use strict"; var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Refl...
micklaw/Someone-Like
src/SomeoneLike.Cms/src/js/navigation/navigation.module.js
JavaScript
agpl-3.0
2,192
define('jst/_turnitinScore', ["compiled/handlebars_helpers"], function (Handlebars) { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['_turnitinScore'] = template(function (Handlebars,depth0,helpers,partials,data) { helpers = helpers || Handlebars.helpe...
owly/canvassy
public/javascripts/jst/_turnitinScore.js
JavaScript
agpl-3.0
3,140
/** * @author David Yzaguirre <dvdyzag@gmail.com> * * @copyright Copyright (c) 2016, David Yzaguirre, Aníbal Rodríguez * @license AGPL-3.0 * * This code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free So...
anibaljose/swimWorldWeb
controllers/equipos.js
JavaScript
agpl-3.0
2,517
'use strict'; describe('service', function() { beforeEach(function() { module('srApp.services'); }); describe('list', function() { var list; beforeEach(inject([ 'list', function(_list) { list = _list; }])); describe('create(<data>)', function() { it('should create a list objec...
eauc/steamdating
spec/main/services/listsSpec.js
JavaScript
agpl-3.0
5,458
/** * Restaurant ORM * * @todo Use JS syntax to outline the structure */ var Restaurant = function(id) { this.type = 'Restaurant'; this.id_var = 'id_restaurant'; this.resource = 'restaurant'; var self = this, complete; $.extend(self,Orm); var complete = arguments[1] || null; self.loadError = function(...
crunchbutton/crunchbutton
www/assets/js/restaurant.js
JavaScript
agpl-3.0
9,278
import React from 'react' import PropTypes from 'prop-types' import { Flexbox2 as Flexbox, Header as HeaderStyleguide, IconColorful, Navbar, Spacing } from 'bonde-styleguide' // Components import ActionButton from './ActionButton' import Tabs, { Tab } from './Tabs' import Title from './Title' import UserDropd...
nossas/bonde-client
packages/bonde-admin-canary/src/components/PageLogged/Header/index.js
JavaScript
agpl-3.0
2,266
v_toggleFrameSize = function() { if (gInFullScreen) _toNormalSize() ; else _toFullScreenSize() ; } //v_toNormalSize = function() { // _toNormalSize() ; //} // v_toInitialSize = function() { _toInitialSize() ; $(window).resize(function(){ // console.log('before setFramesize in top resize winwidth' ...
co-ment/comt
src/cm/media/js/site/text_view_to_frame.js
JavaScript
agpl-3.0
572
/* * Ext JS Library 3.0 RC1 * Copyright(c) 2006-2009, Ext JS, LLC. * licensing@extjs.com * * http://extjs.com/license */ Ext.onReady(function(){ Ext.QuickTips.init(); var xg = Ext.grid; // shared reader var reader = new Ext.data.ArrayReader({}, [ {name: 'company'}, ...
conjoon/webmail
vendor/ext-ux-grid-gridviewmenuplugin/examples/grouping.js
JavaScript
agpl-3.0
5,074
/** * @license Highcharts JS v8.1.0 (2020-05-05) * * Data module * * (c) 2012-2019 Torstein Honsi * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module.exports = factory; } e...
burki/jewish-history-online
web/vendor/highcharts/modules/data.src.js
JavaScript
agpl-3.0
100,283
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'form', function( editor ) { var autoAttributes = { action: 1, id: 1, method: 1, enctype: 1, target: 1 }; return { title: e...
afshinnj/php-mvc
assets/framework/ckeditor/plugins/forms/dialogs/form.js
JavaScript
agpl-3.0
3,530
'use strict'; angular.module('GO.Controllers', []);
Intermesh/groupoffice-webclient
app/controller/0-common.js
JavaScript
agpl-3.0
52
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ function exportar(archivo,main_module,related_module){ id=jQuery("input[name=record]").val(); myform=document.createElement("form"); myform.setAttribute('name','newForm'); myform.setAttr...
josesam/latinos
custom/include/scripts/sistema/pdf.js
JavaScript
agpl-3.0
588
/** * Runtime.js * * Copyright 2013, Moxiecode Systems AB * Released under GPL License. * * License: http://www.plupload.com/license * Contributing: http://www.plupload.com/contributing */ /*global File:true */ /** Defines constructor for HTML5 runtime. @class moxie/runtime/html5/Runtime @private */ define("...
moxiecode/moxie
src/javascript/runtime/html5/Runtime.js
JavaScript
agpl-3.0
4,648
function check_custom_form() { if(railo_custom_form.check()) { return true; } else { return false; } } function addRailoRequiredTextInput(input_name, message) { railo_custom_form.addInput(input_name,true,0,14,null,message,null,null,null,null,-1); } function addRailoRequiredMaxLengthTextInput(input_name, me...
doplanning/doplanning-cfml
html/Scripts/checkRailoForm.js
JavaScript
agpl-3.0
2,025
define([ "dojo/_base/array", "dojo/_base/config", // defaultDuration "../registry", ".." // for setting exports to dijit namespace ], function(array, config, registry, dijit){ // module: // dijit/_base/manager // summary: // Shim to methods on registry, plus a few other declarations. // New code should acc...
ohaz/amos-ss15-proj1
FlaskWebProject/static/scripts/dojotoolkit/dijit/_base/manager.js
JavaScript
agpl-3.0
2,183
/* Copyright 2013-2016 Extended Mind Technologies Oy * * 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 applicab...
ttiurani/extendedmind
frontend/app/src/test/app/base/TagsServiceSpec.js
JavaScript
agpl-3.0
7,923
/** * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
secret715/Secret-Blog
include/js/ckeditor/build-config.js
JavaScript
agpl-3.0
2,467
suite ('comt logged admin user list', function () { this.timeout(20000); suite ('logs as an admin', function () { test_comt_login (C.W.USER_ADMIN, C.W.PASS_ADMIN); }); suite ('people list page conformity', function () { test_page_loading ('/user/', 'People\' list\n - '+C['#id_workspace_name']); test_comt...
co-ment/comt
test-suite/tests/013_comt-admin-user-list.js
JavaScript
agpl-3.0
8,892
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang( 'notification', 'ko', { closed: '알림이 닫힘.' } );
astrobin/astrobin
astrobin/static/astrobin/ckeditor/plugins/notification/lang/ko.js
JavaScript
agpl-3.0
247
'use strict'; module.exports = { conf: null, loggerConf: null, serverConf: null, databaseConf: null, webservicesConf: null, superAdminId: '0' };
veo-labs/openveo-portal
app/server/conf.js
JavaScript
agpl-3.0
158
'use strict'; (function(app) { /** * Stream URL validator directive validates that a model is a valid stream URL depending on type. * * Available attributes are: * - [Boolean] **opa-stream-url-validator** An AngularJS expression evaluating to true if validator is active, * false otherwise * ...
veo-labs/openveo-portal
app/client/admin/components/shared/streamUrlValidator/streamUrlValidator.directive.js
JavaScript
agpl-3.0
2,239
import axios from 'axios'; export async function searchUsers(query) { return await axios.get(`/api/users?search=${query}`); }
Trustroots/trustroots
modules/users/client/api/search-users.api.js
JavaScript
agpl-3.0
129
/* * 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-ui-components
src/openlmis-offline/offline.interceptor.js
JavaScript
agpl-3.0
2,907
/************************************************************************************* * ===================================================================================* * Software by: Danyuki Software Limited * * This file is part of Plancake. ...
plancake/official-api-kit-javascript
PlancakeTask.js
JavaScript
agpl-3.0
2,384
import React from 'react'; import StatisticBox, { STATISTIC_ORDER } from 'Main/StatisticBox'; import SpellIcon from 'common/SpellIcon'; import { formatPercentage, formatNumber } from 'common/format'; import SPELLS from 'common/SPELLS'; import Module from 'Parser/Core/Module'; // dependencies import Combatants from '...
mwwscott0/WoWAnalyzer
src/Parser/HolyPriest/Modules/PriestCore/RenewTheFaith.js
JavaScript
agpl-3.0
2,332
import language from '../../core/services/language.js'; export default class LanguageController { /* @ngInject */ constructor($rootScope) { this.$rootScope = $rootScope; this.choice = language.getCurrent(); this.languages = language.getLanguages(); } setLanguage(code) { language.setCurrent(code); th...
johansten/stargazer
app/pages/global-settings/language.component.js
JavaScript
agpl-3.0
397
/* ************************************************************************ qooxdoo - the new era of web development http://qooxdoo.org Copyright: 2004-2010 1&1 Internet AG, Germany, http://www.1und1.de License: LGPL: http://www.gnu.org/licenses/lgpl.html EPL: http://www.eclipse.org/org/d...
FireWalkerX/eyeOS-FOSS-V.2.0
devtools/qooxdoo-sdk/framework/source/class/qx/test/ui/decoration/Uniform.js
JavaScript
agpl-3.0
1,557
demobbed.resetEvent(); demobbed.event().id(12309049760); demobbed.event().date(1352058895000); demobbed.event().hitsTT()[0] = [ new HitTT(10000, 147.3, -625.18, 6.94), new HitTT(10001, 151.98, -611.78, 5.61), new HitTT(10002, 149.34, -611.78, 81.68), new HitTT(10003, 138.8, -598.38, 19.24), new HitTT(10004,...
dmitr25/demobbed-viewer
js/nuEventsData/nuMu/loadEvent12309049760.js
JavaScript
agpl-3.0
12,357
const AuthFactory = require("./factory"); module.exports = new AuthFactory();
Itera/itera-feedback
client/lib/auth/store.js
JavaScript
agpl-3.0
79
(function( $ ){ $.fn.pad = function( options ) { var settings = { 'host' : 'http://172.19.220.122:9001', 'baseUrl' : '/p/', 'showControls' : true, 'showChat' : false, 'showLineNumbers' : false, 'userName' : 'unnamed', 'useM...
ask4prasath/madGeeksAimWeb
app/assets/javascripts/etherpad.js
JavaScript
agpl-3.0
3,536
//= require plus/jquery.js //= require plus/jquery-1.7.1.min.js //= require plus/script.js //= require plus/jquery.bxslider.js //= require plus/tms-0.4.1.js //= require plus/jquery.easing.1.3.js
b-change/satudunia
app/assets/javascripts/plus.js
JavaScript
agpl-3.0
194
/* global angular, require */ import translate from '../core/services/translate.service.js'; import platformInfo from '../core/services/platform-info.js'; export default class IndexController { /* @ngInject */ constructor($ionicLoading, Commands, Wallet) { this.$ionicLoading = $ionicLoading; this.Commands = Co...
johansten/stargazer
app/root/index.component.js
JavaScript
agpl-3.0
1,080
import React from 'react'; import PropTypes from 'prop-types'; import SPELLS from 'common/SPELLS'; import SpellLink from 'common/SpellLink'; import Checklist from 'parser/shared/modules/features/Checklist'; import Rule from 'parser/shared/modules/features/Checklist/Rule'; import Requirement from 'parser/shared/modules...
ronaldpereira/WoWAnalyzer
src/parser/warrior/arms/modules/features/Checklist/Component.js
JavaScript
agpl-3.0
5,011
/** * Copyright (C) 2016-2019 Mailvelope GmbH * Licensed under the GNU Affero General Public License version 3 */ import React from 'react'; import PropTypes from 'prop-types'; import * as l10n from '../../../lib/l10n'; import {Collapse} from 'reactstrap'; import './EditorModalFooter.scss'; l10n.register([ 'edi...
mailvelope/mailvelope
src/components/editor/components/EditorModalFooter.js
JavaScript
agpl-3.0
3,758
OC.L10N.register( "core", { "Please select a file." : "ファイルを選択してください。", "File is too big" : "ファイルが大きすぎます", "The selected file is not an image." : "選択されたファイルは画像ではありません", "The selected file cannot be read." : "選択されたファイルを読込みできませんでした", "Invalid file provided" : "無効なファイルが提供されました", "No image o...
xx621998xx/server
core/l10n/ja.js
JavaScript
agpl-3.0
41,085
angular.module('app.preferences').config(moneybirdConfig); moneybirdConfig.$inject = ['$stateProvider']; function moneybirdConfig($stateProvider) { $stateProvider.state('base.preferences.admin.integrations.moneybird.auth', { url: '/auth', views: { '@base.preferences': { ...
HelloLily/hellolily
frontend/app/preferences/admin/integrations/moneybird_base.js
JavaScript
agpl-3.0
478
describe('karma', function() { it('runs tests', function() { expect(1).toBe(1); }); });
linearregression/elixre
client/test/spec/foo.spec.js
JavaScript
agpl-3.0
96
/** * @license Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md. */ /** * Set of utils to handle unicode characters. * * @module utils/unicode */ /** * Checks whether given `character` is a combining mark. * * @param {String} character Character to ...
FriendSoftwareLabs/friendup
interfaces/web_desktop/apps/Notes/Scripts/ckeditor5/@ckeditor/ckeditor5-utils/src/unicode.js
JavaScript
agpl-3.0
2,277
export class Form941ReportViewController extends ReportBaseViewController { constructor( options = {} ) { _.defaults( options, { return_type_array: null, exempt_payment_array: null, state_array: null, province_array: null, schedule_deposit_array: null } ); super( options ); } initReport( opti...
aydancoskun/timetrex-community-edition
interface/html5/views/reports/form941/Form941ReportViewController.js
JavaScript
agpl-3.0
34,188
module.exports = Backbone.View.extend({ events: { 'click': 'toggle' }, tagName: 'a', attributes: { href: '#' }, initialize: function() { _.bindAll(this, 'setClassName'); this.$el.attr('class','sidebar-link hide_'+this.options.columnView.id ); this.options.columnView.on('visibilityCha...
PedroFelipe/cm42-central
app/assets/javascripts/views/column_visibility_button_view.js
JavaScript
agpl-3.0
1,328
/* this is the API to be used by the underlying voice/messaging system public functions throw exceptions when called in a wrong way. */ var uuid = require("uuid"); //var appConfig = require("./etc/app.json"); //var addressBook = require("./" + appConfig.addressBook); var wss = require("./websocket"); var myLib = ...
FarmRadioHangar/fessbox
engineApi.js
JavaScript
agpl-3.0
2,228
/** * Common JavaScript functions that can be used on every page. * * Note that this script is loaded in the footer, so always wait for the * document ready event before accessing the DOM. */ /** * Link tags with the "history_back" function trigger "window.history.back()". */ $('body').on('click', 'a.history_ba...
strongswan/strongTNC
apps/front/static/js/common.js
JavaScript
agpl-3.0
2,771
(function() { "use strict"; angular.module("blocktrail.setup") .controller("SetupNewAccountCtrl", SetupNewAccountCtrl); function SetupNewAccountCtrl($scope, $state, $q, $filter, $cordovaNetwork, CONFIG, formHelperService, modalService, passwordStrengthService, newA...
blocktrail/blocktrail-wallet
src/js/modules/setup/controllers/new-account/new-account.ctrl.js
JavaScript
agpl-3.0
5,092
'use strict'; define(['util/djbec', 'bitcoinjs-lib'], function(Djbec, Bitcoin) { var sk1, sk2, pk1, pk2; // TODO: We should add standard test vectors here var sk1Bytes = [1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8,1,2,3,4,5,6,7,8]; var sk2Bytes = [1,2,3,8,5,6,7,8,1,25,3,4,58,86,7,8,1,2,3,4,5,56,7,8,...
bankonme/darkwallet
test/unit/util/djbecSpec.js
JavaScript
agpl-3.0
6,482
'use strict'; function posIsIn(pos, array) { if (!array) { return false; } for (const posCheck of array) { // TODO when does this happen? if (posCheck === null) { console.log('Pos is not in array', pos, posCheck, JSON.stringify(array)); throw new Error(); // continue; } ...
Nevrdid/screeps
src/prototype_room_basebuilder.js
JavaScript
agpl-3.0
12,380
import React, { Component, PropTypes } from 'react'; import { Provider, connect } from 'react-redux'; import { Button } from 'local-Antd'; import RoomSelect from 'components/ui-number-select/index.jsx'; import GuestSelect from 'components/ui-hotel-guest/index.jsx'; import NumberSelect from 'components/ui-numb...
Neal-Caffrey/Neal-Caffrey.github.io
project/src/static/test/app.js
JavaScript
lgpl-2.1
3,509
(function (n2Module) { n2Module.value('$strapConfig', { datepicker: { language: 'en', format: 'M d, yyyy' } }); })(angular.module('n2', ['n2.directives', 'n2.services', 'n2.localization', 'ui', '$strap.directives', "ngRoute", "ngSanitize"], function ($routeProvider, $locationProvider) { if (histor...
nicklv/n2cms
src/Mvc/MvcTemplates/N2/App/Js/Controllers.js
JavaScript
lgpl-2.1
29,692
/* * This file is part of Cockpit. * * Copyright (C) 2014 Red Hat, Inc. * * Cockpit 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 2.1 of the License, or * (at your option) any l...
matobet/cockpit
pkg/docker/docker.js
JavaScript
lgpl-2.1
22,996
export default { mutations: { // add adds a flash message. payload is an object with keys “id”, // “message” and “type”. add(state, payload) { let flash = { id: payload.id, message: payload.message, type: payload.type }; state.flashes.push(flash); }, // clear deletes all flash messages ...
kralisch/jams
JAMSWebClient/src/store/modules/flashes.js
JavaScript
lgpl-3.0
705
// Karma configuration // Generated on Fri Dec 05 2014 16:49:29 GMT-0500 (EST) 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/ka...
trenneman/persistence
karma.conf.js
JavaScript
lgpl-3.0
2,193
(function($) { var cultures = $.global.cultures, en = cultures.en, standard = en.calendars.standard, culture = cultures["fr-LU"] = $.extend(true, {}, en, { name: "fr-LU", englishName: "French (Luxembourg)", nativeName: "français (Luxembourg)", language: "fr", ...
Kapinko/CJAF
lib/jquery/global/globinfo/Globalization.fr-LU.js
JavaScript
lgpl-3.0
1,968
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
AriseID/ariseid-core
internal/jsre/deps/web3.js
JavaScript
lgpl-3.0
491,708
'use strict'; var util = require('util') , tls = require('tls') , crypto = require('crypto') , EventEmitter = require('events').EventEmitter , Connection = require('node-xmpp-core').Connection , JID = require('node-xmpp-core').JID , SRV = require('node-xmpp-core').SRV , BOSHConnection = require('./bosh')...
Wyliodrin/wyliodrin-server
tests/mocha/patch/session.js
JavaScript
lgpl-3.0
5,523
/** * @fileoverview Simple group component renderer. * */ goog.provide('ydn.crm.su.ui.group.AssignUserRenderer'); goog.require('ydn.crm.su.ui.group.SimpleGroupRenderer'); /** * Simple group component renderer. * @constructor * @struct * @extends {ydn.crm.su.ui.group.SimpleGroupRenderer} */ ydn.crm.su.ui.gr...
yathit/sugarcrm
src/ydn/crm/sugarcrm/ui/group/assign-user-renderer.js
JavaScript
lgpl-3.0
952
class LauncherSettings { } // Export the module module.exports = {LauncherSettings};
InterCraftOfficial/InterCraftLauncher
src/minecraft/launcher_settings.js
JavaScript
lgpl-3.0
88
"use strict"; var Sequelize = require("sequelize"), connection = require("../sequelize.js"); var attributes = { username: { type: Sequelize.STRING, allowNull: false, unique: true, validate: { is: /^[a-z0-9_-]+$/i, }, }, email: { type: Sequelize.STRING, validate: { isEma...
rodekruis/communityprofiles
app/models/user.server.model.js
JavaScript
lgpl-3.0
702
/** * Copyright © 2018 dr. ir. Jeroen M. Valk * * This file is part of ComPosiX. ComPosiX 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, or (at your option) any...
jeroenvalk/ComPosiX
src/main/javascript/modules/pipe.js
JavaScript
lgpl-3.0
2,752
let config = { apiKey: null, authDomain: null, databaseURL: null, storageBucket: null }; export let Config = class Config { configure(userConfig) { for (let key in userConfig) { if (!Reflect.has(config, key)) { throw new Error(`unknown configuration key: ${ key }`); } config[key...
gingerik/aurelia-firebase
dist/es2015/config.js
JavaScript
lgpl-3.0
414
var sferaWebAppPath = "../resources/webapp"; var sferaDocPath = "../../site/markdown"; module.exports = function(grunt) { 'use strict'; grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), concat: { options: { stripBanners: true, sourceMap: ...
sfera-labs/sfera-app-webapp
src/main/client/Gruntfile.js
JavaScript
lgpl-3.0
5,636
module.exports = handler var debug = require('../debug').insert var wc = require('../../') function handler(req, res) { var origin = req.headers.origin; if (origin) { res.setHeader('Access-Control-Allow-Origin', origin); } var defaultCurrency = res.locals.config.currency || 'https://w3id.org/cc#bit'; ...
webcredits/webcredits
lib/handlers/insert.js
JavaScript
lgpl-3.0
1,598
/* * 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/settings/store/actions.js
JavaScript
lgpl-3.0
3,807
/* global PIXI */ import 'pixi.js' class Spinner { constructor (position, color, beat = 4, offset = 0, spinSpeed = 10, initialAngle = 0, width = 10, blur = 10) { beat = beat * 7 / 4 this.blur = blur this.beat = beat this.offset = offset this.spinSpeed = spinSpeed this.gfx = new PIXI.Graphics(...
rocket-hands/waveform
src/spinner.js
JavaScript
unlicense
1,109
var sqlite3 = require('sqlite3').verbose(); var fs = require("fs"); var utils = require("./utils"); var fsys = require("../filesystem"); var file = process.cwd() + "/lib/db/server.db"; var exists = fs.existsSync(file); exports.getUser = function (name, cb) { var sql = new sqlite3.Database(file); sql.serialize...
kiwi-uppa/RepositoryAndDownloadServer
lib/db/sqlite.js
JavaScript
unlicense
5,766
import {curry} from './functional'; import {lengthsOf, heightOf, tableOf, isLeaf, length} from './accessors'; import {Node, EMPTY, isListNode} from './Node'; import { sliceLeft, sliceRight, unsafeGet, unsafeSet, siblise, pushIfSpace, createNodeWithHeight } from './internal'; import {append} from './append' /...
wishfoundry/rrbit
src/operations.js
JavaScript
unlicense
5,169
'use strict'; var geoconv = require('./index.js'); var geoid = require('geo-identify-position-format'); var ndarray = require('ndarray'); exports.testFromFlatArray = function(test) { test.expect(2); var flat = [1,2,3,4,5,6]; var out = geoconv.convert(flat, geoconv.TYPED_ARRAY); test.equals(geoid.ident...
wwwtyro/geo-convert-position-format
test.js
JavaScript
unlicense
8,240
/* you know the drill open up the browser console (ctrl + shift + i) and paste everything you see here, even comments if you want. usage: click a user ID and the ignore command will show up. click the id again to hide the command. simple stuff have fun */ if (location.hostname == 'www.999dice.com') { $('head').appe...
hamboning/999dice-toys
quick-ignore.js
JavaScript
unlicense
1,412
const _ = require("lodash"); const Qs = require("qs"); const Op = require("sequelize").Op; function UserRouter(app) { const { models } = app.data.sequelize; const api = { pathname: "/users", middlewares: [ app.server.auth.isAuthenticated, app.server.auth.isAuthorized ], ops: { ge...
FredericHeem/starhackit
server/src/plugins/users/user/UserRouter.js
JavaScript
unlicense
1,775
/*global define*/ /*jslint nomen:true,plusplus:true,white:true,browser:true*/ define(["dojo/number"], function (number) { "use strict"; /** * @constructor */ function RaceData(/**{Object.<string,number>}*/ queryResults) { /** @member {!number} */ this.white = queryResults.SUM_White || queryResults.white || ...
WSDOT-GIS/Alpaca
Scripts/wsdot/alpaca/raceData.js
JavaScript
unlicense
4,851
import _getCoords from "./_getCoords.js"; const _getCoordsFromElement = arg => _getCoords(arg, true); export default _getCoordsFromElement;
leofavre/canivete
dist/internal/geometry/_getCoordsFromElement.js
JavaScript
unlicense
142
//help from example from rectangleworld.com window.addEventListener("load", windowLoadHandler, false); function windowLoadHandler(){ unitCircleApp(); } function unitCircleApp(){ //get element and context var gamebox = document.getElementById("box"); var ctxbox = gamebox.getContext('2d'); var xbox = docume...
ZachGlassman/ZachGlassman.github.io
PhysicsApps/unitcirclemain.js
JavaScript
unlicense
13,685
/* @flow strict-local */ import React, { PureComponent } from 'react'; import type { Node as React$Node } from 'react'; import { Animated, Easing } from 'react-native'; import type { Style } from '../types'; type Props = $ReadOnly<{| style?: Style, children: React$Node, |}>; export default class AnimatedRotateCo...
vishwesh3/zulip-mobile
src/animation/AnimatedRotateComponent.js
JavaScript
apache-2.0
961
'use strict'; module.exports = { up: function (queryInterface, Sequelize) { /* Add altering commands here. Return a promise to correctly handle asynchronicity. Example: return queryInterface.createTable('users', { id: Sequelize.INTEGER }); */ queryInterface.renameColumn('Transact...
TracklistMe/server
migrations/20150827012137-renameStripeTransactionIdInTransaction.js
JavaScript
apache-2.0
704
// // testingVoxelSeeingRestart.js // hifi // // Created by Brad Hefta-Gaub on 2/26/14 // Copyright (c) 2014 HighFidelity, Inc. All rights reserved. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // var count = 0; v...
JeroMiya/hifi-typescript
HiFi/examples/testingVoxelViewerRestart.js
JavaScript
apache-2.0
2,624
angular.module('app', []) .controller('sendCtrl', function($scope, $http){ $scope.mail = { name: "", phone: "", email: "", comment: "" }; $scope.done = false; $scope.err = false; $scope.send = function(){ $http.post('mail.php', $scope.mail).success(function(res){ if(res.code==0){ $scope.done = t...
g3org3/www
static/js/main.js
JavaScript
apache-2.0
886
// integrations.js var _server = require('./conf/intelligence.js'); // TrueSight Intelligence require('./integrations/intelligence.js'); console.info('Integration: TrueSight Intelligence found. Using API: ' + _server.tsi_endpoint );
Felisse/tsi-twitter-streaming
integrations.js
JavaScript
apache-2.0
235
/** * Copyright 2019 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...
adup-tech/amphtml
extensions/amp-date-display/1.0/date-display.js
JavaScript
apache-2.0
5,315
var when = require("when"); exports.definition = { config: { columns: { screen_cache : "text", home : "text" }, adapter: { "type": "sql", "collection_name": "App" } }, extendCollection: function(Collection) { _.extend(Collection.prototype, { apiFetch : function(api, ref) { var app...
mm250/TiFramework
app/models/App.js
JavaScript
apache-2.0
585
var config = require('../config'); var dbHelper = require('../db/dbHelper'); var async = require('async'); var superagent = require('superagent'); 'use strict'; module.exports = { login: function (obj, cb) { async.parallel({ duosuoInfo: function (callback) { var infoUrl = "http...
gefangshuai/ANodeBlog
lib/duoshuoHelper.js
JavaScript
apache-2.0
885
//// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF //// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO //// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A //// PARTICULAR PURPOSE. //// //// Copyright (c) Microsoft Corporation. All rights reserved (function () {...
gisfromscratch/windowsappsamples
Web authentication broker sample/C++ and JavaScript/Shared/js/oAuthFacebook.js
JavaScript
apache-2.0
6,242
define(['knockout', '../options', '../InputTypes/Range', '../InputTypes/Text', '../CriteriaGroup', 'text!./ConditionOccurrenceTemplate.html', './ConceptSetSelector'], function (ko, options, Range, Text, CriteriaGroup, template) { function ConditionOccurrenceViewModel(params) { var self = this; self.expression = ...
anthonysena/Atlas
js/components/cohortbuilder/components/ConditionOccurrence.js
JavaScript
apache-2.0
3,957
/* Copyright 2015 Gravitational, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, soft...
tidalf/teleport
web/src/app/services/auth.js
JavaScript
apache-2.0
6,103
import { default as React, Component } from 'react'; import { render } from 'react-dom'; import { urlShare } from '../service/UrlShare'; export class DejavuLink extends Component { constructor(props) { super(props); } redirect() { urlShare.redirectUrl('dejavu').then((url) => { window.open(url, '_se...
appbaseio/gem
app/appLogin/DejavuLink.js
JavaScript
apache-2.0
533
// // Tooltip script // powered by jQuery (http://www.jquery.com) // // written by Alen Grakalic (http://cssglobe.com) // // for more info visit http://cssglobe.com/post/1695/easiest-tooltip-and-image-preview-using-jquery // // //starting the script on page load this.tooltip = function() { //CONFIG var xOffse...
yeastrc/msdapl
MSDaPl_Web_App/WebRoot/js/tooltip.js
JavaScript
apache-2.0
963