@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
package/resources.js
ADDED
|
@@ -0,0 +1,1549 @@
|
|
|
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 { ShellClients, ShellMethods } from "@noldova/desktop.protocol";
|
|
10
|
+
import { ProductInfo } from "@noldova/desktop.runtime";
|
|
11
|
+
import { MainProcessFailureKind } from "./enums/main-process-failure-kind.js";
|
|
12
|
+
export class Resources {
|
|
13
|
+
static folderSeparator = "/";
|
|
14
|
+
static restartErrorFile = "update-restart.log";
|
|
15
|
+
static installerErrorFile = "update-installer.log";
|
|
16
|
+
static okButton = "OK";
|
|
17
|
+
static updateStoppedBeforeHandoff = "An update stopped before its handoff, so its launch barrier was removed.";
|
|
18
|
+
static updateBarrierCleared = "The person chose to open the application after an unfinished update, so its launch barrier was removed.";
|
|
19
|
+
static checkoutHashAlgorithm = "sha256";
|
|
20
|
+
static hexEncoding = "hex";
|
|
21
|
+
static checkoutHashLength = 8;
|
|
22
|
+
static idSeparator = ".";
|
|
23
|
+
static relaunchArgumentPrefixes = ["--data-dir=", "--user-data-dir=", "--device-dir="];
|
|
24
|
+
static appIdParameter = "appId";
|
|
25
|
+
static iconPathParameter = "iconPath";
|
|
26
|
+
static relaunchCommandParameter = "relaunchCommand";
|
|
27
|
+
static readyChannel = "desktop:ready";
|
|
28
|
+
static menuBarChannel = "desktop:menuBar";
|
|
29
|
+
static menuCommandChannel = "desktop:menuCommand";
|
|
30
|
+
static editChannel = "desktop:edit";
|
|
31
|
+
static appearanceChannel = "desktop:appearance";
|
|
32
|
+
static closeRequestChannel = "desktop:closeRequest";
|
|
33
|
+
static closeAnswerChannel = "desktop:closeAnswer";
|
|
34
|
+
static updateSaveRequestChannel = "desktop:updateSaveRequest";
|
|
35
|
+
static updateSaveAnswerChannel = "desktop:updateSaveAnswer";
|
|
36
|
+
static startupStateChannel = "desktop:startupState";
|
|
37
|
+
static readStartupChannel = "desktop:readStartup";
|
|
38
|
+
static startupActionChannel = "desktop:startupAction";
|
|
39
|
+
static readLayoutChannel = "desktop:readLayout";
|
|
40
|
+
static writeLayoutChannel = "desktop:writeLayout";
|
|
41
|
+
static requestChannel = "desktop:request";
|
|
42
|
+
static pageChannel = "desktop:page";
|
|
43
|
+
static runtimeEventChannel = "desktop:runtimeEvent";
|
|
44
|
+
static readBuildChannel = "desktop:readBuild";
|
|
45
|
+
static copyTextChannel = "desktop:copyText";
|
|
46
|
+
static openLogFolderChannel = "desktop:openLogFolder";
|
|
47
|
+
static copyDetailsChannel = "desktop:copyDetails";
|
|
48
|
+
static openLinkChannel = "desktop:openLink";
|
|
49
|
+
static openFileChannel = "desktop:openFile";
|
|
50
|
+
static showInFolderChannel = "desktop:showInFolder";
|
|
51
|
+
static webViewOpenChannel = "desktop:webViewOpen";
|
|
52
|
+
static webViewAttachChannel = "desktop:webViewAttach";
|
|
53
|
+
static webViewNavigateChannel = "desktop:webViewNavigate";
|
|
54
|
+
static webViewActChannel = "desktop:webViewAct";
|
|
55
|
+
static webViewCloseChannel = "desktop:webViewClose";
|
|
56
|
+
static webViewKeepChannel = "desktop:webViewKeep";
|
|
57
|
+
static webViewExpectChannel = "desktop:webViewExpect";
|
|
58
|
+
static webViewShortcutsChannel = "desktop:webViewShortcuts";
|
|
59
|
+
static appShortcutsChannel = "desktop:appShortcuts";
|
|
60
|
+
static webViewEventChannel = "desktop:webViewEvent";
|
|
61
|
+
static webViewShortcutChannel = "desktop:webViewShortcut";
|
|
62
|
+
static webViewInputChannel = "desktop:webViewInput";
|
|
63
|
+
static webViewFocusReleaseChannel = "desktop:webViewFocusRelease";
|
|
64
|
+
static webViewZoomChannel = "desktop:webViewZoom";
|
|
65
|
+
static webViewFindChannel = "desktop:webViewFind";
|
|
66
|
+
static webViewZoomMode = "isolated";
|
|
67
|
+
static webViewZoomMinimum = 0.25;
|
|
68
|
+
static webViewZoomMaximum = 5;
|
|
69
|
+
static webViewFindTimeout = 10_000;
|
|
70
|
+
static webViewZoomSteps = [0.25, 0.33, 0.5, 0.67, 0.75, 0.8, 0.9, 1, 1.1, 1.25, 1.5, 1.75, 2, 2.5, 3, 4, 5];
|
|
71
|
+
static webViewZoomKeys = new Map([
|
|
72
|
+
["Equal", 1], ["NumpadAdd", 1], ["=", 1], ["+", 1], ["Minus", -1], ["NumpadSubtract", -1], ["-", -1], ["Digit0", 0], ["Numpad0", 0], ["0", 0]
|
|
73
|
+
]);
|
|
74
|
+
static zoomInDirection = "in";
|
|
75
|
+
static zoomOutDirection = "out";
|
|
76
|
+
static webViewFindNext = "next";
|
|
77
|
+
static webViewFindPrevious = "previous";
|
|
78
|
+
static clearSelection = "clearSelection";
|
|
79
|
+
static foundInPageEvent = "found-in-page";
|
|
80
|
+
static zoomChangedEvent = "zoom-changed";
|
|
81
|
+
static factorField = "factor";
|
|
82
|
+
static matchesField = "matches";
|
|
83
|
+
static activeField = "active";
|
|
84
|
+
static textField = "text";
|
|
85
|
+
static matchCaseField = "matchCase";
|
|
86
|
+
static chooseFolderChannel = "desktop:chooseFolder";
|
|
87
|
+
static openDirectoryProperty = "openDirectory";
|
|
88
|
+
static chooseFilePathChannel = "desktop:chooseFilePath";
|
|
89
|
+
static extensionsField = "extensions";
|
|
90
|
+
static folderField = "folder";
|
|
91
|
+
static maximumFileExtensions = 32;
|
|
92
|
+
static fileExtensionPattern = /^[A-Za-z0-9]{1,16}$/;
|
|
93
|
+
static controlCharacterPattern = /\p{Cc}/u;
|
|
94
|
+
static filePathChoiceRefused = "A file chooser was not shown: a window part asked with options that are not 1 to 32 extensions of letters and digits and an absolute starting folder.";
|
|
95
|
+
static saveFileChannel = "desktop:saveFile";
|
|
96
|
+
static showOverwriteConfirmationProperty = "showOverwriteConfirmation";
|
|
97
|
+
static plainFileNamePattern = /^(?!(?:con|conin\$|conout\$|prn|aux|nul|com[0-9¹²³]|lpt[0-9¹²³])(?:\.|$))[^\\/:*?"<>|\p{Cc}\p{Bidi_Control}]*[^\\/:*?"<>|\p{Cc}\p{Bidi_Control}. ]$/iu;
|
|
98
|
+
static fileNameByteLimit = 255;
|
|
99
|
+
static fileSaveByteLimit = 512 * 1024 * 1024;
|
|
100
|
+
static fileSaveRefused = "A file was not saved: a window part asked with a name that is not a plain file name, or without bytes or with more than 512 MiB of them.";
|
|
101
|
+
static fileSaveUntrusted = "A file was not saved: the request did not come from the window's own page.";
|
|
102
|
+
static dialogAlreadyOpen = "A dialog was not shown: the window already shows a file or folder chooser or a save dialog for a window part.";
|
|
103
|
+
static chooseFilesChannel = "desktop:chooseFiles";
|
|
104
|
+
static grantFilesChannel = "desktop:grantFiles";
|
|
105
|
+
static openFileProperty = "openFile";
|
|
106
|
+
static multiSelectionsProperty = "multiSelections";
|
|
107
|
+
static nameField = "name";
|
|
108
|
+
static pathField = "path";
|
|
109
|
+
static bytesField = "bytes";
|
|
110
|
+
static sizeField = "size";
|
|
111
|
+
static grantField = "grant";
|
|
112
|
+
static mediaTypeField = "mediaType";
|
|
113
|
+
static grantedField = "granted";
|
|
114
|
+
static refusedField = "refused";
|
|
115
|
+
static lifetimeField = "lifetime";
|
|
116
|
+
static multipleField = "multiple";
|
|
117
|
+
static offeredFileLimit = 256;
|
|
118
|
+
static pastedByteLimit = 64 * 1024 * 1024;
|
|
119
|
+
static stagedByteLimit = 256 * 1024 * 1024;
|
|
120
|
+
static unknownMediaType = "application/octet-stream";
|
|
121
|
+
static pastedFileName = "pasted";
|
|
122
|
+
static mediaTypePattern = /^[a-z0-9][a-z0-9!#$&^_.+-]{0,126}\/[a-z0-9][a-z0-9!#$&^_.+-]{0,126}$/i;
|
|
123
|
+
static fileGrantRefused = "No file was granted: a window part asked for a name that is not a module's, with options that are not a lifetime of up to 600 000 milliseconds, or with more than 256 files or files that are not files.";
|
|
124
|
+
static fileGrantUntrusted = "No file was granted: the request did not come from the window's current page.";
|
|
125
|
+
static sharedFileScheme = "desktop-file";
|
|
126
|
+
static sharedFileHostPattern = /^[0-9a-f]{32}$/;
|
|
127
|
+
static sharedImageTypes = ["image/png", "image/jpeg", "image/gif", "image/webp"];
|
|
128
|
+
static sharedFileHeaders = {
|
|
129
|
+
"X-Content-Type-Options": "nosniff",
|
|
130
|
+
"Cache-Control": "no-store",
|
|
131
|
+
"Content-Security-Policy": "default-src 'none'; sandbox"
|
|
132
|
+
};
|
|
133
|
+
static contentTypeHeader = "Content-Type";
|
|
134
|
+
static contentLengthHeader = "Content-Length";
|
|
135
|
+
static getMethod = "GET";
|
|
136
|
+
static notFoundStatus = 404;
|
|
137
|
+
static sharedFileAddressRefused = "not a GET of a share's address";
|
|
138
|
+
static sharedFilePageEnded = "its page ended";
|
|
139
|
+
static sharedFileChanged = "the file changed or was replaced";
|
|
140
|
+
static offeredFileNotRegular = "it is not a regular file.";
|
|
141
|
+
static offeredFileLinkElsewhere = "a link in the path leads to a network or device path, which is never granted.";
|
|
142
|
+
static offeredFileNotLocal = "the path isn't absolute; on Windows only a path on a drive, such as C:\\, is granted, never a network or device path.";
|
|
143
|
+
static pastedFileTooLarge = "a paste may stage at most 64 MiB.";
|
|
144
|
+
static stagedFolderFull = "the files staged for modules already hold 256 MiB.";
|
|
145
|
+
static installCommandChannel = "desktop:installCommand";
|
|
146
|
+
static readUpdateChannel = "desktop:readUpdate";
|
|
147
|
+
static updateActionChannel = "desktop:updateAction";
|
|
148
|
+
static notificationOpenedChannel = "desktop:notificationOpened";
|
|
149
|
+
static quitQuestionChannel = "desktop:quitQuestion";
|
|
150
|
+
static readTrayAvailableChannel = "desktop:readTrayAvailable";
|
|
151
|
+
static trayAvailableChannel = "desktop:trayAvailable";
|
|
152
|
+
static readFullScreenChannel = "desktop:readFullScreen";
|
|
153
|
+
static fullScreenChannel = "desktop:fullScreen";
|
|
154
|
+
static readMaximizedChannel = "desktop:readMaximized";
|
|
155
|
+
static maximizedChannel = "desktop:maximized";
|
|
156
|
+
static windowActionChannel = "desktop:windowAction";
|
|
157
|
+
static quitAnswerChannel = "desktop:quitAnswer";
|
|
158
|
+
static moduleLogChannel = "desktop:moduleLog";
|
|
159
|
+
static windowErrorChannel = "desktop:windowError";
|
|
160
|
+
static copyTextLimit = 32 * 1024 * 1024;
|
|
161
|
+
static copyImageChannel = "desktop:copyImage";
|
|
162
|
+
static imageCopyByteLimit = 64 * 1024 * 1024;
|
|
163
|
+
static imageCopyPixelLimit = 50_000_000;
|
|
164
|
+
static imageCopySideLimit = 16384;
|
|
165
|
+
static pngSignature = [0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0, 0, 0, 13, 0x49, 0x48, 0x44, 0x52];
|
|
166
|
+
static pngHeaderLength = 33;
|
|
167
|
+
static imageCopyRefused = "An image was not copied: a window part asked without the bytes of a PNG image of at most 16384 pixels a side and 50 million in all, or with more than 64 MiB of them.";
|
|
168
|
+
static imageCopyUndecoded = "An image was not copied: its PNG bytes did not decode.";
|
|
169
|
+
static imageCopyBusy = "An image was not copied: the window was still copying another image.";
|
|
170
|
+
static textCopyUntrusted = "A text was not copied: the request did not come from the window's own page.";
|
|
171
|
+
static textCopyRefused = "A text was not copied: it was not text, or longer than 33554432 UTF-16 code units.";
|
|
172
|
+
static imageCopyUntrusted = "An image was not copied: the request did not come from the window's own page.";
|
|
173
|
+
static webViewAddressLimit = 32768;
|
|
174
|
+
static webViewSchemes = ["http:", "https:"];
|
|
175
|
+
static webViewSubresourceSchemes = ["data:", "blob:"];
|
|
176
|
+
static webViewSocketSchemes = new Map([["ws:", "http:"], ["wss:", "https:"]]);
|
|
177
|
+
static webViewLoopbackName = "localhost";
|
|
178
|
+
static webViewLoopbackSuffix = ".localhost";
|
|
179
|
+
static webViewWildcardPrefix = "*.";
|
|
180
|
+
static webViewOriginSeparator = "//";
|
|
181
|
+
static webViewHextets = 8;
|
|
182
|
+
static webViewDefaultPorts = new Map([["http:", 80], ["https:", 443], ["ws:", 80], ["wss:", 443]]);
|
|
183
|
+
static webViewBracketsPattern = /^\[|\]$/gu;
|
|
184
|
+
static webViewTrailingDotPattern = /\.$/u;
|
|
185
|
+
static webViewZoneSeparator = "%";
|
|
186
|
+
static blankPage = "about:blank";
|
|
187
|
+
static sourceDocument = "about:srcdoc";
|
|
188
|
+
static webViewPartitionPrefix = "persist:";
|
|
189
|
+
static webViewPartitionSeparator = ".";
|
|
190
|
+
static webViewsPerPane = 32;
|
|
191
|
+
static webViewBacklogLimit = 256;
|
|
192
|
+
static webViewReplyLimit = 4 * 1024 * 1024;
|
|
193
|
+
static webViewEventLimit = 64 * 1024;
|
|
194
|
+
static webViewProtocolVersion = "1.3";
|
|
195
|
+
static webViewServerErrorCode = -32000;
|
|
196
|
+
static webViewAbortedLoadCode = -3;
|
|
197
|
+
static webViewRtcPolicy = "disable_non_proxied_udp";
|
|
198
|
+
static pageEnableMethod = "Page.enable";
|
|
199
|
+
static interceptFileChooserMethod = "Page.setInterceptFileChooserDialog";
|
|
200
|
+
static fileChooserOpenedEvent = "Page.fileChooserOpened";
|
|
201
|
+
static dispatchKeyEventMethod = "Input.dispatchKeyEvent";
|
|
202
|
+
static dispatchTouchEventMethod = "Input.dispatchTouchEvent";
|
|
203
|
+
static inputDomainPrefix = "Input.";
|
|
204
|
+
static beforeInputEvent = "before-input-event";
|
|
205
|
+
static keyDownInputs = ["keyDown", "rawKeyDown"];
|
|
206
|
+
static codeField = "code";
|
|
207
|
+
static modifiersField = "modifiers";
|
|
208
|
+
static originField = "origin";
|
|
209
|
+
static altModifier = 1;
|
|
210
|
+
static ctrlModifier = 2;
|
|
211
|
+
static metaModifier = 4;
|
|
212
|
+
static shiftModifier = 8;
|
|
213
|
+
static insertTextMethod = "Input.insertText";
|
|
214
|
+
static focusEmulationMethod = "Emulation.setFocusEmulationEnabled";
|
|
215
|
+
static enabledParameter = "enabled";
|
|
216
|
+
static focusBarrierWorld = 1999;
|
|
217
|
+
static focusBarrierScript = "0";
|
|
218
|
+
static layoutMetricsMethod = "Page.getLayoutMetrics";
|
|
219
|
+
static layoutViewportField = "cssLayoutViewport";
|
|
220
|
+
static pageXField = "pageX";
|
|
221
|
+
static pageYField = "pageY";
|
|
222
|
+
static scrollBackWorld = 1998;
|
|
223
|
+
static webViewScrollReadTimeout = 500;
|
|
224
|
+
static pointerMoveTypes = ["mouseMove", "mouseEnter", "mouseLeave"];
|
|
225
|
+
static autoRepeatField = "autoRepeat";
|
|
226
|
+
static keyDownType = "keyDown";
|
|
227
|
+
static rawKeyDownType = "rawKeyDown";
|
|
228
|
+
static charType = "char";
|
|
229
|
+
static keyUpType = "keyUp";
|
|
230
|
+
static keyModifierNames = [
|
|
231
|
+
[Resources.altModifier, "alt"], [Resources.ctrlModifier, "control"], [Resources.metaModifier, "meta"], [Resources.shiftModifier, "shift"]
|
|
232
|
+
];
|
|
233
|
+
static autoRepeatModifier = "isautorepeat";
|
|
234
|
+
static webViewKeyNames = new Map([["ArrowUp", "Up"], ["ArrowDown", "Down"], ["ArrowLeft", "Left"], ["ArrowRight", "Right"], [" ", "Space"], ["+", "Plus"]]);
|
|
235
|
+
static webViewTextUnreadable = "The text input names no text.";
|
|
236
|
+
static webViewKeyUnreadable = "The key event names no key, or a type the page's input doesn't take.";
|
|
237
|
+
static mainFrameResource = "mainFrame";
|
|
238
|
+
static subFrameResource = "subFrame";
|
|
239
|
+
static serviceWorkerHeader = "Service-Worker";
|
|
240
|
+
static serviceWorkerScript = "script";
|
|
241
|
+
static nullOrigin = "null";
|
|
242
|
+
static willFrameNavigateEvent = "will-frame-navigate";
|
|
243
|
+
static didStopLoadingEvent = "did-stop-loading";
|
|
244
|
+
static didNavigateEvent = "did-navigate";
|
|
245
|
+
static didNavigateInPageEvent = "did-navigate-in-page";
|
|
246
|
+
static pageTitleUpdatedEvent = "page-title-updated";
|
|
247
|
+
static didFailLoadEvent = "did-fail-load";
|
|
248
|
+
static certificateErrorEvent = "certificate-error";
|
|
249
|
+
static selectClientCertificateEvent = "select-client-certificate";
|
|
250
|
+
static loginEvent = "login";
|
|
251
|
+
static willDownloadEvent = "will-download";
|
|
252
|
+
static detachEvent = "detach";
|
|
253
|
+
static webViewReplyNotObject = "The engine's reply is not an object.";
|
|
254
|
+
static focusEmulationRefused = "The host owns focus emulation, so a module may not send Emulation.setFocusEmulationEnabled.";
|
|
255
|
+
static webViewLost = "A web view lost its defaults, so it was closed.";
|
|
256
|
+
static webViewBatchLimit = 64;
|
|
257
|
+
static addressField = "address";
|
|
258
|
+
static descriptionField = "description";
|
|
259
|
+
static isLoadingField = "isLoading";
|
|
260
|
+
static canGoBackField = "canGoBack";
|
|
261
|
+
static canGoForwardField = "canGoForward";
|
|
262
|
+
static requestField = "request";
|
|
263
|
+
static isRedirectField = "isRedirect";
|
|
264
|
+
static hadRecentInputField = "hadRecentInput";
|
|
265
|
+
static methodField = "method";
|
|
266
|
+
static paramsField = "params";
|
|
267
|
+
static isCutField = "isCut";
|
|
268
|
+
static countField = "count";
|
|
269
|
+
static paneField = "pane";
|
|
270
|
+
static profileKeyField = "profileKey";
|
|
271
|
+
static viewField = "view";
|
|
272
|
+
static moduleField = "module";
|
|
273
|
+
static partitionField = "partition";
|
|
274
|
+
static isAttachedField = "isAttached";
|
|
275
|
+
static timeoutField = "timeoutMilliseconds";
|
|
276
|
+
static downloadRequest = "download";
|
|
277
|
+
static newWindowRequest = "newWindow";
|
|
278
|
+
static personInputTypes = ["rawKeyDown", "keyDown", "mouseDown", "touchStart"];
|
|
279
|
+
static personPressTypes = ["mouseDown", "touchStart"];
|
|
280
|
+
static relayedPressTypes = new Map([["Input.dispatchMouseEvent", "mousePressed"], [Resources.dispatchTouchEventMethod, "touchStart"]]);
|
|
281
|
+
static touchPointsField = "touchPoints";
|
|
282
|
+
static touchPointIdField = "id";
|
|
283
|
+
static pressFreeInputMethods = ["Input.dispatchMouseEvent", "Input.dispatchTouchEvent", "Input.dispatchKeyEvent", "Input.insertText"];
|
|
284
|
+
static inputStartKind = "Start";
|
|
285
|
+
static inputEndKind = "End";
|
|
286
|
+
static inputPressKind = "Press";
|
|
287
|
+
static recentInputMilliseconds = 5000;
|
|
288
|
+
static newWindowRequestLimit = 5;
|
|
289
|
+
static newWindowRequestMilliseconds = 1000;
|
|
290
|
+
static permissionRequest = "permission";
|
|
291
|
+
static fileChooserRequest = "fileChooser";
|
|
292
|
+
static authenticationRequest = "authentication";
|
|
293
|
+
static certificateRequest = "certificate";
|
|
294
|
+
static nestedViewRequest = "nestedView";
|
|
295
|
+
static addressParameter = "address";
|
|
296
|
+
static linkRefused = "A link was not opened: only well-formed http, https and mailto links without credentials open.";
|
|
297
|
+
static nullCharacter = "\u0000";
|
|
298
|
+
static windowsDrivePathPattern = /^[A-Za-z]:[\\/]/u;
|
|
299
|
+
static shownFileNotText = "the path isn't text without null characters.";
|
|
300
|
+
static shownFileNotAbsolute = "the path isn't absolute; on Windows only a path on a drive, such as C:\\, is shown, never a network or device path.";
|
|
301
|
+
static shownFileMissing = "no file can be read at the path.";
|
|
302
|
+
static shownFileNotRegular = "the path isn't a regular file or a folder.";
|
|
303
|
+
static shownFileLinkElsewhere = "a link in the path leads to a network or device path, which is never shown.";
|
|
304
|
+
static shownFileUntrusted = "the request didn't come from one of the app's windows.";
|
|
305
|
+
static openedFileNotAbsolute = "the path isn't absolute; on Windows only a path on a drive, such as C:\\, is opened, never a network or device path.";
|
|
306
|
+
static openedFileNotRegular = "the path isn't a regular file; a folder, or a link to one, isn't opened.";
|
|
307
|
+
static openedFileLinkElsewhere = "a link in the path leads to a network or device path, which is never opened.";
|
|
308
|
+
static openedFileKindRefused = "only documents and text files open, such as .pdf, .docx, .txt or .md; any other file, a program or a script included, never opens.";
|
|
309
|
+
static openedFileExecutable = "the file is marked executable, so it never opens.";
|
|
310
|
+
static openedFileFailed = "the system couldn't open the file.";
|
|
311
|
+
static openedFileExtensions = new Set([
|
|
312
|
+
".pdf", ".docx", ".xlsx", ".pptx", ".rtf", ".odt", ".ods", ".odp",
|
|
313
|
+
".txt", ".md", ".markdown", ".csv", ".tsv", ".json", ".log", ".yaml", ".yml", ".xml", ".toml"
|
|
314
|
+
]);
|
|
315
|
+
static executableModeBits = 0o111;
|
|
316
|
+
static extensionSeparator = ".";
|
|
317
|
+
static streamSeparator = ":";
|
|
318
|
+
static windowsPathSeparators = ["\\", "/"];
|
|
319
|
+
static posixPathSeparators = ["/"];
|
|
320
|
+
static currentFolderName = ".";
|
|
321
|
+
static parentFolderName = "..";
|
|
322
|
+
static followedLinkLimit = 40;
|
|
323
|
+
static shellOwner = "desktop";
|
|
324
|
+
static methodParameter = "method";
|
|
325
|
+
static secretValueParameter = "value";
|
|
326
|
+
static windowShellMethods = [
|
|
327
|
+
ShellMethods.modules.text,
|
|
328
|
+
ShellMethods.commands.text,
|
|
329
|
+
ShellMethods.runCommand.text,
|
|
330
|
+
ShellMethods.agentControl.text,
|
|
331
|
+
ShellMethods.notifications.text,
|
|
332
|
+
ShellMethods.postNotification.text,
|
|
333
|
+
ShellMethods.dismissNotification.text,
|
|
334
|
+
ShellMethods.markNotificationsRead.text,
|
|
335
|
+
ShellMethods.clearNotifications.text,
|
|
336
|
+
ShellMethods.settings.text,
|
|
337
|
+
ShellMethods.readSetting.text,
|
|
338
|
+
ShellMethods.setSetting.text,
|
|
339
|
+
ShellMethods.resetSetting.text,
|
|
340
|
+
ShellMethods.recentCommands.text,
|
|
341
|
+
ShellMethods.recordCommand.text,
|
|
342
|
+
ShellMethods.programs.text,
|
|
343
|
+
ShellMethods.discardFileGrants.text,
|
|
344
|
+
ShellMethods.saveSecret.text,
|
|
345
|
+
ShellMethods.removeSecret.text,
|
|
346
|
+
ShellMethods.secretStatus.text
|
|
347
|
+
];
|
|
348
|
+
static deviceMethods = [
|
|
349
|
+
ShellMethods.settings.text,
|
|
350
|
+
ShellMethods.readSetting.text,
|
|
351
|
+
ShellMethods.setSetting.text,
|
|
352
|
+
ShellMethods.resetSetting.text,
|
|
353
|
+
ShellMethods.recentCommands.text,
|
|
354
|
+
ShellMethods.recordCommand.text
|
|
355
|
+
];
|
|
356
|
+
static deviceField = "device";
|
|
357
|
+
static deviceRequestNeedsIdentity = "This device has no identity, so a request that belongs to it cannot be made.";
|
|
358
|
+
static deviceRequestPayloadNotObject = "A request that belongs to this device must have a JSON object as its payload.";
|
|
359
|
+
static methodNotText = "The method must be a qualified name such as notes.open.";
|
|
360
|
+
static payloadNotJson = "The payload must be a JSON value.";
|
|
361
|
+
static layoutNotObject = "The layout must be a JSON object.";
|
|
362
|
+
static clientName = ShellClients.mainProcess;
|
|
363
|
+
static handoffRole = "handoff";
|
|
364
|
+
static runtimeRole = "runtime";
|
|
365
|
+
static updateClientName = "update";
|
|
366
|
+
static moveAsideAction = "moveAside";
|
|
367
|
+
static stopWorkAction = "stopWork";
|
|
368
|
+
static waitAction = "wait";
|
|
369
|
+
static retryAction = "retry";
|
|
370
|
+
static kindField = "kind";
|
|
371
|
+
static detailsField = "details";
|
|
372
|
+
static updateVersionField = "version";
|
|
373
|
+
static updateProgressField = "progress";
|
|
374
|
+
static updateCheckedAtField = "checkedAt";
|
|
375
|
+
static updateReasonField = "reason";
|
|
376
|
+
static updateMustMoveField = "mustMove";
|
|
377
|
+
static updateFilesField = "files";
|
|
378
|
+
static updateFileField = "file";
|
|
379
|
+
static updateSha512Field = "sha512";
|
|
380
|
+
static updateNotifiedField = "notified";
|
|
381
|
+
static updateStateChannel = "desktop:updateState";
|
|
382
|
+
static updateReadyFile = "update-ready.json";
|
|
383
|
+
static updateConfigFile = "update-config.json";
|
|
384
|
+
static updateCacheSuffix = "-updater-";
|
|
385
|
+
static updateCheckLockFile = "update-check.lock";
|
|
386
|
+
static updateChecksStateKey = "updateChecks";
|
|
387
|
+
static updateFeedTimeout = 30_000;
|
|
388
|
+
static updateCheckAction = "Check";
|
|
389
|
+
static updateRestartAction = "Restart";
|
|
390
|
+
static handoffFolder = "handoff";
|
|
391
|
+
static squirrelStagedEvent = "update-downloaded";
|
|
392
|
+
static updateStageLimit = 120_000;
|
|
393
|
+
static automaticUpdateChecks = "Automatic";
|
|
394
|
+
static updateChecksAtStart = "AtStart";
|
|
395
|
+
static onRequestUpdateChecks = "OnRequest";
|
|
396
|
+
static updateCheckChoices = [Resources.automaticUpdateChecks, Resources.updateChecksAtStart, Resources.onRequestUpdateChecks];
|
|
397
|
+
static firstUpdateCheckDelay = 30_000;
|
|
398
|
+
static updateCheckInterval = 600_000;
|
|
399
|
+
static feedSourceOption = "source";
|
|
400
|
+
static updateTargets = new Map([
|
|
401
|
+
["win32", ["windows", "exe"]],
|
|
402
|
+
["darwin", ["macos", "zip"]],
|
|
403
|
+
["linux", ["linux", "AppImage"]]
|
|
404
|
+
]);
|
|
405
|
+
static updateArchitectures = ["x64", "arm64"];
|
|
406
|
+
static debianPackageExtension = "deb";
|
|
407
|
+
static packagedResourcesFolder = "resources";
|
|
408
|
+
static packageTypeFile = "package-type";
|
|
409
|
+
static debianPackageType = "deb";
|
|
410
|
+
static debianInstallerProgram = "/usr/bin/pkexec";
|
|
411
|
+
static debianInstallerArguments = ["/usr/bin/dpkg", "--install"];
|
|
412
|
+
static feedSourceMissing = "The update feed's provider needs the feed's source in its options.";
|
|
413
|
+
static feedExecutorUnexpected = "The update feed's provider needs electron-updater's HTTP executor in its runtime options.";
|
|
414
|
+
static feedExecutorOption = "executor";
|
|
415
|
+
static customProvider = "custom";
|
|
416
|
+
static updateAssetOrigins = ["https://release-assets.githubusercontent.com", "https://objects.githubusercontent.com"];
|
|
417
|
+
static updateSentHeaders = ["accept", "range", "cache-control"];
|
|
418
|
+
static userAgentHeader = "User-Agent";
|
|
419
|
+
static dailyCheckToken = "daily";
|
|
420
|
+
static dailyCheckFile = "last-daily-update-check";
|
|
421
|
+
static invalidAddress = "an invalid address";
|
|
422
|
+
static downloadProgressEvent = "download-progress";
|
|
423
|
+
static pendingUpdateFolder = "pending";
|
|
424
|
+
static updaterCacheFolderField = "updaterCacheDirName";
|
|
425
|
+
static updateVersionPattern = /^(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})\.(0|[1-9]\d{0,8})(?:-internal\.(0|[1-9]\d{0,8}))?$/u;
|
|
426
|
+
static sha512Algorithm = "sha512";
|
|
427
|
+
static base64Encoding = "base64";
|
|
428
|
+
static lineBreak = "\n";
|
|
429
|
+
static updateInfoInvalid = "The release's information is invalid.";
|
|
430
|
+
static updateDownloadMismatch = "The download doesn't match the release.";
|
|
431
|
+
static updateDownloadInterrupted = "The download was interrupted.";
|
|
432
|
+
static updateNotSigned = "The update isn't signed by the publisher.";
|
|
433
|
+
static updateFailedUnexpectedly = "The update stopped on an unexpected error.";
|
|
434
|
+
static updateFileChanged = "the downloaded file has changed or is gone";
|
|
435
|
+
static updateFileElsewhere = "its file is not the package in the updater's cache";
|
|
436
|
+
static updateChangedBeforeHandoff = "The downloaded update has changed since it was checked, so it wasn't installed.";
|
|
437
|
+
static updateNotStaged = "macOS couldn't prepare the update for installing.";
|
|
438
|
+
static shipItNotFound = "macOS prepared the update, but nothing is waiting to install it.";
|
|
439
|
+
static updateNotStagedInTime = "macOS didn't prepare the update for installing within 2 minutes.";
|
|
440
|
+
static updateFeedRedirected = "The update feed redirected to an address with another protocol.";
|
|
441
|
+
static updateCheckerUnknown = "The main process could not identify its own process, so it cannot check for updates.";
|
|
442
|
+
static restartToUpdateTitle = "Restart to update";
|
|
443
|
+
static restartToUpdateMember = "restartToUpdate";
|
|
444
|
+
static updateInfoInvalidCodes = [
|
|
445
|
+
"ERR_UPDATER_INVALID_VERSION", "ERR_UPDATER_INVALID_UPDATE_INFO", "ERR_UPDATER_NO_FILES_PROVIDED", "ERR_UPDATER_NO_CHECKSUM", "ERR_UPDATER_ZIP_FILE_NOT_FOUND"
|
|
446
|
+
];
|
|
447
|
+
static updateDownloadMismatchCodes = ["ERR_CHECKSUM_MISMATCH"];
|
|
448
|
+
static updateNotSignedCodes = ["ERR_UPDATER_INVALID_SIGNATURE"];
|
|
449
|
+
static dataDirectoryArgument = "--data-dir=";
|
|
450
|
+
static userDataArgument = "--user-data-dir=";
|
|
451
|
+
static userDataPath = "userData";
|
|
452
|
+
static downloadsPath = "downloads";
|
|
453
|
+
static runAsNodeVariable = "ELECTRON_RUN_AS_NODE";
|
|
454
|
+
static runAsNodeValue = "1";
|
|
455
|
+
static workWaitInterval = 2000;
|
|
456
|
+
static stableConnectionPeriod = 30000;
|
|
457
|
+
static reconnectionDelays = [0, 1000, 2000, 4000, 8000];
|
|
458
|
+
static endedByRuntime = "the runtime ended it.";
|
|
459
|
+
static connectionEndedByRuntime = "The runtime ended its connection to the main process, so the main process connects again.";
|
|
460
|
+
static deviceDirectoryArgument = "--device-dir=";
|
|
461
|
+
static handoverArguments = [Resources.dataDirectoryArgument, Resources.userDataArgument, Resources.deviceDirectoryArgument];
|
|
462
|
+
static windowsPlatform = "win32";
|
|
463
|
+
static deviceFileName = "device.json";
|
|
464
|
+
static deviceIdField = "id";
|
|
465
|
+
static createOnlyFlag = "wx";
|
|
466
|
+
static textEncoding = "utf8";
|
|
467
|
+
static appearanceFile = "appearance.json";
|
|
468
|
+
static deviceStateFile = "device-state.json";
|
|
469
|
+
static windowStateFile = "window-state.json";
|
|
470
|
+
static trayCloseHintKey = "trayCloseHintShown";
|
|
471
|
+
static trayIconStateKey = "trayIcon";
|
|
472
|
+
static fileNameParameter = "fileName";
|
|
473
|
+
static executablePathParameter = "executablePath";
|
|
474
|
+
static temporarySuffix = ".tmp";
|
|
475
|
+
static appearanceLimit = 4096;
|
|
476
|
+
static appearanceTooLarge = "The appearance preferences are larger than 4096 characters.";
|
|
477
|
+
static keepAppearanceChannel = "desktop:keepAppearance";
|
|
478
|
+
static readSpellingChannel = "desktop:readSpelling";
|
|
479
|
+
static spellingChannel = "desktop:spelling";
|
|
480
|
+
static fieldMenuChannel = "desktop:fieldMenu";
|
|
481
|
+
static replaceMisspellingChannel = "desktop:replaceMisspelling";
|
|
482
|
+
static addToDictionaryChannel = "desktop:addToDictionary";
|
|
483
|
+
static dictionaryFolderSegments = ["assets", "dictionaries"];
|
|
484
|
+
static dictionariesFile = "dictionaries.json";
|
|
485
|
+
static dictionariesFolder = "Dictionaries";
|
|
486
|
+
static dictionariesField = "dictionaries";
|
|
487
|
+
static languageField = "language";
|
|
488
|
+
static fileField = "file";
|
|
489
|
+
static languagesField = "languages";
|
|
490
|
+
static fallbackField = "fallback";
|
|
491
|
+
static isKeyboardField = "isKeyboard";
|
|
492
|
+
static wordField = "word";
|
|
493
|
+
static suggestionsField = "suggestions";
|
|
494
|
+
static keyboardMenuSource = "keyboard";
|
|
495
|
+
static spellingTextLimit = 100;
|
|
496
|
+
static languageTagPattern = /^[A-Za-z]{2,3}(-[A-Za-z0-9]{1,8})*$/;
|
|
497
|
+
static dictionaryFilePattern = /^[A-Za-z0-9-]+\.bdic$/;
|
|
498
|
+
static dictionaryWordPattern = /^\S{1,100}$/u;
|
|
499
|
+
static urlSeparator = "/";
|
|
500
|
+
static listSeparator = ", ";
|
|
501
|
+
static spellingInvalid = "The spelling preferences must be whether to check and a list of language tags.";
|
|
502
|
+
static uuidPattern = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;
|
|
503
|
+
static hashPrefix = "#";
|
|
504
|
+
static queryPrefix = "?";
|
|
505
|
+
static macPlatform = "darwin";
|
|
506
|
+
static linuxPlatform = "linux";
|
|
507
|
+
static unprotectedStorageBackends = ["basic_text", "unknown"];
|
|
508
|
+
static relaunchPlatforms = [Resources.linuxPlatform, Resources.macPlatform, Resources.windowsPlatform];
|
|
509
|
+
static appImageVariables = ["APPIMAGE", "APPDIR", "ARGV0", "OWD"];
|
|
510
|
+
static appImageFolderVariable = "APPDIR";
|
|
511
|
+
static appImageWorkingFolderVariable = "OWD";
|
|
512
|
+
static standardDescriptors = [0, 1, 2];
|
|
513
|
+
static enableLoggingVariable = "ELECTRON_ENABLE_LOGGING";
|
|
514
|
+
static noConsoleVariable = "ELECTRON_NO_ATTACH_CONSOLE";
|
|
515
|
+
static noConsoleValue = "1";
|
|
516
|
+
static terminalArguments = ["--enable-logging", "--remote-debugging-port", "--remote-debugging-pipe"];
|
|
517
|
+
static appRunPathVariables = [
|
|
518
|
+
["PATH", [String.empty, "/usr/sbin"], []],
|
|
519
|
+
["XDG_DATA_DIRS", ["/usr/share/"], ["/usr/share/gnome", "/usr/local/share/", "/usr/share/"]],
|
|
520
|
+
["LD_LIBRARY_PATH", ["/usr/lib"], []],
|
|
521
|
+
["GSETTINGS_SCHEMA_DIR", ["/usr/share/glib-2.0/schemas"], []]
|
|
522
|
+
];
|
|
523
|
+
static pathListSeparator = ":";
|
|
524
|
+
static restartShell = "/bin/bash";
|
|
525
|
+
static restartWaitLimit = 60000;
|
|
526
|
+
static processStatusFolder = "/proc";
|
|
527
|
+
static processStatusFile = "stat";
|
|
528
|
+
static processStatusNameEnd = ") ";
|
|
529
|
+
static processStatusSeparator = " ";
|
|
530
|
+
static processStartTimeField = 19;
|
|
531
|
+
static restartShellArguments = [
|
|
532
|
+
"--noprofile",
|
|
533
|
+
"--norc",
|
|
534
|
+
"-p",
|
|
535
|
+
"-c",
|
|
536
|
+
[
|
|
537
|
+
"set -f",
|
|
538
|
+
"holder=$1 started=$2 limit=$3 image=$4",
|
|
539
|
+
"shift 4",
|
|
540
|
+
"SECONDS=0",
|
|
541
|
+
"while { read -r stat < \"/proc/$holder/stat\"; } 2>/dev/null; do",
|
|
542
|
+
" fields=(${stat##*\") \"})",
|
|
543
|
+
" [[ ${fields[0]} != Z && ( -z $started || ${fields[19]} == \"$started\" ) ]] || break",
|
|
544
|
+
" if (( SECONDS * 1000 >= limit )); then echo \"The process $holder had not ended after $limit ms, so $image starts anyway.\" >&2; break; fi",
|
|
545
|
+
" sleep 0.1",
|
|
546
|
+
"done",
|
|
547
|
+
"cd / || exit 1",
|
|
548
|
+
"if [[ ! -x $image ]]; then echo \"$image cannot be started after the update.\" >&2; exit 1; fi",
|
|
549
|
+
"exec -- \"$image\" \"$@\" < /dev/null > /dev/null 2>&1"
|
|
550
|
+
].join("\n")
|
|
551
|
+
];
|
|
552
|
+
static restartVersionField = "version";
|
|
553
|
+
static restartArgumentsField = "arguments";
|
|
554
|
+
static restartWrittenField = "written";
|
|
555
|
+
static restartArgumentsLimit = 600000;
|
|
556
|
+
static permissionBits = 0o7777;
|
|
557
|
+
static appImagePartPattern = /^\.(.+)\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\.part$/;
|
|
558
|
+
static readFlag = "r";
|
|
559
|
+
static launchControl = "/bin/launchctl";
|
|
560
|
+
static launchControlList = "list";
|
|
561
|
+
static launchControlRemove = "remove";
|
|
562
|
+
static launchListSeparator = "\t";
|
|
563
|
+
static launchListProcessColumn = 0;
|
|
564
|
+
static launchListLabelColumn = 2;
|
|
565
|
+
static installerArguments = ["--updated", "/S", "--force-run"];
|
|
566
|
+
static mainProcessFileSuffix = ".desktop";
|
|
567
|
+
static enableFeaturesSwitch = "enable-features";
|
|
568
|
+
static ozonePlatformSwitch = "ozone-platform";
|
|
569
|
+
static waylandPlatform = "wayland";
|
|
570
|
+
static globalShortcutsPortalFeature = "GlobalShortcutsPortalPreferredTrigger";
|
|
571
|
+
static windowsIcon = "icon-dark.ico";
|
|
572
|
+
static windowIcon = "icon-dark-512.png";
|
|
573
|
+
static lightWindowsIcon = "icon-light.ico";
|
|
574
|
+
static lightWindowIcon = "icon-light-512.png";
|
|
575
|
+
static lightIconSuffix = "-light";
|
|
576
|
+
static dockIcon = "icon-dock-512.png";
|
|
577
|
+
static trayFolder = "tray";
|
|
578
|
+
static trayIconPrefix = "tray-";
|
|
579
|
+
static trayWindowsExtension = ".ico";
|
|
580
|
+
static trayMacSuffix = "Template.png";
|
|
581
|
+
static trayLinuxExtension = ".png";
|
|
582
|
+
static trayWorkRows = 5;
|
|
583
|
+
static trayNotificationRows = 3;
|
|
584
|
+
static trayLabelLimit = 60;
|
|
585
|
+
static trayEllipsis = "…";
|
|
586
|
+
static noWorkLabel = "No work running";
|
|
587
|
+
static turnOnDoNotDisturbLabel = "Turn on Do not disturb";
|
|
588
|
+
static turnOffDoNotDisturbLabel = "Turn off Do not disturb";
|
|
589
|
+
static stopAgentsLabel = "Stop agents";
|
|
590
|
+
static resumeAgentsLabel = "Resume agents";
|
|
591
|
+
static stopKeyRefusedTitle = "The stop key works only in the app";
|
|
592
|
+
static preloadFileName = "preload.cjs";
|
|
593
|
+
static preloadArgument = "--desktop-preload=";
|
|
594
|
+
static bridgeName = "desktop";
|
|
595
|
+
static preloadChannels = {
|
|
596
|
+
addToDictionary: Resources.addToDictionaryChannel,
|
|
597
|
+
appShortcuts: Resources.appShortcutsChannel,
|
|
598
|
+
appearance: Resources.appearanceChannel,
|
|
599
|
+
chooseFilePath: Resources.chooseFilePathChannel,
|
|
600
|
+
chooseFiles: Resources.chooseFilesChannel,
|
|
601
|
+
chooseFolder: Resources.chooseFolderChannel,
|
|
602
|
+
closeAnswer: Resources.closeAnswerChannel,
|
|
603
|
+
closeRequest: Resources.closeRequestChannel,
|
|
604
|
+
copyDetails: Resources.copyDetailsChannel,
|
|
605
|
+
copyImage: Resources.copyImageChannel,
|
|
606
|
+
copyText: Resources.copyTextChannel,
|
|
607
|
+
edit: Resources.editChannel,
|
|
608
|
+
fieldMenu: Resources.fieldMenuChannel,
|
|
609
|
+
fullScreen: Resources.fullScreenChannel,
|
|
610
|
+
grantFiles: Resources.grantFilesChannel,
|
|
611
|
+
installCommand: Resources.installCommandChannel,
|
|
612
|
+
keepAppearance: Resources.keepAppearanceChannel,
|
|
613
|
+
maximized: Resources.maximizedChannel,
|
|
614
|
+
menuBar: Resources.menuBarChannel,
|
|
615
|
+
menuCommand: Resources.menuCommandChannel,
|
|
616
|
+
moduleLog: Resources.moduleLogChannel,
|
|
617
|
+
notificationOpened: Resources.notificationOpenedChannel,
|
|
618
|
+
openFile: Resources.openFileChannel,
|
|
619
|
+
openLink: Resources.openLinkChannel,
|
|
620
|
+
openLogFolder: Resources.openLogFolderChannel,
|
|
621
|
+
page: Resources.pageChannel,
|
|
622
|
+
quitAnswer: Resources.quitAnswerChannel,
|
|
623
|
+
quitQuestion: Resources.quitQuestionChannel,
|
|
624
|
+
readBuild: Resources.readBuildChannel,
|
|
625
|
+
readFullScreen: Resources.readFullScreenChannel,
|
|
626
|
+
readLayout: Resources.readLayoutChannel,
|
|
627
|
+
readMaximized: Resources.readMaximizedChannel,
|
|
628
|
+
readSpelling: Resources.readSpellingChannel,
|
|
629
|
+
readStartup: Resources.readStartupChannel,
|
|
630
|
+
readTrayAvailable: Resources.readTrayAvailableChannel,
|
|
631
|
+
readUpdate: Resources.readUpdateChannel,
|
|
632
|
+
ready: Resources.readyChannel,
|
|
633
|
+
replaceMisspelling: Resources.replaceMisspellingChannel,
|
|
634
|
+
request: Resources.requestChannel,
|
|
635
|
+
runtimeEvent: Resources.runtimeEventChannel,
|
|
636
|
+
saveFile: Resources.saveFileChannel,
|
|
637
|
+
showInFolder: Resources.showInFolderChannel,
|
|
638
|
+
spelling: Resources.spellingChannel,
|
|
639
|
+
startupAction: Resources.startupActionChannel,
|
|
640
|
+
startupState: Resources.startupStateChannel,
|
|
641
|
+
trayAvailable: Resources.trayAvailableChannel,
|
|
642
|
+
updateAction: Resources.updateActionChannel,
|
|
643
|
+
updateSaveAnswer: Resources.updateSaveAnswerChannel,
|
|
644
|
+
updateSaveRequest: Resources.updateSaveRequestChannel,
|
|
645
|
+
updateState: Resources.updateStateChannel,
|
|
646
|
+
webViewAct: Resources.webViewActChannel,
|
|
647
|
+
webViewAttach: Resources.webViewAttachChannel,
|
|
648
|
+
webViewClose: Resources.webViewCloseChannel,
|
|
649
|
+
webViewKeep: Resources.webViewKeepChannel,
|
|
650
|
+
webViewExpect: Resources.webViewExpectChannel,
|
|
651
|
+
webViewEvent: Resources.webViewEventChannel,
|
|
652
|
+
webViewFind: Resources.webViewFindChannel,
|
|
653
|
+
webViewFocusRelease: Resources.webViewFocusReleaseChannel,
|
|
654
|
+
webViewInput: Resources.webViewInputChannel,
|
|
655
|
+
webViewNavigate: Resources.webViewNavigateChannel,
|
|
656
|
+
webViewOpen: Resources.webViewOpenChannel,
|
|
657
|
+
webViewShortcut: Resources.webViewShortcutChannel,
|
|
658
|
+
webViewShortcuts: Resources.webViewShortcutsChannel,
|
|
659
|
+
webViewZoom: Resources.webViewZoomChannel,
|
|
660
|
+
windowAction: Resources.windowActionChannel,
|
|
661
|
+
windowError: Resources.windowErrorChannel,
|
|
662
|
+
writeLayout: Resources.writeLayoutChannel
|
|
663
|
+
};
|
|
664
|
+
static repositoryRootSegments = ["..", "..", ".."];
|
|
665
|
+
static developmentPackageSegments = ["_build", "development-package"];
|
|
666
|
+
static windowIndexSegments = ["_build", "window", "browser", "index.html"];
|
|
667
|
+
static platformParameter = "platform";
|
|
668
|
+
static windowIndexParameter = "windowIndexPath";
|
|
669
|
+
static preloadParameter = "preloadPath";
|
|
670
|
+
static hiddenTitleBarStyle = "hidden";
|
|
671
|
+
static denyWindowOpen = "deny";
|
|
672
|
+
static trafficLightPosition = { x: 12, y: 9 };
|
|
673
|
+
static willNavigateEvent = "will-navigate";
|
|
674
|
+
static willRedirectEvent = "will-redirect";
|
|
675
|
+
static willAttachWebviewEvent = "will-attach-webview";
|
|
676
|
+
static didAttachWebviewEvent = "did-attach-webview";
|
|
677
|
+
static webContentsCreatedEvent = "web-contents-created";
|
|
678
|
+
static webViewContentsType = "webview";
|
|
679
|
+
static destroyedEvent = "destroyed";
|
|
680
|
+
static closeEvent = "close";
|
|
681
|
+
static closedEvent = "closed";
|
|
682
|
+
static themeUpdatedEvent = "updated";
|
|
683
|
+
static clickEvent = "click";
|
|
684
|
+
static showEvent = "show";
|
|
685
|
+
static hideEvent = "hide";
|
|
686
|
+
static failedEvent = "failed";
|
|
687
|
+
static dataEvent = "data";
|
|
688
|
+
static errorEvent = "error";
|
|
689
|
+
static abortEvent = "abort";
|
|
690
|
+
static secondInstanceEvent = "second-instance";
|
|
691
|
+
static windowAllClosedEvent = "window-all-closed";
|
|
692
|
+
static activateEvent = "activate";
|
|
693
|
+
static willQuitEvent = "will-quit";
|
|
694
|
+
static beforeQuitEvent = "before-quit";
|
|
695
|
+
static resizeEvent = "resize";
|
|
696
|
+
static moveEvent = "move";
|
|
697
|
+
static willMoveEvent = "will-move";
|
|
698
|
+
static willResizeEvent = "will-resize";
|
|
699
|
+
static maximizeEvent = "maximize";
|
|
700
|
+
static unmaximizeEvent = "unmaximize";
|
|
701
|
+
static enterFullScreenEvent = "enter-full-screen";
|
|
702
|
+
static leaveFullScreenEvent = "leave-full-screen";
|
|
703
|
+
static boundsSaveDelay = 500;
|
|
704
|
+
static connectingShowLimit = 2_000;
|
|
705
|
+
static paintShowLimit = 10_000;
|
|
706
|
+
static logLineSeparator = "\n";
|
|
707
|
+
static moduleIdPattern = /^[a-z][a-z0-9]*(?:-[a-z0-9]+)*$/;
|
|
708
|
+
static reloadCrashLimit = 10_000;
|
|
709
|
+
static rendererEndLimit = 5_000;
|
|
710
|
+
static renderProcessGoneEvent = "render-process-gone";
|
|
711
|
+
static inputEvent = "input-event";
|
|
712
|
+
static didStartLoadingEvent = "did-start-loading";
|
|
713
|
+
static didStartNavigationEvent = "did-start-navigation";
|
|
714
|
+
static contextMenuEvent = "context-menu";
|
|
715
|
+
static unresponsiveEvent = "unresponsive";
|
|
716
|
+
static responsiveEvent = "responsive";
|
|
717
|
+
static cleanExitReason = "clean-exit";
|
|
718
|
+
static warningBoxType = "warning";
|
|
719
|
+
static infoBoxType = "info";
|
|
720
|
+
static errorBoxType = "error";
|
|
721
|
+
static bundleCommandSegments = ["..", "Resources", "bin"];
|
|
722
|
+
static pathCommandFolder = "/usr/local/bin";
|
|
723
|
+
static scriptRunner = "/usr/bin/osascript";
|
|
724
|
+
static administratorScript = [
|
|
725
|
+
"-e", "on run argv",
|
|
726
|
+
"-e", "set commandLink to quoted form of (item 3 of argv)",
|
|
727
|
+
"-e", "do shell script \"[ -e \" & commandLink & \" ] && [ ! -L \" & commandLink & \" ] && exit 3; /bin/mkdir -p \" & quoted form of (item 2 of argv) & \" && /bin/ln -sfh \" & quoted form of (item 1 of argv) & \" \" & commandLink with prompt (item 4 of argv) with administrator privileges",
|
|
728
|
+
"-e", "end run"
|
|
729
|
+
];
|
|
730
|
+
static userCancelledCode = "(-128)";
|
|
731
|
+
static occupiedExitCode = "(3)";
|
|
732
|
+
static missingErrorCode = "ENOENT";
|
|
733
|
+
static existingErrorCode = "EEXIST";
|
|
734
|
+
static errorCodeField = "code";
|
|
735
|
+
static deniedErrorCodes = ["EACCES", "EPERM"];
|
|
736
|
+
static unreadablePathCodes = ["ENOENT", "ENOTDIR", "ELOOP", "EINVAL", "EACCES", "EPERM"];
|
|
737
|
+
static windowStoppedDetail = "Reload it to continue. Your layout comes back from the last save.";
|
|
738
|
+
static windowStoppedAgainDetail = "It stopped again right after it was reloaded. The log folder has what it recorded.";
|
|
739
|
+
static windowNotRespondingDetail = "You can wait for it or reload it.";
|
|
740
|
+
static reloadButton = "Reload";
|
|
741
|
+
static quitButton = "Quit";
|
|
742
|
+
static waitButton = "Wait";
|
|
743
|
+
static openLogFolderButton = "Open log folder";
|
|
744
|
+
static windowUnresponsive = "The window's page stopped responding.";
|
|
745
|
+
static windowResponsiveAgain = "The window's page responds again.";
|
|
746
|
+
static windowStoppedAgainRecord = "The window's page stopped again within 10 s of a reload, so the person was offered the log folder instead of another reload.";
|
|
747
|
+
static uncaughtExceptionEvent = "uncaughtException";
|
|
748
|
+
static unhandledRejectionEvent = "unhandledRejection";
|
|
749
|
+
static quitExitCode = 0;
|
|
750
|
+
static failureExitCode = 1;
|
|
751
|
+
static mainWindow = "main";
|
|
752
|
+
static deviceNotIdentified = "This device has no identity, so the window's layout and Do not disturb are not kept.";
|
|
753
|
+
static descriptionsField = "descriptions";
|
|
754
|
+
static isWaitingField = "isWaiting";
|
|
755
|
+
static isUpdateField = "isUpdate";
|
|
756
|
+
static windowMinimumWidth = 640;
|
|
757
|
+
static windowMinimumHeight = 480;
|
|
758
|
+
static windowWidth = 1280;
|
|
759
|
+
static windowHeight = 800;
|
|
760
|
+
static windowAreaShare = 0.9;
|
|
761
|
+
static closeAnswerTimeout = 5000;
|
|
762
|
+
static updateBarrierInterval = 1000;
|
|
763
|
+
static updatePrepareTimeout = 15000;
|
|
764
|
+
static updateExitWait = 10000;
|
|
765
|
+
static updateStopMargin = 10000;
|
|
766
|
+
static updateExitInterval = 250;
|
|
767
|
+
static runtimeStartWait = 15000;
|
|
768
|
+
static barrierReleaseRetryDelay = 1000;
|
|
769
|
+
static runtimeStartInterval = 250;
|
|
770
|
+
static updateRelaunchLimit = 10000;
|
|
771
|
+
static updateNotRelaunchedInTime = "macOS didn't quit to install the update within 10 seconds.";
|
|
772
|
+
static workSeparator = "; ";
|
|
773
|
+
static separatorMenuType = "separator";
|
|
774
|
+
static checkboxMenuType = "checkbox";
|
|
775
|
+
static radioMenuType = "radio";
|
|
776
|
+
static normalMenuType = "normal";
|
|
777
|
+
static undoRole = "undo";
|
|
778
|
+
static redoRole = "redo";
|
|
779
|
+
static cutRole = "cut";
|
|
780
|
+
static copyRole = "copy";
|
|
781
|
+
static pasteRole = "paste";
|
|
782
|
+
static pasteAndMatchStyleRole = "pasteAndMatchStyle";
|
|
783
|
+
static deleteRole = "delete";
|
|
784
|
+
static selectAllRole = "selectAll";
|
|
785
|
+
static startSpeakingRole = "startSpeaking";
|
|
786
|
+
static stopSpeakingRole = "stopSpeaking";
|
|
787
|
+
static servicesRole = "services";
|
|
788
|
+
static hideRole = "hide";
|
|
789
|
+
static hideOthersRole = "hideOthers";
|
|
790
|
+
static unhideRole = "unhide";
|
|
791
|
+
static quitRole = "quit";
|
|
792
|
+
static minimizeRole = "minimize";
|
|
793
|
+
static zoomRole = "zoom";
|
|
794
|
+
static closeRole = "close";
|
|
795
|
+
static frontRole = "front";
|
|
796
|
+
static aboutRole = "about";
|
|
797
|
+
static windowRole = "window";
|
|
798
|
+
static helpRole = "help";
|
|
799
|
+
static pngMimeType = "image/png";
|
|
800
|
+
static killSignal = "SIGKILL";
|
|
801
|
+
static argumentSeparator = " ";
|
|
802
|
+
static mediaSourceParts = 3;
|
|
803
|
+
static pipedStdio = "pipe";
|
|
804
|
+
static datePadLength = 2;
|
|
805
|
+
static datePadCharacter = "0";
|
|
806
|
+
static dateSeparator = "-";
|
|
807
|
+
static userAgentCommentSeparator = "; ";
|
|
808
|
+
static grantByteLength = 16;
|
|
809
|
+
static stagedFolderMode = 0o700;
|
|
810
|
+
static stagedFileMode = 0o600;
|
|
811
|
+
static pngWidthOffset = 16;
|
|
812
|
+
static pngHeightOffset = 20;
|
|
813
|
+
static millisecondsPerSecond = 1_000;
|
|
814
|
+
static maximumProgress = 100;
|
|
815
|
+
static trayLabelSpacesPattern = /\s+/g;
|
|
816
|
+
static trayLabelSpace = " ";
|
|
817
|
+
static mnemonicMarker = "&";
|
|
818
|
+
static escapedMnemonicMarker = "&&";
|
|
819
|
+
static workQueryTimeout = 2000;
|
|
820
|
+
static programTimeout = 5000;
|
|
821
|
+
static programOutputLimit = 65536;
|
|
822
|
+
static gdbusPath = "/usr/bin/gdbus";
|
|
823
|
+
static trayHostQueryArguments = [
|
|
824
|
+
"call", "--session", "--dest", "org.kde.StatusNotifierWatcher", "--object-path", "/StatusNotifierWatcher",
|
|
825
|
+
"--method", "org.freedesktop.DBus.Properties.Get", "org.kde.StatusNotifierWatcher", "IsStatusNotifierHostRegistered"
|
|
826
|
+
];
|
|
827
|
+
static trayHostMonitorArguments = ["monitor", "--session", "--dest", "org.kde.StatusNotifierWatcher"];
|
|
828
|
+
static trayHostRegisteredAnswer = "(<true>,)";
|
|
829
|
+
static trayMonitorFirstDelay = 1000;
|
|
830
|
+
static trayMonitorLongestDelay = 60_000;
|
|
831
|
+
static trayMonitorDelayGrowth = 2;
|
|
832
|
+
static windowLogLimit = 65536;
|
|
833
|
+
static windowErrorBurst = 10;
|
|
834
|
+
static windowErrorPeriod = 60000;
|
|
835
|
+
static windowErrorsLeftOut = "The window reported more than ten errors within a minute; the rest of that minute's errors are left out of the log.";
|
|
836
|
+
static executableField = "executable";
|
|
837
|
+
static argumentsField = "arguments";
|
|
838
|
+
static errorFileField = "errorFile";
|
|
839
|
+
static environmentField = "environment";
|
|
840
|
+
static environmentNotText = "An environment variable's value must be text.";
|
|
841
|
+
static processIdField = "processId";
|
|
842
|
+
static failureField = "failure";
|
|
843
|
+
static payloadField = "payload";
|
|
844
|
+
static replyNeedsOneOutcome = "A start reply carries either a process id or a failure.";
|
|
845
|
+
static starterEnded = "The runtime starter ended before it started the runtime.";
|
|
846
|
+
static starterAcknowledgement = "acknowledged";
|
|
847
|
+
static utilityEntryRelativePath = "../utility-entry.js";
|
|
848
|
+
static ignoredStdio = "ignore";
|
|
849
|
+
static messageEvent = "message";
|
|
850
|
+
static exitEvent = "exit";
|
|
851
|
+
static xField = "x";
|
|
852
|
+
static yField = "y";
|
|
853
|
+
static widthField = "width";
|
|
854
|
+
static heightField = "height";
|
|
855
|
+
static maximizedField = "maximized";
|
|
856
|
+
static invalidWindowState = "The saved window state is not valid.";
|
|
857
|
+
static positionPairMessage = "A window position has both coordinates or neither.";
|
|
858
|
+
static windowUrlParameter = "windowUrl";
|
|
859
|
+
static timeoutParameter = "timeout";
|
|
860
|
+
static backgroundField = "background";
|
|
861
|
+
static titleBarField = "titleBar";
|
|
862
|
+
static titleBarTextField = "titleBarText";
|
|
863
|
+
static titleBarHeightField = "titleBarHeight";
|
|
864
|
+
static invalidAppearance = "The window appearance is not valid.";
|
|
865
|
+
static menusField = "menus";
|
|
866
|
+
static placeField = "place";
|
|
867
|
+
static titleField = "title";
|
|
868
|
+
static rowsField = "rows";
|
|
869
|
+
static typeField = "type";
|
|
870
|
+
static idField = "id";
|
|
871
|
+
static labelField = "label";
|
|
872
|
+
static keyField = "key";
|
|
873
|
+
static enabledField = "enabled";
|
|
874
|
+
static checkField = "check";
|
|
875
|
+
static checkedField = "checked";
|
|
876
|
+
static appMenu = "desktop.app";
|
|
877
|
+
static editMenu = "desktop.edit";
|
|
878
|
+
static windowMenu = "desktop.window";
|
|
879
|
+
static helpMenu = "desktop.help";
|
|
880
|
+
static commandKey = "Command";
|
|
881
|
+
static controlKey = "Control";
|
|
882
|
+
static altKey = "Alt";
|
|
883
|
+
static shiftKey = "Shift";
|
|
884
|
+
static acceleratorSeparator = "+";
|
|
885
|
+
static invalidMenuBar = "The menu bar is not valid.";
|
|
886
|
+
static speechLabel = "Speech";
|
|
887
|
+
static editTitle = "Edit";
|
|
888
|
+
static windowTitle = "Window";
|
|
889
|
+
static closeWindowLabel = "Close Window";
|
|
890
|
+
static closeWindowAccelerator = "Command+Shift+W";
|
|
891
|
+
static macMenuKeys = ["Mod+Q", "Mod+H", "Mod+Alt+H", "Mod+M", "Mod+Shift+W"];
|
|
892
|
+
static windowMediaSource = "window";
|
|
893
|
+
static mediaSourceSeparator = ":";
|
|
894
|
+
static invalidColor = "A window color is a hexadecimal color or an rgb() or rgba() color.";
|
|
895
|
+
static colorPattern = /^(?:#[0-9A-Fa-f]{3,8}|rgba?\([0-9., %/]+\))$/;
|
|
896
|
+
static validSignatureStatus = 0;
|
|
897
|
+
static signerUnreadable = "Windows verified its signature but could not read its signer's name";
|
|
898
|
+
static publisherUnknown = "this build is unsigned, so it has no publisher to check the update's signer against";
|
|
899
|
+
static nameEscape = "\\";
|
|
900
|
+
static nameQuote = "\"";
|
|
901
|
+
static nameSeparator = ",";
|
|
902
|
+
static nameAssignment = "=";
|
|
903
|
+
static lineBreaks = /\s*[\r\n]+\s*/g;
|
|
904
|
+
static lineJoin = " ";
|
|
905
|
+
static get updateUnderWay() {
|
|
906
|
+
return `Another update of ${Resources.applicationName} is under way.`;
|
|
907
|
+
}
|
|
908
|
+
static get installerNotCopied() {
|
|
909
|
+
return `${Resources.applicationName} couldn't make a protected copy of the update's installer.`;
|
|
910
|
+
}
|
|
911
|
+
static get updaterNotCreated() {
|
|
912
|
+
return `${Resources.applicationName} couldn't start checking for updates.`;
|
|
913
|
+
}
|
|
914
|
+
static get updateHolderNotFound() {
|
|
915
|
+
return `${Resources.applicationName} could not find its own process in the process table.`;
|
|
916
|
+
}
|
|
917
|
+
static get applicationName() {
|
|
918
|
+
return ProductInfo.current.name;
|
|
919
|
+
}
|
|
920
|
+
static get appUserModelId() {
|
|
921
|
+
return ProductInfo.current.applicationId;
|
|
922
|
+
}
|
|
923
|
+
static get developmentAppUserModelId() {
|
|
924
|
+
return ProductInfo.current.developmentApplicationId;
|
|
925
|
+
}
|
|
926
|
+
static get updateInstalling() {
|
|
927
|
+
return `${Resources.applicationName} is installing an update.`;
|
|
928
|
+
}
|
|
929
|
+
static get updateInstallingDetail() {
|
|
930
|
+
return `Open ${Resources.applicationName} again once the update has finished.`;
|
|
931
|
+
}
|
|
932
|
+
static get updateRelaunchFailed() {
|
|
933
|
+
return `macOS will install the update once ${Resources.applicationName} quits, but ${Resources.applicationName} can't open again by itself.`;
|
|
934
|
+
}
|
|
935
|
+
static get updateRelaunchFailedDetail() {
|
|
936
|
+
return `Open ${Resources.applicationName} once the update has installed.`;
|
|
937
|
+
}
|
|
938
|
+
static get debianInstallerMissing() {
|
|
939
|
+
return `This copy of ${Resources.applicationName} is a Debian package, but this system has no pkexec to ask for an administrator's permission, so it can't install the update.`;
|
|
940
|
+
}
|
|
941
|
+
static get notAnAppImage() {
|
|
942
|
+
return `This copy of ${Resources.applicationName} doesn't run from an AppImage, so it can't install the update.`;
|
|
943
|
+
}
|
|
944
|
+
static formatUpdateRelaunchFailed(reason) {
|
|
945
|
+
return `The update was handed off, but macOS could not be asked to install it and start the new version, so the main process quits instead: ${reason}`;
|
|
946
|
+
}
|
|
947
|
+
static get updateUnfinished() {
|
|
948
|
+
return `An update of ${Resources.applicationName} may still be installing, or it did not finish.`;
|
|
949
|
+
}
|
|
950
|
+
static get updateUnfinishedDetail() {
|
|
951
|
+
return `If no installer is still running, open ${Resources.applicationName} to go on with the version you have.`;
|
|
952
|
+
}
|
|
953
|
+
static get openApplicationButton() {
|
|
954
|
+
return `Open ${Resources.applicationName}`;
|
|
955
|
+
}
|
|
956
|
+
static get updateBarrierNotCleared() {
|
|
957
|
+
return `${Resources.applicationName} could not clear the unfinished update, so it will quit.`;
|
|
958
|
+
}
|
|
959
|
+
static get updateBarrierNotClearedDetail() {
|
|
960
|
+
return `Open ${Resources.applicationName} again in a moment. If this keeps happening, its log has the reason.`;
|
|
961
|
+
}
|
|
962
|
+
static formatScrollBackScript(x, y) {
|
|
963
|
+
return `scrollTo(${x}, ${y})`;
|
|
964
|
+
}
|
|
965
|
+
static formatBarrierNotCleared(message) {
|
|
966
|
+
return `The launch barrier of an unfinished update could not be removed: ${message}`;
|
|
967
|
+
}
|
|
968
|
+
static formatRelaunchFailed(reason) {
|
|
969
|
+
return `${Resources.applicationName} could not start itself apart from the terminal, so it runs in the terminal and quits when the terminal closes: ${reason}`;
|
|
970
|
+
}
|
|
971
|
+
static formatHandoverFailed(reason) {
|
|
972
|
+
return `The newer ${Resources.applicationName} could not be started for the hand-over, so this one quits without it: ${reason}`;
|
|
973
|
+
}
|
|
974
|
+
static formatBarrierUnreadable(message) {
|
|
975
|
+
return `The launch barrier could not be read: ${message}`;
|
|
976
|
+
}
|
|
977
|
+
static formatBarrierUnwatched(message) {
|
|
978
|
+
return `The launch barrier's folder could not be watched, so another main process's update can't close this one: ${message}`;
|
|
979
|
+
}
|
|
980
|
+
static formatBarrierUnsettled(message) {
|
|
981
|
+
return `The launch barrier could not be settled: ${message}`;
|
|
982
|
+
}
|
|
983
|
+
static formatWindowSaveUnanswered(window) {
|
|
984
|
+
return `Window ${window} did not finish saving within 5 seconds.`;
|
|
985
|
+
}
|
|
986
|
+
static formatWindowSaveGone(window) {
|
|
987
|
+
return `Window ${window} closed before it saved.`;
|
|
988
|
+
}
|
|
989
|
+
static formatMainProcessUnrecorded(message) {
|
|
990
|
+
return `This main process could not be recorded in its installation, so an update may not wait for it: ${message}`;
|
|
991
|
+
}
|
|
992
|
+
static formatWebViewCommandInvalid(reason) {
|
|
993
|
+
return `The runtime sent a web view command that is not valid, so it was not answered: ${reason}`;
|
|
994
|
+
}
|
|
995
|
+
static formatSecretCommandInvalid(reason) {
|
|
996
|
+
return `The runtime sent a secret command that is not valid, so it was not answered: ${reason}`;
|
|
997
|
+
}
|
|
998
|
+
static formatSharedFileAddress(grant) {
|
|
999
|
+
return `${Resources.sharedFileScheme}://${grant}/`;
|
|
1000
|
+
}
|
|
1001
|
+
static formatSharedFileRefused(reason) {
|
|
1002
|
+
return `A shared file was not served: ${reason}.`;
|
|
1003
|
+
}
|
|
1004
|
+
static formatFileNotGranted(name, reason) {
|
|
1005
|
+
return `${name} was not given to the module: ${reason}`;
|
|
1006
|
+
}
|
|
1007
|
+
static formatOfferedFileUnreadable(code) {
|
|
1008
|
+
return `it can't be read (${code}).`;
|
|
1009
|
+
}
|
|
1010
|
+
static formatOfferedFileUnstaged(code) {
|
|
1011
|
+
return `it can't be staged for the module (${code}).`;
|
|
1012
|
+
}
|
|
1013
|
+
static formatFileFilterName(extensions) {
|
|
1014
|
+
return extensions.map(t => `*.${t}`).join(", ");
|
|
1015
|
+
}
|
|
1016
|
+
static formatWebViewsUnreadable(reason) {
|
|
1017
|
+
return `The modules' web view declarations could not be read, so no web view opens: ${reason}`;
|
|
1018
|
+
}
|
|
1019
|
+
static formatWebViewPageWithoutView(contentsId, address) {
|
|
1020
|
+
return `A page load was refused because its web contents ${contentsId} belong to no web view Noldova Desktop opened: ${address}`;
|
|
1021
|
+
}
|
|
1022
|
+
static formatWebViewAttachRefused(windowId, partition) {
|
|
1023
|
+
return `A <webview> in window ${windowId} was refused, because its partition "${partition}" belongs to no web view the window opened.`;
|
|
1024
|
+
}
|
|
1025
|
+
static formatWebViewPartition(module, profileKey) {
|
|
1026
|
+
return `${Resources.webViewPartitionPrefix}${module}${Resources.webViewPartitionSeparator}${profileKey}`;
|
|
1027
|
+
}
|
|
1028
|
+
static formatNotAnAddress(address) {
|
|
1029
|
+
return `"${address}" is not an IPv4 or IPv6 address.`;
|
|
1030
|
+
}
|
|
1031
|
+
static get untrustedRequest() {
|
|
1032
|
+
return `Only ${Resources.applicationName}'s own window may call the runtime.`;
|
|
1033
|
+
}
|
|
1034
|
+
static get restartName() {
|
|
1035
|
+
return `${ProductInfo.current.slug}-restart`;
|
|
1036
|
+
}
|
|
1037
|
+
static get restartArgumentsNotWritten() {
|
|
1038
|
+
return `${Resources.applicationName} couldn't keep its data and device folders for the new version, so the update wasn't installed.`;
|
|
1039
|
+
}
|
|
1040
|
+
static formatRestartArgumentsFile(installationId) {
|
|
1041
|
+
return `${ProductInfo.current.slug}-restart-${installationId}.json`;
|
|
1042
|
+
}
|
|
1043
|
+
static formatRestartArgumentsTaken(launchArguments) {
|
|
1044
|
+
return `The main process runs on the folders of the version it updated: ${launchArguments.join(" ")}`;
|
|
1045
|
+
}
|
|
1046
|
+
static formatRestartArgumentsUnread(error) {
|
|
1047
|
+
return `The folders kept for this version could not be read, so it starts on its own: ${error}`;
|
|
1048
|
+
}
|
|
1049
|
+
static formatRestartArgumentsNotForgotten(error) {
|
|
1050
|
+
return `The folders kept for this version could not be removed after it read them: ${error}`;
|
|
1051
|
+
}
|
|
1052
|
+
static formatRestartArgumentsNotRemoved(error) {
|
|
1053
|
+
return `The folders kept for the new version could not be removed after the update failed: ${error}`;
|
|
1054
|
+
}
|
|
1055
|
+
static formatAppImagePart(name, unique) {
|
|
1056
|
+
return `.${name}.${unique}.part`;
|
|
1057
|
+
}
|
|
1058
|
+
static formatAppImageUnreadable(image, reason) {
|
|
1059
|
+
return `The AppImage ${image} could not be read, so the update was not installed: ${reason}`;
|
|
1060
|
+
}
|
|
1061
|
+
static formatAppImageFolderUnwritable(folder, reason) {
|
|
1062
|
+
return `The folder ${folder} cannot be written, so the AppImage in it cannot be replaced with the update: ${reason}`;
|
|
1063
|
+
}
|
|
1064
|
+
static formatAppImageLeftoverNotRemoved(folder) {
|
|
1065
|
+
return `An unfinished copy of an earlier update in ${folder} could not be removed, so the AppImage in it was not replaced.`;
|
|
1066
|
+
}
|
|
1067
|
+
static formatDebianPackageNotInstalled(file, reason) {
|
|
1068
|
+
return `The Debian package ${file} could not be installed, so the installed version was left as it was: ${reason}`;
|
|
1069
|
+
}
|
|
1070
|
+
static formatAppImageNotReplaced(image, reason) {
|
|
1071
|
+
return `The AppImage ${image} could not be replaced with the update and was left as it was: ${reason}`;
|
|
1072
|
+
}
|
|
1073
|
+
static formatAppImageFolderNotSynced(folder, reason) {
|
|
1074
|
+
return `The AppImage in ${folder} was replaced, but the folder could not be flushed to disk: ${reason}`;
|
|
1075
|
+
}
|
|
1076
|
+
static formatShipItLabel(bundleIdentifier) {
|
|
1077
|
+
return `${bundleIdentifier}.ShipIt`;
|
|
1078
|
+
}
|
|
1079
|
+
static formatShipItUnreadable(reason) {
|
|
1080
|
+
return `The installer process of the staged update could not be looked up: ${reason}`;
|
|
1081
|
+
}
|
|
1082
|
+
static formatBuildDetails(productVersion, fingerprint) {
|
|
1083
|
+
return `${Resources.applicationName} ${productVersion}, build ${fingerprint}`;
|
|
1084
|
+
}
|
|
1085
|
+
static formatDataFolderDetails(folder) {
|
|
1086
|
+
return `Data folder: ${folder}`;
|
|
1087
|
+
}
|
|
1088
|
+
static formatDatabasesNotBackedUp(dataDirectory, reason) {
|
|
1089
|
+
return `${Resources.applicationName} couldn't back up the databases of ${dataDirectory}, so the update didn't start: ${reason}`;
|
|
1090
|
+
}
|
|
1091
|
+
static formatRuntimeNotReached(dataDirectory) {
|
|
1092
|
+
return `${Resources.applicationName} couldn't reach the runtime of ${dataDirectory} to stop it for the update.`;
|
|
1093
|
+
}
|
|
1094
|
+
static formatRuntimeStillStarting(dataDirectory) {
|
|
1095
|
+
return `The runtime of ${dataDirectory} was still starting, so it couldn't be stopped for the update.`;
|
|
1096
|
+
}
|
|
1097
|
+
static formatUpdateBarrierNotReleased(reason) {
|
|
1098
|
+
return `The update's barrier could not be removed after the update stopped, even when tried again: ${reason}`;
|
|
1099
|
+
}
|
|
1100
|
+
static formatFailureWithCause(message, cause) {
|
|
1101
|
+
return `${message} (${cause})`;
|
|
1102
|
+
}
|
|
1103
|
+
static formatRuntimeNotFound(dataDirectory) {
|
|
1104
|
+
return `The runtime of ${dataDirectory} could not be identified, so it can't be verified to stop for the update.`;
|
|
1105
|
+
}
|
|
1106
|
+
static formatStoppedShipItNotRemoved(reason) {
|
|
1107
|
+
return `The job of an installed update could not be removed, so it is tried again at the next start: ${reason}`;
|
|
1108
|
+
}
|
|
1109
|
+
static formatShipItNotRemoved(reason) {
|
|
1110
|
+
return `The staged update could not be withdrawn, so it may install when ${Resources.applicationName} quits: ${reason}`;
|
|
1111
|
+
}
|
|
1112
|
+
static formatInstallerUnsigned(installer, reason) {
|
|
1113
|
+
return `The update's installer ${installer} is not signed by the publisher, so it was not started: ${reason}`;
|
|
1114
|
+
}
|
|
1115
|
+
static formatInstallerNotStarted(installer, reason) {
|
|
1116
|
+
return `The update's installer ${installer} could not be started: ${reason}`;
|
|
1117
|
+
}
|
|
1118
|
+
static get iconFolderSegments() {
|
|
1119
|
+
return ProductInfo.current.icons.split(Resources.folderSeparator);
|
|
1120
|
+
}
|
|
1121
|
+
static get commandName() {
|
|
1122
|
+
return ProductInfo.current.slug;
|
|
1123
|
+
}
|
|
1124
|
+
static get commandInstalled() {
|
|
1125
|
+
return `The ${Resources.commandName} command is installed.`;
|
|
1126
|
+
}
|
|
1127
|
+
static get commandAlreadyInstalled() {
|
|
1128
|
+
return `The ${Resources.commandName} command is already installed.`;
|
|
1129
|
+
}
|
|
1130
|
+
static get commandNotInstalled() {
|
|
1131
|
+
return `The ${Resources.commandName} command was not installed.`;
|
|
1132
|
+
}
|
|
1133
|
+
static get commandMissingDetail() {
|
|
1134
|
+
return `This build of ${Resources.applicationName} has no command to link; an installed ${Resources.applicationName} has one.`;
|
|
1135
|
+
}
|
|
1136
|
+
static get windowStopped() {
|
|
1137
|
+
return `${Resources.applicationName}'s window stopped unexpectedly.`;
|
|
1138
|
+
}
|
|
1139
|
+
static get windowNotResponding() {
|
|
1140
|
+
return `${Resources.applicationName}'s window isn't responding.`;
|
|
1141
|
+
}
|
|
1142
|
+
static get mainProcessFailed() {
|
|
1143
|
+
return `${Resources.applicationName} stopped because of an unexpected error.`;
|
|
1144
|
+
}
|
|
1145
|
+
static get mainProcessFailedDetail() {
|
|
1146
|
+
return "Work running in the runtime continues. Changes from the last few seconds may not have been saved. "
|
|
1147
|
+
+ `Restart ${Resources.applicationName} to go on, or open the log folder to see what happened.`;
|
|
1148
|
+
}
|
|
1149
|
+
static get mainProcessFailedBeforeStartDetail() {
|
|
1150
|
+
return `This happened while ${Resources.applicationName} was starting. Restart ${Resources.applicationName} to try again.`;
|
|
1151
|
+
}
|
|
1152
|
+
static get restartButton() {
|
|
1153
|
+
return `Restart ${Resources.applicationName}`;
|
|
1154
|
+
}
|
|
1155
|
+
static get runtimeNotConnected() {
|
|
1156
|
+
return `${Resources.applicationName} is not connected to its runtime.`;
|
|
1157
|
+
}
|
|
1158
|
+
static get starterServiceName() {
|
|
1159
|
+
return `${Resources.applicationName} runtime starter`;
|
|
1160
|
+
}
|
|
1161
|
+
static formatInvalidDevice(file) {
|
|
1162
|
+
return `The device identity in ${file} is not valid; remove the file to give this device a new identity.`;
|
|
1163
|
+
}
|
|
1164
|
+
static formatWindowStateFailed(method, message) {
|
|
1165
|
+
return `The runtime refused ${method}: ${message}`;
|
|
1166
|
+
}
|
|
1167
|
+
static formatConnectionEnded(code, message) {
|
|
1168
|
+
return `The main process ended its connection to the runtime, so it connects again (${code}): ${message}`;
|
|
1169
|
+
}
|
|
1170
|
+
static formatEndedByMainProcess(code, message) {
|
|
1171
|
+
return `the main process ended it (${code}): ${message}`;
|
|
1172
|
+
}
|
|
1173
|
+
static formatReconnectionStopped(cause) {
|
|
1174
|
+
return `The connection to the runtime ended ${Resources.reconnectionDelays.length + 1} times in a row, each within ${Resources.stableConnectionPeriod / 1000} seconds of connecting, so the main process stopped connecting again. The last time, ${cause}`;
|
|
1175
|
+
}
|
|
1176
|
+
static formatEventNotForwarded(name, reason) {
|
|
1177
|
+
return `The runtime's event ${name} could not be passed to the window: ${reason}`;
|
|
1178
|
+
}
|
|
1179
|
+
static get openApplicationLabel() {
|
|
1180
|
+
return `Open ${Resources.applicationName}`;
|
|
1181
|
+
}
|
|
1182
|
+
static get quitApplicationLabel() {
|
|
1183
|
+
return `Quit ${Resources.applicationName}`;
|
|
1184
|
+
}
|
|
1185
|
+
static formatMoreWork(count) {
|
|
1186
|
+
return `and ${count} more`;
|
|
1187
|
+
}
|
|
1188
|
+
static formatRestartToUpdateLabel(version) {
|
|
1189
|
+
return `Restart to update to ${version}`;
|
|
1190
|
+
}
|
|
1191
|
+
static formatTrayToolTip(running, unread, isUpdateReady) {
|
|
1192
|
+
const parts = [...running > 0 ? [`${running} running`] : [], ...unread > 0 ? [`${unread} unread`] : [], ...isUpdateReady ? ["update ready"] : []];
|
|
1193
|
+
return parts.length === 0 ? Resources.applicationName : `${Resources.applicationName}: ${parts.join(", ")}`;
|
|
1194
|
+
}
|
|
1195
|
+
static formatSettingNotRead(name, reason) {
|
|
1196
|
+
return `The setting ${name} could not be read for this device, so the main process keeps its last value: ${reason}`;
|
|
1197
|
+
}
|
|
1198
|
+
static formatTrayNotShown(reason) {
|
|
1199
|
+
return `The tray icon could not be shown: ${reason}`;
|
|
1200
|
+
}
|
|
1201
|
+
static formatTrayStateNotRead(reason) {
|
|
1202
|
+
return `The tray icon could not read the runtime's work and notifications: ${reason}`;
|
|
1203
|
+
}
|
|
1204
|
+
static formatStopAgentsLabel(refusedKey) {
|
|
1205
|
+
return Object.isNull(refusedKey) ? Resources.stopAgentsLabel : `${Resources.stopAgentsLabel} (${refusedKey} works only in the app)`;
|
|
1206
|
+
}
|
|
1207
|
+
static formatStopKeyRefusedBody(key, platform) {
|
|
1208
|
+
return `The system refused ${key}, so it stops agents only while ${Resources.applicationName} is in front. Stop agents in its icon's menu in the ${platform === Resources.windowsPlatform ? "notification area" : "tray"} works at any time.`;
|
|
1209
|
+
}
|
|
1210
|
+
static formatStopKeyNotTaken(key, reason) {
|
|
1211
|
+
return `The stop key ${key} could not be taken system-wide, so it works only in the app: ${reason}`;
|
|
1212
|
+
}
|
|
1213
|
+
static formatStopKeyNoticeFailed(reason) {
|
|
1214
|
+
return `The operating system did not show the notice that the stop key works only in the app: ${reason}`;
|
|
1215
|
+
}
|
|
1216
|
+
static formatAgentCommandFailed(command, reason) {
|
|
1217
|
+
return `The command ${command} could not run from the stop key or the tray: ${reason}`;
|
|
1218
|
+
}
|
|
1219
|
+
static formatAppShortcutsNotRead(reason) {
|
|
1220
|
+
return `The window's shortcuts could not be read, so the runtime keeps the last ones: ${reason}`;
|
|
1221
|
+
}
|
|
1222
|
+
static formatAppSurfaceNotSent(method, reason) {
|
|
1223
|
+
return `The runtime was not told ${method}, so it is sent again at the next change: ${reason}`;
|
|
1224
|
+
}
|
|
1225
|
+
static formatAgentControlNotRead(reason) {
|
|
1226
|
+
return `The runtime's agent control could not be read, so the stop key waits for its next change: ${reason}`;
|
|
1227
|
+
}
|
|
1228
|
+
static formatDoNotDisturbNotSet(reason) {
|
|
1229
|
+
return `Do not disturb could not be changed from the tray: ${reason}`;
|
|
1230
|
+
}
|
|
1231
|
+
static formatWorkNotRead(reason) {
|
|
1232
|
+
return `The runtime's work could not be read before quitting, so ${Resources.applicationName} quits without asking: ${reason}`;
|
|
1233
|
+
}
|
|
1234
|
+
static formatRuntimeNotStopped(reason) {
|
|
1235
|
+
return `The runtime could not be stopped as ${Resources.applicationName} quits: ${reason}`;
|
|
1236
|
+
}
|
|
1237
|
+
static get trayCloseHintTitle() {
|
|
1238
|
+
return `${Resources.applicationName} is still running`;
|
|
1239
|
+
}
|
|
1240
|
+
static formatTrayCloseHintBody(platform) {
|
|
1241
|
+
return `Open it again or quit it from its icon in the ${platform === Resources.windowsPlatform ? "notification area" : "tray"}.`;
|
|
1242
|
+
}
|
|
1243
|
+
static formatTrayCloseHintFailed(reason) {
|
|
1244
|
+
return `The operating system did not show the hint that ${Resources.applicationName} is still running, so it counts as not shown: ${reason}`;
|
|
1245
|
+
}
|
|
1246
|
+
static formatDeviceStateNotRead(reason) {
|
|
1247
|
+
return `The device's state could not be read, so its hints count as not shown and the tray icon follows its default until the runtime answers: ${reason}`;
|
|
1248
|
+
}
|
|
1249
|
+
static formatDeviceStateUnsaved(key, reason) {
|
|
1250
|
+
return `The device could not record ${key} in its state: ${reason}`;
|
|
1251
|
+
}
|
|
1252
|
+
static formatModuleLogLine(moduleId, line) {
|
|
1253
|
+
return `${moduleId}: ${line}`;
|
|
1254
|
+
}
|
|
1255
|
+
static formatWindowErrorLine(moduleId, line) {
|
|
1256
|
+
return Object.isNull(moduleId) ? `Window error: ${line}` : `Window error in ${moduleId}: ${line}`;
|
|
1257
|
+
}
|
|
1258
|
+
static formatBoundsUnsaved(reason) {
|
|
1259
|
+
return `The window's bounds could not be saved: ${reason}`;
|
|
1260
|
+
}
|
|
1261
|
+
static formatBoundsLostAtClose(reason) {
|
|
1262
|
+
return `The window closed without saving its bounds, because the runtime could not be reached; the last position is lost: ${reason}`;
|
|
1263
|
+
}
|
|
1264
|
+
static formatLocalBoundsUnkept(reason) {
|
|
1265
|
+
return `The window's bounds from the runtime could not be kept on this device, so its next start waits for the runtime's: ${reason}`;
|
|
1266
|
+
}
|
|
1267
|
+
static formatLocalBoundsUnreadable(reason) {
|
|
1268
|
+
return `The window's bounds kept on this device could not be read, so it waits for the runtime's: ${reason}`;
|
|
1269
|
+
}
|
|
1270
|
+
static formatBoundsNotRestored(reason) {
|
|
1271
|
+
return `The window's saved bounds could not be restored, so it opens with its default bounds: ${reason}`;
|
|
1272
|
+
}
|
|
1273
|
+
static formatMethodRefused(method) {
|
|
1274
|
+
return `The window may not call ${method}; the main process calls the shell's methods itself.`;
|
|
1275
|
+
}
|
|
1276
|
+
static formatLogFolderNotOpened(reason) {
|
|
1277
|
+
return `The log folder could not be opened: ${reason}`;
|
|
1278
|
+
}
|
|
1279
|
+
static formatLinkNotOpened(reason) {
|
|
1280
|
+
return `A link could not be opened: ${reason}`;
|
|
1281
|
+
}
|
|
1282
|
+
static formatFileNotOpened(reason) {
|
|
1283
|
+
return `A file was not opened: ${reason}`;
|
|
1284
|
+
}
|
|
1285
|
+
static formatFileNotShown(reason) {
|
|
1286
|
+
return `A file was not shown in its folder: ${reason}`;
|
|
1287
|
+
}
|
|
1288
|
+
static formatSavedFilePart(unique) {
|
|
1289
|
+
return `.${unique}.part`;
|
|
1290
|
+
}
|
|
1291
|
+
static formatImageNotCopied(reason) {
|
|
1292
|
+
return `An image could not be copied: ${reason}`;
|
|
1293
|
+
}
|
|
1294
|
+
static formatFileNotSaved(reason) {
|
|
1295
|
+
return `A file could not be saved: ${reason}`;
|
|
1296
|
+
}
|
|
1297
|
+
static formatDownloadsNotFound(reason) {
|
|
1298
|
+
return `The Downloads folder was not found, so the save dialog starts in the system's last folder: ${reason}`;
|
|
1299
|
+
}
|
|
1300
|
+
static formatNotAFolder(path) {
|
|
1301
|
+
return `${path} is not a folder.`;
|
|
1302
|
+
}
|
|
1303
|
+
static formatAdministratorPrompt(link) {
|
|
1304
|
+
return `${Resources.applicationName} wants to link ${link} to its ${Resources.commandName} command, so that terminals can run it.`;
|
|
1305
|
+
}
|
|
1306
|
+
static formatCommandInstalledDetail(link) {
|
|
1307
|
+
return `${link} links to the command inside ${Resources.applicationName}. Terminals opened from now on run it as ${Resources.commandName}.`;
|
|
1308
|
+
}
|
|
1309
|
+
static formatCommandAlreadyInstalledDetail(link) {
|
|
1310
|
+
return `${link} already links to the command inside this ${Resources.applicationName}.`;
|
|
1311
|
+
}
|
|
1312
|
+
static formatCommandOccupiedDetail(link) {
|
|
1313
|
+
return `${link} is a file that is not a link, so ${Resources.applicationName} leaves it alone. Move or remove it, then install the command again.`;
|
|
1314
|
+
}
|
|
1315
|
+
static formatPathCommandFailed(link, reason) {
|
|
1316
|
+
return `The ${Resources.commandName} command could not be linked at ${link}: ${reason}`;
|
|
1317
|
+
}
|
|
1318
|
+
static formatProgramFailed(file, reason) {
|
|
1319
|
+
return `${file} failed: ${reason}`;
|
|
1320
|
+
}
|
|
1321
|
+
static formatSystemNotificationFailed(reason) {
|
|
1322
|
+
return `The operating system did not show a notification: ${reason}`;
|
|
1323
|
+
}
|
|
1324
|
+
static formatNotificationsNotRead(reason) {
|
|
1325
|
+
return `The notifications could not be read, so the operating system shows none until the window reads them again: ${reason}`;
|
|
1326
|
+
}
|
|
1327
|
+
static formatDataFolderUnusable(folder, reason) {
|
|
1328
|
+
return `${Resources.applicationName} cannot use the data folder ${folder}: ${reason}`;
|
|
1329
|
+
}
|
|
1330
|
+
static formatFailureDetail(problem, advice) {
|
|
1331
|
+
return `${problem}\n\n${advice}`;
|
|
1332
|
+
}
|
|
1333
|
+
static formatDeviceUnavailable(reason) {
|
|
1334
|
+
return `This device's identity could not be read, so window bounds are not kept: ${reason}`;
|
|
1335
|
+
}
|
|
1336
|
+
static formatStarterFailed(failure) {
|
|
1337
|
+
return `The runtime starter could not start the runtime: ${failure}`;
|
|
1338
|
+
}
|
|
1339
|
+
static formatUpdateWork(description, dataDirectory) {
|
|
1340
|
+
return `${description} (${dataDirectory})`;
|
|
1341
|
+
}
|
|
1342
|
+
static formatWorkStartedMeanwhile(work) {
|
|
1343
|
+
return `Work started while ${Resources.applicationName} prepared to update: ${work}`;
|
|
1344
|
+
}
|
|
1345
|
+
static formatUpdateRefused(dataDirectory, message) {
|
|
1346
|
+
return `The runtime of ${dataDirectory} could not prepare for the update: ${message}`;
|
|
1347
|
+
}
|
|
1348
|
+
static formatUpdateUnsaved(dataDirectory, problems) {
|
|
1349
|
+
return `Not everything of ${dataDirectory} was saved: ${problems}`;
|
|
1350
|
+
}
|
|
1351
|
+
static formatProcessesNotExited(processes, seconds) {
|
|
1352
|
+
return `These processes did not exit within ${seconds} seconds: ${processes}`;
|
|
1353
|
+
}
|
|
1354
|
+
static formatUpdateSavedUnsent(message) {
|
|
1355
|
+
return `The runtime was not told that the windows had saved for the update: ${message}`;
|
|
1356
|
+
}
|
|
1357
|
+
static formatRuntimeNotStarted(reason) {
|
|
1358
|
+
return `The runtime could not be started or reached, so the window offers to try again: ${reason}`;
|
|
1359
|
+
}
|
|
1360
|
+
static formatDictionariesUnread(reason) {
|
|
1361
|
+
return `The list of shipped dictionaries could not be read, so no spelling language is offered: ${reason}`;
|
|
1362
|
+
}
|
|
1363
|
+
static formatDictionaryUncopied(reason) {
|
|
1364
|
+
return `A shipped dictionary could not be put in the profile, so its language is not offered: ${reason}`;
|
|
1365
|
+
}
|
|
1366
|
+
static formatDictionaryFieldInvalid(value) {
|
|
1367
|
+
return `"${value}" is not a language tag or a dictionary file name.`;
|
|
1368
|
+
}
|
|
1369
|
+
static formatSpellingLanguagesRefused(languages, reason) {
|
|
1370
|
+
return `The spell checker refused the languages ${languages}: ${reason}`;
|
|
1371
|
+
}
|
|
1372
|
+
static formatSpellingRejected(reason) {
|
|
1373
|
+
return `The window's spelling preferences were rejected: ${reason}`;
|
|
1374
|
+
}
|
|
1375
|
+
static formatAppearanceUnread(reason) {
|
|
1376
|
+
return `The device's last appearance could not be read, so the window starts in the default appearance: ${reason}`;
|
|
1377
|
+
}
|
|
1378
|
+
static formatAppearanceUnsaved(reason) {
|
|
1379
|
+
return `The device's appearance could not be kept for the next start: ${reason}`;
|
|
1380
|
+
}
|
|
1381
|
+
static formatWindowPageNotLoaded(file, reason) {
|
|
1382
|
+
return `The window's page ${file} didn't load: ${reason}`;
|
|
1383
|
+
}
|
|
1384
|
+
static formatPreferencesRejected(reason) {
|
|
1385
|
+
return `The window's appearance preferences are not valid, so they are not kept: ${reason}`;
|
|
1386
|
+
}
|
|
1387
|
+
static formatMenuBarRejected(reason) {
|
|
1388
|
+
return `The window sent a menu bar that is not valid, so the menu bar is unchanged: ${reason}`;
|
|
1389
|
+
}
|
|
1390
|
+
static formatAppearanceRejected(reason) {
|
|
1391
|
+
return `The window reported an appearance that is not valid, so it is shown without it: ${reason}`;
|
|
1392
|
+
}
|
|
1393
|
+
static formatSingleInstanceLockRefused(processId) {
|
|
1394
|
+
return `Another main process owns this data directory, so this one (${processId}) quits and asks that one to show its window.`;
|
|
1395
|
+
}
|
|
1396
|
+
static formatMainProcessLogUnavailable(reason) {
|
|
1397
|
+
return `The main process's log could not be written, so its records go to standard error only: ${reason}`;
|
|
1398
|
+
}
|
|
1399
|
+
static formatJsonPath(path, name) {
|
|
1400
|
+
return `${path}.${name}`;
|
|
1401
|
+
}
|
|
1402
|
+
static formatQuotedArgument(value) {
|
|
1403
|
+
return `"${value}"`;
|
|
1404
|
+
}
|
|
1405
|
+
static formatDraftFile(file, id) {
|
|
1406
|
+
return `${file}.${id}`;
|
|
1407
|
+
}
|
|
1408
|
+
static formatTemporaryFile(file, id) {
|
|
1409
|
+
return `${file}.${id}${Resources.temporarySuffix}`;
|
|
1410
|
+
}
|
|
1411
|
+
static formatJsonLine(json) {
|
|
1412
|
+
return `${json}${Resources.logLineSeparator}`;
|
|
1413
|
+
}
|
|
1414
|
+
static formatFeedUserAgent(slug, version, comments) {
|
|
1415
|
+
return `${slug}/${version} (${comments.join(Resources.userAgentCommentSeparator)})`;
|
|
1416
|
+
}
|
|
1417
|
+
static formatLogLine(time, text) {
|
|
1418
|
+
return `${time} ${text}${Resources.logLineSeparator}`;
|
|
1419
|
+
}
|
|
1420
|
+
static formatFeatureList(features, feature) {
|
|
1421
|
+
return `${features},${feature}`;
|
|
1422
|
+
}
|
|
1423
|
+
static formatArgumentValuePrefix(name) {
|
|
1424
|
+
return `${name}=`;
|
|
1425
|
+
}
|
|
1426
|
+
static formatProcessEntry(role, processId) {
|
|
1427
|
+
return `${role} ${processId}`;
|
|
1428
|
+
}
|
|
1429
|
+
static formatWindowShownUnpainted(seconds, isLoading, isCrashed) {
|
|
1430
|
+
const page = isCrashed ? "its page has crashed" : isLoading ? "its page is still loading" : "its page loaded but did not report its first paint";
|
|
1431
|
+
return `The window was shown before it was painted, ${seconds} s after it opened, because ${page}.`;
|
|
1432
|
+
}
|
|
1433
|
+
static formatRendererGone(reason, exitCode) {
|
|
1434
|
+
return `The window's page stopped: ${reason}, exit code ${exitCode}.`;
|
|
1435
|
+
}
|
|
1436
|
+
static formatRendererEnded(processId) {
|
|
1437
|
+
return `The window's page did not stop when asked, so the main process ended its process ${processId}.`;
|
|
1438
|
+
}
|
|
1439
|
+
static formatNoRendererToEnd(processId) {
|
|
1440
|
+
return `The window's page did not stop when asked and has no renderer process of its own to end (${processId}), so the main process reloads it.`;
|
|
1441
|
+
}
|
|
1442
|
+
static formatRendererNotEnded(reason) {
|
|
1443
|
+
return `The window's page did not stop when asked, and its process could not be ended, so the main process reloads it: ${reason}`;
|
|
1444
|
+
}
|
|
1445
|
+
static formatRecoveryChoice(choice) {
|
|
1446
|
+
return `The person chose ${choice}.`;
|
|
1447
|
+
}
|
|
1448
|
+
static formatMainProcessFailure(kind, error) {
|
|
1449
|
+
return `The main process's main process failed with ${kind === MainProcessFailureKind.UnhandledRejection ? "an unhandled rejection" : "an uncaught exception"}: ${error}`;
|
|
1450
|
+
}
|
|
1451
|
+
static formatMainProcessNotReleased(error) {
|
|
1452
|
+
return `The main process could not stop its watchers and helper programs before it quit: ${error}`;
|
|
1453
|
+
}
|
|
1454
|
+
static formatMainProcessBoxFailed(error) {
|
|
1455
|
+
return `The main process could not ask what to do after its main process failed, so it quits: ${error}`;
|
|
1456
|
+
}
|
|
1457
|
+
static get updateFeedUnreachable() {
|
|
1458
|
+
return `${Resources.applicationName} couldn't reach its update feed.`;
|
|
1459
|
+
}
|
|
1460
|
+
static formatUpdateFeedRefused(status) {
|
|
1461
|
+
return `The update feed answered with HTTP status ${status}.`;
|
|
1462
|
+
}
|
|
1463
|
+
static get updateCheckedElsewhere() {
|
|
1464
|
+
return `Another ${Resources.applicationName} is checking for updates.`;
|
|
1465
|
+
}
|
|
1466
|
+
static formatInstallerNotHeld(code) {
|
|
1467
|
+
return `The update's installer couldn't be held unchanged for its start (Windows error ${code}).`;
|
|
1468
|
+
}
|
|
1469
|
+
static formatUpdateNoLongerOffered(version) {
|
|
1470
|
+
return `The update feed no longer offers version ${version}.`;
|
|
1471
|
+
}
|
|
1472
|
+
static formatStagedUpdateKept(error) {
|
|
1473
|
+
return `A failed handoff left its update staged: ${error}`;
|
|
1474
|
+
}
|
|
1475
|
+
static formatHandoffNotRemoved(error) {
|
|
1476
|
+
return `The copy of an update's installer could not be removed, so it is removed at the next start: ${error}`;
|
|
1477
|
+
}
|
|
1478
|
+
static formatHandoffNotStamped(reason) {
|
|
1479
|
+
return `The process that took over the update could not be read to record it in the update's barrier: ${reason}`;
|
|
1480
|
+
}
|
|
1481
|
+
static formatHandoffNotRecorded(reason) {
|
|
1482
|
+
return `The process that took over the update could not be recorded in the update's barrier: ${reason}`;
|
|
1483
|
+
}
|
|
1484
|
+
static formatUpdateLockLeft(error) {
|
|
1485
|
+
return `The update check's lock could not be removed, so it stays until this main process checks again or quits: ${error}`;
|
|
1486
|
+
}
|
|
1487
|
+
static formatUpdateNotDeleted(error) {
|
|
1488
|
+
return `The update that failed its publisher check could not be deleted: ${error}`;
|
|
1489
|
+
}
|
|
1490
|
+
static formatUpdateCheckNotReleased(error) {
|
|
1491
|
+
return `The update check could not let go of its lock: ${error}`;
|
|
1492
|
+
}
|
|
1493
|
+
static formatUpdaterNotCreated(error) {
|
|
1494
|
+
return `The updater could not be created, so this main process doesn't check for updates: ${error}`;
|
|
1495
|
+
}
|
|
1496
|
+
static formatUpdateRequestCancelled(host) {
|
|
1497
|
+
return `An update request to ${host} was cancelled: it is neither the feed's host nor GitHub's release asset host.`;
|
|
1498
|
+
}
|
|
1499
|
+
static formatDailyCheckNotRecorded(error) {
|
|
1500
|
+
return `The day's first update check could not be recorded, so a later start may mark today's check again: ${error}`;
|
|
1501
|
+
}
|
|
1502
|
+
static formatUpdaterMessage(message) {
|
|
1503
|
+
return `The updater reported: ${message}`;
|
|
1504
|
+
}
|
|
1505
|
+
static formatSignatureInvalid(status, message) {
|
|
1506
|
+
const code = `0x${status.toString(16).toUpperCase().padStart(8, "0")}`;
|
|
1507
|
+
return message.length > 0 ? `its signature is not valid (${code}): ${message}` : `its signature is not valid (${code})`;
|
|
1508
|
+
}
|
|
1509
|
+
static formatSignedByAnother(signer, publisher) {
|
|
1510
|
+
return `it is signed by ${signer}, not by ${publisher}`;
|
|
1511
|
+
}
|
|
1512
|
+
static formatPublisherCheck(milliseconds, hasPassed) {
|
|
1513
|
+
return hasPassed ? `The update's publisher check passed in ${milliseconds} ms.` : `The update's publisher check failed in ${milliseconds} ms.`;
|
|
1514
|
+
}
|
|
1515
|
+
static formatUpdateFailed(error) {
|
|
1516
|
+
return `The update failed: ${error}`;
|
|
1517
|
+
}
|
|
1518
|
+
static formatUpdateInstalled(version) {
|
|
1519
|
+
return `version ${version} is no newer than the installed one`;
|
|
1520
|
+
}
|
|
1521
|
+
static formatUpdateRecordDropped(reason) {
|
|
1522
|
+
return `The ready update's record was removed, since ${reason}.`;
|
|
1523
|
+
}
|
|
1524
|
+
static formatUpdateNotRecorded(error) {
|
|
1525
|
+
return `The ready update could not be recorded, so it downloads again after a restart: ${error}`;
|
|
1526
|
+
}
|
|
1527
|
+
static formatUpdateNotPosted(message) {
|
|
1528
|
+
return `The runtime refused the ready update's notification, so the main process posts it again when the runtime is ready: ${message}`;
|
|
1529
|
+
}
|
|
1530
|
+
static formatUpdateNotNotified(error) {
|
|
1531
|
+
return `The ready update's notification could not be posted or recorded: ${error}`;
|
|
1532
|
+
}
|
|
1533
|
+
static formatUpdateReadyTitle(version) {
|
|
1534
|
+
return `${Resources.applicationName} ${version} is ready to install.`;
|
|
1535
|
+
}
|
|
1536
|
+
static formatChannelFile(platform, architecture) {
|
|
1537
|
+
return `latest-${platform}-${architecture}.yml`;
|
|
1538
|
+
}
|
|
1539
|
+
static formatPackageFile(productName, platform, architecture, extension) {
|
|
1540
|
+
return `${productName}-${platform}-${architecture}.${extension}`;
|
|
1541
|
+
}
|
|
1542
|
+
static formatUpdateCacheFolder(slug, installationId) {
|
|
1543
|
+
return `${slug}${Resources.updateCacheSuffix}${installationId}`;
|
|
1544
|
+
}
|
|
1545
|
+
static formatWindowSize(name, minimum) {
|
|
1546
|
+
return `The window ${name} is a whole number of at least ${minimum} pixels.`;
|
|
1547
|
+
}
|
|
1548
|
+
}
|
|
1549
|
+
//# sourceMappingURL=resources.js.map
|