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:
updates.ts Hozzáadva: Nem rögzített dátum 836 B · 13 sorok
Kód Fájl letöltése
1/** Core updates: signed release catalog (SHA-512 + OpenPGP), download and installer hand-off. */
2import { call, subscribe } from "../transport";
3import type { Payload } from "../types";
5export const updates = Object.freeze({
6 getState: () => call<Payload>("core_updates_get_state", "updates:getState"),
7 check: () => call<Payload>("core_updates_check", "updates:check"),
8 select: (id: string) => call<Payload>("core_updates_select", "updates:select", { id }),
9 download: () => call<Payload>("core_updates_download", "updates:download"),
10 install: () => call<{ ok: true; installed: boolean; restarting: boolean }>("core_updates_install", "updates:install"),
11 reveal: () => call<{ ok: true }>("core_updates_reveal", "updates:reveal"),
12 onState: (callback: (state: Payload) => void) => subscribe("core:updateState", callback)
13});
SHA-2567778a474dd4aba30f201c6b4dbc63a28f23e5622131c200f6bb6eed54ff4315f

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