CH-J Toolsserverio valdymas per SSH
Meniu
Paskelbtas šaltinis

CH-J Tools

Naršyti aplankus ir failus konkrečiai programai išleisti.

Atsisiųsti šaltinį ZIP
CH-J / Server Manager 1704 failai
0.1.2-beta Pridėta: · Pastatytas:
updates.ts Pridėta: Data neregistruota 836 B · 13 eilutės
Kodas Atsiųsti failą
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 · Šaltinis pateiktas pagal CH-J Proprietary Software License 1.14. Jo prieinamumas nekeičia licencijos sąlygų ir nesuteikia papildomų teisių.

Archyvas SHA-256ac8fe790f4ba60fc098f8c985fc2656cfcc6cdc21fb34b30e308a2b54e62258f
Failai