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
import WindowController from "@/modv/window-controller"; import getLargestWindow from "@/modv/get-largest-window"; const state = { windows: [], size: { width: 0, height: 0 } }; // We can't store Window Objects in Vuex because the Observer traversal exceeds the stack size const externalState = []; // getters cons...
2xAA/modV
src/store/modules/windows.js
JavaScript
gpl-3.0
2,225
(function() { 'use strict'; angular.module('pteroWorkflowClient.services', []); })();
genome/ptero-workflow-client
src/app/services.module.js
JavaScript
gpl-3.0
90
/** * Genji Scrum Tool and Issue Tracker * Copyright (C) 2015 Steinbeis GmbH & Co. KG Task Management Solutions * <a href="http://www.trackplus.com">Genji Scrum Tool</a> * * 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...
trackplus/Genji
src/main/webapp/js/admin/customize/report/ReportConfigController.js
JavaScript
gpl-3.0
4,196
(function() { var StatisticPresenter = function() {}; BH.Presenters.StatisticPresenter = StatisticPresenter; })();
chrome-enhanced-history/enhanced-history
scripts/presenters/statistic_presenter.js
JavaScript
gpl-3.0
120
import { moduleFor, test } from 'ember-qunit'; moduleFor('adapter:contacts', 'Unit | Adapter | contacts', { // Specify the other units that are required for this test. // needs: ['serializer:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let adapter = this.subject(); asse...
jtolbert1975/imanjesolutions
tests/unit/adapters/contacts-test.js
JavaScript
gpl-3.0
340
Ext.define('Healthsurvey.view.usermanagement.roles.AddNewRolesController', { extend : 'Ext.app.ViewController', alias : 'controller.newRolesController', defaultMenuStore:null, init:function() { this.initializeDragZone(); }, afterAllFeatureTreeRender:function() { debugger; var currentObject = th...
applifireAlgo/appApplifire
healthsurvey/src/main/webapp/app/view/usermanagement/roles/AddNewRolesController.js
JavaScript
gpl-3.0
12,519
/*--------------------------------------------------------------------------------+ - Dateiname: app/proxy/Proxy.js - Beschreibung: JsonP Proxy - Autor(en): Andreas Gärtner <andreas.gaertner@hotmail.com> +--------------------------------------------------------------------------------+ This program is free ...
thm-projects/ilias-flashcards
app/proxy/Proxy.js
JavaScript
gpl-3.0
8,134
/** * * Wait for an element (selected by css selector) for the provided amount of * milliseconds to be present within the DOM. Returns true if the selector * matches at least one element that exists in the DOM, otherwise throws an * error. If the reverse flag is true, the command will instead return true * if the...
Cy6erlion/wharica
node_modules/webdriverio/lib/commands/waitForExist.js
JavaScript
gpl-3.0
2,393
/*! pl-sql-client - Query many database at once Copyright (C) 2015 Kyle Ilantzis, Pier-Luc Caron St-Pierre 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 the Free Software Foundation, either version 3 of the Li...
kyle-ilantzis/pl-sql-client
src/js/stores/SettingsStore.js
JavaScript
gpl-3.0
2,879
var Phaser = Phaser || {}; var Mst = Mst || {}; Mst.BootState = function () { "use strict"; Phaser.State.call(this); }; Mst.prototype = Object.create(Phaser.State.prototype); Mst.prototype.constructor = Mst.BootState; Mst.BootState.prototype.init = function (map_int, usr_id) { "use strict"; var d = new Date...
oremir/Mst
mst/js/states/BootState.js
JavaScript
gpl-3.0
1,903
Simpla CMS 2.3.8 = 0f9e3c6a3ac53725fa229f3620b7ca52
gohdan/DFC
known_files/hashes/simpla/design/js/highcharts/js/themes/grid.js
JavaScript
gpl-3.0
52
// ========================================================================== // Project: Brochurno // Copyright: @2011 Jason Dooley // ========================================================================== /*globals Brochurno module test ok equals same stop start */ module("Brochurno.SectionView"); // TODO: Repl...
sevifives/Brochurno
tests/views/section_test.js
JavaScript
gpl-3.0
517
/** * @author Matthew Foster * @date December 27th 2007 */ var MultiCalendarBase = Class.create(); Object.extend(Object.extend(MultiCalendarBase.prototype, EventDispatcher.prototype), { buildInterface : function(container){ this.container = $(container); this.vie...
TamuGeoInnovation/Tamu.GeoInnovation.websites.healthgis.tamu.edu
src/Main/scripts/Calendar/MultiCalendarBase.js
JavaScript
gpl-3.0
2,036
var request = require("request"); var AuthDetails = require("../../auth.json"); exports.commands = [ "image", //gives top image from google search "rimage", //gives random image from google search "ggif" //gives random gif from google search ]; exports.image = { usage: "<search query>", descriptio...
sr229/nodejs-kotori
plugins/Images/images.js
JavaScript
gpl-3.0
4,604
export default function * responseTime(next) { /* * A simple middleware to set X response time header */ let start = new Date; yield next let ms = new Date - start this.set('X-Response-Time', ms + 'ms') }
Fenykepy/simplepass
src/utils/response-time.js
JavaScript
gpl-3.0
223
const ajaxurl = window.mc4wp_vars.ajaxurl const m = require('mithril') if (!Element.prototype.matches) { Element.prototype.matches = Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector } function showDetails (evt) { evt.preventDefault() const link = evt.target const next = link...
ibericode/mailchimp-for-wordpress
assets/src/js/admin/list-overview.js
JavaScript
gpl-3.0
3,182
import Ember from 'ember'; import DS from 'ember-data'; export default DS.Transform.extend({ deserialize: function(serialized) { return (Ember.typeOf(serialized) == "array") ? serialized : []; }, serialize: function(deserialized) { var type = Ember.typeOf(deserialized); if (type == 'array') { ...
johan--/rose
rui/app/transforms/array.js
JavaScript
gpl-3.0
522
const protobuf = require('protobufjs') const path = require('path') protobuf.load(path.resolve('../protobuf/meetings.proto')) .then(start) .catch(console.error) function start (root) { const User = root.lookupType('meetings.User') const payload = { firstName: 'Lucas', lastName: 'Santos', addresses...
khaosdoctor/my-notes
protobuf/examples/protobuf-js/proto.js
JavaScript
gpl-3.0
639
var core__cm_func_8h = [ [ "__CORE_CMFUNC_H", "core__cm_func_8h.html#a50c339231579f3b052ed89428a8a2453", null ] ];
MyEmbeddedWork/ARM_CORTEX_M3-STM32
1. Docs/Doxygen/html/core__cm_func_8h.js
JavaScript
gpl-3.0
118
(function(window) { var RectInternalRepresentation = function(primitive) { var me = new ArmContext.InternalRepresentation(primitive); this._width = 10; this._height = 10; me.GetWidth = function() { return this._width; }; me.SetWidth = f...
sogimu/ArmContext
modules/Primitve/Rect/RectInternalRepresentation.js
JavaScript
gpl-3.0
1,900
function iniciarFormularioRegistro() { // animacion de fadeIn $('.register').addClass('animated fadeIn'); // elimino la clase para poder animar nuevamente setTimeout(function () { $('.register').removeClass('fadeIn'); }, 3000); $('.sigPaso').on('click', function () { if ($(this).ha...
therealthom/kosmos-app
web-app/js/registro.js
JavaScript
gpl-3.0
14,506
/* url utils @sha0coder */ exports.getUrlDir = function(url) { return url.replace(/\/[^\/]*$/,'/') } exports.getBase = function(url) { var spl = url.split('/'); return spl[0]+'//'+spl[2]; }; exports.getDomain = function(url) { return url.split('/')[2]; }; exports.isDir = functio...
0x0mar/bluebox-ng
external/dirscan-node/lib/url.js
JavaScript
gpl-3.0
880
module.exports = { // Scale for HTML Canvas (1=2kx2k, 2=1kx1k, 4=500x500, ...) scaleFactor: 4, };
DigitalShooting/DSM
config/dsm.js
JavaScript
gpl-3.0
103
var express = require('express'); var routes = function (Page) { var feedbackController = require('../controllers/feedbackController')(Page); var feedbackRouter = express.Router(); feedbackRouter.route('/') .get(feedbackController.findByPage); return feedbackRouter; }; module.exports = rou...
devrecipe/codendoc
routes/feedbackRoutes.js
JavaScript
gpl-3.0
324
import Ember from 'ember'; var total = 0; export default Ember.Controller.extend({ isShowingHelp: false, isShowingModal: false, actions: { toggleModal: function() { this.toggleProperty('isShowingModal'); }, toggleModal1: function() { this.toggleProp...
vikramviswanathan/CrowdFundingUI
app/controllers/reward.js
JavaScript
gpl-3.0
5,172
/** * LifterLMS Checkout Screen related events and interactions * * @package LifterLMS/Scripts * * @since 3.0.0 * @version 3.34.5 */ ( function( $ ) { var llms_checkout = function() { /** * Array of validation functions to call on form submission * * @type array * @since 3.0.0 * @vers...
gocodebox/lifterlms
assets/js/llms-form-checkout.js
JavaScript
gpl-3.0
12,594
'use strict'; angular.module('tucha') .controller('GridCtrl', function ($rootScope, $scope, $location, $http, $timeout, states, columns) { var stateName = $location.path().split('/')[1]; for (var i = 0; i < states.length; i++) { if (states[i].name === stateName) { $scop...
aurhe/tucha
client/app/scripts/controllers/grid.js
JavaScript
gpl-3.0
3,120
module.exports={A:{A:{"2":"H D HB","132":"G E A B"},B:{"132":"C p z J L N I"},C:{"2":"5 bB F K H D G E A B C p z J L N I ZB TB","132":"0 1 3 4 6 7 8 O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r s t u v w x y DB AB BB"},D:{"1":"0 1 3 4 6 7 8 J L N I O P Q R S T U V W X Y Z a c d e f g h i j k l m n o M q r ...
lyy289065406/expcodes
java/01-framework/dubbo-admin/incubator-dubbo-ops/dubbo-admin-frontend/node_modules/caniuse-lite/data/features/css-paged-media.js
JavaScript
gpl-3.0
872
module.exports = { //--------------------------------------------------------------------- // Action Name // // This is the name of the action displayed in the editor. //--------------------------------------------------------------------- name: "Run Script", //-------------------------------------------------------...
Bourbbbon/PickleRi6
actions/run_script.js
JavaScript
gpl-3.0
5,145
$(function(){ $('#theInput').typed({ strings: ["type a word (e.g. 'website')", "type a word (e.g. 'grammar')", "type a word (e.g. 'paper')"], typeSpeed: 50, startDelay: 150, attr: 'placeholder', backSpeed: 100, backDelay: 500, loop: true, showCursor: false, contentType: 'html', }); });
isabellaperalta/appellation
js/delete.js
JavaScript
gpl-3.0
309
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); /** * Created by kib357 on 22/01/16. */ class copy { static arrayStructure(target, source, exclude) { if (!Array.isArray(target) || !Array.isArray(source)) { throw new TypeError('copy.arrayStructure cannot be ca...
getblank/blank-node-worker
lib/blank-js-core/utils/copy.js
JavaScript
gpl-3.0
1,810
var searchData= [ ['analog',['Analog',['../namespace_d_s_g_1_1_analog.html',1,'DSG']]], ['blit',['BLIT',['../namespace_d_s_g_1_1_b_l_i_t.html',1,'DSG']]], ['dpw',['DPW',['../namespace_d_s_g_1_1_d_p_w.html',1,'DSG']]], ['dsg',['DSG',['../namespace_d_s_g.html',1,'']]], ['eptr',['EPTR',['../namespace_d_s_g_1_1_e...
zyvitski/DSG
doxygen/html/search/namespaces_0.js
JavaScript
gpl-3.0
704
var http = require('supertest'); var shared = require('../shared'); var server = require('../app'); var app; describe('v2 user#page', function () { before(function (done) { server(function (data) { app = data; done(); }); }); it('should show user index', function (done) { var req = http(a...
calidion/server.xiv.im
test/v2/user/page.js
JavaScript
gpl-3.0
751
import { respond } from "theme/styles/mixins"; export default ` .resource-meta, .resource-meta-mobile { .resource-type { margin-bottom: 14px; ${respond(`margin-bottom: 2px;`, 65)} } /* <ul> */ .meta-list-secondary { margin-bottom: 22px; &:not(:first-child) { margi...
ManifoldScholar/manifold
client/src/theme/styles/components/frontend/resource/meta.js
JavaScript
gpl-3.0
444
/*eslint-env browser */ // main dannybot script const mail = require('./mail'); const storage = require('electron-json-storage'); const fs = require('fs'); const q = require('q'); var readFile = q.nbind(fs.readFile); /* Function to run when DOM loaded */ function ready() { init_tab_handler(); show_counts();...
dannyob/dannybot
src/dannybot.js
JavaScript
gpl-3.0
4,042
/** * @author alteredq / http://alteredqualia.com/ * * Full-screen textured quad shader */ var THREE = window.THREE || require('three'); THREE.CopyShader = { uniforms: { "tDiffuse": { type: "t", value: null }, "opacity": { type: "f", value: 1.0 } }, vertexShader: [ "varying vec2 vUv;", "void main...
Pwntus/JStrike
src/lib/shaders/CopyShader.js
JavaScript
gpl-3.0
686
import { history } from 'byebye'; import React from 'react'; import AltContainer from 'alt-container'; import { MANUAL_LOGOUT } from 'app-constants'; import { loginIfAuthorized as autoFacebookLogin } from 'managers/facebook'; import Analytics from 'instances/analytics'; import parseJWT from 'helpers/parseJWT'; import {...
BramscoChill/BlendleParser
information/blendle-frontend-react-source/app/modules/emailLogin/module.js
JavaScript
gpl-3.0
2,195
module.exports = function(grunt) { grunt.loadNpmTasks('grunt-ts'); grunt.loadNpmTasks('grunt-karma'); grunt.loadNpmTasks('grunt-contrib-uglify'); grunt.loadNpmTasks('grunt-bump'); grunt.loadNpmTasks('grunt-tslint'); var pkg = grunt.file.readJSON('package.json'); grunt.initConfig({ pkg: pkg, ts:...
clemby/tournament-bracket-converter
Gruntfile.js
JavaScript
gpl-3.0
2,935
export { SavingButton } from './SavingButton';
AdguardTeam/AdguardBrowserExtension
Extension/src/pages/common/components/SavingButton/index.js
JavaScript
gpl-3.0
47
import sinon from 'sinon'; import expect from 'expect'; import sleeper from '..'; describe('sleeper', () => { it('should be a function', () => { expect(sleeper).toEqual(expect.any(Function)); }); it('should expose the Resource constructor', () => { expect(sleeper.Resource).toEqual(expect.any(Function)); }); ...
developit/sleeper
test/sleeper.test.js
JavaScript
gpl-3.0
6,745
import 'babel-polyfill'; import React from 'react'; import ReactDOM from 'react-dom'; import { Provider } from 'react-redux'; import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk'; import promise from 'redux-promise'; import createLogger from 'redux-logger'; import allReducers from './re...
designcreative/react-redux-template
src/js/index.js
JavaScript
gpl-3.0
586
var a00250 = [ [ "data_count", "a00250.html#a370358835ed2aa53bcc515894b13eb87", null ], [ "evt_type", "a00250.html#a622197dded7bfa292535944e6870c5f7", null ] ];
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s310/html/a00250.js
JavaScript
gpl-3.0
168
jQuery(document).ready(function($) { $('.modalClose').click(function() { $('.Cart66Unavailable').fadeOut(800); }); $('#Cart66CancelPayPalSubscription').click(function() { return confirm('Are you sure you want to cancel your subscription?\n'); }); }); var $pj = jQuery.noConflict(); function getC...
vleo/vleo-notebook
bluecherry/Bluecherry DVR » Version 2 beta signup information_files/cart66-library.js
JavaScript
gpl-3.0
739
chrome.runtime.onInstalled.addListener(function(details){ if(details.reason == "install"){ console.log("This is a first install!"); }else if(details.reason == "update"){ var thisVersion = chrome.runtime.getManifest().version; console.log("Updated from " + details.previousVersion + " to "...
dbalz3/SuperSteam_Chrome
js/background.js
JavaScript
gpl-3.0
821
var _ = require('underscore'); var express = require('express'); var router = express.Router(); var Autocomplete = require('autocomplete'); var autocomplete = Autocomplete.connectAutocomplete(); var categoryNames = []; var categories = require('../data/categories.json'); _.each(categories, function (category) { if(...
jalalahmad/autocomplete
routes/categories.js
JavaScript
gpl-3.0
1,255
/** * helper functions for event entities */ (function () { /** * show self contained popup for listing Course Event entities */ radio('Event-CourseEvent').subscribe(function(modelId){ var id = new Date().getTime(); $.get(document.endpoints.event.getCourseEvent + "/" + modelId , function (html) { ...
NTiering/TrainingManager
App.Mvc/Scripts/Tools/event.js
JavaScript
gpl-3.0
19,404
angular.module('qmsk.e2.server', [ 'qmsk.e2', 'qmsk.e2.console', 'qmsk.e2.web', 'ngResource', 'ngRoute', 'jsonFormatter', 'ui.bootstrap', ]) .config(function($routeProvider) { $routeProvider .when('/main', { templateUrl: '/static/qmsk.e2/s...
depili/e2
static/qmsk.e2/server.js
JavaScript
mpl-2.0
10,066
/* 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/. */ function blockReferer () { if (document.referrer) { // Blocks cross-origin referer var parser = document...
manninglucas/browser-laptop
app/extensions/brave/content/scripts/block3rdPartyContent.js
JavaScript
mpl-2.0
846
/* 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( [ 'underscore', 'backbone', 'lib/localizer' ], function (_, Backbone, Localizer) { '...
mozilla/chronicle
app/scripts/views/base.js
JavaScript
mpl-2.0
4,193
// @flow import type { Action, ExpandedSet, ProfileSelection, } from '../actions/types'; import type { Days, StartEndRange } from '../../common/types/units'; import type { IndexIntoFuncTable, Profile, ThreadIndex } from '../../common/types/profile'; import type { TransformStacksPerThread } from '../../common/types/t...
squarewave/bhr.html
src/content/reducers/types.js
JavaScript
mpl-2.0
2,440
if (typeof parseRegExp === 'undefined') quit(); load(libdir + "regexp_parse.js"); test_mix("^", no_multiline_flags, Assertion("START_OF_INPUT")); test_mix("^", multiline_flags, Assertion("START_OF_LINE")); test_mix("$", no_multiline_flags, Assertion("END_OF_INPUT")); test_mix("$", mult...
Yukarumya/Yukarum-Redfoxes
js/src/jit-test/tests/regexp_parse/Assertion.js
JavaScript
mpl-2.0
495
dojo.provide("dojox.charting.widget.Sparkline"); dojo.require("dojox.charting.widget.Chart2D"); dojo.require("dojox.charting.themes.ET.greys"); (function(){ var d = dojo; dojo.declare("dojox.charting.widget.Sparkline", dojox.charting.widget.Chart2D, { theme: dojox.charting.themes.ET.greys, ...
ThesisPlanet/EducationPlatform
src/public/js/libs/dojox/charting/widget/Sparkline.js
JavaScript
mpl-2.0
1,469
/* 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/. */ /* eslint-env browser */ "use strict"; const { TAKE_SCREENSHOT_START, TAKE_SCREENSHOT_END, } = require("./in...
Yukarumya/Yukarum-Redfoxes
devtools/client/responsive.html/actions/screenshot.js
JavaScript
mpl-2.0
2,551
// Tests. Mocha TDD/assert style. See // http://visionmedia.github.com/mocha/ // http://nodejs.org/docs/latest/api/assert.html var constants = require('constants'); var assert = require('assert'); var sslConfig = require('../index.js'); var log = console.log.bind(console); suite('Checking generated config', function()...
certsimple/ssl-config
test/tests.js
JavaScript
mpl-2.0
3,120
/* 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 $ = require('jquery'); const _ = require('underscore'); const {assert} = require('chai'); const Account = re...
mozilla/fxa-content-server
app/tests/spec/views/sign_in_totp_code.js
JavaScript
mpl-2.0
5,647
// Copyright 2011-2012 Norbert Lindenberg. All rights reserved. // Copyright 2012 Mozilla Corporation. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /** * @description Tests that the number of fractional digits is determined correctly for currencies. * @author Norbert Li...
cstipkovic/spidermonkey-research
js/src/tests/test262/intl402/ch11/11.1/11.1.1_20_c.js
JavaScript
mpl-2.0
3,125
var DB = require('./lib/db.js'); function SQLContext(options) { this.readOnly = options.isReadOnly; this.db = options.db; } function _put(db, key, value, callback) { db.createOrUpdate(key, value, function(err) { if(err) { return callback(err); } callback(); }); } SQLContext.prototype.putObj...
filerjs/filer-sql
index.js
JavaScript
mpl-2.0
2,594
/* kJscsspFONT_FACE_RULE */ function jscsspFontFaceRule() { this.type = kJscsspFONT_FACE_RULE; this.parsedCssText = null; this.descriptors = []; this.parentStyleSheet = null; this.parentRule = null; } jscsspFontFaceRule.prototype = { cssText: function() { var rv = gTABS + "@font-face {\n"; var pre...
therealglazou/jscssp
src/om/jscsspFontFaceRule.js
JavaScript
mpl-2.0
985
'use strict'; QUnit.module('ellipse', function() { var boundaryOnAngle = function(ellipse, angle) { var a = ellipse.a; var b = ellipse.b; var rad = angle * Math.PI / 180; return g.Point(ellipse.x + a * Math.cos(rad), ellipse.y + b * Math.sin(rad)).round(); }; QUnit.test(...
chill117/joint
test/geometry/ellipse.js
JavaScript
mpl-2.0
5,747
import { inject as service } from '@ember/service'; import Component from '@ember/component'; import { task } from 'ember-concurrency'; export default Component.extend({ router: service(), controlGroup: service(), store: service(), // public attrs model: null, controlGroupResponse: null, //internal sta...
hashicorp/vault
ui/app/components/control-group-success.js
JavaScript
mpl-2.0
1,006
/* * 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-requisition-ui
src/admin-rejection-reason/admin-rejection-reason.module.js
JavaScript
agpl-3.0
1,288
'use strict'; exports.up = function(knex, Promise) { return knex.schema.table('settings', function(table) { table.integer('next_invoice_number'); }); }; exports.down = function(knex, Promise) { return knex.schema.table('settings', function(t) { t.dropColumn('next_invoice_number'); }); };
nnarhinen/nerve
migrations/20141102214329_settings_invoice_number.js
JavaScript
agpl-3.0
307
import React, { Component, PropTypes } from 'react' import { updateCurrentUser, notify } from '../actions' import ListItemTagInput from './ListItemTagInput' export default class ProfileSkillsModule extends Component { static propTypes = { person: PropTypes.object } static contextTypes = { dispatch: Prop...
Hylozoic/hylo-redux
src/components/ProfileSkillsModule.js
JavaScript
agpl-3.0
1,727
var Password = require('../../lib/Interactor/Password.js'); var should = require('should'); describe('Password test', function() { var crypted = ''; it('should crypt a password', function() { crypted = Password.generate('testpass'); }); it('should fail with wrong password', function() { Password.v...
PaulGuo/PM25
PM25-Cli/test/interface/password.mocha.js
JavaScript
agpl-3.0
496
(function ($, undefined) { $.widget("ui.HarvesterInlineEditor", $.ui.CiteInlineEditor, { options: { }, _refreshView: function () { this._super(); //var item = this.option('item'); this.element.empty(); this.initEditor(); //this.showData(item); //this.setCurrentDisplayModeAndApply($.ui.Ci...
cite-sa/xwcps
xwcps-parser-ui/libs/js/general/widgets/jquery.harvesterInlineEditor.js
JavaScript
agpl-3.0
4,417
module.exports = (app) => { let Base58 = {}; Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; Base58.alphabetMap = {}; for(let i = 0; i < Base58.alphabet.length; i++) { Base58.alphabetMap[Base58.alphabet.charAt(i)] = i } Base58.encode = function(buffer) { if (buffe...
duniter/duniter-ui
app/js/services/base58.js
JavaScript
agpl-3.0
1,932
import React from 'react'; import SPELLS from 'common/SPELLS/index'; import { formatDuration } from 'common/format'; import StatisticBox, { STATISTIC_ORDER } from 'interface/others/StatisticBox'; import STATISTIC_CATEGORY from 'interface/others/STATISTIC_CATEGORY'; import SpellLink from 'common/SpellLink'; import Spel...
ronaldpereira/WoWAnalyzer
src/parser/shared/modules/spells/bfa/corruptions/IneffableTruth.js
JavaScript
agpl-3.0
5,526
toastr.options = { "closeButton": true, "debug": false, "newestOnTop": true, "progressBar": true, "positionClass": "toast-bottom-full-width", "preventDuplicates": false, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear"...
shihjay2/nosh-core
public/js/mobile.js
JavaScript
agpl-3.0
243,263
var hook = require("../lib/resources/hook"); var hooks = require("hook.io-hooks"); var bodyParser = require('body-parser'); var mergeParams = require('merge-params'); var config = require('../config'); var themes = require('../lib/resources/themes'); var hooks = require('hook.io-hooks'); module['exports'] = function ...
joshgillies/hook.io
view/new.js
JavaScript
agpl-3.0
4,408
'use strict'; /** * @ngdoc directive * @name FlyveMDM.directive:loggedUserMenu * @description * # loggedUserMenu */ angular.module('FlyveMDM') .directive('loggedUserMenu', function () { return { templateUrl: 'views/loggedusermenu.html', restrict: 'E', link: function postLink(scope) { ...
flyve-mdm/flyve-mdm-web-ui
app/scripts/directives/loggedusermenu.js
JavaScript
agpl-3.0
1,817
import React from 'react'; import reactCSS from 'reactcss'; import { Swatch } from 'react-color/lib/components/common'; export const SwatchesColor = ({ color, onClick = () => {}, onSwatchHover, first, last, active, }) => { const styles = reactCSS( { default: { color: { width:...
zapcoop/vertex
vertex_ui/src/components/ColorPicker/Swatches/SwatchesColor.js
JavaScript
agpl-3.0
1,740
function handleRace(data_races) { var ch_race; var ch_side; for (var ra in data_races.races) { if (data_races.races[ra].id === character_data.race) { ch_race = data_races.races[ra].name; ch_side = data_races.races[ra].side; } else { } } document.querySelec...
daingun/mobile-armory
js/general.js
JavaScript
agpl-3.0
4,549
/* * Copyright 2015 Trim-marks Inc. * * This file is part of Vivliostyle UI. * * Vivliostyle UI 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 opt...
vivliostyle/vivliostyle.js
packages/viewer/test/spec/models/viewer-options-spec.js
JavaScript
agpl-3.0
4,890
/**we have all * @fileoverview * Profile 1/overview and 2/completing * @todo * - package.json * * @version 1 * @copyright ISCPIF-CNRS 2016 * @author romain.loth@iscpif.fr * * @requires comex_user_shared, comex_lib_elts * * NB The uinfo variable should be set to template's user.json_info value. */ // 3...
moma/comex2
static/js/comex_page_profile_controllers.js
JavaScript
agpl-3.0
8,065
const express = require('express'); const feedr = require('feedr').create(); const router = express.Router(); router.get('/', (req, res) => { feedr.readFeed('https://blog.schul-cloud.org/rss', { requestOptions: { timeout: 2000 }, }, (err, data) => { let blogFeed; try { blogFeed = data.rss.channel[0].item ...
schul-cloud/schulcloud-client
controllers/blog.js
JavaScript
agpl-3.0
906
/* test/auth_route_spec.js -- test Authentication helper * Copyright 2014 Sergei Ianovich * * Licensed under AGPL-3.0 or later, see LICENSE * Process Control Service Web Interface */ var expect = require('expect.js'); var Routes = require('../routes/_auth'); var User = require('../models/user'); describe('Authen...
yanovich/pcs-web
test/auth_routes_test.js
JavaScript
agpl-3.0
2,558
/** * Model for Devices */ Ext.define('FHEM.model.DeviceModel', { extend: 'Ext.data.Model', fields: [ { name: 'DEVICE', type: 'text' } ] });
joergps/SmartLogistics
fhem/www/frontend/www/frontend/app/model/DeviceModel.js
JavaScript
agpl-3.0
198
/* Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'image2', 'sq', { alt: 'Tekst Alternativ', btnUpload: 'Dërgo në server', captioned: 'Captioned image', // MISSING captionPlaceholder: 'Cap...
afshinnj/php-mvc
assets/framework/ckeditor/plugins/image2/lang/sq.js
JavaScript
agpl-3.0
790
/* * This file is part of huborcid. * * huborcid 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. * * huborcid is distrib...
Cineca/OrcidHub
src/main/webapp/bower_components/modernizr/feature-detects/gamepad.js
JavaScript
agpl-3.0
1,299
'use strict'; // Load modules const i18n = require('../services/i18n'); const fs = require('fs'); var dateFormat = require('dateformat'); const Remarkable = require('remarkable'); const path = require('path'); const logger = require('../services/logger'); const config = require('../config/config'); const _ = require('...
BreakOutEvent/breakout-frontend
src/server/services/helpers.js
JavaScript
agpl-3.0
12,022
define(function(require) { 'use strict'; var _ = require('underscore'); var PIXI = require('pixi'); var ArrowView = require('common/v3/pixi/view/arrow'); var Constants = require('constants'); var EFieldDetectorArrowView = ArrowView.extend({ initialize: function(options) { ...
Connexions/simulations
capacitor-lab/src/js/views/e-field-detector-arrow.js
JavaScript
agpl-3.0
3,929
import * as R from 'ramda'; import { getPatchPath } from 'xod-project'; import { isAmong } from 'xod-func-tools'; import { def } from './types'; import { CHANGE_TYPES } from './constants'; const isEqualPatchPaths = def( 'isEqualPatchPaths :: Patch -> Patch -> Boolean', R.useWith(R.equals, [getPatchPath, getPatchP...
xodio/xod
packages/xod-fs/src/patchDiff.js
JavaScript
agpl-3.0
1,762
import 'mad/model/model'; import 'mad/model/serializer/cake_serializer'; /** * @inherits {mad.Model} * @parent index * * The GroupUser model * * @constructor * Creates a groupUser * @param {array} options * @return {passbolt.model.GroupUser} */ var GroupUser = passbolt.model.GroupUser = mad.Model.extend('pa...
et304383/passbolt_api
app/webroot/js/app/model/group_user.js
JavaScript
agpl-3.0
3,555
// Xiongxiong // Bearer token codec // AGPLv3 or later // Copyright (c) 2014, 2015 Genome Research Limited var crypto = require('crypto'); module.exports = function(/* privateKey, lifetime, algorithm OR hash */) { var privateKey, lifetime, algorithm, xiongxiong; // Parse arguments if (arguments.length) ...
wtsi-hgi/xiongxiong
index.js
JavaScript
agpl-3.0
5,003
//{block name="backend/create_backend_order/controller/main"} // Ext.define('Shopware.apps.SwagBackendOrder.controller.Main', { /** * extends from the standard ExtJs Controller */ extend: 'Ext.app.Controller', snippets: { error: { customer: '{s namespace="backend/swag_backend...
GerDner/luck-docker
engine/Shopware/Plugins/Default/Backend/SwagBackendOrder/Views/backend/swag_backend_order/controller/main.js
JavaScript
agpl-3.0
30,375
// Generated by CoffeeScript 1.7.1 var Application, Manifest, americano; americano = require('americano-cozy'); Manifest = require('../lib/manifest').Manifest; module.exports = Application = americano.getModel('Application', { name: String, displayName: String, description: String, slug: String, state: Str...
goofy-bz/cozy-home
build/server/models/application.js
JavaScript
agpl-3.0
2,446
OC.L10N.register( "files_sharing", { "Server to server sharing is not enabled on this server" : "Ο διαμοιρασμός μεταξύ διακομιστών δεν έχει ενεργοποιηθεί σε αυτόν το διακομιστή", "The mountpoint name contains invalid characters." : "Το όνομα σημείου προσάρτησης περιέχει μη έγκυρους χαρακτήρες.", "No...
jacklicn/owncloud
apps/files_sharing/l10n/el.js
JavaScript
agpl-3.0
13,441
o2.xApplication.ConfigDesigner.options = { "multitask": true, "executable": false }; o2.xDesktop.requireApp("ConfigDesigner", "Script", null, false); o2.require("o2.xDesktop.UserData", null, false); o2.xApplication.ConfigDesigner.Main = new Class({ Extends: o2.xApplication.Common.Main, Implements: [Opti...
o2oa/o2oa
o2web/source/x_component_ConfigDesigner/Main.js
JavaScript
agpl-3.0
31,320
define(function(require) { 'use strict'; var _ = require('underscore'); var PIXI = require('pixi'); var PixiView = require('common/v3/pixi/view'); var Colors = require('common/colors/colors'); var Vector2 = require('common/math/vector2'); var Constants = require('constants'); ...
Connexions/simulations
geometric-optics/src/js/views/rays.js
JavaScript
agpl-3.0
15,136
function P(x, y) { return { x: x, y: y }; } function MapAnimFactory(type, args) { let func = null, glitched = false, origArgs = [...args]; switch(type) { case "sw": func = StandardWalk; break; case "dw": func = DiffWalk; break; case "as": func = AnimSeries; break; case "ds": func...
HauntedBees/Farming-Fantasy
js/animation/mapAnims.js
JavaScript
agpl-3.0
20,858
'use strict'; angular.module('BattleShipApp.directives', []). directive('appVersion', ['version', function (version) { return function (scope, elm, attrs) { elm.text(version); }; }]);
msavencov/academy.battleship
Academy.BattleShip.Web/App/directives.js
JavaScript
agpl-3.0
221
define('jst/ExternalTools/ExternalToolsCollectionView', ["compiled/handlebars_helpers"], function (Handlebars) { var template = Handlebars.template, templates = Handlebars.templates = Handlebars.templates || {}; templates['ExternalTools/ExternalToolsCollectionView'] = template(function (Handlebars,depth0,helpers,pa...
owly/canvassy
public/javascripts/jst/ExternalTools/ExternalToolsCollectionView.js
JavaScript
agpl-3.0
787
import React from 'react'; import Head from '../components/head'; import '../styles/custom.css'; const Resume = () => ( <div className="resume-page"> <Head /> <iframe frameBorder="0" className="resume-frame" src="https://souvik.me/resume.pdf"></iframe> <style jsx>{` .resume-frame { ...
souvik1997/website
frontend/pages/resume.js
JavaScript
agpl-3.0
572
/* This file is part of Aaron Rest Server. Aaron Rest Server 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. Aaron Rest Server is ...
ldbib/aaron-rest-server
routes/permissions.js
JavaScript
agpl-3.0
3,450
var assert = require('assert') , FeedParser = require('../') , feedparser = new FeedParser() , feed = __dirname + '/feeds/unknown-namespace.atom' , meta = {} , articles = {} ; describe('feedparser', function(){ describe('nondefaultnamespace Test case 3: default namespace Atom; XHTML namespace mapped to a...
mariuz/atom-reader
tests/node_modules/feedparser/test/nondefaultNamespaces-05.js
JavaScript
agpl-3.0
2,141
OC.L10N.register( "files", { "Storage is temporarily not available" : "Lagring är tillfälligt inte tillgänglig", "Storage invalid" : "Lagring ogiltig", "Unknown error" : "Okänt fel", "File could not be found" : "Fil kunde inte hittas", "Move or copy" : "Flytta eller kopiera", "Download" ...
andreas-p/nextcloud-server
apps/files/l10n/sv.js
JavaScript
agpl-3.0
15,263
function mainPlayer() { this.x = 100; this.y = 200; this.d = "u"; // "d", "l", "r", and combinations? this.sword = false; this.walking = false; this.bomb = false; this.bow = false; this.keyFrameRow = 0; this.keyFrame = 0; this.keyFrameN = 4; this.updateFrameN = 2; this.updateFrameDelay = 0; ...
abetusk/dolor
html/js/game/.save/cp3/main_player.js
JavaScript
agpl-3.0
14,224
$(document).ready(function() { // Hide GNU-cat $('#loading').hide(); // jQuery cycle plugin usage for screenshot slideshow $('.slideshow').cycle({ fx: 'fade', speed: 1000, timeout: 6000, }); // Show GNU-cat when the submit button is pressed $('input#submit'...
FOSSRIT/charsheet
charsheet/static/js/home.js
JavaScript
agpl-3.0
1,178
/* Copyright (c) 2010, Yahoo! Inc. All rights reserved. Code licensed under the BSD License: http://developer.yahoo.com/yui/license.html version: 3.3.0 build: 3167 */ YUI.add("lang/datatype-date-format_fi",function(a){a.Intl.add("datatype-date-format","fi",{"a":["su","ma","ti","ke","to","pe","la"],"A":["sunnunta...
RajkumarSelvaraju/FixNix_CRM
jssource/src_files/include/javascript/yui3/build/datatype/lang/datatype-date-format_fi.js
JavaScript
agpl-3.0
839
(function($){ $.fn.extend({ renderChart: function() { return this.each(function() { var $chart = $(this); if ($chart.children().length > 0) return; var data = $.parseJSON($chart.html()); var saveHTML = $chart.html(); $chart.html('').show().parent(); ...
ritchiea/fluxx_engine
public/javascripts/src/fluxx.visualizations.js
JavaScript
agpl-3.0
3,923