adminforth 1.1.78 → 1.1.80
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/modules/codeInjector.js +51 -23
- package/dist/plugins/AuditLog/index.js +13 -0
- package/dist/plugins/AuditLog/types.js +1 -0
- package/dist/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
- package/dist/spa/index.html +1 -1
- package/dist/spa/package-lock.json +0 -111
- package/dist/spa/package.json +0 -1
- package/dist/spa/src/App.vue +133 -178
- package/dist/spa/src/components/MenuLink.vue +3 -3
- package/dist/spa/src/components/ResourceForm.vue +96 -96
- package/dist/spa/src/components/ResourceListTable.vue +84 -69
- package/dist/spa/src/components/ValueRenderer.vue +3 -2
- package/dist/spa/src/composables/useStores.ts +11 -24
- package/dist/spa/src/main.ts +1 -1
- package/dist/spa/src/router/index.ts +1 -0
- package/dist/spa/src/utils.ts +1 -1
- package/dist/spa/src/views/CreateView.vue +9 -1
- package/dist/spa/src/views/EditView.vue +9 -1
- package/dist/spa/src/views/ListView.vue +3 -12
- package/dist/spa/src/views/LoginView.vue +1 -6
- package/dist/spa/src/views/ResourceParent.vue +2 -1
- package/dist/spa/src/views/ShowView.vue +14 -6
- package/dist/spa/tailwind.config.js +1 -3
- package/modules/codeInjector.ts +56 -26
- package/package.json +1 -1
- package/plugins/S3UploadPlugin/custom/s3uploader.vue +4 -1
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
- package/dist/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
- package/dist/spa/src/components/SkeleteLoader.vue +0 -23
- package/plugins/TwoFactorsAuthPlugin/node_modules/.package-lock.json +0 -61
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/LICENSE +0 -21
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/README.md +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert/strict.d.ts +0 -8
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/assert.d.ts +0 -1040
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/async_hooks.d.ts +0 -541
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/buffer.d.ts +0 -2363
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/child_process.d.ts +0 -1544
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/cluster.d.ts +0 -578
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/console.d.ts +0 -452
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/constants.d.ts +0 -19
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/crypto.d.ts +0 -4523
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dgram.d.ts +0 -596
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns/promises.d.ts +0 -476
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dns.d.ts +0 -864
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/dom-events.d.ts +0 -124
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/domain.d.ts +0 -170
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/events.d.ts +0 -931
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs/promises.d.ts +0 -1245
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/fs.d.ts +0 -4317
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.d.ts +0 -412
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/globals.global.d.ts +0 -1
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http.d.ts +0 -1908
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/http2.d.ts +0 -2418
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/https.d.ts +0 -550
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/index.d.ts +0 -89
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/inspector.d.ts +0 -2746
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/module.d.ts +0 -315
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/net.d.ts +0 -999
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/os.d.ts +0 -495
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/package.json +0 -217
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/path.d.ts +0 -191
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/perf_hooks.d.ts +0 -905
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/process.d.ts +0 -1754
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/punycode.d.ts +0 -117
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/querystring.d.ts +0 -153
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline/promises.d.ts +0 -150
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/readline.d.ts +0 -540
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/repl.d.ts +0 -430
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/sea.d.ts +0 -153
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/consumers.d.ts +0 -12
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/promises.d.ts +0 -83
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream/web.d.ts +0 -367
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/stream.d.ts +0 -1707
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/string_decoder.d.ts +0 -67
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/test.d.ts +0 -1718
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers/promises.d.ts +0 -97
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/timers.d.ts +0 -240
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tls.d.ts +0 -1217
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/trace_events.d.ts +0 -197
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/tty.d.ts +0 -208
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/url.d.ts +0 -952
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/util.d.ts +0 -2292
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/v8.d.ts +0 -808
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/vm.d.ts +0 -924
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/wasi.d.ts +0 -181
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/worker_threads.d.ts +0 -694
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/node/zlib.d.ts +0 -530
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/LICENSE +0 -21
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/README.md +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/index.d.ts +0 -127
- package/plugins/TwoFactorsAuthPlugin/node_modules/@types/notp/package.json +0 -21
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/LICENSE +0 -201
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/README.md +0 -68
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.d.ts +0 -11
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/index.js +0 -51
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.d.ts +0 -4
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/dist/interfaces.js +0 -2
- package/plugins/TwoFactorsAuthPlugin/node_modules/node-2fa/package.json +0 -58
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/.travis.yml +0 -6
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/LICENSE +0 -22
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/Readme.md +0 -135
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP-verify.js +0 -33
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/examples/TOTP.js +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/index.js +0 -221
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/package.json +0 -22
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/mocha.opts +0 -1
- package/plugins/TwoFactorsAuthPlugin/node_modules/notp/test/notp.js +0 -217
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/LICENSE.txt +0 -19
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/Makefile +0 -24
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/README.md +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/index.js +0 -23
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/index.js +0 -26
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/lib/thirty-two/thirty-two.js +0 -128
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/package.json +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/thirty-two/spec/thirty-two_spec.js +0 -63
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/CopyrightNotice.txt +0 -15
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/LICENSE.txt +0 -12
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/README.md +0 -164
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/SECURITY.md +0 -41
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.d.ts +0 -37
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/index.js +0 -68
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/modules/package.json +0 -3
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/package.json +0 -47
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.d.ts +0 -453
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.html +0 -1
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.js +0 -374
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.es6.mjs +0 -373
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.html +0 -1
- package/plugins/TwoFactorsAuthPlugin/node_modules/tslib/tslib.js +0 -424
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/README.md +0 -6
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/agent.d.ts +0 -31
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/api.d.ts +0 -43
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/balanced-pool.d.ts +0 -18
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cache.d.ts +0 -36
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/client.d.ts +0 -97
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/connector.d.ts +0 -34
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/content-type.d.ts +0 -21
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/cookies.d.ts +0 -28
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/diagnostics-channel.d.ts +0 -67
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/dispatcher.d.ts +0 -241
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/errors.d.ts +0 -128
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/fetch.d.ts +0 -209
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/file.d.ts +0 -39
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/filereader.d.ts +0 -54
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/formdata.d.ts +0 -108
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/global-origin.d.ts +0 -7
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/handlers.d.ts +0 -9
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/header.d.ts +0 -4
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/index.d.ts +0 -63
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/interceptors.d.ts +0 -5
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-agent.d.ts +0 -50
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-client.d.ts +0 -25
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-errors.d.ts +0 -12
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/mock-pool.d.ts +0 -25
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/package.json +0 -55
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/patch.d.ts +0 -71
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool-stats.d.ts +0 -19
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/pool.d.ts +0 -28
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/proxy-agent.d.ts +0 -30
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/readable.d.ts +0 -61
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/webidl.d.ts +0 -220
- package/plugins/TwoFactorsAuthPlugin/node_modules/undici-types/websocket.d.ts +0 -131
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import type { Blob } from 'buffer'
|
|
4
|
-
import type { MessagePort } from 'worker_threads'
|
|
5
|
-
import {
|
|
6
|
-
EventTarget,
|
|
7
|
-
Event,
|
|
8
|
-
EventInit,
|
|
9
|
-
EventListenerOptions,
|
|
10
|
-
AddEventListenerOptions,
|
|
11
|
-
EventListenerOrEventListenerObject
|
|
12
|
-
} from './patch'
|
|
13
|
-
import Dispatcher from './dispatcher'
|
|
14
|
-
import { HeadersInit } from './fetch'
|
|
15
|
-
|
|
16
|
-
export type BinaryType = 'blob' | 'arraybuffer'
|
|
17
|
-
|
|
18
|
-
interface WebSocketEventMap {
|
|
19
|
-
close: CloseEvent
|
|
20
|
-
error: Event
|
|
21
|
-
message: MessageEvent
|
|
22
|
-
open: Event
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface WebSocket extends EventTarget {
|
|
26
|
-
binaryType: BinaryType
|
|
27
|
-
|
|
28
|
-
readonly bufferedAmount: number
|
|
29
|
-
readonly extensions: string
|
|
30
|
-
|
|
31
|
-
onclose: ((this: WebSocket, ev: WebSocketEventMap['close']) => any) | null
|
|
32
|
-
onerror: ((this: WebSocket, ev: WebSocketEventMap['error']) => any) | null
|
|
33
|
-
onmessage: ((this: WebSocket, ev: WebSocketEventMap['message']) => any) | null
|
|
34
|
-
onopen: ((this: WebSocket, ev: WebSocketEventMap['open']) => any) | null
|
|
35
|
-
|
|
36
|
-
readonly protocol: string
|
|
37
|
-
readonly readyState: number
|
|
38
|
-
readonly url: string
|
|
39
|
-
|
|
40
|
-
close(code?: number, reason?: string): void
|
|
41
|
-
send(data: string | ArrayBufferLike | Blob | ArrayBufferView): void
|
|
42
|
-
|
|
43
|
-
readonly CLOSED: number
|
|
44
|
-
readonly CLOSING: number
|
|
45
|
-
readonly CONNECTING: number
|
|
46
|
-
readonly OPEN: number
|
|
47
|
-
|
|
48
|
-
addEventListener<K extends keyof WebSocketEventMap>(
|
|
49
|
-
type: K,
|
|
50
|
-
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
51
|
-
options?: boolean | AddEventListenerOptions
|
|
52
|
-
): void
|
|
53
|
-
addEventListener(
|
|
54
|
-
type: string,
|
|
55
|
-
listener: EventListenerOrEventListenerObject,
|
|
56
|
-
options?: boolean | AddEventListenerOptions
|
|
57
|
-
): void
|
|
58
|
-
removeEventListener<K extends keyof WebSocketEventMap>(
|
|
59
|
-
type: K,
|
|
60
|
-
listener: (this: WebSocket, ev: WebSocketEventMap[K]) => any,
|
|
61
|
-
options?: boolean | EventListenerOptions
|
|
62
|
-
): void
|
|
63
|
-
removeEventListener(
|
|
64
|
-
type: string,
|
|
65
|
-
listener: EventListenerOrEventListenerObject,
|
|
66
|
-
options?: boolean | EventListenerOptions
|
|
67
|
-
): void
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export declare const WebSocket: {
|
|
71
|
-
prototype: WebSocket
|
|
72
|
-
new (url: string | URL, protocols?: string | string[] | WebSocketInit): WebSocket
|
|
73
|
-
readonly CLOSED: number
|
|
74
|
-
readonly CLOSING: number
|
|
75
|
-
readonly CONNECTING: number
|
|
76
|
-
readonly OPEN: number
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
interface CloseEventInit extends EventInit {
|
|
80
|
-
code?: number
|
|
81
|
-
reason?: string
|
|
82
|
-
wasClean?: boolean
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
interface CloseEvent extends Event {
|
|
86
|
-
readonly code: number
|
|
87
|
-
readonly reason: string
|
|
88
|
-
readonly wasClean: boolean
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export declare const CloseEvent: {
|
|
92
|
-
prototype: CloseEvent
|
|
93
|
-
new (type: string, eventInitDict?: CloseEventInit): CloseEvent
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
interface MessageEventInit<T = any> extends EventInit {
|
|
97
|
-
data?: T
|
|
98
|
-
lastEventId?: string
|
|
99
|
-
origin?: string
|
|
100
|
-
ports?: (typeof MessagePort)[]
|
|
101
|
-
source?: typeof MessagePort | null
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
interface MessageEvent<T = any> extends Event {
|
|
105
|
-
readonly data: T
|
|
106
|
-
readonly lastEventId: string
|
|
107
|
-
readonly origin: string
|
|
108
|
-
readonly ports: ReadonlyArray<typeof MessagePort>
|
|
109
|
-
readonly source: typeof MessagePort | null
|
|
110
|
-
initMessageEvent(
|
|
111
|
-
type: string,
|
|
112
|
-
bubbles?: boolean,
|
|
113
|
-
cancelable?: boolean,
|
|
114
|
-
data?: any,
|
|
115
|
-
origin?: string,
|
|
116
|
-
lastEventId?: string,
|
|
117
|
-
source?: typeof MessagePort | null,
|
|
118
|
-
ports?: (typeof MessagePort)[]
|
|
119
|
-
): void;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
export declare const MessageEvent: {
|
|
123
|
-
prototype: MessageEvent
|
|
124
|
-
new<T>(type: string, eventInitDict?: MessageEventInit<T>): MessageEvent<T>
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
interface WebSocketInit {
|
|
128
|
-
protocols?: string | string[],
|
|
129
|
-
dispatcher?: Dispatcher,
|
|
130
|
-
headers?: HeadersInit
|
|
131
|
-
}
|