Vydané zdroje
Stáhnout zdroje ZIP
CH-J Tools
Procházejte adresáře a soubory konkrétního vydání aplikace.
CH-J / Server Manager
872 souborů
core-20261030T220507Z-61e4558d889f
Přidáno: · Sestaveno:
1
/**2
* Main-window bridge: exposes the frozen `window.chjCore` object with exactly the3
* method names and semantics of the Electron 0.1.0 `corePreload.js`, implemented on4
* top of the CH-J API. The unchanged renderer (`src/ui/app.js`) uses it as before.5
*/6
import { core } from "../index";7
import { bootInfo } from "./boot";8
import { installWindowChrome } from "./windowChrome";9
import { installActivityReporter } from "./activity";11
const { app, config, vault, biometrics, profiles, availability, ssh, diagnostics, updates, modules } = core;12
const boot = bootInfo();14
const 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.onProgress27
}),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.onError79
});81
import { subscribe } from "../transport";82
function subscribeVault(callback: (payload: unknown) => void) { return subscribe("vault:locked", callback); }84
Object.defineProperty(window, "chjCore", { value: chjCore, writable: false, configurable: false, enumerable: true });85
installWindowChrome(boot.platform, [".window-titlebar"], () => [document]);86
installActivityReporter();SHA-256
30a60e65afe4008a361b6929eb705f976b86bb3d16984326883263942db21a7aCH-J Proprietary Software License 1.14 · Zdroje jsou zveřejněny pod CH-J Proprietary Software License 1.14. Jejich dostupnost nemění licenční podmínky ani neposkytuje další oprávnění.
SHA-256 archivu
77380d4805485ffa4027fbe7858b5836f197a4aa9d52358a43e2d12d018744df