CH-J Toolsszerverkezelés SSH felett
Menü
Közzétett forrás

CH-J Tools

Könyvtárak és fájlok böngészése egy adott alkalmazás kiadásához.

Letöltés forrás ZIP
CH-J / Server Manager 1704 fájlok
0.1.2-beta Hozzáadva: · Beépített:
ui.ts Hozzáadva: Nem rögzített dátum 1,0 KB · 19 sorok
Kód Fájl letöltése
1/** Module window: identity, language and window life cycle. */
2import { call, subscribeStrict } from "../transport";
3import type { ModuleManifest } from "../types";
5export const info = () => call<ModuleManifest>("module_get_info", "plugin:getInfo");
6export const close = () => call<{ ok: true }>("module_close", "plugin:close");
7export const minimize = () => call<{ ok: true }>("module_window_minimize", "plugin:window:minimize");
9/** Where the module runs: embedded in the main window or in its own window. */
10export const host = Object.freeze({
11 state: () => call<{ embedded: boolean }>("module_host_state", "plugin:host:state"),
12 detach: () => call<{ embedded: boolean }>("module_host_detach", "plugin:host:detach"),
13 attach: () => call<{ embedded: boolean }>("module_host_attach", "plugin:host:attach")
14});
16export const ui = Object.freeze({
17 getLanguage: () => call<string>("module_ui_get_language", "plugin:ui:getLanguage"),
18 onLanguageChanged: (callback: (language: string) => void) => subscribeStrict("module:ui:languageChanged", callback, "Language")
19});
SHA-2563ec4556b58dfbd885f024adcfd75a82086cc2ca96dc47abf49129def22267c48

CH-J Proprietary Software License 1.14 · A forrás a CH-J Proprietary Software License 1.14 alatt található. Rendelkezése nem változtatja meg a licenc feltételeit, és nem ad további jogokat.

Archive SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
Fájlok