dsh-totonai 0.1.0 → 0.1.2
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 -1
- package/client/index.js +3 -3
- package/cordis.patch.yml +2 -2
- package/lib/index.bundle.js +9984 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +9974 -59
- package/package.json +7 -2
package/README.md
CHANGED
package/client/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// 手写单文件 bundle,无构建链,由 dsh web 客户端的 ModuleLoader 注入。
|
|
4
4
|
// 硬约束:任何异常只 console.warn,界面挂掉也不能影响 dsh 设置页本身。
|
|
5
5
|
window.__ModuleLoader__.load({
|
|
6
|
-
id: 'totonai',
|
|
6
|
+
id: 'dsh-totonai',
|
|
7
7
|
factory: (require) => {
|
|
8
8
|
const module = { exports: {} }
|
|
9
9
|
const React = require('react')
|
|
@@ -290,13 +290,13 @@ window.__ModuleLoader__.load({
|
|
|
290
290
|
]))
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
const name = '
|
|
293
|
+
const name = 'dsh-totonai'
|
|
294
294
|
// 用到 slots 服务必须先声明,否则 ctx.slots 读不到
|
|
295
295
|
const inject = ['slots']
|
|
296
296
|
function apply(ctx) {
|
|
297
297
|
try {
|
|
298
298
|
ctx.slots.inject('settings.section', () =>
|
|
299
|
-
ctx.slots.register({ name: 'settings.section', id: 'totonai', order: 30, label: () => 'ToTonAI' }, SettingsSection),
|
|
299
|
+
ctx.slots.register({ name: 'settings.section', id: 'dsh-totonai', order: 30, label: () => 'ToTonAI' }, SettingsSection),
|
|
300
300
|
)
|
|
301
301
|
} catch (error) {
|
|
302
302
|
console.warn('[totonai] 设置页注册失败', error)
|
package/cordis.patch.yml
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
- insert:
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
- id: dsh-totonai
|
|
3
|
+
name: dsh-totonai
|