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
(function() { describe('User model', function() { var user; user = null; beforeEach(function() { user = new Ti.Model.User({ name: 'jack', email: 'jack@socialmenu.fm', password: 'password' }); return jasmine.Ajax.useMock(); }); describe('attributes', funct...
yuchenzhang/social_menu_tt
Resources/specs/models/UserSpec.js
JavaScript
apache-2.0
2,671
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.simpleSqlParse...
CargoWebServer/CargoWebServer
WebApp/Cargo/Apps/lib/simpleSqlParser.js
JavaScript
apache-2.0
30,655
'use strict'; var TrackStatus = { INCOMPLETE: 'INCOMPLETE', TO_BE_PROCESSED: 'TO_BE_PROCESSED', PROCESSED: 'PROCESSED', PROCESSING_SUCCEEDED: 'PROCESSING_SUCCEEDED', PROCESSING_FAILED: 'PROCESSING_FAILED' }; module.exports = { up: function (queryInterface, Sequelize) { /* Add altering commands h...
TracklistMe/server
migrations/20150903110741-addStatusEnumToTrack.js
JavaScript
apache-2.0
1,444
(function(){var test = require('tape'); var table = require('../'); var color = require('cli-color'); var ansiTrim = require('cli-color/lib/trim'); test('center', function (t) { t.plan(1); var opts = { align: [ 'l', 'c', 'l' ], stringLength: function(s) { return ansiTrim(s).length } }; ...
durwasa-chakraborty/navigus
.demeteorized/bundle/programs/server/app/lib/node_modules/modulus/node_modules/text-table/test/ansi-colors.js
JavaScript
apache-2.0
911
/** * Copyright (c) 2014 Intel Corporation * * 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 ...
enableiot/iotanalytics-dashboard
public-interface/test/unit/engine/api/v1/devices/devices-get-spec.js
JavaScript
apache-2.0
6,444
(function ($) { new WOW().init(); jQuery(window).load(function() { jQuery("#preloader").delay(100).fadeOut("slow"); jQuery("#load").delay(100).fadeOut("slow"); }); //jQuery to collapse the navbar on scroll // var scrollTop1=0; // var a=0; $(window).scroll(function() { // if ($(".navbar").offset...
roychenyi/wxs_web
js/custom.js
JavaScript
apache-2.0
1,046
'use strict'; const { fsx, restify } = __webida.libs; const helper = require('../../helper.js')(module); function remove(req, res, next) { const finish = helper.createFinisher(req, res, next); try { let { wfsPath } = helper.resolvePaths(req); let noRecursive = req.params.noRecursive; ...
webida/webida-server-mini
lib/components/http-service/handlers/wfs/remove.js
JavaScript
apache-2.0
1,300
$(document).ready(function() { //Mobile Nav - Manual Collapse with Easing $('.btn-navbar').click(function(e){ $('.main-link a').addClass('aura-collapse-triggered'); $('.nav-collapse').slideDown('slow','swing'); $('.aura-collapse-triggered').click(function(e){ $('.nav-collapse').slideUp('slow','s...
wqnner/HiBlog
Public/default/Index/js/aura.js
JavaScript
apache-2.0
3,934
function alertMsg(){ alert("有人点击"); } //用户提交登录表单 function usersubmit(){ var userLoginForm = document.getElementById("userlogin"); userLoginForm.submit(); }
miaoriji/MiaoDiaryServer
WebRoot/js/user.js
JavaScript
apache-2.0
185
describe('In class End to End Exercise', function() { 'use strict' beforeEach(function() { browser.get('e2e/index.html') }) it('should work and have header text', function() { expect(element.all(by.css('h1')).first().getText()).toMatch("Dummy Server Example") }) function login() { // grab...
skotep/webdev
sample/e2e-test/scenarios.js
JavaScript
apache-2.0
1,321
//import 'babel-polyfill'; //import './class/lesson17.js'; //import { A, test, Hello } from './class/lesson17.js'; // 通过{}花括号引入需要的元素,比如{A} //import * as lesson from './class/lesson17.js'; // 用as来起一个别名 import Lesson17 from './class/lesson17.js'; console.log(Lesson17.A); // console.log(lesson.A, lesson.test, lesson....
chinecc/WDCLab-ES6Cours
app/js/indexbak.js
JavaScript
apache-2.0
569
export { default } from './react-echarts.component.jsx';
websage-team/super-project
packages/koot-component/components/react-echarts/index.js
JavaScript
apache-2.0
57
/* Ractive-decorators-sortable =========================== Version 0.1.2. This plugin adds a 'sortable' decorator to Ractive, which enables elements that correspond to array members to be re-ordered using the HTML5 drag and drop API. Doing so will update the order of the array. =====...
fkmhrk/OpenInvoice
go/web/src/ractive-sortable.js
JavaScript
apache-2.0
6,542
import MetricsSender from 'sender' import interceptor from 'interceptor' export default class MetricsExecutor { constructor(metric) { this.metric = metric } run(block) { this.start = Date.now() this.calledFunctions = []; const args = this._wrapObjects(this.metric.objects) const res = block(...
sturdycloud/metricslib
src/executor.js
JavaScript
apache-2.0
1,876
/** * Visual Blocks Language * * Copyright 2012 Google Inc. * http://blockly.googlecode.com/ * * 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/LIC...
bollwyvl/Blockly
language/en/_messages.js
JavaScript
apache-2.0
27,048
/* globals describe, it, expect, expectObservable, hot */ var Rx = require('../../dist/cjs/Rx'); var Observable = Rx.Observable; describe('count', function () { it('should be never when source is never', function () { var e1 = Observable.never(); var expected = '-'; expectObservable(e1.count()).toBe(exp...
luisgabriel/RxJS
spec/operators/count-spec.js
JavaScript
apache-2.0
5,648
'use strict'; var ois = require('../../Object/is') , value = require('../../Object/valid-value') , toArray = require('../from') , byLength = require('./_compare-by-length') , every = Array.prototype.every; module.exports = function (/*…lists*/) { var lists, r, l; lists = [this].concat(toArray(arguments)...
DeinDesign/css
node_modules/bower/node_modules/inquirer/node_modules/cli-color/node_modules/es5-ext/lib/Array/prototype/common-left.js
JavaScript
apache-2.0
664
var searchData= [ ['s1',['s1',['../util_8h.html#a3b6653c9d2fc6aa11ec16b971883b82a',1,'util.h']]], ['s2',['s2',['../util_8h.html#a1ad7643875e80af295454566f9d548d8',1,'util.h']]], ['s4',['s4',['../util_8h.html#a6cbbd184fa2df78cc5d5fe4d7104223a',1,'util.h']]], ['s8',['s8',['../util_8h.html#a8bd056dc6b59eae146cf244...
notishell/gaia
docs/html/search/typedefs_0.js
JavaScript
apache-2.0
348
require(__dirname).test( { xml: "<root xml:lang='en'/>" , expect: [["attribute" , { name: "xml:lang" , local: "lang" , prefix: "xml" , uri: "http://www.w3.org/XML/1998/namespace" , value: "en" } ] , ["opentag" ...
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/sax/test/xmlns-xml-default-prefix-attribute.js
JavaScript
apache-2.0
970
/* Copyright 2012 Mozilla Foundation * * 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 agreed...
AlexFine/ionic-conference-app
www/pdf.js/src/core/core.js
JavaScript
apache-2.0
18,632
F.route('/admin/tickets', query, ['*Ticket']); F.route('/admin/tickets/{id}', get, ['*Ticket']); F.route('/admin/tickets/{id}', save, ['*Ticket', 'put']); F.route('/admin/tickets', save, ['*Ticket', 'post']); F.route('/admin/tickets/{id}', remove, ['*Ticket', 'delete']); function query() { let ...
shmakes/zt_ApiSim
controllers/tickets.js
JavaScript
apache-2.0
669
// Load the config generated by scalajs-bundler var webpack = require('webpack'); // Load the config generated by scalajs-bundler var config = require('./scalajs.webpack.config'); // Exported modules (here, React and ReactDOM) var globalModules = { "react": "React", "react-dom": "ReactDOM" }; Object.keys(config....
iriddhi/mis
client/webpack.config.js
JavaScript
apache-2.0
736
// Copyright 2016 Hound Technology, Inc. All rights reserved. // Use of this source code is governed by the Apache License 2.0 // license that can be found in the LICENSE file. /** * @module */ import foreach from "./foreach"; /** * Represents an individual event to send to Honeycomb. * @class */ export default ...
honeycombio/libhoney-js
src/event.js
JavaScript
apache-2.0
3,157
import template from './category-item.html'; import './category-item.styl'; const categoryItemComponent = { bindings: { category: '<', selected: '&' }, template, controllerAs: 'categoryItemCtrl' }; export default categoryItemComponent;
simpulton/eggly-es6
client/app/components/categories/category-item/category-item.component.js
JavaScript
apache-2.0
253
// JavaScript Document var Tween = { Linear: function(t,b,c,d){ return c*t/d + b; }, Quad: { easeIn: function(t,b,c,d){ return c*(t/=d)*t + b; }, easeOut: function(t,b,c,d){ return -c *(t/=d)*(t-2) + b; }, easeInOut: function(t,b,c,d){ ...
javaTeam12/PortfolioManager
src/main/webapp/html/js/tween.js
JavaScript
apache-2.0
5,180
/** * @license * Visual Blocks Editor * * Copyright 2016 Google Inc. * https://developers.google.com/blockly/ * * 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.apach...
LLK/scratch-blocks
core/constants.js
JavaScript
apache-2.0
9,301
/** * Samsara API * * * OpenAPI spec version: 1.0.0 * * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use t...
samsarahq/samsara-js
test/model/TemperatureResponseSensors.spec.js
JavaScript
apache-2.0
3,119
/* @flow */ import type { Auth } from '../../types'; import { apiPost } from '../apiFetch'; export default async (auth: Auth, streamId: number, value: boolean) => apiPost(auth, 'users/me/subscriptions/properties', res => res, { subscription_data: JSON.stringify([ { property: 'in_home_view', ...
kunall17/zulip-mobile
src/api/subscriptions/toggleMuteStream.js
JavaScript
apache-2.0
388
'use strict'; const { spawn } = require('child_process'); const path = require('path'); const Promise = require('bluebird'); function newProcessor(context, opConfig) { const { args, options } = opConfig; const contextLogger = context.logger; let command = ''; return new Promise(((resolve, reject) =>...
jsnoble/teraslice
packages/teraslice/lib/processors/script.js
JavaScript
apache-2.0
4,084
/* * phonefmt_KR.js - Test the phonefmt_KR Style. * * Copyright © 2014-2015,2017, JEDLSoft * * 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/LI...
iLib-js/iLib
js/test/phone/testphonefmt_KR.js
JavaScript
apache-2.0
38,469
/* * Demonstrates how to set up your UA Airmail Mailbox, * and how to receive notifications from UA */ // open a single window var window = Ti.UI.createWindow({backgroundColor: 'white', layout: 'vertical'}); var btnOpen = Ti.UI.createButton({ title: 'Open UA Inbox', width: 200, height: 40 }); btnOpen.addEv...
matthewcore/BandGsClubApp
modules/iphone/ti.urbanairship/3.0.0/example/app.js
JavaScript
apache-2.0
3,282
define( ({ "StatsBlock": { "close": "lukk", "next": "Neste", "previous": "Forrige", "source":"Datakilde" } }) );
stolbov/chebinvest.github.io
js/nls/nb/StatsBlock.js
JavaScript
apache-2.0
188
// This is actually for BOTH trees and menus $axure.internal(function($ax) { var _tree = $ax.tree = {}; var _menu = $ax.menu = {}; $ax.menu.InitializeSubmenu = function(subMenuId, cellId) { var $submenudiv = $('#' + subMenuId); //mouseenter and leave for parent table cell $('#' + ...
dsrichard/quoteball
www/resources/scripts/axure/tree.js
JavaScript
apache-2.0
7,154
/* eslint-disable */ const path = require('path'); const webpack = require('webpack'); const HtmlWebpackPlugin = require('html-webpack-plugin'); module.exports = (env = { dev: true }) => ({ entry: env.dev ? path.resolve(__dirname, 'examples', 'index.js') : path.resolve(__dirname, 'lib',...
4ndr01d3/clanviewer
webpack.config.js
JavaScript
apache-2.0
1,276
// NPM IMPORTS import assert from 'assert' // COMMON IMPORTS import T from '../utils/types' import FeaturesPlugin from './features_plugin' const context = 'common/plugins/rendering_plugin' /** * Plugin class for renderers plugin. * @author Luc BORIES * @license Apache-2.0 */ export default class...
lucbories/devapt-core-common
src/js/plugins/rendering_plugin.js
JavaScript
apache-2.0
4,624
// This is a manifest file that'll be compiled into application.js, which will include all the files // listed below. // // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts, // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative ...
JDrit/WikiStreamingWeb
app/assets/javascripts/application.js
JavaScript
apache-2.0
753
const R = require('ramda') function handleError (req, res, msg) { if (R.isNil(req)) { res.status(500).send(msg) } else { const failureUrl = R.defaultTo(global.basicConfig.failureRedirectUrl, req.failureUrl) res.redirect(`${failureUrl}?failure=${msg}`) } } module.exports = { handleError: handleErro...
GluuFederation/gluu-passport
server/utils/web-utils.js
JavaScript
apache-2.0
324
/** * @license * Copyright The Closure Library Authors. * SPDX-License-Identifier: Apache-2.0 */ /** * @fileoverview Wrappers for the HTML5 File API. These wrappers closely mirror * the underlying APIs, but use Closure-style events and Deferred return values. * Their existence also makes it possible to mock the...
lucidsoftware/closure-library
closure/goog/fs/blob.js
JavaScript
apache-2.0
2,406
function render_generic_hook(hooks){ var link_box, link_head, link_desc, link, target; hooks.each(function(hook){ link_box = new Element('div',{ 'class':'link-box' }); link_head = new Element('div',{ 'class':'link-heading' }); link_desc = new Elem...
prafula/FedenaT
public/javascripts/fedena_plugin.js
JavaScript
apache-2.0
845
function WPATH(s) { var index = s.lastIndexOf("/"); var path = -1 === index ? "titlebar/" + s : s.substring(0, index) + "/titlebar/" + s.substring(index + 1); return path; } module.exports = [ { isApi: true, priority: 1000.0001, key: "window", style: { layout: "vertical" } }, { ...
mich8060/Views
Resources/iphone/alloy/widgets/titlebar/styles/widget.js
JavaScript
apache-2.0
972
import TOOL_TYPES from './types'; const { external, api, dep, ci, cli, framework } = TOOL_TYPES; export default { accessibility: { title: 'Accessibility', subtitle: 'Visualize, audit and test accessibility parameters in your project', tools: [ { description: 'An accessibility visuali...
GoogleChromeLabs/progressive-tooling
src/tools/index.js
JavaScript
apache-2.0
16,989
/** * @fileoverview 弹出窗口处理 * port from EF */ var EF_SPLIT = "__"; var EF_CLASSTAG = ""; var EF_FORMDATA_SPLIT = "-"; var EF_CR_IDENTIFIER = "¶¶"; var EF_CR_HTML_IDENTIFIER = "&para;&para;"; //alert("efform"); var ef_form_init_time = new Date(); var ef_form_validate_message = new Object(); var ef_g...
stserp/erp1
source/web/por2/js/por.form.js
JavaScript
apache-2.0
11,554
const AWS = require('aws-sdk') const initAws = (options) => { AWS.config.update({ accessKeyId: options.s3AccessKeyId, secretAccessKey: options.s3SecretAccessKey, sslEnabled: options.s3SSLEnabled, s3ForcePathStyle: options.s3ForcePathStyle }) if (options.s3Endpoint != null) { AWS.config.update(...
taskrabbit/elasticsearch-dump
lib/init-aws.js
JavaScript
apache-2.0
1,067
"use strict"; var YL = Y.Lang, NAMESPACE, STRING, LENGTH, UPPER, LOWER, ALPHALEN, DIGIT, VALID_TYPES, TYPE, ATTRS, getNumber, random, randInt, randBoolean, randListItem; NAMESPACE = "Generator"; UPPER = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K"...
cvadillo/mockdata-generator
src/generator-base/js/generator-base.js
JavaScript
apache-2.0
5,869
/* Copyright 2010-2013 SourceGear, LLC 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 agreed to in writing, softwar...
glycerine/vj
src/veracity/src/js_tests/failing_st_CLC_zing.js
JavaScript
apache-2.0
5,025
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors'), Project = mongoose.model('Project'), Log = mongoose.model('Log'), Plate = mongoose.model('Plate'), Sample = mongoose.model('Sample'), User = mongoose.model('User'), _ = require('lodash'), ...
dejesus2010/CEN3031Project
mean/app/controllers/projects.server.controller.js
JavaScript
apache-2.0
10,366
var Dispatcher = require('./Dispatcher'); var assign = require('object-assign'); var AppDispatcher = assign({}, Dispatcher.prototype, { /** * A bridge function between the views and the dispatcher, marking the action * as a view action. Another variant here could be handleServerAction. * @param {...
SkaveRat/headjack
dispatcher/AppDispatcher.js
JavaScript
apache-2.0
556
db = connect("checksum"); db.foo.drop(); db.bar.drop(); // do a simple copy and check to see that checksums match db.foo.save({a : 1}); db.foo.save({n : 2}); db.foo.find().forEach(function(x) { db.bar.save(x); }); sum1 = db.bar.checksum(); sum2 = db.foo.checksum(); assert(sum1 == sum2); // now add an index - che...
babble/babble
src/test/ed/db/checksum2.js
JavaScript
apache-2.0
502
//Geolocation config Ti.Geolocation.preferredProvider = "gps"; Titanium.Geolocation.accuracy = Titanium.Geolocation.ACCURACY_BEST; Titanium.Geolocation.distanceFilter = 10; // set the granularity of the location event //Core variables app.core.appClosed = false; app.core.appDestroyed = false; app.core.uploadingEvent =...
rayyyou16/hot-now-titanium
Resources/core/core.js
JavaScript
apache-2.0
11,740
/* Copyright 2016 Mozilla 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 agreed to in writing, software distributed u...
victorporof/tofino
src/browser-frontend/selectors/ui-pages-selectors.js
JavaScript
apache-2.0
5,270
// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
GoogleCloudPlatform/nodejs-docs-samples
run/pubsub/test/system.test.js
JavaScript
apache-2.0
3,971
import { connect } from 'react-redux'; import followUpActions from '../../../../../actions/followUps'; import FollowUpList from './FollowUpList'; import HideOnArchivedHOC from '../../../../../HOCs/archive/HideOnArchivedHOC'; const mapStateToProps = (state, ownProps) => { return { followUps: state.followUps.matc...
VGraupera/1on1tracker
src/components/directs/single/tabs/follow-up/FollowUpListContainer.js
JavaScript
apache-2.0
507
/** * @license * Copyright 2014 The Lovefield Project Authors. All Rights Reserved. * * 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 ...
GerHobbelt/lovefield
lib/cache/prefetcher.js
JavaScript
apache-2.0
7,412
var express = require('express'); var router = express.Router(); var multer = require('multer'); var dateFormat = require('dateformat'); var SEPARATOR = "-"; var maxSize = 32 * 1000 * 1000; var Candidate = require('../models/candidate'); function processName(file){ var json = {}; var fileOriginalName = file.or...
carlospatinos/recruitment
routes/candidates.js
JavaScript
apache-2.0
3,311
/** * Created by Alan on 1/21/14. */ enyo.kind({ name: 'LeftPanelShadow', published: { grabber: false }, components: [ { name: 'top', classes: 'left-panel-shadow-top' }, { name: 'fill', classes: 'left-panel-shadow' }, { name: 'bottom', classes: 'left-panel-shadow-b...
Andolamin/EnyoLibraries
MochiAdditions/PanelShadow/LeftPanelShadow.js
JavaScript
apache-2.0
518
/* * Copyright 2012 Amadeus s.a.s. * 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 agreed to i...
ariatemplates-plugins/lightwidgets
build/build.js
JavaScript
apache-2.0
637
{ "displayType":"tabs", "configurationSettings":[ { "category":"Map", "fields":[ { "type":"webmap" }, { "type":"appproxies" } ] }, { "category":"General", "fields":[ ...
geojuju/geojuju.github.io
resources/configurationPanel.js
JavaScript
apache-2.0
13,229
this.foo = function(xx) { this.fooo = 54; return xx + 42; } var x = this.foo(2222); var y = this.fooo; assert(x == 2264); assert(y === 54); dumpValue(y);
keil/TbDA
test/micro/test35.js
JavaScript
apache-2.0
169
/*! * Ext JS Library 3.0.3 * Copyright(c) 2006-2009 Ext JS, LLC * licensing@extjs.com * http://www.extjs.com/license */ /** * @class Ext.direct.RemotingProvider * @extends Ext.direct.JsonProvider * * <p>The {@link Ext.direct.RemotingProvider RemotingProvider} exposes access to * server side methods on the cl...
sages-health/openessence-demo
core/src/main/webapp/js/ext-3.0.3/src/direct/RemotingProvider.js
JavaScript
apache-2.0
12,822
function Drags(obj){ var drag=document.getElementById(obj); if(!drag){return} //var longbar=getByClass(drag,"long_bar")[0];拖拽区域宽度 var smallbar=getByClass(drag,"small_bar")[0];//拖拽灰色区域 var arrbtn=drag.getElementsByTagName("a")[0];//拖拽模块 var minP=drag.getElementsByTagName("b")[0]; var maxP=drag.get...
AfricaRegex/SjcProduct
SjcProject/WebRoot/js/drag.js
JavaScript
apache-2.0
3,647
import * as fakes from './fake_client_modules.js'; import {willReject} from '/lib/testing_utils.js'; const expect = chai.expect; // Our major concern with the client module is that it cleans up after itself // when things go wrong. describe('client module', () => { afterEach(() => { sinon.restore(); }); it(...
google/chicago-brick
client/modules/module_test.js
JavaScript
apache-2.0
2,609
function loadOfferInfo(data) { var statusButtonDiv= ""; var pictureDiv = ""; var description = ""; var offerDetails = ""; var carInfo = ""; var currentUserId = MY_APP_VARS.currentUser.id; var currentUserRoleName = MY_APP_VARS.currentUser.roleName; for (var i = 0; i < data.length; i++) { ...
VardanMatevosyan/Vardan-Git-Repository
Spring/autoSaleSpringBoot/src/main/resources/static/js/mainContentInfo.js
JavaScript
apache-2.0
8,788
/* ======================================================================== * Bootstrap: dropdown.js v3.0.0 * http://twbs.github.com/bootstrap/javascript.html#dropdowns * ======================================================================== * Copyright 2012 Twitter, Inc. * * Licensed under the Apache License, ...
DeinDesign/css
bower_components/bootstrap/js/dropdown.js
JavaScript
apache-2.0
5,157
// /media/data2/workspace/personal-learning-react/src/fluxdux var FluxDux = require('../fluxdux.js'); var store = FluxDux.createStore('notes', { initialState : function() { return []; }, add : function(state, data) { data.visibility = "visible"; state.push(data); return state; }, ...
nquangtrung/fluxdux
main/demo/demo.js
JavaScript
apache-2.0
2,612
var T, baidu = T = baidu || { version: "1.5.0" }; baidu.guid = "$BAIDU$"; window[baidu.guid] = window[baidu.guid] || {}; baidu.flash = baidu.flash || {}; baidu.dom = baidu.dom || {}; baidu.dom.g = function (a) { if ("string" == typeof a || a instanceof String) { return document.getElementById(a)...
sunyang3721/kuwuya
Public/User/tangram.js
JavaScript
apache-2.0
9,241
// (C) Copyright 2015 Martin Dougiamas // // 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 agre...
GonzaloPachecoAlvarez/appteoloyu
www/core/lib/util.js
JavaScript
apache-2.0
77,443
var admin = (function () { var exports = {}; var all_streams = []; var user_row_to_deactivate; exports.show_or_hide_menu_item = function () { var item = $('.admin-menu-item').expectOne(); if (page_params.is_admin) { item.show(); } else { item.hide(); } }; function get_user_info(email)...
peguin40/zulip
static/js/admin.js
JavaScript
apache-2.0
36,384
( function( window, angular ) { angular .module( 'app', [ 'visualCaptcha' ] ) .controller( 'captchaController', function( $scope ) { $scope.captchaOptions = { imgPath: 'img/', captcha: { numberOfImages: 5 }, ...
tillkuhn/visualCaptcha-java-rest
src/main/webapp/js/main.js
JavaScript
apache-2.0
1,983
if ($.fn.pagination) { $.fn.pagination.defaults.beforePageText = 'P&aacute;gina'; $.fn.pagination.defaults.afterPageText = 'de {pages}'; $.fn.pagination.defaults.displayMsg = 'Mostrando {from} a {to} de {total} elementos'; } if ($.fn.datagrid) { $.fn.datagrid.defaults.loadMsg = 'Procesando, por fa...
ZHENFENG13/ssm-demo
ssm-demo/WebRoot/jquery-easyui-1.3.3/locale/easyui-lang-es.js
JavaScript
apache-2.0
2,269
/** * Converts role database entries to Blockly blocks. * @author Mark T. Tomczak (iam@fixermark.com) */ if (!Blockly.Language) Blockly.Language = {}; /* To avoid namespace collisions, sub-category for us */ Blockly.Belphanior={}; /* Role name to hue converter, to create consistent colors for * roles. This simpl...
fixermark/belphanior-butler
public/roles_to_blockly.js
JavaScript
apache-2.0
2,149
import { useEffect, useMemo } from 'react'; import { connect } from 'react-redux'; import PropTypes from 'prop-types'; import { v4 } from 'uuid'; import { start, stop } from '../../actions/saga'; export function CmfRegisteredSagaComponent({ sagaId, startSaga, stopSaga, sagaAttributes, componentId = 'default', ch...
Talend/ui
packages/cmf/src/components/Saga/CmfRegisteredSaga.component.js
JavaScript
apache-2.0
1,403
/** * vim:set sw=2 ts=2 sts=2 ft=javascript expandtab: * * # Authentification module * * ## License * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership...
framasoft/ep_mypads
frontend/js/auth.js
JavaScript
apache-2.0
1,778
import {Layer} from "stratocacher"; import LRU from "lru-cache"; import Q from "q"; const CACHES = {}; function cache(layer) { const {cid} = layer; if (!CACHES[cid]) { CACHES[cid] = LRU({max: layer.opt.max}); } return CACHES[cid]; } export default class LayerLRU extends Layer { static reset() { super.reset...
redfin/stratocacher
packages/stratocacher-layer-lru/src/index.js
JavaScript
apache-2.0
882
defineSuite([ 'Scene/Model', 'Core/Cartesian2', 'Core/Cartesian3', 'Core/Cartesian4', 'Core/CesiumTerrainProvider', 'Core/Color', 'Core/combine', 'Core/defaultValue', 'Core/defined', 'Core/defineProperties', 'Core/DistanceDisplayCon...
hodbauer/cesium
Specs/Scene/ModelSpec.js
JavaScript
apache-2.0
130,171
/** * Module dependencies */ var _ = require('lodash'); /** * Expand the provided test suite with more tests automatically. * * @param {Array} testSuite * @return {Array} */ module.exports = function expandSuite ( testSuite ) { // For all `example: undefined` tests, also test `example: '*'` var starTest...
troven/meta4nms
node_modules/machinepack-github/node_modules/machine/node_modules/rttc/spec/helpers/expand-suite.js
JavaScript
apache-2.0
5,211
var indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }, extend = function(child, parent) { ...
openprocurement/reports
reports/design/lib/jsonpatch.js
JavaScript
apache-2.0
25,411
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = eachLimit; var _eachOfLimit = require('./internal/eachOfLimit'); var _eachOfLimit2 = _interopRequireDefault(_eachOfLimit); var _withoutIndex = require('./internal/withoutIndex'); var _withoutIndex2 = _interopRequireD...
ionutbarau/petstore
petstore-app/src/main/resources/static/node_modules/form-data/node_modules/async/eachLimit.js
JavaScript
apache-2.0
1,574
#!/usr/bin/env node var libxml = require('libxmljs'), fs = require('fs'), path = require('path'), assert = require('assert'); var xsltnode = require('xslt4node'); var commandLineArgs = require("command-line-args"); var cli = commandLineArgs([ { name: "xml", type: String }, { name: "xsd", type: String ...
cicorias/XmlChecker
index.js
JavaScript
apache-2.0
1,233
/* * Copyright 2012 LinkedIn Corp. * * 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 agreed to i...
azkaban/azkaban
azkaban-web-server/src/web/js/azkaban/view/exflow.js
JavaScript
apache-2.0
18,461
define(function (require, exports) { var $ = require('jquery'); var config = require('appConfig'); var sourceAPI = require('webapi/SourceAPI'); var loadedPromise = $.Deferred(); loadedPromise.resolve(); var defaultSource; var domainPromise = $.Deferred(); var domains = []; sourceAPI.getSources().then(fu...
OHDSI/Calypso
js/modules/WebAPIProvider/VocabularyProvider.js
JavaScript
apache-2.0
5,948
module.exports = function(sails) { var setup = require('./lib/setup.js'); var exec = require('./lib/exec.js'); return { setup: setup, exec: exec }; };
PhilippeMA/gladys-DSPW215
index.js
JavaScript
apache-2.0
185
var pathModule = require('path'); var paths = {}; var relative = pathModule.resolve.bind(pathModule, __dirname); paths.baseJs = relative('closure', 'goog', 'base.js'); paths.googJs = relative('closure', 'goog'); paths.thirdPartyJs = relative('third_party', 'closure', 'goog'); paths.knownWarnings = relative('closure',...
gregrperkins/closure-library
paths.js
JavaScript
apache-2.0
522
'use strict'; /** * Module dependencies. */ var mongoose = require('mongoose'), errorHandler = require('./errors'), request = require('request'), config = require('../../config/config'), cts2 = require('./mappings/cts2').cts2, Jsonix = require('jsonix').Jsonix, Export = mongoose.model('Export'), _...
valuesetworkbench/valueset-workbench
app/controllers/exports.server.controller.js
JavaScript
apache-2.0
4,942
$(function() { return $('body').keyup(function(event) { if (event.which === 37 && $('.paging .left > a').length) { return location.replace($('.paging .left >a').attr('href')); } else if (event.which === 39 && $('.paging .right > a').length) { return location.replace($('.paging .right >a').attr('hr...
smartbeng/smartbeng.github.io
js/basics.js
JavaScript
apache-2.0
343
/*! * Copyright 2020 Google LLC * * 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 agreed to...
googleapis/nodejs-pubsub
samples/openTelemetryTracing.js
JavaScript
apache-2.0
4,276
/** * */ /* * The aspiredb project * * Copyright (c) 2013 University of British Columbia * * 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...
ppavlidis/aspiredb
aspiredb/src/main/webapp/scripts/ASPIREdb/view/SubjectPhenotypeHeatmapWindow.js
JavaScript
apache-2.0
13,266
define(['app'], function (app) { 'use strict'; app.factory('app.httpInterceptor', function ($q, $location, $rootScope) { var handleRequest = function (config) { // 提前处理AJAX 服务器返回的结果,如果有错误显示错误信息,如果需要登录,转到登陆 if (config.url.indexOf('api') >= 0) { config.headers['Con...
Helo2021/Barista
js/http.js
JavaScript
apache-2.0
2,570
var classzen_1_1gfxcore_1_1z_sorter = [ [ "SortByMaterial", "classzen_1_1gfxcore_1_1z_sorter.html#a7a7d0670ece3749a90584d7bdceb44e6", null ], [ "SortByDepth", "classzen_1_1gfxcore_1_1z_sorter.html#ad083d3c9ed99a8b3b396521fcec78ec4", null ], [ "SortByAlpha", "classzen_1_1gfxcore_1_1z_sorter.html#a5cc3a9635c9...
Shaptic/Zenderer
docs/classzen_1_1gfxcore_1_1z_sorter.js
JavaScript
apache-2.0
1,291
#!/usr/bin/env node 'use strict'; const _ = require('lodash'); const moment = require('moment'); const ProblemService = require('../../services/problemService'); const DateTimeService = require('../../services/dateTimeService'); const utils = require('./modelUtils'); const convertDate = (dateObj) => { if (!_.isD...
vistadataproject/metaPureJS
emulation/models/orqqpl-edit-load.js
JavaScript
apache-2.0
6,996
var debug = require('debug')('segment'); /** * Represents a time slice of request data from the logs * * @param {object} key */ var Segment = function (key, options) { options = options || {}; this.key = key; this.log = []; this.counts = {}; this.time = Date.now(); this.minimumCount = parseInt(options.minim...
mako-taco/fastly-node-syslog
lib/segment.js
JavaScript
apache-2.0
1,240
import React, { Component } from 'react'; import PropTypes from 'prop-types'; import classNames from 'classnames'; import uid from '../../tools/uniqueId'; export class StructuredListWrapper extends Component { static propTypes = { children: PropTypes.node, className: PropTypes.string, border: PropTypes.b...
jzhang300/carbon-components-react
src/components/StructuredList/StructuredList.js
JavaScript
apache-2.0
4,334
'use strict'; /** * Module dependencies. */ var _ = require('lodash'), errorHandler = require('../../utils/response/errors'), mongoose = require('mongoose'), passport = require('passport'), User = mongoose.model('User'), Roles = require('../../config/roles'), UsersAuthorization = require('./u...
mauroBus/element
server/controllers/users/users.authentication.js
JavaScript
apache-2.0
8,347
(function(env){ "use strict"; env.ddg_spice_guidebox_getid = function(api_result) { if (!api_result || !api_result.results) { return Spice.failed('guidebox'); } var SKIP_ARRAY = ["online","tv","episode","episodes","free","guidebox","watch","full"], results = a...
timeanddate/zeroclickinfo-spice
share/spice/guidebox/getid/guidebox_getid.js
JavaScript
apache-2.0
4,468
// All material copyright ESRI, All Rights Reserved, unless otherwise specified. // See http://js.arcgis.com/3.22/esri/copyright.txt for details. //>>built define("esri/dijit/nls/AttributeInspector-all_th",{"dijit/_editor/nls/commands":{bold:"\u0e15\u0e31\u0e27\u0e2b\u0e19\u0e32",copy:"\u0e04\u0e31\u0e14\u0e25\u0e2d\u0...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/esri/dijit/nls/AttributeInspector-all_th.js
JavaScript
apache-2.0
14,624
// Tests to see what validity checks are done for 10gen specific object construction // Takes a list of constructors and returns a new list with an extra entry for each constructor with // "new" prepended function addConstructorsWithNew(constructorList) { function prependNew(constructor) { return "new " + ...
christkv/mongo-shell
test/jstests/core/constructors.js
JavaScript
apache-2.0
9,841
// -*- mode: java; c-basic-offset: 2; -*- // Copyright 2013-2014 MIT, All rights reserved // Released under the Apache License, Version 2.0 // http://www.apache.org/licenses/LICENSE-2.0 /** * @license * @fileoverview Procedure blocks for Blockly, modified for MIT App Inventor. * @author mckinney@mit.edu (Andrew F. M...
spefley/appinventor-sources
appinventor/blocklyeditor/src/blocks/procedures.js
JavaScript
apache-2.0
42,087
sap.ui.define([ "sap/ui/demo/iconexplorer/model/Sorter", "sap/ui/model/json/JSONModel", "sap/ui/util/Storage", "sap/base/Log" ], function(Sorter, JSONModel, Storage, Log) { "use strict"; return JSONModel.extend("sap.ui.demo.iconexplorer.model.FavoriteModel", { _STORAGE_KEY : "ICON_EXPLORER_FAVORITES", _stor...
SAP/openui5
src/sap.m/test/sap/m/demokit/iconExplorer/webapp/model/FavoriteModel.js
JavaScript
apache-2.0
2,344
/* * Copyright 2013 Amadeus s.a.s. * 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 agreed to i...
flongo/ariatemplates
test/aria/templates/macrolibs/widgets/MacrolibsScript.js
JavaScript
apache-2.0
839
(function () { var registry = {}; var username = null; //search overridden configs through ues.configs object var configs = function (configs, args) { var find = function (o, args) { var pop = args.shift(); if (typeof o !== 'object' || !o[pop]) { return nu...
keizer619/carbon-dashboards
apps/portal/js/ues-gadgets.js
JavaScript
apache-2.0
4,354
/** * @license Apache-2.0 * * Copyright (c) 2018 The Stdlib Authors. * * 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 a...
stdlib-js/stdlib
lib/node_modules/@stdlib/regexp/utf16-unpaired-surrogate/benchmark/benchmark.js
JavaScript
apache-2.0
1,381