Updated the files.

This commit is contained in:
Batuhan Berk Başoğlu 2024-02-08 19:38:41 -05:00
parent 1553e6b971
commit 753967d4f5
23418 changed files with 3784666 additions and 0 deletions

2
my-app/node_modules/custom-event/.npmignore generated vendored Executable file
View file

@ -0,0 +1,2 @@
/npm-debug.log
/node_modules

29
my-app/node_modules/custom-event/.travis.yml generated vendored Executable file
View file

@ -0,0 +1,29 @@
language: node_js
node_js:
- '0.10'
env:
global:
- secure: qdX24UIsib/+okMgShObAO20BrYRnh8dcEsMq522uVIRYLwwjx/raTFBEUQImC3tM5Xt1jvth1bWetmTT0zrzN1YgGUDI0yurQbPAdhHEjc63lK2d1QNeTJnpzFyyQ2D/ZtOlNL9xzk0shzFh0cAKm2IS0gxHRrDRkVzR/JtvL0=
- secure: gyV82GANCt70Llx5v6GkGPVv1X3zOxlf/eMpDXpAt6nMP24dDRx5fi9Z9B546cHl7f4Pq27++8M5FUAexF+zq3nTRX1KvTFLUnpXBVg2RacBWTWOQP09FbdcbUHHSvwsXQuEOT8U6yfiZq6wcBEwKoXIqUUN4QZ+zdcCqOvZ+gw=
matrix:
- BROWSER_NAME=chrome BROWSER_VERSION=latest
- BROWSER_NAME=chrome BROWSER_VERSION=35
- BROWSER_NAME=chrome BROWSER_VERSION=34
- BROWSER_NAME=firefox BROWSER_VERSION=latest
- BROWSER_NAME=firefox BROWSER_VERSION=30
- BROWSER_NAME=firefox BROWSER_VERSION=29
- BROWSER_NAME=opera BROWSER_VERSION=latest
- BROWSER_NAME=opera BROWSER_VERSION=11
- BROWSER_NAME=safari BROWSER_VERSION=latest
- BROWSER_NAME=safari BROWSER_VERSION=7
- BROWSER_NAME=safari BROWSER_VERSION=6
- BROWSER_NAME=safari BROWSER_VERSION=5
- BROWSER_NAME=ie BROWSER_VERSION=11
- BROWSER_NAME=ie BROWSER_VERSION=10
- BROWSER_NAME=ie BROWSER_VERSION=9
- BROWSER_NAME=ie BROWSER_VERSION=8
- BROWSER_NAME=ie BROWSER_VERSION=7
- BROWSER_NAME=ie BROWSER_VERSION=6
- BROWSER_NAME=iphone BROWSER_VERSION=7.1
- BROWSER_NAME=iphone BROWSER_VERSION=7.0
- BROWSER_NAME=iphone BROWSER_VERSION=6.1

16
my-app/node_modules/custom-event/History.md generated vendored Executable file
View file

