@e-xi/xion 0.0.6
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/README.md +1 -0
- package/dist/bin/icon-generator.d.ts +22 -0
- package/dist/bin/index.d.ts +5 -0
- package/dist/bin/index.js +92 -0
- package/dist/bin/logo-generator.d.ts +22 -0
- package/dist/chunk-files/chunk-34OODP7M.js +147 -0
- package/dist/chunk-files/chunk-3KBZWBNP.js +51 -0
- package/dist/chunk-files/chunk-3R6EJDYR.js +10 -0
- package/dist/chunk-files/chunk-3RVKOFMP.js +68 -0
- package/dist/chunk-files/chunk-3S5OTD47.js +35 -0
- package/dist/chunk-files/chunk-3XB4IEWO.js +195 -0
- package/dist/chunk-files/chunk-3XOVD6UX.js +8 -0
- package/dist/chunk-files/chunk-4HEDNQUP.js +426 -0
- package/dist/chunk-files/chunk-4SSGMLEE.js +934 -0
- package/dist/chunk-files/chunk-5PKWVAQP.js +92 -0
- package/dist/chunk-files/chunk-6BOPFOZD.js +19 -0
- package/dist/chunk-files/chunk-6FDO72PN.js +25 -0
- package/dist/chunk-files/chunk-6X74EPRM.js +0 -0
- package/dist/chunk-files/chunk-B2FI5WI5.js +67 -0
- package/dist/chunk-files/chunk-B7DTBTWQ.js +74 -0
- package/dist/chunk-files/chunk-BFD2LHLK.js +60 -0
- package/dist/chunk-files/chunk-BJOPQNB2.js +319 -0
- package/dist/chunk-files/chunk-BMOLIJ3W.js +89 -0
- package/dist/chunk-files/chunk-BPTFUGTP.js +97 -0
- package/dist/chunk-files/chunk-CSUNGWAE.js +405 -0
- package/dist/chunk-files/chunk-D5ZV4VMI.js +627 -0
- package/dist/chunk-files/chunk-DD6WZ4NY.js +841 -0
- package/dist/chunk-files/chunk-DEODEAKM.js +19 -0
- package/dist/chunk-files/chunk-DRMV3M5V.js +1970 -0
- package/dist/chunk-files/chunk-EQTU45UO.js +21 -0
- package/dist/chunk-files/chunk-F7YTK2MY.js +154 -0
- package/dist/chunk-files/chunk-FMQTZ3QV.js +17 -0
- package/dist/chunk-files/chunk-FPN7JYR4.js +67 -0
- package/dist/chunk-files/chunk-FULHNQ4O.js +1243 -0
- package/dist/chunk-files/chunk-GN2FNR3Z.js +259 -0
- package/dist/chunk-files/chunk-GROGDGEL.js +177 -0
- package/dist/chunk-files/chunk-GUOSVDXA.js +34 -0
- package/dist/chunk-files/chunk-HT5V5A7S.js +6 -0
- package/dist/chunk-files/chunk-ID3YDA2K.js +19 -0
- package/dist/chunk-files/chunk-IH3R2NDR.js +230 -0
- package/dist/chunk-files/chunk-IMGYTSWY.js +261 -0
- package/dist/chunk-files/chunk-J34MOWJP.js +26 -0
- package/dist/chunk-files/chunk-KFK47PDH.js +77 -0
- package/dist/chunk-files/chunk-KFV4GXVE.js +11 -0
- package/dist/chunk-files/chunk-LFHJJQW3.js +723 -0
- package/dist/chunk-files/chunk-LQ67F6EY.js +32 -0
- package/dist/chunk-files/chunk-MJ6Q3TIX.js +703 -0
- package/dist/chunk-files/chunk-OUFO3LM4.js +135 -0
- package/dist/chunk-files/chunk-P4CX6I4J.js +14 -0
- package/dist/chunk-files/chunk-PL5KNBCY.js +78 -0
- package/dist/chunk-files/chunk-PVWRRUOK.js +11 -0
- package/dist/chunk-files/chunk-Q7LCZIQP.js +15 -0
- package/dist/chunk-files/chunk-Q7YMMN7J.js +220 -0
- package/dist/chunk-files/chunk-RAVPJRBA.js +118 -0
- package/dist/chunk-files/chunk-RN7AI33H.js +26 -0
- package/dist/chunk-files/chunk-RODB64YF.js +148 -0
- package/dist/chunk-files/chunk-SVTZ4T6S.js +10 -0
- package/dist/chunk-files/chunk-T3QCAOCO.js +20 -0
- package/dist/chunk-files/chunk-U4XEWVBH.js +19 -0
- package/dist/chunk-files/chunk-UCMR6V67.js +746 -0
- package/dist/chunk-files/chunk-UFYEZIUE.js +1269 -0
- package/dist/chunk-files/chunk-UIJUY7QZ.js +18 -0
- package/dist/chunk-files/chunk-VGDNICVG.js +67 -0
- package/dist/chunk-files/chunk-W2I3I7U7.js +35 -0
- package/dist/chunk-files/chunk-WGYOMA43.js +33 -0
- package/dist/chunk-files/chunk-WKVLVI6N.js +44 -0
- package/dist/chunk-files/chunk-WOJ2UKI7.js +11 -0
- package/dist/chunk-files/chunk-Y3OEXVQ2.js +59 -0
- package/dist/chunk-files/chunk-YLZRRUY7.js +6 -0
- package/dist/chunk-files/chunk-YTHS2ZV7.js +51 -0
- package/dist/chunk-files/chunk-YXAEUJKJ.js +331 -0
- package/dist/chunk-files/chunk-YZOJOLFL.js +121 -0
- package/dist/main/app/app-lifecycle-abstract.d.ts +190 -0
- package/dist/main/app/app-lifecycle.d.ts +7 -0
- package/dist/main/app/icons/icon.ico +0 -0
- package/dist/main/app/index.d.ts +8 -0
- package/dist/main/app/index.js +1226 -0
- package/dist/main/app/types/app.d.ts +74 -0
- package/dist/main/app/xo-app-abstract.d.ts +464 -0
- package/dist/main/app/xo-app.d.ts +23 -0
- package/dist/main/auth/index.d.ts +8 -0
- package/dist/main/auth/index.js +109 -0
- package/dist/main/auth/jwt-auth-manager.d.ts +302 -0
- package/dist/main/auth/jwt-auth-provider-abstract.d.ts +100 -0
- package/dist/main/auth/jwt-auth-refresh-rejected-error.d.ts +12 -0
- package/dist/main/auth/jwt-auth-session-changed-error.d.ts +12 -0
- package/dist/main/auth/types/jwt-auth-manager.d.ts +13 -0
- package/dist/main/banner/banner-abstract.d.ts +38 -0
- package/dist/main/banner/banner-manager.d.ts +20 -0
- package/dist/main/banner/index.d.ts +6 -0
- package/dist/main/banner/index.js +10 -0
- package/dist/main/banner/types/banner.d.ts +17 -0
- package/dist/main/config/app-config.d.ts +6 -0
- package/dist/main/config/index.d.ts +13 -0
- package/dist/main/config/index.js +33 -0
- package/dist/main/config/logger-config.d.ts +6 -0
- package/dist/main/config/remote-service-config.d.ts +6 -0
- package/dist/main/config/tray-config.d.ts +6 -0
- package/dist/main/config/types/app.d.ts +38 -0
- package/dist/main/config/types/logger.d.ts +82 -0
- package/dist/main/config/types/window.d.ts +35 -0
- package/dist/main/config/updater-config.d.ts +6 -0
- package/dist/main/config/window/main-window-config.d.ts +6 -0
- package/dist/main/config/window/setting-window-config.d.ts +6 -0
- package/dist/main/file-association/file-association-handlers-abstract.d.ts +23 -0
- package/dist/main/file-association/file-association-manager-abstract.d.ts +87 -0
- package/dist/main/file-association/file-association-manager.d.ts +13 -0
- package/dist/main/file-association/handlers/app-file-association-handlers.d.ts +12 -0
- package/dist/main/file-association/index.d.ts +8 -0
- package/dist/main/file-association/index.js +13 -0
- package/dist/main/file-association/types/file-association.d.ts +31 -0
- package/dist/main/ipc/handlers/app-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/auth-handlers.d.ts +12 -0
- package/dist/main/ipc/handlers/clipboard-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/contex-menu-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/dialog-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/file-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/log-handlers.d.ts +45 -0
- package/dist/main/ipc/handlers/remote-service-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/shell-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/theme-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/updater-handlers.d.ts +13 -0
- package/dist/main/ipc/handlers/window-handlers.d.ts +13 -0
- package/dist/main/ipc/index.d.ts +20 -0
- package/dist/main/ipc/index.js +60 -0
- package/dist/main/ipc/ipc-handlers-abstract.d.ts +23 -0
- package/dist/main/ipc/ipc-manager-abstract.d.ts +46 -0
- package/dist/main/ipc/ipc-manager.d.ts +13 -0
- package/dist/main/ipc/types/ipc-handler.d.ts +22 -0
- package/dist/main/ipc/utils/ipc-handler-util.d.ts +24 -0
- package/dist/main/logger/index.d.ts +4 -0
- package/dist/main/logger/index.js +13 -0
- package/dist/main/logger/xo-logger.d.ts +113 -0
- package/dist/main/menu/consts/menu-type.d.ts +1 -0
- package/dist/main/menu/index.d.ts +8 -0
- package/dist/main/menu/index.js +28 -0
- package/dist/main/menu/menu-items.d.ts +192 -0
- package/dist/main/menu/menu-manager-abstract.d.ts +273 -0
- package/dist/main/menu/menu-manager.d.ts +12 -0
- package/dist/main/menu/types/menu.d.ts +101 -0
- package/dist/main/mode/app-mode.d.ts +32 -0
- package/dist/main/mode/index.d.ts +5 -0
- package/dist/main/mode/index.js +9 -0
- package/dist/main/mode/types/mode.d.ts +25 -0
- package/dist/main/protocol/consts/protocol-keys.d.ts +10 -0
- package/dist/main/protocol/handlers/app-protocol-handlers.d.ts +12 -0
- package/dist/main/protocol/index.d.ts +9 -0
- package/dist/main/protocol/index.js +15 -0
- package/dist/main/protocol/protocol-handlers-abstract.d.ts +23 -0
- package/dist/main/protocol/protocol-manager-abstract.d.ts +85 -0
- package/dist/main/protocol/protocol-manager.d.ts +13 -0
- package/dist/main/protocol/types/protocol.d.ts +33 -0
- package/dist/main/remote-service/consts/remote-service-methods.d.ts +5 -0
- package/dist/main/remote-service/index.d.ts +7 -0
- package/dist/main/remote-service/index.js +17 -0
- package/dist/main/remote-service/remote-service-manager-abstract.d.ts +303 -0
- package/dist/main/remote-service/remote-service-manager.d.ts +7 -0
- package/dist/main/remote-service/types/remote-service.d.ts +9 -0
- package/dist/main/renderer-protocol/handlers/renderer-remote-service-protocol-handlers.d.ts +130 -0
- package/dist/main/renderer-protocol/handlers/renderer-root-protocol-handlers.d.ts +65 -0
- package/dist/main/renderer-protocol/index.d.ts +9 -0
- package/dist/main/renderer-protocol/index.js +18 -0
- package/dist/main/renderer-protocol/renderer-protocol-handlers-abstract.d.ts +23 -0
- package/dist/main/renderer-protocol/renderer-protocol-manager-abstract.d.ts +78 -0
- package/dist/main/renderer-protocol/renderer-protocol-manager.d.ts +13 -0
- package/dist/main/renderer-protocol/types/renderer-protocol.d.ts +34 -0
- package/dist/main/shortcut/handlers/app-shortcut-handlers.d.ts +11 -0
- package/dist/main/shortcut/handlers/window-shortcut-handlers.d.ts +11 -0
- package/dist/main/shortcut/index.d.ts +9 -0
- package/dist/main/shortcut/index.js +17 -0
- package/dist/main/shortcut/shortcut-handlers-abstract.d.ts +18 -0
- package/dist/main/shortcut/shortcut-manager-abstract.d.ts +121 -0
- package/dist/main/shortcut/shortcut-manager.d.ts +12 -0
- package/dist/main/shortcut/types/shortcut.d.ts +50 -0
- package/dist/main/store/app-store.d.ts +179 -0
- package/dist/main/store/index.d.ts +7 -0
- package/dist/main/store/index.js +13 -0
- package/dist/main/store/jwt-auth-store.d.ts +36 -0
- package/dist/main/store/types/app-store.d.ts +46 -0
- package/dist/main/store/types/jwt-auth-store.d.ts +14 -0
- package/dist/main/theme/consts/theme-sources.d.ts +10 -0
- package/dist/main/theme/index.d.ts +7 -0
- package/dist/main/theme/index.js +16 -0
- package/dist/main/theme/theme-manager-abstract.d.ts +93 -0
- package/dist/main/theme/theme-manager.d.ts +7 -0
- package/dist/main/theme/types/theme.d.ts +38 -0
- package/dist/main/tray/consts/tray-animation-name.d.ts +1 -0
- package/dist/main/tray/consts/tray-icon-name.d.ts +1 -0
- package/dist/main/tray/icons/blur.ico +0 -0
- package/dist/main/tray/icons/error.ico +0 -0
- package/dist/main/tray/icons/focus.ico +0 -0
- package/dist/main/tray/icons/none.ico +0 -0
- package/dist/main/tray/icons/offline.ico +0 -0
- package/dist/main/tray/icons/online.ico +0 -0
- package/dist/main/tray/icons/success.ico +0 -0
- package/dist/main/tray/index.d.ts +11 -0
- package/dist/main/tray/index.js +27 -0
- package/dist/main/tray/tray-animation.d.ts +48 -0
- package/dist/main/tray/tray-icon.d.ts +51 -0
- package/dist/main/tray/tray-lifecycle-abstract.d.ts +154 -0
- package/dist/main/tray/tray-lifecycle.d.ts +7 -0
- package/dist/main/tray/tray-manager.d.ts +173 -0
- package/dist/main/tray/types/tray.d.ts +81 -0
- package/dist/main/updater/dev-app-update.yml +5 -0
- package/dist/main/updater/index.d.ts +6 -0
- package/dist/main/updater/index.js +20 -0
- package/dist/main/updater/types/updater.d.ts +167 -0
- package/dist/main/updater/updater-manager-abstract.d.ts +237 -0
- package/dist/main/updater/updater-manager.d.ts +7 -0
- package/dist/main/utils/file-association-util.d.ts +43 -0
- package/dist/main/utils/index.d.ts +14 -0
- package/dist/main/utils/index.js +105 -0
- package/dist/main/utils/menu-util.d.ts +12 -0
- package/dist/main/utils/protocol-util.d.ts +49 -0
- package/dist/main/utils/runtime-config-util.d.ts +75 -0
- package/dist/main/utils/shortcut-util.d.ts +38 -0
- package/dist/main/utils/tray-util.d.ts +18 -0
- package/dist/main/utils/window-util.d.ts +55 -0
- package/dist/main/utils/xo-app-root-util.d.ts +30 -0
- package/dist/main/utils/xo-app-util.d.ts +24 -0
- package/dist/main/utils/xo-path-util.d.ts +59 -0
- package/dist/main/utils/xo-util.d.ts +17 -0
- package/dist/main/window/index.d.ts +10 -0
- package/dist/main/window/index.js +36 -0
- package/dist/main/window/main/main-window-lifecycle.d.ts +7 -0
- package/dist/main/window/main/main-window-type.d.ts +5 -0
- package/dist/main/window/setting/setting-window-lifecycle.d.ts +7 -0
- package/dist/main/window/setting/setting-window-type.d.ts +5 -0
- package/dist/main/window/types/window.d.ts +86 -0
- package/dist/main/window/window-lifecycle-abstract.d.ts +514 -0
- package/dist/main/window/window-manager.d.ts +422 -0
- package/dist/preload/bridge/bridge-abstract.d.ts +11 -0
- package/dist/preload/bridge/bridge.d.ts +35 -0
- package/dist/preload/bridge/index.d.ts +6 -0
- package/dist/preload/bridge/index.js +117 -0
- package/dist/preload/bridge/preload.cjs +1706 -0
- package/dist/preload/bridge/preload.internal.d.ts +1 -0
- package/dist/preload/bridge/types/bridge.d.ts +19 -0
- package/dist/preload/bridges/app/app-bridge.d.ts +142 -0
- package/dist/preload/bridges/app/types/app.d.ts +65 -0
- package/dist/preload/bridges/auth/auth-bridge.d.ts +36 -0
- package/dist/preload/bridges/auth/types/auth.d.ts +23 -0
- package/dist/preload/bridges/clipboard/clipboard-bridge.d.ts +37 -0
- package/dist/preload/bridges/clipboard/types/clipboard.d.ts +23 -0
- package/dist/preload/bridges/context-menu/context-menu-bridge.d.ts +27 -0
- package/dist/preload/bridges/context-menu/types/context-menu.d.ts +19 -0
- package/dist/preload/bridges/dialog/dialog-bridge.d.ts +30 -0
- package/dist/preload/bridges/dialog/types/dialog.d.ts +41 -0
- package/dist/preload/bridges/file/file-bridge.d.ts +34 -0
- package/dist/preload/bridges/file/types/file.d.ts +21 -0
- package/dist/preload/bridges/index.d.ts +29 -0
- package/dist/preload/bridges/index.js +40 -0
- package/dist/preload/bridges/ipc/ipc-bridge.d.ts +43 -0
- package/dist/preload/bridges/ipc/types/ipc.d.ts +23 -0
- package/dist/preload/bridges/log/log-bridge.d.ts +52 -0
- package/dist/preload/bridges/log/types/log.d.ts +20 -0
- package/dist/preload/bridges/remote-service/remote-service-bridge.d.ts +55 -0
- package/dist/preload/bridges/remote-service/types/remote-service.d.ts +29 -0
- package/dist/preload/bridges/shell/shell-bridge.d.ts +27 -0
- package/dist/preload/bridges/shell/types/shell.d.ts +19 -0
- package/dist/preload/bridges/theme/theme-bridge.d.ts +32 -0
- package/dist/preload/bridges/theme/types/theme.d.ts +21 -0
- package/dist/preload/bridges/updater/types/updater.d.ts +35 -0
- package/dist/preload/bridges/updater/updater-bridge.d.ts +66 -0
- package/dist/preload/bridges/window/internal/route-redirect-buffer.d.ts +36 -0
- package/dist/preload/bridges/window/types/window.d.ts +53 -0
- package/dist/preload/bridges/window/window-bridge.d.ts +118 -0
- package/dist/preload/utils/bridge-util.d.ts +43 -0
- package/dist/preload/utils/index.d.ts +4 -0
- package/dist/preload/utils/index.js +7 -0
- package/dist/renderer/app/bootstrap-renderer.d.ts +6 -0
- package/dist/renderer/app/index.d.ts +5 -0
- package/dist/renderer/app/index.js +164 -0
- package/dist/renderer/app/styles-element-plus.internal.d.ts +2 -0
- package/dist/renderer/app/styles-xion.internal.d.ts +2 -0
- package/dist/renderer/app/types/app.d.ts +51 -0
- package/dist/renderer/components/captcha/internal/captcha-controller.d.ts +280 -0
- package/dist/renderer/components/captcha/internal/captcha-css-property.d.ts +25 -0
- package/dist/renderer/components/captcha/internal/captcha-defaults.d.ts +33 -0
- package/dist/renderer/components/captcha/internal/captcha-errors.d.ts +21 -0
- package/dist/renderer/components/captcha/internal/captcha-helper.d.ts +72 -0
- package/dist/renderer/components/captcha/internal/captcha-injector.d.ts +16 -0
- package/dist/renderer/components/captcha/internal/captcha-runtime-types.d.ts +153 -0
- package/dist/renderer/components/captcha/internal/captcha-service.d.ts +22 -0
- package/dist/renderer/components/captcha/internal/captcha-slide-types.d.ts +62 -0
- package/dist/renderer/components/captcha/internal/captcha-ui-patch.d.ts +43 -0
- package/dist/renderer/components/captcha/internal/captcha-wasm-loader.d.ts +36 -0
- package/dist/renderer/components/captcha/style/index.less +132 -0
- package/dist/renderer/components/captcha/types/captcha.d.ts +132 -0
- package/dist/renderer/components/captcha/xo-captcha-host.vue +151 -0
- package/dist/renderer/components/captcha/xo-captcha.vue +83 -0
- package/dist/renderer/components/captcha.d.ts +40 -0
- package/dist/renderer/components/context-menu/types/context-menu.d.ts +55 -0
- package/dist/renderer/components/context-menu/xo-context-menu-items.vue +112 -0
- package/dist/renderer/components/context-menu/xo-context-menu.vue +356 -0
- package/dist/renderer/components/context-menu.d.ts +32 -0
- package/dist/renderer/components/divider/types/divider.d.ts +31 -0
- package/dist/renderer/components/divider/xo-divider.vue +176 -0
- package/dist/renderer/components/form/types/form-flex-row.d.ts +21 -0
- package/dist/renderer/components/form/types/form-flex.d.ts +49 -0
- package/dist/renderer/components/form/xo-form-flex-row.vue +122 -0
- package/dist/renderer/components/form/xo-form-flex.vue +115 -0
- package/dist/renderer/components/index.d.ts +70 -0
- package/dist/renderer/components/index.js +1282 -0
- package/dist/renderer/components/layouts/types/app-layout.d.ts +29 -0
- package/dist/renderer/components/layouts/types/mini-layout.d.ts +23 -0
- package/dist/renderer/components/layouts/types/simple-layout.d.ts +17 -0
- package/dist/renderer/components/layouts/xo-app-layout.vue +350 -0
- package/dist/renderer/components/layouts/xo-mini-layout.vue +207 -0
- package/dist/renderer/components/layouts/xo-simple-layout.vue +43 -0
- package/dist/renderer/components/pages/types/app-page.d.ts +25 -0
- package/dist/renderer/components/pages/types/bootstrap-page.d.ts +35 -0
- package/dist/renderer/components/pages/types/dynamic-page.d.ts +20 -0
- package/dist/renderer/components/pages/types/settings-page.d.ts +23 -0
- package/dist/renderer/components/pages/xo-app-page.vue +230 -0
- package/dist/renderer/components/pages/xo-bootstrap-page.vue +93 -0
- package/dist/renderer/components/pages/xo-dynamic-page.vue +28 -0
- package/dist/renderer/components/pages/xo-settings-page.vue +143 -0
- package/dist/renderer/components/radio-group/types/radio-group.d.ts +30 -0
- package/dist/renderer/components/radio-group/xo-radio-group.vue +38 -0
- package/dist/renderer/components/service-status-bar/types/service-status-bar.d.ts +65 -0
- package/dist/renderer/components/service-status-bar/xo-service-status-bar.vue +193 -0
- package/dist/renderer/components/settings-components/types/setting-app-opacity.d.ts +19 -0
- package/dist/renderer/components/settings-components/types/setting-log-level.d.ts +23 -0
- package/dist/renderer/components/settings-components/types/setting-shortcut-keys-record-for-form-flex-rows.d.ts +47 -0
- package/dist/renderer/components/settings-components/types/setting-shortcut-keys-record.d.ts +23 -0
- package/dist/renderer/components/settings-components/types/setting-window-material.d.ts +23 -0
- package/dist/renderer/components/settings-components/xo-setting-app-opacity.vue +105 -0
- package/dist/renderer/components/settings-components/xo-setting-log-level.vue +84 -0
- package/dist/renderer/components/settings-components/xo-setting-shortcut-keys-record-for-form-flex-rows.vue +37 -0
- package/dist/renderer/components/settings-components/xo-setting-shortcut-keys-record.vue +74 -0
- package/dist/renderer/components/settings-components/xo-setting-window-material.vue +83 -0
- package/dist/renderer/components/settings-pages/types/setting-page-folder.d.ts +41 -0
- package/dist/renderer/components/settings-pages/types/setting-page-general.d.ts +23 -0
- package/dist/renderer/components/settings-pages/types/setting-page-remote-service.d.ts +19 -0
- package/dist/renderer/components/settings-pages/types/setting-page-updater.d.ts +27 -0
- package/dist/renderer/components/settings-pages/xo-setting-page-folder.vue +137 -0
- package/dist/renderer/components/settings-pages/xo-setting-page-general.vue +255 -0
- package/dist/renderer/components/settings-pages/xo-setting-page-remote-service.vue +183 -0
- package/dist/renderer/components/settings-pages/xo-setting-page-updater.vue +350 -0
- package/dist/renderer/components/shortcut-keys-record/types/shortcut-keys-record.d.ts +25 -0
- package/dist/renderer/components/shortcut-keys-record/xo-shortcut-keys-record.vue +161 -0
- package/dist/renderer/components/side-bar/types/sidebar-logo.d.ts +39 -0
- package/dist/renderer/components/side-bar/xo-sidebar-logo.vue +133 -0
- package/dist/renderer/components/spacing-line/types/spacing-line.d.ts +17 -0
- package/dist/renderer/components/spacing-line/xo-spacing-line.vue +53 -0
- package/dist/renderer/components/theme-switch/types/theme-switch-mini.d.ts +21 -0
- package/dist/renderer/components/theme-switch/types/theme-switch.d.ts +45 -0
- package/dist/renderer/components/theme-switch/xo-theme-switch-mini.vue +93 -0
- package/dist/renderer/components/theme-switch/xo-theme-switch.vue +200 -0
- package/dist/renderer/components/title-bar/types/title-bar.d.ts +58 -0
- package/dist/renderer/components/title-bar/xo-title-bar.vue +364 -0
- package/dist/renderer/components/types/sidebar-menu.d.ts +37 -0
- package/dist/renderer/components/types/vue.d.ts +9 -0
- package/dist/renderer/components/updater/types/updater.d.ts +97 -0
- package/dist/renderer/components/updater/xo-updater.vue +1190 -0
- package/dist/renderer/components/window-control/types/window-control.d.ts +17 -0
- package/dist/renderer/components/window-control/xo-window-control.vue +193 -0
- package/dist/renderer/composables/index.d.ts +7 -0
- package/dist/renderer/composables/index.js +570 -0
- package/dist/renderer/composables/use-xo-boolean.d.ts +14 -0
- package/dist/renderer/composables/use-xo-data-loader.d.ts +73 -0
- package/dist/renderer/composables/use-xo-form-control.d.ts +84 -0
- package/dist/renderer/composables/use-xo-updater-action.d.ts +25 -0
- package/dist/renderer/global/index.d.ts +4 -0
- package/dist/renderer/global/index.js +0 -0
- package/dist/renderer/global/types/window.d.ts +21 -0
- package/dist/renderer/icons/demo.css +539 -0
- package/dist/renderer/icons/iconfont.css +490 -0
- package/dist/renderer/services/index.d.ts +6 -0
- package/dist/renderer/services/index.js +444 -0
- package/dist/renderer/services/orval-axios-mutator.d.ts +9 -0
- package/dist/renderer/services/types/xo-api.d.ts +92 -0
- package/dist/renderer/services/xo-api-requester.d.ts +129 -0
- package/dist/renderer/store/app/app-store.d.ts +68 -0
- package/dist/renderer/store/auth/auth-store.d.ts +43 -0
- package/dist/renderer/store/index.d.ts +9 -0
- package/dist/renderer/store/index.js +595 -0
- package/dist/renderer/store/remote-service/remote-service-store.d.ts +52 -0
- package/dist/renderer/store/theme/theme-store.d.ts +52 -0
- package/dist/renderer/store/updater/updater-store.d.ts +88 -0
- package/dist/renderer/store/window/window-store.d.ts +58 -0
- package/dist/renderer/styles/css/element-plus.less +280 -0
- package/dist/renderer/styles/css/iconfont-patch.less +6 -0
- package/dist/renderer/styles/css/reset.less +83 -0
- package/dist/renderer/styles/css/scrollbar.less +56 -0
- package/dist/renderer/styles/index.less +35 -0
- package/dist/renderer/styles/mixin.less +144 -0
- package/dist/renderer/styles/var/element-plus/dark.less +32 -0
- package/dist/renderer/styles/var/element-plus/root.less +88 -0
- package/dist/renderer/styles/var/global/dark.less +10 -0
- package/dist/renderer/styles/var/global/root.less +46 -0
- package/dist/renderer/styles/var/layout/dark.less +7 -0
- package/dist/renderer/styles/var/layout/root.less +9 -0
- package/dist/renderer/styles/var/scrollbar/dark.less +13 -0
- package/dist/renderer/styles/var/scrollbar/root.less +35 -0
- package/dist/renderer/utils/auth-route-util.d.ts +117 -0
- package/dist/renderer/utils/context-util.d.ts +13 -0
- package/dist/renderer/utils/error-util.d.ts +12 -0
- package/dist/renderer/utils/index.d.ts +14 -0
- package/dist/renderer/utils/index.js +1522 -0
- package/dist/renderer/utils/keyboard-util.d.ts +86 -0
- package/dist/renderer/utils/message-util.d.ts +161 -0
- package/dist/renderer/utils/renderer-log-util.d.ts +44 -0
- package/dist/renderer/utils/renderer-util.d.ts +37 -0
- package/dist/renderer/utils/router-util.d.ts +186 -0
- package/dist/renderer/utils/shortcut-util.d.ts +20 -0
- package/dist/renderer/utils/storage-util.d.ts +85 -0
- package/dist/renderer/utils/types/vue-router.d.ts +17 -0
- package/dist/shared/app/consts/app-launch-mode.d.ts +9 -0
- package/dist/shared/app/consts/update-mode.d.ts +8 -0
- package/dist/shared/app/consts/window-close-behavior.d.ts +8 -0
- package/dist/shared/app/consts/window-material.d.ts +8 -0
- package/dist/shared/app/consts/xion-name.d.ts +5 -0
- package/dist/shared/app/electron-app-config.d.ts +5 -0
- package/dist/shared/app/index.d.ts +16 -0
- package/dist/shared/app/index.js +30 -0
- package/dist/shared/app/types/app-info.d.ts +32 -0
- package/dist/shared/app/types/app-launch-mode.d.ts +13 -0
- package/dist/shared/app/types/app-paths.d.ts +27 -0
- package/dist/shared/app/types/general-settings.d.ts +27 -0
- package/dist/shared/app/types/on-window-close.d.ts +13 -0
- package/dist/shared/app/types/update-mode.d.ts +13 -0
- package/dist/shared/app/types/window-material.d.ts +2 -0
- package/dist/shared/auth/const/auth-status.d.ts +2 -0
- package/dist/shared/auth/index.d.ts +5 -0
- package/dist/shared/auth/index.js +5 -0
- package/dist/shared/auth/types/auth.d.ts +78 -0
- package/dist/shared/color/consts/color.d.ts +5 -0
- package/dist/shared/color/index.d.ts +5 -0
- package/dist/shared/color/index.js +6 -0
- package/dist/shared/color/types/color.d.ts +26 -0
- package/dist/shared/electron-builder/index.d.ts +4 -0
- package/dist/shared/electron-builder/index.js +0 -0
- package/dist/shared/electron-builder/types/electron-builder-options.d.ts +34 -0
- package/dist/shared/errors/index.d.ts +4 -0
- package/dist/shared/errors/index.js +10 -0
- package/dist/shared/errors/ipc-invoke-error.d.ts +32 -0
- package/dist/shared/ipc/channels/app-channels.d.ts +56 -0
- package/dist/shared/ipc/channels/auth-channels.d.ts +14 -0
- package/dist/shared/ipc/channels/clipboard-channels.d.ts +14 -0
- package/dist/shared/ipc/channels/context-menu-channels.d.ts +10 -0
- package/dist/shared/ipc/channels/dialog-channels.d.ts +12 -0
- package/dist/shared/ipc/channels/file-channels.d.ts +12 -0
- package/dist/shared/ipc/channels/log-channels.d.ts +14 -0
- package/dist/shared/ipc/channels/remote-service-channels.d.ts +20 -0
- package/dist/shared/ipc/channels/shell-channels.d.ts +10 -0
- package/dist/shared/ipc/channels/theme-channels.d.ts +12 -0
- package/dist/shared/ipc/channels/updater-channels.d.ts +26 -0
- package/dist/shared/ipc/channels/window-channels.d.ts +44 -0
- package/dist/shared/ipc/consts/ipc-channel.d.ts +1 -0
- package/dist/shared/ipc/index.d.ts +19 -0
- package/dist/shared/ipc/index.js +46 -0
- package/dist/shared/ipc/ipc-result.d.ts +20 -0
- package/dist/shared/ipc/types/ipc-logger.d.ts +27 -0
- package/dist/shared/ipc/types/ipc.d.ts +61 -0
- package/dist/shared/logger/consts/log-levels.d.ts +14 -0
- package/dist/shared/logger/index.d.ts +4 -0
- package/dist/shared/logger/index.js +10 -0
- package/dist/shared/menu/consts/menu-command.d.ts +1 -0
- package/dist/shared/menu/index.d.ts +6 -0
- package/dist/shared/menu/index.js +10 -0
- package/dist/shared/menu/menu-command.d.ts +24 -0
- package/dist/shared/menu/types/menu.d.ts +72 -0
- package/dist/shared/mode/consts/command.d.ts +10 -0
- package/dist/shared/mode/consts/mode.d.ts +22 -0
- package/dist/shared/mode/index.d.ts +5 -0
- package/dist/shared/mode/index.js +18 -0
- package/dist/shared/remote-service/const/remote-service.d.ts +8 -0
- package/dist/shared/remote-service/index.d.ts +5 -0
- package/dist/shared/remote-service/index.js +38 -0
- package/dist/shared/remote-service/types/remote-service.d.ts +146 -0
- package/dist/shared/renderer/index.d.ts +7 -0
- package/dist/shared/renderer/index.js +0 -0
- package/dist/shared/renderer/types/element-plus.d.ts +20 -0
- package/dist/shared/renderer/types/input.d.ts +11 -0
- package/dist/shared/renderer/types/options.d.ts +22 -0
- package/dist/shared/renderer/types/switch.d.ts +11 -0
- package/dist/shared/renderer-protocol/consts/renderer-protocol-keys.d.ts +10 -0
- package/dist/shared/renderer-protocol/index.d.ts +5 -0
- package/dist/shared/renderer-protocol/index.js +6 -0
- package/dist/shared/renderer-protocol/types/renderer-protocol.d.ts +7 -0
- package/dist/shared/runtime/index.d.ts +4 -0
- package/dist/shared/runtime/index.js +0 -0
- package/dist/shared/runtime/types/runtime.d.ts +20 -0
- package/dist/shared/shortcut/consts/shortcut-handler-ids.d.ts +9 -0
- package/dist/shared/shortcut/consts/shortcut-id.d.ts +1 -0
- package/dist/shared/shortcut/index.d.ts +6 -0
- package/dist/shared/shortcut/index.js +10 -0
- package/dist/shared/shortcut/types/shortcut.d.ts +13 -0
- package/dist/shared/utils/bytes-util.d.ts +16 -0
- package/dist/shared/utils/index.d.ts +15 -0
- package/dist/shared/utils/index.js +42 -0
- package/dist/shared/utils/ipc-util.d.ts +12 -0
- package/dist/shared/utils/log-util.d.ts +33 -0
- package/dist/shared/utils/menu-util.d.ts +12 -0
- package/dist/shared/utils/number-util.d.ts +12 -0
- package/dist/shared/utils/object-util.d.ts +88 -0
- package/dist/shared/utils/regexp-util.d.ts +22 -0
- package/dist/shared/utils/shortcut-util.d.ts +12 -0
- package/dist/shared/utils/string-util.d.ts +14 -0
- package/dist/shared/utils/time-util.d.ts +32 -0
- package/dist/shared/utils/validator-util.d.ts +12 -0
- package/dist/shared/utils/window-shared-util.d.ts +26 -0
- package/dist/shared/window/consts/window-record-id.d.ts +2 -0
- package/dist/shared/window/consts/window-type-name.d.ts +1 -0
- package/dist/shared/window/identity/main-window-identity.d.ts +5 -0
- package/dist/shared/window/identity/setting-window-identity.d.ts +5 -0
- package/dist/shared/window/index.d.ts +8 -0
- package/dist/shared/window/index.js +23 -0
- package/dist/shared/window/types/window.d.ts +84 -0
- package/dist/types/index.d.ts +102 -0
- package/dist/types/index.js +0 -0
- package/dist/vite/build/build-chunk.d.ts +53 -0
- package/dist/vite/build/build-csp-update.d.ts +80 -0
- package/dist/vite/build/build-obfuscation.d.ts +33 -0
- package/dist/vite/build/component-map.d.ts +38 -0
- package/dist/vite/build/component-resolver.d.ts +6 -0
- package/dist/vite/build/index.d.ts +9 -0
- package/dist/vite/build/index.js +18 -0
- package/dist/vite/build/types/build.d.ts +13 -0
- package/dist/vite/config/electron-app-config.d.ts +6 -0
- package/dist/vite/config/electron-builder-config.d.ts +8 -0
- package/dist/vite/config/electron-vite-config.d.ts +9 -0
- package/dist/vite/config/index.d.ts +11 -0
- package/dist/vite/config/index.js +2259 -0
- package/dist/vite/config/types/electron-app-options.d.ts +22 -0
- package/dist/vite/config/types/electron-builder-options.d.ts +16 -0
- package/dist/vite/config/types/electron-vite-options.d.ts +43 -0
- package/dist/vite/config/types/vite-obfuscation.d.ts +36 -0
- package/dist/vite/config/vite-obfuscation-config.d.ts +6 -0
- package/dist/vite/mode/index.d.ts +4 -0
- package/dist/vite/mode/index.js +8 -0
- package/dist/vite/mode/vite-mode.d.ts +37 -0
- package/dist/vite/orval/index.d.ts +4 -0
- package/dist/vite/orval/index.js +75 -0
- package/dist/vite/orval/orval-global-types.d.ts +23 -0
- package/dist/vite/utils/file-write-vite-util.d.ts +30 -0
- package/dist/vite/utils/index.d.ts +5 -0
- package/dist/vite/utils/index.js +10 -0
- package/dist/vite/utils/runtime-config-vite-util.d.ts +39 -0
- package/package.json +287 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
// src/shared/utils/bytes-util.ts
|
|
2
|
+
var BytesUtil = class {
|
|
3
|
+
/** 字节单位 */
|
|
4
|
+
static units = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
5
|
+
/**
|
|
6
|
+
* 格式化字节大小
|
|
7
|
+
* @param {number} bytes 字节数
|
|
8
|
+
* @param {number} fractionDigits 最大小数位数
|
|
9
|
+
* @param {boolean} space 数值与单位之间是否添加空格
|
|
10
|
+
* @returns {string}
|
|
11
|
+
*/
|
|
12
|
+
static format(bytes, fractionDigits = 2, space = true) {
|
|
13
|
+
if (!Number.isFinite(bytes)) {
|
|
14
|
+
throw new TypeError(`\u5B57\u8282\u6570\u5FC5\u987B\u662F\u6709\u9650\u6570\u5B57: ${bytes}`);
|
|
15
|
+
}
|
|
16
|
+
if (!Number.isInteger(fractionDigits) || fractionDigits < 0 || fractionDigits > 20) {
|
|
17
|
+
throw new RangeError(`\u5C0F\u6570\u4F4D\u6570\u5FC5\u987B\u662F 0 \u5230 20 \u4E4B\u95F4\u7684\u6574\u6570: ${fractionDigits}`);
|
|
18
|
+
}
|
|
19
|
+
const absoluteBytes = Math.abs(bytes);
|
|
20
|
+
const unitIndex = absoluteBytes < 1024 ? 0 : Math.min(Math.floor(Math.log(absoluteBytes) / Math.log(1024)), this.units.length - 1);
|
|
21
|
+
const value = bytes / 1024 ** unitIndex;
|
|
22
|
+
const formatted = Number(value.toFixed(fractionDigits));
|
|
23
|
+
return `${formatted}${space ? " " : ""}${this.units[unitIndex]}`;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// src/shared/utils/number-util.ts
|
|
28
|
+
var NumberUtil = class {
|
|
29
|
+
/**
|
|
30
|
+
* 是否为有限数字
|
|
31
|
+
* @param {unknown} number 数字
|
|
32
|
+
* @returns {boolean}
|
|
33
|
+
*/
|
|
34
|
+
static isFinite(number) {
|
|
35
|
+
if (typeof number !== "number") {
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
return Number.isFinite(number);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
// src/shared/utils/string-util.ts
|
|
43
|
+
var StringUtil = class {
|
|
44
|
+
/**
|
|
45
|
+
* 左侧补齐
|
|
46
|
+
* @param {any} value 需要补齐的值
|
|
47
|
+
* @param {number} len 补齐长度
|
|
48
|
+
* @param {string} fill 占位字符
|
|
49
|
+
* @returns {string}
|
|
50
|
+
*/
|
|
51
|
+
static padLeft(value, len = 2, fill = "0") {
|
|
52
|
+
return String(value).padStart(len, fill);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
// src/shared/utils/validator-util.ts
|
|
57
|
+
var ValidatorUtil = class {
|
|
58
|
+
/**
|
|
59
|
+
* 验证 HTTPS 更新订阅地址
|
|
60
|
+
* @param {string} value 订阅地址
|
|
61
|
+
* @returns {boolean | string}
|
|
62
|
+
*/
|
|
63
|
+
static httpsFeedUrl(value) {
|
|
64
|
+
try {
|
|
65
|
+
const url = new URL(value.trim());
|
|
66
|
+
const isLocalNetwork = /^192\.168\.100\.(?:25[0-5]|2[0-4]\d|1?\d?\d)$/.test(url.hostname);
|
|
67
|
+
const isLocalUrl = url.protocol === "http:" && (["127.0.0.1", "localhost"].includes(url.hostname) || isLocalNetwork);
|
|
68
|
+
if (url.protocol !== "https:" && !isLocalUrl) {
|
|
69
|
+
return "\u66F4\u65B0\u8BA2\u9605\u5730\u5740\u5FC5\u987B\u4F7F\u7528 HTTPS \u534F\u8BAE";
|
|
70
|
+
}
|
|
71
|
+
if (!url.hostname) {
|
|
72
|
+
return "\u8BF7\u8F93\u5165\u6709\u6548\u7684\u66F4\u65B0\u8BA2\u9605\u5730\u5740";
|
|
73
|
+
}
|
|
74
|
+
if (url.username || url.password) {
|
|
75
|
+
return "\u66F4\u65B0\u8BA2\u9605\u5730\u5740\u4E0D\u80FD\u5305\u542B\u7528\u6237\u540D\u6216\u5BC6\u7801";
|
|
76
|
+
}
|
|
77
|
+
return true;
|
|
78
|
+
} catch {
|
|
79
|
+
return "\u8BF7\u8F93\u5165\u6709\u6548\u7684 HTTPS \u66F4\u65B0\u8BA2\u9605\u5730\u5740";
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// src/shared/window/consts/window-record-id.ts
|
|
85
|
+
var WindowRecordIDPrefix = "WindowRecord_";
|
|
86
|
+
|
|
87
|
+
// src/shared/window/consts/window-type-name.ts
|
|
88
|
+
var WindowTypeNamePrefix = "WindowType_";
|
|
89
|
+
|
|
90
|
+
// src/shared/utils/window-shared-util.ts
|
|
91
|
+
var WindowSharedUtil = class _WindowSharedUtil {
|
|
92
|
+
/**
|
|
93
|
+
* 创建窗口记录 ID
|
|
94
|
+
* @param {string} id 窗口记录 ID
|
|
95
|
+
* @returns {XoWindow.RecordID}
|
|
96
|
+
*/
|
|
97
|
+
static recordId(id) {
|
|
98
|
+
return id.startsWith(WindowRecordIDPrefix) ? id : `${WindowRecordIDPrefix}${id}`;
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* 创建窗口类型名称
|
|
102
|
+
* @param {string} name 窗口类型名称
|
|
103
|
+
* @returns {XoWindow.TypeName}
|
|
104
|
+
*/
|
|
105
|
+
static typeName(name) {
|
|
106
|
+
return name.startsWith(WindowTypeNamePrefix) ? name : `${WindowTypeNamePrefix}${name}`;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* 创建窗口标识
|
|
110
|
+
* @param {string} recordId 窗口记录ID
|
|
111
|
+
* @param {string} typeName 窗口类型名称
|
|
112
|
+
* @param {string} url 窗口加载路径
|
|
113
|
+
* @returns {XoWindow.Identity}
|
|
114
|
+
*/
|
|
115
|
+
static identity(recordId, typeName, url) {
|
|
116
|
+
return {
|
|
117
|
+
// 窗口记录ID
|
|
118
|
+
recordId: _WindowSharedUtil.recordId(recordId),
|
|
119
|
+
// 窗口类型名称
|
|
120
|
+
typeName: _WindowSharedUtil.typeName(typeName),
|
|
121
|
+
// 窗口加载路径
|
|
122
|
+
url
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export {
|
|
128
|
+
BytesUtil,
|
|
129
|
+
NumberUtil,
|
|
130
|
+
StringUtil,
|
|
131
|
+
ValidatorUtil,
|
|
132
|
+
WindowRecordIDPrefix,
|
|
133
|
+
WindowTypeNamePrefix,
|
|
134
|
+
WindowSharedUtil
|
|
135
|
+
};
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IpcInvokeError
|
|
3
|
+
} from "./chunk-WGYOMA43.js";
|
|
4
|
+
|
|
5
|
+
// src/preload/utils/bridge-util.ts
|
|
6
|
+
import { ipcRenderer } from "electron";
|
|
7
|
+
var BridgeUtil = class _BridgeUtil {
|
|
8
|
+
/**
|
|
9
|
+
* 调用IPC并返回结果
|
|
10
|
+
* @template R 返回值类型
|
|
11
|
+
* @param {XoIpc.Channel} channel 通道
|
|
12
|
+
* @param {any[]} args 参数
|
|
13
|
+
* @returns {Promise<XoIpc.Result<R>>}
|
|
14
|
+
*/
|
|
15
|
+
static async invokeResult(channel, ...args) {
|
|
16
|
+
return await ipcRenderer.invoke(channel, ...args);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 调用IPC并返回数据
|
|
20
|
+
* @template R 返回值类型
|
|
21
|
+
* @param {XoIpc.Channel} channel 通道
|
|
22
|
+
* @param {any[]} args 参数
|
|
23
|
+
* @returns {Promise<R | undefined>}
|
|
24
|
+
*/
|
|
25
|
+
static async invoke(channel, ...args) {
|
|
26
|
+
const result = await _BridgeUtil.invokeResult(channel, ...args);
|
|
27
|
+
if (!result.success) {
|
|
28
|
+
const error = new IpcInvokeError(result);
|
|
29
|
+
throw {
|
|
30
|
+
kind: error.kind,
|
|
31
|
+
name: error.name,
|
|
32
|
+
message: error.message,
|
|
33
|
+
code: error.code,
|
|
34
|
+
data: error.data
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
return result.data;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 发送IPC消息
|
|
41
|
+
* @param {XoIpc.Channel} channel 通道
|
|
42
|
+
* @param {any[]} args 参数
|
|
43
|
+
*/
|
|
44
|
+
static send(channel, ...args) {
|
|
45
|
+
ipcRenderer.send(channel, ...args);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* 监听IPC消息
|
|
49
|
+
* @template TArgs 参数类型
|
|
50
|
+
* @param {XoIpc.Channel} channel 通道
|
|
51
|
+
* @param {(...args: TArgs) => void} listener 监听器
|
|
52
|
+
* @returns {() => void}
|
|
53
|
+
*/
|
|
54
|
+
static on(channel, listener) {
|
|
55
|
+
const wrappedListener = (_event, ...args) => {
|
|
56
|
+
listener(...args);
|
|
57
|
+
};
|
|
58
|
+
ipcRenderer.on(channel, wrappedListener);
|
|
59
|
+
return () => {
|
|
60
|
+
ipcRenderer.removeListener(channel, wrappedListener);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* 单次监听IPC消息
|
|
65
|
+
* @template TArgs 参数类型
|
|
66
|
+
* @param {XoIpc.Channel} channel 通道
|
|
67
|
+
* @param {(...args: TArgs) => void} listener 监听器
|
|
68
|
+
*/
|
|
69
|
+
static once(channel, listener) {
|
|
70
|
+
ipcRenderer.once(channel, (_event, ...args) => {
|
|
71
|
+
listener(...args);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
export {
|
|
77
|
+
BridgeUtil
|
|
78
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
WindowSharedUtil
|
|
3
|
+
} from "./chunk-OUFO3LM4.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/window/identity/setting-window-identity.ts
|
|
6
|
+
var windowTypeName = "setting";
|
|
7
|
+
var SettingWindowIdentity = WindowSharedUtil.identity("setting", windowTypeName, "/index.html#/settings");
|
|
8
|
+
|
|
9
|
+
export {
|
|
10
|
+
SettingWindowIdentity
|
|
11
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ShortcutUtil
|
|
3
|
+
} from "./chunk-6BOPFOZD.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/shortcut/consts/shortcut-handler-ids.ts
|
|
6
|
+
var ShortcutHandlerIds = class {
|
|
7
|
+
/** 切换所有窗口显示状态 */
|
|
8
|
+
static toggleAllWindow = ShortcutUtil.id("BuiltIn:toggleAllWindow");
|
|
9
|
+
/** 显示设置窗口 */
|
|
10
|
+
static showSettingWindow = ShortcutUtil.id("BuiltIn:showSettingWindow");
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
ShortcutHandlerIds
|
|
15
|
+
};
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ObjectUtil
|
|
3
|
+
} from "./chunk-RODB64YF.js";
|
|
4
|
+
|
|
5
|
+
// src/main/tray/tray-lifecycle-abstract.ts
|
|
6
|
+
var TrayLifecycleAbstract = class {
|
|
7
|
+
/**
|
|
8
|
+
* Xion 应用
|
|
9
|
+
* @type {XoAppAbstract}
|
|
10
|
+
* @protected
|
|
11
|
+
*/
|
|
12
|
+
xoApp;
|
|
13
|
+
/**
|
|
14
|
+
* 托盘实例
|
|
15
|
+
* @type {Electron.Tray}
|
|
16
|
+
* @protected
|
|
17
|
+
*/
|
|
18
|
+
tray;
|
|
19
|
+
/**
|
|
20
|
+
* 构造函数
|
|
21
|
+
* @param {XoAppAbstract} xoApp Xion 应用
|
|
22
|
+
* @param {Electron.Tray} tray 托盘实例
|
|
23
|
+
*/
|
|
24
|
+
constructor(xoApp, tray) {
|
|
25
|
+
this.xoApp = xoApp;
|
|
26
|
+
this.tray = tray;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* 托盘创建前
|
|
30
|
+
* @returns {Promise<void>}
|
|
31
|
+
*/
|
|
32
|
+
async beforeCreated() {
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* 托盘创建后
|
|
36
|
+
* @returns {Promise<void>}
|
|
37
|
+
*/
|
|
38
|
+
async afterCreated() {
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 单击托盘
|
|
42
|
+
* @param {Electron.Rectangle} bounds 托盘区域
|
|
43
|
+
* @param {Electron.Point} position 鼠标位置
|
|
44
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
45
|
+
* @returns {Promise<void>}
|
|
46
|
+
*/
|
|
47
|
+
async onClick(bounds, position, event) {
|
|
48
|
+
await this.xoApp.toggleMainWindowVisible();
|
|
49
|
+
if (!(await this.xoApp.getMainWindow())?.isVisible()) {
|
|
50
|
+
this.xoApp.getWindowManager().hideAll();
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* 双击托盘
|
|
55
|
+
* @param {Electron.Rectangle} bounds 托盘区域
|
|
56
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
57
|
+
* @returns {Promise<void>}
|
|
58
|
+
*/
|
|
59
|
+
async onDoubleClick(bounds, event) {
|
|
60
|
+
await this.xoApp.showMainWindow();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* 右键点击托盘
|
|
64
|
+
* @param {Electron.Rectangle} bounds 托盘区域
|
|
65
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
66
|
+
* @returns {Promise<void>}
|
|
67
|
+
*/
|
|
68
|
+
async onRightClick(bounds, event) {
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* 中键点击托盘
|
|
72
|
+
* @param {Electron.Rectangle} bounds 托盘区域
|
|
73
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
74
|
+
* @returns {Promise<void>}
|
|
75
|
+
*/
|
|
76
|
+
async onMiddleClick(bounds, event) {
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* 托盘鼠标按下
|
|
80
|
+
* @param {Electron.Point} position 鼠标位置
|
|
81
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
82
|
+
* @returns {Promise<void>}
|
|
83
|
+
*/
|
|
84
|
+
async onMouseDown(position, event) {
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 托盘鼠标抬起
|
|
88
|
+
* @param {Electron.Point} position 鼠标位置
|
|
89
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
90
|
+
* @returns {Promise<void>}
|
|
91
|
+
*/
|
|
92
|
+
async onMouseUp(position, event) {
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* 鼠标进入托盘
|
|
96
|
+
* @param {Electron.Point} position 鼠标位置
|
|
97
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
98
|
+
* @returns {Promise<void>}
|
|
99
|
+
*/
|
|
100
|
+
async onMouseEnter(position, event) {
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 鼠标离开托盘
|
|
104
|
+
* @param {Electron.Point} position 鼠标位置
|
|
105
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
106
|
+
* @returns {Promise<void>}
|
|
107
|
+
*/
|
|
108
|
+
async onMouseLeave(position, event) {
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* 托盘鼠标移动
|
|
112
|
+
* @param {Electron.Point} position 鼠标位置
|
|
113
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
114
|
+
* @returns {Promise<void>}
|
|
115
|
+
*/
|
|
116
|
+
async onMouseMove(position, event) {
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* 托盘通知气泡显示
|
|
120
|
+
* @returns {Promise<void>}
|
|
121
|
+
*/
|
|
122
|
+
async onBalloonShow() {
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* 点击托盘通知气泡
|
|
126
|
+
* @returns {Promise<void>}
|
|
127
|
+
*/
|
|
128
|
+
async onBalloonClick() {
|
|
129
|
+
await this.xoApp.showMainWindow();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* 托盘通知气泡关闭
|
|
133
|
+
* @returns {Promise<void>}
|
|
134
|
+
*/
|
|
135
|
+
async onBalloonClosed() {
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* 拖拽进入托盘
|
|
139
|
+
* @returns {Promise<void>}
|
|
140
|
+
*/
|
|
141
|
+
async onDragEnter() {
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 拖拽离开托盘
|
|
145
|
+
* @returns {Promise<void>}
|
|
146
|
+
*/
|
|
147
|
+
async onDragLeave() {
|
|
148
|
+
}
|
|
149
|
+
/**
|
|
150
|
+
* 拖拽结束
|
|
151
|
+
* @returns {Promise<void>}
|
|
152
|
+
*/
|
|
153
|
+
async onDragEnd() {
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* 拖拽放入托盘
|
|
157
|
+
* @returns {Promise<void>}
|
|
158
|
+
*/
|
|
159
|
+
async onDrop() {
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* 文件拖拽到托盘
|
|
163
|
+
* @param {Electron.KeyboardEvent} event 事件对象
|
|
164
|
+
* @param {string[]} files 文件路径
|
|
165
|
+
* @returns {Promise<void>}
|
|
166
|
+
*/
|
|
167
|
+
async onDropFiles(event, files) {
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* 文本拖拽到托盘
|
|
171
|
+
* @param {Electron.Event} event 事件对象
|
|
172
|
+
* @param {string} text 拖拽文本
|
|
173
|
+
* @returns {Promise<void>}
|
|
174
|
+
*/
|
|
175
|
+
async onDropText(event, text) {
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* 托盘生命周期错误
|
|
179
|
+
* @param {XoTray.LifecycleError} error 错误信息
|
|
180
|
+
* @returns {Promise<void>}
|
|
181
|
+
*/
|
|
182
|
+
async onError(error) {
|
|
183
|
+
this.xoApp.trayLog.error("[Lifecycle]", { source: error.source }, error.error);
|
|
184
|
+
}
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
// src/main/tray/tray-lifecycle.ts
|
|
188
|
+
var TrayLifecycle = class extends TrayLifecycleAbstract {
|
|
189
|
+
};
|
|
190
|
+
|
|
191
|
+
// src/main/config/tray-config.ts
|
|
192
|
+
var defaultConfig = () => {
|
|
193
|
+
return {
|
|
194
|
+
// 是否启用托盘
|
|
195
|
+
enabled: true,
|
|
196
|
+
// 托盘提示文本
|
|
197
|
+
tooltip: void 0,
|
|
198
|
+
// 失焦时的托盘提示文本
|
|
199
|
+
blurTooltip: void 0,
|
|
200
|
+
// 默认图标状态
|
|
201
|
+
iconName: "focus",
|
|
202
|
+
// 托盘图标集合(包含 16x16 24x24 32x32 48x48 256x256 的ico格式图标)
|
|
203
|
+
icons: {},
|
|
204
|
+
// 托盘动画集合
|
|
205
|
+
animations: {},
|
|
206
|
+
// 托盘生命周期
|
|
207
|
+
lifecycle: TrayLifecycle,
|
|
208
|
+
// 是否开启调试位置
|
|
209
|
+
debugPosition: false
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
var defineTrayConfig = (config) => {
|
|
213
|
+
return ObjectUtil.merge(defaultConfig(), config ?? {});
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export {
|
|
217
|
+
TrayLifecycleAbstract,
|
|
218
|
+
TrayLifecycle,
|
|
219
|
+
defineTrayConfig
|
|
220
|
+
};
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IpcUtil
|
|
3
|
+
} from "./chunk-ID3YDA2K.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/ipc/channels/app-channels.ts
|
|
6
|
+
var AppChannels = class {
|
|
7
|
+
/** 获取应用信息 */
|
|
8
|
+
static getInfo = IpcUtil.channel("BuiltIn:App:getInfo");
|
|
9
|
+
/** 获取应用目录 */
|
|
10
|
+
static getPaths = IpcUtil.channel("BuiltIn:App:getPaths");
|
|
11
|
+
/** 获取通用设置 */
|
|
12
|
+
static getGeneralSettings = IpcUtil.channel("BuiltIn:App:getGeneralSettings");
|
|
13
|
+
/** 获取 APP 透明度 */
|
|
14
|
+
static getOpacity = IpcUtil.channel("BuiltIn:App:getOpacity");
|
|
15
|
+
/** 设置 APP 透明度 */
|
|
16
|
+
static setOpacity = IpcUtil.channel("BuiltIn:App:setOpacity");
|
|
17
|
+
/** 获取快捷窗口材质 */
|
|
18
|
+
static getWindowMaterial = IpcUtil.channel("BuiltIn:App:getWindowMaterial");
|
|
19
|
+
/** 设置快捷窗口材质 */
|
|
20
|
+
static setWindowMaterial = IpcUtil.channel("BuiltIn:App:setWindowMaterial");
|
|
21
|
+
/** 获取应用启动模式 */
|
|
22
|
+
static getAppLaunchMode = IpcUtil.channel("BuiltIn:App:getAppLaunchMode");
|
|
23
|
+
/** 设置应用启动模式 */
|
|
24
|
+
static setAppLaunchMode = IpcUtil.channel("BuiltIn:App:setAppLaunchMode");
|
|
25
|
+
/** 获取是否开机启动 */
|
|
26
|
+
static getLaunchOnStartup = IpcUtil.channel("BuiltIn:App:getLaunchOnStartup");
|
|
27
|
+
/** 设置是否开机启动 */
|
|
28
|
+
static setLaunchOnStartup = IpcUtil.channel("BuiltIn:App:setLaunchOnStartup");
|
|
29
|
+
/** 获取关闭窗口行为 */
|
|
30
|
+
static getWindowCloseBehavior = IpcUtil.channel("BuiltIn:App:getWindowCloseBehavior");
|
|
31
|
+
/** 设置关闭窗口行为 */
|
|
32
|
+
static setWindowCloseBehavior = IpcUtil.channel("BuiltIn:App:setWindowCloseBehavior");
|
|
33
|
+
/** 获取日志等级 */
|
|
34
|
+
static getLogLevel = IpcUtil.channel("BuiltIn:App:getLogLevel");
|
|
35
|
+
/** 设置日志等级 */
|
|
36
|
+
static setLogLevel = IpcUtil.channel("BuiltIn:App:setLogLevel");
|
|
37
|
+
/** 获取快捷键配置 */
|
|
38
|
+
static getShortcuts = IpcUtil.channel("BuiltIn:App:getShortcuts");
|
|
39
|
+
/** 设置快捷键配置 */
|
|
40
|
+
static setShortcuts = IpcUtil.channel("BuiltIn:App:setShortcuts");
|
|
41
|
+
/** 设置单个快捷键配置 */
|
|
42
|
+
static setShortcut = IpcUtil.channel("BuiltIn:App:setShortcut");
|
|
43
|
+
/** 删除快捷键配置 */
|
|
44
|
+
static deleteShortcut = IpcUtil.channel("BuiltIn:App:deleteShortcut");
|
|
45
|
+
/** 重定向指定窗口路由 */
|
|
46
|
+
static redirectWindowRoute = IpcUtil.channel("BuiltIn:App:redirectWindowRoute");
|
|
47
|
+
/** 重定向主窗口路由 */
|
|
48
|
+
static redirectMainWindowRoute = IpcUtil.channel("BuiltIn:App:redirectMainWindowRoute");
|
|
49
|
+
/** 重定向设置窗口路由 */
|
|
50
|
+
static redirectSettingWindowRoute = IpcUtil.channel("BuiltIn:App:redirectSettingWindowRoute");
|
|
51
|
+
/** 显示主窗口 */
|
|
52
|
+
static showMainWindow = IpcUtil.channel("BuiltIn:App:showMainWindow");
|
|
53
|
+
/** 显示设置窗口 */
|
|
54
|
+
static showSettingWindow = IpcUtil.channel("BuiltIn:App:showSettingWindow");
|
|
55
|
+
/** 重启应用 */
|
|
56
|
+
static restart = IpcUtil.channel("BuiltIn:App:restart");
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
// src/shared/ipc/channels/clipboard-channels.ts
|
|
60
|
+
var ClipboardChannels = class {
|
|
61
|
+
/** 读取文本 */
|
|
62
|
+
static readText = IpcUtil.channel("BuiltIn:Clipboard:readText");
|
|
63
|
+
/** 写入文本 */
|
|
64
|
+
static writeText = IpcUtil.channel("BuiltIn:Clipboard:writeText");
|
|
65
|
+
/** 写入图片 */
|
|
66
|
+
static writeImage = IpcUtil.channel("BuiltIn:Clipboard:writeImage");
|
|
67
|
+
/** 清空剪切板 */
|
|
68
|
+
static clear = IpcUtil.channel("BuiltIn:Clipboard:clear");
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
// src/shared/ipc/channels/dialog-channels.ts
|
|
72
|
+
var DialogChannels = class {
|
|
73
|
+
/** 打开文件 */
|
|
74
|
+
static openFile = IpcUtil.channel("BuiltIn:Dialog:openFile");
|
|
75
|
+
/** 打开目录 */
|
|
76
|
+
static openDir = IpcUtil.channel("BuiltIn:Dialog:openDir");
|
|
77
|
+
/** 保存文件 */
|
|
78
|
+
static saveFile = IpcUtil.channel("BuiltIn:Dialog:saveFile");
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
// src/shared/ipc/channels/file-channels.ts
|
|
82
|
+
var FileChannels = class {
|
|
83
|
+
/** 读取文本 */
|
|
84
|
+
static readText = IpcUtil.channel("BuiltIn:File:readText");
|
|
85
|
+
/** 写入文本 */
|
|
86
|
+
static writeText = IpcUtil.channel("BuiltIn:File:writeText");
|
|
87
|
+
/** 文件是否存在 */
|
|
88
|
+
static exists = IpcUtil.channel("BuiltIn:File:exists");
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
// src/shared/ipc/channels/log-channels.ts
|
|
92
|
+
var LogChannels = class {
|
|
93
|
+
/** 写入 debug 日志 */
|
|
94
|
+
static debug = IpcUtil.channel("BuiltIn:Log:debug");
|
|
95
|
+
/** 写入 info 日志 */
|
|
96
|
+
static info = IpcUtil.channel("BuiltIn:Log:info");
|
|
97
|
+
/** 写入 warn 日志 */
|
|
98
|
+
static warn = IpcUtil.channel("BuiltIn:Log:warn");
|
|
99
|
+
/** 写入 error 日志 */
|
|
100
|
+
static error = IpcUtil.channel("BuiltIn:Log:error");
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
// src/shared/ipc/channels/shell-channels.ts
|
|
104
|
+
var ShellChannels = class {
|
|
105
|
+
/** 使用系统默认程序打开路径 */
|
|
106
|
+
static openPath = IpcUtil.channel("BuiltIn:Shell:openPath");
|
|
107
|
+
/** 在文件管理器中显示路径 */
|
|
108
|
+
static showItemInFolder = IpcUtil.channel("BuiltIn:Shell:showItemInFolder");
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export {
|
|
112
|
+
AppChannels,
|
|
113
|
+
ClipboardChannels,
|
|
114
|
+
DialogChannels,
|
|
115
|
+
FileChannels,
|
|
116
|
+
LogChannels,
|
|
117
|
+
ShellChannels
|
|
118
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IpcUtil
|
|
3
|
+
} from "./chunk-ID3YDA2K.js";
|
|
4
|
+
|
|
5
|
+
// src/shared/ipc/channels/remote-service-channels.ts
|
|
6
|
+
var RemoteServiceChannels = class {
|
|
7
|
+
/** 获取远程服务状态 */
|
|
8
|
+
static getState = IpcUtil.channel("BuiltIn:RemoteService:getState");
|
|
9
|
+
/** 获取远程服务设置 */
|
|
10
|
+
static getSettings = IpcUtil.channel("BuiltIn:RemoteService:getSettings");
|
|
11
|
+
/** 设置远程服务用户设置 */
|
|
12
|
+
static setSettings = IpcUtil.channel("BuiltIn:RemoteService:setSettings");
|
|
13
|
+
/** 重置远程服务用户设置 */
|
|
14
|
+
static resetSettings = IpcUtil.channel("BuiltIn:RemoteService:resetSettings");
|
|
15
|
+
/** 请求远程服务 API */
|
|
16
|
+
static request = IpcUtil.channel("BuiltIn:RemoteService:request");
|
|
17
|
+
/* ------ 监听通道 ------ */
|
|
18
|
+
/** 监听远程服务状态 */
|
|
19
|
+
static onState = IpcUtil.channel("BuiltIn:RemoteService:onState");
|
|
20
|
+
/** 监听远程服务设置 */
|
|
21
|
+
static onSettings = IpcUtil.channel("BuiltIn:RemoteService:onSettings");
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
export {
|
|
25
|
+
RemoteServiceChannels
|
|
26
|
+
};
|