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 |
|---|---|---|---|---|---|
import BaseController from './base.controller';
import Constants from '../config/constants';
class MetaController extends BaseController {
index(req, res) {
res.json({
version: Constants.version,
});
}
}
export default new MetaController();
| jarstorm/maps-backend | app/controllers/meta.controller.js | JavaScript | mit | 253 |
$context.section('Checkboxes');
$context.section_begin('ext-checkboxes');
$context.section_end('ext-checkboxes');
// создаем провайдера тестовых данных дерева
TreeAjaxProvider = {
url: 'data/tree',
find_all: function(source, query) {
var id = query.id || 0;
return $.ajax(this.url+'/'+id+'.json', {
data: que... | eliace/ergojs-site | scripts/widgets/trees/ext/all.js | JavaScript | mit | 1,192 |
// load highcharts libs
dynamicload('lib/highcharts/highcharts.js', null, null, false);
dynamicload('lib/highcharts/highcharts-3d.js', null, null, false);
dynamicload('lib/highcharts/themes/dark-unica.js', null, null, false);
var widget_highchart3d = {
widgetname: 'highchart3d',
precision: function(a) {var s =... | roman1528/fhem-tablet-ui | www/tablet/js/widget_highchart3d.js | JavaScript | mit | 8,209 |
'use strict';
/**
* Outlook HTML encodes !# as #%21 thus breaking password reset URLs.
*
* Before we do anything, if we see this, redirect the user to the correct location.
*/
var locationHash = window.location.hash.split('/');
if (locationHash[0] === '#%21' && locationHash[1] === 'reset-password' && locationHas... | blinkboxbooks/client-web-app.js | app/scripts/app.js | JavaScript | mit | 10,506 |
'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _index = require('../../../_lib/buildFormatLongFn/index.js');
var _index2 = _interopRequireDefault(_index);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var formatLong = (0, _index2... | lucionei/chamadotecnico | chamadosTecnicosFinal-app/node_modules/date-fns/locale/fr/_lib/formatLong/index.js | JavaScript | mit | 539 |
var Util = module.exports = {};
Util.formatElapsedTime = function(timeMs, includeMs) {
var seconds = timeMs/1000;
return (seconds < 1 && timeMs + 'ms') ||
(seconds > 1 && seconds < 60 && (seconds + 's')) ||
(Math.floor(seconds/60) + 'm' + ' ' + Math.floor(seconds%60) + 's' + (includeMs ? (' / ' + timeMs + ... | michael-maf/nightwatch-CI | lib/util/utils.js | JavaScript | mit | 1,496 |
export default (mongoose) => {
let gracefulExit = function() {
mongoose.connection.close(() => {
console.log(`Mongoose connection ` +
`has disconnected through app termination`);
process.exit(0);
});
};
mongoose.connection.on("connected", (ref) => {
console.log(`Successfully ... | datatypevoid/ng2-mean-webpack | config/mongoose.conf.js | JavaScript | mit | 1,144 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime")... | oliviertassinari/material-ui | packages/mui-icons-material/lib/MediaBluetoothOn.js | JavaScript | mit | 755 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... | PiotrDabkowski/Js2Py | tests/test_cases/language/statements/function/13.1-1-1.js | JavaScript | mit | 669 |
'use strict';
var async = require('async');
var extend = require('node.extend');
var freeport = require('freeport');
var hasbin = require('hasbin');
var phantom = require('node-phantom-simple');
var pkg = require('../package.json');
module.exports = truffler;
module.exports.defaults = {
log: {
debug: /* istanbul i... | nature/truffler | lib/truffler.js | JavaScript | mit | 5,367 |
/*!
* Angular Material Design
* https://github.com/angular/material
* @license MIT
* v0.9.6
*/
(function( window, angular, undefined ){
"use strict";
/**
* @ngdoc module
* @name material.components.bottomSheet
* @description
* BottomSheet
*/
angular.module('material.components.bottomSheet', [
'material.cor... | jinxk/syncAndPick | node_modules/angular-material/modules/js/bottomSheet/bottomSheet.js | JavaScript | mit | 9,128 |
/*!
* Ext JS Library 3.1.1
* Copyright(c) 2006-2010 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
/**
* @class Ext.layout.FormLayout
* @extends Ext.layout.AnchorLayout
* <p>This layout manager is specifically designed for rendering and managing child Components of
* {@link Ext.form.FormPa... | xenophy/xFrameworkPX | bindtransfer/extjs/src/widgets/layout/FormLayout.js | JavaScript | mit | 15,561 |
'use strict';
angular.module('IFTApp.view2', ['ngRoute'])
.config(['$routeProvider', function($routeProvider) {
$routeProvider.when('/view2', {
templateUrl: 'view2/view2.html',
controller: 'View2Ctrl'
});
}])
.controller('View2Ctrl', [function() {
}]);
| floran/ItalyFanTest | app/view2/view2.js | JavaScript | mit | 269 |
// Copyright (c) 2012 Ecma International. All rights reserved.
// Ecma International makes this code available under the terms and conditions set
// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
// "Use Terms"). Any redistribution of this code must retain the above
// copyright and this n... | PiotrDabkowski/Js2Py | tests/test_cases/built-ins/Object/prototype/hasOwnProperty/8.12.1-1_30.js | JavaScript | mit | 698 |
const pwd = AccountsTemplates.removeField('password');
Router.configure({
layoutTemplate: 'layout',
loadingTemplate: 'loading',
notFoundTemplate: 'notFound',
onBeforeAction() {
const body = $('body');
// add class
body.attr('id', 'Ask' + this.route.getName());
// and next
this.next();
... | yasaricli/ask | client/lib/config.js | JavaScript | mit | 1,729 |
var fs = require("fs")
var http = require('http')
var IncrementalDOM = require('../../index.js')
var app = require('./main.js')
/*
Set the desired output then hit a request on localhost:port
*/
var requestListener = function (req, res) {
res.writeHead(200)
// http response
IncrementalDOM.setOutput(false, res, n... | paolocaminiti/incremental-dom-to-string | demo/dbmonster-streaming/server.js | JavaScript | mit | 631 |
clientaddin.controller('MainController', function($scope, $rootScope,$log ,JabraDeviceService){
$scope.$watch(function () {
return JabraDeviceService.isConnected();
}, function (data) {
$scope.isConnected = data;
}, true);
$scope.$watch(function () {
return JabraDeviceService.is... | InteractiveIntelligence/JabraInteractionConnectAddin | src/jabra/js/mainController.js | JavaScript | mit | 797 |
import React from 'react';
import createSvgIcon from './utils/createSvgIcon';
export default createSvgIcon(
<React.Fragment><path fill="none" d="M0 0h24v24H0V0z" /><g><path d="M5 13h14v-2H5v2zm-2 4h14v-2H3v2zM7 7v2h14V7H7z" /></g></React.Fragment>
, 'ClearAllSharp');
| Kagami/material-ui | packages/material-ui-icons/src/ClearAllSharp.js | JavaScript | mit | 271 |
module.exports = function(req, res, next) {
// Hard coded find for conversation - change when authentication is implemented
Conversation.findOne("54c56f10e4b06ac679179453").exec(function(err, conversation) {
Message.create(req.body)
.then(function(message) {
var deferred = Q.defer();
conversat... | stevez86/CloudScript-public | src/routes/post_message.js | JavaScript | mit | 705 |
/*global undelegateListener */
/*
Description:
Relies on `jessie.undelegateListener`
*/
/*
could have simply used detachListener
but this reinforces that this function
expects a delegate listener which was returned
when it was attached
*/
/*
Author:
Adam Silver
*/
var undelegateQueryListener;
if(undelegateListene... | adamsilver/jessie | src/functions/undelegateQueryListener/rendition1.js | JavaScript | mit | 447 |
'use strict';(function(f){typeof define=="function"?define(f):typeof YUI=="function"?YUI.add("es5-sham",f):f()})(function(){function f(a){try{return Object.defineProperty(a,"sentinel",{}),"sentinel"in a}catch(b){}}var e=Function.prototype.call,g=Object.prototype,h=e.bind(g.hasOwnProperty),n,o,j,k,i;if(i=h(g,"__defineGe... | OneMoreCheckin/mobile-app | dependencies/spitfire/master/burnscars/es5.shim.unsafe-min.js | JavaScript | mit | 3,548 |
import React from 'react';
import PropTypes from 'prop-types';
import { findDOMNode } from 'react-dom';
import classNames from 'classnames';
import basicClassCreator from './utils/basicClassCreator';
const propTypes = {
align: PropTypes.oneOf(['left', 'right']),
className: PropTypes.string,
ripple: PropTyp... | react-mdl/react-mdl | src/Menu.js | JavaScript | mit | 1,698 |
'use strict';
module.exports = {
name: require('./package').name,
locals(options) {
return {
name: options.entity.name,
blueprintName: this.name,
blueprintVersion: require('./package').version,
suppliedOption: options.suppliedOption
};
}
};
| kellyselden/ember-cli-update | test/fixtures/blueprint/app/local/v0.0.2/index.js | JavaScript | mit | 281 |
//AccountsTemplates.configureRoute('signIn', {layoutTemplate: 'mainLayout'});
AccountsTemplates.configureRoute('signUp', {layoutTemplate: 'mainLayout'});
AccountsTemplates.configureRoute('ensureSignedIn', {layoutTemplate: 'mainLayout'});
AccountsTemplates.configureRoute('signIn', {
//name: 'signIn',
path: '/si... | cowFipps/team-todo-list | lib/accounts/config.js | JavaScript | mit | 416 |
/**
* Imports
*/
import test from 'tape'
import Explore from '.'
/**
* <Explore/> tests
*/
test('<Explore/> should work', t => {
})
| danleavitt0/artbot | lib/pages/Explore/Explore.test.js | JavaScript | mit | 140 |
class Foo {
static #tag = function () { return this };
static getReceiver() {
return this.#tag``;
}
}
| babel/babel | packages/babel-plugin-proposal-class-properties/test/fixtures/private/tagged-template-static/input.js | JavaScript | mit | 125 |
_TRACE("Segnalazioni.js ------->");
// define default marker style for layers
// --------------------------------------
var MapParam = {
"all" :
{
"smallInfoClipDescription" : "500",
"smallInfoKeepImage" : "true",
"showInfoImmediately" : "true"
},
"default":
{
"thumbnailRoot"... | emergenzeHack/terremotocentro | maptune/Segnalazioni.js | JavaScript | mit | 3,565 |
Mutiny.widgets.jquiDatepicker = {
init: function(instigator, options) {
var $instigator = $(instigator);
$instigator.datepicker(options);
}
};
| fengb/nvst | vendor/assets/bower_components/mutiny/src/jqui/datepicker.js | JavaScript | mit | 155 |
describe('The Lord of the Crossing', function() {
integration(function() {
beforeEach(function() {
const deck = this.buildDeck('baratheon', [
'The Lord of the Crossing',
'A Noble Cause', 'Blood of the Dragon',
'Selyse Baratheon (Core)', 'Bastard in... | DukeTax/throneteki | test/server/cards/02.3-TKP/TheLordOfTheCrossing.spec.js | JavaScript | mit | 9,271 |
var tressa = tressa || require('tressa');
// running for 100% code coverage
var indexOf = Array.prototype.indexOf;
delete Array.prototype.indexOf;
var CircularJSON = CircularJSON || require('../build/circular-json.node.js');
Array.prototype.indexOf = indexOf;
tressa.title('CircularJSON');
(function () {
var specia... | WebReflection/circular-json | test/circular-json.js | JavaScript | mit | 8,091 |
/*
* ScrollToFixed
* https://github.com/bigspotteddog/ScrollToFixed
*
* Copyright (c) 2011 Joseph Cava-Lynch
* Modified tu.phamthanh86@gmail.com
* MIT license
*/
(function($) {
$.isScrollToFixed = function(el) {
return !!$(el).data('ScrollToFixed');
};
$.ScrollToFixed = function(el, options... | tubackkhoa/99sale | themes/admin/js/jquery-scrolltofixed.js | JavaScript | mit | 20,617 |
/*
Welcome to the 60fps project! Your goal is to make Cam's Pizzeria website run
jank-free at 60 frames per second.
There are two major issues in this code that lead to sub-60fps performance. Can
you spot and fix both?
Built into the code, you'll find a few instances of the User Timing API
(window.performance), whic... | patat/patat.github.io | views/js/main.js | JavaScript | mit | 23,926 |
// asignar librerias a variables
var page = require('page')
var empty = require('empty-element')
var template = require('./template')
var title = require('title')
// crear la ruta
page('/signin', function (ctx, next) {
title('Pixelgram - Signin')
var main = document.getElementById('main-container')
... | joelbarron/Pixelgram | pixelgram-frontend/src/signin/index.js | JavaScript | mit | 386 |
// All material copyright ESRI, All Rights Reserved, unless otherwise specified.
// See http://js.arcgis.com/3.17/esri/copyright.txt for details.
//>>built
define("esri/dijit/metadata/nls/fi/i18nBase",{general:{cancel:"Peruuta",close:"Sulje",none:"Ei mit\u00e4\u00e4n",ok:"OK",other:"Muu",stamp:"Leima",now:"Nyt",choose:... | darklilium/Factigis_2 | arcgis_js_api/library/3.17/3.17compact/esri/dijit/metadata/nls/fi/i18nBase.js | JavaScript | mit | 5,644 |
/*
* Droppr - updload images and provide URL
*/
(function() {
var fs = require('fs');
var pathArray = __dirname.split("/");
pathArray.pop();
var basePath = pathArray.join('/');
var key = fs.readFileSync(basePath + '/ssl/key.pem');
var certificate = fs.readFileSync(bas... | sikr/blackhole | js/droppr.js | JavaScript | mit | 2,732 |
var Crossword = Crossword || {};
Crossword.View = Backbone.View.extend({
/**
*
*/
render : function( vars ) {
if ( _.isEmpty( this.options.template ) ) {
throw new Error( 'Template not found' );
}
var content = _.template( $( '#' + this.options.template ).html(), vars );
this.$( this.el... | anyx/MyCE2 | web/js/fc7d5fd_View_14.js | JavaScript | mit | 347 |
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative pat... | maplayers/map_layers_postgis_example_app | app/assets/javascripts/application.js | JavaScript | mit | 758 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2019 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
var GetCenterY = require('../../bounds/GetCenterY');
var GetLeft = require('../../bounds/GetLeft');
var SetCenterY = require('../../bounds/SetCe... | mahill/phaser | src/display/align/in/LeftCenter.js | JavaScript | mit | 1,395 |
;(function() {
var define, requireModule, require, requirejs;
(function() {
var _isArray;
if (!Array.isArray) {
_isArray = function (x) {
return Object.prototype.toString.call(x) === "[object Array]";
};
} else {
_isArray = Array.isArray;
}
var registry = {};
var seen = {};
var FAILE... | toddself/content-kit-editor | website/demo/mobiledoc-dom-renderer.js | JavaScript | mit | 12,751 |
import { displayElapsed } from '../../helpers/dateTime'
const noDurationString = displayElapsed(0)
export const displayTaskDuration = task => {
if (task.startedAt) {
return displayElapsed(task.elapsed)
} else {
return noDurationString
}
}
export const isRunning = task => {
return task.startedAt && !t... | yusufsafak/cerebral | packages/demos/demo/src/modules/tasks/helpers.js | JavaScript | mit | 334 |
// ----------------------------------------------------------------------------
// Buzz, a Javascript HTML5 Audio library
// Licensed under the MIT license.
// http://buzz.jaysalvat.com/
// ----------------------------------------------------------------------------
// Copyright (C) 2013 Jay Salvat
// http://jaysalvat.... | marielb/leapleaprevolution | components/buzz/src/buzz.js | JavaScript | mit | 25,297 |
"use strict";
var A = "a";
var o = {
A // comment
: A };
| ryankanno/babel | packages/babel/test/fixtures/transformation/es6.properties.shorthand/shorthand-comments/expected.js | JavaScript | mit | 62 |
(function () {
'use strict';
// Notes Collection
// ----------------
App.Collections.Notes = Backbone.Collection.extend({
model: App.Models.Note,
url: "/api/notes"
});
}());
| cabbiepete/backbone-testing | notes-rest/app/js/app-rest/collections/notes.js | JavaScript | mit | 196 |
const { ModuleFederationPlugin } = require("../../../../").container;
/** @type {import("../../../../").Configuration} */
module.exports = {
optimization: {
chunkIds: "named",
moduleIds: "named"
},
plugins: [
new ModuleFederationPlugin({
name: "container-with-shared",
library: { type: "commonjs-module" ... | SimenB/webpack | test/configCases/container/0-transitive-overriding/webpack.config.js | JavaScript | mit | 579 |
'use strict'
var graphqlParser = require('graphql-parser').default
// workaround for https://github.com/ooflorent/graphql-parser/issues/5
// defers query compilation until when executed with params
module.exports = function graphql(string, ...values) {
return {
compile: function() {
return graphqlParser(s... | killix/turbine | lib/graphql.js | JavaScript | mit | 347 |
/**
* Visual Blocks Language
*
* Copyright 2012 Google Inc.
* https://github.com/google/blockly
*
* 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/... | robokoding/sumorobot-android | www/js/blockly/msg/js/en_us.js | JavaScript | mit | 28,437 |
version https://git-lfs.github.com/spec/v1
oid sha256:59d206b2de48a5fd942f220b05b3a7f67688ed690e173049953eb1a4cd3fd630
size 846
| yogeshsaroya/new-cdnjs | ajax/libs/mathjax/2.5.1/localization/lb/FontWarnings.js | JavaScript | mit | 128 |
var schema = function(){
return {
getData:function(){
d3.csv('CalD3/data/data.csv',function(d,e){
vis.generate(d);
});
},
generate:function(csvData){
//color function: takes value of data, returns class string
var color = d3.scale.quantize()
//change if % is bigger or lower
.domai... | susannalles/susannalles.github.io | _talks/Brown-colloquium/CalD3/js/vis.js | JavaScript | mit | 1,697 |
require('dat-doctor')({
id: '2edfaf31ff5635d86294af596bda0892f990e79eb92a0c1924ee9f01933ceedb'
})
| greggraf/sciencefair | scripts/doctor.js | JavaScript | mit | 100 |
import { root } from "../global/Variable";
root.requestNextAnimationFrame = (function () {
var originalRequestAnimationFrame = undefined, wrapper = undefined, callback = undefined, geckoVersion = null, userAgent = root.navigator && root.navigator.userAgent, index = 0, self = this;
wrapper = function (time) {
... | yyc-git/DYReactive | dist/es2015/extend/root.js | JavaScript | mit | 2,249 |
// Copyright (c) 2015 Uber Technologies, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge... | 3rd-Eden/jetstream | lib/query/push_query_operation.js | JavaScript | mit | 9,140 |
'use strict'
// load related modules
module.exports = function (options) {
var seneca = this
var name = 'concorda-logs-api'
function init (args, done) {
seneca.act({
role: 'web', use: {
name: 'concorda',
prefix: '/api/v1/admin',
pin: {role: 'concorda', cmd: '*'},
map: ... | Concorda/concorda-server | lib/logging.js | JavaScript | mit | 498 |
const downsize = require('downsize');
const Promise = require('bluebird');
const cheerio = require('cheerio');
const RSS = require('rss');
const urlUtils = require('../../../shared/url-utils');
const urlService = require('../url');
const generateTags = function generateTags(data) {
if (data.tags) {
return ... | janvt/Ghost | core/frontend/services/rss/generate-feed.js | JavaScript | mit | 3,075 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* Returns a string containing a hex representation of the given color component.
*
* @function Phaser.Display.Color.ComponentToHex
* @si... | photonstorm/phaser | src/display/color/ComponentToHex.js | JavaScript | mit | 685 |
module.exports = 'Local dep'; | anthonyshort/grunt-component-build | test/fixtures/dep/index.js | JavaScript | mit | 29 |
import { moduleForComponent, test } from 'ember-qunit';
import hbs from 'htmlbars-inline-precompile';
moduleForComponent('d3-arc', 'Integration | Component | d3 arc', {
integration: true
});
test('it renders', function(assert) {
// Set any properties with this.set('myProperty', 'value');
// Handle any actions w... | BryanHunt/ember-d3-components | tests/integration/components/d3-arc-test.js | JavaScript | mit | 627 |
'use strict';
var _ = require('lodash');
var glimpse = require('glimpse');
var requestStore = require('./request-store-manage');
var requestConverter = require('./converter/request-converter');
var processMessages = (function() {
return function(messagePayload) {
var requestStoreData = requestStore.data;... | Glimpse/Glimpse.Client.Prototype | src/request/repository/request-repository-message.js | JavaScript | mit | 3,214 |
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
import _extends from "@babel/runtime/helpers/esm/extends";
import * as React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import { deepmerge } from '@material-ui/utils';
import { unstable_c... | cdnjs/cdnjs | ajax/libs/material-ui/5.0.0-alpha.31/modern/Dialog/Dialog.js | JavaScript | mit | 12,209 |
/*!
* jQuery JavaScript Library v1.7.2
* http://jquery.com/
*
* Copyright 2011, John Resig
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* Includes Sizzle.js
* http://sizzlejs.com/
* Copyright 2011, The Dojo Foundation
* Released under the MIT, BSD, and GPL Licenses.
... | mikeusry/palmetto | LASIK/advagg_js/js__vQH4xvaRRSI6LaNXk4_Xj-ZlYFFCcNEUTuUTNjrC9-0__j7ilaysgwjVGMCq7J_tHF540ujTNoofTGJY-3Ul3B3M__f87EqBUvTXEvjkncqMkj5xIZ6nPMQzVQhJdgieC7TpU.js | JavaScript | gpl-2.0 | 341,864 |
/* global Set */
/* jshint globalstrict: true */
"use strict";
var q = require("q");
var DELAY = 200;
// Manges a queue of pending animates so that, if many
// are requested, not all of them run at once. An example
// of a situation where many animations would be requested
// at once is at the beginning of the game ... | ryb73/dealers-choice-front-end | src/components/dc-game-canvas/animation-throttler.js | JavaScript | gpl-2.0 | 1,032 |
/*
* 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 ... | ksjogo/TYPO3.CMS | typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/app.js | JavaScript | gpl-2.0 | 9,772 |
/**
* Created by xiaodi001 on 2015/7/9.
* 这是一个新代码
*/
require.config({
shim: {
'zepto-scroll': {
deps: ['../js/zepto']
},
'SimpleSlideView': {
deps: ['../js/zepto', '../js/zepto.scroll']
}
}
});
require(['../js/zepto', '../js/zepto.scroll', '../js/simple... | raclen/jsCode | zeptoView/dome/main.js | JavaScript | gpl-2.0 | 416 |
/*global console,ajaxurl,$,jQuery*/
/**
* Mega Menu jQuery Plugin
*/
(function ($) {
"use strict";
$.fn.megaMenu = function (options) {
var panel = $("<div />");
panel.settings = options;
panel.log = function (message) {
if (window.console && console.log) {
... | thazinthein/universal | wp-content/plugins/megamenu/js/admin.js | JavaScript | gpl-2.0 | 18,644 |
(function (window, angular, console) {
'use strict';
angular.module('myApp.controllers').controller('database-emailtemplate', ['$scope', '$rootScope', '$http', '$stateParams', 'md5',
function ($scope, $rootScope, $http, $stateParams, md5) {
}]);
}(this, this.angular, th... | runetvilum/maproller-api | src/www/database/emailtemplate/emailtemplate-controllers.js | JavaScript | gpl-2.0 | 333 |
'use strict';
describe('nrgiProjectsSrvc', function () {
var projectServiceInstance, $httpBackend;
beforeEach(module('app'));
beforeEach(inject(function(nrgiProjectsSrvc, _$httpBackend_) {
$httpBackend = _$httpBackend_;
projectServiceInstance = new nrgiProjectsSrvc();
}));
it('re... | NRGI/resourceprojects.org | tests/unit/services/nrgiProjectsSrvc.spec.js | JavaScript | gpl-2.0 | 1,178 |
include("script/campaign/libcampaign.js");
include("script/campaign/templates.js");
var NPDefenseGroup; // no particular orders, just stay near factories
function sendRocketForce()
{
camManageGroup(camMakeGroup("RocketForce"), CAM_ORDER_ATTACK, {
regroup: true,
count: -1,
});
}
function sendTankScoutForce()
{... | omgbebebe/warzone2100 | data/base/script/campaign/cam1c.js | JavaScript | gpl-2.0 | 8,443 |
// Add Jasmine matcher to verify object type.
// Usage example:
// expect(new RangeError("something")).toBeInstanceOf(Error);
//
// Code from: https://gist.github.com/heat/3625555
beforeEach(function() {
this.addMatchers({
toBeInstanceOf: function(expectedInstance) {
var actual = this.actual;
... | rikkertkoppes/fllscoring | spec/helpers/beInstanceOfMatcher.js | JavaScript | gpl-2.0 | 916 |
///////////////////////////////////////////////////////////////////////////
// Copyright © 2014 Esri. 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://w... | johnaagudelo/ofertaquequieres | visor-oferta/widgets/TimeSlider/setting/Setting.js | JavaScript | gpl-2.0 | 1,874 |
CKEDITOR.plugins.setLang( 'tags', 'en', {
dlgTitle: 'Tags',
customTags: 'Custom Tags (Space separated list of key words; spaces in key words should be replaced by underscores. ) :'
} );
| claudehohl/dokuwiki-kickstart | lib/plugins/ckgedit/ckeditor/plugins/tags/lang/en.js | JavaScript | gpl-2.0 | 211 |
/*
scp.js
osTicket SCP
Copyright (c) osTicket.com
*/
function checkbox_checker(formObj, min, max) {
var max = max || 0;
var min = min || 1;
var checked=$('input:checkbox:checked', formObj).length;
var action= action?action:"process";
if (max>0 && checked > max ){
msg=__("You're... | Chefkeks/osTicket-1.8 | scp/js/scp.js | JavaScript | gpl-2.0 | 40,623 |
jQuery(document).ready(function(){jQuery("#podcast_settings #content-filter-select").change(function(){var e=jQuery(this).val();"series"==e?(jQuery("#by-series-selection").removeClass("hidden"),jQuery("#by-episode-selection").addClass("hidden")):"episode"==e?(jQuery("#by-episode-selection").removeClass("hidden"),jQuery... | hlashbrooke/SSP-Stats | assets/js/admin.min.js | JavaScript | gpl-2.0 | 724 |
/**
* Created by arnegockeln on 13.10.15.
*/
/**
* Modal Handler
*/
function modalDialog(title, content, buttons){
var modal = $('#modalHelp');
modal.find('.modal-title').html(title);
modal.find('.modal-body').html(content);
// replay buttons only if buttons are given!
if(buttons != undefined) {... | webchef/webarbyte | templates/js/core.js | JavaScript | gpl-2.0 | 4,233 |
/* $Id: js_upd.js,v 7.00 2015/04/20 22:05:13 mr Exp $ */
function oKP1(event)
{
var key = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
var charKey = String.fromCharCode(key).toUpperCase();
var r = /[MFN]/; /* lettres choisies */
var t = r.test(charKey);
if (t == tr... | Kakadu/geneweb | hd/etc/templm/js_upd.js | JavaScript | gpl-2.0 | 56,189 |
/*
Supersized - Fullscreen Slideshow jQuery Plugin
Version : 3.2.7
Theme : Shutter 1.1
Site : www.buildinternet.com/project/supersized
Author : Sam Dunn
Company : One Mighty Roar (www.onemightyroar.com)
License : MIT License / GPL License
*/
(function($){
theme = {
/* Initial Placement
----... | frentedeesquerdace2014/xr3 | wp-content/themes/Axis/js/supersized.shutter.js | JavaScript | gpl-2.0 | 12,595 |
module.exports = function(grunt) {
var hljs = require('highlight.js');
hljs.LANGUAGES['scss'] = require('./lib/scss.js')(hljs);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
vendor: grunt.file.readJSON('.bowerrc').directory,
foundation: {
js: ['js/foundation/foundation.js', 'js/... | lexislav/amok-pe2014 | htdocs/components/foundation/Gruntfile.js | JavaScript | gpl-2.0 | 7,755 |
#!/usr/bin/env node
var Q, cli, configJsonPath, configPath, download, findAndDownload, fs, getList, homePath, isInt, path, progress, request, saveList, showList, task;
Q = require('q');
fs = require("fs");
cli = require("cli").enable("version", "help", "status");
path = require("path");
task = require(path.resolve... | nsdown/lixian-cli | bin/lixian-cli.js | JavaScript | gpl-3.0 | 9,215 |
paella.addPlugin(function() {
return class ViewModePlugin extends paella.ButtonPlugin {
getAlignment() { return 'right'; }
getSubclass() { return "showViewModeButton"; }
getIconClass() { return 'icon-presentation-mode'; }
getIndex() { return 540; }
getName() { return "es.upv.paella.viewModePlugin"; }
/... | leosamu/paella | plugins/es.upv.paella.viewModePlugin/viewmode.js | JavaScript | gpl-3.0 | 3,568 |
'use strict';
const opts = require('./option-manager').options;
const randomInt = function (min, max) {
return Math.round(min + (Math.random() * (max - min)));
};
const stripCharsFromString = function (string, chars) {
return string.split('').filter(char => chars.indexOf(char) === -1);
};
exports.int = randomInt;
... | arabdigitalexpression/dawasawa | captcha_server/node_modules/svg-captcha/lib/random.js | JavaScript | gpl-3.0 | 3,108 |
"use strict";
const League = require('./League.js')
const LeagueTable = require('./LeagueTable.js')
const fotballUri = 'http://api.football-data.org/v1/soccerseasons/'
const httpGetAsJson = require('./../httpGetAsJson.js');
function FootballService(httpGetAsJson) {
this.getLeagueTable = function(id, cb)... | isel-leic-pi/1617i-LI51d | aula33-web-app-football-connect-controller/model/footballService.js | JavaScript | gpl-3.0 | 1,136 |
'use strict';
const fs = require('fs');
const path = require('path');
const Sequelize = require('sequelize');
const basename = path.basename(module.filename);
const env = process.env.NODE_ENV || 'development';
const config = require(__dirname + '/../config/config.json')[env];
const db = {};
let sequelize;
const Op = ... | Ethbet/ethbet | backend-relay/models/index.js | JavaScript | gpl-3.0 | 1,040 |
'use strict';
export default function($stateProvider) {
'ngInject';
$stateProvider
.state('about', {
url: '/about',
template: '<about></about>'
});
}
| sergiomgaspar/smg-pinterest | client/app/about/about.routes.js | JavaScript | gpl-3.0 | 175 |
/************************************************************************
* This file is part of EspoCRM.
*
* EspoCRM - Open Source CRM application.
* Copyright (C) 2014-2015 Yuri Kuznetsov, Taras Machyshyn, Oleksiy Avramenko
* Website: http://www.espocrm.com
*
* EspoCRM is free software: you can redistribute it... | catataw/espocrm | frontend/client/src/views/email/list.js | JavaScript | gpl-3.0 | 1,909 |
Ext.define('MoMo.admin.model.Extent', {
extend: 'MoMo.admin.model.Base',
proxy: {
type: 'rest',
url: BasiGX.util.Url.getWebProjectBaseUrl() + 'rest/extents',
headers: BasiGX.util.CSRF.getHeader()
},
fields: [{
name: 'lowerLeft',
type: 'auto'
}, {
nam... | KaiVolland/momo3-admin | app/model/Extent.js | JavaScript | gpl-3.0 | 369 |
var FbLike=new Class({Extends:FbElement,initialize:function(b,a){this.plugin="fblike";this.parent(b,a);FB.Event.subscribe("edge.create",function(c){this.like("+")}.bind(this));FB.Event.subscribe("edge.remove",function(c){this.like("-")}.bind(this))},like:function(a){var b={option:"com_fabrik",format:"raw",task:"plugin.... | cheesegrits/fabrik | plugins/fabrik_element/fblike/fblike-min.js | JavaScript | gpl-3.0 | 630 |
/*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang( 'quicktable', 'it', {
more: 'Altri...'
} );
| johnforeland/Codename-JAK | public/ckeditor/plugins/quicktable/lang/it.js | JavaScript | gpl-3.0 | 214 |
/*
* Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3 as published by
* the Free Software Foundation.
*
* This program is distributed in the hope tha... | rart/studio-ui | ui/uppy/src/plugins/XHRUpload.js | JavaScript | gpl-3.0 | 6,012 |
/*
Copyright (C) 2016 PencilBlue, LLC
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... | v3rt1go/respiro | include/service/entities/template_service.js | JavaScript | gpl-3.0 | 35,874 |
/*
* This file is part of rasdaman community.
*
* Rasdaman community is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
*... | miracee/rasdaman | applications/raswct/test/AreaDiagram.js | JavaScript | gpl-3.0 | 1,568 |
(function(e){e.idleTimer=function t(n){var r=false,i=true,s=3e4,o="mousemove keydown DOMMouseScroll mousewheel mousedown",u=function(){r=!r;t.olddate=+(new Date);e(document).trigger(e.data(document,"idleTimer",r?"idle":"active")+".idleTimer")},a=function(){i=false;clearTimeout(e.idleTimer.tId);e(document).unbind(".idle... | waansolutions/jq-dialpad | vendor/js/jquery.idletimer.min.js | JavaScript | gpl-3.0 | 726 |
DAMAGE_DICE = [
"1",
"1d4",
"1d6",
"1d8",
"1d10",
"1d12",
"2d6",
];
| englishkiwi/dc-test-1 | lib/constants/damageDice.js | JavaScript | gpl-3.0 | 75 |
module.exports = class {
constructor( page ) {
this.page = page;
}
async waitForToast( text ) {
await this.page.waitForSelector( `#elementor-toast >> :text("${ text }")`, { timeout: 4000 } );
}
};
| pojome/elementor | tests/playwright/sanity/assets/js/editor/utils/notifications/helpers.js | JavaScript | gpl-3.0 | 206 |
// @flow
import React, { Component } from 'react'
import styles from './EditProfile.css'
import Button from 'material-ui/Button'
import { FormLabel } from 'material-ui/Form'
import AvatarEditor from 'components/common/AvatarEditor'
import { renderTextField } from 'utils/forms'
import { Field, reduxForm } from 'redux-fo... | MichaelMure/TotallyNotArbore | app/components/profile/EditProfile.js | JavaScript | gpl-3.0 | 2,921 |
'use strict';
const test = require('mapbox-gl-js-test').test;
const GeoJSONWorkerSource = require('../../../src/source/geojson_worker_source');
const StyleLayerIndex = require('../../../src/style/style_layer_index');
test('removeSource', (t) => {
t.test('removes the source from _geoJSONIndexes', (t) => {
... | terraframe/geodashboard | geoprism-web/src/main/webapp/3rd-party/mapbox/mapboxgl/mapbox-gl-js-0.34.0/test/unit/source/geojson_worker_source.test.js | JavaScript | gpl-3.0 | 1,529 |
/*
* File: app/controller/RegisterController.js
*
* This file was generated by Sencha Architect version 3.1.0.
* http://www.sencha.com/products/architect/
*
* This file requires use of the Sencha Touch 2.4.x library, under independent license.
* License of Sencha Architect does not include license for Sencha Tou... | LuZhiquan/Coffeeshop | app/controller/RegisterController.js | JavaScript | gpl-3.0 | 2,931 |
// /**
// * React Starter Kit (https://www.reactstarterkit.com/)
// *
// * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
// *
// * This source code is licensed under the MIT license found in the
// * LICENSE.txt file in the root directory of this source tree.
// */
//
// import {
// GraphQLObjectTy... | InvestNinja/InvestNinja-web-ui | investninja-web-ui-admin/src/data/types/UserType.js | JavaScript | gpl-3.0 | 642 |
'use strict';
angular.module('risevision.common.components.logging')
.value('USER_EVENTS_TO_BQ', [])
.factory('userTracker', ['userState', 'analyticsFactory',
'bigQueryLogging', 'USER_EVENTS_TO_BQ',
function (userState, analyticsFactory, bigQueryLogging,
USER_EVENTS_TO_BQ) {
return function (ev... | Rise-Vision/rise-vision-app-launcher | web/scripts/components/logging/svc-user-tracker.js | JavaScript | gpl-3.0 | 793 |
/* 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/.
*/
if (Qb===undefined) var Qb = {};
Qb.column = {};
Qb.column.compile = function(resultColumn, sourceColumns, edge... | klahnakoski/Qb | html/modevlib/qb/Qb.column.js | JavaScript | mpl-2.0 | 5,340 |
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var openlayers_1 = require("openlayers");
var map_component_1 = require("../map.component");
var ControlZoomSliderComponent = (function () {
function ControlZoomSliderComponent(map) {
this.map... | quentin-ol/ngx-openlayers | dist/components/controls/zoomslider.component.js | JavaScript | mpl-2.0 | 1,283 |
/*
OrpheusMS: MapleStory Private Server based on OdinMS
Copyright (C) 2012 Aaron Weiss <aaron@deviant-core.net>
Patrick Huy <patrick.huy@frz.cc>
Matthias Butz <matze@odinms.de>
Jan Christian Meyer <vimes@odinms.de>
This program is free software: you can redistribute it and/or modify
... | aatxe/Orpheus | scripts/map/onUserEnter/go50000.js | JavaScript | agpl-3.0 | 1,013 |
//////////////////////////////////////////////////////////////////////////
// //
// This is a generated file. You can view the original //
// source in your browser if your browser supports source maps. //
// Source maps are s... | clinical-meteor/meteor-on-fhir | cordova-build-release/www/application/packages/mousetrap_mousetrap.js | JavaScript | agpl-3.0 | 115,777 |