@noldova/desktop.electron 0.0.0-stage → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +55 -2
- package/api/index.d.ts +11138 -0
- package/api/index.js +144 -0
- package/api/index.js.map +1 -0
- package/enums/file-save-outcome.js +14 -0
- package/enums/file-save-outcome.js.map +1 -0
- package/enums/main-process-failure-kind.js +13 -0
- package/enums/main-process-failure-kind.js.map +1 -0
- package/enums/menu-bar-row-type.js +14 -0
- package/enums/menu-bar-row-type.js.map +1 -0
- package/enums/menu-check.js +14 -0
- package/enums/menu-check.js.map +1 -0
- package/enums/path-command-outcome.js +16 -0
- package/enums/path-command-outcome.js.map +1 -0
- package/enums/quit-choice.js +14 -0
- package/enums/quit-choice.js.map +1 -0
- package/enums/quit-outcome.js +14 -0
- package/enums/quit-outcome.js.map +1 -0
- package/enums/startup-state-kind.js +19 -0
- package/enums/startup-state-kind.js.map +1 -0
- package/enums/tray-icon-state.js +16 -0
- package/enums/tray-icon-state.js.map +1 -0
- package/enums/update-state-kind.js +18 -0
- package/enums/update-state-kind.js.map +1 -0
- package/enums/web-address-kind.js +16 -0
- package/enums/web-address-kind.js.map +1 -0
- package/enums/window-error-admission.js +14 -0
- package/enums/window-error-admission.js.map +1 -0
- package/exceptions/app-image-folder-unwritable.exception.js +18 -0
- package/exceptions/app-image-folder-unwritable.exception.js.map +1 -0
- package/exceptions/app-image-leftover-not-removed.exception.js +17 -0
- package/exceptions/app-image-leftover-not-removed.exception.js.map +1 -0
- package/exceptions/app-image-not-replaced.exception.js +18 -0
- package/exceptions/app-image-not-replaced.exception.js.map +1 -0
- package/exceptions/app-image-unreadable.exception.js +18 -0
- package/exceptions/app-image-unreadable.exception.js.map +1 -0
- package/exceptions/databases-not-backed-up.exception.js +18 -0
- package/exceptions/databases-not-backed-up.exception.js.map +1 -0
- package/exceptions/debian-installer-missing.exception.js +15 -0
- package/exceptions/debian-installer-missing.exception.js.map +1 -0
- package/exceptions/debian-package-not-installed.exception.js +18 -0
- package/exceptions/debian-package-not-installed.exception.js.map +1 -0
- package/exceptions/device-identity.exception.js +17 -0
- package/exceptions/device-identity.exception.js.map +1 -0
- package/exceptions/electron.exception.js +14 -0
- package/exceptions/electron.exception.js.map +1 -0
- package/exceptions/installer-not-copied.exception.js +15 -0
- package/exceptions/installer-not-copied.exception.js.map +1 -0
- package/exceptions/installer-not-held.exception.js +17 -0
- package/exceptions/installer-not-held.exception.js.map +1 -0
- package/exceptions/installer-not-started.exception.js +18 -0
- package/exceptions/installer-not-started.exception.js.map +1 -0
- package/exceptions/installer-unsigned.exception.js +19 -0
- package/exceptions/installer-unsigned.exception.js.map +1 -0
- package/exceptions/not-an-app-image.exception.js +15 -0
- package/exceptions/not-an-app-image.exception.js.map +1 -0
- package/exceptions/path-command.exception.js +18 -0
- package/exceptions/path-command.exception.js.map +1 -0
- package/exceptions/processes-not-exited.exception.js +19 -0
- package/exceptions/processes-not-exited.exception.js.map +1 -0
- package/exceptions/program.exception.js +18 -0
- package/exceptions/program.exception.js.map +1 -0
- package/exceptions/restart-arguments-not-written.exception.js +15 -0
- package/exceptions/restart-arguments-not-written.exception.js.map +1 -0
- package/exceptions/runtime-starter-ended.exception.js +15 -0
- package/exceptions/runtime-starter-ended.exception.js.map +1 -0
- package/exceptions/runtime-starter-failed.exception.js +17 -0
- package/exceptions/runtime-starter-failed.exception.js.map +1 -0
- package/exceptions/ship-it-not-found.exception.js +15 -0
- package/exceptions/ship-it-not-found.exception.js.map +1 -0
- package/exceptions/ship-it-not-removed.exception.js +16 -0
- package/exceptions/ship-it-not-removed.exception.js.map +1 -0
- package/exceptions/ship-it-unreadable.exception.js +16 -0
- package/exceptions/ship-it-unreadable.exception.js.map +1 -0
- package/exceptions/stale-update.exception.js +14 -0
- package/exceptions/stale-update.exception.js.map +1 -0
- package/exceptions/unusable-folder.exception.js +18 -0
- package/exceptions/unusable-folder.exception.js.map +1 -0
- package/exceptions/update-changed-before-handoff.exception.js +15 -0
- package/exceptions/update-changed-before-handoff.exception.js.map +1 -0
- package/exceptions/update-checker-unknown.exception.js +15 -0
- package/exceptions/update-checker-unknown.exception.js.map +1 -0
- package/exceptions/update-download-interrupted.exception.js +15 -0
- package/exceptions/update-download-interrupted.exception.js.map +1 -0
- package/exceptions/update-download-mismatch.exception.js +15 -0
- package/exceptions/update-download-mismatch.exception.js.map +1 -0
- package/exceptions/update-failed-unexpectedly.exception.js +15 -0
- package/exceptions/update-failed-unexpectedly.exception.js.map +1 -0
- package/exceptions/update-feed-redirected.exception.js +15 -0
- package/exceptions/update-feed-redirected.exception.js.map +1 -0
- package/exceptions/update-feed-refused.exception.js +17 -0
- package/exceptions/update-feed-refused.exception.js.map +1 -0
- package/exceptions/update-feed-unreachable.exception.js +15 -0
- package/exceptions/update-feed-unreachable.exception.js.map +1 -0
- package/exceptions/update-handoff.exception.js +14 -0
- package/exceptions/update-handoff.exception.js.map +1 -0
- package/exceptions/update-holder-not-found.exception.js +15 -0
- package/exceptions/update-holder-not-found.exception.js.map +1 -0
- package/exceptions/update-info-invalid.exception.js +15 -0
- package/exceptions/update-info-invalid.exception.js.map +1 -0
- package/exceptions/update-no-longer-offered.exception.js +17 -0
- package/exceptions/update-no-longer-offered.exception.js.map +1 -0
- package/exceptions/update-not-signed.exception.js +15 -0
- package/exceptions/update-not-signed.exception.js.map +1 -0
- package/exceptions/update-not-staged-in-time.exception.js +15 -0
- package/exceptions/update-not-staged-in-time.exception.js.map +1 -0
- package/exceptions/update-not-staged.exception.js +15 -0
- package/exceptions/update-not-staged.exception.js.map +1 -0
- package/exceptions/update-refused.exception.js +19 -0
- package/exceptions/update-refused.exception.js.map +1 -0
- package/exceptions/update-runtime-not-found.exception.js +17 -0
- package/exceptions/update-runtime-not-found.exception.js.map +1 -0
- package/exceptions/update-runtime-not-reached.exception.js +17 -0
- package/exceptions/update-runtime-not-reached.exception.js.map +1 -0
- package/exceptions/update-runtime-still-starting.exception.js +17 -0
- package/exceptions/update-runtime-still-starting.exception.js.map +1 -0
- package/exceptions/update-stop-failed-unexpectedly.exception.js +15 -0
- package/exceptions/update-stop-failed-unexpectedly.exception.js.map +1 -0
- package/exceptions/update-stop.exception.js +14 -0
- package/exceptions/update-stop.exception.js.map +1 -0
- package/exceptions/update-under-way.exception.js +15 -0
- package/exceptions/update-under-way.exception.js.map +1 -0
- package/exceptions/update-unsaved.exception.js +19 -0
- package/exceptions/update-unsaved.exception.js.map +1 -0
- package/exceptions/update.exception.js +14 -0
- package/exceptions/update.exception.js.map +1 -0
- package/exceptions/window-state-not-connected.exception.js +15 -0
- package/exceptions/window-state-not-connected.exception.js.map +1 -0
- package/exceptions/window-state-refused.exception.js +19 -0
- package/exceptions/window-state-refused.exception.js.map +1 -0
- package/exceptions/window-state-runtime-unreachable.exception.js +15 -0
- package/exceptions/window-state-runtime-unreachable.exception.js.map +1 -0
- package/exceptions/window-state-unavailable.exception.js +14 -0
- package/exceptions/window-state-unavailable.exception.js.map +1 -0
- package/exceptions/window-state.exception.js +14 -0
- package/exceptions/window-state.exception.js.map +1 -0
- package/exceptions/work-started-meanwhile.exception.js +17 -0
- package/exceptions/work-started-meanwhile.exception.js.map +1 -0
- package/interfaces/i-app-updater.js +9 -0
- package/interfaces/i-app-updater.js.map +1 -0
- package/interfaces/i-application-host.js +9 -0
- package/interfaces/i-application-host.js.map +1 -0
- package/interfaces/i-checked-path.js +9 -0
- package/interfaces/i-checked-path.js.map +1 -0
- package/interfaces/i-clipboard-host.js +9 -0
- package/interfaces/i-clipboard-host.js.map +1 -0
- package/interfaces/i-close-guard.js +9 -0
- package/interfaces/i-close-guard.js.map +1 -0
- package/interfaces/i-command-line-host.js +9 -0
- package/interfaces/i-command-line-host.js.map +1 -0
- package/interfaces/i-context-menu-params.js +9 -0
- package/interfaces/i-context-menu-params.js.map +1 -0
- package/interfaces/i-created-updater.js +9 -0
- package/interfaces/i-created-updater.js.map +1 -0
- package/interfaces/i-device-file-store.js +9 -0
- package/interfaces/i-device-file-store.js.map +1 -0
- package/interfaces/i-dialog-host.js +9 -0
- package/interfaces/i-dialog-host.js.map +1 -0
- package/interfaces/i-display-host.js +9 -0
- package/interfaces/i-display-host.js.map +1 -0
- package/interfaces/i-dock-host.js +9 -0
- package/interfaces/i-dock-host.js.map +1 -0
- package/interfaces/i-electron.js +9 -0
- package/interfaces/i-electron.js.map +1 -0
- package/interfaces/i-feed-net-session.js +9 -0
- package/interfaces/i-feed-net-session.js.map +1 -0
- package/interfaces/i-feed-response.js +9 -0
- package/interfaces/i-feed-response.js.map +1 -0
- package/interfaces/i-feed-runtime-options.js +9 -0
- package/interfaces/i-feed-runtime-options.js.map +1 -0
- package/interfaces/i-feed-web-request.js +9 -0
- package/interfaces/i-feed-web-request.js.map +1 -0
- package/interfaces/i-ipc-event.js +9 -0
- package/interfaces/i-ipc-event.js.map +1 -0
- package/interfaces/i-ipc-host.js +9 -0
- package/interfaces/i-ipc-host.js.map +1 -0
- package/interfaces/i-ipc-owners.js +9 -0
- package/interfaces/i-ipc-owners.js.map +1 -0
- package/interfaces/i-main-process-environment.js +9 -0
- package/interfaces/i-main-process-environment.js.map +1 -0
- package/interfaces/i-main-process-log.js +9 -0
- package/interfaces/i-main-process-log.js.map +1 -0
- package/interfaces/i-main-process-options.js +9 -0
- package/interfaces/i-main-process-options.js.map +1 -0
- package/interfaces/i-main-process-tray-parts.js +9 -0
- package/interfaces/i-main-process-tray-parts.js.map +1 -0
- package/interfaces/i-main-process-update-parts.js +9 -0
- package/interfaces/i-main-process-update-parts.js.map +1 -0
- package/interfaces/i-main-process-window.js +9 -0
- package/interfaces/i-main-process-window.js.map +1 -0
- package/interfaces/i-menu-host.js +9 -0
- package/interfaces/i-menu-host.js.map +1 -0
- package/interfaces/i-native-updater.js +9 -0
- package/interfaces/i-native-updater.js.map +1 -0
- package/interfaces/i-notification-host.js +9 -0
- package/interfaces/i-notification-host.js.map +1 -0
- package/interfaces/i-parent-port.js +9 -0
- package/interfaces/i-parent-port.js.map +1 -0
- package/interfaces/i-path-command-files.js +9 -0
- package/interfaces/i-path-command-files.js.map +1 -0
- package/interfaces/i-permission-host.js +9 -0
- package/interfaces/i-permission-host.js.map +1 -0
- package/interfaces/i-preload-channels.js +9 -0
- package/interfaces/i-preload-channels.js.map +1 -0
- package/interfaces/i-preload-settings.js +9 -0
- package/interfaces/i-preload-settings.js.map +1 -0
- package/interfaces/i-preventable-event.js +9 -0
- package/interfaces/i-preventable-event.js.map +1 -0
- package/interfaces/i-program-host.js +9 -0
- package/interfaces/i-program-host.js.map +1 -0
- package/interfaces/i-protocol-host.js +9 -0
- package/interfaces/i-protocol-host.js.map +1 -0
- package/interfaces/i-quit-control-parts.js +9 -0
- package/interfaces/i-quit-control-parts.js.map +1 -0
- package/interfaces/i-quit-host.js +9 -0
- package/interfaces/i-quit-host.js.map +1 -0
- package/interfaces/i-quit-prompt.js +9 -0
- package/interfaces/i-quit-prompt.js.map +1 -0
- package/interfaces/i-runtime-connection.js +9 -0
- package/interfaces/i-runtime-connection.js.map +1 -0
- package/interfaces/i-runtime-event-owners.js +9 -0
- package/interfaces/i-runtime-event-owners.js.map +1 -0
- package/interfaces/i-runtime-launcher.js +9 -0
- package/interfaces/i-runtime-launcher.js.map +1 -0
- package/interfaces/i-scheme-registry.js +9 -0
- package/interfaces/i-scheme-registry.js.map +1 -0
- package/interfaces/i-secret-storage-host.js +9 -0
- package/interfaces/i-secret-storage-host.js.map +1 -0
- package/interfaces/i-sender-frame.js +9 -0
- package/interfaces/i-sender-frame.js.map +1 -0
- package/interfaces/i-session-host.js +9 -0
- package/interfaces/i-session-host.js.map +1 -0
- package/interfaces/i-shell-host.js +9 -0
- package/interfaces/i-shell-host.js.map +1 -0
- package/interfaces/i-ship-it-process.js +9 -0
- package/interfaces/i-ship-it-process.js.map +1 -0
- package/interfaces/i-shortcut-host.js +9 -0
- package/interfaces/i-shortcut-host.js.map +1 -0
- package/interfaces/i-shown-path-files.js +9 -0
- package/interfaces/i-shown-path-files.js.map +1 -0
- package/interfaces/i-shown-path-status.js +9 -0
- package/interfaces/i-shown-path-status.js.map +1 -0
- package/interfaces/i-spell-check-host.js +9 -0
- package/interfaces/i-spell-check-host.js.map +1 -0
- package/interfaces/i-split-path.js +9 -0
- package/interfaces/i-split-path.js.map +1 -0
- package/interfaces/i-system-notification.js +9 -0
- package/interfaces/i-system-notification.js.map +1 -0
- package/interfaces/i-theme-host.js +9 -0
- package/interfaces/i-theme-host.js.map +1 -0
- package/interfaces/i-tray-actions.js +9 -0
- package/interfaces/i-tray-actions.js.map +1 -0
- package/interfaces/i-tray-host.js +9 -0
- package/interfaces/i-tray-host.js.map +1 -0
- package/interfaces/i-tray.js +9 -0
- package/interfaces/i-tray.js.map +1 -0
- package/interfaces/i-update-check-lock.js +9 -0
- package/interfaces/i-update-check-lock.js.map +1 -0
- package/interfaces/i-update-handoff.js +9 -0
- package/interfaces/i-update-handoff.js.map +1 -0
- package/interfaces/i-update-host.js +9 -0
- package/interfaces/i-update-host.js.map +1 -0
- package/interfaces/i-update-setup.js +9 -0
- package/interfaces/i-update-setup.js.map +1 -0
- package/interfaces/i-update-target.js +9 -0
- package/interfaces/i-update-target.js.map +1 -0
- package/interfaces/i-updater.js +9 -0
- package/interfaces/i-updater.js.map +1 -0
- package/interfaces/i-utility-process-host.js +9 -0
- package/interfaces/i-utility-process-host.js.map +1 -0
- package/interfaces/i-utility-process.js +9 -0
- package/interfaces/i-utility-process.js.map +1 -0
- package/interfaces/i-web-view-attach-params.js +9 -0
- package/interfaces/i-web-view-attach-params.js.map +1 -0
- package/interfaces/i-web-view-attach-preferences.js +9 -0
- package/interfaces/i-web-view-attach-preferences.js.map +1 -0
- package/interfaces/i-web-view-contents.js +9 -0
- package/interfaces/i-web-view-contents.js.map +1 -0
- package/interfaces/i-web-view-debugger.js +9 -0
- package/interfaces/i-web-view-debugger.js.map +1 -0
- package/interfaces/i-web-view-engine.js +9 -0
- package/interfaces/i-web-view-engine.js.map +1 -0
- package/interfaces/i-web-view-guest.js +9 -0
- package/interfaces/i-web-view-guest.js.map +1 -0
- package/interfaces/i-web-view-input-event.js +9 -0
- package/interfaces/i-web-view-input-event.js.map +1 -0
- package/interfaces/i-web-view-input.js +9 -0
- package/interfaces/i-web-view-input.js.map +1 -0
- package/interfaces/i-web-view-key-event.js +9 -0
- package/interfaces/i-web-view-key-event.js.map +1 -0
- package/interfaces/i-web-view-redirect.js +9 -0
- package/interfaces/i-web-view-redirect.js.map +1 -0
- package/interfaces/i-web-view-request.js +9 -0
- package/interfaces/i-web-view-request.js.map +1 -0
- package/interfaces/i-web-view-session.js +9 -0
- package/interfaces/i-web-view-session.js.map +1 -0
- package/interfaces/i-window-contents.js +9 -0
- package/interfaces/i-window-contents.js.map +1 -0
- package/interfaces/i-window-navigation.js +9 -0
- package/interfaces/i-window-navigation.js.map +1 -0
- package/interfaces/i-window-open-details.js +9 -0
- package/interfaces/i-window-open-details.js.map +1 -0
- package/interfaces/i-window-session.js +9 -0
- package/interfaces/i-window-session.js.map +1 -0
- package/interfaces/i-window-state-store.js +9 -0
- package/interfaces/i-window-state-store.js.map +1 -0
- package/main.js +160 -0
- package/main.js.map +1 -0
- package/models/caught-failure.js +15 -0
- package/models/caught-failure.js.map +1 -0
- package/models/detached-start-reply.js +51 -0
- package/models/detached-start-reply.js.map +1 -0
- package/models/detached-start-request.js +45 -0
- package/models/detached-start-request.js.map +1 -0
- package/models/error-code.js +22 -0
- package/models/error-code.js.map +1 -0
- package/models/feed-source.js +32 -0
- package/models/feed-source.js.map +1 -0
- package/models/file-grant-request.js +35 -0
- package/models/file-grant-request.js.map +1 -0
- package/models/file-path-choice.js +38 -0
- package/models/file-path-choice.js.map +1 -0
- package/models/issued-files.js +21 -0
- package/models/issued-files.js.map +1 -0
- package/models/known-device.js +32 -0
- package/models/known-device.js.map +1 -0
- package/models/longest-text.js +35 -0
- package/models/longest-text.js.map +1 -0
- package/models/main-process-phase.js +13 -0
- package/models/main-process-phase.js.map +1 -0
- package/models/main-process-settings.js +34 -0
- package/models/main-process-settings.js.map +1 -0
- package/models/menu-bar-menu.js +25 -0
- package/models/menu-bar-menu.js.map +1 -0
- package/models/menu-bar-row.js +49 -0
- package/models/menu-bar-row.js.map +1 -0
- package/models/menu-bar.js +20 -0
- package/models/menu-bar.js.map +1 -0
- package/models/offered-file.js +50 -0
- package/models/offered-file.js.map +1 -0
- package/models/pending-quit.js +26 -0
- package/models/pending-quit.js.map +1 -0
- package/models/preload-settings.js +21 -0
- package/models/preload-settings.js.map +1 -0
- package/models/quit-question.js +22 -0
- package/models/quit-question.js.map +1 -0
- package/models/screen-area.js +31 -0
- package/models/screen-area.js.map +1 -0
- package/models/sender-info.js +18 -0
- package/models/sender-info.js.map +1 -0
- package/models/started-program.js +17 -0
- package/models/started-program.js.map +1 -0
- package/models/startup-state.js +45 -0
- package/models/startup-state.js.map +1 -0
- package/models/taskbar-identity.js +48 -0
- package/models/taskbar-identity.js.map +1 -0
- package/models/update-ready-record.js +37 -0
- package/models/update-ready-record.js.map +1 -0
- package/models/update-status.js +40 -0
- package/models/update-status.js.map +1 -0
- package/models/update-stop-result.js +22 -0
- package/models/update-stop-result.js.map +1 -0
- package/models/update-version.js +43 -0
- package/models/update-version.js.map +1 -0
- package/models/web-view-history.js +19 -0
- package/models/web-view-history.js.map +1 -0
- package/models/window-appearance.js +52 -0
- package/models/window-appearance.js.map +1 -0
- package/models/window-page.js +23 -0
- package/models/window-page.js.map +1 -0
- package/models/window-registry.js +85 -0
- package/models/window-registry.js.map +1 -0
- package/models/window-state.js +93 -0
- package/models/window-state.js.map +1 -0
- package/package.json +78 -3
- package/preload.cjs +186 -0
- package/preload.cjs.map +1 -0
- package/resources.js +1549 -0
- package/resources.js.map +1 -0
- package/services/agent-controller.js +61 -0
- package/services/agent-controller.js.map +1 -0
- package/services/app-icons.js +49 -0
- package/services/app-icons.js.map +1 -0
- package/services/app-image-environment.js +34 -0
- package/services/app-image-environment.js.map +1 -0
- package/services/app-image-handoff.js +33 -0
- package/services/app-image-handoff.js.map +1 -0
- package/services/app-image-replacement.js +82 -0
- package/services/app-image-replacement.js.map +1 -0
- package/services/app-image-restart.js +71 -0
- package/services/app-image-restart.js.map +1 -0
- package/services/app-surface-feed.js +114 -0
- package/services/app-surface-feed.js.map +1 -0
- package/services/appearance-keeper.js +67 -0
- package/services/appearance-keeper.js.map +1 -0
- package/services/application-menu.js +14 -0
- package/services/application-menu.js.map +1 -0
- package/services/child-program-host.js +59 -0
- package/services/child-program-host.js.map +1 -0
- package/services/clipboard-copier.js +82 -0
- package/services/clipboard-copier.js.map +1 -0
- package/services/close-coordinator.js +47 -0
- package/services/close-coordinator.js.map +1 -0
- package/services/command-installer.js +58 -0
- package/services/command-installer.js.map +1 -0
- package/services/daily-check-mark.js +61 -0
- package/services/daily-check-mark.js.map +1 -0
- package/services/debian-handoff.js +41 -0
- package/services/debian-handoff.js.map +1 -0
- package/services/debian-package.js +24 -0
- package/services/debian-package.js.map +1 -0
- package/services/detached-start.js +27 -0
- package/services/detached-start.js.map +1 -0
- package/services/device-file-store.js +45 -0
- package/services/device-file-store.js.map +1 -0
- package/services/device-identity.js +39 -0
- package/services/device-identity.js.map +1 -0
- package/services/device-setting-follower.js +61 -0
- package/services/device-setting-follower.js.map +1 -0
- package/services/device-state.js +51 -0
- package/services/device-state.js.map +1 -0
- package/services/electron-web-view-contents.js +96 -0
- package/services/electron-web-view-contents.js.map +1 -0
- package/services/electron-web-view-engine.js +42 -0
- package/services/electron-web-view-engine.js.map +1 -0
- package/services/electron-web-view-session.js +47 -0
- package/services/electron-web-view-session.js.map +1 -0
- package/services/feed-provider.js +84 -0
- package/services/feed-provider.js.map +1 -0
- package/services/feed-request-guard.js +63 -0
- package/services/feed-request-guard.js.map +1 -0
- package/services/feed-session.js +30 -0
- package/services/feed-session.js.map +1 -0
- package/services/feed-updater.js +119 -0
- package/services/feed-updater.js.map +1 -0
- package/services/file-dialogs.js +180 -0
- package/services/file-dialogs.js.map +1 -0
- package/services/file-grant-issuer.js +119 -0
- package/services/file-grant-issuer.js.map +1 -0
- package/services/file-presence.js +14 -0
- package/services/file-presence.js.map +1 -0
- package/services/installer-handoff.js +75 -0
- package/services/installer-handoff.js.map +1 -0
- package/services/installer-start.js +35 -0
- package/services/installer-start.js.map +1 -0
- package/services/ipc-router.js +114 -0
- package/services/ipc-router.js.map +1 -0
- package/services/layout-keeper.js +52 -0
- package/services/layout-keeper.js.map +1 -0
- package/services/local-window-state-store.js +38 -0
- package/services/local-window-state-store.js.map +1 -0
- package/services/main-process-log.js +81 -0
- package/services/main-process-log.js.map +1 -0
- package/services/main-process-record.js +19 -0
- package/services/main-process-record.js.map +1 -0
- package/services/main-process-recovery.js +98 -0
- package/services/main-process-recovery.js.map +1 -0
- package/services/main-process-services.js +34 -0
- package/services/main-process-services.js.map +1 -0
- package/services/main-process-tray.js +64 -0
- package/services/main-process-tray.js.map +1 -0
- package/services/main-process-updates.js +69 -0
- package/services/main-process-updates.js.map +1 -0
- package/services/main-process.js +530 -0
- package/services/main-process.js.map +1 -0
- package/services/menu-bar-template.js +78 -0
- package/services/menu-bar-template.js.map +1 -0
- package/services/mirrored-window-state-store.js +26 -0
- package/services/mirrored-window-state-store.js.map +1 -0
- package/services/open-web-view.js +784 -0
- package/services/open-web-view.js.map +1 -0
- package/services/open-web-view.resources.js +13 -0
- package/services/open-web-view.resources.js.map +1 -0
- package/services/open-window.js +155 -0
- package/services/open-window.js.map +1 -0
- package/services/opened-file-policy.js +46 -0
- package/services/opened-file-policy.js.map +1 -0
- package/services/path-command.js +78 -0
- package/services/path-command.js.map +1 -0
- package/services/product-app-adapter.js +30 -0
- package/services/product-app-adapter.js.map +1 -0
- package/services/publisher-check.js +78 -0
- package/services/publisher-check.js.map +1 -0
- package/services/quit-control.js +78 -0
- package/services/quit-control.js.map +1 -0
- package/services/quit-coordinator.js +98 -0
- package/services/quit-coordinator.js.map +1 -0
- package/services/quit-flow.js +59 -0
- package/services/quit-flow.js.map +1 -0
- package/services/restart-arguments.js +58 -0
- package/services/restart-arguments.js.map +1 -0
- package/services/runtime-caller.js +31 -0
- package/services/runtime-caller.js.map +1 -0
- package/services/runtime-events.js +100 -0
- package/services/runtime-events.js.map +1 -0
- package/services/runtime-requests.js +92 -0
- package/services/runtime-requests.js.map +1 -0
- package/services/runtime-startup.js +228 -0
- package/services/runtime-startup.js.map +1 -0
- package/services/runtime-window-state-store.js +50 -0
- package/services/runtime-window-state-store.js.map +1 -0
- package/services/secret-answerer.js +57 -0
- package/services/secret-answerer.js.map +1 -0
- package/services/sender-policy.js +24 -0
- package/services/sender-policy.js.map +1 -0
- package/services/shared-file-server.js +71 -0
- package/services/shared-file-server.js.map +1 -0
- package/services/shell-opener.js +88 -0
- package/services/shell-opener.js.map +1 -0
- package/services/ship-it-process.js +54 -0
- package/services/ship-it-process.js.map +1 -0
- package/services/shown-file-policy.js +95 -0
- package/services/shown-file-policy.js.map +1 -0
- package/services/spell-checker.js +62 -0
- package/services/spell-checker.js.map +1 -0
- package/services/spelling-dictionaries.js +58 -0
- package/services/spelling-dictionaries.js.map +1 -0
- package/services/squirrel-handoff.js +98 -0
- package/services/squirrel-handoff.js.map +1 -0
- package/services/stop-key-controller.js +97 -0
- package/services/stop-key-controller.js.map +1 -0
- package/services/system-notifier.js +103 -0
- package/services/system-notifier.js.map +1 -0
- package/services/terminal-relaunch.js +52 -0
- package/services/terminal-relaunch.js.map +1 -0
- package/services/tray-controller.js +164 -0
- package/services/tray-controller.js.map +1 -0
- package/services/tray-host-watcher.js +86 -0
- package/services/tray-host-watcher.js.map +1 -0
- package/services/tray-menu-template.js +42 -0
- package/services/tray-menu-template.js.map +1 -0
- package/services/tray-notices.js +76 -0
- package/services/tray-notices.js.map +1 -0
- package/services/tray-refresher.js +72 -0
- package/services/tray-refresher.js.map +1 -0
- package/services/update-barrier-gate.js +78 -0
- package/services/update-barrier-gate.js.map +1 -0
- package/services/update-barrier-watch.js +83 -0
- package/services/update-barrier-watch.js.map +1 -0
- package/services/update-bridge.js +86 -0
- package/services/update-bridge.js.map +1 -0
- package/services/update-check-lock.js +120 -0
- package/services/update-check-lock.js.map +1 -0
- package/services/update-controller.js +325 -0
- package/services/update-controller.js.map +1 -0
- package/services/update-restart.js +139 -0
- package/services/update-restart.js.map +1 -0
- package/services/update-save-coordinator.js +48 -0
- package/services/update-save-coordinator.js.map +1 -0
- package/services/update-stop.js +222 -0
- package/services/update-stop.js.map +1 -0
- package/services/update-target-connector.js +84 -0
- package/services/update-target-connector.js.map +1 -0
- package/services/update-work-question.js +84 -0
- package/services/update-work-question.js.map +1 -0
- package/services/utility-process-starter.js +47 -0
- package/services/utility-process-starter.js.map +1 -0
- package/services/web-view-attach-guard.js +41 -0
- package/services/web-view-attach-guard.js.map +1 -0
- package/services/web-view-bridge.js +55 -0
- package/services/web-view-bridge.js.map +1 -0
- package/services/web-view-event-backlog.js +38 -0
- package/services/web-view-event-backlog.js.map +1 -0
- package/services/web-view-event-cut.js +42 -0
- package/services/web-view-event-cut.js.map +1 -0
- package/services/web-view-host.js +340 -0
- package/services/web-view-host.js.map +1 -0
- package/services/web-view-key-input.js +37 -0
- package/services/web-view-key-input.js.map +1 -0
- package/services/web-view-origin-check.js +150 -0
- package/services/web-view-origin-check.js.map +1 -0
- package/services/web-view-origin-check.resources.js +46 -0
- package/services/web-view-origin-check.resources.js.map +1 -0
- package/services/window-bounds-keeper.js +145 -0
- package/services/window-bounds-keeper.js.map +1 -0
- package/services/window-controls.js +97 -0
- package/services/window-controls.js.map +1 -0
- package/services/window-error-limit.js +32 -0
- package/services/window-error-limit.js.map +1 -0
- package/services/window-factory.js +87 -0
- package/services/window-factory.js.map +1 -0
- package/services/window-placement.js +67 -0
- package/services/window-placement.js.map +1 -0
- package/services/window-recovery.js +138 -0
- package/services/window-recovery.js.map +1 -0
- package/services/window-text-log.js +37 -0
- package/services/window-text-log.js.map +1 -0
- package/utility-entry.js +11 -0
- package/utility-entry.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-factory.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/services/window-factory.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,uBAAuB,CAAC;AAM/B,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAIhE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAI5C,MAAM,OAAO,aAAa;IACP,QAAQ,CAAsB;IAC9B,MAAM,CAAe;IACrB,QAAQ,CAAY;IACpB,OAAO,CAAkB;IACzB,KAAK,CAAW;IAChB,GAAG,CAAyB;IAE7C,YAAmB,QAA6B,EAAE,MAAoB,EAAE,QAAmB,EAAE,OAAwB,EAAE,KAAe,EAAE,GAA2B;QACjK,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IACjB,CAAC;IAEM,MAAM,CAAC,KAAkB,EAAE,UAA6B;QAC7D,MAAM,OAAO,GAAoC;YAC/C,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,QAAQ,EAAE,SAAS,CAAC,kBAAkB;YACtC,SAAS,EAAE,SAAS,CAAC,mBAAmB;YACxC,IAAI,EAAE,KAAK;YACX,KAAK,EAAE,SAAS,CAAC,eAAe;YAChC,aAAa,EAAE,SAAS,CAAC,mBAAmB;YAC5C,cAAc,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW;gBAClC,gBAAgB,EAAE,IAAI;gBACtB,OAAO,EAAE,IAAI;gBACb,eAAe,EAAE,KAAK;gBACtB,uBAAuB,EAAE,KA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;IAC3F,CAAC;CACF"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { ShellMethods, WindowStateKey } from "@noldova/desktop.protocol";
|
|
10
|
+
import { StartupStateKind } from "../enums/startup-state-kind.js";
|
|
11
|
+
import { WindowStateUnavailableException } from "../exceptions/window-state-unavailable.exception.js";
|
|
12
|
+
import { Resources } from "../resources.js";
|
|
13
|
+
import { MirroredWindowStateStore } from "./mirrored-window-state-store.js";
|
|
14
|
+
import { RuntimeWindowStateStore } from "./runtime-window-state-store.js";
|
|
15
|
+
export class WindowPlacement {
|
|
16
|
+
store;
|
|
17
|
+
startup;
|
|
18
|
+
device;
|
|
19
|
+
log;
|
|
20
|
+
restored = new WeakSet();
|
|
21
|
+
placed = new WeakSet();
|
|
22
|
+
constructor(store, startup, device, log) {
|
|
23
|
+
this.store = store;
|
|
24
|
+
this.startup = startup;
|
|
25
|
+
this.device = device;
|
|
26
|
+
this.log = log;
|
|
27
|
+
}
|
|
28
|
+
readStateAsync() {
|
|
29
|
+
return this.store.readStateAsync();
|
|
30
|
+
}
|
|
31
|
+
begin(open, saved) {
|
|
32
|
+
open.bounds.begin(this.store, saved);
|
|
33
|
+
this.placed.add(open);
|
|
34
|
+
}
|
|
35
|
+
async prepareAsync(open) {
|
|
36
|
+
const kind = this.startup.current.kind;
|
|
37
|
+
if (kind === StartupStateKind.Connecting)
|
|
38
|
+
return;
|
|
39
|
+
if (kind === StartupStateKind.Ready && this.restored.has(open))
|
|
40
|
+
await open.bounds.saveUnsavedAsync().catch((error) => this.logUnsaved(error));
|
|
41
|
+
else if (kind === StartupStateKind.Ready) {
|
|
42
|
+
this.restored.add(open);
|
|
43
|
+
const device = await this.device.readAsync();
|
|
44
|
+
if (!Object.isNull(device) && this.placed.has(open))
|
|
45
|
+
await open.bounds.followAsync(this.createStore(device)).catch((error) => this.logUnsaved(error));
|
|
46
|
+
else if (!Object.isNull(device))
|
|
47
|
+
await open.bounds.restoreAsync(this.createStore(device)).catch((error) => {
|
|
48
|
+
if (error instanceof WindowStateUnavailableException)
|
|
49
|
+
this.restored.delete(open);
|
|
50
|
+
else
|
|
51
|
+
this.log(Resources.formatBoundsNotRestored(String(error)));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
open.settle();
|
|
55
|
+
}
|
|
56
|
+
async holdAsync(open) {
|
|
57
|
+
await open.bounds.holdAsync().catch((error) => this.logUnsaved(error));
|
|
58
|
+
}
|
|
59
|
+
createStore(device) {
|
|
60
|
+
return new MirroredWindowStateStore(new RuntimeWindowStateStore(() => this.startup.connection, new WindowStateKey(device, Resources.mainWindow), ShellMethods.readWindowBounds, ShellMethods.writeWindowBounds), this.store);
|
|
61
|
+
}
|
|
62
|
+
logUnsaved(error) {
|
|
63
|
+
if (!(error instanceof WindowStateUnavailableException))
|
|
64
|
+
this.log(Resources.formatBoundsUnsaved(String(error)));
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=window-placement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-placement.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/services/window-placement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEzE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AAGtG,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AA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AAc,CAAC,MAAM,EAAE,SAAS,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,gBAAgB,EAAE,YAAY,CAAC,iBAAiB,CAAC,EAC3K,IAAI,CAAC,KAAK,CAAC,CAAC;IAChB,CAAC;IAEO,UAAU,CAAC,KAAc;QAC/B,IAAI,CAAC,CAAC,KAAK,YAAY,+BAA+B,CAAC;YACrD,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,mBAAmB,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { Resources } from "../resources.js";
|
|
10
|
+
export class WindowRecovery {
|
|
11
|
+
open;
|
|
12
|
+
dialog;
|
|
13
|
+
log;
|
|
14
|
+
process;
|
|
15
|
+
quit;
|
|
16
|
+
openLogFolderAsync;
|
|
17
|
+
reloadCrashLimit;
|
|
18
|
+
rendererEndLimit;
|
|
19
|
+
now;
|
|
20
|
+
reloadedAt;
|
|
21
|
+
isCrashingToReload = false;
|
|
22
|
+
isUnresponsive = false;
|
|
23
|
+
unresponsiveBox;
|
|
24
|
+
endTimer;
|
|
25
|
+
constructor(open, dialog, log, process, quit, openLogFolderAsync, reloadCrashLimit, rendererEndLimit, now = Date.now) {
|
|
26
|
+
this.open = open;
|
|
27
|
+
this.dialog = dialog;
|
|
28
|
+
this.log = log;
|
|
29
|
+
this.process = process;
|
|
30
|
+
this.quit = quit;
|
|
31
|
+
this.openLogFolderAsync = openLogFolderAsync;
|
|
32
|
+
this.reloadCrashLimit = reloadCrashLimit;
|
|
33
|
+
this.rendererEndLimit = rendererEndLimit;
|
|
34
|
+
this.now = now;
|
|
35
|
+
this.reloadedAt = undefined;
|
|
36
|
+
this.unresponsiveBox = undefined;
|
|
37
|
+
this.endTimer = undefined;
|
|
38
|
+
open.window.webContents.on(Resources.renderProcessGoneEvent, (_event, details) => void this.recoverFromGoneAsync(details));
|
|
39
|
+
open.window.on(Resources.unresponsiveEvent, () => void this.recoverFromUnresponsiveAsync());
|
|
40
|
+
open.window.on(Resources.responsiveEvent, () => this.noteResponsive());
|
|
41
|
+
}
|
|
42
|
+
async recoverFromGoneAsync(details) {
|
|
43
|
+
if (this.open.window.isDestroyed() || (details.reason === Resources.cleanExitReason && !this.isCrashingToReload))
|
|
44
|
+
return;
|
|
45
|
+
this.log.write(Resources.formatRendererGone(details.reason, details.exitCode));
|
|
46
|
+
this.isUnresponsive = false;
|
|
47
|
+
this.unresponsiveBox?.abort();
|
|
48
|
+
if (this.isCrashingToReload) {
|
|
49
|
+
this.isCrashingToReload = false;
|
|
50
|
+
this.stopEndTimer();
|
|
51
|
+
this.reload();
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
this.open.showNow();
|
|
55
|
+
if (!Object.isUndefined(this.reloadedAt) && this.now() - this.reloadedAt < this.reloadCrashLimit) {
|
|
56
|
+
this.log.write(Resources.windowStoppedAgainRecord);
|
|
57
|
+
const again = await this.askAsync(Resources.windowStopped, Resources.windowStoppedAgainDetail, [Resources.openLogFolderButton, Resources.quitButton], 1);
|
|
58
|
+
if (again === Resources.openLogFolderButton)
|
|
59
|
+
await this.openLogFolderAsync();
|
|
60
|
+
else
|
|
61
|
+
this.quit();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const choice = await this.askAsync(Resources.windowStopped, Resources.windowStoppedDetail, [Resources.reloadButton, Resources.quitButton], 1);
|
|
65
|
+
if (choice === Resources.reloadButton)
|
|
66
|
+
this.reload();
|
|
67
|
+
else
|
|
68
|
+
this.quit();
|
|
69
|
+
}
|
|
70
|
+
async recoverFromUnresponsiveAsync() {
|
|
71
|
+
if (this.isUnresponsive)
|
|
72
|
+
return;
|
|
73
|
+
this.isUnresponsive = true;
|
|
74
|
+
this.log.write(Resources.windowUnresponsive);
|
|
75
|
+
const box = new AbortController();
|
|
76
|
+
this.unresponsiveBox = box;
|
|
77
|
+
const choice = await this.askAsync(Resources.windowNotResponding, Resources.windowNotRespondingDetail, [Resources.waitButton, Resources.reloadButton], 0, box.signal);
|
|
78
|
+
this.unresponsiveBox = undefined;
|
|
79
|
+
if (box.signal.aborted || choice !== Resources.reloadButton)
|
|
80
|
+
return;
|
|
81
|
+
this.isUnresponsive = false;
|
|
82
|
+
this.isCrashingToReload = true;
|
|
83
|
+
this.open.window.webContents.forcefullyCrashRenderer();
|
|
84
|
+
this.endTimer = setTimeout(() => this.endRenderer(), this.rendererEndLimit);
|
|
85
|
+
}
|
|
86
|
+
endRenderer() {
|
|
87
|
+
this.endTimer = undefined;
|
|
88
|
+
if (this.open.window.isDestroyed())
|
|
89
|
+
return;
|
|
90
|
+
const processId = this.open.window.webContents.getOSProcessId();
|
|
91
|
+
if (processId <= 0 || processId === this.process.processId) {
|
|
92
|
+
this.log.write(Resources.formatNoRendererToEnd(processId));
|
|
93
|
+
this.reloadWithoutStop();
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
try {
|
|
97
|
+
this.process.endProcess(processId);
|
|
98
|
+
this.log.write(Resources.formatRendererEnded(processId));
|
|
99
|
+
}
|
|
100
|
+
catch (failure) {
|
|
101
|
+
this.log.write(Resources.formatRendererNotEnded(String(failure)));
|
|
102
|
+
this.reloadWithoutStop();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
reloadWithoutStop() {
|
|
106
|
+
this.isCrashingToReload = false;
|
|
107
|
+
this.reload();
|
|
108
|
+
}
|
|
109
|
+
stopEndTimer() {
|
|
110
|
+
if (!Object.isUndefined(this.endTimer))
|
|
111
|
+
clearTimeout(this.endTimer);
|
|
112
|
+
this.endTimer = undefined;
|
|
113
|
+
}
|
|
114
|
+
noteResponsive() {
|
|
115
|
+
if (!this.isUnresponsive)
|
|
116
|
+
return;
|
|
117
|
+
this.isUnresponsive = false;
|
|
118
|
+
this.log.write(Resources.windowResponsiveAgain);
|
|
119
|
+
this.unresponsiveBox?.abort();
|
|
120
|
+
}
|
|
121
|
+
reload() {
|
|
122
|
+
this.reloadedAt = this.now();
|
|
123
|
+
this.open.window.webContents.reload();
|
|
124
|
+
}
|
|
125
|
+
async askAsync(message, detail, buttons, cancelId, signal) {
|
|
126
|
+
const options = { type: Resources.warningBoxType, message, detail, buttons: [...buttons], defaultId: 0, cancelId, noLink: true };
|
|
127
|
+
if (!Object.isUndefined(signal))
|
|
128
|
+
options.signal = signal;
|
|
129
|
+
const { response } = await this.dialog.showMessageBox(this.open.window.id, options);
|
|
130
|
+
if (signal?.aborted === true)
|
|
131
|
+
return null;
|
|
132
|
+
const choice = buttons[response] ?? null;
|
|
133
|
+
if (!Object.isNull(choice))
|
|
134
|
+
this.log.write(Resources.formatRecoveryChoice(choice));
|
|
135
|
+
return choice;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=window-recovery.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-recovery.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/services/window-recovery.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,uBAAuB,CAAC;AAK/B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,OAAO,cAAc;IACR,IAAI,CAAa;IACjB,MAAM,CAAc;IACpB,GAAG,CAAkB;IACrB,OAAO,CAA0B;IACjC,IAAI,CAAa;IACjB,kBAAkB,CAAyB;IAC3C,gBAAgB,CAAS;IACzB,gBAAgB,CAAS;IACzB,GAAG,CAAe;IAC3B,UAAU,CAAqB;IAC/B,kBAAkB,GAAY,KAAK,CAAC;IACpC,cAAc,GAAY,KAAK,CAAC;IAChC,eAAe,CAA8B;IAC7C,QAAQ,C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EAAE,KAAK,EAAE,CAAC;IAChC,CAAC;IAEO,MAAM;QACZ,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QAC7B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,CAAC;IACxC,CAAC;IAEO,KAAK,CAAC,QAAQ,CAAC,OAAe,EAAE,MAAc,EAAE,OAA0B,EAAE,QAAgB,EAAE,MAAoB;QACxH,MAAM,OAAO,GAAsB,EAAE,IAAI,EAAE,SAAS,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;QACpJ,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC;YAC7B,OAAO,CAAC,MAAM,GAAG,MAAM,CAAC;QAC1B,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;QACpF,IAAI,MAAM,EAAE,OAAO,KAAK,IAAI;YAC1B,OAAO,IAAI,CAAC;QACd,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC;QACzC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;YACxB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import "@noldova/context.core";
|
|
9
|
+
import { LogText } from "@noldova/desktop.runtime";
|
|
10
|
+
import { WindowErrorAdmission } from "../enums/window-error-admission.js";
|
|
11
|
+
import { Resources } from "../resources.js";
|
|
12
|
+
export class WindowTextLog {
|
|
13
|
+
log;
|
|
14
|
+
constructor(log) {
|
|
15
|
+
this.log = log;
|
|
16
|
+
}
|
|
17
|
+
writeModuleLog(open, moduleId, message) {
|
|
18
|
+
if (!Object.isNull(open) && WindowTextLog.isModuleId(moduleId) && Object.isString(message))
|
|
19
|
+
this.write(message, t => Resources.formatModuleLogLine(moduleId, t));
|
|
20
|
+
}
|
|
21
|
+
writeWindowError(open, moduleId, text) {
|
|
22
|
+
if (Object.isNull(open) || !(Object.isNull(moduleId) || WindowTextLog.isModuleId(moduleId)) || !Object.isString(text))
|
|
23
|
+
return;
|
|
24
|
+
const admission = open.errors.admit();
|
|
25
|
+
if (admission === WindowErrorAdmission.Write)
|
|
26
|
+
this.write(text, t => Resources.formatWindowErrorLine(moduleId, t));
|
|
27
|
+
else if (admission === WindowErrorAdmission.Notice)
|
|
28
|
+
this.log(Resources.windowErrorsLeftOut);
|
|
29
|
+
}
|
|
30
|
+
write(text, format) {
|
|
31
|
+
this.log(LogText.lines(text.slice(0, Resources.windowLogLimit)).map(format).join(Resources.logLineSeparator));
|
|
32
|
+
}
|
|
33
|
+
static isModuleId(value) {
|
|
34
|
+
return Object.isString(value) && Resources.moduleIdPattern.test(value);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=window-text-log.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"window-text-log.js","sourceRoot":"","sources":["../../../../src/noldova.desktop.electron/src/services/window-text-log.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAEnD,OAAO,EAAE,oBAAoB,E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AO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,CAAC;IAChH,CAAC;IAEO,MAAM,CAAC,UAAU,CAAC,KAAc;QACtC,OAAO,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACzE,CAAC;CACF"}
|
package/utility-entry.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { DetachedStart } from "./services/detached-start.js";
|
|
9
|
+
import { Resources } from "./resources.js";
|
|
10
|
+
process.parentPort.once(Resources.messageEvent, (event) => void DetachedStart.runAsync(event.data, process.parentPort).then(() => process.exit(0)));
|
|
11
|
+
//# sourceMappingURL=utility-entry.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utility-entry.js","sourceRoot":"","sources":["../../../src/noldova.desktop.electron/src/utility-entry.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3C,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC,KAAmB,EAAE,EAAE,CAAC,KAAK,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|