1
0
forked from dyf/APP

增加晶全app静态页面

This commit is contained in:
微微一笑
2025-07-05 14:49:26 +08:00
parent 194035cf79
commit aede64dacd
2323 changed files with 524101 additions and 0 deletions

3
node_modules/es6-map/test/implement.js generated vendored Normal file
View File

@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof Map, 'function'); };

5
node_modules/es6-map/test/index.js generated vendored Normal file
View File

@ -0,0 +1,5 @@
'use strict';
module.exports = function (T, a) {
a((new T([['raz', 1], ['dwa', 2]])).size, 2);
};

14
node_modules/es6-map/test/is-implemented.js generated vendored Normal file
View File

@ -0,0 +1,14 @@
'use strict';
var global = require('es5-ext/global')
, polyfill = require('../polyfill');
module.exports = function (t, a) {
var cache;
a(typeof t(), 'boolean');
cache = global.Map;
global.Map = polyfill;
a(t(), true);
if (cache === undefined) delete global.Map;
else global.Map = cache;
};

16
node_modules/es6-map/test/is-map.js generated vendored Normal file
View File

@ -0,0 +1,16 @@
'use strict';
var MapPoly = require('../polyfill');
module.exports = function (t, a) {
a(t(undefined), false, "Undefined");
a(t(null), false, "Null");
a(t(true), false, "Primitive");
a(t('raz'), false, "String");
a(t({}), false, "Object");
a(t([]), false, "Array");
if (typeof Map !== 'undefined') {
a(t(new Map()), true, "Native");
}
a(t(new MapPoly()), true, "Polyfill");
};

3
node_modules/es6-map/test/is-native-implemented.js generated vendored Normal file
View File

@ -0,0 +1,3 @@
'use strict';
module.exports = function (t, a) { a(typeof t, 'boolean'); };

5
node_modules/es6-map/test/lib/iterator-kinds.js generated vendored Normal file
View File

@ -0,0 +1,5 @@
'use strict';
module.exports = function (t, a) {
a.deep(t, { key: true, value: true, 'key+value': true });
};

13
node_modules/es6-map/test/lib/iterator.js generated vendored Normal file
View File

@ -0,0 +1,13 @@
'use strict';
var Map = require('../../polyfill')
, toArray = require('es5-ext/array/to-array');
module.exports = function (T, a) {
var arr = [['raz', 'one'], ['dwa', 'two']], map = new Map(arr);
a.deep(toArray(new T(map)), arr, "Default");
a.deep(toArray(new T(map, 'key+value')), arr, "Key & Value");
a.deep(toArray(new T(map, 'value')), ['one', 'two'], "Value");
a.deep(toArray(new T(map, 'key')), ['raz', 'dwa'], "Value");
};

130
node_modules/es6-map/test/lib/primitive-iterator.js generated vendored Normal file
View File

