CH-J ToolsSerververwaltung über SSH
Menü
Veröffentlichte Quellen

CH-J Tools

Durchsuchen Sie Verzeichnisse und Dateien einer bestimmten Anwendungsausgabe.

Quellen als ZIP herunterladen
CH-J / Server Manager 872 Dateien
core-20261030T220507Z-61e4558d889f Hinzugefügt: · Erstellt:
core-bridge.ts Hinzugefügt: Datum nicht erfasst 3,2 KB · 86 Zeilen
Code Datei herunterladen
1/**
2 * Main-window bridge: exposes the frozen `window.chjCore` object with exactly the
3 * method names and semantics of the Electron 0.1.0 `corePreload.js`, implemented on
4 * top of the CH-J API. The unchanged renderer (`src/ui/app.js`) uses it as before.
5 */
6import { core } from "../index";
7import { bootInfo } from "./boot";
8import { installWindowChrome } from "./windowChrome";
9import { installActivityReporter } from "./activity";
11const { app, config, vault, biometrics, profiles, availability, ssh, diagnostics, updates, modules } = core;
12const boot = bootInfo();
14const chjCore = Object.freeze({
15 platform: boot.platform,
16 diagnostics: Object.freeze({
17 resolve: diagnostics.resolve,
18 start: diagnostics.start,
19 cancel: diagnostics.cancel,
20 get: diagnostics.get,
21 history: diagnostics.history,
22 removeHistory: diagnostics.removeHistory,
23 export: diagnostics.export,
24 copy: diagnostics.copy,
25 import: diagnostics.import,
26 onProgress: diagnostics.onProgress
27 }),
28 getInfo: app.getInfo,
29 openLegalDocument: app.openLegalDocument,
30 getConfig: config.get,
31 updateConfig: config.update,
32 getLanguages: config.languages,
33 listPlugins: modules.list,
34 getPluginState: modules.getState,
35 checkPluginCatalog: modules.checkCatalog,
36 installPlugin: modules.install,
37 uninstallPlugin: modules.uninstall,
38 openPlugin: modules.open,
39 onPluginWindowState: modules.onWindowState,
40 getVaultStatus: vault.status,
41 createVault: vault.create,
42 unlockVault: vault.unlock,
43 lockVault: vault.lock,
44 resetVault: vault.reset,
45 getBiometricStatus: biometrics.status,
46 enableBiometrics: biometrics.enable,
47 disableBiometrics: biometrics.disable,
48 unlockVaultWithBiometrics: biometrics.unlock,
49 autoUnlockVaultWithBiometrics: biometrics.autoUnlock,
50 authenticateSensitiveAction: biometrics.authenticate,
51 onVaultLocked: (callback: (payload: unknown) => void) => subscribeVault(callback),
52 listProfiles: profiles.list,
53 exportProfiles: profiles.export,
54 previewProfileImport: profiles.previewImport,
55 commitProfileImport: profiles.commitImport,
56 cancelProfileImport: profiles.cancelImport,
57 saveProfile: profiles.save,
58 deleteProfile: profiles.delete,
59 selectPrivateKey: profiles.selectPrivateKey,
60 listAvailability: availability.list,
61 refreshAvailability: availability.refresh,
62 onAvailabilityChanged: availability.onChanged,
63 listSshSessions: ssh.list,
64 connectSsh: ssh.connect,
65 trustSshHostKey: ssh.trustHostKey,
66 disconnectSsh: ssh.disconnect,
67 sendTerminalInput: ssh.input,
68 resizeTerminal: ssh.resize,
69 getUpdateState: updates.getState,
70 checkForUpdates: updates.check,
71 selectUpdateRelease: updates.select,
72 downloadUpdate: updates.download,
73 installUpdate: updates.install,
74 revealUpdate: updates.reveal,
75 onUpdateState: updates.onState,
76 onSshData: ssh.onData,
77 onSshState: ssh.onState,
78 onSshError: ssh.onError
79});
81import { subscribe } from "../transport";
82function subscribeVault(callback: (payload: unknown) => void) { return subscribe("vault:locked", callback); }
84Object.defineProperty(window, "chjCore", { value: chjCore, writable: false, configurable: false, enumerable: true });
85installWindowChrome(boot.platform, [".window-titlebar"], () => [document]);
86installActivityReporter();
SHA-25630a60e65afe4008a361b6929eb705f976b86bb3d16984326883263942db21a7a

CH-J Proprietary Software License 1.14 · Die Quellen werden unter der CH-J Proprietary Software License 1.14 bereitgestellt. Ihre Verfügbarkeit ändert die Lizenzbedingungen nicht und gewährt keine zusätzlichen Rechte.

SHA-256 des Archivs77380d4805485ffa4027fbe7858b5836f197a4aa9d52358a43e2d12d018744df
Dateien