dsh-plugin 1.3.4 → 1.3.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.
Files changed (34) hide show
  1. package/README.en.md +38 -1
  2. package/README.md +38 -1
  3. package/client/client.js +449 -410
  4. package/client/client.js.map +1 -1
  5. package/lib/http/routes.js +9 -5
  6. package/lib/services/install/npm-resolve.js +3 -1
  7. package/lib/services/install/task-queue.js +29 -15
  8. package/lib/services/profile/profile.js +4 -3
  9. package/lib/services/settings.js +1 -1
  10. package/lib/types/services/install/install-types.d.ts +2 -2
  11. package/lib/types/services/install/npm-resolve.d.ts +3 -1
  12. package/lib/types/services/install/task-queue.d.ts +3 -3
  13. package/lib/types/services/settings.d.ts +2 -2
  14. package/package.json +1 -1
  15. package/src/client/components/PluginHubSection.tsx +13 -7
  16. package/src/client/components/modals/NotificationsModal.tsx +9 -3
  17. package/src/client/components/views/CustomInstallView.tsx +35 -14
  18. package/src/client/components/views/DiagnosticsView.tsx +7 -3
  19. package/src/client/components/views/SettingsView.tsx +20 -33
  20. package/src/client/hooks/useSettings.ts +3 -3
  21. package/src/client/hooks/useTaskQueue.ts +12 -6
  22. package/src/client/locales.ts +31 -15
  23. package/src/client/logic/failures.ts +3 -0
  24. package/src/client/logic/renderMarkdown.ts +9 -5
  25. package/src/client/logic/urls.ts +12 -1
  26. package/src/client/styles/CustomInstallView.module.css +25 -0
  27. package/src/client/styles/Dropdown.module.css +10 -0
  28. package/src/client/styles/Modal.module.css +11 -0
  29. package/src/server/http/routes.ts +9 -4
  30. package/src/server/services/install/install-types.ts +2 -2
  31. package/src/server/services/install/npm-resolve.ts +3 -1
  32. package/src/server/services/install/task-queue.ts +36 -20
  33. package/src/server/services/profile/profile.ts +4 -3
  34. package/src/server/services/settings.ts +3 -3
@@ -14,10 +14,10 @@ import { profileDirectory } from './profile/profile.ts'
14
14
  export interface HubSettings {
15
15
  /** 启动时检查目录插件更新,发现可更新时在通知中心提示(安装不自动进行) */
16
16
  checkUpdatesOnStart: boolean
17
- /** npm 镜像源 registry 地址(空串 = 官方 https://registry.npmjs.org) */
18
- npmRegistry: string
19
17
  /** HTTP(S) 代理地址,用于 npm / git / 目录请求(空串 = 直连) */
20
18
  proxy: string
19
+ /** npm 镜像源 registry 地址(空串 = 未配置,跟随用户本机 npm 配置,本插件不注入任何 registry) */
20
+ npmRegistry: string
21
21
  /** 启用命令行安装 NPM 包(默认开;关掉后输入 npm 包名安装被拦截) */
22
22
  enableNpmInstall: boolean
23
23
  /** 启用命令行安装 GitHub 源码(默认开;关掉后输入 GitHub 地址安装被拦截) */
@@ -30,8 +30,8 @@ export interface HubSettings {
30
30
 
31
31
  export const DEFAULT_SETTINGS: HubSettings = {
32
32
  checkUpdatesOnStart: true,
33
- npmRegistry: '',
34
33
  proxy: '',
34
+ npmRegistry: '',
35
35
  enableNpmInstall: true,
36
36
  enableGitInstall: true,
37
37
  enableDshInstall: true,