@ -0,0 +1,130 @@
'use strict';
var iteratorSymbol = require('es6-symbol').iterator
, toArray = require('es5-ext/array/to-array')
, Map = require('../../primitive')
, compare, mapToResults;
compare = function (a, b) {
if (!a.value) return -1;
if (!b.value) return 1;
return a.value[0].localeCompare(b.value[0]);
};
mapToResults = function (arr) {
return arr.sort().map(function (value) {
return { done: false, value: value };
});
};
module.exports = function (T) {
return {
"": function (a) {
var arr, it, y, z, map, result = [];
arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
['cztery', 'four'], ['pięć', 'five']];
map = new Map(arr);
it = new T(map);
a(it[iteratorSymbol](), it, "@@iterator");
y = it.next();
result.push(y);
z = it.next();
a.not(y, z, "Recreate result");
result.push(z);
result.push(it.next());
result.push(it.next());
result.push(it.next());
a.deep(result.sort(compare), mapToResults(arr));
a.deep(y = it.next(), { done: true, value: undefined }, "End");
a.not(y, it.next(), "Recreate result on dead");
},
Emited: function (a) {
var arr, it, map, result = [];
arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
['cztery', 'four'], ['pięć', 'five']];
map = new Map(arr);
it = new T(map);
result.push(it.next());
result.push(it.next());
map.set('sześć', 'six');
arr.push(['sześć', 'six']);
result.push(it.next());
map.delete('pięć');
arr.splice(4, 1);
result.push(it.next());
result.push(it.next());
a.deep(result.sort(compare), mapToResults(arr));
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited #2": function (a) {
var arr, it, map, result = [];
arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
map = new Map(arr);
it = new T(map);
result.push(it.next());
result.push(it.next());
map.set('siedem', 'seven');
map.delete('siedem');
result.push(it.next());
result.push(it.next());
map.delete('pięć');
arr.splice(4, 1);
result.push(it.next());
a.deep(result.sort(compare), mapToResults(arr));
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited: Clear #1": function (a) {
var arr, it, map, result = [];
arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
map = new Map(arr);
it = new T(map);
result.push(it.next());
result.push(it.next());
arr = [['raz', 'one'], ['dwa', 'two']];
map.clear();
a.deep(result.sort(compare), mapToResults(arr));
a.deep(it.next(), { done: true, value: undefined }, "End");
},
"Emited: Clear #2": function (a) {
var arr, it, map, result = [];
arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three'],
['cztery', 'four'], ['pięć', 'five'], ['sześć', 'six']];
map = new Map(arr);
it = new T(map);
result.push(it.next());
result.push(it.next());
map.clear();
map.set('foo', 'bru');
map.set('bar', 'far');
arr = [['raz', 'one'], ['dwa', 'two'], ['foo', 'bru'], ['bar', 'far']];
result.push(it.next());
result.push(it.next());
a.deep(result.sort(compare), mapToResults(arr));
a.deep(it.next(), { done: true, value: undefined }, "End");
},
Kinds: function (a) {
var arr = [['raz', 'one'], ['dwa', 'two']], map = new Map(arr);
a.deep(toArray(new T(map)).sort(), arr.sort(), "Default");
a.deep(toArray(new T(map, 'key+value')).sort(), arr.sort(),
"Key + Value");
a.deep(toArray(new T(map, 'value')).sort(), ['one', 'two'].sort(),
"Value");
a.deep(toArray(new T(map, 'key')).sort(), ['raz', 'dwa'].sort(),
"Key");
}
};
};

60
node_modules/es6-map/test/polyfill.js generated vendored Normal file
View File

@ -0,0 +1,60 @@
'use strict';
var aFrom = require('es5-ext/array/from')
, toArray = require('es5-ext/array/to-array');
module.exports = function (T, a) {
var arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three']]
, map = new T(arr), x = {}, y = {}, i = 0;
a(map instanceof T, true, "Map");
a(map.size, 3, "Size");
a(map.get('raz'), 'one', "Get: contained");
a(map.get(x), undefined, "Get: not contained");
a(map.has('raz'), true, "Has: contained");
a(map.has(x), false, "Has: not contained");
a(map.set(x, y), map, "Set: return");
a(map.has(x), true, "Set: has");
a(map.get(x), y, "Set: get");
a(map.size, 4, "Set: Size");
map.set('dwa', x);
a(map.get('dwa'), x, "Overwrite: get");
a(map.size, 4, "Overwrite: size");
a(map.delete({}), false, "Delete: false");
arr.push([x, y]);
arr[1][1] = x;
map.forEach(function () {
a.deep(aFrom(arguments), [arr[i][1], arr[i][0], map],
"ForEach: Arguments: #" + i);
a(this, y, "ForEach: Context: #" + i);
if (i === 0) {
a(map.delete('raz'), true, "Delete: true");
a(map.has('raz'), false, "Delete");
a(map.size, 3, "Delete: size");
map.set('cztery', 'four');
arr.push(['cztery', 'four']);
}
i++;
}, y);
arr.splice(0, 1);
a.deep(toArray(map.entries()), [['dwa', x], ['trzy', 'three'], [x, y],
['cztery', 'four']], "Entries");
a.deep(toArray(map.keys()), ['dwa', 'trzy', x, 'cztery'], "Keys");
a.deep(toArray(map.values()), [x, 'three', y, 'four'], "Values");
a.deep(toArray(map), [['dwa', x], ['trzy', 'three'], [x, y],
['cztery', 'four']], "Iterator");
map.clear();
a(map.size, 0, "Clear: size");
a(map.has('trzy'), false, "Clear: has");
a.deep(toArray(map), [], "Clear: Values");
a.h1("Empty initialization");
map = new T();
map.set('foo', 'bar');
a(map.size, 1);
a(map.get('foo'), 'bar');
};

