delta-comic-core 0.2.1 → 0.3.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/dist/bundle.cjs +3 -3
- package/dist/bundle.cjs.map +1 -1
- package/dist/bundle.js +167 -68
- package/dist/bundle.js.map +1 -1
- package/dist/bundle2.cjs +1 -1
- package/dist/bundle2.cjs.map +1 -1
- package/dist/bundle2.js +4 -4
- package/dist/bundle2.js.map +1 -1
- package/dist/lib/components/image.vue.d.ts +1101 -6
- package/dist/lib/index.d.ts +1473 -12
- package/dist/lib/plugin/define.d.ts +27 -3
- package/dist/lib/plugin/index.d.ts +25 -0
- package/dist/lib/struct/content.d.ts +16 -29
- package/dist/lib/struct/item.d.ts +18 -2
- package/dist/lib/utils/data.d.ts +1 -1
- package/dist/lib/utils/eventBus.d.ts +3 -1
- package/dist/pack.tgz +0 -0
- package/dist/vite/index.d.ts +9 -2
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -436,8 +436,8 @@ var routeProps = {
|
|
|
436
436
|
function route({ to: e, url: n, replace: r, $router: i }) {
|
|
437
437
|
e && i ? i[r ? "replace" : "push"](e) : n && (r ? location.replace(n) : location.href = n);
|
|
438
438
|
}
|
|
439
|
-
var [name$
|
|
440
|
-
name: name$
|
|
439
|
+
var [name$15, bem$14] = createNamespace("badge"), Badge = withInstall(defineComponent({
|
|
440
|
+
name: name$15,
|
|
441
441
|
props: {
|
|
442
442
|
dot: Boolean,
|
|
443
443
|
max: numericProp,
|
|
@@ -482,7 +482,7 @@ var [name$14, bem$14] = createNamespace("badge"), Badge = withInstall(defineComp
|
|
|
482
482
|
}
|
|
483
483
|
})), globalZIndex = 2e3, useGlobalZIndex = () => ++globalZIndex, setGlobalZIndex = (e) => {
|
|
484
484
|
globalZIndex = e;
|
|
485
|
-
}, [name$
|
|
485
|
+
}, [name$14, bem$13] = createNamespace("config-provider"), CONFIG_PROVIDER_KEY = Symbol(name$14), configProviderProps = {
|
|
486
486
|
tag: makeStringProp("div"),
|
|
487
487
|
theme: makeStringProp("light"),
|
|
488
488
|
zIndex: Number,
|
|
@@ -510,7 +510,7 @@ function syncThemeVarsOnRoot(e = {}, n = {}) {
|
|
|
510
510
|
});
|
|
511
511
|
}
|
|
512
512
|
defineComponent({
|
|
513
|
-
name: name$
|
|
513
|
+
name: name$14,
|
|
514
514
|
props: configProviderProps,
|
|
515
515
|
setup(e, { slots: n }) {
|
|
516
516
|
let r = computed(() => mapThemeVarsToCSSVars(extend({}, e.themeVars, e.theme === "dark" ? e.themeVarsDark : e.themeVarsLight)));
|
|
@@ -536,8 +536,8 @@ defineComponent({
|
|
|
536
536
|
}, { default: () => [n.default?.call(n)] });
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
|
-
var [name$
|
|
540
|
-
name: name$
|
|
539
|
+
var [name$13, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/"), Icon$1 = withInstall(defineComponent({
|
|
540
|
+
name: name$13,
|
|
541
541
|
props: {
|
|
542
542
|
dot: Boolean,
|
|
543
543
|
tag: makeStringProp("i"),
|
|
@@ -567,7 +567,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
|
|
|
567
567
|
}, null)] });
|
|
568
568
|
};
|
|
569
569
|
}
|
|
570
|
-
})), [name$
|
|
570
|
+
})), [name$12, bem$11] = createNamespace("loading"), SpinIcon = Array(12).fill(null).map((e, n) => createVNode("i", { class: bem$11("line", String(n + 1)) }, null)), CircularIcon = createVNode("svg", {
|
|
571
571
|
class: bem$11("circular"),
|
|
572
572
|
viewBox: "25 25 50 50"
|
|
573
573
|
}, [createVNode("circle", {
|
|
@@ -576,7 +576,7 @@ var [name$12, bem$12] = createNamespace("icon"), isImage = (e) => e?.includes("/
|
|
|
576
576
|
r: "20",
|
|
577
577
|
fill: "none"
|
|
578
578
|
}, null)]), Loading$1 = withInstall(defineComponent({
|
|
579
|
-
name: name$
|
|
579
|
+
name: name$12,
|
|
580
580
|
props: {
|
|
581
581
|
size: numericProp,
|
|
582
582
|
type: makeStringProp("circular"),
|
|
@@ -677,8 +677,8 @@ function useLazyRender(e) {
|
|
|
677
677
|
var useScopeId = () => {
|
|
678
678
|
let { scopeId: e } = getCurrentInstance()?.vnode || {};
|
|
679
679
|
return e ? { [e]: "" } : null;
|
|
680
|
-
}, [name$
|
|
681
|
-
name: name$
|
|
680
|
+
}, [name$11, bem$10] = createNamespace("overlay"), Overlay = withInstall(defineComponent({
|
|
681
|
+
name: name$11,
|
|
682
682
|
inheritAttrs: !1,
|
|
683
683
|
props: {
|
|
684
684
|
show: Boolean,
|
|
@@ -721,8 +721,8 @@ var useScopeId = () => {
|
|
|
721
721
|
destroyOnClose: Boolean,
|
|
722
722
|
safeAreaInsetTop: Boolean,
|
|
723
723
|
safeAreaInsetBottom: Boolean
|
|
724
|
-
}), [name$
|
|
725
|
-
name: name$
|
|
724
|
+
}), [name$10, bem$9] = createNamespace("popup"), Popup = withInstall(defineComponent({
|
|
725
|
+
name: name$10,
|
|
726
726
|
inheritAttrs: !1,
|
|
727
727
|
props: popupProps,
|
|
728
728
|
emits: [
|
|
@@ -916,8 +916,8 @@ function useVisibilityChange(e, n) {
|
|
|
916
916
|
};
|
|
917
917
|
onDeactivated(a), onBeforeUnmount(a), onMountedOrActivated(i);
|
|
918
918
|
}
|
|
919
|
-
var [name$
|
|
920
|
-
name: name$
|
|
919
|
+
var [name$9, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComponent({
|
|
920
|
+
name: name$9,
|
|
921
921
|
props: {
|
|
922
922
|
zIndex: numericProp,
|
|
923
923
|
position: makeStringProp("top"),
|
|
@@ -982,7 +982,7 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
982
982
|
style: f.value
|
|
983
983
|
}, [r.default?.call(r)])]);
|
|
984
984
|
}
|
|
985
|
-
})), [name$
|
|
985
|
+
})), [name$8, bem$7] = createNamespace("swipe"), swipeProps = {
|
|
986
986
|
loop: truthProp,
|
|
987
987
|
width: numericProp,
|
|
988
988
|
height: numericProp,
|
|
@@ -995,8 +995,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
995
995
|
indicatorColor: String,
|
|
996
996
|
showIndicators: truthProp,
|
|
997
997
|
stopPropagation: truthProp
|
|
998
|
-
}, SWIPE_KEY = Symbol(name$
|
|
999
|
-
name: name$
|
|
998
|
+
}, SWIPE_KEY = Symbol(name$8), Swipe = withInstall(defineComponent({
|
|
999
|
+
name: name$8,
|
|
1000
1000
|
props: swipeProps,
|
|
1001
1001
|
emits: [
|
|
1002
1002
|
"change",
|
|
@@ -1081,13 +1081,13 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1081
1081
|
}), W();
|
|
1082
1082
|
};
|
|
1083
1083
|
isHidden(i) ? nextTick().then(r) : r();
|
|
1084
|
-
}, J = () => K(s.active),
|
|
1085
|
-
!e.touchable || n.touches.length > 1 || (l.start(n), c = !1,
|
|
1086
|
-
},
|
|
1084
|
+
}, J = () => K(s.active), kl, Al = (n) => {
|
|
1085
|
+
!e.touchable || n.touches.length > 1 || (l.start(n), c = !1, kl = Date.now(), H(), k());
|
|
1086
|
+
}, jl = (r) => {
|
|
1087
1087
|
e.touchable && s.swiping && (l.move(r), S.value && (!e.loop && (s.active === 0 && h.value > 0 || s.active === p.value - 1 && h.value < 0) || (preventDefault(r, e.stopPropagation), O({ offset: h.value }), c ||= (n("dragStart", { index: b.value }), !0))));
|
|
1088
|
-
},
|
|
1088
|
+
}, Ml = () => {
|
|
1089
1089
|
if (!e.touchable || !s.swiping) return;
|
|
1090
|
-
let r = Date.now() -
|
|
1090
|
+
let r = Date.now() - kl, i = h.value / r;
|
|
1091
1091
|
if ((Math.abs(i) > .25 || Math.abs(h.value) > m.value / 2) && S.value) {
|
|
1092
1092
|
let n = e.vertical ? l.offsetY.value : l.offsetX.value, r = 0;
|
|
1093
1093
|
r = e.loop ? n > 0 ? h.value > 0 ? -1 : 1 : 0 : -Math[h.value > 0 ? "ceil" : "floor"](h.value / m.value), O({
|
|
@@ -1096,7 +1096,7 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1096
1096
|
});
|
|
1097
1097
|
} else h.value && O({ pace: 0 });
|
|
1098
1098
|
c = !1, s.swiping = !1, n("dragEnd", { index: b.value }), W();
|
|
1099
|
-
},
|
|
1099
|
+
}, Nl = (n, r = {}) => {
|
|
1100
1100
|
k(), l.reset(), doubleRaf(() => {
|
|
1101
1101
|
let i;
|
|
1102
1102
|
i = e.loop && n === p.value ? s.active === 0 ? 0 : n : n % p.value, r.immediate ? doubleRaf(() => {
|
|
@@ -1106,25 +1106,25 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1106
1106
|
emitChange: !0
|
|
1107
1107
|
});
|
|
1108
1108
|
});
|
|
1109
|
-
},
|
|
1109
|
+
}, Pl = (n, r) => {
|
|
1110
1110
|
let i = r === b.value;
|
|
1111
1111
|
return createVNode("i", {
|
|
1112
1112
|
style: i ? { backgroundColor: e.indicatorColor } : void 0,
|
|
1113
1113
|
class: bem$7("indicator", { active: i })
|
|
1114
1114
|
}, null);
|
|
1115
|
-
},
|
|
1115
|
+
}, Fl = () => {
|
|
1116
1116
|
if (r.indicator) return r.indicator({
|
|
1117
1117
|
active: b.value,
|
|
1118
1118
|
total: p.value
|
|
1119
1119
|
});
|
|
1120
|
-
if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(
|
|
1120
|
+
if (e.showIndicators && p.value > 1) return createVNode("div", { class: bem$7("indicators", { vertical: e.vertical }) }, [Array(p.value).fill("").map(Pl)]);
|
|
1121
1121
|
};
|
|
1122
1122
|
return useExpose({
|
|
1123
1123
|
prev: A,
|
|
1124
1124
|
next: z,
|
|
1125
1125
|
state: s,
|
|
1126
1126
|
resize: J,
|
|
1127
|
-
swipeTo:
|
|
1127
|
+
swipeTo: Nl
|
|
1128
1128
|
}), f({
|
|
1129
1129
|
size: m,
|
|
1130
1130
|
props: e,
|
|
@@ -1137,20 +1137,20 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1137
1137
|
() => e.height
|
|
1138
1138
|
], J), watch(usePageVisibility(), (e) => {
|
|
1139
1139
|
e === "visible" ? W() : H();
|
|
1140
|
-
}), onMounted(K), onActivated(() => K(s.active)), onPopupReopen(() => K(s.active)), onDeactivated(H), onBeforeUnmount(H), useEventListener("touchmove",
|
|
1140
|
+
}), onMounted(K), onActivated(() => K(s.active)), onPopupReopen(() => K(s.active)), onDeactivated(H), onBeforeUnmount(H), useEventListener("touchmove", jl, { target: o }), () => createVNode("div", {
|
|
1141
1141
|
ref: i,
|
|
1142
1142
|
class: bem$7()
|
|
1143
1143
|
}, [createVNode("div", {
|
|
1144
1144
|
ref: o,
|
|
1145
1145
|
style: C.value,
|
|
1146
1146
|
class: bem$7("track", { vertical: e.vertical }),
|
|
1147
|
-
onTouchstartPassive:
|
|
1148
|
-
onTouchend:
|
|
1149
|
-
onTouchcancel:
|
|
1150
|
-
}, [r.default?.call(r)]),
|
|
1147
|
+
onTouchstartPassive: Al,
|
|
1148
|
+
onTouchend: Ml,
|
|
1149
|
+
onTouchcancel: Ml
|
|
1150
|
+
}, [r.default?.call(r)]), Fl()]);
|
|
1151
1151
|
}
|
|
1152
|
-
})), [name$
|
|
1153
|
-
name: name$
|
|
1152
|
+
})), [name$7, bem$6] = createNamespace("tabs"), stdin_default$5 = defineComponent({
|
|
1153
|
+
name: name$7,
|
|
1154
1154
|
props: {
|
|
1155
1155
|
count: makeRequiredProp(Number),
|
|
1156
1156
|
inited: Boolean,
|
|
@@ -1182,7 +1182,7 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1182
1182
|
s(e.currentIndex);
|
|
1183
1183
|
}), useExpose({ swipeRef: i }), () => createVNode("div", { class: bem$6("content", { animated: e.animated || e.swipeable }) }, [o()]);
|
|
1184
1184
|
}
|
|
1185
|
-
}), [name$
|
|
1185
|
+
}), [name$6, bem$5] = createNamespace("tabs"), tabsProps = {
|
|
1186
1186
|
type: makeStringProp("line"),
|
|
1187
1187
|
color: String,
|
|
1188
1188
|
border: Boolean,
|
|
@@ -1204,8 +1204,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1204
1204
|
swipeThreshold: makeNumericProp(5),
|
|
1205
1205
|
titleActiveColor: String,
|
|
1206
1206
|
titleInactiveColor: String
|
|
1207
|
-
}, TABS_KEY = Symbol(name$
|
|
1208
|
-
name: name$
|
|
1207
|
+
}, TABS_KEY = Symbol(name$6), stdin_default$2 = defineComponent({
|
|
1208
|
+
name: name$6,
|
|
1209
1209
|
props: tabsProps,
|
|
1210
1210
|
emits: [
|
|
1211
1211
|
"change",
|
|
@@ -1247,14 +1247,14 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1247
1247
|
}
|
|
1248
1248
|
C.lineStyle = c;
|
|
1249
1249
|
});
|
|
1250
|
-
},
|
|
1250
|
+
}, Ol = (e) => {
|
|
1251
1251
|
let n = e < C.currentIndex ? -1 : 1;
|
|
1252
1252
|
for (; e >= 0 && e < b.length;) {
|
|
1253
1253
|
if (!b[e].disabled) return e;
|
|
1254
1254
|
e += n;
|
|
1255
1255
|
}
|
|
1256
1256
|
}, V = (r, i) => {
|
|
1257
|
-
let a =
|
|
1257
|
+
let a = Ol(r);
|
|
1258
1258
|
if (!isDef$1(a)) return;
|
|
1259
1259
|
let o = b[a], c = O(o, a), l = C.currentIndex !== null;
|
|
1260
1260
|
C.currentIndex !== a && (C.currentIndex = a, i || z(), B()), c !== e.active && (n("update:active", c), l && n("change", c, o.title)), s && !e.scrollspy && setRootScrollTop(Math.ceil(getElementTop(u.value) - A.value));
|
|
@@ -1286,24 +1286,24 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1286
1286
|
});
|
|
1287
1287
|
}, J = (e) => {
|
|
1288
1288
|
s = e.isFixed, n("scroll", e);
|
|
1289
|
-
},
|
|
1289
|
+
}, kl = (e) => {
|
|
1290
1290
|
nextTick(() => {
|
|
1291
1291
|
H(e), W(!0);
|
|
1292
1292
|
});
|
|
1293
|
-
},
|
|
1293
|
+
}, Al = () => {
|
|
1294
1294
|
for (let e = 0; e < b.length; e++) {
|
|
1295
1295
|
let { top: n } = useRect(b[e].$el);
|
|
1296
1296
|
if (n > M.value) return e === 0 ? 0 : e - 1;
|
|
1297
1297
|
}
|
|
1298
1298
|
return b.length - 1;
|
|
1299
|
-
},
|
|
1300
|
-
e.scrollspy && !o && V(
|
|
1301
|
-
},
|
|
1299
|
+
}, jl = () => {
|
|
1300
|
+
e.scrollspy && !o && V(Al());
|
|
1301
|
+
}, Ml = () => {
|
|
1302
1302
|
if (e.type === "line" && b.length) return createVNode("div", {
|
|
1303
1303
|
class: bem$5("line"),
|
|
1304
1304
|
style: C.lineStyle
|
|
1305
1305
|
}, null);
|
|
1306
|
-
},
|
|
1306
|
+
}, Nl = () => {
|
|
1307
1307
|
let { type: n, border: i, sticky: a } = e, o = [createVNode("div", {
|
|
1308
1308
|
ref: a ? void 0 : p,
|
|
1309
1309
|
class: [bem$5("wrap"), { [BORDER_TOP_BOTTOM]: n === "line" && i }]
|
|
@@ -1319,11 +1319,11 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1319
1319
|
}, [
|
|
1320
1320
|
r["nav-left"]?.call(r),
|
|
1321
1321
|
b.map((e) => e.renderTitle(K)),
|
|
1322
|
-
|
|
1322
|
+
Ml(),
|
|
1323
1323
|
r["nav-right"]?.call(r)
|
|
1324
1324
|
])]), r["nav-bottom"]?.call(r)];
|
|
1325
1325
|
return a ? createVNode("div", { ref: p }, [o]) : o;
|
|
1326
|
-
},
|
|
1326
|
+
}, Pl = () => {
|
|
1327
1327
|
B(), nextTick(() => {
|
|
1328
1328
|
var e;
|
|
1329
1329
|
z(!0), (e = m.value?.swipeRef.value) == null || e.resize();
|
|
@@ -1334,20 +1334,20 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1334
1334
|
e.duration,
|
|
1335
1335
|
e.lineWidth,
|
|
1336
1336
|
e.lineHeight
|
|
1337
|
-
], B), watch(windowWidth,
|
|
1337
|
+
], B), watch(windowWidth, Pl), watch(() => e.active, (e) => {
|
|
1338
1338
|
e !== k.value && H(e);
|
|
1339
1339
|
}), watch(() => b.length, () => {
|
|
1340
1340
|
C.inited && (H(e.active), B(), nextTick(() => {
|
|
1341
1341
|
z(!0);
|
|
1342
1342
|
}));
|
|
1343
1343
|
}), useExpose({
|
|
1344
|
-
resize:
|
|
1345
|
-
scrollTo:
|
|
1344
|
+
resize: Pl,
|
|
1345
|
+
scrollTo: kl
|
|
1346
1346
|
}), onActivated(B), onPopupReopen(B), onMountedOrActivated(() => {
|
|
1347
1347
|
H(e.active, !0), nextTick(() => {
|
|
1348
1348
|
C.inited = !0, p.value && (i = useRect(p.value).height), z(!0);
|
|
1349
1349
|
});
|
|
1350
|
-
}), useVisibilityChange(u, B), useEventListener("scroll",
|
|
1350
|
+
}), useVisibilityChange(u, B), useEventListener("scroll", jl, {
|
|
1351
1351
|
target: g,
|
|
1352
1352
|
passive: !0
|
|
1353
1353
|
}), S({
|
|
@@ -1366,7 +1366,7 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1366
1366
|
container: u.value,
|
|
1367
1367
|
offsetTop: A.value,
|
|
1368
1368
|
onScroll: J
|
|
1369
|
-
}, { default: () => [
|
|
1369
|
+
}, { default: () => [Nl()] }) : Nl() : null, createVNode(stdin_default$5, {
|
|
1370
1370
|
ref: m,
|
|
1371
1371
|
count: b.length,
|
|
1372
1372
|
inited: C.inited,
|
|
@@ -1381,8 +1381,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1381
1381
|
}), TAB_STATUS_KEY = Symbol(), ALL_TAB_STATUS_KEY = Symbol(), useAllTabStatus = () => inject(ALL_TAB_STATUS_KEY, null), useProvideTabStatus = (e) => {
|
|
1382
1382
|
let n = useAllTabStatus();
|
|
1383
1383
|
provide(TAB_STATUS_KEY, e), provide(ALL_TAB_STATUS_KEY, computed(() => (n == null || n.value) && e.value));
|
|
1384
|
-
}, [name$
|
|
1385
|
-
name: name$
|
|
1384
|
+
}, [name$5, bem$4] = createNamespace("tab"), TabTitle = defineComponent({
|
|
1385
|
+
name: name$5,
|
|
1386
1386
|
props: {
|
|
1387
1387
|
id: String,
|
|
1388
1388
|
dot: Boolean,
|
|
@@ -1430,8 +1430,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1430
1430
|
"data-allow-mismatch": "attribute"
|
|
1431
1431
|
}, [i()]);
|
|
1432
1432
|
}
|
|
1433
|
-
}), [name$
|
|
1434
|
-
name: name$
|
|
1433
|
+
}), [name$4, bem$3] = createNamespace("swipe-item"), SwipeItem = withInstall(defineComponent({
|
|
1434
|
+
name: name$4,
|
|
1435
1435
|
setup(e, { slots: n }) {
|
|
1436
1436
|
let r, i = reactive({
|
|
1437
1437
|
offset: 0,
|
|
@@ -1463,8 +1463,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1463
1463
|
style: c.value
|
|
1464
1464
|
}, [l.value ? n.default?.call(n) : null]);
|
|
1465
1465
|
}
|
|
1466
|
-
})), [name$
|
|
1467
|
-
name: name$
|
|
1466
|
+
})), [name$3, bem$2] = createNamespace("tab"), Tab = withInstall(defineComponent({
|
|
1467
|
+
name: name$3,
|
|
1468
1468
|
props: extend({}, routeProps, {
|
|
1469
1469
|
dot: Boolean,
|
|
1470
1470
|
name: numericProp,
|
|
@@ -1556,8 +1556,8 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1556
1556
|
contentDraggable: truthProp,
|
|
1557
1557
|
lockScroll: Boolean,
|
|
1558
1558
|
safeAreaInsetBottom: truthProp
|
|
1559
|
-
}, [name$
|
|
1560
|
-
name: name$
|
|
1559
|
+
}, [name$2, bem$1] = createNamespace("floating-panel"), FloatingPanel = withInstall(defineComponent({
|
|
1560
|
+
name: name$2,
|
|
1561
1561
|
props: floatingPanelProps,
|
|
1562
1562
|
emits: ["heightChange", "update:height"],
|
|
1563
1563
|
setup(e, { emit: n, slots: r }) {
|
|
@@ -1602,12 +1602,12 @@ var [name$8, bem$8] = createNamespace("sticky"), Sticky = withInstall(defineComp
|
|
|
1602
1602
|
ref: s
|
|
1603
1603
|
}, [r.default?.call(r)])]);
|
|
1604
1604
|
}
|
|
1605
|
-
})), [name, bem, t] = createNamespace("pull-refresh"), DEFAULT_HEAD_HEIGHT = 50, TEXT_STATUS = [
|
|
1605
|
+
})), [name$1, bem, t] = createNamespace("pull-refresh"), DEFAULT_HEAD_HEIGHT = 50, TEXT_STATUS = [
|
|
1606
1606
|
"pulling",
|
|
1607
1607
|
"loosing",
|
|
1608
1608
|
"success"
|
|
1609
1609
|
], PullRefresh = withInstall(defineComponent({
|
|
1610
|
-
name,
|
|
1610
|
+
name: name$1,
|
|
1611
1611
|
props: {
|
|
1612
1612
|
disabled: Boolean,
|
|
1613
1613
|
modelValue: Boolean,
|
|
@@ -4958,6 +4958,8 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4958
4958
|
ContentVideoPage: () => ContentVideoPage
|
|
4959
4959
|
}), ContentPage = class {
|
|
4960
4960
|
static viewLayout = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/viewLayout");
|
|
4961
|
+
static share = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/share");
|
|
4962
|
+
static shareToken = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/shareToken");
|
|
4961
4963
|
static tabbar = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/tabbar");
|
|
4962
4964
|
static addTabbar(e, ...n) {
|
|
4963
4965
|
this.tabbar.set(e, (this.tabbar.get(e) ?? []).concat(n));
|
|
@@ -4966,7 +4968,6 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
4966
4968
|
static addCategories(e, ...n) {
|
|
4967
4969
|
this.categories.set(e, (this.categories.get(e) ?? []).concat(n));
|
|
4968
4970
|
}
|
|
4969
|
-
static itemCard = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/itemCard");
|
|
4970
4971
|
static contentPage = useGlobalVar(SourcedKeyMap.create(), "uni/contentPage/contentPage");
|
|
4971
4972
|
static levelboard = useGlobalVar(shallowReactive(/* @__PURE__ */ new Map()), "uni/contentPage/levelboard");
|
|
4972
4973
|
static addLevelboard(e, n) {
|
|
@@ -5012,6 +5013,7 @@ var Ce = ["data-index"], U = /* @__PURE__ */ defineComponent({
|
|
|
5012
5013
|
return n(e);
|
|
5013
5014
|
}
|
|
5014
5015
|
static authorIcon = SourcedKeyMap.create();
|
|
5016
|
+
static itemCard = useGlobalVar(SourcedKeyMap.create(), "uni/item/itemCard");
|
|
5015
5017
|
static is(e) {
|
|
5016
5018
|
return e instanceof this;
|
|
5017
5019
|
}
|
|
@@ -5371,8 +5373,8 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5371
5373
|
if (isFunction(e)) var n = e(window.$$safe$$);
|
|
5372
5374
|
else var n = e;
|
|
5373
5375
|
console.log("[definePlugin] new plugin defining...", n);
|
|
5374
|
-
let { name: r, content: i, image: a, search: o, user: s, subscribe: c } = n;
|
|
5375
|
-
if (i) for (let [e, { commentRow: n, contentPage: r, itemCard: a, layout: o, itemTranslator: s }] of Object.entries(i)) o && ContentPage.viewLayout.set(e, o), a &&
|
|
5376
|
+
let { name: r, content: i, image: a, search: o, user: s, subscribe: c, share: l } = n;
|
|
5377
|
+
if (i) for (let [e, { commentRow: n, contentPage: r, itemCard: a, layout: o, itemTranslator: s }] of Object.entries(i)) o && ContentPage.viewLayout.set(e, o), a && Item.itemCard.set(e, a), r && ContentPage.contentPage.set(e, r), n && Comment.commentRow.set(e, n), s && Item.itemTranslator.set(e, s);
|
|
5376
5378
|
if (a) {
|
|
5377
5379
|
if (a.forks) for (let [e, n] of Object.entries(a.forks)) Image$1.fork.set([r, e], n);
|
|
5378
5380
|
if (a.process) for (let [e, n] of Object.entries(a.process)) Image$1.processInstances.set([r, e], n);
|
|
@@ -5392,8 +5394,105 @@ const appConfig = new ConfigPointer("core", {
|
|
|
5392
5394
|
}
|
|
5393
5395
|
if (c) for (let [e, n] of Object.entries(c)) User.subscribes.set([r, e], n);
|
|
5394
5396
|
if (n.config) for (let e of n.config) useConfig().$resignerConfig(e);
|
|
5397
|
+
if (l) {
|
|
5398
|
+
for (let e of l.initiative ?? []) ContentPage.share.set([r, e.key], e);
|
|
5399
|
+
for (let e of l.tokenListen ?? []) ContentPage.shareToken.set([r, e.key], e);
|
|
5400
|
+
}
|
|
5395
5401
|
return SharedFunction.call("addPlugin", n);
|
|
5396
|
-
},
|
|
5402
|
+
}, decodePluginMeta = (e) => ({
|
|
5403
|
+
name: {
|
|
5404
|
+
display: e["name:display"],
|
|
5405
|
+
id: e["name:id"]
|
|
5406
|
+
},
|
|
5407
|
+
author: e.author ?? "",
|
|
5408
|
+
description: e.description,
|
|
5409
|
+
require: (e.require ? isString(e.require) ? [e.require] : e.require : []).map((e) => {
|
|
5410
|
+
let [n, r] = e.split(":");
|
|
5411
|
+
return {
|
|
5412
|
+
id: n,
|
|
5413
|
+
download: r
|
|
5414
|
+
};
|
|
5415
|
+
}),
|
|
5416
|
+
version: {
|
|
5417
|
+
plugin: e.version.split("/")[0],
|
|
5418
|
+
supportCore: e.version.split("/")[1]
|
|
5419
|
+
}
|
|
5420
|
+
}), declareDependType = (e) => Symbol.for(`expose:${e}`), requireDepend = (e) => _pluginExposes.get(e), _pluginExposes = /* @__PURE__ */ new Map(), coreModule = declareDependType("core"), _ = void 0;
|
|
5421
|
+
var package_default = {
|
|
5422
|
+
name: "delta-comic-core",
|
|
5423
|
+
version: "0.3.0",
|
|
5424
|
+
description: "我曾亲眼见证神的熟视无睹.",
|
|
5425
|
+
homepage: "https://github.com/wenxig/delta-comic-core",
|
|
5426
|
+
repository: {
|
|
5427
|
+
type: "git",
|
|
5428
|
+
url: "https://github.com/wenxig/delta-comic-core.git"
|
|
5429
|
+
},
|
|
5430
|
+
license: "AGPL-3.0-only",
|
|
5431
|
+
type: "module",
|
|
5432
|
+
scripts: { build: "vite build && pnpm pack --out ./dist/pack.tgz" },
|
|
5433
|
+
dependencies: {
|
|
5434
|
+
"@capacitor/status-bar": "^7.0.3",
|
|
5435
|
+
"@lhlyu/vue-virtual-waterfall": "^1.0.8",
|
|
5436
|
+
"@vant/use": "^1.6.0",
|
|
5437
|
+
"@vicons/antd": "^0.13.0",
|
|
5438
|
+
"@vicons/material": "^0.13.0",
|
|
5439
|
+
"@vueuse/core": "14.0.0",
|
|
5440
|
+
dayjs: "^1.11.18",
|
|
5441
|
+
mitt: "^3.0.1",
|
|
5442
|
+
"tailwindcss-safe-area-capacitor": "^0.5.1",
|
|
5443
|
+
vidstack: "^1.12.13"
|
|
5444
|
+
},
|
|
5445
|
+
peerDependencies: {
|
|
5446
|
+
axios: "^1.12.2",
|
|
5447
|
+
"crypto-js": "4.2.0",
|
|
5448
|
+
"es-toolkit": "^1.40.0",
|
|
5449
|
+
"motion-v": "1.7.3",
|
|
5450
|
+
"naive-ui": "2.43.1",
|
|
5451
|
+
pinia: "^3.0.3",
|
|
5452
|
+
vant: "4.9.21",
|
|
5453
|
+
vue: "3.5.22",
|
|
5454
|
+
"vue-router": "4.6.3"
|
|
5455
|
+
},
|
|
5456
|
+
devDependencies: {
|
|
5457
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
5458
|
+
"@types/crypto-js": "^4.2.2",
|
|
5459
|
+
"@types/node": "^24.8.1",
|
|
5460
|
+
"@vitejs/plugin-vue": "^6.0.1",
|
|
5461
|
+
"@vitejs/plugin-vue-jsx": "^5.1.1",
|
|
5462
|
+
browserslist: "^4.26.3",
|
|
5463
|
+
lightningcss: "^1.30.2",
|
|
5464
|
+
tailwindcss: "^4.1.14",
|
|
5465
|
+
"unplugin-vue-components": "30.0.0",
|
|
5466
|
+
vite: "npm:rolldown-vite@^7.1.20",
|
|
5467
|
+
"vite-plugin-dts": "^4.5.4",
|
|
5468
|
+
"vue-component-type-helpers": "^3.1.1"
|
|
5469
|
+
},
|
|
5470
|
+
files: ["dist"],
|
|
5471
|
+
main: "./dist/bundle.js",
|
|
5472
|
+
module: "./dist/bundle.js",
|
|
5473
|
+
exports: {
|
|
5474
|
+
".": {
|
|
5475
|
+
import: "./dist/bundle.js",
|
|
5476
|
+
require: "./dist/bundle.cjs",
|
|
5477
|
+
types: "./dist/lib/index.d.ts"
|
|
5478
|
+
},
|
|
5479
|
+
"./vite": {
|
|
5480
|
+
import: "./dist/bundle2.js",
|
|
5481
|
+
require: "./dist/bundle2.cjs",
|
|
5482
|
+
types: "./dist/vite/index.d.ts"
|
|
5483
|
+
},
|
|
5484
|
+
"./style.css": "./dist/bundle.css"
|
|
5485
|
+
},
|
|
5486
|
+
pnpm: {
|
|
5487
|
+
overrides: { vite: "npm:rolldown-vite@^7.1.17" },
|
|
5488
|
+
onlyBuiltDependencies: [
|
|
5489
|
+
"@parcel/watcher",
|
|
5490
|
+
"@tailwindcss/oxide",
|
|
5491
|
+
"esbuild"
|
|
5492
|
+
]
|
|
5493
|
+
}
|
|
5494
|
+
};
|
|
5495
|
+
const Comp = {
|
|
5397
5496
|
Await: await_default,
|
|
5398
5497
|
Loading: loading_default,
|
|
5399
5498
|
Content: content_default,
|
|
@@ -5416,7 +5515,7 @@ const Store = {
|
|
|
5416
5515
|
useConfig,
|
|
5417
5516
|
appConfig,
|
|
5418
5517
|
ConfigPointer
|
|
5419
|
-
};
|
|
5420
|
-
export { Comp, Store, Utils, _, _pluginExposes, coreModule, declareDependType, definePlugin, requireDepend, uni };
|
|
5518
|
+
}, version = package_default.version;
|
|
5519
|
+
export { Comp, Store, Utils, _, _pluginExposes, coreModule, declareDependType, decodePluginMeta, definePlugin, requireDepend, uni, version };
|
|
5421
5520
|
|
|
5422
5521
|
//# sourceMappingURL=bundle.js.map
|