@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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Automatically generated by scripts/gen-exports.ts
|
|
3
|
+
*/
|
|
4
|
+
export * from './consts/app-launch-mode';
|
|
5
|
+
export * from './consts/update-mode';
|
|
6
|
+
export * from './consts/window-close-behavior';
|
|
7
|
+
export * from './consts/window-material';
|
|
8
|
+
export * from './consts/xion-name';
|
|
9
|
+
export * from './electron-app-config';
|
|
10
|
+
export type * from './types/app-info';
|
|
11
|
+
export type * from './types/app-launch-mode';
|
|
12
|
+
export type * from './types/app-paths';
|
|
13
|
+
export type * from './types/general-settings';
|
|
14
|
+
export type * from './types/on-window-close';
|
|
15
|
+
export type * from './types/update-mode';
|
|
16
|
+
export type * from './types/window-material';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
UpdateMode,
|
|
3
|
+
UpdateModeOptions
|
|
4
|
+
} from "../../chunk-files/chunk-EQTU45UO.js";
|
|
5
|
+
import {
|
|
6
|
+
XionName
|
|
7
|
+
} from "../../chunk-files/chunk-YLZRRUY7.js";
|
|
8
|
+
import {
|
|
9
|
+
defaultElectronAppConfig
|
|
10
|
+
} from "../../chunk-files/chunk-DEODEAKM.js";
|
|
11
|
+
import {
|
|
12
|
+
AppLaunchMode,
|
|
13
|
+
AppLaunchModeOptions,
|
|
14
|
+
WindowCloseBehavior,
|
|
15
|
+
WindowCloseBehaviorOptions,
|
|
16
|
+
WindowMaterials,
|
|
17
|
+
WindowMaterialsOptions
|
|
18
|
+
} from "../../chunk-files/chunk-Y3OEXVQ2.js";
|
|
19
|
+
export {
|
|
20
|
+
AppLaunchMode,
|
|
21
|
+
AppLaunchModeOptions,
|
|
22
|
+
UpdateMode,
|
|
23
|
+
UpdateModeOptions,
|
|
24
|
+
WindowCloseBehavior,
|
|
25
|
+
WindowCloseBehaviorOptions,
|
|
26
|
+
WindowMaterials,
|
|
27
|
+
WindowMaterialsOptions,
|
|
28
|
+
XionName,
|
|
29
|
+
defaultElectronAppConfig
|
|
30
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
|
|
3
|
+
// App
|
|
4
|
+
namespace XoApp {
|
|
5
|
+
|
|
6
|
+
// 应用信息
|
|
7
|
+
interface Info {
|
|
8
|
+
// 应用版本
|
|
9
|
+
version?: string
|
|
10
|
+
// 应用名称
|
|
11
|
+
name?: string
|
|
12
|
+
// 运行模式
|
|
13
|
+
mode?: XoMode.Mode
|
|
14
|
+
// 运行平台
|
|
15
|
+
platform?: NodeJS.Platform
|
|
16
|
+
// 是否已打包
|
|
17
|
+
isPackaged?: boolean
|
|
18
|
+
// APP ID
|
|
19
|
+
appId?: string
|
|
20
|
+
// 主协议
|
|
21
|
+
protocol?: string
|
|
22
|
+
// 全部协议
|
|
23
|
+
protocols?: string[]
|
|
24
|
+
// 内部渲染资源协议
|
|
25
|
+
rendererProtocol?: string
|
|
26
|
+
// 语言区域
|
|
27
|
+
locale?: string
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
|
|
3
|
+
// App
|
|
4
|
+
namespace XoApp {
|
|
5
|
+
|
|
6
|
+
// 应用目录
|
|
7
|
+
interface Paths {
|
|
8
|
+
// 用户数据目录
|
|
9
|
+
userData: string
|
|
10
|
+
// 会话数据目录
|
|
11
|
+
sessionData: string
|
|
12
|
+
// 日志目录
|
|
13
|
+
logs: string
|
|
14
|
+
// 崩溃转储目录
|
|
15
|
+
crashDumps: string
|
|
16
|
+
// 临时目录
|
|
17
|
+
temp: string
|
|
18
|
+
// 更新器缓存目录
|
|
19
|
+
updaterCacheDir: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 应用目录键
|
|
23
|
+
type PathKeys = keyof Paths
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
|
|
3
|
+
// App
|
|
4
|
+
namespace XoApp {
|
|
5
|
+
|
|
6
|
+
// 通用设置
|
|
7
|
+
interface GeneralSettings {
|
|
8
|
+
// APP 透明度 0-1
|
|
9
|
+
opacity: number
|
|
10
|
+
// 快捷窗口材质
|
|
11
|
+
windowMaterial: WindowMaterial
|
|
12
|
+
// 快捷键配置
|
|
13
|
+
shortcuts: XoShortcut.KeyMap
|
|
14
|
+
// 日志等级
|
|
15
|
+
logLevel: XoLogger.Level
|
|
16
|
+
// 是否开机启动
|
|
17
|
+
launchOnStartup: boolean
|
|
18
|
+
// 应用启动模式
|
|
19
|
+
appLaunchMode: AppLaunchMode
|
|
20
|
+
// 关闭窗口行为
|
|
21
|
+
windowCloseBehavior: WindowCloseBehavior
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {}
|
|
27
|
+
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import {AuthStatus} from '../const/auth-status'
|
|
2
|
+
|
|
3
|
+
declare global {
|
|
4
|
+
|
|
5
|
+
// JWT 认证
|
|
6
|
+
namespace XoAuth {
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* 业务认证类型注册表
|
|
10
|
+
* <p>业务项目通过声明合并注册 User、LoginRequest 等具体类型。</p>
|
|
11
|
+
*/
|
|
12
|
+
interface TypeRegistry {
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 从业务类型注册表中读取类型 */
|
|
16
|
+
type RegistryValue<TKey extends PropertyKey, TFallback = unknown> = TKey extends keyof TypeRegistry
|
|
17
|
+
? TypeRegistry[TKey]
|
|
18
|
+
: TFallback
|
|
19
|
+
|
|
20
|
+
/** 当前登录用户类型 */
|
|
21
|
+
type User = RegistryValue<'User'>
|
|
22
|
+
|
|
23
|
+
/** 登录请求类型 */
|
|
24
|
+
type LoginRequest = RegistryValue<'LoginRequest'>
|
|
25
|
+
|
|
26
|
+
/** 认证状态 */
|
|
27
|
+
type Status = typeof AuthStatus[number]
|
|
28
|
+
|
|
29
|
+
/** JWT 令牌对(通过业务 Provider 的 loginResponse 或 refreshResponse 方法转换后的结果) */
|
|
30
|
+
interface TokenPair {
|
|
31
|
+
/** 访问令牌 */
|
|
32
|
+
accessToken: string
|
|
33
|
+
/** 访问令牌绝对过期时间戳,单位毫秒 */
|
|
34
|
+
accessTokenExpiresAt: number
|
|
35
|
+
/** 刷新令牌 */
|
|
36
|
+
refreshToken: string
|
|
37
|
+
/** 刷新令牌绝对过期时间戳,单位毫秒 */
|
|
38
|
+
refreshTokenExpiresAt: number
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 认证结果
|
|
43
|
+
* @template TUser 用户类型
|
|
44
|
+
*/
|
|
45
|
+
interface AuthResult<TUser = User> extends TokenPair {
|
|
46
|
+
/** 可选用户信息 */
|
|
47
|
+
user?: TUser
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 加密持久化会话
|
|
52
|
+
* @template TUser 用户类型
|
|
53
|
+
*/
|
|
54
|
+
interface StoredRefreshSession<TUser = User> {
|
|
55
|
+
/** 刷新令牌 */
|
|
56
|
+
refreshToken: string
|
|
57
|
+
/** 刷新令牌绝对过期时间戳,单位毫秒 */
|
|
58
|
+
refreshTokenExpiresAt: number
|
|
59
|
+
/** 可选用户信息 */
|
|
60
|
+
user?: TUser
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** 可暴露给渲染进程的认证状态 */
|
|
64
|
+
interface State {
|
|
65
|
+
/** 当前认证状态 */
|
|
66
|
+
status: Status
|
|
67
|
+
/** 当前登录用户,不包含任何令牌 */
|
|
68
|
+
user?: User
|
|
69
|
+
/** 最近一次错误信息 */
|
|
70
|
+
error?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** 认证状态监听器 */
|
|
74
|
+
type StateListener = (state: State) => void
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export {}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
|
|
3
|
+
// 颜色
|
|
4
|
+
namespace XoColor {
|
|
5
|
+
|
|
6
|
+
// 控制台Ansi颜色
|
|
7
|
+
interface Ansi {
|
|
8
|
+
// 红色
|
|
9
|
+
red: string
|
|
10
|
+
// 绿色
|
|
11
|
+
green: string
|
|
12
|
+
// 黄色
|
|
13
|
+
yellow: string
|
|
14
|
+
// 青色
|
|
15
|
+
cyan: string
|
|
16
|
+
// 白色
|
|
17
|
+
white: string
|
|
18
|
+
// 灰色
|
|
19
|
+
gray: string
|
|
20
|
+
// 重置颜色
|
|
21
|
+
reset: string
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {}
|
|
File without changes
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
declare global {
|
|
2
|
+
|
|
3
|
+
// Electron Builder
|
|
4
|
+
namespace XoElectronBuilder {
|
|
5
|
+
|
|
6
|
+
// package.json 需要识别的字段
|
|
7
|
+
interface PackageJson {
|
|
8
|
+
// 应用版本
|
|
9
|
+
version?: string
|
|
10
|
+
// 版权信息
|
|
11
|
+
copyright?: string
|
|
12
|
+
// 发布说明
|
|
13
|
+
$releaseNotes?: ReleaseNotes
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// 发布说明
|
|
17
|
+
interface ReleaseNotes {
|
|
18
|
+
// 发布说明 版本
|
|
19
|
+
version?: string
|
|
20
|
+
// 发布说明章节
|
|
21
|
+
sections?: ReleaseNotesSection[]
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// 发布说明章节
|
|
25
|
+
interface ReleaseNotesSection {
|
|
26
|
+
// 章节标题
|
|
27
|
+
title?: string
|
|
28
|
+
// 章节内容
|
|
29
|
+
items?: string[]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export {}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const IpcInvokeErrorName = "IpcInvokeError";
|
|
2
|
+
/**
|
|
3
|
+
* IPC 调用错误结构
|
|
4
|
+
* @interface IpcInvokeErrorLike
|
|
5
|
+
*/
|
|
6
|
+
export interface IpcInvokeErrorLike {
|
|
7
|
+
kind?: typeof IpcInvokeErrorName;
|
|
8
|
+
name?: typeof IpcInvokeErrorName;
|
|
9
|
+
message: string;
|
|
10
|
+
code?: number;
|
|
11
|
+
data?: unknown;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* IPC 调用错误
|
|
15
|
+
* @class IpcInvokeError
|
|
16
|
+
*/
|
|
17
|
+
export declare class IpcInvokeError extends Error {
|
|
18
|
+
readonly kind = "IpcInvokeError";
|
|
19
|
+
readonly code: number;
|
|
20
|
+
readonly data?: unknown;
|
|
21
|
+
/**
|
|
22
|
+
* 构造函数
|
|
23
|
+
* @param {XoIpc.Result} result IPC 调用结果
|
|
24
|
+
*/
|
|
25
|
+
constructor(result: XoIpc.Result);
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 判断是否为 IPC 调用错误
|
|
29
|
+
* @param {unknown} error 错误
|
|
30
|
+
* @returns {boolean}
|
|
31
|
+
*/
|
|
32
|
+
export declare function isIpcInvokeError(error: unknown): error is IpcInvokeErrorLike;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 应用通道
|
|
3
|
+
* @class AppChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class AppChannels {
|
|
6
|
+
/** 获取应用信息 */
|
|
7
|
+
static getInfo: `Channel_${string}`;
|
|
8
|
+
/** 获取应用目录 */
|
|
9
|
+
static getPaths: `Channel_${string}`;
|
|
10
|
+
/** 获取通用设置 */
|
|
11
|
+
static getGeneralSettings: `Channel_${string}`;
|
|
12
|
+
/** 获取 APP 透明度 */
|
|
13
|
+
static getOpacity: `Channel_${string}`;
|
|
14
|
+
/** 设置 APP 透明度 */
|
|
15
|
+
static setOpacity: `Channel_${string}`;
|
|
16
|
+
/** 获取快捷窗口材质 */
|
|
17
|
+
static getWindowMaterial: `Channel_${string}`;
|
|
18
|
+
/** 设置快捷窗口材质 */
|
|
19
|
+
static setWindowMaterial: `Channel_${string}`;
|
|
20
|
+
/** 获取应用启动模式 */
|
|
21
|
+
static getAppLaunchMode: `Channel_${string}`;
|
|
22
|
+
/** 设置应用启动模式 */
|
|
23
|
+
static setAppLaunchMode: `Channel_${string}`;
|
|
24
|
+
/** 获取是否开机启动 */
|
|
25
|
+
static getLaunchOnStartup: `Channel_${string}`;
|
|
26
|
+
/** 设置是否开机启动 */
|
|
27
|
+
static setLaunchOnStartup: `Channel_${string}`;
|
|
28
|
+
/** 获取关闭窗口行为 */
|
|
29
|
+
static getWindowCloseBehavior: `Channel_${string}`;
|
|
30
|
+
/** 设置关闭窗口行为 */
|
|
31
|
+
static setWindowCloseBehavior: `Channel_${string}`;
|
|
32
|
+
/** 获取日志等级 */
|
|
33
|
+
static getLogLevel: `Channel_${string}`;
|
|
34
|
+
/** 设置日志等级 */
|
|
35
|
+
static setLogLevel: `Channel_${string}`;
|
|
36
|
+
/** 获取快捷键配置 */
|
|
37
|
+
static getShortcuts: `Channel_${string}`;
|
|
38
|
+
/** 设置快捷键配置 */
|
|
39
|
+
static setShortcuts: `Channel_${string}`;
|
|
40
|
+
/** 设置单个快捷键配置 */
|
|
41
|
+
static setShortcut: `Channel_${string}`;
|
|
42
|
+
/** 删除快捷键配置 */
|
|
43
|
+
static deleteShortcut: `Channel_${string}`;
|
|
44
|
+
/** 重定向指定窗口路由 */
|
|
45
|
+
static redirectWindowRoute: `Channel_${string}`;
|
|
46
|
+
/** 重定向主窗口路由 */
|
|
47
|
+
static redirectMainWindowRoute: `Channel_${string}`;
|
|
48
|
+
/** 重定向设置窗口路由 */
|
|
49
|
+
static redirectSettingWindowRoute: `Channel_${string}`;
|
|
50
|
+
/** 显示主窗口 */
|
|
51
|
+
static showMainWindow: `Channel_${string}`;
|
|
52
|
+
/** 显示设置窗口 */
|
|
53
|
+
static showSettingWindow: `Channel_${string}`;
|
|
54
|
+
/** 重启应用 */
|
|
55
|
+
static restart: `Channel_${string}`;
|
|
56
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* JWT 认证通道
|
|
3
|
+
* @class AuthChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class AuthChannels {
|
|
6
|
+
/** 获取认证状态 */
|
|
7
|
+
static getState: `Channel_${string}`;
|
|
8
|
+
/** 登录 */
|
|
9
|
+
static login: `Channel_${string}`;
|
|
10
|
+
/** 退出登录 */
|
|
11
|
+
static logout: `Channel_${string}`;
|
|
12
|
+
/** 监听认证状态 */
|
|
13
|
+
static onState: `Channel_${string}`;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 剪切板通道
|
|
3
|
+
* @class ClipboardChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class ClipboardChannels {
|
|
6
|
+
/** 读取文本 */
|
|
7
|
+
static readText: `Channel_${string}`;
|
|
8
|
+
/** 写入文本 */
|
|
9
|
+
static writeText: `Channel_${string}`;
|
|
10
|
+
/** 写入图片 */
|
|
11
|
+
static writeImage: `Channel_${string}`;
|
|
12
|
+
/** 清空剪切板 */
|
|
13
|
+
static clear: `Channel_${string}`;
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 渲染进程日志通道
|
|
3
|
+
* @class LogChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class LogChannels {
|
|
6
|
+
/** 写入 debug 日志 */
|
|
7
|
+
static debug: `Channel_${string}`;
|
|
8
|
+
/** 写入 info 日志 */
|
|
9
|
+
static info: `Channel_${string}`;
|
|
10
|
+
/** 写入 warn 日志 */
|
|
11
|
+
static warn: `Channel_${string}`;
|
|
12
|
+
/** 写入 error 日志 */
|
|
13
|
+
static error: `Channel_${string}`;
|
|
14
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 远程服务通道
|
|
3
|
+
* @class RemoteServiceChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class RemoteServiceChannels {
|
|
6
|
+
/** 获取远程服务状态 */
|
|
7
|
+
static getState: `Channel_${string}`;
|
|
8
|
+
/** 获取远程服务设置 */
|
|
9
|
+
static getSettings: `Channel_${string}`;
|
|
10
|
+
/** 设置远程服务用户设置 */
|
|
11
|
+
static setSettings: `Channel_${string}`;
|
|
12
|
+
/** 重置远程服务用户设置 */
|
|
13
|
+
static resetSettings: `Channel_${string}`;
|
|
14
|
+
/** 请求远程服务 API */
|
|
15
|
+
static request: `Channel_${string}`;
|
|
16
|
+
/** 监听远程服务状态 */
|
|
17
|
+
static onState: `Channel_${string}`;
|
|
18
|
+
/** 监听远程服务设置 */
|
|
19
|
+
static onSettings: `Channel_${string}`;
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 主题通道
|
|
3
|
+
* @class ThemeChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class ThemeChannels {
|
|
6
|
+
/** 获取主题状态 */
|
|
7
|
+
static getState: `Channel_${string}`;
|
|
8
|
+
/** 设置主题来源 */
|
|
9
|
+
static setSource: `Channel_${string}`;
|
|
10
|
+
/** 监听主题更新 */
|
|
11
|
+
static onUpdate: `Channel_${string}`;
|
|
12
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 更新器通道
|
|
3
|
+
* @class UpdaterChannels
|
|
4
|
+
*/
|
|
5
|
+
export declare class UpdaterChannels {
|
|
6
|
+
/** 检查更新 */
|
|
7
|
+
static checkForUpdates: `Channel_${string}`;
|
|
8
|
+
/** 下载更新 */
|
|
9
|
+
static downloadUpdate: `Channel_${string}`;
|
|
10
|
+
/** 取消下载 */
|
|
11
|
+
static cancelDownload: `Channel_${string}`;
|
|
12
|
+
/** 退出并安装更新 */
|
|
13
|
+
static quitAndInstall: `Channel_${string}`;
|
|
14
|
+
/** 获取更新器状态 */
|
|
15
|
+
static getState: `Channel_${string}`;
|
|
16
|
+
/** 获取更新器设置 */
|
|
17
|
+
static getSettings: `Channel_${string}`;
|
|
18
|
+
/** 设置更新器用户设置 */
|
|
19
|
+
static setSettings: `Channel_${string}`;
|
|
20
|
+
/** 重置更新器用户设置 */
|
|
21
|
+
static resetSettings: `Channel_${string}`;
|
|
22
|
+
/** 监听更新器状态 */
|
|
23
|
+
static onState: `Channel_${string}`;
|
|
24
|
+
/** 监听更新器设置 */
|
|
25
|
+
static onSettings: `Channel_${string}`;
|
|
26
|
+
}
|