@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,595 @@
|
|
|
1
|
+
// src/shared/renderer-protocol/consts/renderer-protocol-keys.ts
|
|
2
|
+
var RendererProtocolKeys = class {
|
|
3
|
+
/** 应用渲染根目录主机名 */
|
|
4
|
+
static root = "root";
|
|
5
|
+
/** 远程服务代理主机名 */
|
|
6
|
+
static remoteService = "remote-service";
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
// src/renderer/store/app/app-store.ts
|
|
10
|
+
import { defineStore } from "pinia";
|
|
11
|
+
import { computed, reactive, ref } from "vue";
|
|
12
|
+
var useXoAppStore = defineStore("useXoAppStore", () => {
|
|
13
|
+
const initializePromise = ref(null);
|
|
14
|
+
const loaded = ref(false);
|
|
15
|
+
const info = reactive({});
|
|
16
|
+
const rendererProtocol = computed(() => info.rendererProtocol);
|
|
17
|
+
const rendererProtocolUrls = computed(() => {
|
|
18
|
+
const scheme = rendererProtocol.value;
|
|
19
|
+
return {
|
|
20
|
+
root: scheme ? `${scheme}://${RendererProtocolKeys.root}/` : void 0,
|
|
21
|
+
remoteService: scheme ? `${scheme}://${RendererProtocolKeys.remoteService}/` : void 0
|
|
22
|
+
};
|
|
23
|
+
});
|
|
24
|
+
const rootUrl = computed(() => rendererProtocolUrls.value.root);
|
|
25
|
+
const remoteServiceRootUrl = computed(() => rendererProtocolUrls.value.remoteService);
|
|
26
|
+
function buildRootUrl(pathname = "") {
|
|
27
|
+
return buildRendererProtocolUrl(rootUrl.value, pathname);
|
|
28
|
+
}
|
|
29
|
+
function buildRemoteUrl(pathname = "") {
|
|
30
|
+
return buildRendererProtocolUrl(remoteServiceRootUrl.value, pathname);
|
|
31
|
+
}
|
|
32
|
+
function buildRendererProtocolUrl(rootUrl2, pathname) {
|
|
33
|
+
if (!rootUrl2) {
|
|
34
|
+
return void 0;
|
|
35
|
+
}
|
|
36
|
+
const normalizedPath = pathname.replace(/^[/\\]+/, "");
|
|
37
|
+
return new URL(`./${normalizedPath}`, rootUrl2).toString();
|
|
38
|
+
}
|
|
39
|
+
async function initialize() {
|
|
40
|
+
if (loaded.value) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
if (initializePromise.value) {
|
|
44
|
+
return initializePromise.value;
|
|
45
|
+
}
|
|
46
|
+
initializePromise.value = (async () => {
|
|
47
|
+
try {
|
|
48
|
+
Object.assign(info, await window.xion.app.getInfo());
|
|
49
|
+
loaded.value = true;
|
|
50
|
+
} finally {
|
|
51
|
+
initializePromise.value = null;
|
|
52
|
+
}
|
|
53
|
+
})();
|
|
54
|
+
return initializePromise.value;
|
|
55
|
+
}
|
|
56
|
+
return {
|
|
57
|
+
loaded,
|
|
58
|
+
info,
|
|
59
|
+
rendererProtocol,
|
|
60
|
+
rendererProtocolUrls,
|
|
61
|
+
rootUrl,
|
|
62
|
+
remoteServiceRootUrl,
|
|
63
|
+
buildRootUrl,
|
|
64
|
+
buildRemoteUrl,
|
|
65
|
+
initialize
|
|
66
|
+
};
|
|
67
|
+
});
|
|
68
|
+
|
|
69
|
+
// src/renderer/store/auth/auth-store.ts
|
|
70
|
+
import { defineStore as defineStore2 } from "pinia";
|
|
71
|
+
import { computed as computed2, ref as ref2, shallowRef } from "vue";
|
|
72
|
+
var useXoAuthStore = defineStore2("useXoAuthStore", () => {
|
|
73
|
+
const initializePromise = shallowRef();
|
|
74
|
+
const offState = shallowRef();
|
|
75
|
+
const status = ref2("initializing");
|
|
76
|
+
const user = ref2();
|
|
77
|
+
const error = ref2();
|
|
78
|
+
const isInitializing = computed2(() => status.value === "initializing");
|
|
79
|
+
const isAuthenticating = computed2(() => status.value === "authenticating");
|
|
80
|
+
const isRefreshing = computed2(() => status.value === "refreshing");
|
|
81
|
+
const isAuthenticated = computed2(() => ["authenticated", "refreshing"].includes(status.value));
|
|
82
|
+
const isUnauthenticated = computed2(() => status.value === "unauthenticated");
|
|
83
|
+
const isError = computed2(() => status.value === "error");
|
|
84
|
+
function applyState(state) {
|
|
85
|
+
status.value = state.status;
|
|
86
|
+
user.value = state.user;
|
|
87
|
+
error.value = state.error;
|
|
88
|
+
}
|
|
89
|
+
async function initialize() {
|
|
90
|
+
if (initializePromise.value) {
|
|
91
|
+
return initializePromise.value;
|
|
92
|
+
}
|
|
93
|
+
if (offState.value && !isError.value) {
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (offState.value) {
|
|
97
|
+
offState.value();
|
|
98
|
+
offState.value = void 0;
|
|
99
|
+
}
|
|
100
|
+
status.value = "initializing";
|
|
101
|
+
error.value = void 0;
|
|
102
|
+
initializePromise.value = (async () => {
|
|
103
|
+
try {
|
|
104
|
+
offState.value = window.xion.auth.onState((state) => applyState(state));
|
|
105
|
+
applyState(await window.xion.auth.getState());
|
|
106
|
+
} catch (cause) {
|
|
107
|
+
offState.value?.();
|
|
108
|
+
offState.value = void 0;
|
|
109
|
+
status.value = "error";
|
|
110
|
+
error.value = cause instanceof Error ? cause.message : "\u8BA4\u8BC1\u72B6\u6001\u521D\u59CB\u5316\u5931\u8D25";
|
|
111
|
+
} finally {
|
|
112
|
+
initializePromise.value = void 0;
|
|
113
|
+
}
|
|
114
|
+
})();
|
|
115
|
+
return initializePromise.value;
|
|
116
|
+
}
|
|
117
|
+
async function login(request) {
|
|
118
|
+
applyState(await window.xion.auth.login(request));
|
|
119
|
+
}
|
|
120
|
+
async function logout() {
|
|
121
|
+
applyState(await window.xion.auth.logout());
|
|
122
|
+
}
|
|
123
|
+
return {
|
|
124
|
+
status,
|
|
125
|
+
user,
|
|
126
|
+
error,
|
|
127
|
+
isInitializing,
|
|
128
|
+
isAuthenticating,
|
|
129
|
+
isRefreshing,
|
|
130
|
+
isAuthenticated,
|
|
131
|
+
isUnauthenticated,
|
|
132
|
+
isError,
|
|
133
|
+
initialize,
|
|
134
|
+
login,
|
|
135
|
+
logout
|
|
136
|
+
};
|
|
137
|
+
});
|
|
138
|
+
|
|
139
|
+
// src/shared/remote-service/const/remote-service.ts
|
|
140
|
+
var RemoteServiceStatusOptions = [
|
|
141
|
+
{
|
|
142
|
+
status: "idle",
|
|
143
|
+
label: "\u7A7A\u95F2",
|
|
144
|
+
details: "\u8FDC\u7A0B\u670D\u52A1\u7A7A\u95F2",
|
|
145
|
+
type: "info"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
status: "connecting",
|
|
149
|
+
label: "\u8FDE\u63A5\u4E2D",
|
|
150
|
+
details: "\u8FDC\u7A0B\u670D\u52A1\u8FDE\u63A5\u4E2D",
|
|
151
|
+
type: "primary"
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
status: "connected",
|
|
155
|
+
label: "\u5DF2\u8FDE\u63A5",
|
|
156
|
+
details: "\u8FDC\u7A0B\u670D\u52A1\u5DF2\u8FDE\u63A5",
|
|
157
|
+
type: "success"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
status: "disconnected",
|
|
161
|
+
label: "\u5DF2\u65AD\u5F00",
|
|
162
|
+
details: "\u8FDC\u7A0B\u670D\u52A1\u5DF2\u65AD\u5F00",
|
|
163
|
+
type: "warning"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
status: "error",
|
|
167
|
+
label: "\u9519\u8BEF",
|
|
168
|
+
details: "\u8FDC\u7A0B\u670D\u52A1\u8FDE\u63A5\u9519\u8BEF",
|
|
169
|
+
type: "danger"
|
|
170
|
+
}
|
|
171
|
+
];
|
|
172
|
+
|
|
173
|
+
// src/shared/window/consts/window-record-id.ts
|
|
174
|
+
var WindowRecordIDPrefix = "WindowRecord_";
|
|
175
|
+
|
|
176
|
+
// src/shared/window/consts/window-type-name.ts
|
|
177
|
+
var WindowTypeNamePrefix = "WindowType_";
|
|
178
|
+
|
|
179
|
+
// src/shared/utils/log-util.ts
|
|
180
|
+
var MaxMessageLength = 16 * 1024;
|
|
181
|
+
var MaxValueLength = 8 * 1024;
|
|
182
|
+
|
|
183
|
+
// src/shared/utils/window-shared-util.ts
|
|
184
|
+
var WindowSharedUtil = class _WindowSharedUtil {
|
|
185
|
+
/**
|
|
186
|
+
* 创建窗口记录 ID
|
|
187
|
+
* @param {string} id 窗口记录 ID
|
|
188
|
+
* @returns {XoWindow.RecordID}
|
|
189
|
+
*/
|
|
190
|
+
static recordId(id) {
|
|
191
|
+
return id.startsWith(WindowRecordIDPrefix) ? id : `${WindowRecordIDPrefix}${id}`;
|
|
192
|
+
}
|
|
193
|
+
/**
|
|
194
|
+
* 创建窗口类型名称
|
|
195
|
+
* @param {string} name 窗口类型名称
|
|
196
|
+
* @returns {XoWindow.TypeName}
|
|
197
|
+
*/
|
|
198
|
+
static typeName(name) {
|
|
199
|
+
return name.startsWith(WindowTypeNamePrefix) ? name : `${WindowTypeNamePrefix}${name}`;
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
202
|
+
* 创建窗口标识
|
|
203
|
+
* @param {string} recordId 窗口记录ID
|
|
204
|
+
* @param {string} typeName 窗口类型名称
|
|
205
|
+
* @param {string} url 窗口加载路径
|
|
206
|
+
* @returns {XoWindow.Identity}
|
|
207
|
+
*/
|
|
208
|
+
static identity(recordId, typeName, url) {
|
|
209
|
+
return {
|
|
210
|
+
// 窗口记录ID
|
|
211
|
+
recordId: _WindowSharedUtil.recordId(recordId),
|
|
212
|
+
// 窗口类型名称
|
|
213
|
+
typeName: _WindowSharedUtil.typeName(typeName),
|
|
214
|
+
// 窗口加载路径
|
|
215
|
+
url
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
};
|
|
219
|
+
|
|
220
|
+
// src/shared/window/identity/main-window-identity.ts
|
|
221
|
+
var windowTypeName = "main";
|
|
222
|
+
var MainWindowIdentity = WindowSharedUtil.identity("main", windowTypeName, "/index.html");
|
|
223
|
+
|
|
224
|
+
// src/shared/window/identity/setting-window-identity.ts
|
|
225
|
+
var windowTypeName2 = "setting";
|
|
226
|
+
var SettingWindowIdentity = WindowSharedUtil.identity("setting", windowTypeName2, "/index.html#/settings");
|
|
227
|
+
|
|
228
|
+
// src/renderer/store/remote-service/remote-service-store.ts
|
|
229
|
+
import { defineStore as defineStore3 } from "pinia";
|
|
230
|
+
import { computed as computed3, reactive as reactive2, ref as ref3 } from "vue";
|
|
231
|
+
var useXoRemoteServiceStore = defineStore3("useXoRemoteServiceStore", () => {
|
|
232
|
+
const initializePromise = ref3(null);
|
|
233
|
+
const offState = ref3(null);
|
|
234
|
+
const offSettings = ref3(null);
|
|
235
|
+
const status = ref3("idle");
|
|
236
|
+
const error = ref3();
|
|
237
|
+
const connectedAt = ref3();
|
|
238
|
+
const reconnectCount = ref3(0);
|
|
239
|
+
const settings = ref3();
|
|
240
|
+
const isIdle = computed3(() => status.value === "idle");
|
|
241
|
+
const isConnecting = computed3(() => status.value === "connecting");
|
|
242
|
+
const isConnected = computed3(() => status.value === "connected");
|
|
243
|
+
const isDisconnected = computed3(() => status.value === "disconnected");
|
|
244
|
+
const isError = computed3(() => status.value === "error");
|
|
245
|
+
const statusOption = computed3(() => {
|
|
246
|
+
return RemoteServiceStatusOptions.find((item) => item.status === status.value) ?? {
|
|
247
|
+
status: "idle",
|
|
248
|
+
label: "\u7A7A\u95F2",
|
|
249
|
+
details: "\u7A7A\u95F2",
|
|
250
|
+
type: "info"
|
|
251
|
+
};
|
|
252
|
+
});
|
|
253
|
+
function applyState(state) {
|
|
254
|
+
status.value = state.status;
|
|
255
|
+
error.value = state.error;
|
|
256
|
+
connectedAt.value = state.connectedAt;
|
|
257
|
+
reconnectCount.value = state.reconnectCount;
|
|
258
|
+
}
|
|
259
|
+
function applySettings(value) {
|
|
260
|
+
settings.value = value;
|
|
261
|
+
}
|
|
262
|
+
async function initialize() {
|
|
263
|
+
if (offState.value && offSettings.value) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
if (initializePromise.value) {
|
|
267
|
+
return initializePromise.value;
|
|
268
|
+
}
|
|
269
|
+
initializePromise.value = (async () => {
|
|
270
|
+
try {
|
|
271
|
+
const [state, remoteSettings] = await Promise.all([
|
|
272
|
+
window.xion.remoteService.getState(),
|
|
273
|
+
window.xion.remoteService.getSettings()
|
|
274
|
+
]);
|
|
275
|
+
applyState(state);
|
|
276
|
+
applySettings(remoteSettings);
|
|
277
|
+
offState.value = window.xion.remoteService.onState((state2) => applyState(state2));
|
|
278
|
+
offSettings.value = window.xion.remoteService.onSettings((settings2) => applySettings(settings2));
|
|
279
|
+
} finally {
|
|
280
|
+
initializePromise.value = null;
|
|
281
|
+
}
|
|
282
|
+
})();
|
|
283
|
+
return initializePromise.value;
|
|
284
|
+
}
|
|
285
|
+
async function setSettings(userSettings) {
|
|
286
|
+
await window.xion.remoteService.setSettings(userSettings);
|
|
287
|
+
applySettings(await window.xion.remoteService.getSettings());
|
|
288
|
+
}
|
|
289
|
+
async function resetSettings() {
|
|
290
|
+
await window.xion.remoteService.resetSettings();
|
|
291
|
+
applySettings(await window.xion.remoteService.getSettings());
|
|
292
|
+
}
|
|
293
|
+
function getButtonStatus(options) {
|
|
294
|
+
return reactive2({
|
|
295
|
+
name: "\u8FDC\u7A0B\u670D\u52A1",
|
|
296
|
+
icon: "xion-icon-server-connect",
|
|
297
|
+
redirect: {
|
|
298
|
+
windowIdentity: SettingWindowIdentity,
|
|
299
|
+
routeName: void 0
|
|
300
|
+
},
|
|
301
|
+
...options,
|
|
302
|
+
tooltip: statusOption.value.details,
|
|
303
|
+
type: statusOption.value.type
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
return {
|
|
307
|
+
status,
|
|
308
|
+
error,
|
|
309
|
+
connectedAt,
|
|
310
|
+
reconnectCount,
|
|
311
|
+
settings,
|
|
312
|
+
statusOption,
|
|
313
|
+
isIdle,
|
|
314
|
+
isConnecting,
|
|
315
|
+
isConnected,
|
|
316
|
+
isDisconnected,
|
|
317
|
+
isError,
|
|
318
|
+
initialize,
|
|
319
|
+
setSettings,
|
|
320
|
+
resetSettings,
|
|
321
|
+
getButtonStatus
|
|
322
|
+
};
|
|
323
|
+
});
|
|
324
|
+
|
|
325
|
+
// src/renderer/store/theme/theme-store.ts
|
|
326
|
+
import { defineStore as defineStore4 } from "pinia";
|
|
327
|
+
import { computed as computed4, ref as ref4 } from "vue";
|
|
328
|
+
var useXoThemeStore = defineStore4("useXoThemeStore", () => {
|
|
329
|
+
const initializePromise = ref4(null);
|
|
330
|
+
const offUpdated = ref4(null);
|
|
331
|
+
const themeSource = ref4("system");
|
|
332
|
+
const shouldUseDarkColors = ref4(false);
|
|
333
|
+
const shouldUseLightColors = computed4(() => !shouldUseDarkColors.value);
|
|
334
|
+
const titleBarOverlayEnabled = ref4(false);
|
|
335
|
+
const titleBarOverlay = ref4({});
|
|
336
|
+
function applyState(state) {
|
|
337
|
+
themeSource.value = state.themeSource;
|
|
338
|
+
shouldUseDarkColors.value = state.shouldUseDarkColors;
|
|
339
|
+
titleBarOverlayEnabled.value = state.titleBarOverlayEnabled;
|
|
340
|
+
titleBarOverlay.value = state.titleBarOverlay;
|
|
341
|
+
applyDocumentTheme(state.shouldUseDarkColors);
|
|
342
|
+
applyDocumentTitleBarVariables(state.titleBarOverlay, state.titleBarOverlayBackground);
|
|
343
|
+
}
|
|
344
|
+
function applyDocumentTheme(isDark) {
|
|
345
|
+
document.documentElement.classList.toggle("dark", isDark);
|
|
346
|
+
}
|
|
347
|
+
function applyDocumentTitleBarVariables(titleBarOverlay2, titleBarOverlayBackground) {
|
|
348
|
+
const height = titleBarOverlay2?.height;
|
|
349
|
+
const varHeight = "--xo-global-title-bar-height";
|
|
350
|
+
if (height === void 0) {
|
|
351
|
+
document.documentElement.style.removeProperty(varHeight);
|
|
352
|
+
} else {
|
|
353
|
+
document.documentElement.style.setProperty(varHeight, `${height}px`);
|
|
354
|
+
}
|
|
355
|
+
const background = titleBarOverlayBackground ?? titleBarOverlay2?.color;
|
|
356
|
+
const varBackground = "--xo-global-title-bar-background";
|
|
357
|
+
if (background === void 0) {
|
|
358
|
+
document.documentElement.style.removeProperty(varBackground);
|
|
359
|
+
} else {
|
|
360
|
+
document.documentElement.style.setProperty(varBackground, background);
|
|
361
|
+
}
|
|
362
|
+
const color = titleBarOverlay2?.symbolColor;
|
|
363
|
+
const varColor = "--xo-global-title-bar-color";
|
|
364
|
+
if (color === void 0) {
|
|
365
|
+
document.documentElement.style.removeProperty(varColor);
|
|
366
|
+
} else {
|
|
367
|
+
document.documentElement.style.setProperty(varColor, color);
|
|
368
|
+
}
|
|
369
|
+
window.xionTitleBar ??= { height: 0, background: "", color: "" };
|
|
370
|
+
Object.assign(window.xionTitleBar, {
|
|
371
|
+
height: height ?? 0,
|
|
372
|
+
background: background ?? "",
|
|
373
|
+
color: color ?? ""
|
|
374
|
+
});
|
|
375
|
+
}
|
|
376
|
+
async function initialize() {
|
|
377
|
+
if (offUpdated.value) {
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
if (initializePromise.value) {
|
|
381
|
+
return initializePromise.value;
|
|
382
|
+
}
|
|
383
|
+
initializePromise.value = (async () => {
|
|
384
|
+
try {
|
|
385
|
+
applyState(await window.xion.theme.getState());
|
|
386
|
+
offUpdated.value = window.xion.theme.onUpdated((state) => applyState(state));
|
|
387
|
+
} finally {
|
|
388
|
+
initializePromise.value = null;
|
|
389
|
+
}
|
|
390
|
+
})();
|
|
391
|
+
return initializePromise.value;
|
|
392
|
+
}
|
|
393
|
+
async function setSource(source) {
|
|
394
|
+
await window.xion.theme.setSource(source);
|
|
395
|
+
applyState(await window.xion.theme.getState());
|
|
396
|
+
}
|
|
397
|
+
return {
|
|
398
|
+
themeSource,
|
|
399
|
+
shouldUseDarkColors,
|
|
400
|
+
shouldUseLightColors,
|
|
401
|
+
titleBarOverlay,
|
|
402
|
+
titleBarOverlayEnabled,
|
|
403
|
+
initialize,
|
|
404
|
+
setSource
|
|
405
|
+
};
|
|
406
|
+
});
|
|
407
|
+
|
|
408
|
+
// src/renderer/store/updater/updater-store.ts
|
|
409
|
+
import { defineStore as defineStore5 } from "pinia";
|
|
410
|
+
import { computed as computed5, ref as ref5 } from "vue";
|
|
411
|
+
var useXoUpdaterStore = defineStore5("useXoUpdaterStore", () => {
|
|
412
|
+
const initializePromise = ref5(null);
|
|
413
|
+
const offState = ref5(null);
|
|
414
|
+
const offSettings = ref5(null);
|
|
415
|
+
const status = ref5("idle");
|
|
416
|
+
const updateInfo = ref5();
|
|
417
|
+
const progress = ref5();
|
|
418
|
+
const formattedProgress = ref5();
|
|
419
|
+
const error = ref5();
|
|
420
|
+
const settings = ref5();
|
|
421
|
+
const downloadCancellationCount = ref5(0);
|
|
422
|
+
const disabledUntilRestart = ref5(false);
|
|
423
|
+
const isIdle = computed5(() => status.value === "idle");
|
|
424
|
+
const isChecking = computed5(() => status.value === "checking");
|
|
425
|
+
const isAvailable = computed5(() => status.value === "available");
|
|
426
|
+
const isNotAvailable = computed5(() => status.value === "not-available");
|
|
427
|
+
const isDownloading = computed5(() => status.value === "downloading");
|
|
428
|
+
const isCancelling = computed5(() => status.value === "cancelling");
|
|
429
|
+
const isDownloaded = computed5(() => status.value === "downloaded");
|
|
430
|
+
const isError = computed5(() => status.value === "error");
|
|
431
|
+
const version = computed5(() => updateInfo.value?.version);
|
|
432
|
+
const releaseName = computed5(() => updateInfo.value?.releaseName);
|
|
433
|
+
const releaseNotes = computed5(() => updateInfo.value?.releaseNotes);
|
|
434
|
+
const releaseDate = computed5(() => updateInfo.value?.releaseDate);
|
|
435
|
+
function applyState(state) {
|
|
436
|
+
status.value = state.status;
|
|
437
|
+
updateInfo.value = state.updateInfo;
|
|
438
|
+
progress.value = state.progress;
|
|
439
|
+
formattedProgress.value = state.formattedProgress;
|
|
440
|
+
error.value = state.error;
|
|
441
|
+
downloadCancellationCount.value = state.downloadCancellationCount;
|
|
442
|
+
disabledUntilRestart.value = state.disabledUntilRestart;
|
|
443
|
+
}
|
|
444
|
+
function applySettings(value) {
|
|
445
|
+
settings.value = value;
|
|
446
|
+
}
|
|
447
|
+
async function initialize() {
|
|
448
|
+
if (offState.value && offSettings.value) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
if (initializePromise.value) {
|
|
452
|
+
return initializePromise.value;
|
|
453
|
+
}
|
|
454
|
+
initializePromise.value = (async () => {
|
|
455
|
+
try {
|
|
456
|
+
const [state, settings2] = await Promise.all([
|
|
457
|
+
window.xion.updater.getState(),
|
|
458
|
+
window.xion.updater.getSettings()
|
|
459
|
+
]);
|
|
460
|
+
applyState(state);
|
|
461
|
+
applySettings(settings2);
|
|
462
|
+
offState.value = window.xion.updater.onState((state2) => applyState(state2));
|
|
463
|
+
offSettings.value = window.xion.updater.onSettings((settings3) => applySettings(settings3));
|
|
464
|
+
} finally {
|
|
465
|
+
initializePromise.value = null;
|
|
466
|
+
}
|
|
467
|
+
})();
|
|
468
|
+
return initializePromise.value;
|
|
469
|
+
}
|
|
470
|
+
async function checkForUpdates() {
|
|
471
|
+
await window.xion.updater.checkForUpdates();
|
|
472
|
+
}
|
|
473
|
+
async function downloadUpdate() {
|
|
474
|
+
await window.xion.updater.downloadUpdate();
|
|
475
|
+
}
|
|
476
|
+
async function cancelDownload() {
|
|
477
|
+
return window.xion.updater.cancelDownload();
|
|
478
|
+
}
|
|
479
|
+
async function quitAndInstall() {
|
|
480
|
+
await window.xion.updater.quitAndInstall();
|
|
481
|
+
}
|
|
482
|
+
async function saveSettings(userSettings) {
|
|
483
|
+
await window.xion.updater.setSettings(userSettings);
|
|
484
|
+
applySettings(await window.xion.updater.getSettings());
|
|
485
|
+
}
|
|
486
|
+
async function resetSettings() {
|
|
487
|
+
await window.xion.updater.resetSettings();
|
|
488
|
+
applySettings(await window.xion.updater.getSettings());
|
|
489
|
+
}
|
|
490
|
+
return {
|
|
491
|
+
status,
|
|
492
|
+
updateInfo,
|
|
493
|
+
progress,
|
|
494
|
+
formattedProgress,
|
|
495
|
+
error,
|
|
496
|
+
settings,
|
|
497
|
+
downloadCancellationCount,
|
|
498
|
+
disabledUntilRestart,
|
|
499
|
+
isIdle,
|
|
500
|
+
isChecking,
|
|
501
|
+
isAvailable,
|
|
502
|
+
isNotAvailable,
|
|
503
|
+
isDownloading,
|
|
504
|
+
isCancelling,
|
|
505
|
+
isDownloaded,
|
|
506
|
+
isError,
|
|
507
|
+
version,
|
|
508
|
+
releaseName,
|
|
509
|
+
releaseNotes,
|
|
510
|
+
releaseDate,
|
|
511
|
+
initialize,
|
|
512
|
+
checkForUpdates,
|
|
513
|
+
downloadUpdate,
|
|
514
|
+
cancelDownload,
|
|
515
|
+
quitAndInstall,
|
|
516
|
+
saveSettings,
|
|
517
|
+
resetSettings
|
|
518
|
+
};
|
|
519
|
+
});
|
|
520
|
+
|
|
521
|
+
// src/renderer/store/window/window-store.ts
|
|
522
|
+
import { defineStore as defineStore6 } from "pinia";
|
|
523
|
+
import { reactive as reactive3, ref as ref6 } from "vue";
|
|
524
|
+
function defaultState() {
|
|
525
|
+
return {
|
|
526
|
+
windowMaterial: void 0,
|
|
527
|
+
isSidebarFolded: false,
|
|
528
|
+
isAlwaysOnTop: false,
|
|
529
|
+
isMaximized: false,
|
|
530
|
+
isFullScreen: false,
|
|
531
|
+
isMinimized: false,
|
|
532
|
+
isFullScreenable: false,
|
|
533
|
+
isMinimizable: false,
|
|
534
|
+
isMaximizable: false,
|
|
535
|
+
isClosable: false
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
var useXoWindowStore = defineStore6("useXoWindowStore", () => {
|
|
539
|
+
const initializePromise = ref6(null);
|
|
540
|
+
const offState = ref6(null);
|
|
541
|
+
const loaded = ref6(false);
|
|
542
|
+
const state = reactive3(defaultState());
|
|
543
|
+
function applyState(nextState) {
|
|
544
|
+
Object.assign(state, nextState);
|
|
545
|
+
applyDocumentWindowMaterial(state.windowMaterial);
|
|
546
|
+
}
|
|
547
|
+
function applyDocumentWindowMaterial(windowMaterial) {
|
|
548
|
+
const documentElement = document.documentElement;
|
|
549
|
+
if (windowMaterial === void 0) {
|
|
550
|
+
delete documentElement.dataset.material;
|
|
551
|
+
} else {
|
|
552
|
+
documentElement.dataset.material = windowMaterial;
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
async function initialize() {
|
|
556
|
+
if (offState.value) {
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
if (initializePromise.value) {
|
|
560
|
+
return initializePromise.value;
|
|
561
|
+
}
|
|
562
|
+
initializePromise.value = (async () => {
|
|
563
|
+
try {
|
|
564
|
+
applyState(await window.xion.window.getState());
|
|
565
|
+
offState.value = window.xion.window.onState(applyState);
|
|
566
|
+
loaded.value = true;
|
|
567
|
+
} finally {
|
|
568
|
+
initializePromise.value = null;
|
|
569
|
+
}
|
|
570
|
+
})();
|
|
571
|
+
return initializePromise.value;
|
|
572
|
+
}
|
|
573
|
+
async function toggleSidebarFold() {
|
|
574
|
+
await window.xion.window.toggleSidebarFold();
|
|
575
|
+
}
|
|
576
|
+
async function toggleAlwaysOnTop() {
|
|
577
|
+
await window.xion.window.toggleAlwaysOnTop();
|
|
578
|
+
}
|
|
579
|
+
return {
|
|
580
|
+
loaded,
|
|
581
|
+
state,
|
|
582
|
+
applyState,
|
|
583
|
+
initialize,
|
|
584
|
+
toggleSidebarFold,
|
|
585
|
+
toggleAlwaysOnTop
|
|
586
|
+
};
|
|
587
|
+
});
|
|
588
|
+
export {
|
|
589
|
+
useXoAppStore,
|
|
590
|
+
useXoAuthStore,
|
|
591
|
+
useXoRemoteServiceStore,
|
|
592
|
+
useXoThemeStore,
|
|
593
|
+
useXoUpdaterStore,
|
|
594
|
+
useXoWindowStore
|
|
595
|
+
};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 远程服务 Store
|
|
3
|
+
*/
|
|
4
|
+
export declare const useXoRemoteServiceStore: import("pinia").StoreDefinition<"useXoRemoteServiceStore", Pick<{
|
|
5
|
+
status: import("vue").Ref<"error" | "idle" | "connecting" | "connected" | "disconnected", "error" | "idle" | "connecting" | "connected" | "disconnected">;
|
|
6
|
+
error: import("vue").Ref<string | undefined, string | undefined>;
|
|
7
|
+
connectedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
8
|
+
reconnectCount: import("vue").Ref<number, number>;
|
|
9
|
+
settings: import("vue").Ref<XoRemoteService.EffectiveSettings | undefined, XoRemoteService.EffectiveSettings | undefined>;
|
|
10
|
+
statusOption: import("vue").ComputedRef<XoRemoteService.StatusOption>;
|
|
11
|
+
isIdle: import("vue").ComputedRef<boolean>;
|
|
12
|
+
isConnecting: import("vue").ComputedRef<boolean>;
|
|
13
|
+
isConnected: import("vue").ComputedRef<boolean>;
|
|
14
|
+
isDisconnected: import("vue").ComputedRef<boolean>;
|
|
15
|
+
isError: import("vue").ComputedRef<boolean>;
|
|
16
|
+
initialize: () => Promise<void>;
|
|
17
|
+
setSettings: (userSettings: XoRemoteService.UserSettings) => Promise<void>;
|
|
18
|
+
resetSettings: () => Promise<void>;
|
|
19
|
+
getButtonStatus: (options?: XoComponent.ServiceStatusBarStatusButtonOption) => XoComponent.ServiceStatusBarStatusOption;
|
|
20
|
+
}, "error" | "status" | "connectedAt" | "reconnectCount" | "settings">, Pick<{
|
|
21
|
+
status: import("vue").Ref<"error" | "idle" | "connecting" | "connected" | "disconnected", "error" | "idle" | "connecting" | "connected" | "disconnected">;
|
|
22
|
+
error: import("vue").Ref<string | undefined, string | undefined>;
|
|
23
|
+
connectedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
24
|
+
reconnectCount: import("vue").Ref<number, number>;
|
|
25
|
+
settings: import("vue").Ref<XoRemoteService.EffectiveSettings | undefined, XoRemoteService.EffectiveSettings | undefined>;
|
|
26
|
+
statusOption: import("vue").ComputedRef<XoRemoteService.StatusOption>;
|
|
27
|
+
isIdle: import("vue").ComputedRef<boolean>;
|
|
28
|
+
isConnecting: import("vue").ComputedRef<boolean>;
|
|
29
|
+
isConnected: import("vue").ComputedRef<boolean>;
|
|
30
|
+
isDisconnected: import("vue").ComputedRef<boolean>;
|
|
31
|
+
isError: import("vue").ComputedRef<boolean>;
|
|
32
|
+
initialize: () => Promise<void>;
|
|
33
|
+
setSettings: (userSettings: XoRemoteService.UserSettings) => Promise<void>;
|
|
34
|
+
resetSettings: () => Promise<void>;
|
|
35
|
+
getButtonStatus: (options?: XoComponent.ServiceStatusBarStatusButtonOption) => XoComponent.ServiceStatusBarStatusOption;
|
|
36
|
+
}, "isError" | "statusOption" | "isIdle" | "isConnecting" | "isConnected" | "isDisconnected">, Pick<{
|
|
37
|
+
status: import("vue").Ref<"error" | "idle" | "connecting" | "connected" | "disconnected", "error" | "idle" | "connecting" | "connected" | "disconnected">;
|
|
38
|
+
error: import("vue").Ref<string | undefined, string | undefined>;
|
|
39
|
+
connectedAt: import("vue").Ref<number | undefined, number | undefined>;
|
|
40
|
+
reconnectCount: import("vue").Ref<number, number>;
|
|
41
|
+
settings: import("vue").Ref<XoRemoteService.EffectiveSettings | undefined, XoRemoteService.EffectiveSettings | undefined>;
|
|
42
|
+
statusOption: import("vue").ComputedRef<XoRemoteService.StatusOption>;
|
|
43
|
+
isIdle: import("vue").ComputedRef<boolean>;
|
|
44
|
+
isConnecting: import("vue").ComputedRef<boolean>;
|
|
45
|
+
isConnected: import("vue").ComputedRef<boolean>;
|
|
46
|
+
isDisconnected: import("vue").ComputedRef<boolean>;
|
|
47
|
+
isError: import("vue").ComputedRef<boolean>;
|
|
48
|
+
initialize: () => Promise<void>;
|
|
49
|
+
setSettings: (userSettings: XoRemoteService.UserSettings) => Promise<void>;
|
|
50
|
+
resetSettings: () => Promise<void>;
|
|
51
|
+
getButtonStatus: (options?: XoComponent.ServiceStatusBarStatusButtonOption) => XoComponent.ServiceStatusBarStatusOption;
|
|
52
|
+
}, "setSettings" | "resetSettings" | "initialize" | "getButtonStatus">>;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主题 Store
|
|
3
|
+
*/
|
|
4
|
+
export declare const useXoThemeStore: import("pinia").StoreDefinition<"useXoThemeStore", Pick<{
|
|
5
|
+
themeSource: import("vue").Ref<"light" | "dark" | "system", "light" | "dark" | "system">;
|
|
6
|
+
shouldUseDarkColors: import("vue").Ref<boolean, boolean>;
|
|
7
|
+
shouldUseLightColors: import("vue").ComputedRef<boolean>;
|
|
8
|
+
titleBarOverlay: import("vue").Ref<{
|
|
9
|
+
color?: string | undefined;
|
|
10
|
+
symbolColor?: string | undefined;
|
|
11
|
+
height?: number | undefined;
|
|
12
|
+
}, Electron.TitleBarOverlayOptions | {
|
|
13
|
+
color?: string | undefined;
|
|
14
|
+
symbolColor?: string | undefined;
|
|
15
|
+
height?: number | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
titleBarOverlayEnabled: import("vue").Ref<boolean, boolean>;
|
|
18
|
+
initialize: () => Promise<void>;
|
|
19
|
+
setSource: (source: XoTheme.Source) => Promise<void>;
|
|
20
|
+
}, "themeSource" | "titleBarOverlay" | "shouldUseDarkColors" | "titleBarOverlayEnabled">, Pick<{
|
|
21
|
+
themeSource: import("vue").Ref<"light" | "dark" | "system", "light" | "dark" | "system">;
|
|
22
|
+
shouldUseDarkColors: import("vue").Ref<boolean, boolean>;
|
|
23
|
+
shouldUseLightColors: import("vue").ComputedRef<boolean>;
|
|
24
|
+
titleBarOverlay: import("vue").Ref<{
|
|
25
|
+
color?: string | undefined;
|
|
26
|
+
symbolColor?: string | undefined;
|
|
27
|
+
height?: number | undefined;
|
|
28
|
+
}, Electron.TitleBarOverlayOptions | {
|
|
29
|
+
color?: string | undefined;
|
|
30
|
+
symbolColor?: string | undefined;
|
|
31
|
+
height?: number | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
titleBarOverlayEnabled: import("vue").Ref<boolean, boolean>;
|
|
34
|
+
initialize: () => Promise<void>;
|
|
35
|
+
setSource: (source: XoTheme.Source) => Promise<void>;
|
|
36
|
+
}, "shouldUseLightColors">, Pick<{
|
|
37
|
+
themeSource: import("vue").Ref<"light" | "dark" | "system", "light" | "dark" | "system">;
|
|
38
|
+
shouldUseDarkColors: import("vue").Ref<boolean, boolean>;
|
|
39
|
+
shouldUseLightColors: import("vue").ComputedRef<boolean>;
|
|
40
|
+
titleBarOverlay: import("vue").Ref<{
|
|
41
|
+
color?: string | undefined;
|
|
42
|
+
symbolColor?: string | undefined;
|
|
43
|
+
height?: number | undefined;
|
|
44
|
+
}, Electron.TitleBarOverlayOptions | {
|
|
45
|
+
color?: string | undefined;
|
|
46
|
+
symbolColor?: string | undefined;
|
|
47
|
+
height?: number | undefined;
|
|
48
|
+
}>;
|
|
49
|
+
titleBarOverlayEnabled: import("vue").Ref<boolean, boolean>;
|
|
50
|
+
initialize: () => Promise<void>;
|
|
51
|
+
setSource: (source: XoTheme.Source) => Promise<void>;
|
|
52
|
+
}, "setSource" | "initialize">>;
|