CH-J Tools透過 SSH 管理伺服器
選單
已發布的原始碼

CH-J Tools

瀏覽特定應用程式版本的目錄與檔案。

下載原始碼 ZIP
CH-J / Server Manager 1704 個檔案
0.1.2-beta 新增時間: · 建置時間:
standby.ts 新增時間: 未記錄日期 769 B · 11 行
程式碼 下載檔案
1/** Settings → Standby Helper: switches of the separate `ch-j-standby-helper` (menu entries, login, background). */
2import { call } from "../transport";
4export interface StandbyMonitor { enabled: boolean; intervalSecs: 30 | 60 | 300; check: "ssh" | "https" | "custom"; customPort: number; showAddresses: boolean }
5export interface StandbySettings { enabled: boolean; startAtLogin: boolean; menu: { verify: boolean; sign: boolean }; monitor?: StandbyMonitor }
6export interface StandbyState { settings: StandbySettings; status: Record<string, unknown> }
8export const standby = Object.freeze({
9 get: () => call<StandbyState>("core_standby_get", "standby:get"),
10 set: (settings: StandbySettings) => call<StandbyState>("core_standby_set", "standby:set", settings)
11});
SHA-256bfb0c8ef963e0b393ce5aa5d5a770e2f2e0b7c64fcb23ed856e90bc8936c1df6

CH-J Proprietary Software License 1.14 · 原始碼依 CH-J Proprietary Software License 1.14 提供。公開原始碼不會改變授權條款,也不會授予額外的權利。

壓縮檔 SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
檔案