2020-04-06 14:29:40 +00:00
|
|
|
import {ConnectionHandler} from "tc-shared/ConnectionHandler";
|
2020-04-09 13:10:14 +00:00
|
|
|
import {Registry} from "tc-shared/events";
|
2020-04-06 14:29:40 +00:00
|
|
|
|
|
|
|
export interface ClientGlobalControlEvents {
|
2020-04-09 13:10:14 +00:00
|
|
|
/* open a basic window */
|
2020-04-06 14:29:40 +00:00
|
|
|
action_open_window: {
|
2020-07-21 22:55:28 +00:00
|
|
|
window:
|
|
|
|
"bookmark-manage" |
|
|
|
|
"query-manage" |
|
|
|
|
"query-create" |
|
|
|
|
"ban-list" |
|
|
|
|
"permissions" |
|
|
|
|
"token-list" |
|
|
|
|
"token-use" |
|
|
|
|
"settings",
|
2020-04-06 14:29:40 +00:00
|
|
|
connection?: ConnectionHandler
|
|
|
|
},
|
|
|
|
|
2020-08-08 13:20:32 +00:00
|
|
|
action_w2g: {
|
|
|
|
following: number,
|
|
|
|
handlerId: string
|
|
|
|
} | {
|
|
|
|
videoUrl: string,
|
|
|
|
handlerId: string
|
|
|
|
}
|
|
|
|
|
2020-04-09 13:10:14 +00:00
|
|
|
/* some more specific window openings */
|
|
|
|
action_open_window_connect: {
|
|
|
|
new_tab: boolean
|
2020-04-06 14:29:40 +00:00
|
|
|
}
|
2020-04-09 13:10:14 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
export const global_client_actions = new Registry<ClientGlobalControlEvents>();
|