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 visibilityReducer from '../visibility'; import { expect } from 'chai'; describe('store/reducers/ui/visibility', () => { it('should return the initial state', () => { const state = visibilityReducer(undefined, {}); // Must mirror initial state declared in '../visibility' expect(state).to.deep.equal...
castiron/manifold
client/src/store/reducers/ui/__tests__/visibility-test.js
JavaScript
gpl-3.0
3,833
/** * Created by rodrigopavezi on 11/14/14. */ function lookupCompany() { console.log('lookupCompany'); // getting parameter values var _authKey = document.getElementById('lookupCompany_authKey').value; var _fields = document.getElementById('lookupCompany_fields').value; // create a javascript ob...
Rise-Vision/core-api
javascript/endpoints/company/core.company.lookup.js
JavaScript
gpl-3.0
855
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","eu",{title:"Erabilerraztasunaren argibideak",contents:"Laguntzaren edukiak. Elkarrizketa-koadro hau ixteko sakatu ESC....
omeka/omeka-s
application/asset/vendor/ckeditor/plugins/a11yhelp/dialogs/lang/eu.js
JavaScript
gpl-3.0
4,504
// for customizing raphael js /* Raphael.fn.arrow = function (x1, y1, x2, y2, size) { var angle = Math.atan2(x1-x2,y2-y1); angle = (angle / (2 * Math.PI)) * 360; var arrowPath = this.path("M" + x2 + " " + y2 + " L" + (x2 - size) + " " + (y2 - size) + " L" + (x2 - size) + " " + (y2 + size) + " L" + x2 + " " +...
catmaid/CATMAID
django/applications/catmaid/static/libs/raphael/raphael-custom.js
JavaScript
gpl-3.0
482
'use strict'; var async = require('async') /** * General dashboard * @param {object} req * @param {object} res */ exports.index = function(req,res){ if('post' === req.method.toLowerCase()){ res.header('Content-Type','application/json') res.send(JSON.encode(req.body)) } else { res.render('net/index...
snailjs/chouter
admin/routes/net.js
JavaScript
gpl-3.0
2,588
var GCODE = (function (gc) { gc.generate_line = function (line) { var s = ""; function fixedPoint(v) { return parseFloat(v.toFixed(6)); } function isObject(obj) { if( Object.prototype.toString.call( obj ) === '[object Object]' ) return true;...
mythagel/jscam
lib/gcode.js
JavaScript
gpl-3.0
1,094
//! moment.js locale configuration (function (global, factory) { (typeof exports === "undefined" ? "undefined" : babelHelpers.typeof(exports)) === "object" && typeof module !== "undefined" && typeof require === "function" ? factory(require("../moment")) : typeof define === "function" && define.amd ? define(["../momen...
elmsln/elmsln
core/dslmcode/cores/haxcms-1/build/es5-amd/node_modules/@lrnwebcomponents/moment-element/lib/moment/locale/en-nz.js
JavaScript
gpl-3.0
2,030
var AudioPlayListLoader = function() { }; AudioPlayListLoader.prototype = { COUNTRY_QUERY_MAP: { 'united states of america': 'united states', 'united republic of tanzania': 'tanzania', 'republic of serbia': 'serbia' }, loadPlaylist: function(audioPlaylist, countryName) { r...
FahmiA/TrendingWorldSongs
js/AudioPlayListLoader.js
JavaScript
gpl-3.0
2,245
'use strict'; const { ObjectID } = require('mongodb'); const express = require('express'); const crud = require('./api-crud'); const stock = require('./api-stock'); function formatArticle(article) { article.type = new ObjectID(article.type); article.region = new ObjectID(article.region); art...
vincent-tr/mylife-wine
lib/api.js
JavaScript
gpl-3.0
1,286
/** * Javascript client library for OpenCPU * Version 0.4.4 * Depends: jQuery * Requires HTML5 FormData support for file uploads * http://github.com/jeroenooms/opencpu.js * * Include this file in your apps and packages. * You only need to use ocpu.seturl if this page is hosted outside of the OpenCPU package. ...
josephguillaume/breakdown
inst/www/js/opencpu-0.5.js
JavaScript
gpl-3.0
12,527
module.exports = { root: true, extends: '@react-native-community' }
MBach/LeMondeRssReader
.eslintrc.js
JavaScript
gpl-3.0
76
import React from 'react'; import PropTypes from 'prop-types'; import ReactSelect from 'react-select'; import styled from 'styled-components'; import H3 from '../typography/H3'; const Wrapper = styled.div` .Select-arrow { border-width: 8px 6px 1.5px; } .Select-arrow-zone { padding-right: 1.8rem; } ...
ruebel/synth-react-redux
src/modules/components/Select/index.js
JavaScript
gpl-3.0
1,438
var searchData= [ ['barrier',['Barrier',['../classMezzanine_1_1Threading_1_1Barrier.html#a0685dc877f5b5ffd6789f60aba8a6856',1,'Mezzanine::Threading::Barrier']]], ['beginloading',['BeginLoading',['../classMezzanine_1_1Threading_1_1AsynchronousFileLoadWorkUnit.html#a625583d1b0f111f31d4181c7328e2cbf',1,'Mezzanine::Thr...
BlackToppStudios/DAGFrameScheduler
doc/html/search/functions_62.js
JavaScript
gpl-3.0
791
import React from 'react'; import PropTypes from 'prop-types'; import { View } from 'react-native'; import DropdownAlert from 'react-native-dropdownalert'; class AlertProvider extends React.Component { getChildContext() { return { alert: (...args) => this.dropdown.alert(...args), alertWithType: (...a...
jmsstudio/CurrencyConverter
app/components/Alert/AlertProvider.js
JavaScript
gpl-3.0
836
/* eslint max-nested-callbacks: ["error", 8] */ /* eslint-env mocha */ 'use strict' const chai = require('chai') const dirtyChai = require('dirty-chai') const expect = chai.expect chai.use(dirtyChai) const series = require('async/series') const waterfall = require('async/waterfall') const parallel = require('async/par...
SpawnTree/HardCash-Fork
IPFS-JS-Code/test/core/create-node.spec.js
JavaScript
gpl-3.0
7,940
Ext.define("Compass.ErpApp.Desktop.Applications.RailsDbAdmin", { extend: "Ext.ux.desktop.Module", id: 'rails_db_admin-win', getWindow: function () { return this.app.getDesktop().getWindow('rails_db_admin'); }, queriesTreePanel: function () { return this.accordion.down('.railsdbadmi...
xuewenfei/compass_agile_enterprise
rails_db_admin/app/assets/javascripts/erp_app/desktop/applications/rails_db_admin/module.js
JavaScript
gpl-3.0
17,976
var request = require('request'); request.post('http://127.0.0.1:1400', {form:{'name':'danhuang','book':'node.js'}}, function(error, response, result) { console.log(result); });
crslljj/nodejs_book_example
02/2.2/request/request_post.js
JavaScript
gpl-3.0
180
jQuery(document).ready(function($) { $type = $("input[type=radio][name='crisp_slider_type']:checked").val(); if ($type == 'carousel') { $('.slider-carousel-setting').show(); $('.slider-mode-setting').hide(); $('.slider-pager-type').hide(); $('#slider-pager').hide(); } $auto = $("input[type=radio][name='cri...
wppatrickk/CrispSlider
js/admin/crisp-script-admin.js
JavaScript
gpl-3.0
3,920
/*! * d3pie * @author Ben Keen * @version 0.1.4 * @date Oct 2014 - [still in dev!] * @repo http://github.com/benkeen/d3pie */ // UMD pattern from https://github.com/umdjs/umd/blob/master/returnExports.js (function(root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an ano...
hkff/AccLab
pyAAL/tools/visu/tree_files/d3pie.js
JavaScript
gpl-3.0
65,656
var mongoose = require('mongoose'); // Piste schemas var Schema = mongoose.Schema; var pisteSchema = new Schema({ country : String, area : String, name : String, date : Date, status : String, difficulty : String, length : String, hidden : Boolean, extrainfo : Stri...
akarjala/rinteeseen-app
app/models/piste.js
JavaScript
gpl-3.0
625
var templateName = 'template-0.svg'; var template = 'templates/' + templateName; function prepare() { var form = document.getElementById("the-form"); form.onsubmit = function(e) { processIt(); return false; } streeting.initialize('the-svg', template); } function processIt() { stree...
martlin2cz/streeting
sample/hello-world-sample/js/scripts.js
JavaScript
gpl-3.0
526
var lastid; function toggle_source(id) { el = document.getElementById(id).style.display; if (el === 'none' || el === '') { if (lastid !== undefined) { document.getElementById(lastid).style.display = 'none'; } document.getElementById(id).style.display = 'block'; } else { document.getElementBy...
noseglid/phpa
Resources/script.js
JavaScript
gpl-3.0
372
let consume = require("pluginbot/effects/consume"); let run = function* (config, provide, services) { let database = yield consume(services.database); let analytics = yield consume(services.analytics); let request = require("request"); let semver = require("semver"); let _ = require("lodash"); ...
service-bot/servicebot
plugins/updates/updates.js
JavaScript
gpl-3.0
2,698
Bitrix 17.0.9 Business Demo = 86a33e69cdccfe030516226f1c61d293
gohdan/DFC
known_files/hashes/bitrix/modules/bizproc/install/activities/bitrix/statefinalizationactivity/statefinalizationactivity.min.js
JavaScript
gpl-3.0
63
var fs = require('fs'); module.exports = { isFile: function(src){ try{ return fs.statSync(src).isFile(); }catch(e){ return false; } return false; }, isDir: function(src){ try{ return fs.statSync(src).isDirectory(); }catch(...
liuhaixia888/fis-parser-less-px2rem
node_modules/linco.lab/src/is.js
JavaScript
gpl-3.0
606
var appVersion = 0; var appBuild = 0; var appName = "?"; var appPackage = "?"; var storage = null; var url = config.url; var tasks = null; var task = null; var lastLoadAllTasks = new Date().getTime(); var lastNotificationTap = null; var currentlyLoadingTasks = false; var firstTaskId = null; var defaultTaskId = null; ...
nzilbb/elicitspeechweb
cordova/www/js/index.js
JavaScript
gpl-3.0
109,051
import dts from "rollup-plugin-dts" const config = { input: './lib-esm/index.d.ts', output: { file: 'lib/index.umd.d.ts', format: 'es', }, plugins: [dts()], } export default config
mliebelt/PgnViewerJS
modules/pgn-reader/rollup.config-dts.js
JavaScript
gpl-3.0
210
/* Red It: A beautiful and functional Reddit browser for webOS tablets Copyright (C) 2011 Adam R. Drew adam@linkedlistcorruption.com This file is part of Red It. Red It is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
zylogz80/Red-It
redit/source/appMenu.js
JavaScript
gpl-3.0
1,998
/* global SITE_ROOT, REL_HOME, CDM_BASE, CDM_COLLECTION, CDM_QUERY_BASE, CDM_PORT, CDM_SERVER, currentPage */ //<!-- //for old browsers function dynamic_css() { //local functions to dynamic_css function function responsive_padding_horizontal(selector, lr, responsive, min, max) { if (typeof max === "undefined...
DigitalUSSouth/NativeAmericanSCArchive
NASCA-site/js/index/dynamic_css.js
JavaScript
gpl-3.0
17,817
/******************************************************************************* * Add format() to strings * * Source: http://stackoverflow.com/questions/610406/javascript-equivalent-to-printf-string-format */ String.prototype.format = function() { var formatted = this.toString(); for (var i = 0; i < arguments...
dparlevliet/fer
bin/cortex/js_extensions.js
JavaScript
gpl-3.0
484
const loginValidator = require("./login"); const registerValidator = require("./register"); const projectValidator = require("./project"); const ruleValidator = require("./rule"); module.exports.login = loginValidator; module.exports.register = registerValidator; module.exports.project = projectValidator; module.expo...
kfirprods/tpp
validators/index.js
JavaScript
gpl-3.0
346
const Q = require('bluebird'); const EventEmitter = require('events').EventEmitter; const got = require('got'); const SocketBase = require('./base'); const STATE = SocketBase.STATE; const Web3SocketBase = require('./web3Base'); class HttpSocket extends EventEmitter { constructor(_parentSocket) { super(); ...
ethereum/mist
modules/sockets/web3Http.js
JavaScript
gpl-3.0
2,679
var $messages = $('.messages-content'), d, h, m, i = 0; $(window).load(function() { $messages.mCustomScrollbar(); setTimeout(function() { welcomeMessage(); }, 100); }); function updateScrollbar() { $messages.mCustomScrollbar("update").mCustomScrollbar('scrollTo', 'bottom', { scrollInertia: 10,...
DrexelChatbotGroup/DrexelChatbot
rest-service/src/main/resources/static/js/index.js
JavaScript
gpl-3.0
5,023
/* 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/. */ /////////////////////////////////////////////////////////////////////////////// //// inDataTreeView function inD...
therealglazou/bluegriffon
extensions/inspector/resources/content/jsutil/xul/inDataTreeView.js
JavaScript
mpl-2.0
5,584
var mongodb = require('mongodb'); var express = require('express'); var JSONStream = require('JSONStream'); var db; var PORT = 8000; var app = express(); mongodb.connect ('mongodb://mongo:27017/urfday',function(err,db){ if (err){return console.dir(err);} console.log("We are connected to t...
notnarb/LOLScrub
matchProcessor/Webserver/main.js
JavaScript
mpl-2.0
11,433
/* 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/. */ /** * Initializes an axis. * * @name pvc.visual.Axis * * @class Represents an axis for a role in a chart. * ...
Abpaula/ccc
package-res/ccc/core/base/axis/axis.js
JavaScript
mpl-2.0
15,490
# 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/. #filter substitution pref("general.useragent.locale", "@AB_CD@"); // Enable sparse localization by setting a few packa...
Yukarumya/Yukarum-Redfoxes
b2g/locales/en-US/b2g-l10n.js
JavaScript
mpl-2.0
502
import ServiceTooltip from './ServiceTooltip' export default ServiceTooltip
wavebox/waveboxapp
classic/src/scenes/mailboxes/src/Components/ServiceTooltip/index.js
JavaScript
mpl-2.0
76
import PageView from './page-view'; export default PageView.extend({ template: ` <div class="full-page-wrapper space-between"> <header data-hook="header-view"></header> <div class="centered-banner"> <div id="share" class="modal delayed-fade-in"> <div class="modal-content"> ...
ckprice/testpilot
frontend/src/app/views/share.js
JavaScript
mpl-2.0
1,522
//editUser.controller /** * Edit a specific user by id * * @param object $routeParams Parameters passed by url * @param object $location Angular path service * @param object userData userData service object * @param object appUtilities appUtilities service object * */ angular.module("cowApp")....
LucasMontero/COW
app_frontend/controllers/userForm.controller.js
JavaScript
mpl-2.0
2,405
// To run tests: // npm install nodeunit // node_modules/nodeunit/bin/nodeunit test_rbt.js "use strict"; var binarytree = require('./binarytree'), NIL = binarytree.NIL, rbt = require('./rbt'); // Give arrays ability to shuffle // This is the Fisher-Yates shuffle algorithm Array.prototype.shuffle = f...
kanaka/rbt_cfs
test_rbt.js
JavaScript
mpl-2.0
5,942
import contactGroupsModal from '~/views/contactGroupsModal' import confirmModal from '~/views/confirmModal' import { ContactGroupsModalCtrl, ConfirmModalCtrl } from './' export function ContactGroupsCtrl ($scope, $uibModal, Api, Alerting) { /************************************************/ /** Initial loa...
jembi/openhim-console
app/scripts/controllers/contactGroups.js
JavaScript
mpl-2.0
3,847
/* 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 url = require('url'); const assert = require('insist'); const bidcrypto = require('browserid-crypto'); const...
chilts/fxa-oauth-server
test/api.js
JavaScript
mpl-2.0
56,560
var intelehealthAdditionalDocs = angular.module('intelehealthAdditionalDocs', ['intelehealthPatientProfileImage']);
Intelehealth/intelehealth-openmrs-module
omod/src/main/webapp/resources/scripts/intelehealth_additional_docs_images/intelehealth_additional_docs_images.module.js
JavaScript
mpl-2.0
115
const webExt = require('web-ext').default; const path = require('path'); const getOptionsUrl = require('./test-options'); const prefsFromTalos = { // From Talos project 'app.update.enabled': false, 'browser.bookmarks.max_backups': 0, 'browser.cache.disk.smart_size.enabled': false, 'browser.cache.disk.smart_s...
cliqz-oss/browser-core
tests/runners/launchers/firefox-web-ext.js
JavaScript
mpl-2.0
5,345
console.log("here"); module.exports = function(response) { console.log(response) return response };
Moralit-ai/Moralit-beta
build.js
JavaScript
mpl-2.0
104
import resource from './resource'; import { excludedFields, locations } from '../constants'; /** * Implementation of 8.2.2 "Location" * The OGC SensorThings API follows the ITU-T definition, i.e., with regard * to the Internet of Things, a thing is an object of the physical world * (physical things) or the ...
mozilla-sensorweb/sensorthings
src/routes/locations.js
JavaScript
mpl-2.0
2,106
/* 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 root() { 'use strict'; // browser context getting dependency if ( typeof window !== 'undefined' && ...
fuzzyfox/makeapi-suggest-tags
src/suggest-tags.js
JavaScript
mpl-2.0
3,792
/* 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 {classes: Cc, interfaces: Ci, utils: Cu, results: Cr} = Components; Cu.import("resource://gre/modules/Log.j...
lanodan/omni
modules/services-sync/rest.js
JavaScript
mpl-2.0
3,452
import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; import classic from 'ember-classic-decorator'; @classic export default class RunRoute extends Route { @service can; @service store; @service system; breadcrumbs = [ { label: 'Run', args: ['jobs.run'],...
dvusboy/nomad
ui/app/routes/jobs/run.js
JavaScript
mpl-2.0
903
import hbs from 'htmlbars-inline-precompile'; export default { title: 'Theme/Icons', }; export let Icons = () => ({ template: hbs` <ul class="tile-list"> {{#each (all-icons) as |icon|}} <li class="icon-tile"> {{x-icon icon}} <code>{{icon}}</code> </li> {{/each}}...
hashicorp/nomad
ui/stories/theme/icons.stories.js
JavaScript
mpl-2.0
340
demobbed.resetEvent(); demobbed.event().id(11094023460); demobbed.event().date(1301908611000); demobbed.event().hitsTT()[0] = [ new HitTT(10000, -54.18, -611.78, 2.51), new HitTT(10001, -64.74, -611.78, 5.98), new HitTT(10002, -83.2, -598.38, 113.36), new HitTT(10003, -80.56, -598.38, 32), new HitTT(10004, ...
dmitr25/demobbed-viewer
js/nuEventsData/nuMu/loadEvent11094023460.js
JavaScript
agpl-3.0
12,962
import { helper } from '@ember/component/helper'; import ENUMS from 'irene/enums'; // This function receives the params `params, hash` const appAction = function(params) { const currentAppAction = parseInt(params[0]); if (currentAppAction === ENUMS.APP_ACTION.NO_PREFERENCE) { return "noPreference"; } else ...
appknox/irene
app/helpers/app-action.js
JavaScript
agpl-3.0
618
/* * (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 its S...
ONLYOFFICE/sdkjs
common/Drawings/WorkEvents.js
JavaScript
agpl-3.0
22,410
const merge = require('webpack-merge'); const common = require('./webpack.common.js'); const WebpackShellPlugin = require('webpack-shell-plugin-next'); module.exports = merge(common, { mode: 'development', devtool: 'inline-source-map', watchOptions: { aggregateTimeout: 300, poll: 1000 }, plugins: [ ...
Felizardo/turnato
webpack.dev.js
JavaScript
agpl-3.0
494
/* * Basômetro * Authors: http://github.com/tcha-tcho, estadaodados team. * http://estadaodados.com/html/basometro * * GPL Version 3 licenses. * http://www.gnu.org/licenses/gpl.html */ //TODO - Hardcoded //função que coloca na hash da URL todas as variáveis listadas dentro dela e muda a cada atualização //TODO ...
estadaoDados/basometro
js/estadao.basometro.js
JavaScript
agpl-3.0
42,861
import React, { Component } from 'react' import PropTypes from 'prop-types' import { withStyles, Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, Typography } from '@material-ui/core' const countryCodes = [ { country: 'Australia', code: 'AU', image: 'australia' }, { co...
worknenjoy/gitpay
frontend/src/components/profile/country-picker.js
JavaScript
agpl-3.0
5,078
'use strict'; class JoinModalCtrl { constructor ($scope, $timeout, SessionSvc, swellRT){ 'ngInject'; this.$scope = $scope; this.$timeout = $timeout; this.swellRT = swellRT; $scope.message = { sending: false }; $scope.step = 'message'; /* SwellRT does not currently provides ...
P2Pvalue/teem
src/js/components/join-modal.js
JavaScript
agpl-3.0
1,355
var path = require('path'); var webpack = require('webpack'); module.exports = { entry: './health_modules/programConfig.js', output: { path: path.resolve(__dirname, '../output'), filename: 'programConfig.js' }, module: { loaders: [ { test: /\.js$/, ...
OpenCHS/lokbiradari-vhw
build/programConfigWebpack.config.js
JavaScript
agpl-3.0
515
"use strict"; //Load dependencies var async = require("async"); var moment = require('moment-timezone'); var applicationStorage = process.require("core/applicationStorage.js"); var updateModel = process.require("updates/updateModel.js"); var updateService = process.require("updates/updateService.js"); var guildModel =...
warcraftlfg/warcraft-lfg
server/app/process/GuildUpdateProcess.js
JavaScript
agpl-3.0
9,657
/* * Copyright (c) 2012-2016 CoNWeT Lab., Universidad Politécnica de Madrid * * This file is part of Wirecloud Platform. * * Wirecloud Platform 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 Soft...
jpajuelo/wirecloud
src/wirecloud/platform/static/js/wirecloud/ui/NewWorkspaceWindowMenu.js
JavaScript
agpl-3.0
3,944
define([ "chroma-js", "map", "sidebar", "tabs", "container", "meshstats", "linklist", "nodelist", "simplenodelist", "infobox/main", "proportions", "forcegraph", "title", "about" ], function (chroma, Map, Sidebar, Tabs, Container, Meshstats, Linklist, Nodelist, SimpleNodelist, Infobox, Propor...
freifunk-fulda/meshviewer
lib/gui.js
JavaScript
agpl-3.0
3,280
/** * @file Program -- Open with system program * @author Scimonster * @license {@link LICENSE} (AGPL) */ var path = require('path'), spawn = require('child_process').spawn; var name = exports.modName = path.basename(__dirname); exports.html = function (files, cb) { files.forEach(function(file){ spawn('xdg-open...
Scimonster/localBrowse
programs/system/index.js
JavaScript
agpl-3.0
1,002
'use strict'; var request = require('supertest'), expect = require('chai').expect, async = require('async'); describe('The messages API', function() { var app; var testuser; var restrictedUser; var domain; var community; var restrictedCommunity; var password = 'secret'; var email = 'foo@bar.com';...
chamerling/rse-chamerling
test/midway-backend/api/messages.js
JavaScript
agpl-3.0
19,002
import * as TextFormatting from '@/helpers/TextFormatting'; import * as Misc from '@/helpers/Misc'; import _ from 'lodash'; import AliasRewriter from './AliasRewriter'; // Map of commandName=commandHandlerFn const inputCommands = {}; export default class InputHandler { constructor(state) { this.state = st...
allenday/KiwiIRC
src/libs/InputHandler.js
JavaScript
agpl-3.0
23,105
var React = require('react'); var Skill = require('./Skill') class SkillGroup extends React.Component { render() { if(this.props.skills.length == 0){ return(null) } return ( <div className="container skillgroup"> <h3 className="title-divider"><span>{this.props.title}</span></h3> ...
BCJonesey/CDB3
app/javascript/packs/character_generator/components/characterSheets/AD/SkillGroup.js
JavaScript
agpl-3.0
474
/** * Copyright 2010 Jay and Han (laughinghan@gmail.com) * License, Usage and Readme at http://mathquill.com */ define([ 'i18n!mathquill', 'jquery' /* jQuery, $ */ ], function(I18n, $) { var _, //temp variable of prototypes undefined, jQueryDataKey = '[[mathquill internal data]]'; /****************...
ottenhoff/canvas-lms
public/javascripts/mathquill.js
JavaScript
agpl-3.0
90,875
odoo.define("account_reconcile_partial.ReconciliationModel", function (require) { var model = require('account.ReconciliationModel'); var field_utils = require('web.field_utils'); var utils = require('web.utils'); var session = require('web.session'); model.StatementModel.include({ getPart...
OCA/bank-statement-reconcile
account_reconciliation_widget_partial/static/src/js/reconciliation_model.js
JavaScript
agpl-3.0
5,467
/* * DealPort * Copyright (c) 2015 DealPort B.V. * * This file is part of DealPort * * DealPort 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. * * DealPort is distr...
dealport/dealport
lib/view/page/UserDetailPage.js
JavaScript
agpl-3.0
2,552
App.ArticlesEditView = Ember.View.extend({ templateName: 'articles/edit', classNames: ['tile innerTile content-tile news scrollTile general_info all tile-2-tall tile-2-wide'], attributeBindings: ['width:data-width', 'height:data-height'], width: 2, height: 2, controller: this.controller, didInsertElement: funct...
sjmog/livestock-event
app/assets/javascripts/views/articles/articles_edit_view.js
JavaScript
agpl-3.0
1,321
(function() { var __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prot...
owly/canvassy
public/javascripts/compiled/views/content_migrations/ProgressStatusView.js
JavaScript
agpl-3.0
2,878
var HOST_META = { "links": [ { "rel": "lrdd", "type": "application/jrd+json", "template": "http://lumenwrites.com/.well-known/webfinger?resource=acct:{uri}" }, { "rel": "lrdd", "type": "application/json", "template": "ht...
raymestalez/vertex
server/controllers/ostatus.controllers.js
JavaScript
agpl-3.0
2,729
// Backbone Application View: CertificateWhiteList Editor View /*global define, RequireJS */ ;(function(define){ 'use strict'; define([ 'jquery', 'underscore', 'gettext', 'backbone', 'js/certificates/models/certificate_exception' ], fu...
pomegranited/edx-platform
lms/static/js/certificates/views/certificate_whitelist_editor.js
JavaScript
agpl-3.0
6,015
const chai = require('chai'); const { expect } = chai; const chaiHttp = require('chai-http'); const app = require('../../../app'); const loginHelper = require('../helper/login-helper'); chai.use(chaiHttp); describe('News tests', () => { before((done) => { this.server = app.listen(3031); this.server.once('listen...
schul-cloud/schulcloud-client
test/mocha/news/news.test.js
JavaScript
agpl-3.0
714
TestCase("LinearAxis", { setUp : function () { this.axis = graph.linearAxis(5, 20, 100, 250); this.axisFlipped = graph.linearAxis(5, 20, 450, 300); this.worldOrdinates = [0, 1, 6.25, 13, 33]; this.displayOrdinates = [50, 60, 112.5, 180, 380]; this.displayOrdinatesFlipped =...
CWRUChielLab/JSNeuroSim
test/graph_test.js
JavaScript
agpl-3.0
28,607
/* Router.route('/:_id', { name: 'viewGame', controller: 'GameController', action: 'view', where: 'client' }); */
tmplab/hackerwash
routes/id.js
JavaScript
agpl-3.0
131
'use strict'; const dbDsl = require('dumonda-me-server-test-util').dbDSL; const db = require('dumonda-me-server-test-util').db; const eMail = require('dumonda-me-server-lib').eMail; const sinon = require('sinon'); const testee = requireSrc('notifications'); describe('Send unread notification when user is requested to...
Elyoos/Elyoos
eMailService/test/notifications/adminOfCommitmentRequest/sendUnreadNotificationsSpec.js
JavaScript
agpl-3.0
1,786
/* YUI 3.10.0 (build a03ce0e) Copyright 2013 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('editor-para', function (Y, NAME) { /** * Plugin for Editor to paragraph auto wrapping and correction. * @class Plugin.EditorPara * @extends Plugi...
miing/mci_migo
identityprovider/static/yui/3.10.0/editor-para/editor-para.js
JavaScript
agpl-3.0
13,024
/* Copyright (C) 2012 The Boulevard Platform Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as * published by the Free Software Foundation, either version 3 of the * License, or (at your option) any later version. * * T...
themystic/justlydone
justlydone/static/test_js/models/Todo-test.js
JavaScript
agpl-3.0
1,448
var _ = require('lodash'); module.exports = function AddCommandHandlers(command_controller) { _.each(handlers, function(handler, handler_command) { command_controller.addHandler(handler_command, handler); }); }; var handlers = { RPL_CHANNELMODEIS: function (command) { var channel = comman...
CoryChaplin/KiwiIRC
server/irc/commands/channel.js
JavaScript
agpl-3.0
7,143
const project = { nameShort: 'Verwaltung', entity: { _id: 'ID', name: 'Name', email: 'Projekt E-Mail Adresse', news: { text: 'Neuigkeiten' }, shifts: 'Schichten', calendar: 'Kalender', knowledgeBase: 'Informationen', settings: 'Einstellungen', users: 'Benutzer', pub...
JWDeveloper/JWManagement
imports/i18n/de/project.js
JavaScript
agpl-3.0
1,337
if (Meteor.isClient) { // Client code } if (Meteor.isServer) { Meteor.startup(function () { // code to run on server at startup }); }
meteorcrowd/quotes
main.js
JavaScript
agpl-3.0
144
/******************************************************************************* * Copyright (C) 2020, exense GmbH * * This file is part of STEP * * STEP 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 Sof...
denkbar/step
step-controller/step-controller-server-webapp/src/main/resources/webapp/js/controllers/grid.js
JavaScript
agpl-3.0
7,728
#!/usr/bin/env node 'use strict'; const VDM = require('../../vdm'); const parameterService = require('../../parameterService'); const _ = require('lodash'); const emulatorUtils = require('../rpcEmulatorUtils'); /** * ORWCOM PTOBJ * @param ORWCOM PATIENT SELECTED */ const RPC_EMULATOR_MODEL = [ { id: ...
vistadataproject/MVDM
nonClinicalRPCs/parameters/p44_orwcomPtobj.js
JavaScript
agpl-3.0
2,276
import PropTypes from 'prop-types' import React from 'react' import {FormattedMessage} from 'react-intl' import {Ball, BallMenu, EditableValue, FormattedValue, MenuItem, StatedValue} from 'tocco-ui' import {AdminSearchGrid, StyledHeader, StyledQueryBox} from './StyedComponents' const QueryView = ({ isCollapsed, s...
tocco/tocco-client
packages/core/entity-list/src/components/AdminSearchForm/QueryView.js
JavaScript
agpl-3.0
3,048
Highcharts.theme = { "colors": [ "#41B5E9", "#FA8832", "#34393C", "#E46151" ], "chart": { "style": { "color": "#333", "fontFamily": "Open Sans" } }, "title": { "style": { "fontFamily": "Raleway", "fontWeight": "100" } }, "subtitle": { "style": { ...
gamernetwork/dashi
dashi/static/js/themes/elementary.js
JavaScript
agpl-3.0
849
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[101],{ /***/ 285: /***/ (function(module, exports, __webpack_require__) { !function (a, e) { true ? module.exports = e(__webpack_require__(3)) : undefined; }(this, function (a) { "use strict"; a = a && a.hasOwnProperty("default") ? a.default : a; ...
SilverDav/Silverpeas-Core
core-war/src/main/webapp/chat/converse/locales/dayjs/rw.js
JavaScript
agpl-3.0
1,209
import { createSelector } from 'reselect' import { toSnakecase } from 'shared/utils/stringUtils' import { NOTE_TAG_NAME, EXCLUDED_TAG_NAME, REVIEW_TAG_NAME, KNOWN_GENE_FOR_PHENOTYPE_TAG_NAME, DISCOVERY_CATEGORY_NAME, SORT_BY_FAMILY_GUID, VARIANT_SORT_LOOKUP, SHOW_ALL, VARIANT_EXPORT_DATA, } from 'sha...
ssadedin/seqr
ui/shared/components/panel/variants/selectors.js
JavaScript
agpl-3.0
9,354
describe('Formulas utils', function() { var id = 'testContainer'; beforeEach(function() { this.$container = $('<div id="' + id + '"></div>').appendTo('body'); }); afterEach(function () { if (this.$container) { destroy(); this.$container.remove(); } }); describe('isFormulaExpressio...
ghk/sideka-electron
src/app/lib/handsontablep/src/plugins/formulas/test/utils.spec.js
JavaScript
agpl-3.0
4,474
/* * Copyright (C) 2013-2014 Spark Labs, Inc. All rights reserved. - https://www.spark.io/ * * This file is part of the Spark-protocol module * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License version 3 * as published by the Free So...
AppArbor/intellihot-spark-server
node_modules/spark-protocol/clients/ISparkCore.js
JavaScript
agpl-3.0
1,644
// Example of how to run a command in your shell. Replace the command ('make') with whatever you'd like. // // INSTALL INSTRUCTIONS // // 1) Click Plugins->Manage plugins... // 2) Copy following text to the bottom of the file. // 3) Press F10 to reload. // // NOTE: You can customize keyboard shortcut by changing th...
msipos/syntaxic
plugins/run_in_shell.js
JavaScript
lgpl-2.1
587
var fs = require('fs') /** * @author Max Tushev * @class Core.fieldtype.image * Image field. Use image field in the form for this data type. * * @example * // Detail Form * Ext.define('Desctop.mymodule.view.myModuleForm', { * extend: 'Core.form.DetailForm', * * requires...
Kolbaskin/janusjs
src/Core/fieldtype/image.js
JavaScript
lgpl-2.1
2,154
/* global $, cockpit, QUnit */ QUnit.test("public api", function (assert) { assert.equal(typeof cockpit.grid, "function", "cockpit.grid is a function"); assert.equal(typeof cockpit.series, "function", "cockpit.series is a function"); var grid = cockpit.grid(555, 3, 8); assert.strictEqual(grid.interval...
cockpituous/cockpit
src/base1/test-series.js
JavaScript
lgpl-2.1
15,358
var GENEMAP = GENEMAP || {}; GENEMAP.QtlAnnotations = function (userConfig) { var defaultConfig = { border: false, onAnnotationSelectFunction: $.noop(), longestChromosome: 100, layout: { width: 10, height: 100, x: 0, y: 0, }, bandWidthPercentage: 1 / 8, gapPercenta...
PeterNorton/QTLNetMiner
common/client/src/main/webapp/html/GeneMap/src/js/qtl_annotations.js
JavaScript
lgpl-3.0
5,963
"use strict"; /** * User: Ilja.Kirillov * Date: 26.09.14 * Time: 17:40 */ var EKGSGameListRecord = { Type : 1, WRank : 2, WName : 3, Vs : 4, BRank : 5, BName : 6, SizeHandi : 7, Observers : 8, Move : 9, Place : 10, Info : 11 }; function CKGSGamesList(oApp) { C...
IlyaKirillov/GoUniverse
Src/KGS/GamesList.js
JavaScript
lgpl-3.0
16,413
/* _____ ____ _ ____ _ | ____| _ \ / \ | _ \ ___ __ _ __| | ___ _ __ | _| | |_) / _ \ | |_) / _ \/ _` |/ _` |/ _ \ '__| | |___| __/ ___ \| _ < __/ (_| | (_| | __/ | |_____|_| /_/ \_\_| \_\___|\__,_|\__,_|\___|_| This program is free software: you can redistr...
shoghicp/EPAReader
functions.js
JavaScript
lgpl-3.0
1,028
#!/usr/bin/node /** * PAM2 Client */ var pam2d_url = null, pam2d_command = [], pam2d_host = null, pam2d_port = 42763, pam2d_user = null, pam2d_password = null, args = process.argv, i = 0, len = args.length, is_command = false, matches, query, rsvp = require('./js/rsvp...
sfia-andreidaniel/pam2
pam2.js
JavaScript
lgpl-3.0
5,323
/** ****************************************************************************** * @file js/commands/KeyCommands.js * @author David Middlecamp (david@spark.io) * @company Spark ( https://www.spark.io/ ) * @source https://github.com/spark/spark-cli * @version V1.0.0 * @date 14-February-2014 * @brief K...
rwaldron/spark-cli
js/commands/KeyCommands.js
JavaScript
lgpl-3.0
10,374
import {Injectable} from 'app/app'; import {AdvancedSearchCriteriaOperators} from '../criteria/advanced-search-criteria-operators'; import _ from 'lodash'; const QUERY_OPERATORS = [ AdvancedSearchCriteriaOperators.SET_TO_QUERY.id, AdvancedSearchCriteriaOperators.NOT_SET_TO_QUERY.id ]; /** * Limits the sub querie...
SirmaITT/conservation-space-1.7.0
docker/sep-ui/src/search/components/advanced/filters/sub-query-operator-filter.js
JavaScript
lgpl-3.0
554
/** * A simple event recogniser which knows when you drag. * * @private */ Ext.define('Ext.event.recognizer.Drag', { extend: 'Ext.event.recognizer.SingleTouch', isStarted: false, startPoint: null, previousPoint: null, lastPoint: null, handledEvents: ['dragstart', 'drag', 'dragend'], ...
PHPBenelux/App
lib/src/event/recognizer/Drag.js
JavaScript
lgpl-3.0
4,523