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
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = _default; exports.messages = exports.ruleName = void 0; var _utils = require("../../utils"); var _stylelint = require("stylelint"); var ruleName = (0, _utils.namespace)("double-slash-comment-inline"); exports.ruleNam...
kyleterry/sufr
pkg/ui/node_modules/stylelint-scss/dist/rules/double-slash-comment-inline/index.js
JavaScript
apache-2.0
2,103
// 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 may...
mufaddalq/cloudstack-datera-driver
ui/scripts/sharedFunctions.js
JavaScript
apache-2.0
103,875
import authReducer, { authTypes } from '../../../src/redux/modules/auth'; describe('(Reducer) auth', () => { let reducer; it('returns the initial state', () => { reducer = authReducer(undefined, {}); expect(reducer).to.deep.equal({ isAuthenticated: false, isFetching: false, isLoggingOut:...
deafchi/signsfive-web
tests/redux/auth/reducer.test.js
JavaScript
apache-2.0
3,344
var mttt = {}; (function() { // application state variables are held in this namespace. // Like the current app window, for instance, which is created in app.js mttt.app = {}; // app-parameters mttt.app.screenWidth = Ti.Platform.displayCaps.platformWidth; mttt.app.screenHeight = Ti.Platform.displayCaps.platform...
asattler/MobileTicTacToe
Resources/mttt.js
JavaScript
apache-2.0
462
$(function () { 'use strict'; //下拉刷新页面 $(document).on("pageInit", "#page-ptr", function(e, id, page) { var $content = $(page).find(".content").on('refresh', function(e) { // 模拟2s的加载过程 setTimeout(function() { var cardHTML = '<div class="card">' + '<div class="card-header">标题</div...
sdc-alibaba/generator-msui
app/templates/without_compile/docs/assets/js/demos.js
JavaScript
apache-2.0
7,450
const test = require('../testlib'); test.run(async function () { await test('admin', async function (assert, req) { //Try to set soa for non exitent domain var res = await req({ url: '/domains/100/soa', method: 'put', data: { primary: 'ns1.example...
loewexy/pdnsmanager
backend/test/tests/domain-soa.js
JavaScript
apache-2.0
5,046
/** * Copyright (c) Microsoft. 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 law or ag...
mwinkle/azure-sdk-tools-xplat
lib/commands/mobile.js
JavaScript
apache-2.0
90,981
// 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-cx
samples/generated/v3beta1/pages.create_page.js
JavaScript
apache-2.0
2,920
export { default as AreaChartGraph } from './areaChart'; export { default as DonutChartGraph } from './donutChart'; export { default as GroupBarChart } from './groupChart'; export { default as GroupHorizontalBarChart } from './groupHorizontalChart'; export { default as LineChartGraph } from './lineChart'; export { defa...
ManageIQ/manageiq-ui-classic
app/javascript/components/carbon-charts/index.js
JavaScript
apache-2.0
565
// 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
assets/js/plugins/cloudant.pagingcollection.js
JavaScript
apache-2.0
5,832
/*! demo 2017-09-04 */ PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[\t\n\r \xA0]+/,null,"\t\n\r  "],[PR.PR_PLAIN,/^(?:\"(?:[^\"\\]|\\[\s\S])*(?:\"|$)|\'(?:[^\'\\]|\\[\s\S])+(?:\'|$)|`[^`]*(?:`|$))/,null,"\"'"]],[[PR.PR_COMMENT,/^(?:\/\/[^\r\n]*|\/\*[\s\S]*?\*\/)/],[PR.PR_PLAIN,/^(?:[^\/\"\'`]|\/(?![\/\...
okboy5555/demo
基于angular的图书管理/dest/src-min/framework/angular-1.5.8/docs/components/google-code-prettify-1.0.1/src/lang-go.min.js
JavaScript
apache-2.0
340
var Application = require("../"); describe('Application', function() { });
HappyRhino/hr.app
tests/index.js
JavaScript
apache-2.0
78
(function($) { /** * twentyc.edit module that provides inline editing tools and functionality * for web content * * @module twentyc * @class editable * @static */ twentyc.editable = { /** * initialze all edit-enabled content * * called automatically on page load * * @method init * @private...
20c/js-edit
src/twentyc.edit.js
JavaScript
apache-2.0
42,479
/* * Copyright (C) 2017-2019 Dremio 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 l...
dremio/dremio-oss
dac/ui/src/pages/JobPage/components/JobDetails/Quote.js
JavaScript
apache-2.0
3,758
'use strict'; module.exports = function(config) { config.set({ basePath: '../', proxies: { '/': 'http://localhost:9876/' }, urlRoot: '/__karma__/', browsers: [ 'Chrome' ], frameworks: [ 'browserify', 'jasmine' ], files: [ 'node_modules/angular/a...
OnOneLeg/O1l-frontend
myapp/node_modules/ng-firebase-auth/package/test/karma.conf.js
JavaScript
apache-2.0
702
(function () { 'use strict'; angular .module('woodstock24App') /* Languages codes are ISO_639-1 codes, see http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes They are written in English to avoid character encoding issues (not a perfect solution) */ .constan...
solairerove/woodstock
src/main/webapp/app/components/language/language.constants.js
JavaScript
apache-2.0
554
const path = require('path') const chalk = require('chalk') const fs = require('fs') const DEFAULT_OPTIONS = { appName: 'app', outputPath: './target/webpack/assets/', outputPublicPath: '/assets/', srcPath: './src', entry: './src/main/index.js', playgroundEntry: './src/playground/index.js', devPort: 300...
Indoqa/indoqa-webpack
src/createOptions.js
JavaScript
apache-2.0
1,917
onmessage = function(e){ const start = Date.now(); const links = e.data.links; const dm = e.data.matrix; const labels = Object.keys(dm); const epsilon = Math.pow(10, e.data.epsilon); const metric = e.data.metric; const n = labels.length const m = links.length; let output = new Uint8A...
CDCgov/MicrobeTRACE
workers/compute-mst.js
JavaScript
apache-2.0
3,653
var structqt__meta__stringdata___my_device__t = [ [ "data", "structqt__meta__stringdata___my_device__t.html#abbaa330742df766fe3dba9f355ec3cbc", null ], [ "stringdata0", "structqt__meta__stringdata___my_device__t.html#af8cfff3ab861a8d6e52b4e876dbb73e6", null ] ];
zvebabi/Analizer_LED_ms_HT
doxygen/html/structqt__meta__stringdata___my_device__t.js
JavaScript
apache-2.0
270
exports.definition = { config: { adapter: { type: "restapi2", collection_name: "address", idAttribute: "id" }, columns: { id: "int" } }, extendModel: function(Model) { _.extend(Model.prototype, { url: functio...
fryertom44/TrafficContacts
Resources/alloy/models/Address.js
JavaScript
apache-2.0
2,059
/** * [Up one level](/lib/index.html) * ### Users CLI * See the disqus-node [Users API](/lib/api/trends.html). * * See the [Users API on Disqus.com](https://disqus.com/api/docs/trends/). */ var container = require('../container'); var Command = container.get('commander').Command; var users = new Command('disqus u...
jmdobry/disqus-node
lib/cli/users.js
JavaScript
apache-2.0
2,625
define([ "dojo/_base/declare", "dijit/_WidgetBase", "dijit/_TemplatedMixin", "dijit/_WidgetsInTemplateMixin", "dojo/topic", "dojo/on", "dojo/dom", "dojo/dom-style", "dojo/dom-class", "dojo/dom-attr", "dojo/_base/lang", "dojo/_base/fx", "dojo/text!./Wizard/templates/...
Esri/workflowmanager-viewer-js
js/app/WorkflowManager/widgets/Wizard.js
JavaScript
apache-2.0
9,484
"use strict"; function Cargar() { var id = localStorage["a8d7f0a88sdfa7s0d8"]; var url = 'http://heylistenapi.azurewebsites.net/canciones/'+id; $.ajax({ url: url, type: 'GET', contentType: "application/json;chartset=utf-8", success: function(tracks){ $('#listaCanciones').empty(); var canciones =...
LagunaJS/HeyListen
js/canciones.js
JavaScript
apache-2.0
1,413
var id_pool_8h = [ [ "id_pool_add", "id-pool_8h.html#af725f2391fa8ca67cdb2b5d5b54683d7", null ], [ "id_pool_alloc_id", "id-pool_8h.html#ad5e60f7e381aa6266beb23baf565e6d9", null ], [ "id_pool_create", "id-pool_8h.html#abcfa9c69c041c0c91fdabd1de0468eed", null ], [ "id_pool_destroy", "id-pool_8h.html#a82a5...
vladn-ma/vladn-ovs-doc
doxygen/ovs_all/html/id-pool_8h.js
JavaScript
apache-2.0
446
/* * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to ...
GoogleForCreators/web-stories-wp
packages/story-editor/src/components/circularProgress/index.js
JavaScript
apache-2.0
2,341
#! /usr/bin/env node if (!process.env.TRAVIS_REPO_SLUG) { process.exit(0); } const https = require('https'); const postData = `{\"body\": \"**Snapshot Tests**\\nReport: https://happo.io/a/27/report/${process.env.GIT_SHA}-android26\\nDiff: https://happo.io/a/27/compare/master-android26/${process.env.GIT_SHA}-androi...
airbnb/lottie-android
post_pr_comment.js
JavaScript
apache-2.0
1,036
define([ '../util', 'dojo/has', 'dojo/has!host-node?dojo/node!istanbul/lib/collector', 'dojo/has!host-node?dojo/node!istanbul/lib/report/text' ], function (util, has, Collector, Reporter) { if (typeof console !== 'object') { // IE<10 does not provide a global console object when Developer Tools is turned off r...
timdown/log4javascript2
node_modules/intern/lib/reporters/console.js
JavaScript
apache-2.0
1,729
'use strict'; var express = require('express'), bodyParser = require('body-parser'), expressSession = require('express-session'), cookieParser = require('cookie-parser'), app = express(), server = require('http').createServer(app), io = require('socket.io').listen(server), path = require('pa...
saitodisse/socket-io-server
app.js
JavaScript
apache-2.0
1,418
// Generated on 2013-07-16 using generator-angular 0.3.0 'use strict'; // # Globbing // for performance reasons we're only matching one level down: // 'test/spec/{,*/}*.js' // use this if you want to recursively match all subfolders: // 'test/spec/**/*.js' module.exports = function (grunt) { // load all grunt task...
stuforbes/substeps.js
Gruntfile.js
JavaScript
apache-2.0
1,434
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import {Node, Parser} from 'commonmark'; import Renderer from 'commonmark-react-renderer'; import PropTypes from 'prop-types'; import React, {PureComponent} from 'react'; import {Platform, Text, View} from '...
mattermost/mattermost-mobile
app/components/markdown/markdown_emoji/markdown_emoji.js
JavaScript
apache-2.0
4,582
const conf = require('@vue/cli-service/webpack.config.js'); conf.entry = { tests: ['./test.js'] } module.exports = conf;
stryker-mutator/stryker
e2e/test/vue-cli-typescript-mocha/webpack.test.config.js
JavaScript
apache-2.0
123
var handlebars = require("../app/node_modules/handlebars"); document.getElementById('filetoload').onchange = function(){ return loadFileAsText(); } function loadFileAsText() { var file = document.getElementById("filetoload"); var fileToLoad = document.getElementById("filetoload").files[0]; var filename = docu...
kurai021/MDWriter
app/assets/js/file.js
JavaScript
apache-2.0
2,319
/*global define*/ define(function() { 'use strict'; // The routes for the application. This module returns a function. // `match` is match method of the Router return function(match) { match('', 'home#show'); match('browse(/:section)', 'browse#show'); match('download', 'download#show'); match('...
danielefenix/chaplinjs-boilerplate
src/js/routes.js
JavaScript
apache-2.0
354
'use strict'; describe('Controller: MainCtrl', function () { // load the controller's module beforeEach(module('classActApp')); beforeEach(module('socketMock')); var MainCtrl, scope, $httpBackend; // Initialize the controller and a mock scope beforeEach(inject(function (_$httpBackend_, $cont...
AdeelMufti/ClassAct
client/app/main/main.controller.spec.js
JavaScript
apache-2.0
761
var messageFactory = { msjIniciarJuego: function(){ return JSON.stringify({ operacion: "iniciarJuego", session: currentSession }); }, msjConectar: function(datosLoginJugador){ return JSON.stringify({ operacion: "conectarJugador", datosLoginJugador: datosLoginJugador }); }, msjRob...
tmilar/heroic-spirits
client/js/app/messageFactory.js
JavaScript
apache-2.0
474
/** * @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/math/base/special/minmaxabs/benchmark/benchmark.js
JavaScript
apache-2.0
2,836
sap.ui.define([ 'sap/ui/core/UIComponent' ], function(UIComponent) { "use strict"; var Component = UIComponent.extend("sap.m.sample.FeedContent.Component", { metadata : { manifest: "json" } }); return Component; });
SAP/openui5
src/sap.m/test/sap/m/demokit/sample/FeedContent/Component.js
JavaScript
apache-2.0
226
/** * Created by Aleksey on 05.05.2016. */ /**************************************************** * @Discription ��������� ������� * * - OnClick * - OnMouseMove * - OnMouseDown * - OnDblClick ****************************************************/ function Events() { var wsbone = wsBone; var FocusE...
akainq/wsBone
js/events.js
JavaScript
apache-2.0
3,413
var db = ( function() { var api = {}; var conn; // = Ti.Database.open('mytime'); // conn.close(); api.open = function() { if (conn == null) { conn = Ti.Database.open('alarm'); } } api.close = function() { if (conn != null) { conn.close(); conn = null; } } api.addAlarm = fun...
bennydtown/android-alert
Resources/database/database.js
JavaScript
apache-2.0
785
var map; $(document).ready(function() { map = new SuperMap.Map("mapDiv", { controls:[ new SuperMap.Control.ScaleLine(), new SuperMap.Control.PanZoomBar({showSlider: true}), new SuperMap.Control.MousePosition(), //new SuperMap.Control.LayerSwitcher(), new SuperMap.Control.OverviewMap({maximized: f...
lrs2016/nphitech
src/main/webapp/static/supermap/MapContainer.js
JavaScript
apache-2.0
1,041
(function(a){a.fn.datetimepicker.dates.az={days:"Bazar;Bazar ertəsi;Çərşənbə axşamı;Çərşənbə;Cümə axşamı;Cümə;Şənbə;Bazar".split(";"),daysShort:"B Be Ça Ç Ca C Ş B".split(" "),daysMin:"B Be Ça Ç Ca C Ş B".split(" "),months:"Yanvar Fevral Mart Aprel May İyun İyul Avqust Sentyabr Oktyabr Noyabr Dekabr".split(" "),monthsS...
phax/ph-oton
ph-oton-bootstrap3-uictrls/src/main/resources/bootstrap/datetimepicker/locales/bootstrap-datetimepicker.az.min.js
JavaScript
apache-2.0
469
'use strict'; export function vertexSource() { const vsSource = `#version 300 es in vec3 a_position; uniform mat4 u_model_view_matrix; uniform mat4 u_projection_matrix; //varying out vec3 v_w_position; void main(void) { v_w_position = a_position; gl_Position = u...
shausoftware/SHAU_GL
src/main/js/shaders/glow_vertex_shader.js
JavaScript
apache-2.0
424
'use strict'; var clone = require('../../util/object').clone; var format = require('../../util/string').format; function factory (type, config, load, typed) { var matrix = load(require('../../type/matrix/function/matrix')); var DenseMatrix = type.DenseMatrix, SparseMatrix = type.SparseMatrix; /** * ...
mikberg/mathjs
lib/function/matrix/transpose.js
JavaScript
apache-2.0
4,209
(function(a){var c=window.Modernizr,h=a.webshims,f=h.bugs,i=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),n=function(){if(i[0].querySelector)try{f.findRequired=!i[0].querySelector("select:r...
mdia/OneCalendar
public/javascripts/lib/js-webshim/minified/shims/form-core.js
JavaScript
apache-2.0
10,679
(function () { "use strict"; WinJS.UI.Pages.define("/pages/home/home.html", { // This function is called whenever a user navigates to this page. It // populates the page elements with the app's data. ready: function (element, options) { // TODO: Initialize the page here. ...
DeveloperInfra/HelloWorld-Win8-UsingJQuery
src/HelloWorld-Win8-UsingJQuery/pages/home/home.js
JavaScript
apache-2.0
936
var connection; var onMessageCallbacks = {}; var SIGNALING_SERVER = window.location.origin; var role; // onNewSession can be fired multiple times for same session // to handle such issues; storing session-ids in an object var sessions = { }; var iceServers = []; iceServers.push({ url: 'stun:stun.google.c...
mrphanlinhuit/Vchat
public/js/RTCSignaling.js
JavaScript
apache-2.0
14,871
import React from "react"; import { Field, reduxForm } from "redux-form"; import * as _ from "lodash"; import ModalForm from "../components/ModalForm"; import { Term, GradeLevel } from "../molecules/AutoCompleteFor"; import { connect } from "react-redux"; import { createCourse } from "../redux/modules/course"; class C...
gogrademe/WebApp
src/js/modals/Course.js
JavaScript
apache-2.0
1,593
/** @ngInject */ export function ShoppingCartFactory ($rootScope, CollectionsApi, $q, lodash, RBAC) { var state = null var service = { add: add, reset: reset, delete: deleteCart, reload: reload, count: count, removeItem: removeItem, submit: submit, state: function () { return ...
AllenBW/manageiq-ui-service
client/app/core/shopping-cart.service.js
JavaScript
apache-2.0
5,500
/** * @license Copyright 2016 The Lighthouse 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 by applica...
GoogleChrome/lighthouse
lighthouse-core/lib/emulation.js
JavaScript
apache-2.0
5,597
/** * 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...
keedio/ambari-web
app/utils/helper.js
JavaScript
apache-2.0
22,366
/** * HotelsController * * @description :: Server-side logic for managing users */ module.exports = { getUser: function(req, res){ User.findOne({id : req.params.id}).populateAll().exec(function(err, user){ if (err){ return res.json({error: 'Unexpected error'}, 500); } if (!user)...
adriannieto/shuffle-a-hotel
api/controllers/UserController.js
JavaScript
apache-2.0
2,231
if(Ti.Platform.osname == 'android') { Ti.include('/lib/jsdeferred.js'); } else { Ti.include("../../../../../../../../../lib/jsdeferred.js"); } Deferred.define(); var DEFAULT_BAR_COLOR = "#000"; var useThisBackgroundColor='#ffffff'; var useThisBarColor='#026091'; function noNetworkAlert() { Ti.App.fireEvent('hide_...
neojjang/sociallist_titanium
Resources/javascript/application.js
JavaScript
apache-2.0
9,706
/** * Handlers for the sort menu in the dashboard-list.html template.a */ $(document).on('click', 'ul.ds-dashboard-sort-menu li', function(e) { var column = e.target.getAttribute('data-ds-sort-col') var order = e.target.getAttribute('data-ds-sort-order') var url = URI(window.location) if (column) { url.s...
filippog/tessera
js/app/handlers/menu-dashboard-sort.js
JavaScript
apache-2.0
825
var config = { apiKey: "AIzaSyCRLXkE0Upwk_0qnHiR1WPfYg2SZcIzYlg", authDomain: "bloc-chat-9fbea.firebaseapp.com", databaseURL: "https://bloc-chat-9fbea.firebaseio.com", storageBucket: "bloc-chat-9fbea.appspot.com", messagingSenderId: "731453641152" }; firebase.initializeApp(config);
jaysonbucy/bloc-chat
app/scripts/firebaseAuth.js
JavaScript
apache-2.0
293
var searchData= [ ['name',['name',['../classMarkerSet.html#aeb43b9a16f038d8c55fc05a94022c9fb',1,'MarkerSet::name()'],['../classNatNetSender.html#a8c2d5cf1a46cfbb1fadc347dedad6f14',1,'NatNetSender::name()']]], ['natnet',['NatNet',['../classNatNet.html',1,'']]], ['natnetmessageid',['NatNetMessageID',['../classNatNe...
robinzhoucmu/MLab_EXP
Mocap/NatNetLinux-master/include/NatNetLinux/html/search/all_6e.js
JavaScript
apache-2.0
1,239
// 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-automl
samples/generated/v1beta1/auto_ml.export_model.js
JavaScript
apache-2.0
1,871
import React, { Component } from 'react'; import { View, Dimensions, Text } from 'react-native'; var {height, width} = Dimensions.get('window'); class InfoBox extends Component { render(){ return( <View style={styles.box}> <View style={styles.titleContainer}> <Text style={styles.textTitle...
khanhqd/ProjectOT1
StarterRNP/src/screens/common/InfoBox.js
JavaScript
apache-2.0
1,111
// 编译html代码 DYC.filter('html', function($sce) { return function(text) { return $sce.trustAsHtml(text); }; }); // 过滤html代码 DYC.filter('text', function($sce) { return function(text) { return text.replace(/<\/?[^>]*>/g, ''); }; }); // 加粗匹配文本 DYC.filter('matchText', function($sce) { retu...
LinJieLinLin/myWebpack
src/common/filter/html.js
JavaScript
apache-2.0
618
(function () { 'use strict'; var app = angular.module('OrganizationModule'); function OrganizationController($scope, $mdDialog, TreeFactory, $stateParams, OrganizationFactory) { var vm = this; vm.organization = $stateParams.organization; vm.linkedNodeIds = ['organizationNode', 'o...
dmonay/okra_client
src/app/organization/OrganizationController.js
JavaScript
apache-2.0
2,126
define(['ash', 'game/constants/UpgradeConstants', 'game/vos/UpgradeVO', 'game/vos/BlueprintVO'], function (Ash, UpgradeConstants, UpgradeVO, BlueprintVO) { var UpgradesComponent = Ash.Class.extend({ boughtUpgrades: [], newBlueprints: [], availableBlueprints: [], constructor: function () { this.boughtUpgr...
nroutasuo/level13
src/game/components/tribe/UpgradesComponent.js
JavaScript
apache-2.0
3,515
module.exports = function (math) { var util = require('../../util/index'), BigNumber = math.type.BigNumber, Complex = require('../../type/Complex'), Matrix = require('../../type/Matrix'), Unit = require('../../type/Unit'), collection = require('../../type/collection'), isBoolean ...
npmcomponent/josdejong-mathjs
lib/function/arithmetic/subtract.js
JavaScript
apache-2.0
3,192
/** * Copyright 2020 Phenix Real Time Solutions, 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 * * Unle...
PhenixP2P/WebSDK
test/sdk/express/WhenPublishingWithExpressPCast.js
JavaScript
apache-2.0
9,984
'use strict'; var inherits = require('util').inherits; var EventEmitter = require('events').EventEmitter; var once = require('./util/once').once; module.exports = { Characteristic: Characteristic }; /** * Characteristic represents a particular typed variable that can be assigned to a Service. For instance, a * ...
polo14va/HAP-NodeJS
lib/Characteristic.js
JavaScript
apache-2.0
11,072
/** * ReMooz - Zoomer * * Inspired by so many boxes and zooms * * @version 1.0.4 + modified version for AppDen * * @license MIT-style license * @author Harald Kirschner <mail [at] digitarald.de> * @copyright Author */ var ReMooz = new Class({ Implements: [Events, Options, Chain], options: { link: nu...
yuanyangwu/yuanyangwu.github.io
remooz/ReMooz.js
JavaScript
apache-2.0
10,976
ctx.fillStyle = '#000000'; ctx.strokeStyle = "blue"; ctx.moveTo(125*ratio, 10*ratio); ctx.lineTo(125*ratio, 300*ratio); ctx.stroke(); ctx.font = 15*ratio+"px Arial-MT"; ctx.textAlign = "start"; ctx.fillText("textAlign=start", 125*ratio, 10*ratio); ctx.textAlign = "end"; ctx.fontSize = 15**ratio+'px'; ctx.fillText("text...
jwxbond/GCanvas
core/test/benchmarks/font/tc_2d_text_textAlign.js
JavaScript
apache-2.0
594
// flow-typed signature: 87555178eb3cd25af282c797a3e80cb3 // flow-typed version: <<STUB>>/gulp-rename_v1.2.2/flow_v0.41.0 /** * This is an autogenerated libdef stub for: * * 'gulp-rename' * * Fill this stub out by replacing all the `any` types. * * Once filled out, we encourage you to share your work with the...
kjirou/developers-defense
flow-typed/npm/gulp-rename_vx.x.x.js
JavaScript
apache-2.0
855
window.LT = { alert: function(data){ alert(data); }, confirm: function(data){ if(confirm(data)){ return true; } return false; }, host: '/live-test/' }; //鼠标经过用户中心 $('.user-center').mouseover(function(){ $('.user-center-sub').show(); }); $('.user-center...
huolong1992/live-test
scripts/js/module/common.js
JavaScript
apache-2.0
397
$(function() { $(window).on('load', function() { waterfall(); //存储将要加载的图片路径集合 var dataInt = { 'data': [{ 'src': '0.jpg' }, { 'src': '1.jpg' }, { 'src': '2.jpg' }, { 'src': '3.jpg' }] }; $(window).on("scroll", function() { if (ckeckScrollSlide()) { //判断是否需要加载图片 ...
despise-all/front-demo
water fall/js/waterfall.js
JavaScript
apache-2.0
2,299
/* * Copyright 2015 Caleb Brose, Chris Fogerty, Rob Sheehy, Zach Taylor, Nick Miller * * 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...
lighthouse/harbor
app/js/instances/containerController.js
JavaScript
apache-2.0
3,438
"use strict"; var __extends = (this && this.__extends) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; var __decorate = (this && this.__decorate) || fu...
SierraSoftworks/typedoc
lib/utils/options/readers/tsconfig.js
JavaScript
apache-2.0
3,540
'use strict'; import React from 'react'; import ReactDOM from 'react-dom'; import Tree from '../src'; $.getJSON('./data.json',(data) => { let treeDatas = data.datas.code.rows; ReactDOM.render(<Tree data={treeDatas} multiple={false} showIcon={true} defaultExpandAll={true} ...
wisedu/bh-react
src/tree/examples/tree.js
JavaScript
apache-2.0
422
let pre1 = new Preview({ el: $('.js-upload') }).show() $('.js-label').on('click', evt => { $('.js-label').removeClass('active') $(evt.target).addClass('active') }) new Counter({ el: $('.js-counter') })
Re-Rabbit/pandora
pages/ysd/box.js
JavaScript
apache-2.0
212
/*jslint devel: true, node: true, bitwise: false, debug: false, eqeq: false, evil: false, forin: false, newcap: false, nomen: false, plusplus: false, regexp: false, sub: false, vars: false, undef: false, unused: false, white: false, quotmark: single, indent: 2, maxlen: 80 */ 'use strict'; // node built in libraries. ...
rnagella/02_orientation
tibuildautomation.js
JavaScript
apache-2.0
4,185
import BreadcrumbSegment from "../../../../../../../src/js/components/BreadcrumbSegment"; import MesosStateStore from "../../../../../../../src/js/stores/MesosStateStore"; class TaskDetailBreadcrumb extends BreadcrumbSegment { constructor() { super(...arguments); this.store_listeners = [ { name: "...
jcloud-shengtai/dcos-ui_CN
plugins/services/src/js/pages/nodes/breadcrumbs/TaskDetailBreadcrumb.js
JavaScript
apache-2.0
1,044
// 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-security-center
samples/generated/v1beta1/security_center.get_iam_policy.js
JavaScript
apache-2.0
2,036
import {firstDefinedValue} from "utilities.js"; // ${makeTab("?mock_urls.blockpy", "URL Data", true)} const makeTab = function(filename, friendlyName, hideIfEmpty, notInstructor) { if (friendlyName === undefined) { friendlyName = filename; } let instructorFileClass = ""; let hideIfNotInstructo...
RealTimeWeb/blockpy
src/files.js
JavaScript
apache-2.0
23,518
ProductBuyWindow = function(_product){ var backButton = Ti.UI.createButton({ backgroundImage:'images/back_button.png', width:57,height:34 }); var self = Ti.UI.createWindow({ title: 'Product', barImage: 'images/nav_bg_w_pattern.png', backgroundImage: 'images/bg.png', leftNavButton: backBut...
noonswoon/social-tv-base
Resources/ui/common/Pd_ProductBuyWindow.js
JavaScript
apache-2.0
2,993
/* * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. */ define([ 'underscore', 'contrail-model' ], function (_, ContrailModel) { var self; var ruleModel = ContrailModel.extend({ defaultConfig: { 'action_list':{'simple_action':'pass', 'apply_service':...
biswajit-mandal/contrail-web-controller
webroot/config/gohanUi/networkpolicy/ui/js/models/gcRuleModel.js
JavaScript
apache-2.0
15,387
$(function () { //$("#submit").on("mousedown", function (e) { // //console.log(tinyMCE.activeEditor.getContent()); // //Gets text from active editor // var content = tinyMCE.activeEditor.getContent(); // $("#hTitle").val($("#titleDisp").html()); //}) $(".edit").on("bl...
DACunningham/DeanAndSons
DeanAndSons/DeanAndSons/Scripts/Custom/CMSEditProp.js
JavaScript
apache-2.0
686
var Alloy = require("alloy"); var definition = { config: { columns: { id: "INTEGER PRIMARY KEY", title: "TEXT", author: "TEXT", read: "INTEGER" }, adapter: { type: "sql", collection_name: "book", db_name: Al...
dharmik/TiJasmin
Resources/alloy/models/Book.js
JavaScript
apache-2.0
1,475
// // app.js // gb-chat // // Created by Luka Mirosevic on 17/04/2014. // Copyright (c) 2014 Goonbee. All rights reserved. // //lm might need to add a different message type like "status" to enable things like "luka change the room topic to 'blabla'" //lm add heartbeat oneway message var nconf = require('nconf'),...
lmirosevic/gb-chat
app.js
JavaScript
apache-2.0
3,014
'use strict'; (function (root, factory) { if (typeof define === 'function' && define.amd) { define(['exports'], factory); } else if (typeof exports !== 'undefined') { factory(exports); } else { factory((root.jsonTreeBuilder = {})); } }(this, function (exports) { // If enabled, expressions are wra...
WebAssembly/js-astcompressor-prototype
parse/json-treebuilder.js
JavaScript
apache-2.0
11,156
import createCallbacks from 'uni-helpers/callbacks' import { getCurrentPageId } from '../../platform' import { invoke } from '../../bridge' const getSelectedTextRangeEventCallbacks = createCallbacks('getSelectedTextRangeEvent') UniServiceJSBridge.subscribe('onGetSelectedTextRange', ({ callbackId, data }) => {...
dcloudio/uni-app
src/core/service/api/keyboard/get-selected-text-range.js
JavaScript
apache-2.0
766
var woordnlContextFinder = require('./woordnl-context-finder'), immixContextFinder = require('./immix-context-finder'), anefoContextFinder = require('./anefo-context-finder'); var msgQueue = {}; module.exports = { queryContexts : function(query, msg, sources, callback) { //add all the sources to the (to be)...
beeldengeluid/labs-nodejs
node/context-finder/context-aggregator.js
JavaScript
apache-2.0
1,675
'use strict'; describe('Controller Tests', function() { describe('Subscriber Management Detail Controller', function() { var $scope, $rootScope; var MockEntity, MockPreviousState, MockSubscriber; var createController; beforeEach(inject(function($injector) { $rootScope ...
quanticc/sentry
src/test/javascript/spec/app/entities/subscriber/subscriber-detail.controller.spec.js
JavaScript
apache-2.0
1,481
// For an introduction to the Blank template, see the following documentation: // http://go.microsoft.com/fwlink/?LinkID=397704 // To debug code on page load in Ripple or on Android devices/emulators: launch your app, set breakpoints, // and then run "window.location.reload()" in the JavaScript Console. (function () ...
BlackSharkIO/FindIt
FrontEndApp/FindItCordova/FindItCordova/www/scripts/index.js
JavaScript
apache-2.0
1,462
/* * Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved. * * WSO2 Inc. licenses this file to you 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/li...
ksdperera/shared-analytics
features/log-analyzer/org.wso2.carbon.analytics.shared.la.common.feature/src/main/resources/gadgets/LogErrorBarChart/js/gadgetconf.js
JavaScript
apache-2.0
2,841
// Copyright 2008 The Closure Library 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 requ...
teppeis/closure-library
closure/goog/testing/loosemock.js
JavaScript
apache-2.0
9,901
/** mobile web toast、alert、confirm提示框 * 2016.05.25 ghb * toast使用方式: * webToast("屌丝逆袭了","bottom",1000); * webToast("出任SEO","bottom"); * webToast("赢取白富美",1000); * webToast("走向人生巅峰"); * * alert、confirm使用方式: * popTipShow.alert('弹窗标题',['知道了'],function(e){//do something}) * popTipSh...
godmeir/frontWidget
dialog/jqueryAlert/alertPopShow.js
JavaScript
apache-2.0
9,014
/* test commander component * To use add require('../cmds/test.js')(program) to your commander.js based node executable before program.parse */ 'use strict'; var pushbots = require('pushbots-api'); var fs = require('fs'); var jf = require('jsonfile') var figlet = require('figlet'); var _ = require('underscore...
Shadowz3n/Clube-do-Assinante-Abril
node_modules/pushbots-cli/cmds/test.js
JavaScript
apache-2.0
1,796
import { ReactiveVar } from 'meteor/reactive-var'; import { SubsManager } from 'meteor/meteorhacks:subs-manager'; import { Template } from 'meteor/templating'; import { CareerGoals } from '../../../api/career/CareerGoalCollection'; import { Slugs } from '../../../api/slug/SlugCollection'; import { Interests } from '../...
radgrad/radgrad
app/imports/ui/layouts/shared/with-landing-subscriptions.js
JavaScript
apache-2.0
2,094
import React from 'react'; import { Link } from 'react-router'; const Pager = ({ path, page, per, total }) => { const last = Math.ceil(total / per); const prev = page - 1 > 0 ? page - 1 : false; const next = page < last ? page + 1 : false; return ( <ul> <li><Link to={path} query={{page: 1}}>first</L...
iris-dni/iris-frontend
src/components/Pager/index.js
JavaScript
apache-2.0
695
/* * grunt-include-source * https://github.com/jwvdiermen/grunt-include-source * * Copyright (c) 2013 Jan Willem van Diermen * Licensed under the MIT license. */ 'use strict'; module.exports = function(grunt) { // Project configuration. grunt.initConfig({ jshint: { all: [ 'Gruntfile.js', 'tasks/...
benyi09/mopidy-jukebox
src/node_modules/grunt-include-source/Gruntfile.js
JavaScript
apache-2.0
2,747
'use strict'; describe('Controller: CurrentListCtrl', function () { // load the controller's module beforeEach(module('sightWordsApp')); var CurrentListCtrl, scope; // Initialize the controller and a mock scope beforeEach(inject(function ($controller, $rootScope) { scope = $rootScope.$new(); C...
kiranw06/sight-words
test/spec/controllers/current-list.js
JavaScript
apache-2.0
587
// This file has been autogenerated. var profile = require('../../../lib/util/profile'); exports.getMockedProfile = function () { var newProfile = new profile.Profile(); newProfile.addSubscription(new profile.Subscription({ id: 'bab71ab8-daff-4f58-8dfc-ed0d61a3fa6b', name: 'KasotaTest-001', user: { ...
vivsriaus/azure-xplat-cli
test/recordings/arm-cli-cdn-management-tests/arm_Cdn_Custom_Domains_delete_command_should_successfully_delete_the_custom_domain.nock.js
JavaScript
apache-2.0
7,190
/* Copyright© 2000 - 2022 SuperMap Software Co.Ltd. All rights reserved.*/ (function () { var r = new RegExp("(^|(.*?\\/))(include-web\.js)(\\?|$)"), s = document.getElementsByTagName('script'), targetScript; for (var i = 0; i < s.length; i++) { var src = s[i].getAttribute('src'); if (sr...
SuperMap/iClient9
examples/js/include-web.js
JavaScript
apache-2.0
10,005
/** cache.js Basic caching for server. Entries consist of: • key: cache key for reference • type: file type (for sending) • val: value Middleware creates a cache key based on the route and returns the entry if available. **/ var get = require("lodash/get"); var Utils = require("./utils"); var Rend...
shippjs/shipp-server
lib/cache.js
JavaScript
apache-2.0
5,419
// ==UserScript== // @name BroniesNL - Finfobar removal // @namespace http://frankkie.nl/ // @version 0.1 // @description remove finfobar (bar below post) // @author FrankkieNL // @match http*://bronies.nl/e107_plugins/forum/forum_viewtopic.php?* // @grant none // @downloadURL http...
frankkienl/BroniesNL-Tampermonkey-Scripts
broniesnl_finfobar_removal.user.js
JavaScript
apache-2.0
648
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); //import * as moment from "moment"; const luxon = tslib_1.__importStar(require("luxon")); const bluebird_1 = tslib_1.__importDefault(require("bluebird")); /** * abstract class used for elements stored in the ...
Novaleaf/xlib
_obsolete/xlib-v17/built/_obsolete/atomic-cache.js
JavaScript
apache-2.0
11,706
/** * @author Diego Resendez <[email protected]> */ var exceptions = require("../exceptions/zoExceptions"); var u = require("underscore")._; (function ($){ var config = function(settings){ settings = settings || {}; var self = {} u.extend(self, settings); self.isBatch = self.isBatch || false;...
zerooneit/zoServices-JS
server/classes/zoConfig.js
JavaScript
apache-2.0
563