dsh-pluginmarket-plus 0.0.0-stage → 0.2.0
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/LICENSE +21 -0
- package/README.md +78 -2
- package/client.js +2466 -0
- package/cordis.patch.yml +24 -0
- package/icon.svg +18 -0
- package/lib/index.js +1270 -0
- package/lib/refresh.js +186 -0
- package/lib/store.js +257 -0
- package/lib/updates.js +769 -0
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +79 -4
package/cordis.patch.yml
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# dsh-pluginmarket-plus —— 把插件市场索引缓存到本地
|
|
2
|
+
#
|
|
3
|
+
# 一个 profile 行:Host 半边负责抓取/落盘/定时刷新/本地镜像,Client 半边注册设置页。
|
|
4
|
+
# 面板上可改的字段都是 volatile,改完立即生效,不必重载插件。
|
|
5
|
+
- insert:
|
|
6
|
+
- id: pluginmarket-plus
|
|
7
|
+
name: 'dsh-pluginmarket-plus'
|
|
8
|
+
config:
|
|
9
|
+
# 是否按间隔自动刷新(默认开)。
|
|
10
|
+
autoRefresh: true
|
|
11
|
+
# 自动刷新间隔(小时),默认 4 小时。
|
|
12
|
+
refreshIntervalHours: 4
|
|
13
|
+
# 是否让「插件 → 发现」使用本地镜像(默认开;只替换已缓存成功的源)。
|
|
14
|
+
managePluginMarket: true
|
|
15
|
+
# 单次抓取超时(毫秒)。索引可能有几 MB,默认给到 2 分钟。
|
|
16
|
+
fetchTimeoutMs: 120000
|
|
17
|
+
# 单个索引正文上限(字节),默认 64 MiB。
|
|
18
|
+
maxBytes: 67108864
|
|
19
|
+
# 失败重试次数。
|
|
20
|
+
retries: 2
|
|
21
|
+
# 缓存目录,相对 profile 目录。
|
|
22
|
+
cacheDir: '.pluginmarket-plus'
|
|
23
|
+
# 索引源列表;留空则自动接管「发现」页当前配置的源。
|
|
24
|
+
sources: []
|
package/icon.svg
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" role="img" aria-label="Plugin market cache">
|
|
2
|
+
<defs>
|
|
3
|
+
<linearGradient id="pmpBg" x1="0" y1="0" x2="1" y2="1">
|
|
4
|
+
<stop offset="0" stop-color="#2F7CF6"/>
|
|
5
|
+
<stop offset="1" stop-color="#1450C8"/>
|
|
6
|
+
</linearGradient>
|
|
7
|
+
</defs>
|
|
8
|
+
<rect x="1" y="1" width="30" height="30" rx="8" fill="url(#pmpBg)"/>
|
|
9
|
+
<g fill="none" stroke="#FFFFFF" stroke-width="1.7" stroke-linecap="round" stroke-linejoin="round">
|
|
10
|
+
<ellipse cx="15" cy="10" rx="7.2" ry="3"/>
|
|
11
|
+
<path d="M7.8 10v9.2c0 1.66 3.22 3 7.2 3 1.05 0 2.05-.1 2.94-.29"/>
|
|
12
|
+
<path d="M7.8 14.6c0 1.66 3.22 3 7.2 3 .62 0 1.23-.04 1.8-.11"/>
|
|
13
|
+
</g>
|
|
14
|
+
<g>
|
|
15
|
+
<circle cx="22.6" cy="21.4" r="5.2" fill="#123C93"/>
|
|
16
|
+
<path d="M22.6 18.4v5.4M20.4 21.8l2.2 2.2 2.2-2.2" fill="none" stroke="#7CE0A0" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
17
|
+
</g>
|
|
18
|
+
</svg>
|