code
stringlengths
2
1.05M
repo_name
stringlengths
5
114
path
stringlengths
4
991
language
stringclasses
1 value
license
stringclasses
15 values
size
int32
2
1.05M
(function () { "use strict"; function LanguagesEditController($scope, $q, $timeout, $location, $routeParams, overlayService, navigationService, notificationsService, localizationService, languageResource, contentEditingHelper, formHelper, eventsService) { var vm = this; vm.page = {}; ...
hfloyd/Umbraco-CMS
src/Umbraco.Web.UI.Client/src/views/languages/edit.controller.js
JavaScript
mit
7,257
define({ "queries": "استعلامات", "addNew": "إضافة جديد", "newQuery": "استعلام جديد", "queryLayer": "الاستعلام عن الطبقة", "setSource": "تعيين", "setDataSource": "تعيين مصدر البيانات", "name": "الاسم", "querySource": "مصدر البيانات", "queryName": "اسم المهمة", "queryDefinition": "تعريف عوامل التصفية"...
cmccullough2/cmv-wab-widgets
wab/2.3/widgets/Query/setting/nls/ar/strings.js
JavaScript
mit
7,725
/*! * Angular Material Design * https://github.com/angular/material * @license MIT * v1.1.0-rc4-master-f9738f5 */ goog.provide("ng.material.components.fabActions"),goog.require("ng.material.core"),function(){"use strict";function a(){return{restrict:"E",require:["^?mdFabSpeedDial","^?mdFabToolbar"],compile:functio...
joshm101/blackwashed_portfolio
public/lib/angular-material/modules/closure/fabActions/fabActions.min.js
JavaScript
mit
689
import {Utils} from 'src/utils'; describe('Utils', () => { describe('patternsArrayToRegex', () => { it('handles *', () => { expect(Utils.patternsToRegex("*")).toEqual(/^.*$/); expect(Utils.patternsToRegex("foo*")).toEqual(/^foo.*$/); expect(Utils.patternsToRegex("foo*bar")).toEqual(/^foo.*bar$/)...
JeroenVinke/aurelia-flux
test/utils.spec.js
JavaScript
mit
1,256
/** * @author TristanVALCKE / https://github.com/Itee */ /* global QUnit */ import { TextBufferGeometry } from '../../../../src/geometries/TextGeometry'; export default QUnit.module( 'Geometries', () => { QUnit.module( 'TextBufferGeometry', ( hooks ) => { var geometries = undefined; hooks.beforeEach( functi...
hsimpson/three.js
test/unit/src/geometries/TextGeometry.tests.js
JavaScript
mit
790
// Karma configuration module.exports = function (config) { var configuration = { // base path that will be used to resolve all patterns (eg. files, exclude) basePath: '', // frameworks to use // available frameworks: https://npmjs.org/browse/keyword/karma-adapter frameworks: ['jasmine'], /...
tiagoporto/swillboilerplate.rocks
karma.conf.js
JavaScript
mit
1,878
import React from 'react'; import Slider from '../../components/slider'; class SliderTest extends React.Component { state = { slider2: 5, slider3: 1 }; handleChange = (slider, value) => { this.setState({...this.state, [slider]: value}); }; render () { return ( <section> <h5>Sl...
VACO-GitHub/vaco-components-library
spec/components/slider.js
JavaScript
mit
1,059
import {validatedResource} from '../../../src/decorator/validated-resource'; import {Entity} from '../../../src/entity'; import {ValidationRules} from 'aurelia-validation'; @validatedResource() export class WithValidation extends Entity { foo = null; bar = null; constructor() { super(); ValidationRule...
SpoonX/aurelia-orm
test/resources/entity/with-validation.js
JavaScript
mit
405
var jsStringEscape = require('js-string-escape') var Filter = require('broccoli-filter') module.exports = TemplateFilter TemplateFilter.prototype = Object.create(Filter.prototype) TemplateFilter.prototype.constructor = TemplateFilter function TemplateFilter (inputTree, options) { if (!(this instanceof TemplateFilter...
wagenet/broccoli_rails
spec/dummy/node_modules/broccoli-template/index.js
JavaScript
mit
703
const debug = require('@tryghost/debug')('importer:roles'); const BaseImporter = require('./base'); class RolesImporter extends BaseImporter { constructor(allDataFromFile) { super(allDataFromFile, { modelName: 'Role', dataKeyToImport: 'roles' }); this.errorConfig.re...
ErisDS/Ghost
core/server/data/importer/importers/data/roles.js
JavaScript
mit
582
module.exports.entity = function(entity, serv) { entity.effects = {}; for (let i = 1; i <= 23; i++) { // 23 in 1.8, 27 in 1.9 entity.effects[i] = null; // Just so we know it's a real potion and not undefined/not existant } entity.sendEffect = (effectId, {amplifier=0,duration=30*20,particles=true,whitelist...
fcatae/azure-node-mc
src/lib/plugins/effects.js
JavaScript
mit
3,404
define({ "_widgetLabel": "Altlık Haritası Galerisi", "chooseWebScene": "Web görünümü seç", "chooseWebMap": "Web haritası seç" });
tmcgee/cmv-wab-widgets
wab/2.15/widgets/BasemapGallery/nls/tr/strings.js
JavaScript
mit
144
define("gridx/nls/da/Body", { loadingInfo: "Indlæser...", emptyInfo: "Der er ingen elementer at vise", loadFailInfo: "Kan ikke indlæse data." });
Bonome/pauline-desgrandchamp.com
lib/dojo/gridx/nls/da/Body.js.uncompressed.js
JavaScript
mit
157
/* Copyright (C) 2015 wkeller This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it ...
williankeller/OtimizandoConteudos
assets/js/scripts.js
JavaScript
mit
903
import Dashboard from '../index'; import expect from 'expect'; import { shallow } from 'enzyme'; import React from 'react'; describe('<Dashboard />', () => { });
impact-learning/frontend-demo
app/containers/Dashboard/tests/index.test.js
JavaScript
mit
165
import pathExists from "path-exists"; import assert from "assert"; import mkdirp from "mkdirp"; import rimraf from "rimraf"; import path from "path"; import fs from "fs"; import FileSystemUtilities from "../src/FileSystemUtilities"; const tmpDir = path.resolve(__dirname, "../tmp"); describe("FileSystemUtilities", ()...
doug-wade/lerna
test/FileSystemUtilities.js
JavaScript
mit
2,966
import express from 'express'; import metadata from '../../webtask.json'; export default () => { const api = express.Router(); // eslint-disable-line new-cap api.get('/', (req, res) => { res.status(200).send(metadata); }); return api; };
auth0-extensions/auth0-github-deploy
server/routes/meta.js
JavaScript
mit
252
/** * * SelectOption * */ import React from 'react'; import PropTypes from 'prop-types'; import getFlag, { formatLanguageLocale } from '../../utils/getFlag'; import styles from './styles.scss'; /* eslint-disable react/require-default-props */ class SelectOptionLanguage extends React.Component { // eslint-disable-lin...
strapi/strapi-examples
jekyll-strapi-tutorial/api/plugins/settings-manager/admin/src/components/SelectOptionLanguage/index.js
JavaScript
mit
1,487
// Karma configuration // http://karma-runner.github.io/0.10/config/configuration-file.html module.exports = function(config) { config.set({ // base path, that will be used to resolve files and exclude basePath: '', // testing framework to use (jasmine/mocha/qunit/...) frameworks: ['jasmine'], ...
ninnemana/boomer
karma.conf.js
JavaScript
mit
2,575
require('./Tools/koremake/koremake.js');
KTXSoftware/KodeStudio-win32
resources/app/kodeExtensions/kha/Kha/Kore/make.js
JavaScript
mit
41
var Reporter = require('../reporter'); var _ = require('lodash'); var percentage = function(number, total) { return (Math.round(((number / total) * 100) * 100) / 100); }; function totalProperty(fileData, propName) { return _(fileData).pluck(propName).reduce(function(memo, value) { return memo + value; }, 0...
yagni/ember-cli-blanket
lib/reporters/json-reporter.js
JavaScript
mit
3,926
// Unit tests. import './unit/record_type' import './unit/serializer' // Integration tests. import './integration/methods/find' import './integration/methods/create' import './integration/methods/update' import './integration/methods/delete' import './integration/serializers/ad_hoc' import './integration/adapters/memo...
shaunstanislaus/fortune
test/index.js
JavaScript
mit
357
var log = require('color-log'), runSequenceGenerator = require('run-sequence'), createBundleTasks = require('./utils/createBundleTasks'); module.exports = function(gulp, options) { var tasks; tasks = createBundleTasks(gulp, options); /* Full build */ gulp.task(options.taskPrefix + 'build', function(ca...
mandragorn/quick-sip
tasks/build.js
JavaScript
mit
1,269
// Taken from https://gist.github.com/1688900 $(document).ready(function() { // Support for AJAX loaded modal window. // Focuses on first input textbox after it loads the window. $('[data-toggle="modal"]').click(function(e) { e.preventDefault(); var href = $(this).attr('href'); if (href.indexOf('#') == ...
annelisebouyer/datawrapper
www/static/vendor/bootstrap/js/bootstrap-modal-xhr.js
JavaScript
mit
552
/*! * dc 4.0.0-beta.2 * http://dc-js.github.io/dc.js/ * Copyright 2012-2019 Nick Zhu & the dc.js Developers * https://github.com/dc-js/dc.js/blob/master/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...
cdnjs/cdnjs
ajax/libs/dc/4.0.0-beta.4/dc.js
JavaScript
mit
464,339
'use strict'; var $ = require('jquery'); var _ = require('underscore'); var Backbone = require('backbone'); Backbone.$ = $; var GAEvents = _.clone(Backbone.Events); module.exports = GAEvents;
tadhg-ohiggins/regulations-site
regulations/static/regulations/js/source/events/ga-events.js
JavaScript
cc0-1.0
193
/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozilla.org/MPL/ ...
freaktechnik/nightingale-hacking
dependencies/vendor/mozbrowser/components/preferences/tests/browser_privacypane_4.js
JavaScript
gpl-2.0
2,697
// JavaScript Document jQuery(document).ready(function(){ //Main menu jQuery('ul.sf-menu li a').each(function(){ $rel = jQuery(this).attr('rel'); jQuery(this).parent().addClass($rel); //alert($rel); }); //Search form $("#search-block-form .form-submit").addClass('tbutton small'); //Top news $(".ca...
jamilm/PULR
sites/all/themes/themeforest-7321642-ipress-responsive-newsmagazine-drupal-theme/For Exits Drupal Installation/theme/ipress/js/update.js
JavaScript
gpl-2.0
564
Type.registerNamespace("Sys.Extended.UI"); Sys.Extended.UI.NoBotBehavior = function(element) { Sys.Extended.UI.NoBotBehavior.initializeBase(this, [element]); this._ChallengeScript = ""; } Sys.Extended.UI.NoBotBehavior.prototype = { initialize: function() { Sys.Extended.UI.NoBotBehavior.callBaseM...
donghang11/Support-Page
packages/AjaxControlToolkit.StaticResources.15.1.3.0/Content/Scripts/AjaxControlToolkit/Debug/NoBot.debug.js
JavaScript
gpl-2.0
1,112
var core = require('../../core'); // @see https://github.com/substack/brfs/issues/25 var glslify = require('glslify'); /** * This greyscales the palette of your Display Objects. * * @class * @extends PIXI.AbstractFilter * @memberof PIXI.filters */ function GrayFilter() { core.Filter.call(this, // ve...
michaelrod77/jibo-simpleTimer
node_modules/jibo/node_modules/pixi-animate/node_modules/pixi.js/src/filters/gray/GrayFilter.js
JavaScript
gpl-3.0
1,099
{ name: "main", out: "../../resources/scripts/xqlint.min.js", optimize: "closure" }
joewiz/eXide
tools/build.js
JavaScript
gpl-3.0
87
function validateNumber(element) { var value; var patron; value = element.value; patron = /[0-9\s]/; if (!(value === "")) { for (var i = 0; i < value.length; i++) { if (!patron.test(value[i])) { alert("El Campo solo admite valores numericos"); //el...
ITESM-BancoDeAlimentos/BAM
RealSystem/dist/gfdeploy/BACMty/BACMty-war_war/resources/js/validation.js
JavaScript
gpl-3.0
2,639
import React, { Component } from 'react'; import { Link, withRouter } from 'react-router-dom'; import { connect } from 'react-redux'; import UserInfo from './UserInfo'; import Nav from './Nav'; class SideBar extends Component { state = {}; render() { let { location, backgroundColor, enableB...
chaitanya1375/Myprojects
src/src/components/SideBar/index.js
JavaScript
gpl-3.0
928
'use strict'; // Dependencies var utils = require('./utils.js'); var extend = utils.extend; // Implementation var Field = require('./field.js'); module.exports = Validator; exports.Field = Field; /** * Create validator. Options could have properties `forceAsync`, `skipMissed` and `rules`. * @memberof module:helpe...
4miners/lisk
helpers/validator/validator.js
JavaScript
gpl-3.0
7,992
var gulp = require('gulp'); var config = require('../../config.js'); var utils = require('../../utils.js'); gulp.task('build-tinymce', [], function(){ return gulp.src([config.paths.nodes + 'tinymce/**']) .pipe(gulp.dest(config.paths.build + 'vendors/tinymce')); });
nmaillat/Phraseanet
resources/gulp/components/vendors/tinymce.js
JavaScript
gpl-3.0
278
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ //--------------------------------...
cledoux/cmps530
js/src/tests/js1_7/regress/regress-385133-02.js
JavaScript
mpl-2.0
1,058
// |reftest| pref(javascript.options.xml.content,true) /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*- * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozi...
cledoux/cmps530
js/src/tests/e4x/XML/13.4.4.12.js
JavaScript
mpl-2.0
956
// VRE Server Create controller App.VreserverCreateController = Ember.Controller.extend({ needs : ['application', 'userWelcome', 'vreserverManagement'], // populated with VRE image component info from controllers.application vreImages : [], /* * Static Data */ // mapping of uservreserver model properties to co...
grnet/e-science
webapp/frontend/app/controllers/vreserver_create.js
JavaScript
agpl-3.0
35,930
function ckeditor_init($element, mode) { var options = { docType: '<!DOCTYPE HTML>', contentsLangDirection: 'lrt', allowedContent: true, floatSpaceDockedOffsetY: 45, floatSpaceDockedOffsetX: 0, toolbarGroups: [ {name: 'basicstyles', groups: ['basicstyles...
CatoTH/Muenchen-Transparent
html/js/custom/ckeditor-settings.js
JavaScript
agpl-3.0
1,123
'use strict'; angular .module('Yellr') .factory('assignmentApiService', ['$http', function ($http) { var assignmentApi = {}; /** * Gets all posts submitted to a feed * * @param start : (optional) Starting index for results * @param count : (optional) Number ...
Nolski/yellr-server
app/api/assignmentApiSerivce.js
JavaScript
agpl-3.0
7,941
/** * Copyright 2012 52�North Initiative for Geospatial Open Source Software GmbH * * 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...
ahussein/ckanext-datalineage
ckanext/datalineage/fanstatic/js/time4Maps.js
JavaScript
agpl-3.0
13,448
const Constants = require('../constants'); const gulp = require('gulp'); const path = require('path'); gulp.task('icons:copy', function copyIcons() { const iconsPath = path.join( Constants.rootDir, 'node_modules', 'clay-css', 'lib', 'images', 'icons', 'icons.svg' ); return gulp .src(iconsPath) .p...
ambrinchaudhary/alloy-editor
scripts/build/gulp/tasks/icons.js
JavaScript
lgpl-3.0
405
var Connection = require('./connection').Connection, ReadPreference = require('./read_preference').ReadPreference, DbCommand = require('../commands/db_command').DbCommand, MongoReply = require('../responses/mongo_reply').MongoReply, ConnectionPool = require('./connection_pool').ConnectionPool, EventEmitter = ...
akasfei/North-Star
node_modules/mongodb/lib/mongodb/connection/server.js
JavaScript
apache-2.0
31,975
// @flow import { MAGNETIC_MODULE_TYPE, MAGNETIC_MODULE_V2, TEMPERATURE_MODULE_TYPE, TEMPERATURE_MODULE_V2, THERMOCYCLER_MODULE_TYPE, THERMOCYCLER_MODULE_V1, } from '@opentrons/shared-data' import { fixtureP10Single } from '@opentrons/shared-data/pipette/fixtures/name' import fixture_tiprack_10_ul from '@op...
OpenTrons/opentrons-api
protocol-designer/src/step-forms/test/createPresavedStepForm.test.js
JavaScript
apache-2.0
11,190
/** * @license * Copyright 2020 The FOAM Authors. All Rights Reserved. * http://www.apache.org/licenses/LICENSE-2.0 */ foam.CLASS({ package: 'foam.nanos.auth.ruler', name: 'PreventDuplicateUsernameAction', documentation: `Prevents putting a user with an existing username.`, implements: ['foam.nanos.ruler...
jacksonic/vjlofvhjfgm
src/foam/nanos/auth/ruler/PreventDuplicateUsernameAction.js
JavaScript
apache-2.0
1,539
var gulp = require('gulp'); var Dgeni = require('dgeni'); var del = require('del'); var bower = require('bower'); var runSequence = require('run-sequence'); gulp.task('dgeni', function() { try { var dgeni = new Dgeni([require('./docs/dgeni-conf')]); return dgeni.generate(); } catch(x) { console.log(x.s...
daniele-zurico/test-dgeni
gulpfile.js
JavaScript
apache-2.0
1,028
/** * This Bluemix app uses Watson's Question and Answer service and was created using NodeExpress * Designed and developed by: Tinniam V Ganesh * Date: 20 Oct 2014 * File: items.js */ exports.list = function(req, res){ res.render('itemsreq', { title: 'Ask Watson for a specified number of response for a questio...
ShifrinKatia/qaKata
routes/items.js
JavaScript
apache-2.0
328
/* -------------------------------------------------------------------------- */ /* 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/tabs/clusters-tab/panels/vnets/panelId.js
JavaScript
apache-2.0
1,275
'use strict'; let angular = require('angular'); require('./executionFilter.less'); module.exports = angular .module('spinnaker.core.delivery.filter.executionFilters.directive', [ require('./executionFilter.controller.js'), require('./executionFilter.service.js'), require('./executionFilter.model.js'), ...
zanthrash/deck-1
app/scripts/modules/core/delivery/filter/executionFilters.directive.js
JavaScript
apache-2.0
616
export { default } from './SAMLEdit';
GoogleCloudPlatform/sap-deployment-automation
third_party/github.com/ansible/awx/awx/ui_next/src/screens/Setting/SAML/SAMLEdit/index.js
JavaScript
apache-2.0
38
/* * Copyright 2015 OpenCB * * 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...
melsiddieg/cellbase
cellbase-app/app/mongodb-scripts/variation_functional_score-indexes.js
JavaScript
apache-2.0
842
// @flow import * as React from 'react' import { act } from 'react-dom/test-utils' import { mount } from 'enzyme' import { useToggle } from '../useToggle' describe('useToggle hook', () => { let result const TestUseToggle = (props: {| initialValue: boolean | void |}) => { result = useToggle(props.initialValue...
Opentrons/labware
components/src/hooks/__tests__/useToggle.test.js
JavaScript
apache-2.0
935
/** * 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...
arenadata/ambari
contrib/views/hive-next/src/main/resources/ui/hive-web/app/views/visual-explain.js
JavaScript
apache-2.0
13,193
// Copyright (c) 2012 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- es5id: 15.4.4.15-8-a-9 description: > Array.prototype.lastIndexOf - properties can be added to prototype after current position are visited on an Array-like object -...
m0ppers/arangodb
3rdParty/V8/V8-5.0.71.39/test/test262/data/test/built-ins/Array/prototype/lastIndexOf/15.4.4.15-8-a-9.js
JavaScript
apache-2.0
864
import {Page} from 'ionic/ionic'; @Page({ templateUrl: 'app/page2/page2.html', }) export class Page2 { constructor() { } }
chirilo/pic2nic-app-v2-nic
www/app/page2/page2.js
JavaScript
apache-2.0
132
/* ** Copyright [2013-2015] [Megam Systems] ** ** 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...
SamyakHacker/nilavu
app/assets/javascripts/angular/services/log_stack_limit.js
JavaScript
apache-2.0
1,031
/** * Created by aleckim on 2015. 5. 9.. */ 'use strict'; var assert = require('assert'); var bB = require('../controllers/blogBot'); var bC = require('../controllers/blogConvert'); var bF = require('../models/botFormat'); var tD = require('./test_data'); if (!global.log) { global.log = require('winston'); } ...
kimalec/BlogSyncer
test/test_blogConvert.js
JavaScript
apache-2.0
13,080
/** * Copyright 2016 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...
Adtoma/amphtml
extensions/amp-ad-network-adsense-impl/0.1/amp-ad-network-adsense-impl.js
JavaScript
apache-2.0
7,749
import { pageModel } from './page.model.js'; export const learningPathModel = [ { field: 'title' }, { field: '@name', name: 'name' }, { field: 'summary' }, { field: 'pages', isArray: true, transform: pageModel }, { field: 'edittime', name: 'editTime' }, { field: 'uri.learningpath', name: 'uri' ...
killsunday/martian
models/learningPath.model.js
JavaScript
apache-2.0
352
/* * 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 * distribut...
IceKhan13/zeppelin
zeppelin-web/src/components/noteListDataFactory/noteList.datafactory.js
JavaScript
apache-2.0
2,506
/*! @license Firebase v4.0.0 Build: rev-c054dab Terms: https://firebase.google.com/terms/ */ 'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.NetworkXhrIo = undefined; var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length;...
devnovators/coaprendamos
node_modules/firebase/storage/implementation/xhrio_network.js
JavaScript
apache-2.0
14,040
(function func() { var i = 20; // should not hoist variable. }());
estools/esmangle
test/compare/hoisting-variable-19.js
JavaScript
bsd-2-clause
72
CMSForm = Class.extend('ChangeTracker').extend('Observable'); CMSForm.prototype = { initialize : function(fn) { this.ChangeTracker.initialize(); this.formName = fn; this.prepareForm(); }, /** * Trigger normal save event, helpful e.g. when enter key is pressed in * single line input fields. */ onsubmi...
mattclegg/silverstripe-doc-restructuring
preview/cms/javascript/LeftAndMain_right.js
JavaScript
bsd-3-clause
13,620
/** * Copyright 2013-2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ 'use strict'; va...
heracek/fbjs
scripts/babel/auto-importer.js
JavaScript
bsd-3-clause
1,601
/******************************************************************************* Copyright (c) 2012, S-Core. All rights reserved. Use is subject to license terms. This distribution may include materials developed by third parties. **********************************************************************...
daejunpark/jsaf
tests/typing_tests/semantics/while1.js
JavaScript
bsd-3-clause
472
import React from 'react' import SimpleList from '../kit/SimpleList' class PairingSentimentBox extends React.Component { static propTypes = { news: React.PropTypes.array } static defaultProps = { news: [] } render () { const { news } = this.props const newsItem = news.map((newsItem, index)...
CodeRiderz/rojak
rojak-ui-web/src/app/media/LatestNews.js
JavaScript
bsd-3-clause
1,120
"use strict"; exports.bar = 123; exports.bas = 123; exports.bar = "hello"; exports.bas = "world";
basarat/tsb
tests/error/fullOfErrors/bar.js
JavaScript
mit
98
var jade = require('jade'); var fs = require('fs'); var templateFile = './template/page.jade'; var iterTemplate = fs.readFileSync(templateFile); var context = { messages: [ 'You have logged in successfully.', 'Welcome back!' ]}; var iterFn = jade.compile( iterTemplate, {filename: templateFile} ); console.log(...
wangding/demo-code
node.js-in-action/11/jade/inheritance/inheritance_example.js
JavaScript
mit
338
/** * San * Copyright 2016 Baidu Inc. All rights reserved. * * @file 主文件 * @author errorrik(errorrik@gmail.com) * otakustay(otakustay@gmail.com) * junmer(junmer@foxmail.com) */ (function (root) { // 人工调整打包代码顺序,通过注释手工写一些依赖 // // require('./util/guid'); // // require('./util/empty'); ...
sufuf3/cdnjs
ajax/libs/san/3.5.11/san.ssr.js
JavaScript
mit
254,228
/*! Tablesaw - v3.0.0-beta.2 - 2016-09-20 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2016 Filament Group; Licensed MIT */ // UMD module definition // From: https://github.com/umdjs/umd/blob/master/templates/jqueryPlugin.js (function (factory) { if (typeof define === 'function' && define.amd) { // ...
extend1994/cdnjs
ajax/libs/tablesaw/3.0.0-beta.2/stackonly/tablesaw.stackonly.jquery.js
JavaScript
mit
8,046
var express = require('../') , request = require('supertest'); describe('app', function(){ describe('.param(fn)', function(){ it('should map app.param(name, ...) logic', function(done){ var app = express(); app.param(function(name, regexp){ if (Object.prototype.toString.call(regexp) == '[...
YR/express
test/app.param.js
JavaScript
mit
8,617
var dom = require('utils/dom'); var utilities = require('utils/utilityFunctions'); describe("utilities.noop", function () { it("must return undefined", function () { assert.isUndefined(utilities.noop()); assert.isUndefined(utilities.noop('fooo')); assert.isUndefined(utilities.noop({})); }); }); descri...
MailOnline/videojs-vast-vpaid
test/utils/utilityFunctions.spec.js
JavaScript
mit
28,217
/* YUI 3.8.0pr2 (build 154) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('model', function (Y, NAME) { /** Attribute-based data model with APIs for getting, setting, validating, and syncing attribute values, as well as events for being notifi...
SHMEDIALIMITED/tallest-tower
node_modules/grunt-contrib/node_modules/grunt-contrib-yuidoc/node_modules/yuidocjs/node_modules/yui/model/model-debug.js
JavaScript
mit
33,615
!function(_,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("dayjs")):"function"==typeof define&&define.amd?define(["dayjs"],e):_.dayjs_locale_si=e(_.dayjs)}(this,function(_){"use strict";_=_&&_.hasOwnProperty("default")?_.default:_;var e={name:"si",weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා...
extend1994/cdnjs
ajax/libs/dayjs/1.8.12/locale/si.js
JavaScript
mit
1,158
'use strict'; describe('Chart.helpers.canvas', function() { var helpers = Chart.helpers; describe('clear', function() { it('should clear the chart canvas', function() { var chart = acquireChart({}, { canvas: { style: 'width: 150px; height: 245px' } }); spyOn(chart.ctx, 'clearRect'); hel...
jtcorbett/Chart.js
test/specs/helpers.canvas.tests.js
JavaScript
mit
1,529
/*! Tablesaw - v3.0.4 - 2017-10-27 * https://github.com/filamentgroup/tablesaw * Copyright (c) 2017 Filament Group; Licensed MIT */ /*! Shoestring - v2.0.0 - 2017-02-14 * http://github.com/filamentgroup/shoestring/ * Copyright (c) 2017 Scott Jehl, Filament Group, Inc; Licensed MIT & GPLv2 */ (function( factory ) { if...
extend1994/cdnjs
ajax/libs/tablesaw/3.0.4/tablesaw.js
JavaScript
mit
90,428
/*! * CanJS - 2.2.7 * http://canjs.com/ * Copyright (c) 2015 Bitovi * Fri, 24 Jul 2015 20:57:32 GMT * Licensed MIT */ /*can@2.2.7#util/dojo/dojo*/ 'format steal'; define([ 'can/util/can', 'can/util/attr', 'dojo/main', 'can/event', 'can/fragment', 'can/util/each', 'can/util/object/ispl...
swape/hapi-canjs-gulp
build/libs/canjs/amd/can/util/dojo.js
JavaScript
mit
16,570
var phantom = require('phantom') , _ = require('lodash') , util = require('./util.js') , zlib = require('zlib') , blockedResources = require('./resources/blocked-resources.json'); var COOKIES_ENABLED = process.env.COOKIES_ENABLED || false; var PAGE_DONE_CHECK_TIMEOUT = process.env.PAGE_DONE_CHECK_TIMEOUT || 3...
goibibo/prerender
lib/server.js
JavaScript
mit
18,019
// @flow const { GraphQLInputObjectType, GraphQLList, GraphQLEnumType, GraphQLNonNull, } = require(`graphql`) const _ = require(`lodash`) const createKey = require(`./create-key`) // builds an input field for sorting, given an array of names to sort on module.exports = function createSortField( typeName: str...
danielfarrell/gatsby
packages/gatsby/src/schema/create-sort-field.js
JavaScript
mit
1,203
module.exports = function (context, req) { context.done(); }
Azure/azure-webjobs-sdk-script
test/WebJobs.Script.Tests.Integration/TestScripts/Node/Invalid/index.js
JavaScript
mit
67
it("should change chunkhash of main chunk", function () { const mainChunk = STATS_JSON.chunks.find((chunk) => chunk.names.indexOf("main") !== -1); expect(mainChunk).toBeDefined(); switch (WATCH_STEP) { case "0": STATE.hash = mainChunk.hash; break; case "1": expect(mainChunk.hash).not.toBe(STATE.hash); ...
NekR/webpack
test/watchCases/runtime/dynamic-import/0/index.js
JavaScript
mit
673
module.exports = Torrent var addrToIPPort = require('addr-to-ip-port') // browser exclude var createTorrent = require('create-torrent') var debug = require('debug')('webtorrent:torrent') var Discovery = require('torrent-discovery') var EventEmitter = require('events').EventEmitter var inherits = require('inherits') va...
sideffect0/webtorrent
lib/torrent.js
JavaScript
mit
32,428
/** * @license Highcharts Gantt JS v7.2.0 (2019-09-03) * * StaticScale * * (c) 2016-2019 Torstein Honsi, Lars A. V. Cabrera * * License: www.highcharts.com/license */ 'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { factory['default'] = factory; module....
joeyparrish/cdnjs
ajax/libs/highcharts/7.2.0/modules/static-scale.src.js
JavaScript
mit
4,653
var gulp = require('gulp'); var config = require('../../config'); gulp.task('$clean-generated', function () { return gulp.src(config.cleanGeneratedSrc).pipe(require('gulp-clean')()); });
sstamenovcode/bookmarks-app
gulp/tasks/build-group/clean-generated.js
JavaScript
mit
196
/** * Copyright 2015 Telerik AD * * 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 ...
walgheraibi/StemCells
ui/js/bower_components/kendo-ui-core/src/js/cultures/kendo.culture.en-MY.js
JavaScript
mit
2,924
import { ClientFunction } from 'testcafe'; import parseUserAgent from '../../../../../../../lib/utils/parse-user-agent'; const getUserAgent = ClientFunction(() => navigator.userAgent.toString()); fixture `Take a full-page screenshot` .page `../pages/full-page.html`; test('API', async t => { const ua = await ...
VasilyStrelyaev/testcafe
test/functional/fixtures/api/es-next/take-screenshot/testcafe-fixtures/take-full-page-screenshot.js
JavaScript
mit
766
'use strict'; var path = require('path'); var gulp = require('gulp'); var conf = require('./conf'); var runSequence = require('run-sequence'); var $ = require('gulp-load-plugins')({ pattern: ['gulp-*', 'main-bower-files', 'uglify-save-license', 'del'] }); gulp.task('partials', function () { return gulp.src([ ...
times/axisJS
gulp/build.js
JavaScript
mit
3,338
import { strictEqual } from 'assert'; import indexOfIgnoringComments from '../../src/utils/indexOfIgnoringComments'; describe('indexOfIgnoringComments', function() { it('finds strings in source without comments as normal', function() { strictEqual(indexOfIgnoringComments('foo()', '()'), 'foo()'.indexOf('()')); ...
lunks/decaffeinate
test/utils/indexOfIgnoringComments_test.js
JavaScript
mit
601
// Custom per SISAL function background_Check() { BackgroundCheck.init({ targets: '.owl-prev, .owl-next', images: '.owl-item img', maxDuration: 50 }); } /* --------------------------------------------------------------------------- */ /* * BackgroundCheck * http://kennethcachia.com/background-che...
ldetomi/Future
application/views_future/tema_sisal/js/background-check/background-check.js
JavaScript
mit
20,131
/*! JointJS v3.0.0 (2019-06-08) - JavaScript diagramming library This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ this.joint = this.joint || {}; this.joint.shapes = this.j...
sufuf3/cdnjs
ajax/libs/jointjs/3.0.0/joint.shapes.erd.js
JavaScript
mit
5,348
/* * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is * regenerated. */ '...
sergey-shandar/autorest
src/generator/AutoRest.NodeJS.Azure.Tests/Expected/AcceptanceTests/AzureParameterGrouping/models/parameterGroupingPostRequiredParameters.js
JavaScript
mit
1,754
/* global assert, process, setup, suite, test, Event */ var entityFactory = require('../helpers').entityFactory; suite('oculus-touch-controls', function () { var el; var component; setup(function (done) { el = this.el = entityFactory(); el.setAttribute('oculus-touch-controls', ''); el.addEventListen...
weddingdj/aframe
tests/components/oculus-touch-controls.test.js
JavaScript
mit
7,095
/** * Copyright (c) Baidu Inc. All rights reserved. * * This source code is licensed under the MIT license. * See LICENSE file in the project root for license information. * * @file San 主文件 */ (function (root) { // 人工调整打包代码顺序,通过注释手工写一些依赖 // // require('./util/guid'); // // require('./util/empty'); /...
extend1994/cdnjs
ajax/libs/san/3.7.2/san.spa.modern.js
JavaScript
mit
308,708
/* module for removing unused fontface rules - can be used both for the standalone node binary and the phantomjs script */ /*jshint unused:false*/ function unusedFontfaceRemover (css){ var toDeleteSections = []; //extract full @font-face rules var fontFaceRegex = /(@font-face[ \s\S]*?\{([\s\S]*?)\})/gm, ff;...
drcdevfest/drcdevfest.github.io
node_modules/grunt-critical/node_modules/critical/node_modules/penthouse/lib/phantomjs/unused-fontface-remover.js
JavaScript
mit
1,979
/* * * * !!!!!!! SOURCE GETS TRANSPILED BY TYPESCRIPT. EDIT TS FILE ONLY. !!!!!!! * * */ 'use strict'; import ControllableMixin from '../Mixins/ControllableMixin.js'; import H from '../../../Core/Globals.js'; import MarkerMixin from '../Mixins/MarkerMixin.js'; import U from '../../../Core/Utilities.js'; var extend...
cdnjs/cdnjs
ajax/libs/highcharts/9.3.3/es-modules/Extensions/Annotations/Controllables/ControllablePath.js
JavaScript
mit
6,118
/** * require and specify consistent use `$scope.digest()` or `$scope.apply()` * * For the execution of the watchers, the $digest method will start from the scope in which we call the method. * This will cause an performance improvement comparing to the $apply method, who start from the $rootScope * * @version 0....
shardulgo/shardulgo.github.io
site/node_modules/eslint-plugin-angular/rules/watchers-execution.js
JavaScript
mit
1,128
"use strict"; var _utils = _interopRequireWildcard(require("./utils")); var _es = require("./es2015"); function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; } function _interopRequireWi...
gusortiz/code_challenges
node_modules/@babel/types/lib/definitions/experimental.js
JavaScript
mit
6,736
/** * Window.js * * Released under LGPL License. * Copyright (c) 1999-2015 Ephox Corp. All rights reserved * * License: http://www.tinymce.com/license * Contributing: http://www.tinymce.com/contributing */ /** * Creates a new window. * * @-x-less Window.less * @class tinymce.ui.Window * @extends tinymce.u...
pixeldrift64/ChipBit
sites/all/libraries/tinymce/js/tinymce/classes/ui/Window.js
JavaScript
gpl-2.0
11,555
$(document).ready(function() { module("Tuio.Point", { setup: function() { }, teardown: function() { } }); test("initialize with position", function() { var point = new Tuio.Point({xp: 10, yp: 20}); equal(point.getX(), 10); equal(point.getY(), 20);...
tableLiris/tableLiris
test/TuioPoint.js
JavaScript
gpl-2.0
1,897
/* YUI 3.7.1 (build 5627) Copyright 2012 Yahoo! Inc. All rights reserved. Licensed under the BSD License. http://yuilibrary.com/license/ */ YUI.add('autocomplete-sources', function (Y, NAME) { /** Mixes support for JSONP and YQL result sources into AutoCompleteBase. @module autocomplete @submodule autocomplete-source...
medbenhenda/migration-ez5
ezpublish_legacy/extension/ezjscore/design/standard/lib/yui/3.7.1/build/autocomplete-sources/autocomplete-sources.js
JavaScript
gpl-2.0
15,696