TeaWeb/shared/js/events/GlobalEvents.ts

17 lines
587 B
TypeScript
Raw Normal View History

2020-04-06 16:29:40 +02:00
import {ConnectionHandler} from "tc-shared/ConnectionHandler";
import {Registry} from "tc-shared/events";
2020-04-06 16:29:40 +02:00
export interface ClientGlobalControlEvents {
/* open a basic window */
2020-04-06 16:29:40 +02:00
action_open_window: {
window: "bookmark-manage" | "query-manage" | "query-create" | "ban-list" | "permissions" | "token-list" | "token-use" | "settings",
connection?: ConnectionHandler
},
/* some more specific window openings */
action_open_window_connect: {
new_tab: boolean
2020-04-06 16:29:40 +02:00
}
}
export const global_client_actions = new Registry<ClientGlobalControlEvents>();