CH-J ToolsPalvelimen hallinta yli SSH
Valikko
Julkaistu lähde

CH-J Tools

Selaile hakemistoja ja tiedostoja tietyn sovelluksen julkaisua varten.

Lataa lähde ZIP
CH-J / Server Manager 1704 tiedostot
0.1.2-beta Lisätty: · Rakennettu:
ui.ts Lisätty: Kirjaamaton päivä 1,0 KB · 19 rivit
Koodi Lataa tiedosto
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 · Lähde ilmoitetaan CH-J Proprietary Software License 1.14-koodilla. Sen saatavuus ei muuta lisenssiehtoja eikä myönnä lisäoikeuksia.

Arkisto SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
Tiedostot