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
const base = require('./base.js'); const walden = base({ filter: ['brightness(1.1)', 'hue-rotate(-10deg)', 'sepia(0.3)', 'saturate(1.6)'], customElementFilterBefore: { background: '#0044cc', 'mix-blend-mode': 'screen', opacity: '0.3' } }); module.exports = walden;
ctr-lang/ctr
lib/ctr-nodes/preset/filter/CSS-gram/_walden.js
JavaScript
apache-2.0
285
var Prismic = require('prismic.io'); var Cookies = require('cookies'); Prismic.preview = function(api, linkResolver, req, res) { var token = req.query['token']; if (token) { api.previewSession(token, linkResolver, '/').then(function(url) { var cookies = new Cookies(req, res); cookies.set(Prismic.pr...
erwan/prismic-nodejs
index.js
JavaScript
apache-2.0
631
define(['backbone'], function (Backbone) { 'use strict'; return Backbone.Model.extend({ initialize: function() { this.on("invalid", function(model, error){ console.log("**Validation Error : " + error + "**"); }); }, defaults: { id: n...
spolnik/javascript-workspace
grunt/TodoApp/app/js/models/todo.js
JavaScript
apache-2.0
769
const assert = require('assert'); const DummyRequest = require('../../utils/DummyRequest'); const MD5Sum = require('../../../lib/s3middleware/MD5Sum'); const constants = require('../../../lib/constants'); function consume(stream) { stream.on('data', () => { }); } function testMD5(payload, expectedMD5, done) { ...
scality/Arsenal
tests/unit/s3middleware/MD5Sum.spec.js
JavaScript
apache-2.0
1,360
module.exports = function(grunt) { // Project configuration. grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), jshint: { files: ['gruntfile.js', 'main.js', 'js/**/*.js', 'tests/**/*.js'], options: { // options here to override JSHint defaul...
jmvillaveces/mito_models_visualization
gruntfile.js
JavaScript
apache-2.0
3,982
Ext.define('Scalr.ui.db.backup.DayCalendar', { extend: 'Ext.container.Container', alias: 'widget.db.backup.daycalendar', currentDate: new Date(), defaultType: 'container', items: [{ layout: 'hbox', defaults: { width: '100%', height: 26, cls: 'scalr-ui-dbbackups-cell-title scalr-ui-dbbackup...
wojons/scalr
app/www/ui2/js/ui/db/backups/calendarviews.js
JavaScript
apache-2.0
9,281
/*global QUnit, sinon */ sap.ui.define([ "sap/m/library", "sap/m/App", "sap/m/Page", "sap/m/ActionSheet", "sap/m/Button", "sap/ui/events/KeyCodes", "sap/base/Log", "sap/ui/qunit/QUnitUtils", "sap/ui/qunit/utils/createAndAppendDiv", "sap/ui/Device", "sap/ui/core/Core" ], function( library, App, Page, Acti...
SAP/openui5
src/sap.m/test/sap/m/qunit/ActionSheet.qunit.js
JavaScript
apache-2.0
33,409
import React from 'react' import PropTypes from 'prop-types' import { Text } from 'react-native' import { Toast } from 'antd-mobile' import camelCase from 'camelcase' import { observer } from 'mobx-react' @observer class FormItemContainer extends React.Component { static propTypes = { form: PropTypes.object, ...
manweill/dna-ebook
src/components/form/FormItem.js
JavaScript
apache-2.0
1,297
/* * Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH * under one or more contributor license agreements. See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. Camunda licenses this file to you under the Apache License, * Version 2.0; y...
ingorichtsmeier/camunda-bpm-platform
webapps/ui/cockpit/client/scripts/pages/processInstance.js
JavaScript
apache-2.0
26,976
'use strict'; angular .module('starter') .factory('DetailService', DetailService); DetailService.$inject = ['$http','AuthService']; function DetailService($http, AuthService) { return { getdata : getdata, getenrolled : getenrolled } function getdata(data) { return $http({ method : 'G...
Graghav/surabi
MENTOR-ANDROID/www/js/DetailsService.js
JavaScript
apache-2.0
829
var labels = { "type": "FeatureCollection", "features": [ { "type": "Feature", "properties": {MAP_LABEL: 'Lot 01'}, "geometry": { "type": "Point", "coordinates": [ -74.319876,41.887054 ] } }, { "type": "Feature", "properties": {MAP_...
hudsonwoods/hudson_woods
maps/availability-geojson.js
JavaScript
apache-2.0
48,261
require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)...
howarddierking/building-restful-services
module3/client-json-swagger/swagger-client.js
JavaScript
apache-2.0
113,269
var currentWindow = Ti.UI.currentWindow; currentWindow.addEventListener('open', function(){ var dialog = Ti.UI.createOptionDialog({ title:'是否拍照分享', options:['確定', '取消'], cancel:-1 }); dialog.show(); });
dokinkon/TalkyTalky
Resources/main_windows/share-handsome-window.js
JavaScript
apache-2.0
265
/* * Copyright 1999-2018 Alibaba Group Holding Ltd. * * 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...
alibaba/nacos
console-ui/src/components/NewNameSpace/index.js
JavaScript
apache-2.0
690
// 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...
lucidsoftware/closure-library
closure/goog/date/daterange.js
JavaScript
apache-2.0
12,921
(function(){ function AlbumCtrl(Fixtures, SongPlayer){ this.albumData = Fixtures.getAlbum(); this.songPlayer = SongPlayer; } angular .module('blocJams') .controller('AlbumCtrl', ['Fixtures', 'SongPlayer', AlbumCtrl]) })();
jaysonbucy/bloc-jams-angular
app/scripts/controllers/AlbumCtrl.js
JavaScript
apache-2.0
235
/** * Filemanager JS core * * filemanager.js * * @license MIT License * @author Jason Huck - Core Five Labs * @author Simon Georget <simon (at) linea21 (dot) com> * @copyright Authors * * WARNING: THIS VERSION IS CUSTOMIZED TO WORK WITH GRAILS PLUGIN * */ (function($) { // function to retrieve GET p...
vinco/grails-ckeditor
web-app/js/ofm/scripts/filemanager.js
JavaScript
apache-2.0
32,187
define([ 'jquery', 'lodash', 'backbone' ], function ($, _, Backbone) { var FiltersView = Backbone.View.extend({ template: 'filters', initialize: function () { this.collection.on('reset', this.render, this); }, events: { 'click .rfq': 'removeFilter' }, ...
umd-mith/ppa
solr-search/app/modules/solrita/views/filters.js
JavaScript
apache-2.0
814
THREE.FlyControls = function ( object, domElement ) { if ( domElement === undefined ) { console.warn( 'THREE.FlyControls: The second parameter "domElement" is now mandatory.' ); domElement = document; } this.object = object; this.domElement = domElement; if ( domElement ) this.domElement.setAttribute( 'ta...
sinorise/sinorise.github.io
three/js/controls/FlyControls.js
JavaScript
apache-2.0
7,574
(function () { var app = angular.module('vault'); app.factory('Template', templateFactory); templateFactory.$inject = []; function templateFactory() { function Template(opts) { angular.extend(this, opts || {}); } return Template; } app.factory('TemplateReposito...
JimmyBoh/vault
www/js/data/template-repository.js
JavaScript
apache-2.0
766
class LoginController { constructor(Restangular, $localStorage, $state) { this.login = () => { Restangular.all('sessions').post({ email: this.email, password: this.password }).then(user => { $localStorage.token = user.auth_token; $state.transitionTo('home') }, res...
Dan-Nolan/sc-ui
client/app/components/login/login.controller.js
JavaScript
apache-2.0
408
/*! * UI development toolkit for HTML5 (OpenUI5) * (c) Copyright 2009-2017 SAP SE or an SAP affiliate company. * Licensed under the Apache License, Version 2.0 - see LICENSE.txt. */ sap.ui.define(['sap/ui/core/routing/Target','sap/f/FlexibleColumnLayout','./async/Target'],function(T,F,a){"use strict";var M=T.extend...
thbonk/electron-openui5-boilerplate
libs/openui5-runtime/resources/sap/f/routing/Target.js
JavaScript
apache-2.0
760
import React from 'react'; const Alert = ({heading, text, type}) => ( <div className={"alert alert-dismissible alert-"+type} role="alert"> <button type="button" className="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button> <strong>{heading}</strong> {text} </di...
floodfx/gma-village
react-app/src/components/Alert.js
JavaScript
apache-2.0
347
define( ({ commonWebmap: { selector: { lblWebMap: "Webkarte", lblLocation: "Position", lblContent: "Inhalt", lblPopup: "Pop-up", lblControls: "Extras", lblOverview: "Übersichtskarte", lblLegend: "Legende", loadingTitle: "Titel wird geladen", section: "Abschnitt", sections...
CanterburyRegionalCouncil/StoryMaps-Wetlands
resources/common/nls/de/webmap.js
JavaScript
apache-2.0
2,424
import React, { Component } from "react"; import css from "./CreateCardContent.css"; import FrontCard from "../flashcards/FlashcardFrontPreview"; import BackCard from "../flashcards/FlashcardBackPreview"; import { getTranslation } from "../sub-components/translate"; import LangaugeScroll from "../sub-components/languag...
googleinterns/step197-2020
frontend/src/main-components/EditCardContent.js
JavaScript
apache-2.0
6,197
module.exports = { defineVariable: function(name, value){ Object.defineProperty(exports, name, { value: value, enumerable: true }); } }
harishyarlagaddas/aws_ops_test_nodejs
server/Utils.js
JavaScript
apache-2.0
183
sap.ui.define([ "sap/ui/core/mvc/Controller", "sap/ui/model/json/JSONModel", "sap/m/MessageToast" // also called from View ], function(Controller, JSONModel, MessageToast) { "use strict"; return Controller.extend("mvctest.controller.ExtendedXMLViewEventHandlerSyntax", { onInit: function () { var oModel = new...
SAP/openui5
src/sap.ui.core/test/sap/ui/core/samples/mvc/controller/ExtendedXMLViewEventHandlerSyntax.controller.js
JavaScript
apache-2.0
1,670
import template from './filterForm.html'; import controller from './filterForm.controller'; import './filterForm.styl'; let filterFormComponent = { restrict: 'E', bindings: {}, template, controller, controllerAs: 'vm' }; export default filterFormComponent;
linnovate/replay
client/app/components/filterForm/filterForm.component.js
JavaScript
apache-2.0
269
// main routing file. var express = require('express'); var router = express.Router(); var low = require('lowdb'); // lowdb configuration things. const FileSync = require('../../node_modules/lowdb/adapters/FileSync.js') console.log(__dirname) const adapter = new FileSync('./private/websiteConfig.json'); const db = low...
Mike-Cole/mikecole.co
src/routes/index.js
JavaScript
apache-2.0
622
// @copyright @polymer\iron-icons\maps-icons.js // @copyright 2017-2018 adalberto.lacruz@gmail.com import { AlgIronIconset } from '../src/base/alg-iron-iconset.js'; const definition = document.createElement('div'); definition.innerHTML = `<svg><defs> <g id="add-location"><path d="M12 2C8.14 2 5 5.14 5 9c0 5.25 7 13 ...
AdalbertoLacruz/alg-components
lib/icons/alg-maps-icons.js
JavaScript
apache-2.0
18,602
var React = require('react') var ReactDOM = require('react-dom') var Hello = React.createClass ({ render: function() { return ( <h1> Hello, React! </h1> ) } }) ReactDOM.render(<Hello />, document.getElementById('container'))
IKholopov/HackUPC2017
hackupc/assets/js/index.js
JavaScript
apache-2.0
287
// From http://eloquentjavascript.net/appendix2.html, // licensed under CCv3.0: http://creativecommons.org/licenses/by/3.0/ var ozpIwc = ozpIwc || {}; ozpIwc.metric = ozpIwc.metric || {}; ozpIwc.metric.stats = ozpIwc.metric.stats || {}; /** * Statistics classes for the ozpIwc Metrics * @module ozpIwc.metric * @sub...
ozone-development/ozp-iwc
src/js/metric/stats/binary_heap.js
JavaScript
apache-2.0
5,913
/* eslint-disable react/prop-types */ import React, { useState } from "react"; import specialCharacters, { number, } from "../../../.storybook/utils/argTypes/specialCharacters"; import Textarea from "."; export default { component: Textarea, title: "Textarea/Test", parameters: { info: { disable: true }, ...
Sage/carbon
src/components/textarea/textarea-test.stories.js
JavaScript
apache-2.0
3,012
import React from 'react'; import ReactDOM from 'react-dom'; import Page from './components/page/Page' import './index.css'; import registerServiceWorker from './registerServiceWorker'; ReactDOM.render( <Page />, document.getElementById('root') ); registerServiceWorker();
Ca1YuChen/Lottery
src/index.js
JavaScript
apache-2.0
283
// Generated by CoffeeScript 1.3.1 /* Licensed under the Apache License, Version 2.0. See footer for details */ (function() { window.require = function(moduleId) { if (moduleId === "../lib/console-table") { return console.table; } if (moduleId === "./spec-helpers") { return SpecHelpers; ...
pmuellr/console-table
spec/spec-require-browser.js
JavaScript
apache-2.0
1,201
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["common"],{ /***/ "./node_modules/@coreui/coreui-plugin-chartjs-custom-tooltips/js/custom-tooltips.js": /*!******************************************************************************************!*\ !*** ./node_modules/@coreui/coreui-plugin-chartjs-cus...
ubcsc/ubcsc-website
ubcsc-website/public/admin/common.js
JavaScript
apache-2.0
13,617
Class('jh.Install', { posision: [], execute: function() { } });
zhjhxxxjh/stringL
jh/node_modules/classes/command/Install.js
JavaScript
apache-2.0
85
'use strict'; (function (exports, undefined) { window.images.loadImages(); window.lightbox.bindEvents(); })(window.main = window.main || {});
yifange/lightbox-demo
main.js
JavaScript
apache-2.0
147
/*global QUnit testRule*/ sap.ui.define([ "jquery.sap.global", "sap/ui/core/Component", "sap/ui/core/ComponentContainer", "sap/ui/core/mvc/XMLView", "sap/ui/layout/VerticalLayout", "sap/m/Button" ], function( jQuery, Component, ComponentContainer, XMLView, VerticalLayout, Button ) { "use strict"; QUnit....
nzamani/openui5
src/sap.ui.core/test/sap/ui/core/qunit/rules/Config/asynchronousXMLViews.qunit.js
JavaScript
apache-2.0
1,604
"use strict"; //# sourceMappingURL=rx-attachment.d.js.map
pubkey/rxdb
dist/lib/types/rx-attachment.d.js
JavaScript
apache-2.0
57
/* Copyright 2016 ElasticBox 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 agreed to in w...
ElasticBox/elastickube
src/ui/app/login/ek-validate-user/ek-validate-user.directive.js
JavaScript
apache-2.0
1,183
var refs = require('../../../../../../refs.js'); module.exports = { id: refs.OADA_SENSOR_ID, description: 'application/vnd.oada.sensor-data.sensor.1+json', additionalProperties: true, properties: { context: { $ref: refs.TYPE_CONTEXT_ID }, name: { type: ...
OADA/oada-formats
formats/application/vnd/oada/sensor/1/+json/schema.js
JavaScript
apache-2.0
2,258
'use strict'; describe('Filter: tagFilter', function () { // load the filter's module beforeEach(module('openstorefrontApp')); // initialize a new instance of the filter before each test var tagFilter; beforeEach(inject(function ($filter) { tagFilter = $filter('tagFilter'); })); it('should return ...
skycow/openstorefront
client/openstorefront/test/spec/filters/tagfilter.js
JavaScript
apache-2.0
535
var createRound = require('../internal/createRound'); /** * Calculates `n` rounded up to `precision`. * * @static * @memberOf _ * @category Math * @param {number} n The number to round up. * @param {number} [precision=0] The precision to round up to. * @returns {number} Returns the rounded up number. * @examp...
YangXi8888/ionicApp
platforms/android/cordova/node_modules/lodash/math/ceil.js
JavaScript
apache-2.0
491
/** * @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/ceil/lib/index.js
JavaScript
apache-2.0
1,083
// Copyright (c) Wayne Parrott 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 applicabl...
RobotWebTools/rclnodejs
test/test-remapping.js
JavaScript
apache-2.0
3,071
/** * Created with JetBrains PhpStorm. * User: taoqili * Date: 12-6-12 * Time: 下午5:02 * To change this template use File | Settings | File Templates. */ UE.I18N['zh-cn'] = { 'labelMap':{ 'anchor':'锚点', 'undo':'撤销', 'redo':'重做', 'bold':'加粗', 'indent':'首行缩进', 'snapscreen':'截图', 'italic':'斜体', 'u...
yunhai281/baseProject
src/main/webapp/plugins/ueditor/lang/zh-cn/zh-cn.js
JavaScript
apache-2.0
32,300
var app = require('express')(), http = require('http').Server(app), io = require('socket.io')(http), fs = require('fs'); if (typeof String.prototype.anyStartsWith != 'function') { // see below for better implementation! String.prototype.anyStartsWith = function (strArray){ for (var i = 0; i < strAr...
TTTee/webmind
server.js
JavaScript
apache-2.0
1,334
/** * @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/iter/every-by/examples/index.js
JavaScript
apache-2.0
1,054
/* Copyright 2011 the Melange 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 applicable law or agreed...
adviti/melange
app/soc/content/js/melange.gdata.documents.js
JavaScript
apache-2.0
4,065
/* -------------------------------------------------------------------------- */ /* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); you may ...
unistra/one
src/sunstone/public/app/utils/panel/template-table.js
JavaScript
apache-2.0
21,995
$(document).ready(function () { $(".ts-sidebar-menu li a").each(function () { if ($(this).next().length > 0) { $(this).addClass("parent"); }; }) var menux = $('.ts-sidebar-menu li a.parent'); $('<div class="more"><i class="fa fa-angle-down"></i></div>').insertBefore(menux); $('.more').click(func...
ruboweb/RasPIstatus
assets/js/main.js
JavaScript
apache-2.0
957
/** * A service to interact with the flickr API. */ define(["angular"], function(angular){ return angular.module("flickr.app.services", []) .factory("flickrService", function($http, $q){ // Flickr API key - TODO: Put these in a .config! var API_KEY = "4072ae071b7042b063476db7b14dac38...
akindr/flickr-app
app/scripts/services/flickr-service.js
JavaScript
apache-2.0
3,560
var searchData= [ ['featdefs_2ecpp',['featdefs.cpp',['../a00909.html',1,'']]], ['featdefs_2eh',['featdefs.h',['../a00910.html',1,'']]], ['feature_5fbase_2eh',['feature_base.h',['../a01004.html',1,'']]], ['feature_5fbmp_2ecpp',['feature_bmp.cpp',['../a01005.html',1,'']]], ['feature_5fbmp_2eh',['feature_bmp.h',...
stweil/tesseract-ocr.github.io
3.x/search/files_5.js
JavaScript
apache-2.0
1,733
function systemd() { console.log('[install] In order to configure systemd, you must do this:'); console.log('[install] - `chown -R www-data:www-data /srv/kapp`'); console.log('[install] - Copy files under tools/config-samples/ into /etc/systemd/system/'); console.log('[install] - Edit these files as neede...
K-Fet/K-App
packages/cli/install/systemd.js
JavaScript
apache-2.0
1,266
// 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: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6', name: 'Node CLI Test', user: { ...
yuezh/azure-xplat-cli
test/recordings/arm-network-local-gateway-tests/arm_network_local-gateway_list_should_display_all_local_gateways_in_resource_group.nock.js
JavaScript
apache-2.0
4,430
'use strict'; angular.module('wasabi.controllers') .controller('CloseBucketConfirmModalCtrl', ['$scope', '$uibModalInstance', 'bucketLabel', function ($scope, $uibModalInstance, bucketLabel) { $scope.bucketLabel = bucketLabel; $scope.ok = function () { ...
intuit/wasabi
modules/ui/app/scripts/controllers/CloseBucketConfirmModalCtrl.js
JavaScript
apache-2.0
518
function pload(){ setTimeout("JqueryDialog.Close()",2000); } //购物车js /* * * 添加商品到购物车 * tt:标记的页面类型 * obj: */ function addToCart(goodsid,tt) { if(tt=="jifen_cartlist" || tt=="jifen"){ if(confirm("你确定兑换吗?兑换后你的积分将会相应减少!")){}else{ return false;} } //判断js函数是否存在 // try{ // if(typeof(eval('checkcartatt...
zhaoshengloveqingqing/fenxiao
m/js/goods.js
JavaScript
apache-2.0
19,669
mini.parse(); var treeModule = mini.get("treeModule"); var winModule = mini.get("winModule"); var formModule = new mini.Form("formModule"); var selectModule = undefined; var gridFunction = mini.get("gridFunction"); var formFunction = new mini.Form("formFunction"); var winFunc = mini.get("winFunc"); var select...
qtzheng/SIMP
public/js/module.js
JavaScript
apache-2.0
6,057
/* * EthiopicDate.js - Represent a date in the Ethiopic calendar * * Copyright © 2015, 2018, 2021 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.o...
iLib-js/iLib
js/lib/EthiopicDate.js
JavaScript
apache-2.0
10,490
// test BlockNode var assert = require('assert'); var approx = require('../../../tools/approx'); var math = require('../../../index'); var Node = require('../../../lib/expression/node/Node'); var ConstantNode = require('../../../lib/expression/node/ConstantNode'); var SymbolNode = require('../../../lib/expression/node/...
BigFav/mathjs
test/expression/node/BlockNode.test.js
JavaScript
apache-2.0
7,940
/* global QUnit */ sap.ui.define([ "sap/base/util/merge", "sap/ui/thirdparty/sinon-4", "sap/ui/fl/write/_internal/connectors/ObjectStorageConnector", "sap/ui/fl/write/_internal/connectors/SessionStorageConnector", "sap/ui/fl/write/_internal/connectors/JsObjectConnector", "sap/ui/fl/apply/_internal/connectors/Obj...
SAP/openui5
src/sap.ui.fl/test/sap/ui/fl/qunit/write/api/connectors/ObjectStorageConnector.qunit.js
JavaScript
apache-2.0
13,407
'use strict'; const { Signale } = require('signale'); module.exports = new Signale({ logLevel: 'info', stream: process.stderr, types: { debug: { color: 'cyan' }, pending: { badge: '*' } } });
terascope/teraslice
e2e/test/signale.js
JavaScript
apache-2.0
266
define(['passport', 'passport-google-oauth'], function(passport, oauth) { "use strict"; /** * Initializes passport and configures endpoints for Google OAuth2. * * @class google * @module security * @constructor * * @param {Object} options The options/settings to use with google OAuth2. ...
terrancesnyder/hello-world-html5
ux/bin/security/google.js
JavaScript
apache-2.0
2,942
/* AMD module ID or path to access the ZeroClipboard object */ var _amdModuleId = null; /* CommonJS module ID or path to access the ZeroClipboard object */ var _cjsModuleId = null; /* * Find or create an htmlBridge and flashBridge for the client. * * returns nothing */ var _bridge = function () { var client = Z...
ipmobiletech/keepass-node
public/js/lib/zeroclipboard/src/javascript/ZeroClipboard/dom.js
JavaScript
apache-2.0
4,631
'use strict'; var url = require('url'); var Products = require('./ProductsService'); exports.handler = "".wrap(); module.exports.productsGet = function productsGet (req, res, next) { var latitude = req.swagger.params['latitude'].value; var longitude = req.swagger.params['longitude'].value; var result = Prod...
Swaggerd/swaggerd
example/nodejs-server/controllers/Products.js
JavaScript
apache-2.0
534
(function() { 'use strict'; angular .module('sentryApp') .factory('GameServer', GameServer); GameServer.$inject = ['$resource', 'DateUtils']; function GameServer ($resource, DateUtils) { var resourceUrl = 'api/game-servers/:id'; return $resource(resourceUrl, {}, { ...
quanticc/sentry
src/main/webapp/app/entities/game-server/game-server.service.js
JavaScript
apache-2.0
1,662
(function() { 'use strict'; angular .module('coocotteApp') .controller('ResetFinishController', ResetFinishController); ResetFinishController.$inject = ['$stateParams', '$timeout', 'Auth', 'LoginService']; function ResetFinishController ($stateParams, $timeout, Auth, LoginService) { ...
general03/coocotte
src/main/webapp/app/account/reset/finish/reset.finish.controller.js
JavaScript
apache-2.0
1,263
//new WOW({offset: 50}).init(); new WOW( { offset: 50, mobile: false, } ).init();
Smittey/AndySmith
assets/js/read.js
JavaScript
apache-2.0
123
const XMPPEvents = { /** * Indicates error while adding ice candidate. */ ADD_ICE_CANDIDATE_FAILED: 'xmpp.add_ice_candidate_failed', // Designates an event indicating that the focus has asked us to mute our // audio. AUDIO_MUTED_BY_FOCUS: 'xmpp.audio_muted_by_focus', AUTHENTICATION_RE...
jiyeyuran/lib-jitsi-meet
service/xmpp/XMPPEvents.js
JavaScript
apache-2.0
10,393
(function () { 'use strict'; angular.module('components.service-request') .controller('ServiceApprovalFormController', Controller); /** @ngInject */ function Controller() { var ctrl = this; ctrl.$onChanges = onChanges; ctrl.doApprove = doApprove; ctrl.doDeny = doDeny; function onChan...
boozallen/projectjellyfish
app/assets/javascripts/app/components/service-request/approval-form/form.controller.js
JavaScript
apache-2.0
789
/** * Displace's background image to emulate distance. * * @author Christopher Ringrose * @copyright (c) 2015 Gavamedia® * @version 1.0.0 * **/ var onScroll = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.o...
gavamedia/parallaxis
parallaxis.js
JavaScript
apache-2.0
5,448
// 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...
yssk22/gaecouch
futon/script/test/list_views.js
JavaScript
apache-2.0
14,052
/** * @license * abbozza! * * Copyright 2015 Michael Brinkmeier ( michael.brinkmeier@uni-osnabrueck.de ) * * 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/...
mbrinkmeier/abbozza
lib/js/abbozza/Tools.js
JavaScript
apache-2.0
19,604
/** * iOS build command. * * @module cli/_build * * @copyright * Copyright (c) 2009-2015 by Appcelerator, Inc. All Rights Reserved. * * @license * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ var appc = require('node-appc'), ...
jvkops/titanium_mobile
iphone/cli/commands/_build.js
JavaScript
apache-2.0
189,760
var AWS, helpers; helpers = require('../helpers'); AWS = helpers.AWS; describe('AWS.DynamoDB', function() { var client, configure, ddb; configure = function(options) { return new AWS.Config(options); }; ddb = function(options) { return new AWS.DynamoDB(configure(options)); }; client = ddb(); de...
chrisradek/aws-sdk-js
test/services/dynamodb.spec.js
JavaScript
apache-2.0
5,288
'use strict'; module.exports = { 'browserPort' : 3000, 'UIPort' : 3001, 'serverPort' : 3002, 'styles': { 'src' : 'app/styles/**/*.scss', 'dest': 'gulp-build/css' }, 'scripts': { 'src' : 'app/js/**/*.js', 'dest': 'gulp-build/js' }, 'fonts': { 'src' : ['app/fonts/**/*'], ...
openstack/stackviz
gulp/config.js
JavaScript
apache-2.0
995
const { loadAMP } = require('../util/loader'); const AMP_IMG_CODE = `<!DOCTYPE html> <html ⚡4email> <head> <meta charset="utf-8"> <script async src="https://cdn.ampproject.org/v0.js"></script> <style amp4email-boilerplate>body{visibility:hidden}</style> </head> <body> <a href="https://example.com/">Link</a> </...
ampproject/amp-email-viewer
example/test/core/link.test.js
JavaScript
apache-2.0
834
Cypress.Commands.add('signIn', (usr, pw) => { cy.visitPage('/login') cy.get('#userName').type(usr) cy.get('#password').type(pw) cy.get('[type="submit"]').click() }) Cypress.Commands.add('adminSignIn', () => { cy.fixture('users/admin.json').as('admin') cy.get('@admin').then(admin => { cy.signIn(admin.us...
OWASP/NodeGoat
test/e2e/support/commands.js
JavaScript
apache-2.0
730
var path = require('path'); var fs = require('fs'); var mkdirp = require('mkdirp'); var glob = require('glob'); module.exports = function (grunt) { require('time-grunt')(grunt); var config = {}; /** * Interval for filesystem polling in watch mode. * Warning: 100ms hits 75% CPU on OS X. 700ms is around 10...
dillia23/code-dot-org
apps/Gruntfile.js
JavaScript
apache-2.0
13,874
/** * @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/ops/cneg/lib/main.js
JavaScript
apache-2.0
1,475
"use strict"; const less = require("../thirdparty/less"); const CSSVariablesPointerPlugin = module.exports = function(config) { this.config = config; // eslint-disable-next-line new-cap this.native = new less.tree.visitor(this); this.ruleStack = []; this.callStack = []; this.mVars = {}; }; CSSVariablesPointerP...
SAP/less-openui5
lib/plugin/css-variables-pointer.js
JavaScript
apache-2.0
2,260
//DOM-Extension helper jQuery.webshims.register('dom-extend', function($, webshims, window, document, undefined){ "use strict"; //shortcus var modules = webshims.modules; var listReg = /\s*,\s*/; //proxying attribute var olds = {}; var havePolyfill = {}; var extendedProps = {}; var extendQ = {}; var modify...
mdia/OneCalendar
public/javascripts/lib/js-webshim/dev/shims/combos/24.js
JavaScript
apache-2.0
75,227
//Application Window Component Constructor function ApplicationWindow() { //load component dependencies var MainWindow = require('ui/MainWindow'); var mainWindow = new MainWindow(); //create component instance var self = Titanium.UI.createTabGroup({ navTintColor : 'white', tintColor : '#E2BB5A', barColor : ...
johneisenheim/bangcode
Resources/ui/ApplicationWindow.js
JavaScript
apache-2.0
577
module.exports = function (grunt) { grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), src: { js: ['<%= pkg.config.jsPath %>*.js'], html: ['partials/*.html'] }, html2js: { templates: { options: { base: 'partials', module: 'io.wcm.config.template...
wcm-io/wcm-io-config
editor/build/Gruntfile.js
JavaScript
apache-2.0
2,017
// Source code licensed under Apache License 2.0. // Copyright © 2017 William Ngan. (https://github.com/williamngan/pts) Pts.namespace( window ); var space = new CanvasSpace("#pt").setup({retina: true, resize: true}); var form = space.getForm(); space.add( { start: init, animate: (time, ftime) => { guid...
williamngan/pts
study/Study.template.js
JavaScript
apache-2.0
1,954
const languages = require('./languages'); const { validateText, validateSourceLanguage, validateTargetLanguage, validateSourceTargetLanguage, validateBeginning, } = require('./validators'); const { splitSentences, getTranslation, getAlternatives, } = require('./deepl-api-helper'); const { EOL } = requi...
vsetka/deepl-translator
src/deepl-translator.js
JavaScript
apache-2.0
4,835
import React, {Component} from 'react'; import classnames from 'classnames'; import ColorPicker from './ColorPicker.js'; class PortalForm extends Component { constructor() { super(); this.state = { name: '', titles: [], skills: [], }; this.addSkill = this.addSkill.bind(this); ...
li-cai/folio2
client/app/PortalForm.js
JavaScript
apache-2.0
4,601
sap.ui.define([ 'sap/ui/core/library', 'sap/ui/core/mvc/Controller', 'sap/ui/core/message/ControlMessageProcessor', 'sap/ui/core/message/Message', 'sap/ui/model/json/JSONModel', 'sap/ui/Device', 'sap/m/MessagePopover', 'sap/m/MessagePopoverItem', 'sap/m/MessageToast', "sap/ui/core/Core" ], function(coreLibrar...
SAP/openui5
src/sap.f/test/sap/f/demokit/sample/SemanticPageFreeStyle/controller/SemanticPageFreeStyle.controller.js
JavaScript
apache-2.0
2,030
/*jshint node: true, jasmine: true, browser: true */ /*global ContactFindOptions, ContactName, Q*/ /* * * 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 ownershi...
tripleclickdesign/hagelandapp
plugins/cordova-plugin-contacts/appium-tests/common/common.spec.js
JavaScript
apache-2.0
16,178
/************************************************************************* * * INFIVERVE TECHNOLOGIES PTE LIMITED CONFIDENTIAL * __________________ * * (C) INFIVERVE TECHNOLOGIES PTE LIMITED, SINGAPORE * All Rights Reserved. * Product / Project: Flint IT Automation Platform * NOTICE: All information containe...
getflint/flint-util
http/operation/workflow/head.js
JavaScript
apache-2.0
4,805
'use strict'; let assert = require('assert'), Statistics = require('../../lib/support/statistics').Statistics; describe('statistics', function() { let stats; beforeEach(function() { stats = new Statistics(); }); describe('#add', function() { it('should be possible to add multiple keys', function()...
tobli/browsertime
test/unitTests/statisticsTests.js
JavaScript
apache-2.0
5,175
import $location from 'wee-location'; import $router from 'wee-routes'; const testUri = 'https://www.weepower.com:9000/scripts?foo=bar&baz=qux#hash'; function setPath(path) { window.history.replaceState(0, '', path); } describe('location', () => { describe('segments', () => { before(() => { ...
weepower/wee-core
tests/scripts/unit/wee-location.js
JavaScript
apache-2.0
4,201
"use strict"; exports.setFogEnabled = function(fogEnabled){ return function(material){ return function(){ material.fogEnabled = fogEnabled; }; }; }; exports.setZOffset = function(value){ return function(mat){ return function(){ mat.zOffset = value; }...
aratama/purescript-babylon
src/Graphics/Babylon/Material.js
JavaScript
apache-2.0
623
export function apiGetMethod() { return "api"; } export class Simple { methodA() { return "A"; } methodB() { return "B"; } }
scarlettgamestudio/scarlett-framework
src/common/simple.js
JavaScript
apache-2.0
145
var searchData= [ ['headerfooter_2ephp',['headerfooter.php',['../headerfooter_8php.html',1,'']]] ];
zwmcfarland/MSEF
doxygen documentation/search/files_6.js
JavaScript
apache-2.0
102
f = function (x) {}
cs-au-dk/TAJS
test-resources/src/flowgraphbuilder/flowgraph_builder0042.js
JavaScript
apache-2.0
20
'use strict'; var React = require('react-native'); var _ = require('underscore'); var { Platform, StyleSheet, Text, TextInput, View } = React; var Artists = require('./Artists'); var Button = require('apsl-react-native-button'); var dismissKeyboard = require('dismissKeyboard'); var Homepage = Re...
caroaguilar/spotireactive
components/Homepage.js
JavaScript
apache-2.0
2,767
const sieveOfEratosthenes = (limit) => { const sieve = []; const primes = []; let k; let l; sieve[1] = false; for (k = 2; k <= limit; k += 1) { sieve[k] = true; } for (k = 2; k * k <= limit; k += 1) { if (sieve[k] !== true) { continue; } for (l = k * k; l <= limit; l += k) { ...
ampproject/worker-dom
demo/prime-numbers/primes.js
JavaScript
apache-2.0
1,328
/* CONFIG * author http://google.com/+BillRocha * date: 2014/02/08 */ var CONFIG = { url: "http://ticall.dev/", assets: "http://ticall.dev/assets/", ajax: "http://ticall.dev/ajax/", sounds: { 'click': "http://ticall.dev/assets/fx.mp3", 'final': "http://ticall.dev/assets/final.mp3"...
zuw/Ticall
script/config.old.js
JavaScript
apache-2.0
2,258