dshmarket 1.70.1 → 1.70.3
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 +18 -10
- package/README.zh.md +16 -9
- package/client/client.js +217 -241
- package/lib/catalog-npm.js +35 -0
- package/lib/hot.js +6 -1
- package/lib/official-desktop.js +4 -4
- package/lib/registry.js +39 -1
- package/lib/routes.js +228 -23
- package/lib/source-migration.js +111 -1
- package/lib/types/catalog-npm.d.ts +15 -0
- package/lib/types/hot.d.ts +7 -0
- package/lib/types/registry.d.ts +27 -0
- package/lib/types/source-migration.d.ts +89 -0
- package/lib/types/themes.d.ts +6 -0
- package/lib/types/updates.d.ts +7 -6
- package/lib/types/verify.d.ts +9 -2
- package/lib/verify.js +21 -1
- package/package.json +1 -1
- package/src/catalog-npm.ts +32 -0
- package/src/client/Market.module.css +9 -36
- package/src/client/MarketSection.tsx +154 -169
- package/src/client/locales.ts +18 -0
- package/src/client/market-data.ts +9 -2
- package/src/hot.ts +14 -1
- package/src/official-desktop.ts +4 -4
- package/src/registry.ts +54 -1
- package/src/routes.ts +226 -25
- package/src/source-migration.ts +135 -1
- package/src/themes.ts +6 -0
- package/src/updates.ts +7 -2
- package/src/verify.ts +21 -1
package/README.md
CHANGED
|
@@ -19,11 +19,25 @@ One-click themes: install, switch live, no restart.
|
|
|
19
19
|
|
|
20
20
|
## Install
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
- **Official DSH Desktop:** Open **Settings → Plugins** in the app, search for
|
|
23
|
+
`dshmarket`, and install it through the app's plugin manager. No command line
|
|
24
|
+
is needed.
|
|
25
|
+
- **Regular `dsh web`:** Run this command, then restart `dsh web`:
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
dsh plugin --profile web add dshmarket
|
|
29
|
+
```
|
|
25
30
|
|
|
26
|
-
|
|
31
|
+
- **Custom profile:** Replace `web` in that command with your host's actual
|
|
32
|
+
profile name: `dsh plugin --profile <profile> add dshmarket`. Follow your
|
|
33
|
+
host's restart instructions.
|
|
34
|
+
|
|
35
|
+
On a machine with DSH Desktop, running `dsh plugin --profile web add dshmarket`
|
|
36
|
+
may report success but installs the market into `profiles/web`, **not** the
|
|
37
|
+
profile used by the Desktop app. It will not appear in Desktop. Install through
|
|
38
|
+
the app's **Settings → Plugins** instead; Desktop's profile is managed by the app.
|
|
39
|
+
|
|
40
|
+
Once it is installed, open the **Plugins** page and pick the **Plugin Market**
|
|
27
41
|
tab next to **Installed** (dsh 0.2.1 and newer — plain `dsh web` included, no
|
|
28
42
|
desktop app needed). The market is also still a section of **Settings → Plugin
|
|
29
43
|
Market**: on dsh 0.2.0 and older that is the only way in, and from 0.2.1 the
|
|
@@ -34,12 +48,6 @@ other way, an installed plugin's **···** menu offers **View in Plugins** on
|
|
|
34
48
|
dsh 0.2.1+: it opens the host's own page for that plugin, which is the only
|
|
35
49
|
place its individual rows can be switched one by one.
|
|
36
50
|
|
|
37
|
-
A host that runs under another profile name takes the same command with that
|
|
38
|
-
name instead — `dsh plugin --profile <profile> add dshmarket`. On the official
|
|
39
|
-
DSH Desktop app, install from the app's own **Settings → Plugins** rather than
|
|
40
|
-
the command line: that profile belongs to the app's plugin manager, and the CLI
|
|
41
|
-
will not change it while the app is running.
|
|
42
|
-
|
|
43
51
|
**Requires dsh web 0.1.0-rc.6 or newer.** On an older host the market
|
|
44
52
|
disables itself and says so in the browser console rather than rendering
|
|
45
53
|
against primitives that are not there — if the Plugin Market entry never
|
package/README.zh.md
CHANGED
|
@@ -19,11 +19,23 @@
|
|
|
19
19
|
|
|
20
20
|
## 安装
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
- **官方 DSH Desktop 桌面端:** 在应用内打开 **设置 → 插件**,搜索
|
|
23
|
+
`dshmarket`,通过应用自己的插件管理器安装,无需命令行。
|
|
24
|
+
- **普通 `dsh web`:** 执行以下命令,然后重启 `dsh web`:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
dsh plugin --profile web add dshmarket
|
|
28
|
+
```
|
|
25
29
|
|
|
26
|
-
|
|
30
|
+
- **自定义 profile:** 把命令里的 `web` 换成宿主实际使用的 profile 名称:
|
|
31
|
+
`dsh plugin --profile <profile> add dshmarket`。之后按宿主的说明重启。
|
|
32
|
+
|
|
33
|
+
在装有 DSH Desktop 的电脑上执行 `dsh plugin --profile web add dshmarket`,
|
|
34
|
+
命令可能提示成功,但市场装进的是 `profiles/web`,**不是**桌面应用使用的
|
|
35
|
+
profile,因此不会出现在桌面端。请通过应用内的 **设置 → 插件** 安装;桌面端
|
|
36
|
+
的 profile 由应用自己的插件管理器管理。
|
|
37
|
+
|
|
38
|
+
装好后打开 **插件** 页,点 **已安装** 旁边的 **插件市场** 页签
|
|
27
39
|
(dsh 0.2.1 及以上;普通的 `dsh web` 就有,不需要桌面端)。市场仍然也是
|
|
28
40
|
**设置 → 插件市场** 里的一个分区:dsh 0.2.0 及以前只有这个入口,0.2.1 起设置
|
|
29
41
|
窗口挪进了账号菜单。想在任何地方一键进入的话,市场也可以在侧边栏放一行
|
|
@@ -31,11 +43,6 @@ dsh plugin --profile web add dshmarket
|
|
|
31
43
|
插件的 **···** 菜单里有 **在插件页查看**:它会打开宿主里这个插件自己的页面,
|
|
32
44
|
那里是唯一能逐个开关它的各个组件(行)的地方。
|
|
33
45
|
|
|
34
|
-
如果宿主用的不是 `web` 这个 profile,把它的名字写进命令即可:`dsh plugin
|
|
35
|
-
--profile <profile> add dshmarket`。官方 DSH Desktop 桌面端请在应用自己的
|
|
36
|
-
**设置 → 插件** 里安装,而不是用命令行:那个 profile 归应用的插件管理器所有,
|
|
37
|
-
应用运行期间命令行改不了它。
|
|
38
|
-
|
|
39
46
|
**需要 dsh web 0.1.0-rc.6 或更新版本。** 宿主太旧时市场会自我禁用,并在浏览器
|
|
40
47
|
控制台说明原因,而不是拿缺失的原语去渲染——如果哪里都没出现「插件市场」这
|
|
41
48
|
一项,通常就是这个原因。桌面端要留意:它可能内置了比 `npm` 装到的更旧的 dsh(#139)。
|