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
/************************************************************* * * MathJax/jax/output/HTML-CSS/config.js * * Initializes the HTML-CCS OutputJax (the main definition is in * MathJax/jax/input/HTML-CSS/jax.js, which is loaded when needed). * * ---------------------------------------------------------...
AKSW/SlideWiki
slidewiki/libraries/frontend/MathJax/unpacked/jax/output/HTML-CSS/config.js
JavaScript
apache-2.0
5,162
define(["jquery", "underscore", "backbone"], function ($,_,Backbone) { /* ***************************************************************************************************************** Prototype Inheritance *********************************************************************************************************...
troven/meta4nms
node_modules/meta4ux/src/static/js/meta4beta/core.js
JavaScript
apache-2.0
8,170
/* * Copyright 2015 NamieTown * http://www.town.namie.fukushima.jp/ * 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 * * U...
codefornamie/namie-tablet-html5
www_dev/app/modules/view/dojo/common/index.js
JavaScript
apache-2.0
783
checkRolesInFunction = function (doRole, userId) { if (!Meteor.userId() || ENUM.getUserById(userId)) throw ENUM.ERROR(403); }; getSelector = function (selector) { var baseSelector = { delete_flg: {$ne: 1} }; return _.extend(baseSelector, selector); }; detectEnv = function(){ var appFolder = process.e...
Designveloper/MeteorMeetupHCM
server/lib/0base.js
JavaScript
apache-2.0
662
module.exports = { attach: function attach(app) { app.actions.flip = (image, metadata, config, callback) => { const axis = config.axis || 'y'; if (axis === 'y') { return callback(undefined, image.flip()); } return callback(undefined, image.flop()); }; }, };
voidberg/imagecache-sharp
src/plugins/flip.js
JavaScript
apache-2.0
304
import SerialNumber from './SerialNumber.jsx'; export default SerialNumber;
bingweichen/GOKU
goku-admin/src/routes/NO/index.js
JavaScript
apache-2.0
77
exports.netCheck = function() { var url = "http://api.openbeerdatabase.com/v1/beers.json"; var client = Ti.Network.createHTTPClient({ onload : function(evt) { var newCrud = new crud(); newCrud.dele(); var data = JSON.parse(this.responseText); var beers = data.beers; for ( i = 0, j = beers.length; ...
Pcanniff/ASDAGAIN
Resources/network.js
JavaScript
apache-2.0
664
const elixir = require('laravel-elixir'); require('laravel-elixir-vue-2'); var jsuglify = require('gulp-uglify'); var rename = require('gulp-rename'); var node_path = 'node_modules'; var paths = { 'jquery': node_path + '/jquery', 'bootstrap': node_path + '/bootstrap', 'icheck': node_path + '/icheck', ...
ScoLib/ScoCMF
gulpfile.js
JavaScript
apache-2.0
2,085
import React from "react"; import StorybookWrapper from "stories/helpers/storybookWrapper.js"; import baseProps from "stories/helpers/baseProps.js"; import Component, { MEDICAL_ROSTER_CREW_SUB, MEDICAL_ROSTER_QUERY, MEDICAL_ROSTER_SUB, } from "components/views/MedicalRoster/index.js"; export default { title: ...
Thorium-Sim/thorium
src/components/views/MedicalRoster/MedicalRoster.stories.js
JavaScript
apache-2.0
580
(function () { "use strict"; /** Product detail view controller */ angular.module('app') .controller('DetailController', ['$scope', '$location', '$routeParams', 'catalogService', 'ProductUtils', function ($scope, $location, $routeParams, catalogService, ProductUtils) { $sco...
ffacon/BookCat
src/main/webapp/bookcat/js/controllers/DetailController.js
JavaScript
apache-2.0
726
/* * 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. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
firejack-open/Firejack-Platform
platform/src/main/webapp/js/net/firejack/platform/console/domain/model/FilestoreModel.js
JavaScript
apache-2.0
1,924
/** * Created by zhangh on 2017/02/12. */ $(function () { //平衡左右侧高度 $('#rightContent').css("minHeight", $('#leftNav').height() > $('#rightContent').height() ? $('#leftNav').height() : $('#rightContent').height()); //展开左侧导航 $(".selected").parents("ul").addClass("open"); $(".selected").parents(".men...
izhangh/yunwuUI
common/js/mdui.js
JavaScript
apache-2.0
15,443
try { await kuzzle.ms.sadd('set1', ['foo', 'bar', 'baz']); await kuzzle.ms.sadd('set2', ['qux']); await kuzzle.ms.smove('set1', 'set2', 'foo'); // Prints: [ 'bar', 'baz' ] console.log(await kuzzle.ms.smembers('set1')); // Prints: [ 'foo', 'qux' ] console.log(await kuzzle.ms.smembers('set2')); } catch (...
kuzzleio/sdk-javascript
doc/7/controllers/ms/smove/snippets/smove.js
JavaScript
apache-2.0
363
function Migrator(config, transactionDb) { this.db = transactionDb; this.dbname = config.adapter.db_name; this.table = config.adapter.collection_name; this.idAttribute = config.adapter.idAttribute; this.column = function(name) { var parts = name.split(/\s+/), type = parts[0]; switch ...
rosvi/device_query
Resources/alloy/sync/sql.js
JavaScript
apache-2.0
11,019
// ***************************************************************************** // Copyright 2013-2019 Aerospike, Inc. // // Licensed under the Apache License, Version 2.0 (the "License") // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www...
aerospike/aerospike-client-nodejs
test/apply.js
JavaScript
apache-2.0
3,293
/* JSPWiki - a JSP-based WikiWiki clone. 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. The ASF licenses this file to you under the Apac...
tateshitah/jspwiki
jspwiki-war/src/main/scripts/moo-extend/Form.File.js
JavaScript
apache-2.0
8,474
#!/usr/bin/env node var execSync = require('child_process').execSync; var fs = require("fs"); var args = process.argv.slice(2); var guid = args[0]; if (typeof guid === "undefined") { console.log("provide a guid"); } else { var fileList = ""+execSync("ls -lh"); var lines = fileList.split("\n"); var count = 0; ...
topherwhite/rfcx-data-analysis
filtering_scripts/analyze.js
JavaScript
apache-2.0
1,746
// This file was automatically generated. Do not modify. 'use strict'; goog.provide('Blockly.Msg.lki'); goog.require('Blockly.Msg'); Blockly.Msg.ADD_COMMENT = "گةپ دائن"; Blockly.Msg.AUTH = "لطفا ئئ اپلیکیشن را ثبت کةن و آثارتان فعال کةن تا ذخیره بو و اجازهٔ اشتراک‌ نیائن توسط هؤمة بو"; Blockly.Msg.CHANGE_VALUE_T...
ingegno/Blockly4Arduino
Blockly4Arduino/msg/js/lki.js
JavaScript
apache-2.0
84,017
import React, {Component, Fragment} from "react"; import {Card, Button, ListGroup, ListGroupItem} from "helpers/reactstrap"; import {Duration} from "luxon"; import {Mutation} from "react-apollo"; import gql from "graphql-tag.macro"; import {capitalCase} from "change-case"; export function parseDuration(time) { retur...
Thorium-Sim/thorium
src/components/views/Tasks/core/TasksManager.js
JavaScript
apache-2.0
7,238
/* Copyright 2017 Aleksandar Jankovic 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, so...
stanislavb/roleHaven
routes/rest/wallets.js
JavaScript
apache-2.0
12,825
#!/usr/bin/env node /** * 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 applica...
shaka-project/generic-webdriver-server
backends/xboxone/xbox-one-webdriver-server.js
JavaScript
apache-2.0
2,114
import app from './app'; app.run(process.argv);
kennethlimcp/particle-cli
src/app/launch.js
JavaScript
apache-2.0
48
/***************************************************************************** ** Copyright (C) 2015 Intel Corporation. ** ** ** ** Licensed under the Apache License, Version 2.0 (the "License"); ** ** y...
Open-TEE/opentee-extension-chrome
extension/gmail/content.js
JavaScript
apache-2.0
3,021
/** * Copyright 2015 The AMP HTML 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 * * Unless require...
zhouyx/amphtml
build-system/tasks/karma.conf.js
JavaScript
apache-2.0
6,661
/* * Copyright 2017 The CodeWorld 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 * * Unless required...
three/codeworld
web/js/codeworld_shared.js
JavaScript
apache-2.0
24,076
'use strict'; /** * Module dependencies. */ var fs = require('fs'), http = require('http'), https = require('https'), express = require('express'), morgan = require('morgan'), logger = require('./logger'), bodyParser = require('body-parser'), session = require('express-session'), comp...
mauroBus/element
server/config/express.js
JavaScript
apache-2.0
5,566
export default function (value, opts) { return value > Date.now() ? opts.fn(this) : ''; }
elauria/yourturn
client/lib/common/src/handlebars/inFuture.js
JavaScript
apache-2.0
93
"use strict"; var valueToString = require("@sinonjs/commons").valueToString; var indexOf = require("@sinonjs/commons").prototypes.string.indexOf; var forEach = require("@sinonjs/commons").prototypes.array.forEach; var type = require("type-detect"); var engineCanCompareMaps = typeof Array.from === "function"; var deep...
GoogleCloudPlatform/prometheus-engine
third_party/prometheus_ui/base/web/ui/react-app/node_modules/@sinonjs/samsam/lib/match.js
JavaScript
apache-2.0
5,516
//>>built define("dojox/grid/enhanced/plugins/DnD","dojo/_base/kernel dojo/_base/declare dojo/_base/connect dojo/_base/array dojo/_base/lang dojo/_base/html dojo/_base/json dojo/_base/window dojo/query dojo/keys dojo/dnd/Source dojo/dnd/Avatar ../_Plugin ../../EnhancedGrid dojo/dnd/Manager ./Selector ./Rearrange".split...
wanglongbiao/webapp-tools
Highlander/ship-gis/src/main/webapp/js/arcgis_js_api/library/3.22/dojox/grid/enhanced/plugins/DnD.js
JavaScript
apache-2.0
16,547
// 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 un...
garrensmith/couchdb-fauxton
app/addons/documents/doc-editor/actions.js
JavaScript
apache-2.0
6,952
/** * @license * Copyright 2013 Google Inc. 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 * * Unless required by...
google/end-to-end
src/javascript/crypto/e2e/async/util.js
JavaScript
apache-2.0
3,479
'use strict'; /** * 어떤 일을 하고 있습니까? * @class VBOKeysNation */ var VBOKeysNation = function(bufferSizes, minSize) { if (!(this instanceof VBOKeysNation)) { throw new Error(Messages.CONSTRUCT_ERROR); } // buffer sizes are in bytes. this.vboKeysStoreMap = {}; this.bufferSizes = bufferSizes; this.minSize = min...
Gaia3D/mago3djs
src/mago3d/core/VBOKeysNation.js
JavaScript
apache-2.0
2,247
'use strict'; var yeoman = require('yeoman-generator'); var chalk = require('chalk'); var yosay = require('yosay'); var path = require('path'); var urllib = require('urllib'); module.exports = yeoman.generators.Base.extend({ prompting: function () { var done = this.async(); this.pkg = require(path.join(__dir...
liudan92221/generator-tvwheel
generators/app/index.js
JavaScript
apache-2.0
6,185
var mongoose = require('mongoose'); var Schemas = require('./Schemas'); var Game = mongoose.model('Game',Schemas.gameSchema); exports.Game = Game;
urobo/Gambler
Models.js
JavaScript
apache-2.0
148
var // get util library util = require("core/Util"), // get product manager ProductManager = require("core/ProductManager"); function ProductListWindow() { var Window = Ti.UI.createWindow({ title : L("products"), navBarHidden : false, barColor : Theme.TabGroup.BarColor, navTintC...
nicolascine/TiClassicApp
Resources/ui/ProductsListWindow.js
JavaScript
apache-2.0
4,611
var AutoSubmit = { setupAutoSubmit: function(field, button) { $(field).keypress(function(evt) { if (AutoSubmit.isEnter(evt)) { return false; } }); $(field).keydown(function(evt) { if (AutoSubmit.isEnter(evt)) { $(button).click(); return false; } return true; }); $(fiel...
equella/Equella
Source/Plugins/Core/com.equella.core/resources/web/js/autosubmit.js
JavaScript
apache-2.0
707
(function($) { module("applicationSettings1"); // Test case : Application Settings _asyncTest("Application Settings 1", function() { expect(14); var gitana = GitanaTest.authenticateFullOAuth(); gitana.then(function() { // NOTE: this = platform var pla...
gitana/gitana-javascript-driver
tests/js/testApplicationSettings1.js
JavaScript
apache-2.0
5,226
import Base from '../Base'; import RelaunchMixin from '../mixins/Relaunch.mixin'; const BASE_URLS = { playbook: '/jobs/', project: '/project_updates/', system: '/system_jobs/', inventory: '/inventory_updates/', command: '/ad_hoc_commands/', workflow: '/workflow_jobs/', }; class Jobs extends RelaunchMixin(...
GoogleCloudPlatform/sap-deployment-automation
third_party/github.com/ansible/awx/awx/ui_next/src/api/models/Jobs.js
JavaScript
apache-2.0
816
/** * Copyright 2014 SCN SDK Community * * Original Source Code Location: * https://github.com/org-scn-design-studio-community/sdkpackage/ * * 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 Li...
YunuSahin/sdk
src/org.scn.community.databound/res/UI5Table/UI5Table.js
JavaScript
apache-2.0
5,598
module.exports = function (client) { const baseUrl = '/api-endpoints/'; return { create (name, endpointConfig) { return client .put(`${baseUrl}${encodeURIComponent(name)}`) .send(endpointConfig) .then(res => res.body); }, update (name, endpointConfig) { return this.cr...
ExpressGateway/express-gateway
admin/config/api-endpoints.js
JavaScript
apache-2.0
722
define(function(require) { 'use strict'; var modules = require('modules'); var states = require('states'); var _ = require('lodash'); var angular = require('angular'); states.state('applications.detail.deployment.input', { url: '/input', templateUrl: 'views/applications/application_deployment_inpu...
PierreLemordant/alien4cloud
alien4cloud-ui/src/main/webapp/scripts/applications/controllers/application_deployment_input.js
JavaScript
apache-2.0
6,101
'use strict'; var pkg = require('../package'); var log = require('debug')(pkg.name + ':Query'); console.log.bind(log); var error = require('debug')(pkg.name + ':Query'); console.error.bind(error); var async = require('async'); var spawn = require('child_process').spawn; var moment = require('moment'); var xml2js = r...
WeHaus/WeHaus_NodeJS_Client
node_modules/node-wmi/lib/Query.js
JavaScript
apache-2.0
9,589
var searchData= [ ['ebert_5fgraph_2eh_0',['ebert_graph.h',['../ebert__graph_8h.html',1,'']]], ['element_2ecc_1',['element.cc',['../element_8cc.html',1,'']]], ['encoding_2ecc_2',['encoding.cc',['../encoding_8cc.html',1,'']]], ['encoding_2eh_3',['encoding.h',['../encoding_8h.html',1,'']]], ['encodingutils_2eh_4...
google/or-tools
docs/cpp/search/files_4.js
JavaScript
apache-2.0
1,043
/* Run a HTTP server that registers its location using the Datawire * Microservices Development Kit (MDK). * * Make sure you have the DATAWIRE_TOKEN environment variable set with your * access control token. */ /* jshint node: true */ "use strict"; var process = require("process"); var args = process.argv.splic...
datawire/mdk-docs
examples/javascript-local/server.js
JavaScript
apache-2.0
1,134
'use strict'; var common = require('../common'); var assert = require('assert'); var Transform = require('stream').Transform; var _transformCalled = false; function _transform(d, e, n) { _transformCalled = true; n(); } var _flushCalled = false; function _flush(n) { _flushCalled = true; n(); } var t = new Tr...
dreamllq/node
test/parallel/test-stream-transform-constructor-set-methods.js
JavaScript
apache-2.0
581
/** * @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/_tools/lint/filenames/lib/sync.js
JavaScript
apache-2.0
1,960
"use strict"; // check number && integer && strictly positive module.exports.isNatural = function (d) { return (typeof d === "number") && (d % 1 === 0) && (d > 0); }; module.exports.isPositive = function (d) { return (typeof d === "number") && (d > 0); };
amida-tech/orange-api
lib/models/helpers/numbers.js
JavaScript
apache-2.0
265
ace.define("ace/keyboard/vscode",[], function(require, exports, module) { "use strict"; var HashHandler = require("../keyboard/hash_handler").HashHandler; var config = require("../config"); exports.handler = new HashHandler(); exports.handler.$id = "ace/keyboard/vscode"; exports.handler.addCommands([{ name: "tog...
SAP/openui5
src/sap.ui.codeeditor/src/sap/ui/codeeditor/js/ace/keybinding-vscode.js
JavaScript
apache-2.0
8,190
const { Command } = require("discord.js-commando"); module.exports = class Say extends Command { constructor(client) { super(client, { name: "say", aliases: ["echo", "speak"], group: "util", memberName: "say", description: "Says what you want ...
SJHSBot/SJHS-Bot
commands/util/say.js
JavaScript
apache-2.0
729
var getColor = function (value, p, record) { return "<span style='color:blue;'>" + value + "</span>"; } var getDayNumber = function (value, p, record) { if (value == "" || value == 0) { return "<span style='float:right;'>0</span>"; } return "<b style='float:right;color:blue;'>" + value...
blackapple2017/qAustfeed
Austfeed/Modules/ChamCongDoanhNghiep/Resource/JsQuanLyNgayPhep.js
JavaScript
apache-2.0
4,131
Package('{Name}.Services', { Bootstrap : new Class({ implements: ['exportService', 'importService', 'getUserId'], initialize : function() { this.serviceName = 'bootstrap'; this.exportServices = [this.serviceName]; this.importServices = [] SYMPHONY.services.make(this.serviceName, this, this.implemen...
Ondoher/symphony-app
bin/controller/templates/start-service.js
JavaScript
apache-2.0
1,140
/*! * ${copyright} */ sap.ui.define([ "jquery.sap.global", "./_AnnotationHelperBasics" ], function (jQuery, _AnnotationHelperBasics) { "use strict"; /*global Promise */ var oBoolFalse = { "Bool" : "false" }, oBoolTrue = { "Bool" : "true" }, // maps V2 sap:semantics value for a date part to corresponding V4...
nzamani/openui5
src/sap.ui.core/src/sap/ui/model/odata/_ODataMetaModelUtils.js
JavaScript
apache-2.0
38,791
/*global QUnit, sinon */ sap.ui.define([ 'sap/ui/test/Opa', 'sap/ui/test/Opa5', "sap/m/Button", "sap/m/Input", "sap/ui/test/matchers/PropertyStrictEquals", "sap/ui/test/matchers/Ancestor", "sap/ui/test/matchers/Descendant", "sap/ui/test/matchers/MatcherFactory", "sap/ui/layout/HorizontalLayout" ], function (Op...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/qunit/opa/opa5/matchers.qunit.js
JavaScript
apache-2.0
18,298
var net = require('net'); Stomp = require('./stomp'); wrapTCP = function(port, host) { var socket, ws; socket = null; ws = { url: 'tcp:// ' + host + ':' + port, send: function(d) { return socket.write(d); }, close: function() { return socket.end(); } }; socket = net.connect(po...
starksm64/RaspberryPiBeaconParser
websocket/testSocketIO.js
JavaScript
apache-2.0
753
var structdpctl__params = [ [ "aux", "structdpctl__params.html#a875761aaf475439ac2f51f564f8a558d", null ], [ "is_appctl", "structdpctl__params.html#a4d1857bb1afb99d03f1586a81c415b17", null ], [ "may_create", "structdpctl__params.html#aad17dd95f7fe3ebcceb3a0745e84b372", null ], [ "output", "structdpctl__...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/structdpctl__params.js
JavaScript
apache-2.0
742
const path = require('path'); const fs = require('fs'); const { flattenDeep, memoize } = require('lodash'); function locateSourceFile(modulesPath, moduleName, importPath = '') { const srcPrefixes = ['src', '']; const indexFiles = ['', 'index']; const extensions = ['.ts', '.tsx', '.js', '.jsx']; const paths = ...
duftler/deck
packages/eslint-plugin/utils/import-aliases.js
JavaScript
apache-2.0
3,812
"use strict"; var marvelNameGenerator = require('./index.js'); console.log("Expect to see a cool name:\n"+marvelNameGenerator());
bdargan/marvel-chars-name-gen
test.js
JavaScript
apache-2.0
131
class Queue { constructor() { this.items = []; } add(item) { this.items.push(item); } remove() { return this.items.shift(); } peek() { return this.items[this.items.length - 1]; } isEmpty() { return this.items.length === 0; } } modu...
telmanagababov/ctci
part3-stacks/common/queue.js
JavaScript
apache-2.0
339
"use strict"; // // Bot Player // assignmentClientPlayer.js // Created by Milad Nazeri on 2019-06-06 // Copyright 2019 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // (function() { // **...
RebeccaStankus/hifi-content
usefulUtilities/botPlayer/assignmentClientPlayer.js
JavaScript
apache-2.0
6,999
import {TextFileLoader} from './painter/TextFileLoader' import {InstancedGrid} from './painter/InstancedGrid' import {QCurve} from './painter/QCurve' import {QCurveObj} from './painter/QCurve' import {StrokePath} from './painter/StrokePath' import {Particle} from './painter/Particle' import {VectorField} from './painte...
davidhoe/noisepainter
src/js/index3.js
JavaScript
apache-2.0
20,410
/* * Waltz - Enterprise Architecture * Copyright (C) 2016, 2017, 2018, 2019 Waltz open source project * See README.md for more information * * 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 ...
rovats/waltz
waltz-ng/client/common/hierarchy-utils.js
JavaScript
apache-2.0
6,084
import React from 'react'; import { graphql } from 'react-relay'; import { makeFilter } from '@ncigdc/utils/filters'; import { compose, withPropsOnChange } from 'recompose'; import { BaseQuery } from '@ncigdc/modern_components/Query'; export default (Component: ReactClass<*>) => compose( withPropsOnChange(['proj...
NCI-GDC/portal-ui
src/packages/@ncigdc/modern_components/HasCases/HasCases.relay.js
JavaScript
apache-2.0
1,239
'use strict'; /** * NetSuite Records * @return {Records} */ var Records = module.exports = {}; Records.RecordRef = require('./recordRef');
CrossLead/netsuite-js
lib/netsuite/records/index.js
JavaScript
apache-2.0
144
/** * Copyright (c) 2015 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 ...
rkoster/console
test/javascript/ui/manageusers/orgUserServiceTest.js
JavaScript
apache-2.0
2,643
/* Copyright 2012 - $Date $ by PeopleWare n.v. 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...
peopleware/js-ppwcode-vernacular-persistence
ui/horizontalPanesContainer/PersistentObjectDraggableEditPane.js
JavaScript
apache-2.0
7,345
import '@polymer/iron-icon/iron-icon.js'; import '@polymer/iron-icons/iron-icons.js'; import '@polymer/paper-card/paper-card.js'; import '@polymer/paper-ripple/paper-ripple.js'; import '@polymer/paper-item/paper-icon-item.js'; import '@polymer/paper-icon-button/paper-icon-button.js'; import {html, PolymerElement} from...
kubeflow/kubeflow
components/centraldashboard/public/components/dashboard-view.js
JavaScript
apache-2.0
2,491
/* * @Author: yw850 * @Date: 2017-07-24 18:13:22 * @Last Modified by: yw850 * @Last Modified time: 2017-07-24 18:41:42 */ 'use strict'; require('./index.css') require('page/common/header/index.js'); require('page/common/nav/index.js'); var _mm = require('util/mm.js'); var _payment = require('service/payment-...
Yongze/mmall-fe
src/page/payment/index.js
JavaScript
apache-2.0
1,418
/* eslint-env jest */ jest.unmock('../as-array'); import { asArray, } from '../as-array'; describe('asArray()', () => { it('returns input as it is if an array', () => { expect(asArray([1, 2, 3])).toEqual([1, 2, 3]); }); it('converts scalar value to an array which contains it', () => { expect(asArray...
asha-nepal/AshaFusionCross
src/web/forms/fields/common/__tests__/as-array-test.js
JavaScript
apache-2.0
503
'use strict'; describe('myApp.view3 module', function() { var scope, view3Ctrl; beforeEach(module('myApp.view3')); beforeEach(module('matchingServices')); beforeEach(inject(function ($controller, $rootScope) { // inject $rootScope scope = $rootScope.$new(); view3Ctrl = $controller('View3Ctrl',{$s...
johandoornenbal/matchingfront
app/view3/view3_test.js
JavaScript
apache-2.0
498
describe('import.js', function() { describe('ImportSetup', function() { describe('#respondToPostMessages', function() { var test = { callback: function(uploadId, message) { } }; beforeEach(function() { spyOn(test, 'callback'); spyOn(window, 'miqSparkleOff'); spyO...
ManageIQ/manageiq-ui-classic
spec/javascripts/import_spec.js
JavaScript
apache-2.0
9,147
import Firebase from 'firebase/firebase'; export class AngularFire { ref: Firebase; constructor(ref: Firebase) { this.ref = ref; } asArray() { return new FirebaseArray(this.ref); } } /* FirebaseArray */ export class FirebaseArray { ref: Firebase; error: any; list: Array; constructor(ref: ...
mainyaa/zapzapzap
deps/firebase/AngularFire.js
JavaScript
apache-2.0
2,206
/** * epubBundle * * Copyright 2015 David Herron * * This file is part of epubtools (http://akashacms.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....
epubtools/epubtools
tasks/epubBundle.js
JavaScript
apache-2.0
1,140
var fs = require('fs'); var path = require('path'); var createSourceMapLocatorPreprocessor = function(args, logger, helper) { var log = logger.create('preprocessor.sourcemap'); return function(content, file, done) { function sourceMapData(data){ file.sourceMap = JSON.parse(data); done(content); ...
spatialdev/seed-angular-multipage-app
node_modules/karma-sourcemap-loader/index.js
JavaScript
apache-2.0
1,911
// Copyright 2022 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 ...
googleapis/nodejs-vision
samples/generated/v1p3beta1/product_search.delete_reference_image.js
JavaScript
apache-2.0
1,876
load("jstests/libs/slow_weekly_util.js"); test = new SlowWeeklyMongod("conc_update"); db = test.getDB("concurrency"); db.dropDatabase(); NRECORDS = 3 * 1024 * 1024; print("loading " + NRECORDS + " documents (progress msg every 1024*1024 documents)"); var bulk = db.conc.initializeUnorderedBulkOp(); for (var i = 0; i <...
christkv/mongo-shell
test/jstests/slow1/conc_update.js
JavaScript
apache-2.0
1,587
import { postToServer } from "../app/utils"; import { wait } from "../app/utils"; /** * Google Authentication and linking module * @returns {{link: function:object, login: function}} */ const googleProvider = new firebase.auth.GoogleAuthProvider(); function callIfFunction(func, arg1, arg2) { if ($.isFunction(...
zhcet-amu/zhcet-web
src/main/resources/src/authentication/google.js
JavaScript
apache-2.0
4,462
import Ember from 'ember'; const { Controller } = Ember; export default Controller.extend({ columns: [ { propertyName : 'name', template : 'components/ui-table/cell/cell-event', title : 'Name' }, { propertyName : 'starts-at', template : 'components/ui-table/c...
harshitagupta30/open-event-frontend
app/controllers/events/list.js
JavaScript
apache-2.0
2,508
// Copyright 2022 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 ...
googleapis/nodejs-dialogflow
samples/generated/v2/fulfillments.update_fulfillment.js
JavaScript
apache-2.0
1,936
/** * @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang( 'magicline', 'ko', { title: '여기에 그래프 삽입' } );
iWoozy/TextEasy
ckeditor/plugins/magicline/lang/ko.js
JavaScript
apache-2.0
253
var RoonApi = require("node-roon-api"), RoonApiStatus = require("node-roon-api-status"), RoonApiSettings = require("node-roon-api-settings"), RoonApiSourceControl = require("node-roon-api-source-control"), RoonApiVolumeControl = require("node-roon-api-volume-control"), Yamaha = require("node-yam...
statesofpop/roon-yamaha
app.js
JavaScript
apache-2.0
7,950
$(function () { $(window).scroll(function() { if ($(".navbar").offset().top>30) { $(".navbar-fixed-top").addClass("sticky"); } else { $(".navbar-fixed-top").removeClass("sticky"); } }); // Flex if ($(".flexslider").length) { $('.flexslider...
pointwesthealthcare/pwhmcdw
deploy/js/theme.js
JavaScript
apache-2.0
2,502
$(function() { YtopMgr = { //退出账号 logOut : function() { window.parent.location.href = "logout"; } } })
AndroidBoy/BAMService
WebRoot/page/manager/mainpage/top.js
JavaScript
apache-2.0
124
define( ({ _widgetLabel: "분석", executeAnalysisTip: "실행할 분석 도구 클릭", noToolTip: "분석 도구를 선택하지 않았습니다!", back: "뒤로", next: "다음", home: "홈", jobSubmitted: "제출하였습니다.", jobCancelled: "취소되었습니다.", jobFailed: "실패함", jobSuccess: "성공했습니다.", executing: "실행 중", cancelJob: "분석 작업 취소"...
cob222/CPG
widgets/Analysis/nls/ko/strings.js
JavaScript
apache-2.0
1,046
var game, gameOptions; gameOptions = { renderer: Kiwi.RENDERER_WEBGL, deviceTarget: Kiwi.TARGET_BROWSER, width: 1280, height: 800 }; game = new Kiwi.Game("content", "MAZE", null, gameOptions); game.states.addState(MAZE.Game); game.states.switchState("Game"); //# sourceMappingURL=main.js.map
black-knight/magic_lamp
Content/MAZE/src/main.js
JavaScript
apache-2.0
305
var interfaceorg_1_1onosproject_1_1mastership_1_1MastershipStore = [ [ "getDevices", "interfaceorg_1_1onosproject_1_1mastership_1_1MastershipStore.html#a31af140046e965889b1e344e53ab37e1", null ], [ "getMaster", "interfaceorg_1_1onosproject_1_1mastership_1_1MastershipStore.html#a2bed6e1e4895ca63cb4e5bd55c15e48f"...
onosfw/apis
onos/apis/interfaceorg_1_1onosproject_1_1mastership_1_1MastershipStore.js
JavaScript
apache-2.0
1,385
/** * Copyright IBM Corp. 2020, 2020 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. * * @jest-environment node */ 'use strict'; describe('yml', () => { let vol; let adapter; beforeEach(() => { jest.mock('fs', () =>...
carbon-design-system/carbon-components
packages/icon-build-helpers/src/metadata/adapters/__tests__/yml-test.js
JavaScript
apache-2.0
1,532
angular.module("userTableModule", []) .controller('userTableController', ['$http', function ($http, $scope, $log) { var userTable = this; userTable.users = []; $http.get('/allUsers').success(function (data) { userTable.users = data; }).error(function (data) { })...
andreevym/stadium
src/main/resources/public/js/userTableModule.js
JavaScript
apache-2.0
1,250
// Copyright 2015 Google Inc. 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 // // Unless required by applicable...
wzzlYwzzl/kdashboard
src/test/frontend/events/eventcardlist_component_test.js
JavaScript
apache-2.0
3,724
'use strict' const config = { local: { pino: { prettyPrint: false } }, ci: { pino: { prettyPrint: false } }, staging: { pino: { prettyPrint: false } }, prod: { pino: { prettyPrint: false } } } module.exports = function resolveConfig (mode) { ...
OmniJeff/hapi-soup
lib/config/logger.js
JavaScript
apache-2.0
378
'use strict'; var ContextHistory = require('./context_history'); var ContextTouch = require('./context_touch'); /** * @param {!angular.Scope} $rootScope * @param {!Window} $window * @param {!Document} $document * @param {!angular.Attributes} options * @param {!TouchSurface.TouchChangedHandler} startHandler * @...
jzacsh/doodle
src/lib/touch_surface.js
JavaScript
apache-2.0
13,368
/* * Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. */ var rest = require('../../../common/rest.api'), config = require('../../../../../config/config.global.js'), authApi = require('../../../common/auth.api'), url = require('url'), logutils = require('../../../utils/log.utils'), a...
manojgn/contrail-web-core
src/serverroot/orchestration/plugins/openstack/nova.api.js
JavaScript
apache-2.0
16,868
//// For registering Service Worker // if ('serviceWorker' in navigator) { // navigator.serviceWorker // .register('./service-worker.js', { scope: './' }) // .then(function(registration) { // console.log("Service Worker Registered"); // }) // .catch(function(err) { // console.log("Service...
Pahlaz/E-Mart
WebContent/asset/js/main.js
JavaScript
apache-2.0
1,624
'use strict'; angular.module('eventappApp') .config(function ($stateProvider) { $stateProvider .state('register', { parent: 'account', url: '/register', data: { roles: [], pageTitle: 'register.title' ...
SaschaMoellering/event-app
src/main/webapp/scripts/app/account/register/register.js
JavaScript
apache-2.0
921
var interfaceorg_1_1onosproject_1_1net_1_1behaviour_1_1PortAdmin = [ [ "enable", "interfaceorg_1_1onosproject_1_1net_1_1behaviour_1_1PortAdmin.html#a4fa39b1dc477558945e9211986dabcf3", null ] ];
onosfw/apis
onos/apis/interfaceorg_1_1onosproject_1_1net_1_1behaviour_1_1PortAdmin.js
JavaScript
apache-2.0
197
/** * DO NOT EDIT THIS FILE as it will be overwritten by the Pbj compiler. * @link https://github.com/gdbots/pbjc-php * * Returns an array of curies using mixin "gdbots:ncr:mixin:node-marked-as-draft:v1" * @link http://schemas.triniti.io/json-schema/gdbots/ncr/mixin/node-marked-as-draft/1-0-0.json# */ export def...
triniti/schemas
build/js/src/manifests/gdbots/ncr/mixin/node-marked-as-draft/v1.js
JavaScript
apache-2.0
330
function HtmlElementsPlugin(locations) { this.locations = locations; } HtmlElementsPlugin.prototype.apply = function(compiler) { var self = this; compiler.plugin('compilation', function(compilation) { compilation.options.htmlElements = compilation.options.htmlElements || {}; compilation.p...
bulktrade/SMSC
modules/admin/config/html-elements-plugin/index.js
JavaScript
apache-2.0
3,533
export function searchToObject(search) { const params = {}; if (search) { search.slice(1).split('&').forEach((param) => { const [name, value] = param.split('='); params[name] = decodeURIComponent(value); }); } return params; } export function getLocationParams() { return searchToObject(w...
ericsoderberg/pbc-web
ui/js/utils/Params.js
JavaScript
apache-2.0
587
/** * Module dependencies */ var httpStatus = require('../helpers/http-status') , User = require('mongoose').model('User') , logger = require('../../logger'); exports.login = function (req, res) { res.render('users/login', {title: 'login'}); }; exports.checkAuth = function (req, res, next) { var errors = [...
orapouso/justbrew
app/controllers/users.js
JavaScript
apache-2.0
2,135
import Koa from 'koa' import body from 'koa-bodyparser' import convert from 'koa-convert' import cors from 'koa-cors' import mongoose from 'mongoose' import config from './config' import mongooseConfig from './config/mongoose' import routeRegistry from './routeRegistry' const app = new Koa() app.context.db = mongoose ...
grenti/pacci-api
src/server.js
JavaScript
apache-2.0
1,075
var quickconnect = require('rtc-quickconnect'); var mesh = require('../../'); var Model = require('scuttlebutt/model'); module.exports = function(roomId, members, opts) { return function(t) { var model; var qc; t.plan(1); qc = quickconnect(window.location.origin, { room: roomId }); /...
rtc-io/rtc-mesh
test/helpers/joinmesh.js
JavaScript
apache-2.0
475