@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,74 @@
|
|
|
1
|
+
<!-- 设置 - 快捷键录制 组件 -->
|
|
2
|
+
<template>
|
|
3
|
+
<xo-shortcut-keys-record
|
|
4
|
+
class="xo-setting--shortcut-keys-record"
|
|
5
|
+
v-model="keys"
|
|
6
|
+
@change="onChange"
|
|
7
|
+
:style="style"
|
|
8
|
+
/>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script setup lang="ts">
|
|
12
|
+
import type {XoPropsSettingShortcutKeysRecord} from './types/setting-shortcut-keys-record'
|
|
13
|
+
import XoShortcutKeysRecord from '../shortcut-keys-record/xo-shortcut-keys-record.vue'
|
|
14
|
+
import {ContextUtil, RendererUtil, ShortcutUtil} from '../../utils/index.js'
|
|
15
|
+
import {computed, inject} from 'vue'
|
|
16
|
+
|
|
17
|
+
// 组件名
|
|
18
|
+
defineOptions({
|
|
19
|
+
name: 'XoSettingShortcutKeysRecord',
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
// 组件属性
|
|
23
|
+
const props = withDefaults(defineProps<XoPropsSettingShortcutKeysRecord>(), {
|
|
24
|
+
center: true,
|
|
25
|
+
})
|
|
26
|
+
|
|
27
|
+
// 表单 flex 上下文
|
|
28
|
+
const formFlexContext = inject(ContextUtil.FormFlexKey, undefined)
|
|
29
|
+
|
|
30
|
+
// 绑定值
|
|
31
|
+
const keys = defineModel<string[]>({default: []})
|
|
32
|
+
|
|
33
|
+
// 样式
|
|
34
|
+
const style = computed(() => {
|
|
35
|
+
return {
|
|
36
|
+
'--xo-setting--shortcut-keys-record--value-align': props.center ? 'center' : 'left',
|
|
37
|
+
'width' : RendererUtil.toCssSize(props.width ?? formFlexContext?.inputWidth),
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
// 快捷键变化
|
|
42
|
+
const onChange = (keys: string[]): void => {
|
|
43
|
+
let key: XoShortcut.Key | undefined
|
|
44
|
+
|
|
45
|
+
// 全局快捷键
|
|
46
|
+
if (props.scope === 'global') {
|
|
47
|
+
key = ShortcutUtil.globalKey(props.shortcutId, keys)
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
// 应用快捷键
|
|
51
|
+
else if (props.scope === 'app') {
|
|
52
|
+
key = ShortcutUtil.appKey(props.shortcutId, keys)
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
if (key) {
|
|
56
|
+
void window.xion.app.setShortcut(key)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
</script>
|
|
60
|
+
|
|
61
|
+
<style lang="less">
|
|
62
|
+
.xo-shortcut-keys-record.xo-setting--shortcut-keys-record {
|
|
63
|
+
--xo-setting--shortcut-keys-record--value-align : left;
|
|
64
|
+
}
|
|
65
|
+
</style>
|
|
66
|
+
|
|
67
|
+
<style lang="less">
|
|
68
|
+
.xo-shortcut-keys-record.xo-setting--shortcut-keys-record {
|
|
69
|
+
|
|
70
|
+
.el-input__inner {
|
|
71
|
+
text-align : var(--xo-setting--shortcut-keys-record--value-align);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
</style>
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<!-- 设置 - 窗口材质组件 -->
|
|
2
|
+
<template>
|
|
3
|
+
<el-select
|
|
4
|
+
class="xo-setting--window-material"
|
|
5
|
+
v-model="material"
|
|
6
|
+
@change="onChange"
|
|
7
|
+
:style="style"
|
|
8
|
+
:teleported="false"
|
|
9
|
+
:placeholder="placeholder"
|
|
10
|
+
>
|
|
11
|
+
<el-option v-for="(item, i) in materials" :key="i" :label="item.label" :value="item.value">
|
|
12
|
+
<div class="select-item">
|
|
13
|
+
<div class="label">{{ item.label }}</div>
|
|
14
|
+
<div class="material">{{ materialUpper ? item.value.toUpperCase() : item.value }}</div>
|
|
15
|
+
</div>
|
|
16
|
+
</el-option>
|
|
17
|
+
</el-select>
|
|
18
|
+
</template>
|
|
19
|
+
|
|
20
|
+
<script setup lang="ts">
|
|
21
|
+
import type {XoPropsSettingWindowMaterial} from './types/setting-window-material'
|
|
22
|
+
import {ContextUtil, RendererUtil} from '../../utils/index.js'
|
|
23
|
+
import {WindowMaterialsOptions as materials} from '../../../shared/app/index.js'
|
|
24
|
+
import {computed, inject} from 'vue'
|
|
25
|
+
|
|
26
|
+
// 组件名
|
|
27
|
+
defineOptions({
|
|
28
|
+
name: 'XoSettingWindowMaterial',
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
// 组件属性
|
|
32
|
+
const props = withDefaults(defineProps<XoPropsSettingWindowMaterial>(), {
|
|
33
|
+
placeholder : '选择窗口材质',
|
|
34
|
+
materialUpper: false,
|
|
35
|
+
valueCenter : true,
|
|
36
|
+
})
|
|
37
|
+
|
|
38
|
+
// 表单 flex 上下文
|
|
39
|
+
const formFlexContext = inject(ContextUtil.FormFlexKey, undefined)
|
|
40
|
+
|
|
41
|
+
// 样式
|
|
42
|
+
const style = computed(() => {
|
|
43
|
+
return {
|
|
44
|
+
'--xo-setting--window-material--value-align': props.valueCenter ? 'center' : 'left',
|
|
45
|
+
'width' : RendererUtil.toCssSize(props.width ?? formFlexContext?.inputWidth),
|
|
46
|
+
}
|
|
47
|
+
})
|
|
48
|
+
|
|
49
|
+
// 绑定值
|
|
50
|
+
const material = defineModel<XoApp.WindowMaterial>({default: 'none'})
|
|
51
|
+
|
|
52
|
+
// 窗口材质变化
|
|
53
|
+
const onChange = (material: XoApp.WindowMaterial): void => {
|
|
54
|
+
void window.xion.app.setWindowMaterial(material)
|
|
55
|
+
}
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="less">
|
|
59
|
+
@import (reference) '../../styles/mixin.less';
|
|
60
|
+
|
|
61
|
+
.xo-setting--window-material {
|
|
62
|
+
--xo-setting--window-material--value-align : left;
|
|
63
|
+
|
|
64
|
+
.el-select__placeholder {
|
|
65
|
+
text-align : var(--xo-setting--window-material--value-align);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.select-item {
|
|
69
|
+
display : flex;
|
|
70
|
+
justify-content : space-between;
|
|
71
|
+
width : 100%;
|
|
72
|
+
|
|
73
|
+
> .label {
|
|
74
|
+
font-weight : normal;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
> .material {
|
|
78
|
+
font-size : 12px;
|
|
79
|
+
.color-opacity(color, var(--el-text-color-regular), 66);
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
</style>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// 设置 - 目录管理页面组件 路径选项
|
|
2
|
+
export interface XoComponentSettingPageFolderPathOption {
|
|
3
|
+
// 标题
|
|
4
|
+
title: string
|
|
5
|
+
// 路径
|
|
6
|
+
path: string
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// 设置 - 目录管理页面组件属性
|
|
10
|
+
export interface XoPropsSettingPageFolder {
|
|
11
|
+
// 用户目录标签
|
|
12
|
+
userFormLabel?: string
|
|
13
|
+
// 表单间距
|
|
14
|
+
formGap?: number
|
|
15
|
+
// 用户自定义路径选项列表
|
|
16
|
+
paths?: XoComponent.SettingPageFolderPathOption[]
|
|
17
|
+
// 是否显示基础路径
|
|
18
|
+
showBasePaths?: boolean
|
|
19
|
+
// 是否标题加粗
|
|
20
|
+
rowTitleBold?: boolean
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// 全局类型
|
|
24
|
+
declare global {
|
|
25
|
+
|
|
26
|
+
// 组件
|
|
27
|
+
namespace XoComponent {
|
|
28
|
+
|
|
29
|
+
// 设置 - 目录管理页面组件 路径选项
|
|
30
|
+
interface SettingPageFolderPathOption extends XoComponentSettingPageFolderPathOption {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// 组件属性
|
|
35
|
+
namespace XoProps {
|
|
36
|
+
|
|
37
|
+
// 设置 - 目录管理页面
|
|
38
|
+
interface SettingPageFolder extends XoPropsSettingPageFolder {
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// 设置 - 通用设置页面组件属性
|
|
2
|
+
export interface XoPropsSettingPageGeneral {
|
|
3
|
+
// 扩展的全局快捷键
|
|
4
|
+
globalShortcutKeys?: XoComponent.ShortcutKeysRecordOption[]
|
|
5
|
+
// 扩展的应用快捷键
|
|
6
|
+
appShortcutKeys?: XoComponent.ShortcutKeysRecordOption[]
|
|
7
|
+
// 输入框、下拉框宽度
|
|
8
|
+
inputWidth?: number
|
|
9
|
+
// 表单底部间距
|
|
10
|
+
bottomGap?: number
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// 全局类型
|
|
14
|
+
declare global {
|
|
15
|
+
|
|
16
|
+
// 组件属性
|
|
17
|
+
namespace XoProps {
|
|
18
|
+
|
|
19
|
+
// 设置 - 通用设置页面
|
|
20
|
+
interface SettingPageGeneral extends XoPropsSettingPageGeneral {
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// 设置 - 远程服务设置页面属性
|
|
2
|
+
export interface XoPropsSettingPageRemoteService {
|
|
3
|
+
// 表单间距
|
|
4
|
+
formGap?: string | number
|
|
5
|
+
// 行标题加粗
|
|
6
|
+
rowTitleBold?: boolean
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// 全局类型
|
|
10
|
+
declare global {
|
|
11
|
+
|
|
12
|
+
// 组件属性
|
|
13
|
+
namespace XoProps {
|
|
14
|
+
|
|
15
|
+
// 设置 - 远程服务设置页面
|
|
16
|
+
interface SettingPageRemoteService extends XoPropsSettingPageRemoteService {
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// 设置 - 更新设置页面组件 属性
|
|
2
|
+
export interface XoPropsSettingPageUpdater {
|
|
3
|
+
// logo 地址
|
|
4
|
+
logoSrc?: string
|
|
5
|
+
// logo 宽度
|
|
6
|
+
logoWidth?: number
|
|
7
|
+
// logo 高度
|
|
8
|
+
logoHeight?: number
|
|
9
|
+
// logo 底部间距
|
|
10
|
+
logoBottomGap?: number
|
|
11
|
+
// 应用信息底部间距
|
|
12
|
+
appInfoBottomGap?: number
|
|
13
|
+
// 更新器底部间距
|
|
14
|
+
updaterBottomGap?: number
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
// 全局类型
|
|
18
|
+
declare global {
|
|
19
|
+
|
|
20
|
+
// 组件属性
|
|
21
|
+
namespace XoProps {
|
|
22
|
+
|
|
23
|
+
// 设置 - 更新设置页面组件
|
|
24
|
+
interface SettingPageUpdater extends XoPropsSettingPageUpdater {
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<!-- 设置 - 目录管理页面组件 -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="page-mini page-settings-folder" v-if="dataLoader.loaded">
|
|
4
|
+
|
|
5
|
+
<!-- 应用目录 -->
|
|
6
|
+
<slot name="default">
|
|
7
|
+
<xo-form-flex
|
|
8
|
+
v-if="props.paths.length > 0"
|
|
9
|
+
:label="props.userFormLabel"
|
|
10
|
+
:row-title-bold="props.rowTitleBold"
|
|
11
|
+
:bottom-gap="showBasePaths ? props.formGap : 0"
|
|
12
|
+
>
|
|
13
|
+
<xo-form-flex-row
|
|
14
|
+
v-for="(item, key) in props.paths"
|
|
15
|
+
:key="key"
|
|
16
|
+
:title="item.title"
|
|
17
|
+
:describe="item.path"
|
|
18
|
+
>
|
|
19
|
+
<el-button
|
|
20
|
+
size="small"
|
|
21
|
+
type="primary"
|
|
22
|
+
plain
|
|
23
|
+
@click="openPath(item.path)"
|
|
24
|
+
>
|
|
25
|
+
打开目录
|
|
26
|
+
</el-button>
|
|
27
|
+
</xo-form-flex-row>
|
|
28
|
+
</xo-form-flex>
|
|
29
|
+
</slot>
|
|
30
|
+
|
|
31
|
+
<!-- 基础目录 -->
|
|
32
|
+
<xo-form-flex
|
|
33
|
+
v-if="showBasePaths"
|
|
34
|
+
label="基础目录"
|
|
35
|
+
:row-title-bold="props.rowTitleBold"
|
|
36
|
+
>
|
|
37
|
+
<xo-form-flex-row
|
|
38
|
+
v-for="(item, key) in paths"
|
|
39
|
+
:key="key"
|
|
40
|
+
:title="item.title"
|
|
41
|
+
:describe="item.path"
|
|
42
|
+
>
|
|
43
|
+
<el-button
|
|
44
|
+
size="small"
|
|
45
|
+
type="primary"
|
|
46
|
+
plain
|
|
47
|
+
@click="openPath(item.path)"
|
|
48
|
+
>
|
|
49
|
+
打开目录
|
|
50
|
+
</el-button>
|
|
51
|
+
</xo-form-flex-row>
|
|
52
|
+
</xo-form-flex>
|
|
53
|
+
</div>
|
|
54
|
+
</template>
|
|
55
|
+
|
|
56
|
+
<script setup lang="ts">
|
|
57
|
+
import XoFormFlexRow from '../form/xo-form-flex-row.vue'
|
|
58
|
+
import XoFormFlex from '../form/xo-form-flex.vue'
|
|
59
|
+
import type {XoPropsSettingPageFolder} from './types/setting-page-folder'
|
|
60
|
+
import {useXoDataLoader} from '../../composables/index.js'
|
|
61
|
+
import {onMounted, reactive} from 'vue'
|
|
62
|
+
|
|
63
|
+
defineOptions({
|
|
64
|
+
name: 'XoSettingPageFolder',
|
|
65
|
+
})
|
|
66
|
+
|
|
67
|
+
// 组件属性
|
|
68
|
+
const props = withDefaults(defineProps<XoPropsSettingPageFolder>(), {
|
|
69
|
+
userFormLabel: '应用目录',
|
|
70
|
+
formGap : 20,
|
|
71
|
+
paths : () => [],
|
|
72
|
+
showBasePaths: true,
|
|
73
|
+
rowTitleBold : true,
|
|
74
|
+
})
|
|
75
|
+
|
|
76
|
+
// 目录选项
|
|
77
|
+
interface PathOption {
|
|
78
|
+
// 内置目录键
|
|
79
|
+
key: XoApp.PathKeys
|
|
80
|
+
// 标题
|
|
81
|
+
title: string
|
|
82
|
+
// 路径
|
|
83
|
+
path?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
// 目录列表
|
|
87
|
+
const paths = reactive<PathOption[]>([
|
|
88
|
+
{
|
|
89
|
+
key : 'logs',
|
|
90
|
+
title: '日志目录',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key : 'userData',
|
|
94
|
+
title: '用户数据目录',
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key : 'sessionData',
|
|
98
|
+
title: '会话数据目录',
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
key : 'updaterCacheDir',
|
|
102
|
+
title: '更新器缓存目录',
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key : 'crashDumps',
|
|
106
|
+
title: '崩溃转储目录',
|
|
107
|
+
},
|
|
108
|
+
])
|
|
109
|
+
|
|
110
|
+
// 数据加载器
|
|
111
|
+
const dataLoader = useXoDataLoader({
|
|
112
|
+
request : () => window.xion.app.getPaths(),
|
|
113
|
+
onLoadSuccess: pathValues => {
|
|
114
|
+
for (const item of paths) {
|
|
115
|
+
item.path = pathValues[item.key]
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
// 加载目录
|
|
121
|
+
onMounted(async () => {
|
|
122
|
+
await dataLoader.load()
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* 打开目录
|
|
127
|
+
* @param {string} path 目录路径
|
|
128
|
+
* @returns {Promise<void>}
|
|
129
|
+
*/
|
|
130
|
+
async function openPath(path?: string): Promise<void> {
|
|
131
|
+
if (!path) return
|
|
132
|
+
await window.xion.shell.openPath(path)
|
|
133
|
+
}
|
|
134
|
+
</script>
|
|
135
|
+
|
|
136
|
+
<style lang="less">
|
|
137
|
+
</style>
|
|
@@ -0,0 +1,255 @@
|
|
|
1
|
+
<!-- 设置 - 通用设置页面组件 -->
|
|
2
|
+
<template>
|
|
3
|
+
<div class="page-mini page-settings-general" v-if="dataLoader.loaded">
|
|
4
|
+
|
|
5
|
+
<!-- 界面与外观 -->
|
|
6
|
+
<xo-form-flex
|
|
7
|
+
label="界面与外观"
|
|
8
|
+
:row-title-bold="true"
|
|
9
|
+
:input-width="dataLoader.inputWidth"
|
|
10
|
+
:bottom-gap="dataLoader.bottomGap"
|
|
11
|
+
>
|
|
12
|
+
<xo-form-flex-row title="主题风格" describe="“系统”表示使用操作系统主题">
|
|
13
|
+
<xo-theme-switch />
|
|
14
|
+
</xo-form-flex-row>
|
|
15
|
+
<xo-form-flex-row describe="同时设置所有窗口透明度">
|
|
16
|
+
<template #title>
|
|
17
|
+
<div class="opacity-tag">
|
|
18
|
+
<div class="title">窗口透明度</div>
|
|
19
|
+
<el-tag
|
|
20
|
+
class="tag"
|
|
21
|
+
effect="light"
|
|
22
|
+
size="small"
|
|
23
|
+
disable-transitions
|
|
24
|
+
type="primary"
|
|
25
|
+
round
|
|
26
|
+
>
|
|
27
|
+
{{ opacity }}%
|
|
28
|
+
</el-tag>
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
<xo-setting-app-opacity v-model="opacity" />
|
|
32
|
+
</xo-form-flex-row>
|
|
33
|
+
<xo-form-flex-row title="窗口材质" describe="作用于所有未配置材质的窗口">
|
|
34
|
+
<xo-setting-window-material v-model="material" />
|
|
35
|
+
</xo-form-flex-row>
|
|
36
|
+
</xo-form-flex>
|
|
37
|
+
|
|
38
|
+
<!-- 全局快捷键 -->
|
|
39
|
+
<xo-form-flex
|
|
40
|
+
label="全局快捷键"
|
|
41
|
+
:row-title-bold="true"
|
|
42
|
+
:input-width="dataLoader.inputWidth"
|
|
43
|
+
:bottom-gap="dataLoader.bottomGap"
|
|
44
|
+
>
|
|
45
|
+
<xo-setting-shortcut-keys-record-for-form-flex-rows
|
|
46
|
+
scope="global"
|
|
47
|
+
:record-options="globalShortcutKeys"
|
|
48
|
+
/>
|
|
49
|
+
</xo-form-flex>
|
|
50
|
+
|
|
51
|
+
<!-- 应用快捷键 -->
|
|
52
|
+
<xo-form-flex
|
|
53
|
+
label="应用快捷键"
|
|
54
|
+
:row-title-bold="true"
|
|
55
|
+
:input-width="dataLoader.inputWidth"
|
|
56
|
+
:bottom-gap="dataLoader.bottomGap"
|
|
57
|
+
>
|
|
58
|
+
<xo-setting-shortcut-keys-record-for-form-flex-rows
|
|
59
|
+
scope="app"
|
|
60
|
+
:record-options="appShortcutKeys"
|
|
61
|
+
/>
|
|
62
|
+
</xo-form-flex>
|
|
63
|
+
|
|
64
|
+
<!-- 系统与应用 -->
|
|
65
|
+
<xo-form-flex
|
|
66
|
+
label="系统与应用"
|
|
67
|
+
:row-title-bold="true"
|
|
68
|
+
:input-width="dataLoader.inputWidth"
|
|
69
|
+
>
|
|
70
|
+
<xo-form-flex-row title="开机启动" describe="应用是否随系统开机启动">
|
|
71
|
+
<el-switch
|
|
72
|
+
v-model="launchOnStartup.model"
|
|
73
|
+
@change="launchOnStartup.onChange"
|
|
74
|
+
/>
|
|
75
|
+
</xo-form-flex-row>
|
|
76
|
+
<xo-form-flex-row title="启动模式" describe="设置应用启动模式">
|
|
77
|
+
<xo-radio-group
|
|
78
|
+
v-model="appLaunchMode.model"
|
|
79
|
+
:options="appLaunchMode.options"
|
|
80
|
+
@change="appLaunchMode.onChange"
|
|
81
|
+
/>
|
|
82
|
+
</xo-form-flex-row>
|
|
83
|
+
<xo-form-flex-row title="关闭窗口" describe="设置主窗口关闭行为">
|
|
84
|
+
<xo-radio-group
|
|
85
|
+
v-model="windowCloseBehavior.model"
|
|
86
|
+
:options="windowCloseBehavior.options"
|
|
87
|
+
@change="windowCloseBehavior.onChange"
|
|
88
|
+
/>
|
|
89
|
+
</xo-form-flex-row>
|
|
90
|
+
<xo-form-flex-row title="日志等级" describe="设置应用默认记录日志等级">
|
|
91
|
+
<xo-setting-log-level v-model="logLevel" />
|
|
92
|
+
</xo-form-flex-row>
|
|
93
|
+
</xo-form-flex>
|
|
94
|
+
</div>
|
|
95
|
+
</template>
|
|
96
|
+
|
|
97
|
+
<script setup lang="ts">
|
|
98
|
+
import XoFormFlexRow from '../form/xo-form-flex-row.vue'
|
|
99
|
+
import XoFormFlex from '../form/xo-form-flex.vue'
|
|
100
|
+
import XoRadioGroup from '../radio-group/xo-radio-group.vue'
|
|
101
|
+
import XoSettingAppOpacity from '../settings-components/xo-setting-app-opacity.vue'
|
|
102
|
+
import XoSettingLogLevel from '../settings-components/xo-setting-log-level.vue'
|
|
103
|
+
import XoSettingShortcutKeysRecordForFormFlexRows from '../settings-components/xo-setting-shortcut-keys-record-for-form-flex-rows.vue'
|
|
104
|
+
import XoSettingWindowMaterial from '../settings-components/xo-setting-window-material.vue'
|
|
105
|
+
import type {XoPropsSettingPageGeneral} from './types/setting-page-general'
|
|
106
|
+
import XoThemeSwitch from '../theme-switch/xo-theme-switch.vue'
|
|
107
|
+
import {useXoDataLoader, useXoRadioGroup, useXoSwitch} from '../../composables/index.js'
|
|
108
|
+
import {AppLaunchModeOptions, WindowCloseBehaviorOptions} from '../../../shared/app/index.js'
|
|
109
|
+
import {ShortcutHandlerIds} from '../../../shared/shortcut/index.js'
|
|
110
|
+
import {onMounted, reactive, ref} from 'vue'
|
|
111
|
+
|
|
112
|
+
defineOptions({
|
|
113
|
+
name: 'XoSettingPageGeneral',
|
|
114
|
+
})
|
|
115
|
+
|
|
116
|
+
// 组件属性
|
|
117
|
+
const props = withDefaults(defineProps<XoPropsSettingPageGeneral>(), {
|
|
118
|
+
globalShortcutKeys: () => [],
|
|
119
|
+
appShortcutKeys : () => [],
|
|
120
|
+
inputWidth : 260,
|
|
121
|
+
bottomGap : 20,
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
// 窗口透明度
|
|
125
|
+
const opacity = ref(100)
|
|
126
|
+
|
|
127
|
+
// 窗口材质
|
|
128
|
+
const material = ref<XoApp.WindowMaterial>('none')
|
|
129
|
+
|
|
130
|
+
// 全局快捷键
|
|
131
|
+
const globalShortcutKeys = reactive<XoComponent.ShortcutKeysRecordOption[]>(mergeShortcutKeys(
|
|
132
|
+
[
|
|
133
|
+
{
|
|
134
|
+
id : ShortcutHandlerIds.toggleAllWindow,
|
|
135
|
+
keys : [],
|
|
136
|
+
title : '主窗口',
|
|
137
|
+
describe: '快速显示/隐藏主窗口',
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
props.globalShortcutKeys,
|
|
141
|
+
))
|
|
142
|
+
|
|
143
|
+
// 应用快捷键
|
|
144
|
+
const appShortcutKeys = reactive<XoComponent.ShortcutKeysRecordOption[]>(mergeShortcutKeys(
|
|
145
|
+
[
|
|
146
|
+
{
|
|
147
|
+
id : ShortcutHandlerIds.showSettingWindow,
|
|
148
|
+
keys : [],
|
|
149
|
+
title : '设置窗口',
|
|
150
|
+
describe: '快速打开设置窗口',
|
|
151
|
+
},
|
|
152
|
+
],
|
|
153
|
+
props.appShortcutKeys,
|
|
154
|
+
))
|
|
155
|
+
|
|
156
|
+
// 日志等级
|
|
157
|
+
const logLevel = ref<XoLogger.Level>('info')
|
|
158
|
+
|
|
159
|
+
// 开机启动
|
|
160
|
+
const launchOnStartup = useXoSwitch<boolean>({
|
|
161
|
+
model : false,
|
|
162
|
+
onChange: value => void window.xion.app.setLaunchOnStartup(value),
|
|
163
|
+
})
|
|
164
|
+
|
|
165
|
+
// 应用启动模式
|
|
166
|
+
const appLaunchMode = useXoRadioGroup<XoApp.AppLaunchMode>({
|
|
167
|
+
model : 'window',
|
|
168
|
+
options : AppLaunchModeOptions,
|
|
169
|
+
onChange: value => void window.xion.app.setAppLaunchMode(value),
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
// 关闭窗口行为
|
|
173
|
+
const windowCloseBehavior = useXoRadioGroup<XoApp.WindowCloseBehavior>({
|
|
174
|
+
model : 'minimize',
|
|
175
|
+
options : WindowCloseBehaviorOptions,
|
|
176
|
+
onChange: value => void window.xion.app.setWindowCloseBehavior(value),
|
|
177
|
+
})
|
|
178
|
+
|
|
179
|
+
// 表单加载器
|
|
180
|
+
const dataLoader = useXoDataLoader(
|
|
181
|
+
{
|
|
182
|
+
inputWidth : props.inputWidth,
|
|
183
|
+
bottomGap : props.bottomGap,
|
|
184
|
+
request : () => window.xion.app.getGeneralSettings(),
|
|
185
|
+
onLoadSuccess: settings => {
|
|
186
|
+
// 更新 APP透明度
|
|
187
|
+
opacity.value = Math.round(settings.opacity * 100)
|
|
188
|
+
// 更新 窗口材质
|
|
189
|
+
material.value = settings.windowMaterial
|
|
190
|
+
// 更新 日志等级
|
|
191
|
+
logLevel.value = settings.logLevel
|
|
192
|
+
// 更新 是否开机启动
|
|
193
|
+
launchOnStartup.model = settings.launchOnStartup
|
|
194
|
+
// 更新 应用启动模式
|
|
195
|
+
appLaunchMode.model = settings.appLaunchMode
|
|
196
|
+
// 更新 窗口关闭行为
|
|
197
|
+
windowCloseBehavior.model = settings.windowCloseBehavior
|
|
198
|
+
|
|
199
|
+
// 更新 全局快捷键
|
|
200
|
+
for (const item of globalShortcutKeys) {
|
|
201
|
+
item.keys = settings?.shortcuts?.[item.id]?.keys ?? []
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// 更新 应用快捷键
|
|
205
|
+
for (const item of appShortcutKeys) {
|
|
206
|
+
item.keys = settings?.shortcuts?.[item.id]?.keys ?? []
|
|
207
|
+
}
|
|
208
|
+
},
|
|
209
|
+
},
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
// 加载设置
|
|
213
|
+
onMounted(async () => {
|
|
214
|
+
await dataLoader.load()
|
|
215
|
+
})
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 合并内置快捷键和扩展快捷键
|
|
219
|
+
* @param {XoComponent.ShortcutKeysRecordOption[]} builtIn 内置快捷键选项
|
|
220
|
+
* @param {XoComponent.ShortcutKeysRecordOption[]} extensions 扩展快捷键选项
|
|
221
|
+
* @returns {XoComponent.ShortcutKeysRecordOption[]}
|
|
222
|
+
*/
|
|
223
|
+
function mergeShortcutKeys(
|
|
224
|
+
builtIn: XoComponent.ShortcutKeysRecordOption[],
|
|
225
|
+
extensions: XoComponent.ShortcutKeysRecordOption[],
|
|
226
|
+
): XoComponent.ShortcutKeysRecordOption[] {
|
|
227
|
+
const options = new Map<XoShortcut.ID, XoComponent.ShortcutKeysRecordOption>()
|
|
228
|
+
for (const option of [...builtIn, ...extensions]) {
|
|
229
|
+
if (!options.has(option.id)) {
|
|
230
|
+
options.set(option.id, {
|
|
231
|
+
...option,
|
|
232
|
+
keys: [...option.keys],
|
|
233
|
+
})
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
return [...options.values()]
|
|
237
|
+
}
|
|
238
|
+
</script>
|
|
239
|
+
|
|
240
|
+
<style lang="less">
|
|
241
|
+
.page-settings-general {
|
|
242
|
+
--xo-setting-page-general-opacity-tag-gap : 6px;
|
|
243
|
+
}
|
|
244
|
+
</style>
|
|
245
|
+
|
|
246
|
+
<style lang="less">
|
|
247
|
+
.page-settings-general {
|
|
248
|
+
.opacity-tag {
|
|
249
|
+
display : flex;
|
|
250
|
+
align-items : center;
|
|
251
|
+
gap : var(--xo-setting-page-general-opacity-tag-gap);
|
|
252
|
+
font-weight : normal;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
</style>
|