@vorplex/core 0.0.8 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/consts/mime-type.const.d.ts +456 -0
- package/dist/consts/mime-type.const.js +456 -0
- package/dist/consts/unit.const.d.ts +22 -0
- package/dist/consts/unit.const.js +22 -0
- package/dist/functions/debounce.function.d.ts +1 -0
- package/dist/functions/debounce.function.js +12 -0
- package/dist/functions/is-node-environment.function.d.ts +1 -0
- package/dist/functions/is-node-environment.function.js +3 -0
- package/dist/functions/parse-path-selector.function.d.ts +2 -0
- package/dist/functions/parse-path-selector.function.js +17 -0
- package/dist/functions/parse-url.function.d.ts +12 -0
- package/dist/functions/parse-url.function.js +25 -0
- package/dist/index.d.ts +92 -0
- package/dist/index.js +93 -0
- package/dist/interfaces/group.interface.d.ts +4 -0
- package/dist/interfaces/group.interface.js +0 -0
- package/dist/interfaces/key-value.interface.d.ts +4 -0
- package/dist/interfaces/key-value.interface.js +0 -0
- package/dist/modules/api/socket.model.d.ts +26 -0
- package/dist/modules/api/socket.model.js +66 -0
- package/dist/modules/api/web-client.model.d.ts +16 -0
- package/dist/modules/api/web-client.model.js +34 -0
- package/dist/modules/array/array.util.d.ts +17 -0
- package/dist/modules/array/array.util.js +105 -0
- package/dist/modules/changes/changes.util.d.ts +45 -0
- package/dist/modules/changes/changes.util.js +330 -0
- package/dist/modules/color/color-data.interface.d.ts +10 -0
- package/dist/modules/color/color-data.interface.js +0 -0
- package/dist/modules/color/color-formats.const.d.ts +9 -0
- package/dist/modules/color/color-formats.const.js +8 -0
- package/dist/modules/color/color.type.d.ts +4 -0
- package/dist/modules/color/color.type.js +0 -0
- package/dist/modules/color/color.util.d.ts +41 -0
- package/dist/modules/color/color.util.js +327 -0
- package/dist/modules/color/colors.const.d.ts +151 -0
- package/dist/modules/color/colors.const.js +150 -0
- package/dist/modules/color/hsl.interface.d.ts +6 -0
- package/dist/modules/color/hsl.interface.js +0 -0
- package/dist/modules/color/hsv.interface.d.ts +6 -0
- package/dist/modules/color/hsv.interface.js +0 -0
- package/dist/modules/color/rgb.interface.d.ts +6 -0
- package/dist/modules/color/rgb.interface.js +0 -0
- package/dist/modules/compression/compression.util.d.ts +4 -0
- package/dist/modules/compression/compression.util.js +52 -0
- package/dist/modules/date/date.util.d.ts +37 -0
- package/dist/modules/date/date.util.js +84 -0
- package/dist/modules/enum/enum.util.d.ts +17 -0
- package/dist/modules/enum/enum.util.js +69 -0
- package/dist/modules/hash/hash.util.d.ts +3 -0
- package/dist/modules/hash/hash.util.js +9 -0
- package/dist/modules/id/id.util.d.ts +7 -0
- package/dist/modules/id/id.util.js +33 -0
- package/dist/modules/injector/decorators/inject-token.decorator.d.ts +14 -0
- package/dist/modules/injector/decorators/inject-token.decorator.js +12 -0
- package/dist/modules/injector/decorators/injectable.decorator.d.ts +9 -0
- package/dist/modules/injector/decorators/injectable.decorator.js +7 -0
- package/dist/modules/injector/injector.model.d.ts +25 -0
- package/dist/modules/injector/injector.model.js +152 -0
- package/dist/modules/injector/provider-scopes.enum.d.ts +5 -0
- package/dist/modules/injector/provider-scopes.enum.js +6 -0
- package/dist/modules/injector/provider.interface.d.ts +10 -0
- package/dist/modules/injector/provider.interface.js +0 -0
- package/dist/modules/json-filter/json-filter.function.d.ts +41 -0
- package/dist/modules/json-filter/json-filter.function.js +75 -0
- package/dist/modules/logging/console-logger.model.d.ts +36 -0
- package/dist/modules/logging/console-logger.model.js +44 -0
- package/dist/modules/logging/logger.model.d.ts +6 -0
- package/dist/modules/logging/logger.model.js +7 -0
- package/dist/modules/logging/task.d.ts +38 -0
- package/dist/modules/logging/task.js +133 -0
- package/dist/modules/math/line.d.ts +12 -0
- package/dist/modules/math/line.js +50 -0
- package/dist/modules/math/point.d.ts +34 -0
- package/dist/modules/math/point.js +71 -0
- package/dist/modules/math/polygon.d.ts +45 -0
- package/dist/modules/math/polygon.js +273 -0
- package/dist/modules/math/rect.d.ts +6 -0
- package/dist/modules/math/rect.js +0 -0
- package/dist/modules/math/size.d.ts +4 -0
- package/dist/modules/math/size.js +0 -0
- package/dist/modules/number/number.util.d.ts +9 -0
- package/dist/modules/number/number.util.js +27 -0
- package/dist/modules/object/object.util.d.ts +7 -0
- package/dist/modules/object/object.util.js +63 -0
- package/dist/modules/path/path.util.d.ts +11 -0
- package/dist/modules/path/path.util.js +59 -0
- package/dist/modules/random/random.util.d.ts +17 -0
- package/dist/modules/random/random.util.js +57 -0
- package/dist/modules/readable-stream/readable-stream.util.d.ts +3 -0
- package/dist/modules/readable-stream/readable-stream.util.js +26 -0
- package/dist/modules/reflection/interfaces/parameter.interface.d.ts +4 -0
- package/dist/modules/reflection/interfaces/parameter.interface.js +0 -0
- package/dist/modules/reflection/models/attribute.model.d.ts +12 -0
- package/dist/modules/reflection/models/attribute.model.js +17 -0
- package/dist/modules/reflection/models/class-attribute.model.d.ts +4 -0
- package/dist/modules/reflection/models/class-attribute.model.js +6 -0
- package/dist/modules/reflection/models/method-attribute.model.d.ts +5 -0
- package/dist/modules/reflection/models/method-attribute.model.js +8 -0
- package/dist/modules/reflection/models/parameter-attribute.model.d.ts +7 -0
- package/dist/modules/reflection/models/parameter-attribute.model.js +21 -0
- package/dist/modules/reflection/models/property-attribute.model.d.ts +5 -0
- package/dist/modules/reflection/models/property-attribute.model.js +8 -0
- package/dist/modules/reflection/models/property-proxy-attribute.model.d.ts +15 -0
- package/dist/modules/reflection/models/property-proxy-attribute.model.js +19 -0
- package/dist/modules/reflection/types/constructor.type.d.ts +2 -0
- package/dist/modules/reflection/types/constructor.type.js +0 -0
- package/dist/modules/reflection/types/instance.type.d.ts +7 -0
- package/dist/modules/reflection/types/instance.type.js +0 -0
- package/dist/modules/reflection/types/type.type.d.ts +2 -0
- package/dist/modules/reflection/types/type.type.js +0 -0
- package/dist/modules/reflection/utils/decorator.util.d.ts +70 -0
- package/dist/modules/reflection/utils/decorator.util.js +135 -0
- package/dist/modules/reflection/utils/reflection.util.d.ts +140 -0
- package/dist/modules/reflection/utils/reflection.util.js +311 -0
- package/dist/modules/router/router.util.d.ts +33 -0
- package/dist/modules/router/router.util.js +59 -0
- package/dist/modules/state/adaptors/array/array-adaptor.util.d.ts +25 -0
- package/dist/modules/state/adaptors/array/array-adaptor.util.js +97 -0
- package/dist/modules/state/adaptors/entity/entity-adaptor.util.d.ts +35 -0
- package/dist/modules/state/adaptors/entity/entity-adaptor.util.js +158 -0
- package/dist/modules/state/adaptors/entity/entity-map.type.d.ts +4 -0
- package/dist/modules/state/adaptors/entity/entity-map.type.js +0 -0
- package/dist/modules/state/adaptors/entity/entity.interface.d.ts +3 -0
- package/dist/modules/state/adaptors/entity/entity.interface.js +0 -0
- package/dist/modules/state/state.model.d.ts +46 -0
- package/dist/modules/state/state.model.js +129 -0
- package/dist/modules/state/update.type.d.ts +2 -0
- package/dist/modules/state/update.type.js +0 -0
- package/dist/modules/string/string.util.d.ts +11 -0
- package/dist/modules/string/string.util.js +42 -0
- package/dist/modules/subscribable/subscribable.model.d.ts +10 -0
- package/dist/modules/subscribable/subscribable.model.js +34 -0
- package/dist/modules/subscribable/subscription.interface.d.ts +3 -0
- package/dist/modules/subscribable/subscription.interface.js +0 -0
- package/dist/modules/tson/error.d.ts +8 -0
- package/dist/modules/tson/error.js +13 -0
- package/dist/modules/tson/schema.d.ts +10 -0
- package/dist/modules/tson/schema.js +0 -0
- package/dist/modules/tson/schemas/any.d.ts +14 -0
- package/dist/modules/tson/schemas/any.js +27 -0
- package/dist/modules/tson/schemas/array.d.ts +21 -0
- package/dist/modules/tson/schemas/array.js +80 -0
- package/dist/modules/tson/schemas/boolean.d.ts +14 -0
- package/dist/modules/tson/schemas/boolean.js +38 -0
- package/dist/modules/tson/schemas/enum.d.ts +15 -0
- package/dist/modules/tson/schemas/enum.js +43 -0
- package/dist/modules/tson/schemas/number.d.ts +20 -0
- package/dist/modules/tson/schemas/number.js +66 -0
- package/dist/modules/tson/schemas/object.d.ts +33 -0
- package/dist/modules/tson/schemas/object.js +88 -0
- package/dist/modules/tson/schemas/schema-base.d.ts +12 -0
- package/dist/modules/tson/schemas/schema-base.js +14 -0
- package/dist/modules/tson/schemas/string.d.ts +19 -0
- package/dist/modules/tson/schemas/string.js +60 -0
- package/dist/modules/tson/schemas/union.d.ts +16 -0
- package/dist/modules/tson/schemas/union.js +56 -0
- package/dist/modules/tson/tson.d.ts +41 -0
- package/dist/modules/tson/tson.js +138 -0
- package/dist/modules/tson/type.d.ts +53 -0
- package/dist/modules/tson/type.js +0 -0
- package/dist/modules/value/value.util.d.ts +18 -0
- package/dist/modules/value/value.util.js +180 -0
- package/dist/types/awaitable.type.d.ts +1 -0
- package/dist/types/awaitable.type.js +0 -0
- package/dist/types/camel-to-kebab.type.d.ts +1 -0
- package/dist/types/camel-to-kebab.type.js +0 -0
- package/dist/types/has-key.type.d.ts +3 -0
- package/dist/types/has-key.type.js +0 -0
- package/dist/types/is-union.type.d.ts +1 -0
- package/dist/types/is-union.type.js +0 -0
- package/dist/types/keys-of-type.type.d.ts +5 -0
- package/dist/types/keys-of-type.type.js +0 -0
- package/dist/types/keys-with-fix.type.d.ts +3 -0
- package/dist/types/keys-with-fix.type.js +0 -0
- package/dist/types/optional-keys.type.d.ts +6 -0
- package/dist/types/optional-keys.type.js +0 -0
- package/dist/types/partial.type.d.ts +6 -0
- package/dist/types/partial.type.js +0 -0
- package/dist/types/predicate.type.d.ts +1 -0
- package/dist/types/predicate.type.js +0 -0
- package/dist/types/recursive-readonly.type.d.ts +3 -0
- package/dist/types/recursive-readonly.type.js +0 -0
- package/dist/types/recursive-value.type.d.ts +3 -0
- package/dist/types/recursive-value.type.js +0 -0
- package/dist/types/selector.type.d.ts +1 -0
- package/dist/types/selector.type.js +0 -0
- package/package.json +1 -1
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
export const MimeType = {
|
|
2
|
+
any: '*.*',
|
|
3
|
+
$323: 'text/h323',
|
|
4
|
+
$3gp: 'video/3gpp',
|
|
5
|
+
$7z: 'application/x-7z-compressed',
|
|
6
|
+
abw: 'application/x-abiword',
|
|
7
|
+
ai: 'application/postscript',
|
|
8
|
+
aif: 'audio/x-aiff',
|
|
9
|
+
aifc: 'audio/x-aiff',
|
|
10
|
+
aiff: 'audio/x-aiff',
|
|
11
|
+
alc: 'chemical/x-alchemy',
|
|
12
|
+
art: 'image/x-jg',
|
|
13
|
+
asc: 'text/plain',
|
|
14
|
+
asf: 'video/x-ms-asf',
|
|
15
|
+
$asn: 'chemical/x-ncbi-asn1',
|
|
16
|
+
asn: 'chemical/x-ncbi-asn1-spec',
|
|
17
|
+
aso: 'chemical/x-ncbi-asn1-binary',
|
|
18
|
+
asx: 'video/x-ms-asf',
|
|
19
|
+
atom: 'application/atom',
|
|
20
|
+
atomcat: 'application/atomcat+xml',
|
|
21
|
+
atomsrv: 'application/atomserv+xml',
|
|
22
|
+
au: 'audio/basic',
|
|
23
|
+
avi: 'video/x-msvideo',
|
|
24
|
+
bak: 'application/x-trash',
|
|
25
|
+
bat: 'application/x-msdos-program',
|
|
26
|
+
b: 'chemical/x-molconn-Z',
|
|
27
|
+
bcpio: 'application/x-bcpio',
|
|
28
|
+
bib: 'text/x-bibtex',
|
|
29
|
+
bin: 'application/octet-stream',
|
|
30
|
+
bmp: 'image/x-ms-bmp',
|
|
31
|
+
book: 'application/x-maker',
|
|
32
|
+
boo: 'text/x-boo',
|
|
33
|
+
bsd: 'chemical/x-crossfire',
|
|
34
|
+
c3d: 'chemical/x-chem3d',
|
|
35
|
+
cab: 'application/x-cab',
|
|
36
|
+
cac: 'chemical/x-cache',
|
|
37
|
+
cache: 'chemical/x-cache',
|
|
38
|
+
cap: 'application/cap',
|
|
39
|
+
cascii: 'chemical/x-cactvs-binary',
|
|
40
|
+
cat: 'application/vnd.ms-pki.seccat',
|
|
41
|
+
cbin: 'chemical/x-cactvs-binary',
|
|
42
|
+
cbr: 'application/x-cbr',
|
|
43
|
+
cbz: 'application/x-cbz',
|
|
44
|
+
cc: 'text/x-c++src',
|
|
45
|
+
cdf: 'application/x-cdf',
|
|
46
|
+
cdr: 'image/x-coreldraw',
|
|
47
|
+
cdt: 'image/x-coreldrawtemplate',
|
|
48
|
+
cdx: 'chemical/x-cdx',
|
|
49
|
+
cdy: 'application/vnd.cinderella',
|
|
50
|
+
cef: 'chemical/x-cxf',
|
|
51
|
+
cer: 'chemical/x-cerius',
|
|
52
|
+
chm: 'chemical/x-chemdraw',
|
|
53
|
+
chrt: 'application/x-kchart',
|
|
54
|
+
cif: 'chemical/x-cif',
|
|
55
|
+
$class: 'application/java-vm',
|
|
56
|
+
cls: 'text/x-tex',
|
|
57
|
+
cmdf: 'chemical/x-cmdf',
|
|
58
|
+
cml: 'chemical/x-cml',
|
|
59
|
+
cod: 'application/vnd.rim.cod',
|
|
60
|
+
com: 'application/x-msdos-program',
|
|
61
|
+
cpa: 'chemical/x-compass',
|
|
62
|
+
cpio: 'application/x-cpio',
|
|
63
|
+
cpp: 'text/x-c++src',
|
|
64
|
+
$cpt: 'application/mac-compactpro',
|
|
65
|
+
cpt: 'image/x-corelphotopaint',
|
|
66
|
+
crl: 'application/x-pkcs7-crl',
|
|
67
|
+
crt: 'application/x-x509-ca-cert',
|
|
68
|
+
csf: 'chemical/x-cache-csf',
|
|
69
|
+
$csh: 'application/x-csh',
|
|
70
|
+
csh: 'text/x-csh',
|
|
71
|
+
csm: 'chemical/x-csml',
|
|
72
|
+
csml: 'chemical/x-csml',
|
|
73
|
+
css: 'text/css',
|
|
74
|
+
csv: 'text/csv',
|
|
75
|
+
ctab: 'chemical/x-cactvs-binary',
|
|
76
|
+
c: 'text/x-csrc',
|
|
77
|
+
ctx: 'chemical/x-ctx',
|
|
78
|
+
cu: 'application/cu-seeme',
|
|
79
|
+
cub: 'chemical/x-gaussian-cube',
|
|
80
|
+
cxf: 'chemical/x-cxf',
|
|
81
|
+
cxx: 'text/x-c++src',
|
|
82
|
+
dat: 'chemical/x-mopac-input',
|
|
83
|
+
dcr: 'application/x-director',
|
|
84
|
+
deb: 'application/x-debian-package',
|
|
85
|
+
diff: 'text/x-diff',
|
|
86
|
+
dif: 'video/dv',
|
|
87
|
+
dir: 'application/x-director',
|
|
88
|
+
djv: 'image/vnd.djvu',
|
|
89
|
+
djvu: 'image/vnd.djvu',
|
|
90
|
+
dll: 'application/x-msdos-program',
|
|
91
|
+
dl: 'video/dl',
|
|
92
|
+
dmg: 'application/x-apple-diskimage',
|
|
93
|
+
dms: 'application/x-dms',
|
|
94
|
+
doc: 'application/msword',
|
|
95
|
+
dot: 'application/msword',
|
|
96
|
+
d: 'text/x-dsrc',
|
|
97
|
+
dvi: 'application/x-dvi',
|
|
98
|
+
dv: 'video/dv',
|
|
99
|
+
dx: 'chemical/x-jcamp-dx',
|
|
100
|
+
dxr: 'application/x-director',
|
|
101
|
+
emb: 'chemical/x-embl-dl-nucleotide',
|
|
102
|
+
embl: 'chemical/x-embl-dl-nucleotide',
|
|
103
|
+
eml: 'message/rfc822',
|
|
104
|
+
$ent: 'chemical/x-ncbi-asn1-ascii',
|
|
105
|
+
ent: 'chemical/x-pdb',
|
|
106
|
+
eps: 'application/postscript',
|
|
107
|
+
etx: 'text/x-setext',
|
|
108
|
+
exe: 'application/x-msdos-program',
|
|
109
|
+
ez: 'application/andrew-inset',
|
|
110
|
+
fb: 'application/x-maker',
|
|
111
|
+
fbdoc: 'application/x-maker',
|
|
112
|
+
fch: 'chemical/x-gaussian-checkpoint',
|
|
113
|
+
fchk: 'chemical/x-gaussian-checkpoint',
|
|
114
|
+
fig: 'application/x-xfig',
|
|
115
|
+
flac: 'application/x-flac',
|
|
116
|
+
fli: 'video/fli',
|
|
117
|
+
fm: 'application/x-maker',
|
|
118
|
+
frame: 'application/x-maker',
|
|
119
|
+
frm: 'application/x-maker',
|
|
120
|
+
gal: 'chemical/x-gaussian-log',
|
|
121
|
+
gam: 'chemical/x-gamess-input',
|
|
122
|
+
gamin: 'chemical/x-gamess-input',
|
|
123
|
+
gau: 'chemical/x-gaussian-input',
|
|
124
|
+
gcd: 'text/x-pcs-gcd',
|
|
125
|
+
gcf: 'application/x-graphing-calculator',
|
|
126
|
+
gcg: 'chemical/x-gcg8-sequence',
|
|
127
|
+
gen: 'chemical/x-genbank',
|
|
128
|
+
gf: 'application/x-tex-gf',
|
|
129
|
+
gif: 'image/gif',
|
|
130
|
+
gjc: 'chemical/x-gaussian-input',
|
|
131
|
+
gjf: 'chemical/x-gaussian-input',
|
|
132
|
+
gl: 'video/gl',
|
|
133
|
+
gnumeric: 'application/x-gnumeric',
|
|
134
|
+
gpt: 'chemical/x-mopac-graph',
|
|
135
|
+
gsf: 'application/x-font',
|
|
136
|
+
gsm: 'audio/x-gsm',
|
|
137
|
+
gtar: 'application/x-gtar',
|
|
138
|
+
hdf: 'application/x-hdf',
|
|
139
|
+
hh: 'text/x-c++hdr',
|
|
140
|
+
hin: 'chemical/x-hin',
|
|
141
|
+
hpp: 'text/x-c++hdr',
|
|
142
|
+
hqx: 'application/mac-binhex40',
|
|
143
|
+
hs: 'text/x-haskell',
|
|
144
|
+
hta: 'application/hta',
|
|
145
|
+
htc: 'text/x-component',
|
|
146
|
+
$h: 'text/x-chdr',
|
|
147
|
+
html: 'text/html',
|
|
148
|
+
htm: 'text/html',
|
|
149
|
+
hxx: 'text/x-c++hdr',
|
|
150
|
+
ica: 'application/x-ica',
|
|
151
|
+
ice: 'x-conference/x-cooltalk',
|
|
152
|
+
ico: 'image/x-icon',
|
|
153
|
+
ics: 'text/calendar',
|
|
154
|
+
icz: 'text/calendar',
|
|
155
|
+
ief: 'image/ief',
|
|
156
|
+
iges: 'model/iges',
|
|
157
|
+
igs: 'model/iges',
|
|
158
|
+
iii: 'application/x-iphone',
|
|
159
|
+
inp: 'chemical/x-gamess-input',
|
|
160
|
+
ins: 'application/x-internet-signup',
|
|
161
|
+
iso: 'application/x-iso9660-image',
|
|
162
|
+
isp: 'application/x-internet-signup',
|
|
163
|
+
ist: 'chemical/x-isostar',
|
|
164
|
+
istr: 'chemical/x-isostar',
|
|
165
|
+
jad: 'text/vnd.sun.j2me.app-descriptor',
|
|
166
|
+
jar: 'application/java-archive',
|
|
167
|
+
java: 'text/x-java',
|
|
168
|
+
jdx: 'chemical/x-jcamp-dx',
|
|
169
|
+
jmz: 'application/x-jmol',
|
|
170
|
+
jng: 'image/x-jng',
|
|
171
|
+
jnlp: 'application/x-java-jnlp-file',
|
|
172
|
+
jpeg: 'image/jpeg',
|
|
173
|
+
jpe: 'image/jpeg',
|
|
174
|
+
jpg: 'image/jpeg',
|
|
175
|
+
js: 'application/x-javascript',
|
|
176
|
+
json: 'application/json',
|
|
177
|
+
kar: 'audio/midi',
|
|
178
|
+
key: 'application/pgp-keys',
|
|
179
|
+
kil: 'application/x-killustrator',
|
|
180
|
+
kin: 'chemical/x-kinemage',
|
|
181
|
+
kml: 'application/vnd.google-earth.kml+xml',
|
|
182
|
+
kmz: 'application/vnd.google-earth.kmz',
|
|
183
|
+
kpr: 'application/x-kpresenter',
|
|
184
|
+
kpt: 'application/x-kpresenter',
|
|
185
|
+
ksp: 'application/x-kspread',
|
|
186
|
+
kwd: 'application/x-kword',
|
|
187
|
+
kwt: 'application/x-kword',
|
|
188
|
+
latex: 'application/x-latex',
|
|
189
|
+
lha: 'application/x-lha',
|
|
190
|
+
lhs: 'text/x-literate-haskell',
|
|
191
|
+
lsf: 'video/x-la-asf',
|
|
192
|
+
lsx: 'video/x-la-asf',
|
|
193
|
+
ltx: 'text/x-tex',
|
|
194
|
+
lyx: 'application/x-lyx',
|
|
195
|
+
lzh: 'application/x-lzh',
|
|
196
|
+
lzx: 'application/x-lzx',
|
|
197
|
+
$m3u: 'audio/mpegurl',
|
|
198
|
+
m3u: 'audio/x-mpegurl',
|
|
199
|
+
$m4a: 'audio/mpeg',
|
|
200
|
+
m4a: 'video/mp4',
|
|
201
|
+
m4b: 'video/mp4',
|
|
202
|
+
m4v: 'video/mp4',
|
|
203
|
+
maker: 'application/x-maker',
|
|
204
|
+
man: 'application/x-troff-man',
|
|
205
|
+
mcif: 'chemical/x-mmcif',
|
|
206
|
+
mcm: 'chemical/x-macmolecule',
|
|
207
|
+
mdb: 'application/msaccess',
|
|
208
|
+
me: 'application/x-troff-me',
|
|
209
|
+
mesh: 'model/mesh',
|
|
210
|
+
mid: 'audio/midi',
|
|
211
|
+
midi: 'audio/midi',
|
|
212
|
+
mif: 'application/x-mif',
|
|
213
|
+
mm: 'application/x-freemind',
|
|
214
|
+
mmd: 'chemical/x-macromodel-input',
|
|
215
|
+
mmf: 'application/vnd.smaf',
|
|
216
|
+
mml: 'text/mathml',
|
|
217
|
+
mmod: 'chemical/x-macromodel-input',
|
|
218
|
+
mng: 'video/x-mng',
|
|
219
|
+
moc: 'text/x-moc',
|
|
220
|
+
mol2: 'chemical/x-mol2',
|
|
221
|
+
mol: 'chemical/x-mdl-molfile',
|
|
222
|
+
moo: 'chemical/x-mopac-out',
|
|
223
|
+
mop: 'chemical/x-mopac-input',
|
|
224
|
+
mopcrt: 'chemical/x-mopac-input',
|
|
225
|
+
movie: 'video/x-sgi-movie',
|
|
226
|
+
mov: 'video/quicktime',
|
|
227
|
+
mp2: 'audio/mpeg',
|
|
228
|
+
mp3: 'audio/mpeg',
|
|
229
|
+
mp4: 'video/mp4',
|
|
230
|
+
mpc: 'chemical/x-mopac-input',
|
|
231
|
+
mpega: 'audio/mpeg',
|
|
232
|
+
mpeg: 'video/mpeg',
|
|
233
|
+
mpe: 'video/mpeg',
|
|
234
|
+
mpga: 'audio/mpeg',
|
|
235
|
+
mpg: 'video/mpeg',
|
|
236
|
+
ms: 'application/x-troff-ms',
|
|
237
|
+
msh: 'model/mesh',
|
|
238
|
+
msi: 'application/x-msi',
|
|
239
|
+
mvb: 'chemical/x-mopac-vib',
|
|
240
|
+
mxu: 'video/vnd.mpegurl',
|
|
241
|
+
nb: 'application/mathematica',
|
|
242
|
+
nc: 'application/x-netcdf',
|
|
243
|
+
nwc: 'application/x-nwc',
|
|
244
|
+
o: 'application/x-object',
|
|
245
|
+
oda: 'application/oda',
|
|
246
|
+
odb: 'application/vnd.oasis.opendocument.database',
|
|
247
|
+
odc: 'application/vnd.oasis.opendocument.chart',
|
|
248
|
+
odf: 'application/vnd.oasis.opendocument.formula',
|
|
249
|
+
odg: 'application/vnd.oasis.opendocument.graphics',
|
|
250
|
+
odi: 'application/vnd.oasis.opendocument.image',
|
|
251
|
+
odm: 'application/vnd.oasis.opendocument.text-master',
|
|
252
|
+
odp: 'application/vnd.oasis.opendocument.presentation',
|
|
253
|
+
ods: 'application/vnd.oasis.opendocument.spreadsheet',
|
|
254
|
+
odt: 'application/vnd.oasis.opendocument.text',
|
|
255
|
+
oga: 'audio/ogg',
|
|
256
|
+
ogg: 'application/ogg',
|
|
257
|
+
ogv: 'video/ogg',
|
|
258
|
+
ogx: 'application/ogg',
|
|
259
|
+
old: 'application/x-trash',
|
|
260
|
+
otg: 'application/vnd.oasis.opendocument.graphics-template',
|
|
261
|
+
oth: 'application/vnd.oasis.opendocument.text-web',
|
|
262
|
+
otp: 'application/vnd.oasis.opendocument.presentation-template',
|
|
263
|
+
ots: 'application/vnd.oasis.opendocument.spreadsheet-template',
|
|
264
|
+
ott: 'application/vnd.oasis.opendocument.text-template',
|
|
265
|
+
oza: 'application/x-oz-application',
|
|
266
|
+
p7r: 'application/x-pkcs7-certreqresp',
|
|
267
|
+
pac: 'application/x-ns-proxy-autoconfig',
|
|
268
|
+
pas: 'text/x-pascal',
|
|
269
|
+
patch: 'text/x-diff',
|
|
270
|
+
pat: 'image/x-coreldrawpattern',
|
|
271
|
+
pbm: 'image/x-portable-bitmap',
|
|
272
|
+
pcap: 'application/cap',
|
|
273
|
+
pcf: 'application/x-font',
|
|
274
|
+
// pcf.Z : 'application/x-font',
|
|
275
|
+
pcx: 'image/pcx',
|
|
276
|
+
pdb: 'chemical/x-pdb',
|
|
277
|
+
pdf: 'application/pdf',
|
|
278
|
+
pfa: 'application/x-font',
|
|
279
|
+
pfb: 'application/x-font',
|
|
280
|
+
pgm: 'image/x-portable-graymap',
|
|
281
|
+
pgn: 'application/x-chess-pgn',
|
|
282
|
+
pgp: 'application/pgp-signature',
|
|
283
|
+
php3: 'application/x-httpd-php3',
|
|
284
|
+
php3p: 'application/x-httpd-php3-preprocessed',
|
|
285
|
+
php4: 'application/x-httpd-php4',
|
|
286
|
+
php: 'application/x-httpd-php',
|
|
287
|
+
phps: 'application/x-httpd-php-source',
|
|
288
|
+
pht: 'application/x-httpd-php',
|
|
289
|
+
phtml: 'application/x-httpd-php',
|
|
290
|
+
pk: 'application/x-tex-pk',
|
|
291
|
+
pls: 'audio/x-scpls',
|
|
292
|
+
pl: 'text/x-perl',
|
|
293
|
+
pm: 'text/x-perl',
|
|
294
|
+
png: 'image/png',
|
|
295
|
+
pnm: 'image/x-portable-anymap',
|
|
296
|
+
pot: 'text/plain',
|
|
297
|
+
ppm: 'image/x-portable-pixmap',
|
|
298
|
+
pps: 'application/vnd.ms-powerpoint',
|
|
299
|
+
ppt: 'application/vnd.ms-powerpoint',
|
|
300
|
+
prf: 'application/pics-rules',
|
|
301
|
+
prt: 'chemical/x-ncbi-asn1-ascii',
|
|
302
|
+
ps: 'application/postscript',
|
|
303
|
+
psd: 'image/x-photoshop',
|
|
304
|
+
p: 'text/x-pascal',
|
|
305
|
+
pyc: 'application/x-python-code',
|
|
306
|
+
pyo: 'application/x-python-code',
|
|
307
|
+
py: 'text/x-python',
|
|
308
|
+
qtl: 'application/x-quicktimeplayer',
|
|
309
|
+
qt: 'video/quicktime',
|
|
310
|
+
$ra: 'audio/x-pn-realaudio',
|
|
311
|
+
ra: 'audio/x-realaudio',
|
|
312
|
+
ram: 'audio/x-pn-realaudio',
|
|
313
|
+
rar: 'application/rar',
|
|
314
|
+
ras: 'image/x-cmu-raster',
|
|
315
|
+
rd: 'chemical/x-mdl-rdfile',
|
|
316
|
+
rdf: 'application/rdf+xml',
|
|
317
|
+
rgb: 'image/x-rgb',
|
|
318
|
+
rhtml: 'application/x-httpd-eruby',
|
|
319
|
+
rm: 'audio/x-pn-realaudio',
|
|
320
|
+
roff: 'application/x-troff',
|
|
321
|
+
ros: 'chemical/x-rosdal',
|
|
322
|
+
rpm: 'application/x-redhat-package-manager',
|
|
323
|
+
rss: 'application/rss+xml',
|
|
324
|
+
rtf: 'application/rtf',
|
|
325
|
+
rtx: 'text/richtext',
|
|
326
|
+
rxn: 'chemical/x-mdl-rxnfile',
|
|
327
|
+
sct: 'text/scriptlet',
|
|
328
|
+
sd2: 'audio/x-sd2',
|
|
329
|
+
sda: 'application/vnd.stardivision.draw',
|
|
330
|
+
sdc: 'application/vnd.stardivision.calc',
|
|
331
|
+
sd: 'chemical/x-mdl-sdfile',
|
|
332
|
+
sdd: 'application/vnd.stardivision.impress',
|
|
333
|
+
$sdf: 'application/vnd.stardivision.math',
|
|
334
|
+
sdf: 'chemical/x-mdl-sdfile',
|
|
335
|
+
sds: 'application/vnd.stardivision.chart',
|
|
336
|
+
sdw: 'application/vnd.stardivision.writer',
|
|
337
|
+
ser: 'application/java-serialized-object',
|
|
338
|
+
sgf: 'application/x-go-sgf',
|
|
339
|
+
sgl: 'application/vnd.stardivision.writer-global',
|
|
340
|
+
$sh: 'application/x-sh',
|
|
341
|
+
shar: 'application/x-shar',
|
|
342
|
+
sh: 'text/x-sh',
|
|
343
|
+
shtml: 'text/html',
|
|
344
|
+
sid: 'audio/prs.sid',
|
|
345
|
+
sik: 'application/x-trash',
|
|
346
|
+
silo: 'model/mesh',
|
|
347
|
+
sis: 'application/vnd.symbian.install',
|
|
348
|
+
sisx: 'x-epoc/x-sisx-app',
|
|
349
|
+
sit: 'application/x-stuffit',
|
|
350
|
+
sitx: 'application/x-stuffit',
|
|
351
|
+
skd: 'application/x-koan',
|
|
352
|
+
skm: 'application/x-koan',
|
|
353
|
+
skp: 'application/x-koan',
|
|
354
|
+
skt: 'application/x-koan',
|
|
355
|
+
smi: 'application/smil',
|
|
356
|
+
smil: 'application/smil',
|
|
357
|
+
snd: 'audio/basic',
|
|
358
|
+
spc: 'chemical/x-galactic-spc',
|
|
359
|
+
$spl: 'application/futuresplash',
|
|
360
|
+
spl: 'application/x-futuresplash',
|
|
361
|
+
spx: 'audio/ogg',
|
|
362
|
+
src: 'application/x-wais-source',
|
|
363
|
+
stc: 'application/vnd.sun.xml.calc.template',
|
|
364
|
+
std: 'application/vnd.sun.xml.draw.template',
|
|
365
|
+
sti: 'application/vnd.sun.xml.impress.template',
|
|
366
|
+
stl: 'application/vnd.ms-pki.stl',
|
|
367
|
+
stw: 'application/vnd.sun.xml.writer.template',
|
|
368
|
+
sty: 'text/x-tex',
|
|
369
|
+
sv4cpio: 'application/x-sv4cpio',
|
|
370
|
+
sv4crc: 'application/x-sv4crc',
|
|
371
|
+
svg: 'image/svg+xml',
|
|
372
|
+
svgz: 'image/svg+xml',
|
|
373
|
+
sw: 'chemical/x-swissprot',
|
|
374
|
+
swf: 'application/x-shockwave-flash',
|
|
375
|
+
swfl: 'application/x-shockwave-flash',
|
|
376
|
+
sxc: 'application/vnd.sun.xml.calc',
|
|
377
|
+
sxd: 'application/vnd.sun.xml.draw',
|
|
378
|
+
sxg: 'application/vnd.sun.xml.writer.global',
|
|
379
|
+
sxi: 'application/vnd.sun.xml.impress',
|
|
380
|
+
sxm: 'application/vnd.sun.xml.math',
|
|
381
|
+
sxw: 'application/vnd.sun.xml.writer',
|
|
382
|
+
t: 'application/x-troff',
|
|
383
|
+
tar: 'application/x-tar',
|
|
384
|
+
taz: 'application/x-gtar',
|
|
385
|
+
$tcl: 'application/x-tcl',
|
|
386
|
+
tcl: 'text/x-tcl',
|
|
387
|
+
texi: 'application/x-texinfo',
|
|
388
|
+
texinfo: 'application/x-texinfo',
|
|
389
|
+
tex: 'text/x-tex',
|
|
390
|
+
text: 'text/plain',
|
|
391
|
+
tgf: 'chemical/x-mdl-tgf',
|
|
392
|
+
tgz: 'application/x-gtar',
|
|
393
|
+
tiff: 'image/tiff',
|
|
394
|
+
tif: 'image/tiff',
|
|
395
|
+
tk: 'text/x-tcl',
|
|
396
|
+
tm: 'text/texmacs',
|
|
397
|
+
torrent: 'application/x-bittorrent',
|
|
398
|
+
tr: 'application/x-troff',
|
|
399
|
+
tsp: 'application/dsptype',
|
|
400
|
+
ts: 'text/texmacs',
|
|
401
|
+
tsv: 'text/tab-separated-values',
|
|
402
|
+
txt: 'text/plain',
|
|
403
|
+
udeb: 'application/x-debian-package',
|
|
404
|
+
uls: 'text/iuls',
|
|
405
|
+
ustar: 'application/x-ustar',
|
|
406
|
+
val: 'chemical/x-ncbi-asn1-binary',
|
|
407
|
+
vcd: 'application/x-cdlink',
|
|
408
|
+
vcf: 'text/x-vcard',
|
|
409
|
+
vcs: 'text/x-vcalendar',
|
|
410
|
+
vmd: 'chemical/x-vmd',
|
|
411
|
+
vms: 'chemical/x-vamas-iso14976',
|
|
412
|
+
$vrml: 'model/vrml',
|
|
413
|
+
vrml: 'x-world/x-vrml',
|
|
414
|
+
vrm: 'x-world/x-vrml',
|
|
415
|
+
vsd: 'application/vnd.visio',
|
|
416
|
+
wad: 'application/x-doom',
|
|
417
|
+
wav: 'audio/x-wav',
|
|
418
|
+
wax: 'audio/x-ms-wax',
|
|
419
|
+
wbmp: 'image/vnd.wap.wbmp',
|
|
420
|
+
wbxml: 'application/vnd.wap.wbxml',
|
|
421
|
+
wk: 'application/x-123',
|
|
422
|
+
wma: 'audio/x-ms-wma',
|
|
423
|
+
wmd: 'application/x-ms-wmd',
|
|
424
|
+
wmlc: 'application/vnd.wap.wmlc',
|
|
425
|
+
wmlsc: 'application/vnd.wap.wmlscriptc',
|
|
426
|
+
wmls: 'text/vnd.wap.wmlscript',
|
|
427
|
+
wml: 'text/vnd.wap.wml',
|
|
428
|
+
wm: 'video/x-ms-wm',
|
|
429
|
+
wmv: 'video/x-ms-wmv',
|
|
430
|
+
wmx: 'video/x-ms-wmx',
|
|
431
|
+
wmz: 'application/x-ms-wmz',
|
|
432
|
+
wp5: 'application/wordperfect5.1',
|
|
433
|
+
wpd: 'application/wordperfect',
|
|
434
|
+
$wrl: 'model/vrml',
|
|
435
|
+
wrl: 'x-world/x-vrml',
|
|
436
|
+
wsc: 'text/scriptlet',
|
|
437
|
+
wvx: 'video/x-ms-wvx',
|
|
438
|
+
wz: 'application/x-wingz',
|
|
439
|
+
xbm: 'image/x-xbitmap',
|
|
440
|
+
xcf: 'application/x-xcf',
|
|
441
|
+
xht: 'application/xhtml+xml',
|
|
442
|
+
xhtml: 'application/xhtml+xml',
|
|
443
|
+
xlb: 'application/vnd.ms-excel',
|
|
444
|
+
xls: 'application/vnd.ms-excel',
|
|
445
|
+
xlt: 'application/vnd.ms-excel',
|
|
446
|
+
xml: 'application/xml',
|
|
447
|
+
xpi: 'application/x-xpinstall',
|
|
448
|
+
xpm: 'image/x-xpixmap',
|
|
449
|
+
xsl: 'application/xml',
|
|
450
|
+
xtel: 'chemical/x-xtel',
|
|
451
|
+
xul: 'application/vnd.mozilla.xul+xml',
|
|
452
|
+
xwd: 'image/x-xwindowdump',
|
|
453
|
+
xyz: 'chemical/x-xyz',
|
|
454
|
+
zip: 'application/zip',
|
|
455
|
+
zmt: 'chemical/x-mopac-inpu',
|
|
456
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const Unit: {
|
|
2
|
+
readonly Bytes: {
|
|
3
|
+
readonly b: 1;
|
|
4
|
+
readonly kb: 1024;
|
|
5
|
+
readonly mb: number;
|
|
6
|
+
readonly gb: number;
|
|
7
|
+
readonly tb: number;
|
|
8
|
+
};
|
|
9
|
+
readonly Length: {
|
|
10
|
+
readonly mm: 1;
|
|
11
|
+
readonly cm: 10;
|
|
12
|
+
readonly m: 1000;
|
|
13
|
+
readonly km: 1000000;
|
|
14
|
+
};
|
|
15
|
+
readonly Time: {
|
|
16
|
+
readonly ms: 1;
|
|
17
|
+
readonly s: 1000;
|
|
18
|
+
readonly m: 60000;
|
|
19
|
+
readonly h: 3600000;
|
|
20
|
+
readonly d: 86400000;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export const Unit = {
|
|
2
|
+
Bytes: {
|
|
3
|
+
b: 1,
|
|
4
|
+
kb: 1024,
|
|
5
|
+
mb: 1024 * 1024,
|
|
6
|
+
gb: 1024 * 1024 * 1024,
|
|
7
|
+
tb: 1024 * 1024 * 1024 * 1024,
|
|
8
|
+
},
|
|
9
|
+
Length: {
|
|
10
|
+
mm: 1,
|
|
11
|
+
cm: 10,
|
|
12
|
+
m: 1000,
|
|
13
|
+
km: 1000000,
|
|
14
|
+
},
|
|
15
|
+
Time: {
|
|
16
|
+
ms: 1,
|
|
17
|
+
s: 1000,
|
|
18
|
+
m: 60000,
|
|
19
|
+
h: 3600000,
|
|
20
|
+
d: 86400000,
|
|
21
|
+
},
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function debounce<T extends any[], TResult>(ms: number, action: (...args: T) => TResult): (...args: T) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function isNodeEnvironment(): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { $String } from '../modules/string/string.util';
|
|
2
|
+
export function parsePath(path) {
|
|
3
|
+
return $String.isNullOrEmpty(path) ? []
|
|
4
|
+
: Array.from(path.matchAll(new RegExp(`(?<property>[^.[\\]]+)|\\[(['"\`])(?<index>.*?)\\2\\]`, 'g')))
|
|
5
|
+
.map(match => match.groups.property ?? match.groups.index);
|
|
6
|
+
}
|
|
7
|
+
export function parsePathSelector(selector) {
|
|
8
|
+
const path = [];
|
|
9
|
+
const proxy = new Proxy({}, {
|
|
10
|
+
get: (target, key) => {
|
|
11
|
+
path.push(String(key));
|
|
12
|
+
return proxy;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
selector(proxy);
|
|
16
|
+
return path;
|
|
17
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export function parseUrl(url) {
|
|
2
|
+
const match = url.match(/^(.*):\/\/(([^:/?#]*)(?::([0-9]+))?)[/]{0,1}([^?#]*)\??([^#]*|)(#.*|)$/);
|
|
3
|
+
const getParameters = (search) => {
|
|
4
|
+
const result = {};
|
|
5
|
+
if (search) {
|
|
6
|
+
const params = new URLSearchParams(search);
|
|
7
|
+
params.forEach((value, key) => {
|
|
8
|
+
result[key] = value;
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
return result;
|
|
12
|
+
};
|
|
13
|
+
return (match && {
|
|
14
|
+
href: url,
|
|
15
|
+
domain: `${match[1]}://${match[2]}`,
|
|
16
|
+
protocol: match[1],
|
|
17
|
+
host: match[2],
|
|
18
|
+
hostname: match[3],
|
|
19
|
+
port: Number(match[4]) || null,
|
|
20
|
+
path: match[5],
|
|
21
|
+
search: match[6],
|
|
22
|
+
hash: match[7],
|
|
23
|
+
parameters: getParameters(match[6]),
|
|
24
|
+
});
|
|
25
|
+
}
|