@ -0,0 +1,16 @@
1.0.1 / 2016-10-13
==================
* add MIT license file (fix #2)
* isomorphic support (#3, @nescalante)
* test: remove bad assert() call
1.0.0 / 2015-01-07
==================
* Makefile: whitespace fix
* enable Travis-CI testing
* add .gitignore file
* test: add test cases
* initial commit

19
my-app/node_modules/custom-event/LICENSE generated vendored Executable file
View file

@ -0,0 +1,19 @@
Copyright (c) 2015 Nathan Rajlich
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, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.

29
my-app/node_modules/custom-event/Makefile generated vendored Executable file
View file

@ -0,0 +1,29 @@
# get Makefile directory name: http://stackoverflow.com/a/5982798/376773
THIS_MAKEFILE_PATH:=$(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))
THIS_DIR:=$(shell cd $(dir $(THIS_MAKEFILE_PATH));pwd)
# BIN directory
BIN := $(THIS_DIR)/node_modules/.bin
# applications
NODE ?= node
ZUUL ?= $(NODE) $(BIN)/zuul
test:
@if [ "x$(BROWSER_PLATFORM)" = "x" ]; then \
$(ZUUL) \
--ui mocha-bdd \
--browser-name $(BROWSER_NAME) \
--browser-version $(BROWSER_VERSION) \
test/*.js; \
else \
$(ZUUL) \
--ui mocha-bdd \
--browser-name $(BROWSER_NAME) \
--browser-version $(BROWSER_VERSION) \
--browser-platform "$(BROWSER_PLATFORM)" \
test/*.js; \
fi
.PHONY: test

36
my-app/node_modules/custom-event/README.md generated vendored Executable file
View file

@ -0,0 +1,36 @@
custom-event
============
### Cross-browser `CustomEvent` constructor
[![Sauce Test Status](https://saucelabs.com/browser-matrix/custom-event.svg)](https://saucelabs.com/u/custom-event)
[![Build Status](https://travis-ci.org/webmodules/custom-event.svg?branch=master)](https://travis-ci.org/webmodules/custom-event)
https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.CustomEvent
Installation
------------
``` bash
$ npm install custom-event
```
Example
-------
``` js
var CustomEvent = require('custom-event');
// add an appropriate event listener
target.addEventListener('cat', function(e) { process(e.detail) });
// create and dispatch the event
var event = new CustomEvent('cat', {
detail: {
hazcheeseburger: true
}
});
target.dispatchEvent(event);
```

48
my-app/node_modules/custom-event/index.js generated vendored Executable file
View file

@ -0,0 +1,48 @@
var NativeCustomEvent = global.CustomEvent;
function useNative () {
try {
var p = new NativeCustomEvent('cat', { detail: { foo: 'bar' } });
return 'cat' === p.type && 'bar' === p.detail.foo;
} catch (e) {
}
return false;
}
/**
* Cross-browser `CustomEvent` constructor.
*
* https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent.CustomEvent
*
* @public
*/
module.exports = useNative() ? NativeCustomEvent :
// IE >= 9
'undefined' !== typeof document && 'function' === typeof document.createEvent ? function CustomEvent (type, params) {
var e = document.createEvent('CustomEvent');
if (params) {
e.initCustomEvent(type, params.bubbles, params.cancelable, params.detail);
} else {
e.initCustomEvent(type, false, false, void 0);
}
return e;
} :
// IE <= 8
function CustomEvent (type, params) {
var e = document.createEventObject();
e.type = type;
if (params) {
e.bubbles = Boolean(params.bubbles);
e.cancelable = Boolean(params.cancelable);
e.detail = params.detail;
} else {
e.bubbles = false;
e.cancelable = false;
e.detail = void 0;
}
return e;
}

30
my-app/node_modules/custom-event/package.json generated vendored Executable file
View file

@ -0,0 +1,30 @@
{
"name": "custom-event",
"version": "1.0.1",
"description": "Cross-browser `CustomEvent` constructor",
"main": "index.js",
"scripts": {
"test": "make test"
},
"repository": {
"type": "git",
"url": "git://github.com/webmodules/custom-event.git"
},
"keywords": [
"dom",
"browser",
"event",
"custom",
"customevent",
"constructor"
],
"author": "Nathan Rajlich <nathan@tootallnate.net> (http://n8.io/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/webmodules/custom-event/issues"
},
"homepage": "https://github.com/webmodules/custom-event",
"devDependencies": {
"zuul": "~1.16.3"
}
}

81
my-app/node_modules/custom-event/test/test.js generated vendored Executable file
View file

@ -0,0 +1,81 @@
var assert = require('assert');
var CE = require('../');
describe('CustomEvent', function () {
describe('new CustomEvent()', function () {
it('should create a `CustomEvent` instance', function () {
var e = new CE('cat');
assert.equal(e.type, 'cat');
assert.equal(e.bubbles, false);
assert.equal(e.cancelable, false);
assert.equal(e.detail, undefined);
});
it('should create a `CustomEvent` instance with a `details` object', function () {
var e = new CE('meow', { detail: { foo: 'bar' } });
assert.equal(e.type, 'meow');
assert.equal(e.bubbles, false);
assert.equal(e.cancelable, false);
assert.equal(e.detail.foo, 'bar');
});
it('should create a `CustomEvent` instance with a `bubbles` boolean', function () {
var e = new CE('purr', { bubbles: true });
assert.equal(e.type, 'purr');
assert.equal(e.bubbles, true);
assert.equal(e.cancelable, false);
assert.equal(e.detail, undefined);
});
it('should create a `CustomEvent` instance with a `cancelable` boolean', function () {
var e = new CE('scratch', { cancelable: true });
assert.equal(e.type, 'scratch');
assert.equal(e.bubbles, false);
assert.equal(e.cancelable, true);
assert.equal(e.detail, undefined);
});
it('should create a `CustomEvent` instance that is dispatchable', function (done) {
var e = new CE('claw', {
bubbles: true,
cancelable: true,
detail: { canhaz: 'cheeseburger' }
});
function onclaw (ev) {
if (!ev) ev = window.event;
assert.equal(e.bubbles, true);
assert.equal(e.cancelable, true);
assert.equal(e.detail.canhaz, 'cheeseburger');
done();
}
if (document.body.dispatchEvent) {
document.body.addEventListener('claw', onclaw, false);
document.body.dispatchEvent(e);
} else {
// IE <= 8 will only allow us to fire "known" event names,
// so we need to fire "click" instead of "claw :\
document.body.attachEvent('onclick', onclaw);
// need to fire event in a separate tick for some reason…
setTimeout(function () {
e.type = 'click';
e.eventName = 'click';
e.eventType = 'click';
document.body.fireEvent('onclick', e);
}, 50);
}
});
});
});