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
/* Copyright 2021 Peppy Player peppy.player@gmail.com This file is part of Peppy Player. Peppy Player 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 la...
project-owner/Peppy
web/client/configdev/src/components/Nas.js
JavaScript
gpl-3.0
4,176
import { ConstraintViolationListException } from '../constraint-violation-list.exception' import json from '~/static/__mocks__/violations' describe('Check constraint violation list exception.', () => { it('can get violations list by property.', () => { const constraint = new ConstraintViolationListException(JSON...
eerison/myprofile
client/exception/__tests__/constraint-violation-list.exception.unit.js
JavaScript
gpl-3.0
539
/*! * Piwik - free/libre analytics platform * * @link http://piwik.org * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later */ /** * Converts ngModel value to a number * * Example: * <input type="number" string-to-number>...</div> */ (function () { angular.module('piwikApp.directive').dire...
piwik/piwik
plugins/CoreHome/angularjs/common/directives/string-to-number.js
JavaScript
gpl-3.0
746
var schedule = [ { "id": "session-1", "title": "Registration", "tracks": [1, 2] }, { "id": "session-2", "title": "Moving the Web forward with HTML5", "tracks": [1, 2] }, { "id": "session-3", "title": "Diving in at the deep end with Can...
theglue99/Interface480
Classcontent/Mod03/Labfiles/Starter/Exercise 1/ContosoConf/scripts/pages/schedule.js
JavaScript
gpl-3.0
13,966
/** * Address * * @namespace core * @author Georgi Popov * @version 1.0.0 * @license http://www.gnu.org/licenses/gpl-3.0.en.html GPLv3 * @requires com/magadanski/core/core.js * @requires com/magadanski/core/EventDispatcher.js */ define('com.magadanski.core.Address', function () { var that; // private pro...
magadanskiuchen/com.magadanski.core
Address.js
JavaScript
gpl-3.0
5,406
var searchData= [ ['rstc_5fisr',['rstc_isr',['../group__CM3__nvic__isrprototypes__SAM3U.html#ga956fd7cee38c7b56aa95b9eb69a58c4b',1,'nvic.h']]], ['rtc_5fisr',['rtc_isr',['../group__CM3__nvic__isrprototypes__SAM3U.html#ga0aac539d8cd80c163b7d986d10e53ced',1,'nvic.h']]], ['rtt_5fisr',['rtt_isr',['../group__CM3__nvic_...
Aghosh993/TARS_codebase
libopencm3/doc/sam3u/html/search/functions_6.js
JavaScript
gpl-3.0
400
/* Copyright (C) 2016 PencilBlue, LLC 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 License, or (at your option) any later version. This program is...
v3rt1go/respiro
include/service/media/renderers/trinket_media_renderer.js
JavaScript
gpl-3.0
9,227
var classfr_1_1iessa_1_1dao_1_1trafic_1_1_trafic_dao_test = [ [ "testCharger", "d6/dba/classfr_1_1iessa_1_1dao_1_1trafic_1_1_trafic_dao_test.html#a9954930a0797b788a6efc98512043fc6", null ], [ "testChargerVolArr", "d6/dba/classfr_1_1iessa_1_1dao_1_1trafic_1_1_trafic_dao_test.html#acb7b5fecbe3bbc42f7695ffc5ffe1ad...
avaret/simuroul
doxydoc/html/d6/dba/classfr_1_1iessa_1_1dao_1_1trafic_1_1_trafic_dao_test.js
JavaScript
gpl-3.0
471
/** * * The Touch Action API provides the basis of all gestures that can be automated in Appium. * It is currently only available to native apps and can not be used to interact with webapps. * At its core is the ability to chain together _ad hoc_ individual actions, which will then be * applied to an element in th...
Cy6erlion/wharica
node_modules/webdriverio/lib/commands/touchAction.js
JavaScript
gpl-3.0
10,452
/** * Created by burnualive on 10/12/14. */ var sel = 0; var act_id; var k = 0; var team = []; function t_ch(id) { if(id < 127) { return 1; } else if(id < 253) { return 2; } else if(id < 369) { return 3; } else { return 4; } } function r...
adirola/RPL
public/javascript/rpl_formation.js
JavaScript
gpl-3.0
4,288
var crypto = require('crypto'); var db = require('./database'); function md5 (data) { return crypto.createHash('md5').update(data).digest('hex'); } module.exports = function (email, password, cb) { var users = db.handle.collection('users'); users.findOne( { email: email, $or: [ { password: passw...
n2liquid/expressive
src/auth.js
JavaScript
gpl-3.0
1,846
/* Copyright 2008, Matthias Ehmann, Michael Gerhaeuser, Carsten Miller, Bianca Valentin, Alfred Wassermann, Peter Wilfahrt This file is part of JSXGraph. JSXGraph is free software: you can redistribute it and/or modify it under the terms of the GNU Lesse...
ecastro/moodle23ulpgc
lib/jsxgraph/src/FileReader.js
JavaScript
gpl-3.0
11,679
var ChatServer = require('./src/chat-server.js'); var ChatClient = require('./src/chat-client.js'); new ChatServer().start(); var client = new ChatClient(); client.connect('http://localhost:6000');
AvagArakelyan/chat-server
index.js
JavaScript
gpl-3.0
202
var SsdpClient = require("node-ssdp").Client; var UpnpClient = require('upnp-device-client'); var util = require("util"); var Q = require('q'); var EventEmitter = require("events").EventEmitter; var log = require('loglevel'); var RaumfeldRenderer = require("./RaumfeldRenderer"); var RaumfeldVirtualRenderer = require("....
dennis-hh/node-raumfeld
lib/RaumfeldManager.js
JavaScript
gpl-3.0
3,697
var assert = require("assert"); var Deudnunda = require("../deudnunda.js"); var test = function(iter, test_set) { this.test_set = test_set; this.iter_cnt = parseInt(iter) - 1; this.run = function() { var self = this; describe('TEST' + iter, function() { it('CASE : ' + self.test_set, function(done...
Ajou-masinda/RPi-Node
unit_test/deudnunda_test.js
JavaScript
gpl-3.0
3,706
/* Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'forms', 'ja', { button: { title: 'ボタン プロパティ', text: 'テキスト (値)', type: 'タイプ', typeBtn: 'ボタン', typeSbm: '送信', typeRst: 'リセット' }, check...
tsmaryka/hitc
public/javascripts/ckeditor/plugins/forms/lang/ja.js
JavaScript
gpl-3.0
1,607
import { dict } from './../../actions' const {SET_ALL_FRAMES} = dict const initialState = { frameList: [] } const setAllFrames = (state = initialState, action) => { switch (action.type) { case SET_ALL_FRAMES: return Object.assign({}, state, { frameList: action.payload }); ...
golemfactory/golem-electron
src/reducers/frame/all.js
JavaScript
gpl-3.0
389
"use strict"; /** * Tag * @description :: Model for storing Tag records */ var shortId = require('shortid'); var slug = require('slug'); module.exports = { schema: true, attributes: { id: { type: 'string', unique: true, index: true, defaultsTo: shor...
gcba-odin/odin
api/models/Tag.js
JavaScript
gpl-3.0
1,371
"use strict"; const logger = require("../../logwrapper"); const twitchApi = require("../api"); /** * @typedef TwitchCategory * @property {string} id - The ID of this category * @property {string} name - The name of this category * @property {string} boxArtUrl - The box art or cover image url of this category */ ...
Firebottle/Firebot
backend/twitch-api/resource/categories.js
JavaScript
gpl-3.0
1,974
const Command = require('./command'); const openWeather = require('openweather-apis'); const promisify = require('es6-promisify'); const googleMapsClient = require('@google/maps').createClient({ key: process.env.GOOGLE_MAPS_KEY }); //Set up weather openWeather.setLang('en'); openWeather.setUnits('imperial'); openWeat...
moondog94/fido-bot
commands/weather.js
JavaScript
gpl-3.0
3,096
angular .module('myApp') .config(function($stateProvider, $urlRouterProvider){ $stateProvider .state('home', { url: '/home', templateUrl: 'views/home.html', controller: 'MainCtrl' }) .state('login', { url: '/login', templateUrl: 'views/login.html', ...
ThisIsTyDell/sound-genie
app/assets/javascripts/routes.js
JavaScript
gpl-3.0
1,862
if (!String.prototype.format) { String.prototype.format = function() { var txt = this; for (var i = 0; i < arguments.length; i++) { var exp = new RegExp('\\{' + (i) + '\\}', 'gm'); txt = txt.replace(exp, arguments[i]); } return txt; }; } if (!String.format) { String.format = function() { for (var i ...
jweyrich/livemgr-webui
media/js/lib/string.format.js
JavaScript
gpl-3.0
502
var Sequelize = require('sequelize'); var sequelize = CONFIG.database; var %%model_name%% = sequelize.define('%%model%%', { %%model_attrs%% }, { freezeTableName: true // Model tableName will be the same as the model name }); module.exports = %%model_name%%;
nodeontrain/trainjs
template/scaffold/app/models/model.js
JavaScript
gpl-3.0
261
CKEDITOR.plugins.setLang("sourcearea","sr-latn",{toolbar:"Kôd"});
babbling-brook/streambed
js/resources/ckeditor/release/plugins/sourcearea/lang/sr-latn.js
JavaScript
gpl-3.0
69
import React, { Component } from 'react'; export default class ErrorCC extends Component { constructor(props) { super(props); } render() { var content; if (this.state.submitted) { content = ( <div className="col-md-12"> <h1>Zahlung erfolgreich abgeschlossen!</h1> Vi...
Dica-Developer/weplantaforest
ui/src/js/payment/ErrorCC.js
JavaScript
gpl-3.0
632
var ENDPOINT = 'http://localhost:5000'; var editor; function updateSuggestions(result) { console.log('Update suggestions, sailor'); } function pushToServer() { $.ajax({ url: ENDPOINT + '/suggestions', type: 'POST', data: JSON.stringify({text: editor.getText()}), dataType: 'j...
davidlandry93/cs-games-longrun
client/js/scripts.js
JavaScript
gpl-3.0
1,033
import React, { Component } from 'react'; import Tools from './tools/Tools'; export default class ToolsPage extends Component { constructor(props) { super(props); this.state = { user: {}, pageCount: 0 }; } render() { var that = this; var toolsPart; var page = this.state.pageC...
Dica-Developer/weplantaforest
ui/src/js/profile/ToolsPage.js
JavaScript
gpl-3.0
437
import { connect} from 'react-redux'; import { bindActionCreators } from 'redux'; import * as commerceActionCreators from '../actions/index.es6.js'; import CommercesFilter from '../components/CommercesFilter.es6.jsx'; const mapStateToProps = (state) => { return { commerces: state.commerces } }; functi...
manufarfaro/jebri-sample
app/assets/javascripts/containers/CommercesFilterContainer.js
JavaScript
gpl-3.0
614
import ServiceReducer from './ServiceReducer' class GenericServiceReducer extends ServiceReducer { /* **************************************************************************/ // Class /* **************************************************************************/ static get name () { return 'GenericServiceR...
wavebox/waveboxapp
classic/src/shared/AltStores/Account/ServiceReducers/GenericServiceReducer.js
JavaScript
mpl-2.0
3,173
/*global restyle */ /*global Draggabilly */ 'use strict'; var utils = require('../lib/utils'); var selector = require('../lib/selector'); var tagName = 'z-block'; var htmlTemplate = ` <div class="ports-container inputs"> <content select="z-port.input"></content> </div> <div id="main"> <d...
nnodot/zed
webcomponents/z-block.js
JavaScript
mpl-2.0
7,789
angular .module('webmakerApp') .controller('navigationController', ['$scope', '$location', '$routeParams', '$rootScope', 'weblit', 'wmNav', 'CONFIG', function ($scope, $location, $routeParams, $rootScope, weblit, wmNav, config) { // Nav data $scope.nav = wmNav.nav; // User urls $scope.a...
mozilla/webmaker.org
public/js/angular/controllers.js
JavaScript
mpl-2.0
23,808
/** * ServiceProfessionalServices * * @module activities/service-professional-services * * FIXME: Complete jsdocs, description * TODO: Quick460 Must complete refactoring */ import * as activities from '../index'; import * as clients from '../../data/clients'; import { Route, RouteMatcher } from '../../utils/Rou...
loconomics/loconomics
app/source/js/activities/service-professional-services/index.js
JavaScript
mpl-2.0
13,591
Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/FileUtils.jsm"); var randomIsOn; var mainWindow = window.QueryInterface(Components.interfaces.nsIInterfaceRequestor) .getInterface(Components.interfaces.nsIWebNavigation) ...
J0shK/NetflixPlaylist
chrome/content/sidebar.js
JavaScript
mpl-2.0
10,554
/* jshint expr: true, mocha:true */ (function () { 'use strict'; const fs = require('fs'); const assert = require('assert'); const fb = require('../lib'); const options = { host: 'rf-server', port: '3050', database: 'd:/bases/test/node_firebird.fdb', user: 'SYSDBA',...
restfront/node-firebird
test/connection.test.js
JavaScript
mpl-2.0
6,720
var searchData= [ ['unit_20testing_20api',['Unit Testing API',['../c_test.html',1,'c_APIs']]], ['utf_2d8_20string_20handling_20api',['UTF-8 String Handling API',['../c_utf8.html',1,'c_APIs']]], ['use_20ipc',['Use IPC',['../componenthello_i_p_c.html',1,'componentWriting']]], ['uninstall_20legato',['Uninstall Leg...
legatoproject/legato-docs
14_10/search/all_12.js
JavaScript
mpl-2.0
644
/* 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'; define([ 'cocktail', 'underscore', 'views/confirm', 'views/base', 'stache!templates/confi...
chilts/fxa-content-server
app/scripts/views/confirm_reset_password.js
JavaScript
mpl-2.0
9,460
import { routing } from '../../app/routes' import { FETCH_DETAIL_SUCCESS } from '../../shared/ducks/detail/constants' import titleActionMapping from '../../shared/services/document-title/document-title' const TITLE_SUFFIX = 'Data en informatie - Amsterdam' const TITLE_DEFAULT = 'Data en informatie - Amsterdam' const ...
DatapuntAmsterdam/atlas_prototype
src/store/middleware/documentHead.js
JavaScript
mpl-2.0
1,215
cb.define({ xtype: 'view', name: 'music', renderTo: '#body-col2', items: [{ xtype: 'panel', type: 'info', id: 'panel-add-music', reload: false, items: [{ xtype: 'head', items: [{ xtype: 'form', name: 'music-send', items: [{ xtype: 'input', type: 'hidden', name: 'action'...
ci-bus/ci-bus
module/gotorave/view/musicView.js
JavaScript
mpl-2.0
4,602
/* ***** BEGIN LICENSE BLOCK ***** Version: MPL 1.1/GPL 2.0/LGPL 2.1 The contents of this source code are subject to the Mozilla Public License Version 1.1 (the "License"); you may not use this source code except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/ Sof...
Asher256/firegpg
content/Core/misc.js
JavaScript
mpl-2.0
54,690
'use strict'; export const Counts = new Mongo.Collection('counts');
algorithm-ninja/shuriken
shuriken-web/imports/api/counts.js
JavaScript
agpl-3.0
69
'use strict'; var CONSTANTS = require('../constants'); var denormalize = require('./denormalize'); module.exports = function(dependencies) { var listeners = dependencies('elasticsearch').listeners; function getOptions() { return { events: { add: CONSTANTS.NOTIFICATIONS.EVENT_ADDED, upd...
heroandtn3/openpaas-esn
modules/linagora.esn.calendar/backend/lib/search/searchHandler.js
JavaScript
agpl-3.0
743
/** * @class Ext.JSON * Modified version of Douglas Crockford's JSON.js that doesn't * mess with the Object prototype * http://www.json.org/js.html * @singleton */ Ext.JSON = new(function() { var me = this, encodingFunction, decodingFunction, useNative = null, useHasOwn = !! {}.hasOwnProperty,...
codeyu/Ext.NET.Community
Ext.Net/Build/Ext.Net/extjs/pkgs/extras.js
JavaScript
agpl-3.0
115,187
// Copyright (c) 2019 Uber Technologies, 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 a...
grafana/grafana
packages/jaeger-ui-components/src/common/CopyIcon.test.js
JavaScript
agpl-3.0
1,726
// menu view import Vue from 'vuejs'; export default function (template) { return new Vue({ el: '.menu', template, }); };
arrchat/webclient
views/nav/menu/index.js
JavaScript
agpl-3.0
135
module.exports = { name: 'ping', type: 'core', usage: 'ping', permission: 1, help: 'Tests the bot\'s ping time.', main: function(bot, msg) { var start = new Date(msg.createdAt).getTime(); msg.channel.send('Pong!') .then(msg2 => msg2.edit("Pong! You're on the ...
FRCDiscord/RoBot
modules/ping.js
JavaScript
agpl-3.0
479
/* * This program was produced for the U.S. Agency for International Development. It was prepared by the USAID | DELIVER PROJECT, Task Order 4. It is part of a project which utilizes code originally licensed under the terms of the Mozilla Public License (MPL) v2 and therefore is licensed under MPL v2 or later. * * T...
kelvinmbwilo/vims
modules/openlmis-web/src/main/webapp/public/js/vaccine/report/controller/vaccine-report-view-detail-controller.js
JavaScript
agpl-3.0
3,541
MWF.xApplication.MinderEditor.History = new Class({ initialize : function( minder ){ this.minder = minder; this.MAX_HISTORY = 100; this.lastSnap; this.patchLock; this.undoDiffs = []; this.redoDiffs = []; this.reset(); minder.on('contentchange', thi...
o2oa/o2oa
o2web/source/x_component_MinderEditor/Rumtime.js
JavaScript
agpl-3.0
45,592
OC.L10N.register( "theming", { "Loading preview…" : "Läser in förhandsvisning...", "Saved" : "Sparat", "Admin" : "Admin", "a safe home for all your data" : "ett säkert hem för alla dina data", "Name cannot be empty" : "Namn kan inte vara tom", "The given name is too long" : "Det angivna ...
andreas-p/nextcloud-server
apps/theming/l10n/sv.js
JavaScript
agpl-3.0
3,799
/** * Nome del file: settings.client.controller.test.js * Percorso: /public/modules/users/tests/settings.client.controller.test.js * Autore: InfiniTech * Data creazione: 2015-09-02 * E-mail: info.infinitech@gmail.com * * Questo file è proprietà del gruppo InfiniTech e viene rilasciato sotto * licenza GNU AGPLv3...
infinitech-unipd/Premi
public/modules/users/tests/settings.client.controller.test.js
JavaScript
agpl-3.0
3,247
// Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors // License: GNU General Public License v3. See license.txt {% include 'setup/doctype/contact_control/contact_control.js' %}; cur_frm.cscript.onload = function(doc,dt,dn){ } cur_frm.cscript.refresh = function(doc,dt,dn){ if(doc.__islocal){ ...
gangadharkadam/office_erp
erpnext/setup/doctype/sales_partner/sales_partner.js
JavaScript
agpl-3.0
2,875
import React from 'react'; import PropTypes from 'prop-types'; import SpellIcon from 'common/SpellIcon'; import SpellLink from 'common/SpellLink'; import { formatPercentage } from 'common/format'; import SPELLS from 'common/SPELLS'; import ResourceBreakdown from 'parser/shared/modules/resourcetracker/ResourceBreakdow...
FaideWW/WoWAnalyzer
src/parser/deathknight/shared/RuneBreakdown.js
JavaScript
agpl-3.0
6,269
// Component class Polygon { constructor(height, width) { //class constructor this.name = "Polygon"; this.height = height; this.width = width; } sayName() { console.log("Name:", this.name); } } // Exports module.exports = Polygon;
kasargeant/warhorse
test/data/client_src/js/Polygon.js
JavaScript
agpl-3.0
282
define(function(require) { 'use strict'; var PIXI = require('pixi'); var PixiView = require('common/v3/pixi/view'); var ArrowView = require('common/v3/pixi/view/arrow'); var Colors = require('common/colors/colors'); //var Vector2 = require('common/math/vector2'); var defineInput...
Connexions/simulations
my-solar-system/src/js/views/body.js
JavaScript
agpl-3.0
8,953
import Cookies from 'js-cookie'; import Project from 'models/project'; import Iteration from 'models/iteration'; describe('Project model', function() { let story; let project; beforeEach(function() { Cookies.set('current_flow', 'progress_to_left', {expires: 365}); var Story = Backbone.Model.extend({ ...
Codeminer42/cm42-central
spec/javascripts/models/project_spec.js
JavaScript
agpl-3.0
17,485
/** * ownCloud - breakout * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Volkan Gezer <volkangezer@gmail.com> * @copyright Volkan Gezer 2014 */ Game.ready(function() { var game = Game.start('canvas', Breakout); });
vgezer/breakout
js/start.js
JavaScript
agpl-3.0
301
/* * post.js * Copyright (c) 2022 james@firefly-iii.org * * This file is part of Firefly III (https://github.com/firefly-iii). * * 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, ei...
firefly-iii/firefly-iii
frontend/src/api/currencies/post.js
JavaScript
agpl-3.0
1,086
'use strict'; exports.up = function(knex, Promise) { return knex.schema.table('devices', function(table) { table.string('platform') }) } exports.down = function(knex, Promise) { return knex.schema.table('devices', function(table) { table.dropColumn('platform') }) }
Connoropolous/hylo-node
migrations/20150827153725_add_platform_to_device.js
JavaScript
agpl-3.0
284
jasmine.DEFAULT_TIMEOUT_INTERVAL = 25000; // sometimes a little slow, esp. on startup if (typeof client != "undefined") { throw "I thought require() took care of this?"; } module.exports.client = client = null; var latestWebdriverRequestDone = false; var waitsForDone = function waitsForDone() { waitsFor(functio...
gleneivey/pairmatic2
integration/client/seHelper.js
JavaScript
agpl-3.0
1,186
import Asset from 'hippo/models/asset'; import { pick, uniqBy, filter, isEmpty, find } from 'lodash'; import moment from 'moment'; import DateRange from 'hippo/lib/date-range'; import Config from 'hippo/config'; import { renameProperties } from 'hippo/lib/util'; import Page from 'hippo/models/page'; import { BaseMo...
argosity/sm
client/sm/models/show.js
JavaScript
agpl-3.0
2,826
window.onload = dtableInit; /* initialise le script */ function dtableInit() { var table = document.getElementsByTagName('TABLE'); for ( var i = 0; i < table.length; i++ ) { // on récupère tous les tableaux dynamiques if ( table[i].className == 'dTable' ) { var tbody = table[i].tBodies[0]; var newTr = tbody...
guillaumemarion/Comptes-Boquette
JS/dtable.js
JavaScript
agpl-3.0
1,580
/* * sweave.js * * Copyright (C) 2009-12 by RStudio, Inc. * * The Initial Developer of the Original Code is * Ajax.org B.V. * Portions created by the Initial Developer are Copyright (C) 2010 * the Initial Developer. All Rights Reserved. * * Unless you have received this program directly from RStudio pursuant ...
maligulzar/Rstudio-instrumented
src/gwt/acesupport/acemode/sweave.js
JavaScript
agpl-3.0
3,272
const routes = [ require('../features/status'), require('../features/events') ]; module.exports = routes;
Hypernikao/who-brings-what
server/app/infrastructure/routes.js
JavaScript
agpl-3.0
109
import React from 'react'; import { connect } from 'react-redux'; import ImmutablePureComponent from 'react-immutable-pure-component'; import PropTypes from 'prop-types'; import ImmutablePropTypes from 'react-immutable-proptypes'; import LoadingIndicator from '../../components/loading_indicator'; import { fetchFavourit...
unarist/mastodon
app/javascript/mastodon/features/favourites/index.js
JavaScript
agpl-3.0
1,883
var _ = require('lodash'); var $ = require('jquery'); // Signup and login page module. module.exports = function(utils) { // Internal validation cache. var cache = {names: {}}; // Name-checking function that queries the server to see if a name is valid. // This function is cached and rate-limited. ...
CamiloMM/works-list
scripting/src/signup-and-login.js
JavaScript
agpl-3.0
3,682
OC.L10N.register( "federation", { "Server added to the list of trusted ownClouds" : "Server wurde in die Liste der vertrauenswürdigen ownClouds aufgenommen", "Server is already in the list of trusted servers." : "Server ist bereits in der Liste der vertrauenswürdigen Servern.", "No ownCloud server f...
sakukode/owncloud-custom
apps/federation/l10n/de_DE.js
JavaScript
agpl-3.0
939
me.controller('tradeFinderCtrl', [ '$scope', function ($scope) { "use strict"; } ]);
uplink42/etmv2
marketexplorer/index/application/home/trade-finder-ctrl.js
JavaScript
agpl-3.0
110
require(["utils"], function(utils) { function loginCallback(data) { if (data.result === "ok") { $("#events #server-answer").empty(); $("#server-answer").text("Авторизация прошла успешно.").css("color", "green"); $("#logout-btn, #cabinet-btn").css("visibility", "visible"...
klenin/orc
static/js/main.js
JavaScript
agpl-3.0
1,675
const path = require('path') const fs = require('fs') const Sequelize = require('sequelize') const Umzug = require('umzug') const _ = require('lodash') const { upgradeInitializer } = require('../utils/upgrade') const views = require('../migrations/views') const Op = Sequelize.Op const operatorsAliases = { $eq: Op.eq,...
BspbOrg/smartbirds-server
server/initializers/sequelize.js
JavaScript
agpl-3.0
8,604
/* * * (c) Copyright Ascensio System SIA 2010-2019 * * This program is a free software product. You can redistribute it and/or * modify it under the terms of the GNU Affero General Public License (AGPL) * version 3 as published by the Free Software Foundation. In accordance with * Section 7(a) of the GNU AGPL it...
ONLYOFFICE/web-apps
apps/documenteditor/main/app/view/LeftMenu.js
JavaScript
agpl-3.0
19,483
/* * Copyright (C) 2017 - present Instructure, Inc. * * This file is part of Canvas. * * Canvas 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, version 3 of the License. * * Canvas is distribut...
venturehive/canvas-lms
app/jsx/gradezilla/default_gradebook/components/Carousel.js
JavaScript
agpl-3.0
3,087
(function($) { $.fn.customFile = function(options) { var settings = { bgImage : "./icons/hdd_mount.png", scrollInterval : 500 }; if(options) { $.extend(settings, options); } return this.each(function() { var self = this; ...
irontec/Mintzatu
public/karma/modules/tablonfullcalendar/scripts/jq.customFile.js
JavaScript
agpl-3.0
1,528
/* -*- mode: espresso; espresso-indent-level: 2; indent-tabs-mode: nil -*- */ /* vim: set softtabstop=2 shiftwidth=2 tabstop=2 expandtab: */ (function(CATMAID) { "use strict"; var ConnectivityMatrixWidget = function() { this.widgetID = this.registerInstance(); this.matrix = new CATMAID.ConnectivityMatrix...
fzadow/CATMAID
django/applications/catmaid/static/js/widgets/connectivity_matrix.js
JavaScript
agpl-3.0
28,382
// Copyright (c) 2014,2015 Walter Bender // Copyright (c) Yash Khandelwal, GSoC'15 // // This program is free software; you can redistribute it and/or // modify it under the terms of the The GNU Affero General Public // License as published by the Free Software Foundation; either // version 3 of the License, or (at you...
khurtsidzecms/MusicBlocks
js/activity.js
JavaScript
agpl-3.0
81,754
builder.CreateFile("docx"); var oDocument = Api.GetDocument(); var oParagraph, oTable, oTableStyle, oCell, oTableCellPr; oParagraph = oDocument.GetElement(0); oParagraph.AddText("We create a 3x3 table and add the left 4 point blue border to all cells:"); oTableStyle = oDocument.CreateStyle("CustomTableStyle", "table");...
ONLYOFFICE/doc-builder-testing
asserts/js/docx/smoke/api_table_cell_pr/set_cell_border_left.js
JavaScript
agpl-3.0
618
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved. // // This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a comme...
documize/community
gui/app/components/document/block-editor.js
JavaScript
agpl-3.0
1,687
/*globals describe before beforeEach afterEach it assert sinon ckan jQuery */ describe('ckan.module.CustomFieldsModule()', function () { var CustomFieldsModule = ckan.module.registry['custom-fields']; before(function (done) { this.loadFixture('custom_fields.html', function (template) { this.template = te...
sergitrilles/geoctheme
ckanext/geoc_theme/public/base/test/spec/modules/custom-fields.spec.js
JavaScript
agpl-3.0
6,608
import React, { Component } from 'react' import { connect } from 'react-redux' import { Radio } from 'semantic-ui-react' import { pluginsList, pluginsObject } from '../editorPlugins.js' import { editorPluginsSelector } from '../selectors.js' import { updatePlugins } from '../actions/editorPlugins.js' const mapStateTo...
ryo33/Yayaka19
web/static/js/components/EditorPluginsSelector.js
JavaScript
agpl-3.0
1,400
/** * Wrapper for binary operator. * Ensures * * i >= j * i0, j0, k0 >= 0 * */ export function wrapbin (fn){ return function(a, i0, i1, b, j0, j1, c, k0, k1){ var i, j, k; k0 = Math.max(0, k0); k = k1 - k0; i0 = Math.max(0, i0, i1 - k); j0 = Math.max(0, j0, j1 - k); i = i1 - i0; j = j...
aureooms/js-integer-little-endian
src/0-legacy/others/wrap/wrapbin.js
JavaScript
agpl-3.0
447
/* routes/session.js * Copyright 2015 Sergei Ianovich * * Licensed under AGPL-3.0 or later, see LICENSE * Process Control Service Web Interface */ var User = require('../models/user'); var auth = require('./_auth'); function sessionNew(req, res) { function renderNew () { res.render('sessions/new', { ...
sergeygaychuk/pcs-web
routes/session.js
JavaScript
agpl-3.0
1,565
import fs from 'fs' import path from 'path' import Sequelize from 'sequelize' const basename = path.basename(module.filename) const env = process.env.NODE_ENV || 'development' const config = require(__dirname + '/../config/config.json')[env] const sequelize = config.use_env_variable ? new Sequelize(process.env[conf...
pletcher/mission-hacks
models/index.js
JavaScript
agpl-3.0
896
/** * * @param scriptBody * @param builder * @param builderParams * @returns {{get: get}} * @constructor */ function InlineScriptFactory( scriptBody, builder, builderParams ) { return { get: get }; function get() { var scriptBuilderParams = { parentView: builderParams.pa...
InfinniPlatform/InfinniUI
app/executor/inlineScriptFactory.js
JavaScript
agpl-3.0
817
import config from '../../../common/config'; class ButtonObject extends Phaser.Button { constructor(game, grid, grid_x, grid_y, blockSize, socket, color, hoverCallback=()=>{}) { const x = game.world.centerX - grid.gridWidth / 2 + grid_x*grid.blockWidth; const y = game.world.centerY - grid.gridHeigh...
ScriptaGames/SquareOff
client/src/objects/ButtonObject.js
JavaScript
agpl-3.0
931
"use strict"; $(document).ready(() => { const registerServiceWorker = new MainController(); }); class MainController { constructor() { if (!navigator.serviceWorker) return; navigator.serviceWorker.register("./sw.js").then((sw) => { if (!navigator.serviceWorker.controller) { return; } ...
umarbrowser/umarbrowser.github.io
js/app.js
JavaScript
agpl-3.0
5,864
export default () => document.getElementsByName('csrf-token')[0] ? document.getElementsByName('csrf-token')[0].content : 0;
empirical-org/Empirical-Core
services/QuillLMS/client/app/bundles/Teacher/components/modules/get_auth_token.js
JavaScript
agpl-3.0
124
module.exports = { "env": { "es6": true, "node": true }, "extends": "eslint:recommended", "rules": { "indent": [ "error", 2 ], "linebreak-style": [ "error", "unix" ], "quotes": [ "error", ...
sblosser/resting-odbc
.eslintrc.js
JavaScript
agpl-3.0
456
function insert_comment(form){ return legacy_filter('insert_comment', form, 'nproduct', 'procNproductInsertComment', filterAlertMessage, ['error','message','mid','document_srl','comment_srl'], '', {}) }; (function($){ var v=xe.getApp('validator')[0];if(!v)return false; v.cast("ADD_FILTER", ["insert_comment", {'docume...
umjinsun12/dngshin
files/cache/js_filter_compiled/9b37c1045d7ccfdec2a15b107342010b.ko.compiled.js
JavaScript
lgpl-2.1
2,826
var fs = require("fs"); var EJDB = require("../ejdb.js"); var now = new Date(); var jb = null; module.exports.testSetup = function(test) { jb = EJDB.open("var/tdbt2", EJDB.JBOWRITER | EJDB.JBOCREAT | EJDB.JBOTRUNC); test.done(); }; module.exports.testSaveLoad = function(test) { test.ok(jb); test.ok(...
poelzi/ejdb
node/tests/t2.js
JavaScript
lgpl-2.1
14,689
var bg = 0; var mt = "none"; function setup(){ createCanvas(800,800); background(bg); } function draw(){ bg = (bg + 1)%255; background(bg); stroke(200,0,0); noFill(); text(mt,100,100); } function mouseClicked(){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (xhttp....
johnpasquarello/ES-P5-8266
webpages/sketch.js
JavaScript
lgpl-2.1
458
/** * Copyright (C) 2005-2015 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco 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 ...
nzheyuti/Aikau
aikau/src/test/resources/alfresco/lists/FilteredListUseCaseTest.js
JavaScript
lgpl-3.0
2,234
window.ST = window.ST || {}; /** Use translations in JavaScript Usage: ### Load the translations you need: ```haml = js_t(["admin.categories.new", "admin.categories.edit"]) ``` ### Use loaded translations ```javascript $('#new-link').text(ST.t("admin.categories.new")) $('#new-link').text(ST.t(...
ziyoucaishi/marketplace
app/assets/javascripts/translations.js
JavaScript
lgpl-3.0
689
/** * An abstract base class to be extended. * * Represents a grid panel for containing layers * that haven't yet been added to the map. Each row * will be grouped under a heading, contain links * to underlying data sources and have a spatial location * that can be viewed by the end user. * * This class is exp...
GeoscienceAustralia/geoscience-portal
src/main/webapp/js/auscope/widgets/panel/BaseActiveRecordPanel.js
JavaScript
lgpl-3.0
12,619
/* * Copyright (c) 2015 Memorial Sloan-Kettering Cancer Center. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS * FOR A PARTICULAR PURPOSE. The software and documentation provided hereunder * is on an "...
zhx828/mutation-mapper
src/js/data/PfamDataProxy.js
JavaScript
lgpl-3.0
3,571
/* * SonarQube * Copyright (C) 2009-2017 SonarSource SA * mailto:info AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, o...
lbndev/sonarqube
server/sonar-web/src/main/js/apps/code/components/ComponentsEmpty.js
JavaScript
lgpl-3.0
1,091
/* * Copyright (C) 2017 Czech Technical University in Prague * * 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 License, or (at your option) any * later version. * ...
kbss-cvut/reporting-tool
src/main/webapp/js/components/report/DeleteReportDialog.js
JavaScript
lgpl-3.0
2,323
var peg = require('pegjs'); var fs = require('fs'); var SFAFx = require('../sfafx.js'); console.log( "reading..." + process.argv[2] ); var sfaftxt = fs.readFileSync(process.argv[2],'utf8'); console.log( "read " + sfaftxt.length + " bytes "); var est = 2750000.0; console.log( "Estimated time: " + (sfaftxt.length / est) ...
Sciumo/sfafxjs
test/timeparse.js
JavaScript
lgpl-3.0
1,094
module.exports = { database: { url: "mongodb://localhost/ideagarden", options: { user: "", pass: "" } }, email:{ host: "localhost", port: 25, auth: { user: "test@localhost", pass: "dummy" }, tls: {"rejec...
CodeForEindhoven/IdeaGarden
src/server/config.default.js
JavaScript
lgpl-3.0
405
isc.PortalLayout.create({ width: "100%", height: "100%", canResizePortlets: true, portlets: [ [ // Array for left column isc.Portlet.create({ title: "Portlet 1" }), [ // Array for a row isc.Portlet.create({ t...
kylemwhite/isc
isomorphic_11.1p/system/reference/inlineExamples/layout/portal/portletResizing.js
JavaScript
lgpl-3.0
828
/* * Source: https://github.com/mdn/webextensions-examples/tree/master/context-menu-copy-link-with-types */ function copyToClipboard(text) { function oncopy(event) { document.removeEventListener("copy", oncopy, true); event.stopImmediatePropagation(); event.preventDefault(); even...
KevinRoebert/ClearUrls
external_js/clipboard-helper.js
JavaScript
lgpl-3.0
461
function info_debug(text,object) { if (enioka.ij.info_debug) { enioka.ij.info_debug(text,object); } else { console.log(text,object); } } function info_warn(text,object) { if (enioka.ij.info_warn) { enioka.ij.info_warn(text,object); } else { console.log(text,object); ...
enioka/ij.js
lib/logger.js
JavaScript
lgpl-3.0
984
/** * Copyright (C) 2005-2016 Alfresco Software Limited. * * This file is part of Alfresco * * Alfresco 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 ...
jphuynh/Aikau
aikau/src/test/resources/alfresco/renderers/BannerTest.js
JavaScript
lgpl-3.0
4,165