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
/* ***** BEGIN LICENSE BLOCK ***** Copyright © 2009 Center for History and New Media George Mason University, Fairfax, Virginia, USA http://zotero.org This file is part of Zotero. Zotero is free software: you can redistribute it and/or modify ...
nikolasco/zotero-oac
chrome/content/zotero/xpcom/ingester.js
JavaScript
gpl-3.0
16,919
wash.post_processor = {};
chrisallenlane/wash
lib/js/wash.post-processor.js
JavaScript
gpl-3.0
26
'use strict' const Key = require('interface-datastore').Key const debug = require('debug') const log = debug('repo:version') const versionKey = new Key('version') module.exports = (store) => { return { /** * Check if a version file exists. * * @param {function(Error, bool)} callback * @retu...
js0p/sprouts
node_modules/ipfs-repo/src/version.js
JavaScript
gpl-3.0
1,585
/* * Abricotine - Markdown Editor * Copyright (c) 2015 Thomas Brouard * Licensed under GNU-GPLv3 <http://www.gnu.org/licenses/gpl.html> */ var constants = require.main.require("./constants"), files = require.main.require("./files"), fs = require("fs"), langmap = require("langmap"), Menu = requir...
brrd/Abricotine
app/abr-menu.js
JavaScript
gpl-3.0
8,904
angular.module('MyApp').service('PostMessageService', function(Account,$state) { this.init = function(portname) { if(arguments.length > 0) { this.port = chrome.runtime.connect({name: portname}); } }; this.sendGesture = function(gestureName, opt) { this.port.postMessage({ "gesture": ...
Backfeed/Backfeed-Slack-Client
extension/contentScript/app/js/contentServices/postMessageService.js
JavaScript
gpl-3.0
1,539
PAYPAL.namespace("widget"); if (typeof YUD == "undefined" || typeof YUE == "undefined") { YUD = YAHOO.util.Dom; YUE = YAHOO.util.Event; } PAYPAL.widget.hideShow = { exclusiveMode: false, mouseOverMode: false, containers: '', links: new Array(), cancelButtons: new Array(), init: function(...
angelleye/paypal-wp-button-manager
admin/js/paypal-wp-button-manager-buttonDesigner.js
JavaScript
gpl-3.0
191,046
/*jshint esnext: true */ import httpLib from './http-lib.js'; export default function getSyncData(successCallback, errorCallback){ var protocolAndDomain = this.getUrl(), syncPath = "/api/mobile/sync.php", that = this; if(!protocolAndDomain) return errorCallback({error:true}); if(!that.profile || !t...
holloway/mahara-mobile
src/js/mahara-lib/get-sync-data.js
JavaScript
gpl-3.0
1,323
/* * math.js */ var math=(function(){ const DNF=-1; //What to return in case of DNF /* * math:Init() */ function init(){ } /* * math:getMean(times) * @param times Array of solves to get an mean of * @returns mean of times, or -1 in case of DNF */ function getMean(times){ var cntdnf,cnttime,i,s...
YTCuber/HTTimer
js/math.js
JavaScript
gpl-3.0
5,730
//------------------------------------------------------------------ // // This is the text function that handles all of the game's // required text ojects. GAME.text = (function(graphics) { 'use strict'; //Initialize text objects function initialize(spec) { var that = {}; //Render the t...
JustinKent55/Castle-Defense
public/scripts/text.js
JavaScript
gpl-3.0
1,279
/** * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ /** * This file was added automatically by CKEditor builder. * You may re-use it at any time to build CKEditor again. * * If you would like to build CKEdi...
MrDarkSkil/FlowTracker
admin/plugins/ckeditor/build-config.js
JavaScript
gpl-3.0
2,583
function geodir_click_search($this) { //we delay this so other functions have a change to change setting before search setTimeout(function() { jQuery($this).parent().find('.geodir_submit_search').click(); }, 100); } function addToFavourite(post_id, action) { var fav_url; var ajax_a...
mistergiri/geodirectory
geodirectory-assets/js/on_document_load.js
JavaScript
gpl-3.0
19,171
var searchData= [ ['main',['main',['../principal_8cpp.html#ae66f6b31b5ad750f1fe042a706a4e3d4',1,'principal.cpp']]], ['mday',['mday',['../classfecha.html#a9c1dc50e5f5efcd3e30a981bfd495b1d',1,'fecha']]], ['min',['min',['../classfecha.html#a3875f28ff6e7c383923c80e86afaec2e',1,'fecha']]], ['mon',['mon',['../classfe...
Nitrosito/ED
Practicas/Practica2/source/html/search/all_8.js
JavaScript
gpl-3.0
380
"use strict"; // I ♥ JS // Let's Code (function($, window, document) { var adminPanel = $("#admin"); $("#menu-toggle").on("click", function(e) { e.preventDefault(); adminPanel.toggleClass("toggled"); }); })(window.jQuery, window, window.document); var AngularFireCartAdmin = angular.module('...
ariestiyansyah/mbulont
app-admin/main.js
JavaScript
gpl-3.0
1,809
var should = require('should') var fixtures = require('node-fixtures') var updateName = require('../src/1fixture') describe('fixtures', function() { it('should read the name of person 1 in users fixture', function() { should(fixtures.users.p1.name).equal('Michael') }) it('should read the name of p...
andorfermichael/MMT-B2014-Frontend-Development-1
07-tdd/test/1fixture.js
JavaScript
gpl-3.0
785
'use strict'; var winston = require('winston'); var express = require('express'); var bodyParser = require('body-parser'); var fs = require('fs'); var path = require('path'); var childProcess = require('child_process'); var less = require('less'); var async = require('async'); var uglify = require('uglify-es'); var nc...
akhoury/NodeBB
install/web.js
JavaScript
gpl-3.0
7,262
Schema = {}; TermSchema = new SimpleSchema({ term: { type: String, label: 'Término' }, humanterm: { type: String, label: 'Término humano' }, shuffle: { type: Boolean, label: 'Shuffle term?' } }); Schema.Dict = new SimpleSchema({ group: { type: String, label: 'Gr...
CIECODE-Madrid/tipi
lib/models/dicts.js
JavaScript
gpl-3.0
1,183
var searchData= [ ['move_5fonly_5fallocation_5ftest_0',['move_only_allocation_test',['../d3/d67/MoveOnlyAllocationTestCore_8hpp.html#ae2b2913ae89b8818cd9ea2d68d43980b',1,'sequoia::testing']]], ['move_5fonly_5ftest_1',['move_only_test',['../de/d25/MoveOnlyTestCore_8hpp.html#a198c390bfabb54c797a6fcfe8dec09cd',1,'sequ...
ojrosten/sequoia
docs/html/search/typedefs_1.js
JavaScript
gpl-3.0
340
/* 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...
Whatsit2yaa/vast-tundra-84597
plugins/pencilblue/controllers/admin/content/topics/import_topics.js
JavaScript
gpl-3.0
2,564
import { ApolloServer } from 'apollo-server-express'; import { importSchema } from 'graphql-import'; import { join } from 'path'; import resolvers from '../schema/resolvers'; async function configureGraphQL(app) { const typeDefs = importSchema(join(__dirname, '..', 'schema', 'schema.graphql')); const server = ne...
NERC-CEH/datalab
code/workspaces/client-api/src/config/graphql.js
JavaScript
gpl-3.0
718
describe('Test Nac Bar', function() { var injector; var element; var scope; var compiler; var httpBackend; beforeEach(function() { injector = angular.injector(['myApp', 'ngMockE2E']); intercepts = {}; injector.invoke(function($rootScope, $compile, $httpBackend) { scope = $rootScope.$new(); compiler ...
lufanbb/MEAN_RetailStore
Chpt3_Retail_Store_API/Angular/angular_test.js
JavaScript
gpl-3.0
1,020
//Date Editor function DateCellEditor () {} // gets called once before the renderer is used DateCellEditor.prototype.init = function(params) { // create the cell this.eInput = document.createElement('input'); this.eInput.value = params.value; // https://jqueryui.com/datepicker/ $(this.eInput).datepicker({ ...
greenriver/hmis-warehouse
app/assets/javascripts/cohorts/editors/date_cell_editor.js
JavaScript
gpl-3.0
1,434
requirejs.onError = function (err) { console.error(err); }; window.onerror = function (err) { console.error(err); }; require(['src/config.js'], function (config) { require.config(config); require(['ui/main'], function (main) {}); });
TalesM/syntaxer
src/main.js
JavaScript
gpl-3.0
252
// This file is generated P_locations_0 = [ [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [],...
belissent/GrampsDynamicWebReport
reports/report_003/dwr_db_P_locations_0.js
JavaScript
gpl-3.0
3,647
/** * * The Scheduler UI. * ================ * * The scheduler supports two modes: * 1. Editable mode - The user can drag-drop and resize sessions * 2. Readonly mode - The sessions are displayed on the timeline, but cannot be edited. * * The Editable mode is turned on by default. To switch to Readonly mode, se...
Achint08/open-event-orga-server
app/static/js/events/scheduler.js
JavaScript
gpl-3.0
45,120
(function() { 'use strict'; angular .module('otusjs.model.activity') .service('otusjs.model.activity.CalendarRuleTestService', Service); Service.$inject = [ 'otusjs.model.activity.NumericRuleTestService', 'otusjs.utils.ImmutableDate' ]; function Service(NumericRuleTestService, ImmutableDate...
ccem-dev/otus-model-js
app/activity/service/answer/calendar-rule-test-service.js
JavaScript
gpl-3.0
2,285
// load all the things we need var LocalStrategy = require('passport-local').Strategy; // load up the user model var User = require('../routers/models/user'); // expose this function to our app using module.exports module.exports = function(passport) { // ==================================================...
UnSpiraTive/radio
config/passport.old.js
JavaScript
gpl-3.0
4,480
import { useReducer } from 'react'; import { reducer } from './import-context-reducer'; export const Context = React.createContext(); export default function ImportContext( props ) { const initialState = { file: null, }, [ data, dispatch ] = useReducer( reducer, initialState ); return ( <Context.Provider va...
ramiy/elementor
core/app/modules/import-export/assets/js/context/import/import-context.js
JavaScript
gpl-3.0
470
/** * * @licstart The following is the entire license notice for the * JavaScript code in this page. * * Copyright (C) 2014,2018 Rob Myers * * * The JavaScript code in this page is free software: you can * redistribute it and/or modify it under the terms of the GNU * General Public License (GNU GPL) as publ...
robmyers/blockchain-aesthetics
shared-html5/js/representations.js
JavaScript
gpl-3.0
8,034
import DS from "ember-data"; import cardColor from "../utils/card-color"; export default DS.Model.extend({ databaseType: DS.belongsTo('database-type'), permissions: DS.attr('string'), isReady: DS.attr('boolean', {defaultValue: false}), cardColor: function() { return cardColor(); }.property()...
cznweb/genesis
app/models/database-user.js
JavaScript
gpl-3.0
325
/** * @license Angular v5.2.5 * (c) 2010-2018 Google, Inc. https://angular.io/ * License: MIT */ import { EventEmitter, Injectable } from '@angular/core'; import { LocationStrategy } from '@angular/common'; /** * @fileoverview added by tsickle * @suppress {checkTypes} checked by tsc */ /** * @license * Copyri...
ricardo7227/DAW
Cliente/Codigo fuente/my-app/node_modules/@angular/common/esm2015/testing.js
JavaScript
gpl-3.0
9,141
var jugendstadtplanLogin = angular.module('jugendstadtplan.login', []); jugendstadtplanLogin.service('LoginService', ['$window', 'jwtHelper', function($window, jwtHelper) { var LoginService = { authenticated: false, traeger: null }; LoginService.getToken = function(){ var token = $...
KinderJugendringBonn/jugendstadtplan
public/src/common/resources/LoginService.js
JavaScript
gpl-3.0
1,703
$(document).ready(function() { $("#top_menu ul:first a:first[title]").qtip({ style: { border: { width: 2, radius: 3 }, color: "white", name: "dark", textAlign: "center", tip: true }, position: { corner: { target: "bottomRight", tooltip: "topLeft" } } }); $("#top_menu u...
gubi/Ninuxoo-2.0
common/js/qtip-integration.js
JavaScript
gpl-3.0
1,215
Bitrix 16.5 Business Demo = ddb2b3408c8ec78011b8a33b22e404e9 Bitrix 17.0.9 Business Demo = f170b9520b1f41b89366598734f75838
gohdan/DFC
known_files/hashes/bitrix/modules/sale/install/js/sale/admin/order_basket.map.js
JavaScript
gpl-3.0
124
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { all: ['Gruntfile.js', 'src/**.js'] }, less: { development: { options: { paths: ["style/less"] }, files: { "dist...
soupytwist/Foxi
Gruntfile.js
JavaScript
gpl-3.0
3,441
vti_encoding:SR|utf8-nl vti_timelastmodified:TW|14 Aug 2014 12:39:17 -0000 vti_extenderversion:SR|12.0.0.0 vti_author:SR|Office-PC\\Rafael vti_modifiedby:SR|Office-PC\\Rafael vti_timecreated:TR|01 Nov 2014 09:08:42 -0000 vti_backlinkinfo:VX| vti_nexttolasttimemodified:TW|14 Aug 2014 12:39:17 -0000 vti_cacheddtm:TX|03 N...
Vitronic/kaufreund.de
admin/view/javascript/ckeditor/lang/_vti_cnf/pt.js
JavaScript
gpl-3.0
618
/* A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element. Now given an M x N matrix, return True if and only if the matrix is Toeplitz. Example 1: Input: matrix = [[1,2,3,4],[5,1,2,3],[9,5,1,2]] Output: True Explanation: 1234 5123 9512 In the above grid, the diagonals are "[9]"...
matrixki/LeetCode
766. Toeplitz Matrix.js
JavaScript
gpl-3.0
1,083
// ==UserScript== // @name youkuantiads.uc.js // @namespace [email protected] // @description 视频网站去黑屏 // @include chrome://browser/content/browser.xul // @author harv.c // @homepage http://haoutil.tk // @version 1.6.1 // @updateUrl https://j.mozest.com/zh-CN/...
Harv/userChromeJS
youkuantiads.uc.js
JavaScript
gpl-3.0
10,871
const thirdPartyServices = require('../services/thirdparty'); // History state init (state that is reflected in the url) const historyState = {}; // Map from querystring key to state key const querystringMappings = { countryCode: 'selectedZoneName', datetime: 'customDate', page: 'showPageState', solar: 'solar...
tmrowco/electricitymap
web/src/helpers/historystate.js
JavaScript
gpl-3.0
2,209
// Copyright 2017-2021, University of Colorado Boulder /** * The reward that is displayed when all levels have been correctly completed. For testing, the simulation can be run * with the 'showRewardNodeEveryLevel' query parameter to show the reward each time a level is successfully completed. * * @author John Bla...
phetsims/expression-exchange
js/game/view/EERewardNode.js
JavaScript
gpl-3.0
1,929
 Ext.define('App.app.model.Role', { extend: 'Ext.data.Model', fields: [ 'ID', 'Code', 'Name', 'Sort', 'Status', 'Comment' ] });
tengge1/ExtApp
ExtApp/ExtApp.Web/app/app/model/Role.js
JavaScript
gpl-3.0
191
var app = angular.module('app', []); app.config(function ($httpProvider) { $httpProvider.defaults.transformRequest = function (data) { if (data === undefined) { return data; } return $.param(data); }; $httpProvider.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;'; })...
evilgeniuslabs/plasma
js/app.js
JavaScript
gpl-3.0
11,867
(function(w, $) { // Carousel jQuery(function($) { $('.carousel').carousel({ interval: 5000, keyboard: true }); }); })(window, jQuery); function errorForm(msg){ swal({ title: "Ups!", text: msg, type: "error", timer: 4000, animation: "pop", confirmButtonTe...
CarlosTenorio/vespapp-web
src/js/main.js
JavaScript
gpl-3.0
1,968
(function() { 'use strict'; angular .module('klaskApp') .controller('UserManagementDeleteController', UserManagementDeleteController); UserManagementDeleteController.$inject = ['$uibModalInstance', 'entity', 'User']; function UserManagementDeleteController ($uibModalInstance, entity, ...
klask-io/klask-io
src/main/webapp/app/admin/user-management/user-management-delete-dialog.controller.js
JavaScript
gpl-3.0
739
canvas = document.getElementById('canvas'); ctx = canvas.getContext('2d'); var ball1 = new cel.Body({ x: 25, y: 25, size:15, //mass:0, type: 'circle' }); var ball2 = new cel.Body({ x: 30, y: 250, size:15, mass:0, type: 'square' }); var touching = false; setInterval(function (...
Firedrake969/celeritas.js
test/test.js
JavaScript
gpl-3.0
920
$(function () { //初始化元素选择模态窗口 $("#ProductEditModal").modal({ show: false }).on("shown.bs.modal", function () { $.ajax({ type: "GET", url: "/ProductMaintain/AjaxLoadEditProduct?ProductSysNo=" + ProductEdit.ProductSysNo, dataType: "html", succes...
ZeroOne71/ql
03_SellerPortal/ECommerce.Web/Content/scripts/ProductMaintain/ProductEdit.js
JavaScript
gpl-3.0
4,232
Ext.namespace('go.modules.comments'); go.modules.comments.CommentsDetailPanel = Ext.extend(Ext.Panel, { model_name: null, title: t("Comments", "comments"), collapsible: true, titleCollapse: true, stateId: "comments-detail", initComponent: function () { this.store = new GO.data.JsonStore({ url: GO.url('co...
deependhulla/powermail-debian9
files/rootdir/usr/local/src/groupoffice-6.3/modules/comments/CommentsDetailPanel.js
JavaScript
gpl-3.0
3,123
/* Copyright (C) 2012 Trackplus * $Id$ */ Ext.define('Ext.ux.LinkComponent', { extend: 'Ext.Component', alias: ['widget.linkcomponent'], config:{ handler:null, scope:null, clsLink:'synopsis_blue', label:'', prefix:null, suffix:null }, initComponent: function(){ var me=this; me.initHTML(); me.c...
trackplus/Genji
src/main/webapp/js/ext/ux/LinkComponent.js
JavaScript
gpl-3.0
1,249
'use strict'; module.exports = function(sequelize, DataTypes) { return sequelize.define('FeedbrowserCache', { feed_url: { type: DataTypes.TEXT, allowNull: false }, site_url: { type: DataTypes.TEXT, allowNull: false }, title: { type: DataTypes.TEXT, allowNull: f...
jchristi/syndicat
models/FeedbrowserCache.js
JavaScript
gpl-3.0
472
import KindAttributes from "../KindAttributes"; describe("backend/components/resource/form/KindAttributes", () => { def("getModelValue", () => jest.fn(() => $resource.attributes.kind)); def("resource", () => factory("resource", { attributes: { kind: $kind } })); def("root", () => $withFormContext(<KindAttrib...
ManifoldScholar/manifold
client/src/backend/components/resource/form/__tests__/KindAttributes-test.js
JavaScript
gpl-3.0
829
"use strict"; ddcs.layout = ddcs.layout || {}; ddcs.layout.initialize = function() { }; ddcs.layout.setDocumentColor = function(value){ var body = $('body'); body.css('background', 'linear-gradient(white, ' + value + ')'); body.css('background-repeat', 'no-repeat'); body.css('background-attachment',...
ThaumRystra/character-sheet-dnd5
js/ddcs.layout.js
JavaScript
gpl-3.0
334
import {HLJob} from './base' import { Formations} from "../formations"; import {MLRestJob} from "../ml/rest"; class HLRestJob extends HLJob { constructor(entity, length, formatted) { super(); this.entity = entity; this.length = length; this.done = false; if (formatted) { this.formation = ne...
godrin/antargis.js
src/game/hl/rest.js
JavaScript
gpl-3.0
791
/*! * Bootstrap v3.3.6 (http://getbootstrap.com) * Copyright 2011-2015 Twitter, Inc. * Licensed under the MIT license */ if(typeof jQuery==='undefined'){throw new Error('Bootstrap\'s JavaScript requires jQuery')} +function($){'use strict';var version=$.fn.jquery.split(' ')[0].split('.') if((version[0]<2&&version[1]...
zerossB/CadastroTest-Python
static/gen/app.js
JavaScript
gpl-3.0
46,949
var class_m_s_lane_changer = [ [ "ChangeElem", "d9/d57/struct_m_s_lane_changer_1_1_change_elem.html", "d9/d57/struct_m_s_lane_changer_1_1_change_elem" ], [ "Changer", "d6/dad/class_m_s_lane_changer.html#a4ed01f2879bd6324a4aee0da7fc08f9c", null ], [ "ChangerIt", "d6/dad/class_m_s_lane_changer.html#ade04b4305...
cathyyul/sumo-0.18
docs/doxygen/d6/dad/class_m_s_lane_changer.js
JavaScript
gpl-3.0
2,901
SL.app.Page = class Page { constructor() { this.content = document.getElementById('content'); this.id = null; this.params = null; /** * @type Controller */ this.controller = null; this.local = null; /** * @type Footer */ ...
gingifruden/troisdai
dev/default/js/app/Page.js
JavaScript
gpl-3.0
5,182
import { withRouter } from 'react-router-dom' import { graphql, gql } from 'react-apollo' import Voting from './Voting' const queryQuestions = gql` query feedback($id: String!, $type: String!) { feedback(id: $id, type: $type){ feedback { feedbackId dashboardId votingId resu...
cityofsurrey/polltal-app
src/Voting/Voting.data.js
JavaScript
gpl-3.0
1,579
/* Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two numbers such that they add up to the target, where index1 must be less than index2. Please note that your returned answers (b...
matrixki/LeetCode
167. Two Sum II - Input array is sorted.js
JavaScript
gpl-3.0
1,088
import GraphQLJSON from 'graphql-type-json'; import { GraphQLObjectType, GraphQLNonNull, GraphQLString, GraphQLFloat, GraphQLBoolean, GraphQLID } from 'graphql'; import templateType from './template'; import userType from './user'; import TemplateModel from '../../models/template'; import UserModel from '....
relax/relax
lib/server/graphql/types/schema.js
JavaScript
gpl-3.0
1,415
'use strict'; if (process.env.NODE_ENV === 'production') require('newrelic'); const PORT = process.env.PORT || 3333; const os = require('os'), https = require('https'), express = require('express'), fs = require('fs'), RoutesConfig = require('./config/routes.conf'), DBConfig = requi...
francoa/process-monitoring
server/server.js
JavaScript
gpl-3.0
1,464
var searchData= [ ['hitbox',['Hitbox',['../class_hitbox.html',1,'Hitbox'],['../class_hitbox.html#acb9da54b168b9e457b01387ba4ddfe02',1,'Hitbox::Hitbox(float x, float y, int width, int length)'],['../class_hitbox.html#a999b0be8486978b3dd7bcd001c7c3c03',1,'Hitbox::Hitbox()']]], ['hitbox_2ecpp',['Hitbox.cpp',['../_hitb...
CPSC2720SpaceInvaders/GameCodeProduction
html/search/all_7.js
JavaScript
gpl-3.0
507
import { LOADING_CONTACT_PAGE_CONTENT, RECEIVE_CONTACT_PAGE_CONTENT, CONTACT_FORM_SENT, CONTACT_FORM_RESET, CONTACT_FORM_ERROR, SENDING_FORM } from './actions'; const initialState = { loaded: false, sent: false, error: false, sending: false, content: {} }; export default (state = initialState, a...
benceg/dani
src/containers/Contact/reducers.js
JavaScript
gpl-3.0
839
'use strict'; var chai = require('chai'); var expect = require('chai').expect; var express = require('express'); var randomstring = require('randomstring'); var sinon = require('sinon'); var MasterWAMPServer = require('wamp-socket-cluster/MasterWAMPServer'); var config = require('../../../config.json'); var failureCo...
reasonthearchitect/lisk
test/api/transport/transport.client.js
JavaScript
gpl-3.0
7,697
import React, { PropTypes } from 'react'; const Main = ({ children }) => ( <main role="main" className="content"> {children} </main> ); Main.propTypes = { children: PropTypes.any.isRequired, }; export default Main;
jamesmcewan/jmce-react
app/components/modules/Main/Main.js
JavaScript
gpl-3.0
228
import store from "../../store"; import React, { Component } from "react"; import { easyComp } from "react-easy-state"; import { AgGridReact } from "ag-grid-react"; // import { Transition } from "semantic-ui-react"; class CorrelationTable extends Component { onGridReady = params => { this.gridApi = params.api; ...
shawnbanasick/ken-q-analysis
src/S2-corr/CorrelationTable/CorrelationTable.js
JavaScript
gpl-3.0
1,471
(function () { var offlinePages = /^\/(index|about|schedule|location).htm$/; var hideLinksThatRequireOnline = function () { var allNavLinks = document.querySelectorAll("nav.page-nav a"); for (var i = 0; i < allNavLinks.length; i++) { var href = allNavLinks[i].getAttribute("href");...
theglue99/Interface480
Classcontent/Mod13/Labfiles/Starter/Exercise 3/ContosoConf/scripts/offline.js
JavaScript
gpl-3.0
12,348
var self = {}; // ---- CONFIGURATION EXPORT ---- self.LOG_LEVEL = 'debug'; self.HOST_SETTINGS = { MARKETPLACE_CORE: { PROTOCOL: 'HTTP', HOST: 'localhost', PORT: 3002 }, OAUTH_SERVER_EXTERNAL: { PROTOCOL: 'HTTP', HOST: 'localhost', PORT: 3005 }, O...
IUNO-TDM/JuiceMarketplaceWebsite
JuiceMarketplaceWebsite-app/config/config_docker.js
JavaScript
gpl-3.0
727
class Modal { constructor(content) { this._id = 'modal-' + Date.now() this._content = content ? content : '' this._dom = {} this.setup() } get id() { return this._id } get content() { return this._content } set content(newContent) { ...
martincleto/webpack2-es6
src/js/modules/modal.js
JavaScript
gpl-3.0
1,533
/*! * Plugin process * * Wolf Page Builder 2.8.9 */ /* jshint -W062 */ var WPBProcess=WPBProcess||{},WPB=WPB||{},WPBParams=WPBParams||{},console=console||{};WPBProcess=function(a){"use strict";return{/** * Init UI */ init:function(){a(".wpb-process-container").length&&a(".wpb-process-container").each(functio...
wolfthemes/wpb-test
assets/js/min/process.min.js
JavaScript
gpl-3.0
804
/* jSmart Javascript template engine, a port of Smarty PHP to Javascript https://github.com/miroshnikov/jsmart Copyright 2011, Max Miroshnikov <miroshnikov at gmail dot com> jSmart is licensed under the GNU Lesser General Public License http://www.gnu.org/licenses/lgpl.html */ (function(){function J(a,c){for(v...
quartz55/LBAW
proto/js/smart.min.js
JavaScript
gpl-3.0
54,804
/* * Copyright (c) 2017 dtrouillet * All rights reserved. * * Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright notice, this list of conditions and the f...
kms77/Fayabank
src/main/webapp/app/services/auth/has-authority.directive.js
JavaScript
gpl-3.0
2,988
var uploader=angular.module('ui.ng-uploader', []) .directive('ngUploader', ['uploaderFactory','$log',function (uploaderFactory,$log) { return { //startUpload:uploaderFactory.startUpload, data:uploaderFactory.data, restrict: 'AEC', template:'<div class="panel panel-info"><div class="panel-heading"><input clas...
realtica/ng-uploader
src/ngUploader.js
JavaScript
gpl-3.0
5,288
/******************************************************************************* uBlock Origin - a browser extension to block requests. Copyright (C) 2017 Raymond Hill This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published...
PeterDaveHello/uBlock
platform/webext/vapi-usercss.js
JavaScript
gpl-3.0
7,401
dojo.provide("dijit.form.CheckBox"); dojo.require("dijit.form.Button"); dojo.declare( "dijit.form.CheckBox", dijit.form.ToggleButton, { // summary: // Same as an HTML checkbox, but with fancy styling. // // description: // User interacts with real html inputs. // On onclick (which occurs by mouse cli...
NESCent/plhdb
WebRoot/js/dijit/form/CheckBox.js
JavaScript
gpl-3.0
3,231
angapp.controller('ContPPT2', function($scope){ $scope.empatadas="0"; $scope.ganadas="0"; $scope.perdidas="0"; // $scope.eleccionMaquina="papel"; $scope.comenzar=function(){ numeroSecreto =Math.floor( Math.random()*3)+1; //alert(numeroSecreto); switch(numeroSecreto) { case 1: $scope.eleccionMaquina...
mlcaamano/TP1LAB4
controladorPPT2.js
JavaScript
gpl-3.0
2,864
// Copyright 2015, 2016 Parity Technologies (UK) Ltd. // This file is part of Parity. // Parity 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...
immartian/musicoin
js/src/api/subscriptions/personal.spec.js
JavaScript
gpl-3.0
3,180
angular.module('askApp') .directive('ngTap', function() { return function($scope, $element, $attributes) { var tapped; tapped = false; $element.bind("click", function() { if (!tapped) { return $scope.$apply($attributes["ngTap"]); } }); ...
point97/hapifis
server/static/survey/assets/js/directives/tap.js
JavaScript
gpl-3.0
738
import Ember from 'ember'; import { validator, buildValidations } from 'ember-cp-validations'; var Validations = buildValidations({ campaigntitle: [ validator('presence', true), validator('length', { max: 80, }) ], shortdescription: [ validator('presenc...
vikramviswanathan/CrowdFundingUI
app/controllers/start-campaign.js
JavaScript
gpl-3.0
12,393
/** * A specialized floating Component that supports a drop status icon, {@link Ext.Layer} styles * and auto-repair. This is the default drag proxy used by all Ext.dd components. */ Ext.define('Ext.dd.StatusProxy', { extend: 'Ext.Component', animRepair: false, childEls: [ 'ghost' ], re...
grgur/Sencha5-Finance
ext/src/dd/StatusProxy.js
JavaScript
gpl-3.0
5,507
'use strict'; describe('ase.views.recordtype: RelatedAddController', function () { beforeEach(module('ase.mock.resources')); beforeEach(module('ase.views.recordtype')); var $controller; var $httpBackend; var $rootScope; var $scope; var Controller; var ResourcesMock; var recordSche...
fungjj92/DRIVER
schema_editor/test/spec/views/recordtype/related-add-controller.spec.js
JavaScript
gpl-3.0
3,613
var React = require('react'); var ReactDOM = require('react-dom'); var Library = require('./library'); var WebSocket = require('./wsClient'); var config = require('./config'); var LoginDialog = require('./components/LoginDialog.jsx'); var LoadingScreen = require('./components/LoadingScreen.jsx'); var TopRightUI = requi...
tosh823/vl16
src/client/app.js
JavaScript
gpl-3.0
5,018
var searchData= [ ['location',['Location',['../classPowerUp.html#a3f782c5a32f79a41d00a759c42121a31',1,'PowerUp']]] ];
isaaclacoba/tinman
doxygen/search/typedefs_3.js
JavaScript
gpl-3.0
120
$(document).ready(function() { now = new Date("2014-12-08T14:37:11"); loadStateData() loadRoomData(); replaceSVG(); loadFileLocally() //loadFileFromServer(); data = []; for (var i = 0; i < raw.feed.entry.length; i++) { var surgeryRaw = raw.feed.entry[i]; if (surgeryRaw.gsx$details.$t == "TRUE") { ...
ChristophLabacher/OPMS-Surgery-Management-System
src/scripts/setup.js
JavaScript
gpl-3.0
4,074
#!/usr/bin/env node /** * @file Handles postinstall tasks. */ var fs = require('fs'), path = require('path'), childProcess = require('child_process'), // eslint-disable-line security/detect-child-process chalk = require('chalk'), bcryptPath = path.resolve('node_modules', 'bcrypt'); // eslint-disable-next-lin...
kunagpal/express-boilerplate
scripts/misc/postInstall.js
JavaScript
gpl-3.0
748
import { oneLine } from 'common-tags'; import { apiToMessage, i18n } from 'utils'; export const JS_SYNTAX_ERROR = { code: 'JS_SYNTAX_ERROR', message: i18n._('JavaScript syntax error'), description: i18n._(oneLine`There is a JavaScript syntax error in your code; validation cannot continue on this file.`), };...
mozilla/addons-validator
src/messages/javascript.js
JavaScript
mpl-2.0
7,036
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the Lic...
tmhorne/celtx
js/tests/js1_5/extensions/regress-333541.js
JavaScript
mpl-2.0
3,351
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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/. */ /* * * Date: 21 Januar...
mozilla/rhino
testsrc/tests/ecma_3/String/regress-189898.js
JavaScript
mpl-2.0
2,623
/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* 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 gTestfile = 'regress-34...
mozilla/rhino
testsrc/tests/js1_7/block/regress-349962.js
JavaScript
mpl-2.0
954
/** * Created by slanska on 2016-10-04. */ "use strict"; var authentication = require('feathers-authentication/client'); /* Tests directly on database (no http server involved). Uses local SQLite database */ describe('DB access', function () { it('load user admin using cache', function (done) { }); it(...
slanska/nauth2
test/01_DBController.js
JavaScript
mpl-2.0
426
/* 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"; add_task(function*() { info("Check that toggleable toolbars dropdown in always shown"); info("...
Yukarumya/Yukarum-Redfoxes
browser/components/customizableui/test/browser_1058573_showToolbarsDropdown.js
JavaScript
mpl-2.0
811
import mongoose from 'mongoose' const URLSchema = mongoose.Schema({ urlid: {type: Number, required: true}, urllink: {type: String, required: true} }) const UrlModel = mongoose.model('url', URLSchema) export default UrlModel
jonniebigodes/freecodecampApiChallenges
src/models/Urls.model.js
JavaScript
mpl-2.0
231
/* * Copyright 2013-2014 Biz Tech (http://www.biztech.it). All rights reserved. * * 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/. * * Covered Software is provided...
biztech-it/BTable
BTable-common/resources/components/BTable/lib/bt.query.js
JavaScript
mpl-2.0
46,000
/* eslint-disable */ /** * 该文件是为了按需加载,剔除掉了一些不需要的框架组件。 * 减少了编译支持库包大小 * * 当需要更多组件依赖时,在该文件加入即可 */ import Vue from 'vue' import { LocaleProvider, Layout, Input, InputNumber, Button, Switch, Radio, Checkbox, Select, Card, Form, Row, Col, Modal, Table, Tabs, Icon, Badge, Popover, ...
keel-hq/keel
ui/src/core/lazy_lib/components_use.js
JavaScript
mpl-2.0
1,623
/** * @file configures and initializes the httpd, and sets up available routes * @module httpd * * @license https://www.mozilla.org/MPL/2.0/ MPL-2.0 * * @requires models * @requires routes * @requires research */ /* require packages */ var express = require( 'express' ); var morgan = require( 'morgan' ); v...
not-so-creative/eisenhower
server.js
JavaScript
mpl-2.0
8,294
/* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */ /* 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/. */ //--------------------------------------------------------...
Yukarumya/Yukarum-Redfoxes
js/src/tests/js1_8_1/regress/regress-452498-121.js
JavaScript
mpl-2.0
944
module.exports = { "env": { "es6": true, "browser": true, "webextensions": true }, "extends": "eslint:recommended", "parserOptions": { "ecmaVersion": 8, "sourceType": "module" }, "rules": { "brace-style": ["error", "1tbs"], "curly": ["error"], "eqeqeq": ["error"], "indent...
eoger/tabcenter-redux
.eslintrc.js
JavaScript
mpl-2.0
783
/** * @constructor * @augments ControlModel */ var IconModel = ControlModel.extend( { defaults: _.defaults( { value: null, size: '', focusable: false }, ControlModel.prototype.defaults ), /** * */ initialize: function() { ControlModel.prototype.initialize....
InfinniPlatform/InfinniUI
app/controls/icon/iconModel.js
JavaScript
agpl-3.0
392
var hd2Module = new baseVoucher('hd2','hd2',[],'Hóa đơn bán hàng'); hd2Module.module.defaultValues ={ t_thue_nt:0,t_thue:0,thue_suat:0 } hd2Module.defaultValues4Detail = { sl_xuat:0, ty_le_ck:0, gia_von_nt:0,gia_von:0, gia_ban_nt:0,gia_ban:0, tien_nt:0,tien:0, tien_ck_nt:0,tien_ck:0, px_gia_dd:false, tien_xuat...
Openroadvietnam/openaccounting
public/administrator/modules/vouchers/hd2/script.js
JavaScript
agpl-3.0
5,673
module.exports = require('./lib/ProxySession.js')('signOut')
bazgu/front-node
lib/Page/Data/SignOut.js
JavaScript
agpl-3.0
61
define(function (require) { 'use strict'; var Backbone = require('backbone'); var Rectangle = require('common/math/rectangle'); /** * Constants */ var Constants = require('constants'); /** * A david statue that detects collisions with projectiles */ var David = Backb...
Connexions/simulations
projectile-motion/src/js/models/david.js
JavaScript
agpl-3.0
1,717
import { moduleFor, test } from 'ember-qunit'; moduleFor('service:session-account', 'Unit | Service | session-account', { // Specify the other units that are required for this test. // needs: ['service:foo'] }); // Replace this with your real tests. test('it exists', function(assert) { let service = this.subjec...
Noteblox/client-ember
tests/unit/services/session-account-test.js
JavaScript
agpl-3.0
351
/*! * Copyright (C) Ascensio System SIA 2012-2021. All rights reserved * * https://www.onlyoffice.com/ * * Version: 0.0.0 (build:0) */ ;(function(DocsAPI, window, document, undefined) { /* # Full # config = { type: 'desktop or mobile or embedded', width: '100% by ...
xwiki-labs/cryptpad
www/common/onlyoffice/v5/web-apps/apps/api/documents/api.js
JavaScript
agpl-3.0
40,934