code stringlengths 2 1.05M | repo_name stringlengths 5 114 | path stringlengths 4 991 | language stringclasses 1
value | license stringclasses 15
values | size int32 2 1.05M |
|---|---|---|---|---|---|
'use strict';
// eslint-disable-next-line node/no-extraneous-require
const { combineReducers, createStore } = require('redux');
const reducers = {
'content-manager_app': jest.fn(() => ({
components: [],
status: 'loading',
models: [],
collectionTypeLinks: [],
singleTypeLinks: [],
})),
'conten... | wistityhq/strapi | packages/admin-test-utils/lib/fixtures/store/index.js | JavaScript | mit | 1,087 |
(function(name,definition){if(typeof define==="function")define(definition);else if(typeof module!=="undefined"&&module.exports)module.exports=definition();else{var theModule=definition(),global=this,old=global[name];theModule.noConflict=function(){global[name]=old;return theModule};global[name]=theModule}})("colz",fun... | threebagsfull/colz | public/js/colz.class.min.js | JavaScript | mit | 7,079 |
export function ajax({ type, route, body }) {
return new Promise((resolve, reject) => {
const request = new XMLHttpRequest();
request.open(type, route, true);
if (type === 'POST' || type === 'PUT' && body) {
request.setRequestHeader('Content-Type', 'application/json;charset=UTF-8');
request.se... | jbelmont/continuous-integration-with-jenkins-travis-and-circleci | static/js/utils/ajax.js | JavaScript | mit | 824 |
bespoke.from('article', <%= pluginsJson %>); | pimterry/generator-bespoke | app/templates/src/scripts/main.js | JavaScript | mit | 44 |
/**
* @author aleeper / http://adamleeper.com/
* @author mrdoob / http://mrdoob.com/
* @author gero3 / https://github.com/gero3
*
* Description: A THREE loader for STL ASCII files, as created by Solidworks and other CAD programs.
*
* Supports both binary and ASCII encoded files, with automatic detection of type.... | 0merta/three.js | examples/js/loaders/STLLoader.js | JavaScript | mit | 11,206 |
import React from 'react';
import Input from '../Input';
import Flatpickr from 'react-flatpickr';
import GMaps from '../GMaps';
import './taskAddress.css';
import moment from 'moment';
export default class TaskAddress extends React.Component { //eslint-disable-line
constructor(props) {
super(props);
this.nam... | theterra/newsb | app/components/AddTask/TaskAddress/index.js | JavaScript | mit | 2,876 |
import ListGroupItem from 'react-bootstrap/lib/ListGroupItem';
export default ListGroupItem;
| jeffthemaximum/jeffline | templates/rubix/rubix-bootstrap/src/ListGroupItem.js | JavaScript | mit | 94 |
const fs = require('fs');
const { version } = require('../package.json');
const sourcePath = __dirname + '/../src/jquery.rss.js';
const lines = fs.readFileSync(sourcePath).toString().split('\n');
const updatedLines = lines.map((line) => {
if (!line.includes('// Synced version')) {
return line;
}
r... | sdepold/jquery-rss | utils/sync-version.js | JavaScript | mit | 438 |
"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/ChairAltSharp.js | JavaScript | mit | 559 |
/* eslint-env node, jasmine, mocha */
import {
configure
// render,
} from 'enzyme';
import Adapter from 'enzyme-adapter-react-16';
import { expect } from 'chai';
// Utils
import {
mountHGComponent,
removeHGComponent,
waitForTilesLoaded
} from '../app/scripts/utils';
import { emptyConf } from './view-conf... | hms-dbmi/4DN_matrix-viewer | test/ViewManipulationTests.js | JavaScript | mit | 7,542 |
import{InjectionToken}from"@angular/core";const ANGULARTICS2_TOKEN=new InjectionToken("ANGULARTICS2");export{ANGULARTICS2_TOKEN}; | cdnjs/cdnjs | ajax/libs/angulartics2/11.0.0/esm2015/angulartics2-token.min.js | JavaScript | mit | 129 |
import io from 'socket.io/socket.io.js';
var socket = io.connect();
function addClient(user) {
socket.emit('new-client', user, function(data){
console.log(data);
});
}
function joinRoom(user, group) {
/* console.log(user + 'joined to crowd!!');
console.log(group);*/
socket.emit('join-room',{... | Team-Paradise/Javascript-Applications-Teamwork | public/scripts/controllers/chatDataManager.js | JavaScript | mit | 846 |
export * from 'pageflow/testHelpers';
export * from './fakeEventEmitter';
| tf/pageflow | entry_types/paged/packages/pageflow-paged/spec/support/index.js | JavaScript | mit | 75 |
!function(global, $) {
'use strict';
function ConcreteUserSelector($element, options) {
'use strict';
var my = this,
options = $.extend({
'chooseText': ccmi18n.chooseUser,
'loadingText': ccmi18n.loadingText,
'inputName': 'uID',
... | acliss19xx/concrete5 | concrete/js/build/core/user/selector.js | JavaScript | mit | 3,869 |
/* eslint-env node */
'use strict';
var fs = require('fs');
var path = require('path');
// Semantic actions for the `mentionsThis` attribute, which returns true for a node
// if the `this` keyword appears anywhere in the node's subtree, and otherwise false.
var mentionsThisActions = {
this: function(_) { return tr... | coopsource/ohm | examples/ecmascript/es6.js | JavaScript | mit | 1,335 |
var cf = {};
cf.re = /#([A-Za-z0-9_\s\']+)#/g;
cf.keywords = {};
cf.getKeywords = function (url, re) {
var match = {}, keywords = [];
while (match = re.exec(url)) {
keywords.push(match[1]);
}
return keywords;
};
var disable_btn = function (id) {
var selector = $('#' + id);
selector.att... | brian3t/sayygo | f/web/js/sayygo_create_form.js | JavaScript | mit | 1,841 |
export default (objectA, objectB) => {
if (objectA.name > objectB.name) {
return 1;
}
if (objectA.name < objectB.name) {
return -1;
}
return 0;
};
| giuband/dunya-frontend | src/utils/sortByName.js | JavaScript | mit | 165 |
/**
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2022 Photon Storm Ltd.
* @license {@link https://opensource.org/licenses/MIT|MIT License}
*/
/**
* The Camera Fade Out Start Event.
*
* This event is dispatched by a Camera instance when the Fade Out Effect starts.
*
* Listen to i... | photonstorm/phaser | src/cameras/2d/events/FADE_OUT_START_EVENT.js | JavaScript | mit | 924 |
var gridOptions = {
columnDefs: [
{ field: 'athlete', minWidth: 200 },
{ field: 'age' },
{ field: 'country', minWidth: 200 },
{ field: 'year' },
{ field: 'date', minWidth: 180 },
{ field: 'sport', minWidth: 200 },
{ field: 'gold' },
{ field: 'silver' }... | ceolter/angular-grid | grid-packages/ag-grid-docs/documentation/src/pages/context-menu/examples/context-menu/main.js | JavaScript | mit | 5,384 |
import { e as error, E as EnhanceCtx, T as TurnOrder, S as SetActivePlayers, i as info, a as Stage, F as FnWrap, I as InitTurnOrderState, U as UpdateTurnOrderState, b as UpdateActivePlayersOnceEmpty, g as gameEvent, c as STRIP_TRANSIENTS, G as GAME_EVENT, d as Enhance, M as MAKE_MOVE, f as INVALID_MOVE, N as NoClient, ... | cdnjs/cdnjs | ajax/libs/boardgame-io/0.47.0/esm/reducer-ad5fe719.js | JavaScript | mit | 44,597 |
/**
* @author Chris Campbell <iforce2d@gmail.com>
* @author Richard Davey <rich@photonstorm.com>
* @copyright 2015 Photon Storm Ltd.
* @license {@link http://choosealicense.com/licenses/no-license/|No License}
*
* @description This example requires the Phaser Box2D Plugin to run.
* F... | boniatillo-com/PhaserEditor | source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/box2d/pinball.js | JavaScript | epl-1.0 | 6,602 |
var game = new Phaser.Game(800, 600, Phaser.CANVAS, 'phaser-example', { preload: preload, create: create, render: render });
function preload() {
game.load.spritesheet('veg', 'assets/sprites/fruitnveg32wh37.png', 32, 32);
}
var veg;
function create() {
// Create a group
veg = game.add.group();
... | boniatillo-com/PhaserEditor | source/phasereditor/phasereditor.resources.phaser.examples/phaser-examples-master/examples/groups/create if null.js | JavaScript | epl-1.0 | 1,141 |
/***************************************************************************
* Copyright (C) 2012-2013 by Eike Hein <hein@kde.org> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | falbrechtskirchinger/kde-workspace | plasma/desktop/applets/taskmanager/package/contents/code/tools.js | JavaScript | gpl-2.0 | 3,440 |
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var resolvePathname = _interopDefault(require('resolve-pathname'));
var valueEqual = _interopDefault(require('value-equal'));... | MAN-IN-WAN/Kob-Eye | Skins/VetoccitanT3/ReactSrc/node_modules/history/cjs/history.js | JavaScript | gpl-2.0 | 28,696 |
{
"3th": "第三方登录",
"aboutLeanote": "关于leanote",
"aboutMe": "关于我",
"accountSetting": "帐户设置",
"addChildNotebook": "添加子笔记本",
"addNotebook": "添加笔记本",
"addShare": "添加分享",
"all": "最新",
"app": "leanote",
"attachments ": " 附件",
"basicInfo": "基本信息",
"blog": "博客",
"blogInfo": "将... | LiJingBiao/desktop-app | public/langs/zh-cn.js | JavaScript | gpl-2.0 | 10,457 |
/*
* DokuWiki Bootstrap3 Template: Plugins Hacks!
*
* Home http://dokuwiki.org/template:bootstrap3
* Author Giuseppe Di Terlizzi <giuseppe.diterlizzi@gmail.com>
* License GPL 2 (http://www.gnu.org/licenses/gpl.html)
*/
// Monthcal Plugin
var $monthcal = jQuery('table.monthcal');
if ($monthcal.length) {
... | opennic/wikipages | lib/tpl/bootstrap3/js/plugins/monthcal.js | JavaScript | gpl-2.0 | 355 |
!function(){
var module = angular.module('flacky.block_properties',[]);
module.directive('flackyBlockProperties',function(){
return {
restrict:'E',
replace:true,
templateUrl:'/src/app/block_properties/block_properties.html',
link: function linkingFunction($scope, $element, $attributes){
... | kreopt/flacky | src/app/block_properties/block_properties.js | JavaScript | gpl-2.0 | 345 |
/*
* debouncedresize: special jQuery event that happens once after a window resize
*
* latest version and complete README available on Github:
* https://github.com/louisremi/jquery-smartresize/blob/master/jquery.debouncedresize.js
*
* Copyright 2011 @louis_remi
* Licensed under the MIT license.
*/
var $event = $.event,... | cxzar/alpha.haterz.org | templates/newsguild/js/grid/grid.js | JavaScript | gpl-2.0 | 13,713 |
tinyMCE.addI18n('sy.searchreplace_dlg',{findwhat:"Find What",replacewith:"Replace with",direction:"Direction",up:"Up",down:"Down",mcase:"Match Case",findnext:"Find Next",allreplaced:"All occurrences of the search string were replaced.","searchnext_desc":"Find Again",notfound:"The search has been completed. The search s... | lorea/Elgg | mod/tinymce/vendor/tinymce/jscripts/tinymce_language_pack/plugins/searchreplace/langs/sy_dlg.js | JavaScript | gpl-2.0 | 445 |
var searchData=
[
['mesh',['Mesh',['../class_mesh.html',1,'']]]
];
| sephirot47/Cheezy | docs/search/classes_2.js | JavaScript | gpl-2.0 | 69 |
/* --------------------------------------------------------------
emails_modal.js 2015-10-15 gm
Gambio GmbH
http://www.gambio.de
Copyright (c) 2015 Gambio GmbH
Released under the GNU General Public License (Version 2)
[http://www.gnu.org/licenses/gpl-2.0.html]
----------------------------------------------------... | carlosway89/testshop | admin/javascript/engine/controllers/emails/emails_modal.js | JavaScript | gpl-2.0 | 9,914 |
/**
* 显示请求等待进度条窗口
*
* @param {}
* msg
*/
function showWaitMsg(msg) {
Ext.MessageBox.show({
title : '系统提示',
msg : msg == null ? '正在处理数据,请稍候...' : msg,
progressText : 'processing now,please wait...',
width : 300,
wait : true,
waitConfig : {
interval : 150
... | jreadstone/zsyproject | WebRoot/resource/commonjs/g4studio.js | JavaScript | gpl-2.0 | 10,618 |
/*
* (C) Copyright ${year} Nuxeo SA (http://nuxeo.com/) and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org/... | zhangzuoqiang/GoodHuddle | src/main/resources/static/admin/lib/angular-1.2.22/i18n/angular-locale_en-hk.js | JavaScript | gpl-2.0 | 2,519 |
function utf8_decode(str_data){
var tmp_arr=[],i=0,ac=0,c1=0,c2=0,c3=0;
str_data+='';
while(i<str_data.length){
c1=str_data.charCodeAt(i);
if(c1<128){
tmp_arr[ac++]=String.fromCharCode(c1);
i++;
}else if((c1>191)&&(c1<224)){
c2=str_data.charCodeAt... | pragres/recipescookbook.org | www/resources/ramifip/lib/3rdParty/phpjs/php_xml.js | JavaScript | gpl-2.0 | 1,498 |
/*
YUI 3.7.1 (build 5627)
Copyright 2012 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
YUI.add("anim-color",function(e,t){var n=Number;e.Anim.getUpdatedColorValue=function(t,r,i,s,o){return t=e.Color.re_RGB.exec(e.Color.toRGB(t)),r=e.Color.re_RGB.exec(e.Color.toRGB(r... | medbenhenda/migration-ez5 | ezpublish_legacy/extension/ezjscore/design/standard/lib/yui/3.7.1/build/anim-color/anim-color-min.js | JavaScript | gpl-2.0 | 994 |
jQuery( document ).ready( function($) {
$( 'textarea[data-editor]' ).each( function () {
var textarea = $( this );
var mode = textarea.data( 'editor' );
var editDiv = $( '<div>', {
position: 'absolute',
width: textarea.width(),
height: textarea.height(),
'class': textarea.attr( 'class' )
}).in... | silversite/silverwp | vendor/aristath/kirki/includes/controls/code/script.js | JavaScript | gpl-2.0 | 1,030 |
/**
* @version $Id$
* @package JSN_Framework
* @author JoomlaShine Team <support@joomlashine.com>
* @copyright Copyright (C) 2012 JoomlaShine.com. All Rights Reserved.
* @license GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
*
* Websites: http://www.joomlashine.com
* Technical Suppo... | xsocket/knss | plugins/system/jsnframework/assets/joomlashine/js/config.js | JavaScript | gpl-2.0 | 4,718 |
/**
* @imageoverview
* Image 업로드 관련 Source
* Trex.Tool.Image - UI,
* Trex.Attacher.Image,
* Trex.Attachment.Image,
* default configuration를 포함하고 있다.
*/
TrexConfig.addTool(
"image",
{
disabledonmobile: _TRUE,
wysiwygonly: _TRUE,
sync: _FALSE,
status: _FALSE
}
);
TrexMessage.addMsg({
'@image.title': ... | zaljayo/TestProject | lib_editor/js/trex/attacher/image.js | JavaScript | gpl-2.0 | 5,935 |
/**
* MyClock
* @constructor
*/
function MyClock(scene, slices){
CGFobject.call(this,scene);
this.slices=slices || 8;
this.clockBase = new MyCylinder(scene, this.slices);
this.clockBase.initBuffers();
this.clockFace = new MyCircle(scene, this.slices);
this.clockFace.initBuffers();
this.h... | quartz55/cgra_t1 | WebCGF.tp5/tp5/MyClock.js | JavaScript | gpl-2.0 | 1,992 |
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE_AFL.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy... | tonio-44/tikflak | shop/js/mage/adminhtml/loader.js | JavaScript | gpl-2.0 | 8,398 |
var mongoose = require("mongoose");
var objectId = mongoose.Schema.Types.ObjectId;
var schema = mongoose.Schema({
name: String,
isDeleted: { type: Boolean, default: false },
project: { type: objectId, ref: "project" },
});
module.exports = require("bluebird").promisifyAll(mongoose.model("issue-type",... | shamim8888/Leaf | data/models/issueType.js | JavaScript | gpl-2.0 | 330 |
describe('algorithms', function(){
var fibonacci, power, bubbleSort;
beforeEach(function () {
ns = acme.sandbox.algorithms;
fibonacci = acme.sandbox.algorithms.fibonacci;
power = acme.sandbox.algorithms.power;
bubbleSort = acme.sandbox.algorithms.bubbleSort;
});
describe('Fibonacci', function(... | agaber/miscellaneous | chatapp/src/test/javascript/acme/sandbox/algorithms_spec.js | JavaScript | gpl-3.0 | 1,271 |
app.io.createSpace = function(roomName)
{
if(app.legal.accepted.location_sharing === 'accepted' && app.socket && app.socket.emit && app.io.space === null)
{
app.socket.emit('check', roomName, function(data)
{
if(data.result)
{
app.util.debug('log', roomName + ' already exists');
app.notification.ale... | facingapp/phonegap-app | src/js/app/io/createSpace.js | JavaScript | gpl-3.0 | 1,146 |
import {Actions} from 'relax-framework';
class UserActions extends Actions {
init () {
}
getActions () {
return [
'add',
'remove',
'update'
];
}
}
export default new UserActions();
| GordonDiggs/relax | lib/client/actions/user.js | JavaScript | gpl-3.0 | 228 |
// Copyright 2015, 2016 Ethcore (UK) Ltd.
// This file is part of Parity.
// Parity 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.... | kushti/mpt | js/src/dapps/tokenreg/constants.js | JavaScript | gpl-3.0 | 943 |
/*
Welcome to PT NIGERIA JavaScript Application Programming Interface. All Rights Reserved.
= "PT-API" = "PT_API" = ptapi = "pt-api" = "pt_api"
*/
//Main object set to communicate with window directly.
/*function Person(name) {
this.name = Person;
}
Person.prototype.sayName = function() {
console.log(this.name);
};
n... | iykedairo/Lib | Working Versions/Javascript/PT.js | JavaScript | gpl-3.0 | 816 |
'use strict';
import * as utils from './utils';
function checking(e){
const label = e.target.nodeName.toLocaleLowerCase() === 'label' ? e.target : e.target.parentNode,
checkbox = label.previousElementSibling;
if(!checkbox.checked){
checkbox.checked = true;
}
else{
checkbox.c... | wooqash/WWCH | Task1/src/js/modules/customCheckbox.js | JavaScript | gpl-3.0 | 1,081 |
// Enable HMR
if (module.hot) module.hot.accept()
// Using Webpack's DefinePlugin we can use global constants such as devMode to have some code (e.g. logging) stay in our codebase but be stripped out during production builds
if (DEVMODE) console.log('Dev mode active')
// Webpack entrypoint for styles
import './styles... | imperodesign/generator-impero | generators/app/templates/app/src/_scripts/vanilla/client.js | JavaScript | gpl-3.0 | 1,265 |
/*
AngularJS v1.6.3
(c) 2010-2017 Google, Inc. http://angularjs.org
License: MIT
*/
(function(R,y){'use strict';function Ea(a,b,c){if(!a)throw Oa("areq",b||"?",c||"required");return a}function Fa(a,b){if(!a&&!b)return"";if(!a)return b;if(!b)return a;W(a)&&(a=a.join(" "));W(b)&&(b=b.join(" "));return a+" "+b}function... | ady624/webCoRE | dashboard/js/components/07.angular-animate-1.6.3.min.js | JavaScript | gpl-3.0 | 25,625 |
System.register([], function($__export) {
"use strict";
return {
setters: [],
execute: function() {}
};
});
//# sourceMappingURL=di_annotations.es6.map
//# sourceMappingURL=./di_annotations.js.map | nayrnet/raspipc | public/vendor/angular2/di_annotations.js | JavaScript | gpl-3.0 | 211 |
/*
* Copyright (C) 2005-2013 University of Sydney
*
* Licensed under the GNU License, Version 3.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.gnu.org/licenses/gpl-3.0.txt
*
* Unless required by applicable law or agreed to in ... | beoutsports/heurist-v3-1 | import/displayImportProgress.js | JavaScript | gpl-3.0 | 2,448 |
var class_qwt_plot_interval_curve =
[
[ "PaintAttributes", "class_qwt_plot_interval_curve.html#a1fa99e81e5c1b687aec620e9b8746d6c", null ],
[ "CurveStyle", "class_qwt_plot_interval_curve.html#aaef834575b923e1b317f4a86b2d97cd2", [
[ "NoCurve", "class_qwt_plot_interval_curve.html#aaef834575b923e1b317f4a86b2d... | PTDreamer/loraRC | configurator/loraapp/qwt/doc/html/class_qwt_plot_interval_curve.js | JavaScript | gpl-3.0 | 3,320 |
import faker from 'nomad-ui/mirage/faker';
import { generateNetworks, generatePorts } from '../common';
const genResources = (CPU, Memory) => ({
Cpu: { CpuShares: CPU },
Memory: { MemoryMB: Memory },
Disk: { DiskMB: 10000 },
Networks: generateNetworks(),
Ports: generatePorts(),
});
export function topoSmall... | dvusboy/nomad | ui/mirage/scenarios/topo.js | JavaScript | mpl-2.0 | 2,578 |
/**
* @module patches/bootstrap
* @desc Work around boostrap problems.
* @author Louis-Dominique Dubeau
* @license MPL 2.0
* @copyright Mangalam Research Center for Buddhist Languages
*/
define(/** @lends auto */ function f(require) {
"use strict";
var $ = require("jquery");
require("bootstrap");
var To... | lddubeau/wed | lib/wed/patches/bootstrap.js | JavaScript | mpl-2.0 | 1,728 |
(function(window) {
'use strict';
var calcSS3 = document.querySelector('.calc-main'),
// display things
display = calcSS3.querySelector('.calc-display span'),
radDeg = calcSS3.querySelector('.calc-rad'),
smallerButton = calcSS3.querySelector('.calc-smaller'),
hold = calcSS3.querySelector('.calc-hold'),
l... | kenichiii/online-php-jquery-web-ide--pfc-editor--web-development-tool | idePad/web/vendor/CalcSS3/CalcSS3.js | JavaScript | agpl-3.0 | 20,015 |
/*
* (c) Copyright Ascensio System SIA 2010-2015
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU ... | fluent93/DocumentServer | OfficeWeb/sdk/PowerPoint/Editor/Format/ShapePrototype.js | JavaScript | agpl-3.0 | 25,726 |
"use strict";
describe("Zotero.ItemTreeView", function() {
var win, zp, cv, itemsView, existingItemID;
// Load Zotero pane and select library
before(function* () {
win = yield loadZoteroPane();
zp = win.ZoteroPane;
cv = zp.collectionsView;
var item = yield createDataObject('item', { setTitle: true });
... | rmzelle/zotero | test/tests/itemTreeViewTest.js | JavaScript | agpl-3.0 | 21,598 |
/*
* Copyright (C) 2016 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | venturehive/canvas-lms | spec/javascripts/jsx/add_people/components/peopleReadyListSpec.js | JavaScript | agpl-3.0 | 3,664 |
/*
Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
*/
CKEDITOR.plugins.setLang( 'colordialog', 'mk', {
clear: 'Clear', // MISSING
highlight: 'Highlight', // MISSING
options: 'Color Options', // MISSING
selec... | ging/vish_orange | lib/plugins/ediphy/app/assets/javascripts/lib/ckeditor/plugins/colordialog/lang/mk.js | JavaScript | agpl-3.0 | 393 |
import React from 'react';
import Analyzer from 'Parser/Core/Analyzer';
import Combatants from 'Parser/Core/Modules/Combatants';
import ITEMS from 'common/ITEMS';
import PETS from 'common/PETS';
const COOLDOWN_REDUCING_PETS = new Set([
PETS.WILDIMP.id,
PETS.WILDIMP_ON_DREADSTALKER.id,
PETS.DREADSTALKER.id,
P... | enragednuke/WoWAnalyzer | src/Parser/Warlock/Demonology/Modules/Items/Legendaries/WilfredRing.js | JavaScript | agpl-3.0 | 1,204 |
/*
* Copyright (C) 2017 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | spec/javascripts/jsx/account_course_user_search/CoursesPaneSpec.js | JavaScript | agpl-3.0 | 1,870 |
// Walkhub
// Copyright (C) 2015 Pronovix
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This progr... | Pronovix/walkhub-service | js/actions/user.js | JavaScript | agpl-3.0 | 1,940 |
/* Omega JS Canvas Lamp Scene Component
*
* Copyright (C) 2014 Mohammed Morsi <mo@morsi.org>
* Licensed under the AGPLv3 http://www.gnu.org/licenses/agpl.txt
*/
/// Make sure to specify
/// - id
/// - size
/// - color
/// - base_position
Omega.UI.CanvasLamp = function(parameters){
this.base_position = [0... | movitto/omega | site/source/javascripts/ui/canvas/components/lamp.js | JavaScript | agpl-3.0 | 1,967 |
/*
* Copyright (C) 2019 - present Instructure, Inc.
*
* This file is part of Canvas.
*
* Canvas is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation, version 3 of the License.
*
* Canvas is distribut... | djbender/canvas-lms | app/jsx/deep_linking/processors/__tests__/processEditorContentItems.test.js | JavaScript | agpl-3.0 | 4,245 |
/*
***** 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
... | retorquere/zotero | chrome/content/zotero/xpcom/annotate.js | JavaScript | agpl-3.0 | 51,187 |
"use strict";
var async = require('async');
var mongoose = require('mongoose');
var validateBody = require('../../middleware/validate-body');
var tidyUpInlineMembershipError = require('../../inline-memberships').tidyUpInlineMembershipError;
var processMembership = require('../../inline-memberships').processMembership... | Sinar/popit-api | src/routes/1.0/document.put.js | JavaScript | agpl-3.0 | 3,815 |
'use strict';
describe('user import', function() {
beforeEach(window.module('superdesk.users.import'));
beforeEach(window.module('superdesk.mocks'));
it('can import a user', inject(function($q, userImport, api) {
var model = {username: 'foo', password: 'bar', profile_to_import: 'baz'};
s... | mscam/superdesk-client-core | scripts/superdesk-users/import/tests/import.spec.js | JavaScript | agpl-3.0 | 1,000 |
$(document).ready(function ($) {
menuActive();
EditSong();
});
/* Function to add an "active" tag to the current page menu tag */
function menuActive() { // Function to toggle active menu links
$('.active').removeClass('active'); // Remove "active" class on menu links
var pgpath = window.location.pathn... | mpvillafranca/hearcloud | applications/box/static/box/js/main.js | JavaScript | agpl-3.0 | 1,429 |
module.exports = function($, done) {
throw Error('random-error');
};
| medialab/sandcrawler | test/resources/scrapers/error.js | JavaScript | lgpl-3.0 | 71 |
define(function () {
var $ = jQuery,
showError = null;
/*
* SelectList Collection
*/
var SelectListCollection = Backbone.Collection.extend({
initialize: function (options) {
this.options = options;
},
parse: function (r) {
return this.options.parse.call(this, r);
},
... | KoushikdMS/sonarqube | server/sonar-web/src/main/js/components/common/select-list.js | JavaScript | lgpl-3.0 | 11,994 |
/* */
var convert = require('./convert');
module.exports = convert('findLastIndex', require('../findLastIndex'));
| EpitaJS/js-class-2016 | jspm_packages/npm/lodash@4.6.1/fp/findLastIndex.js | JavaScript | unlicense | 115 |
define([
"./day-of-week",
"./day-of-year",
"./milliseconds-in-day",
"./pattern-re",
"./start-of",
"./timezone-hour-format",
"./week-days"
], function( dateDayOfWeek, dateDayOfYear, dateMillisecondsInDay, datePatternRe, dateStartOf,
dateTimezoneHourFormat, dateWeekDays ) {
/**
* format( date, properties )
*
... | has191210/bdademo | src/main/resources/public/bower_components/globalize/src/date/format.js | JavaScript | unlicense | 6,078 |
/* Composer - Tooltips */
Mailpile.Composer.Tooltips.Signature = function() {
$('.compose-crypto-signature').qtip({
content: {
title: false,
text: function(event, api) {
$(this).find('text').removeClass('hide');
var html = '<div>\
<h4 class="' + $(this).data('crypto_color') ... | laborautonomo/Mailpile | mailpile/www/default/html/jsapi/compose/tooltips.js | JavaScript | apache-2.0 | 4,699 |
//modal close button
(function(){
//π.modalCloseButton = function(closingFunction){
// return π.button('pi-modal-close-button', null, null, closingFunction);
//};
})();
// globals
var body;
//helper functions
function copyCode(elem){
if (document.getElementById(elem)) {
// create hidden text element, if it d... | fasaxc/calico | js/script.js | JavaScript | apache-2.0 | 11,819 |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
var _emojiRegex = _interopRequireDefault(require("emoji-regex"));
var _jsxAstUtils = require("jsx-ast-utils");
var _schemas = require("../util/schemas");
var _isHiddenFromScreenReader = _interopRequireDefault(requir... | GoogleCloudPlatform/prometheus-engine | third_party/prometheus_ui/base/web/ui/react-app/node_modules/eslint-plugin-jsx-a11y/lib/rules/accessible-emoji.js | JavaScript | apache-2.0 | 2,338 |
/* global APP */
import UIEvents from '../../../service/UI/UIEvents';
import {
CONFERENCE_FAILED,
LOCK_STATE_CHANGED,
SET_PASSWORD_FAILED
} from '../base/conference';
import { JitsiConferenceErrors } from '../base/lib-jitsi-meet';
import { MiddlewareRegistry } from '../base/redux';
import { _showPassword... | parisjulien/arkadin-jitsimeet | react/features/room-lock/middleware.js | JavaScript | apache-2.0 | 2,914 |
'use strict';
angular.module('sophe.elements.qdm.functionOperators', [])
.directive('functionOperators', ['$rootScope', function($rootScope) {
var directive = {
templateUrl: 'views/elements/qdm/functionOperators.html',
restrict: 'A',
replace: true
};
return directive;
}]); | PheMA/phema-author | dist/scripts/directives/elements/qdm/functionOperators.js | JavaScript | apache-2.0 | 294 |
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '3.3.0',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
FILE_SUFFIX: '.html',
LINK_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt',... | JohnSnowLabs/spark-nlp | docs/licensed/api/python/static/documentation_options.js | JavaScript | apache-2.0 | 354 |
//这是jQuery官方的插件开发规范,这样写是作用是:
//1. 避免全局依赖。
//2. 避免第三方破坏。
//3. 兼容jQuery操作符’$'和’jQuery’
(function ($) {
//这里放入插件代码
//起插件名称叫backTop
$.fn.backTop = function(options){
//设置默认值
var defaultValue = {
'bottom': 10, //距离底部为20
'right' : 10, //距离右侧为20
'speed' : 700 //返回顶部的时间
};
//用户如果传递则走用户的,否则走默认值
var resultO... | luffy730/test | php-leraning/blog/资料/前台模板/js/backTop.js | JavaScript | apache-2.0 | 1,307 |
/* 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/. */
function closeWindow(aClose, aPromptFunction)
{
# Closing the last window doesn't quit the application on OS X.
#i... | sergecodd/FireFox-OS | B2G/gecko/toolkit/content/globalOverlay.js | JavaScript | apache-2.0 | 5,533 |
/*
* Kendo UI Web v2014.1.318 (http://kendoui.com)
* Copyright 2014 Telerik AD. All rights reserved.
*
* Kendo UI Web commercial licenses may be obtained at
* http://www.telerik.com/purchase/license-agreement/kendo-ui-web
* If you do not own a commercial license, this file shall be governed by the
* GNU General Public ... | facundolucas/eCuentas | src/main/webapp/resources/kendoui/src/js/cultures/kendo.culture.de.js | JavaScript | apache-2.0 | 2,722 |
GH.ProofGenerator.equalizer = function(prover) {
this.prover = prover;
};
GH.ProofGenerator.equalizer.prototype.action = function(sexp, indices) {
var name = this.actionName(sexp.parent.operator, indices);
return new GH.action(name, []);
};
GH.ProofGenerator.equalizer.prototype.actionName = function(operator, ind... | kryptine/ghilbert | js/prover/equalizer.js | JavaScript | apache-2.0 | 7,427 |
Bridge.define("System.NotSupportedException", {
inherits: [System.SystemException],
ctors: {
ctor: function () {
this.$initialize();
System.SystemException.$ctor1.call(this, "Specified method is not supported.");
this.HResult = -2146233067;... | AndreyZM/Bridge | Bridge/Resources/.generated/System/NotSupportedException.js | JavaScript | apache-2.0 | 791 |
$(function() {
var loaded = "login";
var loader = $(".loader");
loader.on("click","button", function(ev){
ev.preventDefault();
if (loaded === "login") {
loader.load("confirmation.html");
loaded = "confirmation";
}
else {
loader.load("login.html");
load... | haymaker17/mobile_styleguide | login_with_concur/js/scripts.js | JavaScript | apache-2.0 | 401 |
// Karma configuration
// Generated on Wed May 16 2018 09:34:20 GMT+0100 (BST)
module.exports = function(config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '',
// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/k... | LucidWorks/lws-financial-demo | app-kyc/karma.conf.js | JavaScript | apache-2.0 | 2,530 |
const data = require("./weatherData.js");
var weatherService = function () { }
weatherService.prototype.getWeather = function (location, startDate, endData) {
var forecastData = data.find(el => el.location.toLowerCase() == location.toLowerCase());
if (!forecastData) {
return null
}
else {
... | sbohlen/talks | KCDC2018 - Patterns for Creating a Chatbot that doesn't Suck/code/weatherService.js | JavaScript | apache-2.0 | 481 |
var path = require('path');
var Builder = require('systemjs-builder');
var addLicenseToFile = require('./add-license-to-file');
var config = {
baseURL: 'dist',
paths: {
'rxjs/*': 'cjs/*.js'
}
};
build('rxjs/Rx', '../dist/global/Rx.js', '../dist/global/Rx.min.js');
build('rxjs/Rx.KitchenSink', '../dist/gl... | jinroh/RxJS | tools/make-system-bundle.js | JavaScript | apache-2.0 | 991 |
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
function test() {
waitForExplicitFinish();
let newTab = gBrowser.selectedTab = gBrowser.addTab("about:blank", {skipAnimation: true});
registerCleanupFunction(function () {
gBrowser.removeTab(newTab);
... | wilebeast/FireFox-OS | B2G/gecko/browser/base/content/test/browser_tabDrop.js | JavaScript | apache-2.0 | 2,473 |
/**
* 展示警告
* @param desc 警告内容
*/
function showWarning(desc) {
var temp = '\
<div class="alert alert-warning alert-dismissible" role="alert">\
<button type="button" class="close" data-dismiss="alert" aria-label="Close">\
<span aria-hidden="true">×</spa... | calchen/PIM | resources/assets/js/web/style.js | JavaScript | apache-2.0 | 1,096 |
var should = require('should');
var getCollidingVertices = require('../../lib/utilities/getCollidingVertices');
var getCollidingVerticesSlowly = require('./getCollidingVerticesSlowly');
var Vertex = require('../../lib/model/content/vertex');
var VertexStyles = require('../../lib/model/style/vertexStyles');
var VertexL... | twosigma/goll-e | test/utilities/disabled-test-getCollidingVertices.js | JavaScript | apache-2.0 | 4,020 |
//// [commentsClass.ts]
/** This is class c2 without constuctor*/
class c2 {
} // trailing comment1
var i2 = new c2();
var i2_c = c2;
class c3 {
/** Constructor comment*/
constructor() {
} // trailing comment of constructor
} /* trailing comment 2 */
var i3 = new c3();
var i3_c = c3;
/** Class comment*/
cl... | synaptek/TypeScript | tests/baselines/reference/commentsClass.js | JavaScript | apache-2.0 | 4,076 |
// This file has been autogenerated.
var profile = require('../../../lib/util/profile');
exports.getMockedProfile = function () {
var newProfile = new profile.Profile();
newProfile.addSubscription(new profile.Subscription({
id: '2c224e7e-3ef5-431d-a57b-e71f4662e3a6',
name: 'Node CLI Test',
user: {
... | huangpf/azure-xplat-cli | test/recordings/arm-network-networkwatchers-tests/arm_network_network_watchers_show_should_display_network_watchers_details.nock.js | JavaScript | apache-2.0 | 3,654 |
/**
* @license Copyright 2017 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 applicable law or a... | tkadlec/lighthouse | lighthouse-core/test/audits/byte-efficiency/total-byte-weight-test.js | JavaScript | apache-2.0 | 3,147 |
/*
* 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.
*/
'... | xingwu1/azure-sdk-for-node | lib/services/serviceFabric/lib/models/eventHealthEvaluation.js | JavaScript | apache-2.0 | 5,094 |
/*
* 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.
*/
'... | begoldsm/azure-sdk-for-node | lib/services/devTestLabs/lib/operations/policySet.js | JavaScript | apache-2.0 | 12,255 |
chorus.pages.TagIndexPage = chorus.pages.Base.extend({
crumbs:[
{ label:t("breadcrumbs.home"), url:"#/" },
{ label:t("breadcrumbs.tags") }
],
setup: function() {
var tags = new chorus.collections.TagSet();
tags.fetch();
this.mainContent = new chorus.views.MainConten... | nvoron23/chorus | app/assets/javascripts/pages/tags/tag_index_page.js | JavaScript | apache-2.0 | 614 |
// JavaScript Document
//shang shi gundong
function DY_scroll(wraper,prev,next,img,speed,or)
{
var wraper = $(wraper);
var prev = $(prev);
var next = $(next);
var img = $(img).find('ul');
var w = img.find('li').outerWidth(true);
var s = speed;
next.click(function()
{
img.animate({'margi... | snxamdf/gdmedicine | web-core/target/classes/static/core/js/jinrong.js | JavaScript | apache-2.0 | 1,439 |
/**
* @license
* Copyright 2014 The Lovefield Project 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
... | ralic/lovefield | lib/index/key_range.js | JavaScript | apache-2.0 | 15,153 |
var common={
slowAds:[],
init:function(){
var banTouchmove=function(e){
e.preventDefault();
return false;
}
//$('#myContainer')[0].addEventListener('touchmove', banTouchmove, false);
document.addEventListener('touchmove', banTouchmove, false);
//$('#myMain')[0].addEventListener('touchmove', banTouchmo... | sunjob/wcg | WebRoot/front/js/public.js | JavaScript | apache-2.0 | 18,936 |
/* eslint no-implicit-globals: "off" */
/* eslint strict: "off" */
/* global require, __dirname */
"use strict";
const gulp = require("gulp");
const changed = require("gulp-changed");
const concat = require("gulp-concat");
const fs = require("fs");
const header = require("gulp-header");
const rename = require("gulp-r... | MassimoFoti/lugajs | gulpfile.js | JavaScript | apache-2.0 | 4,941 |