delta-comic-core 0.0.8 → 0.0.9
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/dist/bundle.js +12 -2
- package/dist/bundle.js.map +1 -1
- package/dist/bundle.umd.cjs +1 -1
- package/dist/bundle.umd.cjs.map +1 -1
- package/dist/config/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/pack.tgz +0 -0
- package/dist/plugin/define.d.ts +1 -0
- package/dist/struct/item.d.ts +4 -1
- package/dist/utils/eventBus.d.ts +3 -0
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -4980,6 +4980,13 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4980
4980
|
super(e), this.name = e.name, this.index = e.index, this.$$plugin = e.$$plugin, this.$$meta = e.$$meta;
|
|
4981
4981
|
}
|
|
4982
4982
|
}, item_exports = /* @__PURE__ */ __export({ Item: () => Item }), Item = class extends Struct {
|
|
4983
|
+
static authorIcon = shallowReactive(/* @__PURE__ */ new Map());
|
|
4984
|
+
static getAuthorIcon(e, n) {
|
|
4985
|
+
return this.authorIcon.get(`${e}:${n}`);
|
|
4986
|
+
}
|
|
4987
|
+
static setAuthorIcon(e, n, r) {
|
|
4988
|
+
this.authorIcon.set(`${e}:${n}`, r);
|
|
4989
|
+
}
|
|
4983
4990
|
static is(e) {
|
|
4984
4991
|
return e instanceof this;
|
|
4985
4992
|
}
|
|
@@ -5175,7 +5182,7 @@ var ConfigPointer = class {
|
|
|
5175
5182
|
const appConfig = new ConfigPointer("core", {
|
|
5176
5183
|
recordHistory: {
|
|
5177
5184
|
type: "switch",
|
|
5178
|
-
defaultValue: !
|
|
5185
|
+
defaultValue: !0,
|
|
5179
5186
|
info: "记录历史记录"
|
|
5180
5187
|
},
|
|
5181
5188
|
showAIProject: {
|
|
@@ -5259,7 +5266,10 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5259
5266
|
for (let e of o.hotPage.topButton ?? []) ContentPage.setTopButton(r, e);
|
|
5260
5267
|
}
|
|
5261
5268
|
}
|
|
5262
|
-
if (s
|
|
5269
|
+
if (s) {
|
|
5270
|
+
if (s.edit && User.userEditorBase.set(r, s.edit), s.authorActions) for (let [e, n] of Object.entries(s.authorActions)) User.setAuthorActions(r, e, n);
|
|
5271
|
+
if (s.authorIcon) for (let [e, n] of Object.entries(s.authorIcon)) Item.setAuthorIcon(r, e, n);
|
|
5272
|
+
}
|
|
5263
5273
|
if (c) for (let [e, n] of Object.entries(c)) User.setSubscribes(r, e, n);
|
|
5264
5274
|
if (n.config) for (let e of n.config) useConfig().$resignerConfig(e);
|
|
5265
5275
|
return SharedFunction.call("addPlugin", n);
|