59
node_modules/es6-map/test/primitive/index.js generated vendored Normal file
View File

@ -0,0 +1,59 @@
'use strict';
var aFrom = require('es5-ext/array/from')
, getIterator = require('es6-iterator/get')
, toArray = require('es5-ext/array/to-array');
module.exports = function (T, a) {
var arr = [['raz', 'one'], ['dwa', 'two'], ['trzy', 'three']]
, map = new T(arr), x = 'other', y = 'other2'
, i = 0, result = [];
a(map instanceof T, true, "Map");
a(map.size, 3, "Size");
a(map.get('raz'), 'one', "Get: contained");
a(map.get(x), undefined, "Get: not contained");
a(map.has('raz'), true, "Has: true");
a(map.has(x), false, "Has: false");
a(map.set(x, y), map, "Add: return");
a(map.has(x), true, "Add");
a(map.size, 4, "Add: Size");
map.set('dwa', x);
a(map.get('dwa'), x, "Overwrite: get");
a(map.size, 4, "Overwrite: size");
a(map.delete('else'), false, "Delete: false");
arr.push([x, y]);
arr[1][1] = x;
map.forEach(function () {
result.push(aFrom(arguments));
a(this, y, "ForEach: Context: #" + i);
}, y);
a.deep(result.sort(function (a, b) {
return String([a[1], a[0]]).localeCompare([b[1], b[0]]);
}), arr.sort().map(function (val) { return [val[1], val[0], map]; }),
"ForEach: Arguments");
a.deep(toArray(map.entries()).sort(), [['dwa', x], ['trzy', 'three'],
[x, y], ['raz', 'one']].sort(), "Entries");
a.deep(toArray(map.keys()).sort(), ['dwa', 'trzy', x, 'raz'].sort(),
"Keys");
a.deep(toArray(map.values()).sort(), [x, 'three', y, 'one'].sort(),
"Values");
a.deep(toArray(getIterator(map)).sort(), [['dwa', x], ['trzy', 'three'],
[x, y], ['raz', 'one']].sort(),
"Iterator");
map.clear();
a(map.size, 0, "Clear: size");
a(map.has('trzy'), false, "Clear: has");
a.deep(toArray(map.values()), [], "Clear: Values");
a.h1("Empty initialization");
map = new T();
map.set('foo', 'bar');
a(map.size, 1);
a(map.get('foo'), 'bar');
};

19
node_modules/es6-map/test/valid-map.js generated vendored Normal file
View File

@ -0,0 +1,19 @@
'use strict';
var MapPoly = require('../polyfill');
module.exports = function (t, a) {
var map;
a.throws(function () { t(undefined); }, TypeError, "Undefined");
a.throws(function () { t(null); }, TypeError, "Null");
a.throws(function () { t(true); }, TypeError, "Primitive");
a.throws(function () { t('raz'); }, TypeError, "String");
a.throws(function () { t({}); }, TypeError, "Object");
a.throws(function () { t([]); }, TypeError, "Array");
if (typeof Map !== 'undefined') {
map = new Map();
a(t(map), map, "Native");
}
map = new MapPoly();
a(t(map), map, "Polyfill");
};