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 |
|---|---|---|---|---|---|
/**
Breaks up a long string
@method breakUp
@for Handlebars
**/
Handlebars.registerHelper('breakUp', function(property, hint, options) {
var prop = Ember.Handlebars.get(this, property, options);
if (!prop) return "";
hint = Ember.Handlebars.get(this, hint, options);
return Discourse.Formatter.breakUp(pr... | tadp/learnswift | app/assets/javascripts/discourse/helpers/application_helpers.js | JavaScript | mit | 9,347 |
'use strict';
const styles = require('./styles');
const permsToString = require('./perms-to-string');
const sizeToString = require('./size-to-string');
const sortFiles = require('./sort-files');
const fs = require('fs');
const path = require('path');
const he = require('he');
const etag = require('../etag');
const url... | ManakCP/NestJs | node_modules/ecstatic/lib/ecstatic/show-dir/index.js | JavaScript | mit | 5,853 |
'use strict'
const assert = require('assert')
const http = require('http')
const https = require('https')
const { kState, kOptions } = require('./symbols')
const {
codes: { FST_ERR_HTTP2_INVALID_VERSION }
} = require('./errors')
function createServer (options, httpHandler) {
assert(options, 'Missing options')
... | cdnjs/cdnjs | ajax/libs/fastify/2.15.3/lib/server.js | JavaScript | mit | 4,813 |
module.exports={title:"LiveChat",slug:"livechat",get svg(){return'<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>LiveChat</title><path d="'+this.path+'"/></svg>'},path:"M23.849 14.91c-.24 2.94-2.73 5.22-5.7 5.19h-3.15l-6 3.9v-3.9l6-3.9h3.15c.93.03 1.71-.66 1.83-1.59.18-3 .18-6-.06-9-.06-.... | cdnjs/cdnjs | ajax/libs/simple-icons/5.24.0/livechat.min.js | JavaScript | mit | 733 |
OW_FriendRequest = function( itemKey, params )
{
var listLoaded = false;
var model = OW.Console.getData(itemKey);
var list = OW.Console.getItem(itemKey);
var counter = new OW_DataModel();
counter.addObserver(this);
this.onDataChange = function( data )
{
var newCount = data.get('n... | seret/oxtebafu | ow_static/plugins/friends/js/friend_request.js | JavaScript | gpl-2.0 | 2,629 |
jQuery(document).ready(function($) {
$(".zilla-tabs").tabs();
$(".zilla-toggle").each( function () {
var $this = $(this);
if( $this.attr('data-id') == 'closed' ) {
$this.accordion({ header: '.zilla-toggle-title', collapsible: true, active: false });
} else {
$this.accordion({ header: '.zilla-toggle-ti... | XDocker/web | wp-content/themes/scrolle/admin/zilla-shortcodes/js/zilla-shortcodes-lib.js | JavaScript | gpl-2.0 | 529 |
;(function (window, document) {
'use strict';
/**
* Global storage manager
*
* The storage manager provides a unified way to store items in the localStorage and sessionStorage.
* It uses a polyfill that uses cookies as a fallback when no localStorage or sessionStore is available or working.... | jhit/shopware | themes/Frontend/Responsive/frontend/_public/src/js/jquery.storage-manager.js | JavaScript | agpl-3.0 | 5,074 |
// [Name] SVGFECompositeElement-dom-k1-attr.js
// [Expected rendering result] Four circle with different opacity merged with feComposite filter - and a series of PASS messages
description("Tests dynamic updates of the 'k1' attribute of the SVGFECompositeElement object")
createSVGTestCase();
var defsElement = createSV... | youfoh/webkit-efl | LayoutTests/svg/dynamic-updates/script-tests/SVGFECompositeElement-dom-k1-attr.js | JavaScript | lgpl-2.1 | 4,008 |
// register-web-ui-test.js
//
// Test that the home page shows an invitation to join
//
// Copyright 2012, E14N https://e14n.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
//
// ... | OpenSocial/pump.io | test/register-web-ui-test.js | JavaScript | apache-2.0 | 4,694 |
/*
* Copyright (c) 2012-2015 S-Core Co., 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 applicable law... | kyungmi/webida-client | apps/ide/src/plugins/webida.ide.search-result/search-result-controller.js | JavaScript | apache-2.0 | 2,843 |
//// [stringLiteralTypesOverloads03.ts]
interface Base {
x: string;
y: number;
}
interface HelloOrWorld extends Base {
p1: boolean;
}
interface JustHello extends Base {
p2: boolean;
}
interface JustWorld extends Base {
p3: boolean;
}
let hello: "hello";
let world: "world";
let helloOrWorld: "h... | jwbay/TypeScript | tests/baselines/reference/stringLiteralTypesOverloads03.js | JavaScript | apache-2.0 | 2,432 |
(function() {
'use strict';
angular.module('replicationControllers', [])
.service('replicationControllerService', ['$q', ReplicationControllerDataService]);
/**
* Replication Controller DataService
* Mock async data service.
*
* @returns {{loadAll: Function}}
* @constructor
*/
function... | kubernetes-ui/kube-ui | master/components/dashboard/js/modules/services/replicationControllersMock.js | JavaScript | apache-2.0 | 2,865 |
module.exports = function(hljs) {
var ELIXIR_IDENT_RE = '[a-zA-Z_][a-zA-Z0-9_.]*(\\!|\\?)?';
var ELIXIR_METHOD_RE = '[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?';
var ELIXIR_KEYWORDS =
'and false then defined module in return redo retry end for true self when ' +
'ne... | ZenekeZene/zenekezene.github.io | node_modules/highlight.js/lib/languages/elixir.js | JavaScript | apache-2.0 | 3,976 |
CKEDITOR.plugins.setLang("flash","eu",{access:"Scriptak baimendu",accessAlways:"Beti",accessNever:"Inoiz ere ez",accessSameDomain:"Domeinu berdinekoak",alignAbsBottom:"Abs Behean",alignAbsMiddle:"Abs Erdian",alignBaseline:"Oinan",alignTextTop:"Testua Goian",bgcolor:"Atzeko kolorea",chkFull:"Onartu Pantaila osoa",chkLoo... | viticm/pfadmin | vendor/frozennode/administrator/public/js/ckeditor/plugins/flash/lang/eu.js | JavaScript | apache-2.0 | 1,063 |
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* The length property of the search method is 1
*
* @path ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js
* @description Checking String.prototype.search.length
*/
////////////////... | hippich/typescript | tests/Fidelity/test262/suite/ch15/15.5/15.5.4/15.5.4.12/S15.5.4.12_A11.js | JavaScript | apache-2.0 | 988 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding-for-await/ary-ptrn-rest-id-iter-step-err.case
// - src/dstr-binding-for-await/error/for-await-of-async-gen-var.template
/*---
description: Error forwarding when IteratorStep returns an abrupt completion (for-await-of statement)
es... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-var-ary-ptrn-rest-id-iter-step-err.js | JavaScript | bsd-2-clause | 2,326 |
// This file was procedurally generated from the following sources:
// - src/dstr-binding-for-await/obj-ptrn-id-init-fn-name-cover.case
// - src/dstr-binding-for-await/default/for-await-of-async-gen-const.template
/*---
description: SingleNameBinding assigns `name` to "anonymous" functions "through" cover grammar (for-... | sebastienros/jint | Jint.Tests.Test262/test/language/statements/for-await-of/async-gen-dstr-const-obj-ptrn-id-init-fn-name-cover.js | JavaScript | bsd-2-clause | 2,244 |
/*
* Copyright (c) 2008-2015 The Open Source Geospatial Foundation
*
* Published under the BSD license.
* See https://github.com/geoext/geoext2/blob/master/license.txt for the full
* text of the license.
*/
/*
* @include OpenLayers/Util.js
* @requires GeoExt/Version.js
*/
/**
* The permalink provider.
*
*... | m-click/geoext2 | src/GeoExt/state/PermalinkProvider.js | JavaScript | bsd-3-clause | 3,856 |
tinyMCE.init({
theme: "advanced",
mode: "specific_textareas",
editor_selector: "tinymce",
plugins: "fullscreen,autoresize,searchreplace,mediapicker,inlinepopups",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_buttons1: "search,replace,|,... | BankNotes/Web | src/Orchard.Web/Modules/TinyMce/Scripts/orchard-tinymce.js | JavaScript | bsd-3-clause | 772 |
// PhantomJS is missing Function.prototype.bind:
// http://code.google.com/p/phantomjs/issues/detail?id=522
if (!Function.prototype.bind) {
Function.prototype.bind = function (oThis) {
if (typeof this !== "function") {
// closest thing possible to the ECMAScript 5 internal IsCallable function
throw ... | vince0508/wegoto_iD | test/lib/bind-shim.js | JavaScript | isc | 897 |
export default function identity(x) {
return x;
}
| d3/d3-arrays | src/identity.js | JavaScript | isc | 52 |
'use strict';
var _ = require('lodash');
var webpack = require('webpack');
var mergeWebpackConfig = function (config) {
// Load webpackConfig only when using `grunt:webpack`
// load of grunt tasks is faster
var webpackConfig = require('./webpack.config');
return _.merge({}, webpackConfig, config, function (a,... | lCharlie123l/react-datepicker | gruntfile.js | JavaScript | mit | 3,123 |
var ArrayProto = Array.prototype;
var ObjProto = Object.prototype;
var escapeMap = {
'&': '&',
'"': '"',
"'": ''',
"<": '<',
">": '>'
};
var escapeRegex = /[&"'<>]/g;
var lookupEscape = function(ch) {
return escapeMap[ch];
};
var exports = module.exports = {};
exports.wit... | angyukai/boulderactive2016-landing-page | node_modules/nunjucks/src/lib.js | JavaScript | mit | 6,222 |
$.widget("metro.slider", {
version: "3.0.0",
options: {
position: 0,
accuracy: 0,
color: 'default',
completeColor: 'default',
markerColor: 'default',
colors: false,
showHint: false,
permanentHint: false,
hintPosition: 'top',
verti... | ckc/Metro-UI-CSS | js/widgets/slider.js | JavaScript | mit | 11,712 |
import React from 'react';
import ReactTestUtils from 'react/lib/ReactTestUtils';
import ReactDOM from 'react-dom';
import Col from '../src/Col';
describe('Col', () => {
it('Should set Offset of zero', () => {
let instance = ReactTestUtils.renderIntoDocument(
<Col xsOffset={0} smOffset={0} mdOffset={0} lg... | mmarcant/react-bootstrap | test/ColSpec.js | JavaScript | mit | 2,095 |
import _extends from"@babel/runtime/helpers/extends";import _objectWithoutProperties from"@babel/runtime/helpers/objectWithoutProperties";var _excluded=["value","getRootRef"];import{createScopedElement}from"../../lib/jsxRuntime";import{getClassName}from"../../helpers/getClassName";import{usePlatform}from"../../hooks/us... | cdnjs/cdnjs | ajax/libs/vkui/4.22.1/components/Progress/Progress.min.js | JavaScript | mit | 847 |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file ... | liayn/TYPO3.CMS | typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/HTMLArea.js | JavaScript | gpl-2.0 | 5,129 |
export default {
content: {
width: '100%',
padding: 10,
marginRight: 20,
},
header: {
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
},
};
| mcldev/geonode | geonode/monitoring/frontend/src/components/organisms/geonode-layers-analytics/styles.js | JavaScript | gpl-3.0 | 197 |
/*
* PLUGIN LoginMGR
*
* Latvian language file.
*
* Author:
*/
theUILang.accLogin = "Login";
theUILang.accPassword = "Password";
theUILang.accAccounts = "Accounts";
theUILang.accAuto = "Autologin";
theUILang.acAutoNone = "None";
theUILang.acAutoDay = "Every day";
theUILang.acAutoWeek = "Every wee... | Rapiddot/ruTorrent | plugins/loginmgr/lang/lv.js | JavaScript | gpl-3.0 | 408 |
/**
* Created by panos on 4/5/16.
*/
import angular from 'angular/index'
let _app = new WeakMap()
export default class Register {
constructor (appName, deps) {
deps = deps || []
let module
try {
module = angular.module(appName)
} catch (error) {
module = angular.module(appName, deps)
... | ClaroBot/Distribution | plugin/website/Resources/modules/utils/register.js | JavaScript | gpl-3.0 | 4,922 |
/*!
* This is a `i18n` language object.
*
* Spanish
*
* @author
* Jalios (Twitter: @Jalios)
* Sascha Greuel (Twitter: @SoftCreatR)
* Rafael Miranda (GitHub: @rafa8626)
*
* @see core/i18n.js
*/
(function (exports) {
if (exports.es === undefined) {
exports.es = {
'mejs.plural-form': 1,
// core... | ntja/smartschool | v2/public/js/plugins/mediaelement/src/js/languages/es.js | JavaScript | gpl-3.0 | 3,360 |
odoo.define('website_event.ticket_details', function (require) {
var publicWidget = require('web.public.widget');
publicWidget.registry.ticketDetailsWidget = publicWidget.Widget.extend({
selector: '.o_wevent_js_ticket_details',
events: {
'click .o_wevent_registration_btn': '_onTicke... | ddico/odoo | addons/website_event/static/src/js/website_event_ticket_details.js | JavaScript | agpl-3.0 | 1,926 |
/*
***** BEGIN LICENSE BLOCK *****
Copyright © 2009 Center for History and New Media
George Mason University, Fairfax, Virginia, USA
http://zotero.org
This file is part of Zotero.
Zotero is free software: you can redistribute it and/or modify
... | egh/zotero | chrome/content/zotero/note.js | JavaScript | agpl-3.0 | 3,063 |
//// [objectBindingPatternKeywordIdentifiers01.ts]
var { while } = { while: 1 }
//// [objectBindingPatternKeywordIdentifiers01.js]
var = { "while": 1 }["while"];
| jwbay/TypeScript | tests/baselines/reference/objectBindingPatternKeywordIdentifiers01.js | JavaScript | apache-2.0 | 170 |
/* ***** BEGIN LICENSE BLOCK *****
* Distributed under the BSD license:
*
* Copyright (c) 2010, Ajax.org B.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of sou... | McLeodMoores/starling | projects/web/web-engine/prototype/scripts/lib/ace/mode-xml.js | JavaScript | apache-2.0 | 29,974 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'preview', 'sv', {
preview: 'Förhandsgranska'
} );
| ldilov/uidb | plugins/ckeditor/plugins/preview/lang/sv.js | JavaScript | apache-2.0 | 225 |
/*
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'div', 'de-ch', {
IdInputLabel: 'Kennung',
advisoryTitleInputLabel: 'Tooltip',
cssClassInputLabel: 'Formatvorlagenklasse',
edit: 'Div bearbeiten',... | ldilov/uidb | plugins/ckeditor/plugins/div/lang/de-ch.js | JavaScript | apache-2.0 | 649 |
/*global define, $, console, window, history, tizen*/
/**
* Init page module
*/
define({
name: 'views/audioPage',
def: function viewsAudioPage() {
'use strict';
var appControl = null,
appControlReplyCallback = null;
function onLaunchSuccess() {
console.log('... | cwz920716/jalangi2 | tests/evernote/js/views/audioPage.js | JavaScript | apache-2.0 | 2,117 |
/**
* @license
* 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... | adhintz/end-to-end | src/javascript/crypto/e2e/openpgp/keygenerator.js | JavaScript | apache-2.0 | 10,724 |
/* *
*
* (c) 2010-2018 Torstein Honsi
*
* License: www.highcharts.com/license
*
* */
/**
* Options to align the element relative to the chart or another box.
*
* @interface Highcharts.AlignObject
*//**
* Horizontal alignment. Can be one of `left`, `center` and `right`.
*
* @name Highcharts.AlignObject#a... | extend1994/cdnjs | ajax/libs/highcharts/7.0.1/es-modules/parts/SvgRenderer.js | JavaScript | mit | 165,077 |
// wrapped by build app
define("FileSaver/demo/demo", ["dojo","dijit","dojox"], function(dojo,dijit,dojox){
/* FileSaver.js demo script
* 2012-01-23
*
* By Eli Grey, http://eligrey.com
* License: X11/MIT
* See LICENSE.md
*/
/*! @source http://purl.eligrey.com/github/FileSaver.js/blob/master/demo/demo.js */
(... | dawenx/p3_web | public/js/release/FileSaver/demo/demo.js | JavaScript | mit | 5,888 |
/* ****************************************************************************
* Start Flags series code *
*****************************************************************************/
var symbols = SVGRenderer.prototype.symbols;
// 1 - set default options
defaultPlotOptions.flags = merge(defaultPlotO... | Ecodev/gims | htdocs/lib/highcharts.com/js/parts/FlagsSeries.js | JavaScript | mit | 8,576 |
version https://git-lfs.github.com/spec/v1
oid sha256:f09386339b7a083e92b706c491817eb6f328805c49481a614f996a194d761fdc
size 1848
| yogeshsaroya/new-cdnjs | ajax/libs/dojo/1.9.7/cldr/nls/zh/ethiopic.js.uncompressed.js | JavaScript | mit | 129 |
if (typeof (QP) == "undefined" || !QP) {
var QP = {}
};
(function() {
/* Draws the lines linking nodes in query plan diagram.
root - The document element in which the diagram is contained. */
QP.drawLines = function(root) {
if (root === null || root === undefined) {
// Try... | jemmy655/sqlfiddle | src/main/webapp/javascripts/libs/xplans/mssql.js | JavaScript | mit | 3,162 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v1.1.0-rc4-master-c81f9f1
*/
goog.provide('ng.material.components.swipe');
goog.require('ng.material.core');
/**
* @ngdoc module
* @name material.components.swipe
* @description Swipe module!
*/
/**
* @ngdoc directive
* @mod... | JoPaRoRo/Fleet | web/assets/global/plugins/angular-material/modules/closure/swipe/swipe_1.js | JavaScript | mit | 2,501 |
/**
* ag-grid - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
* @version v18.0.0
* @link http://www.ag-grid.com/
* @license MIT
*/
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var LinkedList = (function () {
function LinkedList() {
... | sashberd/cdnjs | ajax/libs/ag-grid/18.0.0/lib/misc/linkedList.js | JavaScript | mit | 1,186 |
/**
* This pagination style shows Previous/Next buttons, and page numbers only
* for "known" pages that are visited at least once time using [Next>] button.
* Initially only Prev/Next buttons are shown (Prev is initially disabled).
*
* [<Previous] [Next>]
*
* When user navigates through the pages using [Next>... | cdnjs/cdnjs | ajax/libs/datatables-plugins/1.11.5/pagination/simple_incremental_bootstrap.js | JavaScript | mit | 6,799 |
module.exports={title:"Kibana",hex:"005571",source:"https://www.elastic.co/brand",svg:'<svg aria-labelledby="simpleicons-kibana-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-kibana-icon">Kibana icon</title><path d="M21.04 23.99H4.18l9.88-11.86c4.23 2.76 6.98 7.04 6.98 11... | cdnjs/cdnjs | ajax/libs/simple-icons/1.9.9/kibana.min.js | JavaScript | mit | 358 |
/* YUI 3.9.0 (build 5827) Copyright 2013 Yahoo! Inc. http://yuilibrary.com/license/ */
YUI.add('yui-later', function (Y, NAME) {
/**
* Provides a setTimeout/setInterval wrapper. This module is a `core` YUI module,
* <a href="../classes/YUI.html#method_later">it's documentation is located under the YUI class</a>.
*
... | alafon/ezpublish-community-built | ezpublish_legacy/extension/ezjscore/design/standard/lib/yui/3.9.0/build/yui-later/yui-later.js | JavaScript | gpl-2.0 | 2,686 |
/**
* Copyright (c) Tiny Technologies, Inc. All rights reserved.
* Licensed under the LGPL or a commercial license.
* For LGPL see License.txt in the project root for license information.
* For commercial licenses see https://www.tiny.cloud/
*
* Version: 5.3.1 (2020-05-27)
*/
(function () {
'use strict';
... | francbartoli/geonode | geonode/static/lib/js/plugins/noneditable/plugin.js | JavaScript | gpl-3.0 | 4,286 |
import {helper} from 'ember-helper';
import {htmlSafe} from 'ember-string';
import ghostPaths from 'ghost-admin/utils/ghost-paths';
// Handlebars Helper {{gh-path}}
// Usage: Assume 'http://www.myghostblog.org/myblog/'
// {{gh-path}} or {{gh-path 'blog'}} for Ghost's root (/myblog/)
// {{gh-path 'admin'}} for Ghost's ... | Elektro1776/latestEarthables | core/client/app/helpers/gh-path.js | JavaScript | gpl-3.0 | 1,375 |
var ccoding_stds_naming =
[
[ "Naming Overview", "ccoding_stds_naming.html#cstdsNaming", [
[ "Be Descriptive", "ccoding_stds_naming.html#descript", null ],
[ "Prefixes", "ccoding_stds_naming.html#prefix", null ],
[ "Component Interfaces", "ccoding_stds_naming.html#cstdsInterComponentInterfaces", n... | legatoproject/legato-docs | 15_10/ccoding_stds_naming.js | JavaScript | mpl-2.0 | 1,987 |
var global = newGlobal();
var arrayIter = (new global.Array())[global.Symbol.iterator]();
var ArrayIteratorPrototype = Object.getPrototypeOf(arrayIter);
var arrayIterProtoBase = Object.getPrototypeOf(ArrayIteratorPrototype);
var IteratorPrototype = arrayIterProtoBase;
delete IteratorPrototype.next;
var obj = global.e... | cstipkovic/spidermonkey-research | js/src/jit-test/tests/basic/cross-global-for-in.js | JavaScript | mpl-2.0 | 376 |
odoo.define('website_sale.s_products_searchbar', function (require) {
'use strict';
const concurrency = require('web.concurrency');
const publicWidget = require('web.public.widget');
const { qweb } = require('web.core');
/**
* @todo maybe the custom autocomplete logic could be extract to be reusable
*/
publicWidge... | ddico/odoo | addons/website_sale/static/src/snippets/s_products_searchbar/000.js | JavaScript | agpl-3.0 | 4,128 |
#!/usr/bin/env node
//
// Copyright 2012 Iris Couch, all rights reserved.
//
// Test displaying DNS records
var fs = require('fs')
var tap = require('tap')
var test = tap.test
var util = require('util')
var Message = require('../message')
test('Display a message', function(t) {
var file = 'oreilly.com-response'
... | jhs/dnsd | test/print.js | JavaScript | apache-2.0 | 1,173 |
//// [topLevelLambda.ts]
module M {
var f = () => {this.window;}
}
//// [topLevelLambda.js]
var M;
(function (M) {
var _this = this;
var f = function () {
_this.window;
};
})(M || (M = {}));
| RReverser/TSX | tests/baselines/reference/topLevelLambda.js | JavaScript | apache-2.0 | 225 |
define("dojox/editor/plugins/nls/mk/TableDialog", {
//begin v1.x content
insertTableTitle: "Вметни табела",
modifyTableTitle: "Модифицирај табела",
rows: "Редови",
columns: "Колони",
align: "Порамни:",
cellPadding: "Дополнување на ќелија:",
cellSpacing: "Растојание меѓу ќелии:",
tableWidth: "Ширина на таб... | Caspar12/zh.sw | zh.web.site.admin/src/main/resources/static/js/dojo/dojox/editor/plugins/nls/mk/TableDialog.js.uncompressed.js | JavaScript | apache-2.0 | 1,440 |
define("dojo/robot", ["dojo", "doh/robot", "dojo/window"], function(dojo) {
dojo.experimental("dojo.robot");
(function(){
// users who use doh+dojo get the added convenience of dojo.mouseMoveAt,
// instead of computing the absolute coordinates of their elements themselves
dojo.mixin(doh.robot,{
_resolveNode: functi... | sulistionoadi/belajar-springmvc-dojo | training-web/src/main/webapp/js/dojotoolkit/dojo/robot.js | JavaScript | apache-2.0 | 6,577 |
(function($) {
$.fn.toc = function(options) {
var self = this;
var opts = $.extend({}, jQuery.fn.toc.defaults, options);
var container = $(opts.container);
var headings = $(opts.selectors, container);
var activeClassName = opts.prefix+'-active';
var scrollTo = function(e) {
if (opts.smoothScrolling) {... | sconway/pulley-scroll | js/scroll-magic/docs/scripts/toc.js | JavaScript | apache-2.0 | 6,511 |
/*!
* UI development toolkit for HTML5 (OpenUI5)
* (c) Copyright 2009-2016 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
sap.ui.define(['jquery.sap.global','sap/ui/core/ComponentContainer'],function(q,C){"use strict";var $=q,_=false,a=null,b=null;return{s... | and1985129/digitalofficemobile | www/lib/ui5/sap/ui/test/launchers/componentLauncher.js | JavaScript | apache-2.0 | 921 |
/*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Contains the third and last part of the {@link CKEDITOR} object
* definition.
*/
// Remove the CKEDITOR.loadFullCore reference defined on ... | Videl/ALK | web/ckeditor/_source/core/ckeditor.js | JavaScript | mit | 3,716 |
/**
@module breeze
**/
var EntityAction = (function () {
/**
EntityAction is an 'Enum' containing all of the valid actions that can occur to an 'Entity'.
@class EntityAction
@static
**/
var entityActionMethods = {
isAttach: function () {
return !!this.isAttach;
},
isDetach: function ()... | edigitalresearch/breeze.js | src/a30_entityAction.js | JavaScript | mit | 3,148 |
/**
* Globalize v1.4.0-alpha.2
*
* http://github.com/jquery/globalize
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2018-03-09T13:51Z
*/
/*!
* Globalize v1.4.0-alpha.2 2018-03-09T13:51Z Released under the MIT license
* http://gi... | ahocevar/cdnjs | ajax/libs/globalize/1.4.0-alpha.2/globalize/date.js | JavaScript | mit | 74,659 |
/**
* v1.0.45 generated on: Mon May 30 2016 15:59:00 GMT-0500 (CDT)
* Copyright (c) 2014-2016, Ecor Ventures LLC. All Rights Reserved. See LICENSE (BSD).
*/
"use strict";if(window.NGN=window.NGN||{},window.NGN.DATA=window.NGN.DATA||{},!NGN.HTTP)throw new Error("NGN.DATA.Proxy requires NGN.HTTP.");window.NGN.DATA.... | abishekrsrikaanth/jsdelivr | files/chassis/1.0.45/data.proxy.min.js | JavaScript | mit | 1,077 |
import util from "../utils";
class ApplicationService {
getServiceFramework(controller) {
let sf = util.utilities.sf;
sf.moduleRoot = "PersonaBar";
sf.controller = controller;
return sf;
}
getGeneralSettings(callback) {
const sf = this.getServiceFramework("SEO");
... | dnnsoftware/Dnn.AdminExperience.Extensions | src/Modules/Settings/Dnn.PersonaBar.Seo/Seo.Web/src/services/applicationService.js | JavaScript | mit | 2,914 |
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
'use strict';
// THIS CHECK SHOULD BE THE FIRST THING IN THIS FILE
// This is to ensure that we catch env issues b... | chalin/angular | gulpfile.js | JavaScript | mit | 1,800 |
function initMessaging(){var e=[];chrome.runtime.onMessage.addListener(function(n,t){n.source=n.target=kango,"undefined"!=typeof n.tab&&(kango.tab.isPrivate=function(){return n.tab.isPrivate});for(var r=0;r<e.length;r++)e[r](n)}),kango.dispatchMessage=function(e,n){var t={name:e,data:n,origin:"tab",source:null,target:n... | boxfoot/toolkit-for-ynab | lib/kango-framework-latest/src/js/chrome/includes/content_kango.part.js | JavaScript | mit | 601 |
QUnit.module('pages > strategy > tabs > logger', function () {
const logger = KC3StrategyTabs.logger.definition;
QUnit.module('filters > logTypes', {
beforeEach() { this.subject = logger.filterFuncs.logTypes; },
}, function () {
QUnit.test('check type is set to visible', function (assert) {
logger... | sinsinpub/KC3Kai | tests/pages/strategy/tabs/logger/logger.js | JavaScript | mit | 6,574 |
import { installation as ActionTypes, extension as ExtensionActionTypes } from "constants/actionTypes";
import { InstallationService } from "services";
const installationActions = {
parsePackage(file, callback, errorCallback) {
return (dispatch) => {
InstallationService.parsePackage(file, (data)... | dnnsoftware/Dnn.AdminExperience.Extensions | src/Modules/Settings/Dnn.PersonaBar.Extensions/Extensions.Web/src/actions/installation.js | JavaScript | mit | 4,016 |
'use strict';
/* Controllers */
app
// Flot Chart controller
.controller('FlotChartDemoCtrl', ['$scope', function($scope) {
$scope.d = [ [1,6.5],[2,6.5],[3,7],[4,8],[5,7.5],[6,7],[7,6.8],[8,7],[9,7.2],[10,7],[11,6.8],[12,7] ];
$scope.d0_1 = [ [0,7],[1,6.5],[2,12.5],[3,7],[4,9],[5,6],[6,11],[7,6.5],[8,8]... | tahirakhan/bilal-cattle-farm | public/src/js/controllers/chart.js | JavaScript | mit | 1,725 |
/*
* This file is part of the TYPO3 CMS project.
*
* It is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, either version 2
* of the License, or any later version.
*
* For the full copyright and license information, please read the
* LICENSE.txt file ... | Loopshape/Portfolio | typo3_src-7.3.1/typo3/sysext/rtehtmlarea/Resources/Public/JavaScript/HTMLArea/Util/String.js | JavaScript | gpl-2.0 | 1,882 |
/*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang("codesnippet","bg",{button:"Въвеждане на блок с код",codeContents:"Съдържание на кода",emptySnippetError:"Блока с код не може да ... | maddy2101/TYPO3.CMS | typo3/sysext/rte_ckeditor/Resources/Public/JavaScript/Contrib/plugins/codesnippet/lang/bg.js | JavaScript | gpl-2.0 | 477 |
DV.Schema.helpers = {
HOST_EXTRACTOR : (/https?:\/\/([^\/]+)\//),
annotationClassName: '.DV-annotation',
// Bind all events for the docviewer
// live/delegate are the preferred methods of event attachment
bindEvents: function(context){
var boundZoom = this.events.compile('zoom');
var ... | cloudbearings/providence | viewers/apps/src/nytDocumentViewer/public/javascripts/DV/helpers/helpers.js | JavaScript | gpl-3.0 | 19,944 |
// Plugin: jQuery.scrollSpeed
// Source: github.com/nathco/jQuery.scrollSpeed
// Author: Nathan Rutzky
// Update: 1.0.2
(function($) {
jQuery.scrollSpeed = function(step, speed, easing) {
var $document = $(document),
$window = $(window),
$body = $('html, body'),
... | haas26u/zu-store | web/libs/jQuery.scrollSpeed/jQuery.scrollSpeed.js | JavaScript | gpl-3.0 | 2,827 |
/* Copyright (c) Business Objects 2006. All rights reserved. */
/*
================================================================================
ParameterUI
Widget for displaying and editing parameter values. Contains one or many
ParameterValueRows and, optionally, UI that allows rows to be added.
===============... | johndavedecano/tanghalangpasigenyo | aspnet_client/system_web/4_0_30319/crystalreportviewers13/js/crviewer/ParameterUI.js | JavaScript | gpl-3.0 | 12,193 |
/*
Copyright 2008-2015 Clipperz Srl
This file is part of Clipperz, the online password manager.
For further information about its features and functionalities please
refer to http://www.clipperz.com.
* Clipperz is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Pub... | gcsolaroli/password-manager | frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js | JavaScript | agpl-3.0 | 2,902 |
const test = require('ava');
const {replaceUrls, toInaboxDocument} = require('../app-utils');
test('replaceUrls("minified", ...)', async (t) => {
const mode = 'minified';
t.is(
replaceUrls(
mode,
'<script src="https://cdn.ampproject.org/v0.js"></script>'
),
'<script src="/dist/v0.js"></scri... | honeybadgerdontcare/amphtml | build-system/server/test/app-utils.test.js | JavaScript | apache-2.0 | 10,266 |
/**
* Copyright 2014 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 applic... | andreimuntean/devsummit | src/static/scripts/cds.js | JavaScript | apache-2.0 | 1,278 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests that stepInto doesn't pause in InjectedScriptSource.\n`);
await TestRunner.loadLegacyModule('sources')... | scheib/chromium | third_party/blink/web_tests/http/tests/devtools/sources/debugger-step/debugger-step-in-ignore-injected-script.js | JavaScript | bsd-3-clause | 1,215 |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
(async function() {
TestRunner.addResult(`Tests Summary view of detailed heap snapshots. The "Show All" button must show all nodes.\n`);
await TestRun... | chromium/chromium | third_party/blink/web_tests/http/tests/devtools/profiler/heap-snapshot-summary-show-all.js | JavaScript | bsd-3-clause | 2,080 |
'use strict';
exports.baseTechPath = require.resolve('./level-proto.js');
| bem-archive/bem-tools | lib/techs/v2/tech-docs.js | JavaScript | mit | 75 |
import merge from "ember-data/system/merge";
import RootState from "ember-data/system/model/states";
import Relationships from "ember-data/system/relationships/state/create";
import Snapshot from "ember-data/system/snapshot";
import EmptyObject from "ember-data/system/empty-object";
var Promise = Ember.RSVP.Promise;
v... | Kuzirashi/data | packages/ember-data/lib/system/model/internal-model.js | JavaScript | mit | 20,528 |
import { sendMail } from '../functions/sendMail';
import { unsubscribe } from '../functions/unsubscribe';
export const Mailer = {
sendMail,
unsubscribe,
};
| pkgodara/Rocket.Chat | packages/rocketchat-mail-messages/server/lib/Mailer.js | JavaScript | mit | 159 |
/* flatpickr v4.2.1, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.sv = {})));
}(this, (function (exports) { 'use strict';
var fp = typeof wi... | extend1994/cdnjs | ajax/libs/flatpickr/4.2.1/l10n/sv.js | JavaScript | mit | 1,639 |
// version 1.0 - original version
jQuery(document).ready(function () {
var version = jQuery.fn.jquery.split('.');
if (parseFloat(version[1]) < 7) {
// use .live as we are on jQuery prior to 1.7
jQuery('.colorpickerField').live('click', function () {
if (jQuery(this).attr('id').search("__i__") === -1) {
var... | Melanie27/2014 | wp-content/plugins/subscribe2/include/s2_colorpicker.js | JavaScript | gpl-2.0 | 1,643 |
var toArray = require('./toArray');
var find = require('../array/find');
/**
* Return first non void argument
*/
function defaults(var_args){
return find(toArray(arguments), nonVoid);
}
function nonVoid(val){
return val != null;
}
module.exports = defau... | sanwalkailash/DotFresh | node_modules/grunt-bower-installer/node_modules/bower/node_modules/mout/lang/defaults.js | JavaScript | gpl-3.0 | 330 |
YUI.add('moodle-core-blocks', function (Y, NAME) {
/**
* Provides drag and drop functionality for blocks.
*
* @module moodle-core-blockdraganddrop
*/
var AJAXURL = '/lib/ajax/blocks.php',
CSS = {
BLOCK : 'block',
BLOCKREGION : 'block-region',
BLOCKADMINBLOCK : 'block_adminblock',
EDITINGMOVE : 'ed... | hdomos/moodlehd | lib/yui/build/moodle-core-blocks/moodle-core-blocks-debug.js | JavaScript | gpl-3.0 | 32,521 |
/**
* Copyright 2017 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... | dotandads/amphtml | extensions/amp-analytics/0.1/test/test-iframe-transport.js | JavaScript | apache-2.0 | 8,537 |
L.Map.include({
addControl: function (control) {
control.addTo(this);
return this;
},
removeControl: function (control) {
control.removeFrom(this);
return this;
},
_initControlPos: function () {
var corners = this._controlCorners = {},
l = 'leaflet-',
container = this._controlContainer =
... | scottBrimberry/Leaflet-Smart-Package | src/map/ext/Map.Control.js | JavaScript | bsd-2-clause | 703 |
// ------------------------------------
// #POSTCSS - LOAD OPTIONS - OPTIONS
// ------------------------------------
'use strict'
/**
*
* @method options
*
* @param {Object} options PostCSS Config
*
* @return {Object} options PostCSS Options
*/
module.exports = function options (options) {
if (options.parse... | thethirdwheel/reasonabledisagreement | node_modules/react-scripts/node_modules/postcss-load-options/lib/options.js | JavaScript | mit | 614 |
/**************************************
{
x:0, y:0, width:433,
min:1, max:25, step:1,
message: "rules/turns"
}
**************************************/
function Slider(config){
var self = this;
self.id = config.id;
// Create DOM
var dom = document.createElement("div");
dom.className = "slider";
dom.style.left... | maeriens/trust | js/core/Slider.js | JavaScript | cc0-1.0 | 3,494 |
/**
* # Hooks & Filters
*
* This file contains all of the form functions of the main _inbound object.
* Filters and actions are described below
*
* Forked from https://github.com/carldanley/WP-JS-Hooks/blob/master/src/event-manager.js
*
* @author David Wells <david@inboundnow.com>
* @version 0.0.1
*... | cheayeam/wordpress | wp-content/plugins/leads/shared/assets/js/frontend/analytics-src/analytics.hooks.js | JavaScript | gpl-2.0 | 11,257 |
/**@license boxplus image transition engine
* @author Levente Hunyadi
* @version 1.4.2
* @remarks Copyright (C) 2009-2010 Levente Hunyadi
* @remarks Licensed under GNU/GPLv3, see http://www.gnu.org/licenses/gpl-3.0.html
* @see http://hunyadi.info.hu/projects/boxplus
**/
/*
* boxplus: a lightweight pop-up wi... | zincheto/Joomla-Online-Store | plugins/content/sigplus/engines/boxplus/slider/js/boxplus.transition.js | JavaScript | gpl-2.0 | 11,823 |
M.tool_assignmentupgrade = {
init_upgrade_table: function(Y) {
Y.use('node', function(Y) {
checkboxes = Y.all('td.c0 input');
checkboxes.each(function(node) {
node.on('change', function(e) {
rowelement = e.currentTarget.get('parentNode').get('par... | bhaumik25php/ready2study | admin/tool/assignmentupgrade/module.js | JavaScript | gpl-3.0 | 2,755 |
// --
// Core.Agent.TableFilters.js - provides the special module functions for the dashboard
// Copyright (C) 2001-2011 OTRS AG, http://otrs.org/
// --
// This software comes with ABSOLUTELY NO WARRANTY. For details, see
// the enclosed file COPYING for license information (AGPL). If you
// did not receive this file, ... | noritnk/otrs | var/httpd/htdocs/js/Core.Agent.TableFilters.js | JavaScript | agpl-3.0 | 12,857 |
/**
* slider - jQuery EasyUI
*
* Copyright (c) 2009-2013 www.jeasyui.com. All rights reserved.
*
* Licensed under the GPL or commercial licenses
* To use it on other terms please contact us: info@jeasyui.com
* http://www.gnu.org/licenses/gpl.txt
* http://www.jeasyui.com/license_commercial.php
*
* ... | OneFlying/searchweb | webapp/static/lib/jquery-easyui-1.3.5/src/jquery.slider.js | JavaScript | apache-2.0 | 9,989 |
(function () {
// Append the bind() polyfill
var scriptElem = document.createElement('script');
scriptElem.setAttribute('src', 'scripts/android2.3-jscompat.js');
if (document.body) {
document.body.appendChild(scriptElem);
} else {
document.head.appendChild(scriptElem);
}... | SimonidaPesic/VodicZaKupovinu | platforms/android/assets/www/scripts/platformOverrides.js | JavaScript | apache-2.0 | 329 |
/*
* Copyright 2013 The Polymer Authors. All rights reserved.
* Use of this source code is goverened by a BSD-style
* license that can be found in the LICENSE file.
*/
suite('ChildNodeInterface', function() {
function getTree() {
var tree = {};
var div = tree.div = document.createElement('div');
div... | modulexcite/ShadowDOM | test/js/ChildNodeInterface.js | JavaScript | bsd-3-clause | 1,975 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Command = require('../ember-cli/lib/models/command');
const test_1 = require("../tasks/test");
const config_1 = require("../models/config");
const common_tags_1 = require("common-tags");
const config = config_1.CliConfig.fromProject() ||... | RakaChoudhury/systemintegration | node_modules/@angular/cli/commands/test.js | JavaScript | mit | 3,611 |
import Ember from "ember-metal/core";
import EmberObject from "ember-runtime/system/object";
import TargetActionSupport from "ember-runtime/mixins/target_action_support";
var originalLookup;
QUnit.module("TargetActionSupport", {
setup() {
originalLookup = Ember.lookup;
},
teardown() {
Ember.lookup = ori... | dgeb/ember.js | packages/ember-runtime/tests/mixins/target_action_support_test.js | JavaScript | mit | 5,453 |