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
/** * ----------------------------------------------------------------------------- * @package smartVISU * @author Martin Gleiß * @copyright 2012 - 2015 * @license GPL [http://www.gnu.de] * ----------------------------------------------------------------------------- */ /** * Class for controll...
lbernau/smartVISU-deprecated
driver/io_smarthome.py.js
JavaScript
gpl-3.0
5,820
{ aboutMessage: "Über ProjecQtOr …", aboutMessageLocale: "Lokal", aboutMessageWebsite: "Webseite", AccessProfile: "Zugriffsprofile", accessProfileGlobalCreator: "Ersteller+", accessProfileGlobalManager: "Manager+", accessProfileGlobalReader: "Leser+", accessProfileGlobalUpdater: "Änderer+", accessProfileNoAccess: "Kein...
nikochan2k/projeqtor-ja
tool/i18n/nls/de/lang.js
JavaScript
gpl-3.0
84,654
// Core functionality inspired by http://www.ghosthorses.co.uk/production-diary/super-simple-responsive-progress-bar/ jQuery(function($) { moveProgressBar(); $(window).resize(function() { moveProgressBar(); }); function moveProgressBar() { $('.rprogress-wrap').each(function(i, e) { var ge...
wp-plugins/responsive-progress-bar
assets/js/responsive-progressbar.js
JavaScript
gpl-3.0
642
import Modal from '../../src/modal' import EventHandler from '../../src/dom/event-handler' import ScrollBarHelper from '../../src/util/scrollbar' /** Test helpers */ import { clearBodyAndDocument, clearFixture, createEvent, getFixture, jQueryMock } from '../helpers/fixture' describe('Modal', () => { let fixtureEl ...
kmcurry/3Scape
public/bower_components/bootstrap/js/tests/unit/modal.spec.js
JavaScript
gpl-3.0
35,285
/** * Dokuwiki Namespaced template java file * * @link https://www.dokuwiki.org/template:namespaced * @author Simon DELAGE <sdelage@gmail.com> * @license GPL 2 (https://www.gnu.org/licenses/gpl-2.0.html) * * Here comes java magic * * We handle several device classes based on browser width. * - desktop: ...
geekitude/dokuwiki-template-namespaced
script.js
JavaScript
gpl-3.0
4,265
const teams = [ { id: "sln", full: "St. Louis Cardinals", location: "St. Louis", nickname: "Cardinals", }, { id: "mil", full: "Milwaukee Brewers", location: "Milwaukee", nickname: "Brewers", }, { id: "atl", full: "Atlanta Braves", location: "Atlanta", nickname: "Braves", }, { id: "nyn...
Conrad2134/pitchfx
src/teams.js
JavaScript
gpl-3.0
2,914
"use strict"; const { BrowserWindow } = require("electron"); module.exports = (dirname, storage) => { let win; let init = () => { if (win === null || win === undefined) { createWindow(); } }; let createWindow = () => { const { screen } = require("electron"); ...
Toinane/colorpicker
src/browsers/support.js
JavaScript
gpl-3.0
950
define(['backbone'], function(Backbone){ var Role = Backbone.Model.extend({ idAttribute: 'UID', url: '/api/role' }); var role = new Role(); role.fetch(); return role; });
gsmlg/oneblog
app/assets/javascript/app/role.js
JavaScript
gpl-3.0
207
"use strict"; var TransitionHookPhase; (function (TransitionHookPhase) { TransitionHookPhase[TransitionHookPhase["CREATE"] = 0] = "CREATE"; TransitionHookPhase[TransitionHookPhase["BEFORE"] = 1] = "BEFORE"; TransitionHookPhase[TransitionHookPhase["RUN"] = 2] = "RUN"; TransitionHookPhase[TransitionHookPh...
DigitalCookiesGroup/SWEDesigner
Front-End/node_modules/@uirouter/core/lib/transition/interface.js
JavaScript
gpl-3.0
852
import Ember from 'ember'; import { module, test } from 'qunit'; import startApp from 'azureexplorer/tests/helpers/start-app'; module('Integration | Notifications', { afterEach: function() { Ember.run(this.application, 'destroy'); this.store = null; } }); test('Notifications show up for batch ...
ritazh/xplat
tests/acceptance/notification-test.js
JavaScript
gpl-3.0
1,845
// sparkly effect for xmas stuff // a blue icey glow with occasional sparkles // sparkles led.led_rnd(0, led.leds); led.color(255, 255, 255); led.fade_mode(2); led.fade_speed(20); led.draw(); //blue glow led.repeat_begin_rnd(0,100); led.led_rnd(0, led.leds); led.color_rnd(0, 0, 0, 0, 100, 250); led.fade_mode(1); le...
psy0rz/ledanim
web/repo/xmas/sparkle.js
JavaScript
gpl-3.0
390
export default { div: 'Div', aside: 'Aside', main: 'Main', h1: 'Heading', h2: 'Heading', h3: 'Heading', h4: 'Heading', h5: 'Heading', h6: 'Heading', p: 'Paragraph', span: 'Span', ul: 'Unordered List', li: 'List Item', img: 'Image', strong: 'Strong Text', e...
builify/builify
src/javascript/components/canvas/click-toolbox/html-tagnames.js
JavaScript
gpl-3.0
512
// watch "use strict"; module.exports = { options: { livereload: false }, // docs: { // files: [ // "<%= pkg.source %>" + "/javascript/**/*.js" // ], // tasks: [ // "docs" // ] // }, js: { files: [ "<%= pkg.source ...
LOA-SEAD/cuidando-bem
grunt/options/watch.js
JavaScript
gpl-3.0
1,178
/* Copyright 2010-2012 Infracom & Eurotechnia (support@webcampak.com) This file is part of the Webcampak project. Webcampak 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 License, or (a...
Webcampak/v2.0
src/www/interface/dev/app/controller/dashboard/SourceDiskUsage.js
JavaScript
gpl-3.0
5,637
var NAVTREEINDEX1 = { "var__init_8h.html#a0764b32f40bbe284b6ba2a1fee678d6c":[2,0,0,16,4], "var__init_8h.html#a2fd24bcbadb8b59c176dccc6f13250e9":[2,0,0,16,3], "var__init_8h.html#a3482785bd2a4c8b307f9e0b6f54e2c36":[2,0,0,16,8], "var__init_8h.html#a6b57f01d3c576db5368dd0efc2f435a4":[2,0,0,16,1], "var__init_8h.html#a78fa39...
SimonItaly/duckhunt
doc/html/navtreeindex1.js
JavaScript
gpl-3.0
675
var a00572 = [ [ "Nrf_bootloader", "a00573.html", null ], [ "Nrf_dfu", "a00574.html", null ], [ "Nrf_dfu_transport", "a00575.html", null ], [ "Nrf_bootloader_util", "a00576.html", null ], [ "Ble_sdk_app_bootloader_main", "a00577.html", null ] ];
DroneBucket/Drone_Bucket_CrazyFlie2_NRF_Firmware
nrf51_sdk/Documentation/s120/html/a00572.js
JavaScript
gpl-3.0
265
import React from 'react'; import Grafico from './Grafico'; class Grafici extends React.Component { render() { return ( <div> <h5 className="mt-3">Grafici</h5> <Grafico titolo="Latenza" xtitle="Misurazioni" ytitle="ms" label="Ping" data={this.props.dataPing} colors={["#ffc107"]}/> <...
fondazionebordoni/misurainternet-ui
src/Grafici.js
JavaScript
gpl-3.0
633
var searchData= [ ['ajoutercarte',['ajouterCarte',['../interface_small_world_1_1_inter_monteur_partie.html#a473c91ad26ee485f07261df1fcae0e8b',1,'SmallWorld.InterMonteurPartie.ajouterCarte()'],['../class_small_world_1_1_monteur_partie.html#ad8cedb326193c0f0ff5f2d6705867156',1,'SmallWorld.MonteurPartie.ajouterCarte()']...
damien-cremilleux/SmallWorld
Documentation/html/search/functions_61.js
JavaScript
gpl-3.0
1,198
/* * 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 mod_fs = require('fs'); var mod_path = require('path'); var mo...
joyent/sdc-hermes
lib/logsets.js
JavaScript
mpl-2.0
2,593
/* * Copyright (c) 2013-2016, The SeedStack authors <http://seedstack.org> * * 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([ 'require', 'modul...
seedstack/w20-business-theme
modules/main.js
JavaScript
mpl-2.0
11,739
/* 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 sp = require('sdk/simple-prefs'); const app = require('sdk/s...
Yukarumya/Yukarum-Redfoxes
addon-sdk/source/test/addons/simple-prefs/lib/main.js
JavaScript
mpl-2.0
5,341
function (user, context, callback) { // dictionary of applications and their related mozillians groups to worry about const applicationGroupMapping = { 'EnEylt4OZW6i7yCWzZmCxyCxDRp6lOY0': 'mozilliansorg_ghe_saml-test-integrations_users', }; const fetch = require('node-fetch@2.6.0'); const AUTH0_TIMEOUT ...
mozilla-iam/auth0-deploy
rules/GHE-Groups.js
JavaScript
mpl-2.0
4,302
var toolURL = { 'application/x-popcorn': 'https://popcorn.webmaker.org', 'application/x-thimble': 'https://thimble.webmaker.org', 'application/x-x-ray-goggles': 'https://goggles.mozilla.org' }; module.exports = function (options) { var moment = require('moment'); var MakeClient = require('makeapi-client'); ...
mozilla/webmaker.org
lib/makeapi.js
JavaScript
mpl-2.0
4,168
// META: timeout=long // META: script=../util/helpers.js // META: script=failures.js run_test(["AES-CTR"]);
mbrubeck/servo
tests/wpt/web-platform-tests/WebCryptoAPI/generateKey/failures_AES-CTR.https.any.js
JavaScript
mpl-2.0
108
/* 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/. */ pvc.BaseChart .add({ /** * A map of {@link pvc.visual.Role} by name. * Do NOT modify the returned ob...
Abpaula/ccc
package-res/ccc/core/base/chart/chart.visualRoles.js
JavaScript
mpl-2.0
7,092
/** * Add a context menu item to borderify the current tab. */ browser.menus.create({ id: "borderify-current-tab", title: "Borderify current tab", contexts: ["all"] }); /** * The borderify CSS. */ const borderCSS = 'body { border: 5px solid red };'; /* * Borderifies the current tab, and, using setTabValue,...
mdn/webextensions-examples
session-state/background.js
JavaScript
mpl-2.0
1,698
define(['Container', 'NumberStyle'], function(Container, NumberStyle) { /** * Percentage, between cow and ship, that the beam should end at * @const * @type number */ var MAX_BEAM_DISTANCE = 100; /** * Percentage, between ship and cow, that the beam should start at * @const * @type number ...
BYU-ODH/vocal-abduction
app/js/Beam.js
JavaScript
mpl-2.0
8,135
var wirelib = (function() { var canvas, context, width, height, lines = [], cx, cy, cz, fl = 250, interval, loopCallback, running; function initWithCanvas(aCanvas) { canvas = aCanvas; if(canvas !== undefined) { width = canvas.width; height = canvas.heig...
heliogabalo/The-side-of-the-source
Codigo/Games/Efects/3D-wirelib/wirelib.js
JavaScript
mpl-2.0
7,221
function listener(details) { let filter = browser.webRequest.filterResponseData(details.requestId); let decoder = new TextDecoder("utf-8"); let encoder = new TextEncoder(); filter.ondata = event => { let str = decoder.decode(event.data, {stream: true}); // Just change any instance of Example in ...
mdn/webextensions-examples
http-response/background.js
JavaScript
mpl-2.0
667
/** * 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 caesar = require("./caesar"); exports["test encrypt/decrypt"] = function(assert) { /* verify decrypting...
jeffreystarr/plainsight-addon
test/test-caesar.js
JavaScript
mpl-2.0
1,791
/** * The title screen. */ // SDK imports import ui.View; import ui.ImageView; import ui.TextView as TextView; import ui.widget.ButtonView as ButtonView; exports = Class(ui.ImageView, function (supr) { this.init = function (opts) { this._config = JSON.parse(CACHE['resources/conf/config.json']); ...
spil-peter-forgacs/weebubble
src/TitleScreen.js
JavaScript
mpl-2.0
1,827
window.onload = function() { // We are the parent. Let's load the test. if (parent == this || location.search.indexOf("worklet_iframe") == -1) { SimpleTest.waitForExplicitFinish(); configureTest().then(() => { var iframe = document.createElement('iframe'); iframe.src = location.href + "?worklet...
Yukarumya/Yukarum-Redfoxes
dom/worklet/tests/common.js
JavaScript
mpl-2.0
604
/*global define*/ define('app/reload-addon-reloaded-per-user', ['lodash', 'TelemetryPromises', 'DevToolsMetrics', 'LatestVersions', 'FIREFOX_RELEASES'], function(_, T, DevToolsMetrics, LatestVersions, FIREFOX_RELEASES) { var metric = 'DEVTOOLS_RELOAD_ADDON_RELOAD_PER_USER_FLAG'; var options = { sanitized: false };...
clarkbw/devtools-metrics
js/app/reload-addon-reloaded-per-user.js
JavaScript
mpl-2.0
1,694
/** * Input Field for JSON-schema type:object. * * 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/. * * This Source Code includes react-jsonschema-form * released u...
mozilla-iot/gateway
static/js/schema-form/object-field.js
JavaScript
mpl-2.0
4,632
/* All emon_widgets code is released under the GNU General Public License v3. See COPYRIGHT.txt and LICENSE.txt. Part of the OpenEnergyMonitor project: http://openenergymonitor.org Author: Trystan Lea: trystan.lea@googlemail.com If you have any questions please get in touch, try the forums here: ...
thaipowertech/emoncms
Modules/vis/widget/vis_render.js
JavaScript
agpl-3.0
9,506
const passport = require('../helpers/auth/passport_factory'); const logger = require('../../lib/logger'); const adminChecker = require('../helpers/auth/request_admin_checker'); const oauthConfig = require('../../config/oauth/oauth_config.js'); module.exports.logout = function(req, res) { req.logout(); res.status(2...
cised-ca/social-enterprise-directory
api/controllers/account_controller.js
JavaScript
agpl-3.0
2,409
import { combineReducers } from 'redux' const FETCH_ENTRIES = 'FETCH_ENTRIES' const RECEIVE_ENTRIES = 'RECEIVE_ENTRIES' const RECEIVE_MORE_ENTRIES = 'RECEIVE_MORE_ENTRIES' const RECEIVE_ERROR = 'RECEIVE_ERROR' const INSERT_ENTRIES = 'INSERT_ENTRIES' const UPDATE_ENTRIES = 'UPDATE_ENTRIES' const DELETE_ENTRY = 'DELETE_...
enguerran/cozy-files-v3
src/photos/ducks/lists/index.js
JavaScript
agpl-3.0
5,918
(function () { 'use strict'; var WindowSize = Class.create({ width: function() { var myWidth = 0; if (typeof(window.innerWidth) == 'number') { //Non-IE myWidth = window.innerWidth; } else if (documen...
boa-project/boa
src/boa/plugins/gui.ajax/res/js/core/DateTimePicker.class.js
JavaScript
agpl-3.0
113,199
importPackage(Packages.tools); var returnTo = new Array(103000100, 103000310); var rideTo = new Array(103000310, 103000100); var trainRide = new Array(103000301, 103000302); var myRide; var returnMap; var exitMap; var map; var onRide; //Time Setting is in millisecond var rideTime = 10 * 1000; function init() { r...
ronancpl/MapleSolaxiaV2
scripts/event/KerningTrain.js
JavaScript
agpl-3.0
2,133
// TriangleCanvas.js import React from 'react'; import Trianglify from 'trianglify'; import './TriangleCanvas.scss'; /** Canvas with Trianglify styling applied, equal in size to current window, can be used as a sweet background. Will automatically size to window's width and height. @prop cellSize: cell_size optio...
uclaradio/uclaradio
client/react/frontpage/components/TriangleCanvas.js
JavaScript
agpl-3.0
1,331
OC.L10N.register( "workflowengine", { "Saved" : "Bewaard", "Saving failed:" : "Opslaan mislukt:", "File MIME type" : "Mimetype bestand", "is" : "is", "is not" : "is niet", "matches" : "komt overeen", "does not match" : "komt niet overeen", "Example: {placeholder}" : "Bijvoorbeeld...
pixelipo/server
apps/workflowengine/l10n/nl.js
JavaScript
agpl-3.0
3,565
/* * _ _ _ * | | | | | | * | | __ _| |__ ___ ___ __ _| |_ Labcoat (R) * | |/ _` | '_ \ / __/ _ \ / _` | __| Powerful development environment for Quirrel. * | | (_| | |_) | (_| (_) | (_| | |_ Copyright (C) 2010 - 2013...
precog/labcoat-legacy
js/ace/model/editor.js
JavaScript
agpl-3.0
3,492
import { t } from '@lingui/macro'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import { SpellIcon } from 'interface'; import { SpellLink } from 'interface'; import Analyzer, { SELECTED_PLAYER } from 'parser/core/Analyzer'; import Events from 'parser/core/Events'; import { Thres...
anom0ly/WoWAnalyzer
analysis/monkbrewmaster/src/modules/spells/BlackoutCombo.js
JavaScript
agpl-3.0
4,812
$(document).ready(function () { var pathArray = window.location.pathname.split( '/' ); var targetname = pathArray[pathArray.length -1]; $('#targetloglist').DataTable({ 'paging' : true, 'lengthChange': false, 'searching' : true, 'ordering' : true, 'order...
LibrIT/passhport
passhweb/app/static/librit/scripts/target_lastconnections.js
JavaScript
agpl-3.0
682
const { GenericCommand } = require('../../models/') const videos = [ 'https://www.pornhub.com/view_video.php?viewkey=ph5a5a31a130d7b', 'https://www.pornhub.com/view_video.php?viewkey=ph5925ca42189b1', 'https://www.pornhub.com/view_video.php?viewkey=ph58a2743e7bc0a', 'https://www.pornhub.com/view_video.php?viewk...
melmsie/Dank-Memer
src/commands/nsfwCommands/mcporn.js
JavaScript
agpl-3.0
1,202
/* Copyright 2011 Daniel Lombraña González Users_Widget.js is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by Free Software Foundation, either version 3 of the License, or (at your option) any later version. Users_Widget.js is distribu...
teleyinex/boinc-widgets
project_stats.js
JavaScript
agpl-3.0
4,398
/** * Copyright (C) 2013-2014 Spark Labs, Inc. All rights reserved. - https://www.spark.io/ * * This program 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 Software Foundation. * * This program ...
SreejitS/spark-server
views/api_v1.js
JavaScript
agpl-3.0
18,143
import loadPolyfills from '../mastodon/load_polyfills'; import ready from '../mastodon/ready'; window.addEventListener('message', e => { const data = e.data || {}; if (!window.parent || data.type !== 'setHeight') { return; } ready(() => { window.parent.postMessage({ type: 'setHeight', id:...
WitchesTown/mastodon
app/javascript/packs/public.js
JavaScript
agpl-3.0
4,984
'use strict'; define(['bitcoinjs-lib', 'crypto-js', 'sjcl'], function(Bitcoin, CryptoJS, sjcl) { function TLCrypto() { } TLCrypto.wordsToBytes = function(words) { var bytes = [] for (var b = 0; b < words.length * 32; b += 8) { bytes.push((words[b >>...
arcbit/arcbit-web
src/js/model/TLCrypto.js
JavaScript
agpl-3.0
1,918
/*global plupload */ /*global qiniu */ function FileProgress(file, targetID) { this.fileProgressID = file.id; this.file = file; this.opacity = 100; this.height = 0; this.fileProgressWrapper = $('#' + this.fileProgressID); if (!this.fileProgressWrapper.length) { // <div class="...
edxzw/edx-platform
cms/static/cms/js/ui.js
JavaScript
agpl-3.0
16,012
OC.L10N.register( "settings", { "Enabled" : "Aktiviert", "Not enabled" : "Nicht aktiviert", "Wrong password" : "Falsches Passwort", "Saved" : "Gespeichert", "No user supplied" : "Kein Benutzer angegeben", "Unable to change password" : "Passwort konnte nicht geändert werden", "Authent...
whitekiba/server
settings/l10n/de_DE.js
JavaScript
agpl-3.0
36,870
/* Copyright 2008 Clipperz Srl This file is part of Clipperz Community Edition. Clipperz Community Edition is a web-based password manager and a digital vault for confidential data. For further information about its features and functionalities please refer to http://www.clipperz.com * Clipperz Community Edition is ...
weisslj/clipperz-communityEdition
js/src/Clipperz/PM/Components/Panels/ContactsPanel.js
JavaScript
agpl-3.0
3,757
import mongoose from 'mongoose'; import Boom from 'boom'; import Bounce from 'bounce'; import { log, logErr } from '../../shared/utils'; import eventStore from '../stores/eventStore'; import alertStore from '../stores/alertStore'; import userStore from '../stores/userStore'; const ObjectId = mongoose.Types.ObjectId; ...
Cosecha/redadalertas-api
src/server/app/api/controllers/alertController.js
JavaScript
agpl-3.0
3,644
import ENV from 'irene/config/environment'; class ENVHandler { constructor(envHandlerConst) { this.envHandlerConst = envHandlerConst; } isRuntimeAvailable() { return !(typeof runtimeGlobalConfig == 'undefined'); } getEnv(env_key) { const host_key = 'IRENE_API_HOST'; this.assertEnvKey(env_ke...
appknox/irene
app/initializers/irene.js
JavaScript
agpl-3.0
4,399
OC.L10N.register( "deck", { "Deck" : "Deck", "Personal" : "Personal", "Finished" : "Terminado", "To review" : "Para revisar", "Action needed" : "Acción requerida", "Later" : "Después", "copy" : "copiar", "Done" : "Hecho", "The uploaded file exceeds the MAX_FILE_SIZE directive...
nextcloud/deck
l10n/es_AR.js
JavaScript
agpl-3.0
1,856
var error = require('parts/error'); exports.create = function(callback, millisec, cyclic){ if(typeof(setInterval) == 'undefined' &&typeof(setTimeout) == 'undefined') return new error('not supported', 'this platform is not supported timer functionality'); var id = cyclic ? setInterval(callback, millis...
ixdu/capsule
modules/timer.js
JavaScript
agpl-3.0
457
/* * NASA Worldview * * This code was originally developed at NASA/Goddard Space Flight Center for * the Earth Science Data and Information System (ESDIS) project. * * Copyright (C) 2013 - 2014 United States Government as represented by the * Administrator of the National Aeronautics and Space Administration. *...
cchang3/worldview-design
src/animation-module/code/web/js/proj/wv.proj.js
JavaScript
agpl-3.0
885
import Ember from 'ember'; import _validate from 'ember-simple-validate/utils/validate'; import Validator from 'ember-simple-validate/lib/validator'; var get = Ember.get; var set = Ember.set; var validValidator = function(validator) { return validator instanceof Validator; }; export default Ember.Mixin.create({ ...
ChinookBook/ember-simple-validate
addon/mixins/simple-validation-mixin.js
JavaScript
agpl-3.0
2,032
import _ from 'lodash'; import React from 'react'; import {PreviewModal} from '../previewModal'; SendItem.$inject = ['$q', 'api', 'desks', 'notify', 'authoringWorkspace', 'superdeskFlags', '$location', 'macros', '$rootScope', 'deployConfig', 'authoring', 'send', 'editorResolver', 'confirm', 'archiveService', ...
jerome-poisson/superdesk-client-core
scripts/apps/authoring/authoring/directives/SendItem.js
JavaScript
agpl-3.0
35,674
/** The FlamingLayer Class **/ /** * @constructor * @augments Layer * @description The superclass for all flamingolayers * @param id The id of the layer * @param options The options to be given to the layer * @param flamingoObject The flamingo object of the layer * */ Ext.define("viewer.viewer...
mvdstruijk/flamingo
viewer/src/main/webapp/viewer-html/common/viewercontroller/flamingo/FlamingoLayer.js
JavaScript
agpl-3.0
5,324
import React from 'react'; import { DragSource, DropTarget } from 'react-dnd'; import { compose } from 'redux'; import DragDropItemTypes from './DragDropItemTypes'; import { HeaderDeleted, HeaderNormal } from './SampleDetailsContainersAux'; const orderSource = { beginDrag(props) { const { container, sample } = p...
ComPlat/chemotion_ELN
app/packs/src/components/SampleDetailsContainersDnd.js
JavaScript
agpl-3.0
2,510
var round = function(number, increment, offset) { return Math.ceil((number - offset) / increment) * increment + offset; }; Partup.client.chatmessages = { groupByDelay: function(messages, options) { var delay = options.seconds ? options.seconds * 1000 : 1000; var outputArray = []; messag...
part-up/part-up
app/packages/partup-client-base/client/chatmessages.js
JavaScript
agpl-3.0
2,893
define(function (require) { 'use strict'; var Vector2 = require('vector2-node'); /** * Returns a new unit vector in the direction specified by the angle */ Vector2.fromAngle = function(angle) { return new Vector2(1, 0).rotate(angle); }; Vector2.prototype.toString = function(pr...
Connexions/simulations
common/math/vector2.js
JavaScript
agpl-3.0
731
const ERR = require('async-stacktrace'); const _ = require('lodash'); const async = require('async'); const sqldb = require('../prairielib/lib/sql-db'); module.exports = { pages(chosenPage, count, pageSize) { let lastPage = Math.ceil(count / pageSize); if (lastPage === 0) lastPage = 1; let currPage = N...
PrairieLearn/PrairieLearn
lib/paginate.js
JavaScript
agpl-3.0
1,786
define("imcms-templates-tab-builder", [ "imcms-bem-builder", "imcms-components-builder", "imcms-templates-rest-api", "imcms-document-types", "imcms-i18n-texts", "imcms-page-info-tab" ], function (BEM, components, templatesRestApi, docTypes, texts, PageInfoTab) { texts = texts.pageIn...
imCodePartnerAB/imcms
src/main/webapp/imcms/js/builders/components/page_info_tabs/imcms-templates-tab-builder.js
JavaScript
agpl-3.0
2,976
/* This file is part of ContentManager. ContentManager 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 License, or (at your option) any later version. ContentManager is distributed ...
siddharthadeshpande89/jive-content-manager
apps/content_manager/public/javascripts/helpers/messageViewHandler.js
JavaScript
agpl-3.0
2,511
var origShow = jQuery.fn.show, origHide = jQuery.fn.hide; jQuery.fn.show = function() { $(this).removeClass("hidden"); return origShow.apply(this, arguments); }; jQuery.fn.hide = function() { $(this).addClass("hidden"); return origHide.apply(this, arguments); }; $.ajaxSetup({ cache: false }); func...
kolplex/cunity
style/CunityRefreshed/javascript/cunity-core.js
JavaScript
agpl-3.0
14,280
/* Code for Life Copyright (C) 2015, Ocado Innovation Limited 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 pro...
mikebryant/rapid-router
game/static/game/js/blocklyCustomBlocks.js
JavaScript
agpl-3.0
20,655
/** * Copyright (C) 2016 Jorge Campos Serrano. * * This program 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 Software Foundation. * * This program is distributed in the hope that it will be ...
jcamposs/coderoom
client/templates/notifications/notifications_widget.js
JavaScript
agpl-3.0
1,772
/** * This file is part of RLO-Plan. * * Copyright 2009, 2010 Tillmann Karras, Josua Grawitter * * RLO-Plan 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 * ...
gwater/rlo-plan
entry.js
JavaScript
agpl-3.0
16,345
'use strict'; define(function(require) { var Backbone = require('backbone'), routes = require('routes'), GroupModel = require('model/groups/group-model'); var GroupsList = Backbone.Collection.extend({ model: GroupModel, url: routes.absoluteUrl(routes.GROUPS_DATA), fetc...
hflabs/perecoder
rcd-web/src/main/javascript/app/model/groups/groups-list.js
JavaScript
agpl-3.0
619
/** @jsx React.DOM */ 'use strict'; var Lazy = require('lazy.js'), React = require('react'), ReactIntlMixin = require('react-intl'); var EnumerationControl = React.createClass({ mixins: [ReactIntlMixin], propTypes: { default: React.PropTypes.string, error: React.PropTypes.string, label: React.Pr...
openfisca/openfisca-web-ui
openfisca_web_ui/static/js/components/test-case/form/enumeration-control.js
JavaScript
agpl-3.0
1,605
var searchData= [ ['unknown',['UNKNOWN',['../classtetgenmesh.xhtml#a1d02bed7b59566d57b896776d78a6b25a51233a7db87ef44baab2026b0ebdf22f',1,'tetgenmesh']]], ['unusedvertex',['UNUSEDVERTEX',['../classtetgenmesh.xhtml#ad0458f823a5eef2de89c7fae067aa2aca1d0b671fcad449d30b826305df861a52',1,'tetgenmesh']]] ];
vroland/SimpleAnalyzer
doc/html/search/enumvalues_75.js
JavaScript
agpl-3.0
306
/* * Latch integration for Meteor framework * Copyright (C) 2015 Bruno Orcha García <gimcoo@gmail.com> * * This library 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...
gimco/meteor-accounts-ui-latch
accounts_ui_latch.js
JavaScript
lgpl-2.1
2,278
/* * This file is part of Cockpit. * * Copyright (C) 2015 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...
cockpituous/cockpit
pkg/lib/journal.js
JavaScript
lgpl-2.1
19,214
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://www...
Copix/Copix3
www/js/FCKeditor/fckconfig.js
JavaScript
lgpl-2.1
13,198
export function convertRawMessage(rawMessage, currentThreadID) { return { ...rawMessage, date: new Date(rawMessage.timestamp), isRead: rawMessage.threadID === currentThreadID }; }; export function getCreatedMessageData(text, currentThreadID) { var timestamp = Date.now(); return { id: 'm_' + tim...
DravitLochan/accounts.susi.ai
src/utils/ChatMessageUtils.js
JavaScript
lgpl-2.1
986
import {Inject, Injectable} from 'app/app'; import {BootstrapService} from 'services/bootstrap-service'; import {UserService} from 'security/user-service'; import {Eventbus} from 'services/eventbus/eventbus'; import {PersonalMailboxUpdatedEvent} from 'idoc/system-tabs/mailbox/events/personal-mailbox-updated-event'; imp...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/src/idoc/system-tabs/mailbox/services/personal-mailbox-info-observer/personal-mailbox-info-observer.js
JavaScript
lgpl-3.0
1,622
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js"> /** * Cloud Sync Status Information * */ function main() { AlfrescoUtil.param("nodeRef"); AlfrescoUtil.param("site", "defaultSite"); AlfrescoUtil.param("rootPage", "documentlibrary"); AlfrescoUtil.param("...
loftuxab/community-edition-old
projects/slingshot/config/alfresco/site-webscripts/org/alfresco/components/node-details/node-path.get.js
JavaScript
lgpl-3.0
650
/* global shoproot */ /** * 编辑分类 * @description Hope You Do Good But Not Evil * @copyright Copyright 2014-2015 <ycchen@iwshop.cn> * @license LGPL (http://www.gnu.org/licenses/lgpl.html) * @author Chenyong Cai <ycchen@iwshop.cn> * @package Wshop * @link http://www.iwshop.cn */ requirejs([...
mentallxm/iwshop
static/script/Wdmin/products/alter_categroy.js
JavaScript
lgpl-3.0
2,214
module.exports = require("protobufjs").newBuilder({})["import"]({ "package": "textsecure", "messages": [ { "name": "IncomingPushMessageSignal", "fields": [ { "rule": "optional", "options": {}, "type": "Ty...
joebandenburg/textsecure-server-node
lib/IncomingPushMessageSignalProtos.js
JavaScript
lgpl-3.0
7,889
var class_catharsis_1_1_domain_1_1_web_link_1_1_schema = [ [ "ColumnCommentCreatedOn", "class_catharsis_1_1_domain_1_1_web_link_1_1_schema.html#acf10a3ba60a74862f0f6c5693d4274b1", null ], [ "ColumnCommentDescription", "class_catharsis_1_1_domain_1_1_web_link_1_1_schema.html#a253b5a08698b9031bad6693e58d70276", n...
prokhor-ozornin/Catharsis.NET.Domain
doc/html/class_catharsis_1_1_domain_1_1_web_link_1_1_schema.js
JavaScript
lgpl-3.0
2,104
var class_hydro_couple_1_1_spatial_1_1_i_raster = [ [ "RasterDataType", "d8/d5b/class_hydro_couple_1_1_spatial_1_1_i_raster.html#ae3ea6483d22355c7d6b8aaa268359d57", [ [ "Unknown", "d8/d5b/class_hydro_couple_1_1_spatial_1_1_i_raster.html#ae3ea6483d22355c7d6b8aaa268359d57a6b6a05fc6ca4f23a7946b2a71e6745a2", null...
HydroCouple/hydrocouple.github.io
hydrocoupledocs/html/d8/d5b/class_hydro_couple_1_1_spatial_1_1_i_raster.js
JavaScript
lgpl-3.0
2,993
(function (window, $, undefined) { $.infinitescroll = function infscr(options, callback, element) { this.element = $(element); this._create(options, callback); }; $.infinitescroll.defaults = { loading: { finished: undefined, finishedMsg: "", img: "...
yesan/Spacebuilder
Web/Scripts/jquery/masonry/jquery.infinitescroll.js
JavaScript
lgpl-3.0
17,301
/* Copyright 2007-2011 B3Partners BV. This program is distributed under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License along with this software. If not, see http://www.gnu.org/licenses/gpl.html This program is free software: you can redistribute it and/...
B3Partners/gisviewerConfig
src/main/webapp/scripts/commonfunctions.js
JavaScript
lgpl-3.0
24,486
if (typeof ui == 'undefined') var ui = {}; ui.Template = { reg_vaild_preceding_chars: '(?:[^-\\/"\':!=a-zA-Z0-9_]|^)', reg_url_path_chars_1: '[a-zA-Z0-9!\\*\';:=\\+\\$/%#\\[\\]\\?\\-_,~\\(\\)&\\.`@]', reg_url_path_chars_2: '[a-zA-Z0-9!\':=\\+\\$/%#~\\(\\)&`@]', reg_url_proto_chars: '([a-zA-Z]+:\\/\\/|www\\.)', reg_...
AshKyd/Hotot
data/js/ui.template.js
JavaScript
lgpl-3.0
59,989
var default_window_options = { autoOpen: false, width: 750, height: 450, modal: true, resizable: false }; function applyNotificationStyles() { $('.error').each(function() { $(this).addClass('ui-state-error ui-corner-all'); $(this).prepend('<span class="ui-icon ui-icon-alert"></s...
mariajosefrancolugo/osp
osp/media/js/base.js
JavaScript
lgpl-3.0
1,553
let idCounter = 0; function nextId() { return ++idCounter; } // if the platform throws an exception, the worker will kill & restart it, however if a callback comes in there could // be a race condition which tries to still access session functions which have already been terminated by the worker. // this function ...
sockethub/sockethub-platform-xmpp
lib/incoming-handlers.js
JavaScript
lgpl-3.0
7,988
/** * Gulp Task HTML * @author kuakman <3dimentionar@gmail.com> **/ let fs = require('fs-extra'); let _ = require('underscore'); let spawnSync = require('child_process').spawnSync; module.exports = function(package, args) { return () => { return spawnSync('./node_modules/.bin/pug', [ '--path', './src/html', '...
kuakman/app-start-pipeline
scripts/html.js
JavaScript
unlicense
526
function nSplit(msg, n) { let expr = new RegExp(".{1," + n + "}", "g"); let presplit = msg.match(expr); let twoSplit = presplit.map((x) => { if (x.length != n) { let i = 0; let ret = ""; while (i < n - x.length) { ret += " "; i++ ...
ConflictingTheories/scripts
javascript/lib/nSplit.js
JavaScript
unlicense
2,366
#!/usr/local/bin/elev8 var EXPAND_BOTH = { x : 1.0, y : 1.0 }; var FILL_BOTH = { x : -1.0, y : -1.0 }; var logo_icon = elm.Icon ({ image : elm.datadir + "data/images/logo_small.png", }); var logo_icon_unscaled = elm.Icon ({ image : elm.datadir + "data/images/logo_small.png", resizable_up : false, res...
maikodaraine/EnlightenmentUbuntu
bindings/elev8/data/javascript/radio.js
JavaScript
unlicense
2,132
$.extend(window.lang_fa, { "helpStop": "متوقف کردن آموزش", });
trollderius/wouldyourather_phonegap
www/~commons/modules/tutorial/lang/fa.js
JavaScript
unlicense
76
'use strict'; function ProfileSearch(injector) { var service = this; service.list = function(params) { var connection = injector.connection; var ProfileModel = injector.ProfileModel; var profileSearch = new ProfileModel(); var page = params.page || 1; var where = params.where || [];...
luiz-simples/kauris
server/src/profile/profile.search.js
JavaScript
unlicense
703
var net = require('net') var chatServer = net.createServer(), clientList = [] chatServer.on('connection', function(client) { client.name = client.remoteAddress + ':' + client.remotePort client.write('Hi ' + client.name + '!\n'); console.log(client.name + ' joined') clientList.push(client) cl...
mattcoffey/node.js
chatServer.js
JavaScript
unlicense
1,002
/*! * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5) * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/model/FormatException', 'sap/ui/model/odata/type/ODataType', 'sap/ui/model/ParseException', 'sap/...
ghostxwheel/utorrent-webui
resources/sap/ui/model/odata/type/Guid-dbg.js
JavaScript
unlicense
5,646
var assert = require('assert') var path = require('path') var fs = require('fs-extra') var sinon = require('sinon') var broccoli = require('broccoli') var Q = require('q') var Filter = require('..') describe('Filter', function() { var ORIG_DIR = path.join(__dirname, 'files') var DIR = path.join(__dirname, 'files-co...
sunflowerdeath/broccoli-glob-filter
tests/test.js
JavaScript
unlicense
5,011
/** * * This is the "container" for global variables. I made it so we won't have to worry * about "conflicts" with local variable names. * */ var NFL_PICKS_GLOBAL = { /** * Here to store data from the server so we can hopefully load it once and then * get to it whenever it's needed as we're dealing with o...
hhhayssh/nflpicks
src/main/webapp/javascript/nflpicks.js
JavaScript
unlicense
78,271
import React from 'react'; import Moment from 'moment'; import { Embed, Grid } from 'semantic-ui-react'; const VideoDetail = ({video}) => { if (!video){ return <div>Loading...</div>; } const videoId = video.id.videoId; const url = `https://www.youtube.com/embed/${videoId}`; const pubTime = Moment(video.snippet...
suemcnab/react-youtube-pxn-open
src/components/video_detail.js
JavaScript
unlicense
891
/** * [★★★★]200. Number of Islands * finish: 2016-12-06 * https://leetcode.com/problems/number-of-islands/ */ /** * @param {character[][]} grid * @return {number} */ var numIslands = function (grid) { var count = 0, i, j; for (i = 0; i < grid.length; i++) { for (j = 0; j < grid[i].length; j++) {...
wyf2learn/leetcode
problems/algorithms/200.number-of-islands.js
JavaScript
unlicense
1,394
import React from 'react' import { List, ListItem, LiAction, LiSecondary, LiPrimary, LiAvatar, Checkbox, Radio, Switch, Icon, } from 'styled-mdl' const demo = () => ( <List> <ListItem> <LiPrimary> <LiAvatar> <Icon name="person" /> </LiAvatar> Bryan Cran...
isogon/styled-mdl-website
demos/lists/demos/avatarsAndControls.js
JavaScript
unlicense
1,826