karin-plugin-mys-core 1.0.25 → 1.0.27
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/lib/apps/MiHoYoLogin.js +4 -4
- package/lib/apps/MysDevice.js +2 -2
- package/lib/apps/UIDManage.js +4 -4
- package/lib/{chunk-XSW4HNMM.js → chunk-4HJNTODO.js} +1 -1
- package/lib/{chunk-AVUQGP7L.js → chunk-6QS5SG35.js} +2 -2
- package/lib/{chunk-QZUNBUDC.js → chunk-7DVGA2JO.js} +4 -4
- package/lib/{chunk-A4WGB4ID.js → chunk-MSOQW3UL.js} +15 -6
- package/lib/core/index.js +1 -1
- package/lib/exports/config/index.d.ts +1 -1
- package/lib/exports/database/index.d.ts +2 -2
- package/lib/exports/database/index.js +1 -1
- package/lib/exports/mys/index.d.ts +1 -1
- package/lib/exports/mys/index.js +2 -2
- package/lib/exports/render/index.js +1 -1
- package/lib/{mysUserInfo-CYNdwJxY.d.ts → mysUserInfo-D0yyoCGB.d.ts} +1 -1
- package/lib/web.config.js +1 -1
- package/package.json +1 -1
- package/resources/styles/karin-plugin-mys-core.css +12 -18
package/lib/apps/MiHoYoLogin.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShowBindAccountCmdFunc
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-6QS5SG35.js";
|
|
4
|
+
import "../chunk-7DVGA2JO.js";
|
|
5
5
|
import {
|
|
6
6
|
UserInfo,
|
|
7
7
|
fetchQRcode,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
getTokenByGameToken,
|
|
10
10
|
getUserFullInfo,
|
|
11
11
|
queryQRcode
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-4HJNTODO.js";
|
|
13
13
|
import "../chunk-5LRGHP36.js";
|
|
14
14
|
import "../chunk-HI6OZTI2.js";
|
|
15
15
|
import "../chunk-BLE3V6QR.js";
|
|
16
|
-
import "../chunk-
|
|
16
|
+
import "../chunk-MSOQW3UL.js";
|
|
17
17
|
import {
|
|
18
18
|
common_exports
|
|
19
19
|
} from "../chunk-RX4VMVAI.js";
|
package/lib/apps/MysDevice.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeviceInfo,
|
|
3
3
|
UserInfo
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-4HJNTODO.js";
|
|
5
5
|
import "../chunk-5LRGHP36.js";
|
|
6
6
|
import "../chunk-HI6OZTI2.js";
|
|
7
7
|
import "../chunk-BLE3V6QR.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-MSOQW3UL.js";
|
|
9
9
|
import "../chunk-RX4VMVAI.js";
|
|
10
10
|
import "../chunk-SHLPPEAY.js";
|
|
11
11
|
import "../chunk-MLKGABMK.js";
|
package/lib/apps/UIDManage.js
CHANGED
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
ShowBindAccountCmdFunc,
|
|
6
6
|
UnbindAccount,
|
|
7
7
|
UnbindUID
|
|
8
|
-
} from "../chunk-
|
|
9
|
-
import "../chunk-
|
|
10
|
-
import "../chunk-
|
|
8
|
+
} from "../chunk-6QS5SG35.js";
|
|
9
|
+
import "../chunk-7DVGA2JO.js";
|
|
10
|
+
import "../chunk-4HJNTODO.js";
|
|
11
11
|
import "../chunk-5LRGHP36.js";
|
|
12
12
|
import "../chunk-HI6OZTI2.js";
|
|
13
13
|
import "../chunk-BLE3V6QR.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-MSOQW3UL.js";
|
|
15
15
|
import "../chunk-RX4VMVAI.js";
|
|
16
16
|
import "../chunk-SHLPPEAY.js";
|
|
17
17
|
import "../chunk-MLKGABMK.js";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
DefaultLayoutComponent,
|
|
3
3
|
React,
|
|
4
4
|
ReactRender
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-7DVGA2JO.js";
|
|
6
6
|
import {
|
|
7
7
|
MysGame,
|
|
8
8
|
UserInfo
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-4HJNTODO.js";
|
|
10
10
|
import {
|
|
11
11
|
dir
|
|
12
12
|
} from "./chunk-SHLPPEAY.js";
|
|
@@ -25,25 +25,25 @@ var DefaultLayoutComponent = ({
|
|
|
25
25
|
id: "container"
|
|
26
26
|
},
|
|
27
27
|
children,
|
|
28
|
-
/* @__PURE__ */ React.createElement("div", { className: "absolute bottom-0 left-0 flex w-full items-center justify-center gap-
|
|
28
|
+
/* @__PURE__ */ React.createElement("div", { className: "absolute bottom-0 left-0 flex w-full items-center justify-center gap-3 pt-2 text-sm bg-black/20" }, mysPlugin && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
29
29
|
"img",
|
|
30
30
|
{
|
|
31
31
|
src: `${mysPlugin.logoPath}`,
|
|
32
32
|
className: "h-6 w-6 rounde"
|
|
33
33
|
}
|
|
34
|
-
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "KARIN-MYS-PLUGIN"), /* @__PURE__ */ React.createElement("div", { className: "flex items-baseline gap-0.5" }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, mysPlugin.name), /* @__PURE__ */ React.createElement("strong", { className: "text-
|
|
34
|
+
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "KARIN-MYS-PLUGIN"), /* @__PURE__ */ React.createElement("div", { className: `flex ${mysPlugin.version.length > 8 ? "flex-col" : "items-baseline gap-0.5"}` }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, mysPlugin.name), /* @__PURE__ */ React.createElement("strong", { className: "text-[8px] font-bold text-[#f2c06f]" }, "v", mysPlugin.version)))), /* @__PURE__ */ React.createElement("div", { className: "h-8 w-px bg-gray-600" })), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
35
35
|
"img",
|
|
36
36
|
{
|
|
37
37
|
src: `${dir.pluginDir}/resources/image/mys-core-logo.webp`,
|
|
38
38
|
className: "h-6 w-6 rounded-sm"
|
|
39
39
|
}
|
|
40
|
-
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "KARIN-PLUGIN"), /* @__PURE__ */ React.createElement("div", { className: "flex items-baseline gap-0.5" }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, "MysCore"), /* @__PURE__ */ React.createElement("strong", { className: "text-
|
|
40
|
+
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "KARIN-PLUGIN"), /* @__PURE__ */ React.createElement("div", { className: `flex ${dir.version.length > 8 ? "flex-col" : "items-baseline gap-0.5"}` }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, "MysCore"), /* @__PURE__ */ React.createElement("strong", { className: "text-[8px] font-bold text-[#f2c06f]" }, "v", dir.version)))), /* @__PURE__ */ React.createElement("div", { className: "h-8 w-px bg-gray-600" }), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
41
41
|
"img",
|
|
42
42
|
{
|
|
43
43
|
src: `${dir.pluginDir}/resources/image/frame-logo.webp`,
|
|
44
44
|
className: "h-6 w-6 rounded-sm"
|
|
45
45
|
}
|
|
46
|
-
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "IS DRIVEN BY"), /* @__PURE__ */ React.createElement("div", { className: "flex items-baseline gap-
|
|
46
|
+
), /* @__PURE__ */ React.createElement("div", { className: "flex flex-col" }, /* @__PURE__ */ React.createElement("span", { className: "text-[5px] font-bold leading-none text-black" }, "IS DRIVEN BY"), /* @__PURE__ */ React.createElement("div", { className: `flex ${karinVersion.length > 8 ? "flex-col" : "items-baseline gap-0.5"}` }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, "Karin"), /* @__PURE__ */ React.createElement("strong", { className: "text-[8px] font-bold text-[#f2c06f]" }, "v", karinVersion)))))
|
|
47
47
|
);
|
|
48
48
|
};
|
|
49
49
|
|
|
@@ -423,15 +423,24 @@ var Sqlite3Static = new class Sqlite3Static2 {
|
|
|
423
423
|
...option
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
ArrayColumn = (key, fn) => ({
|
|
426
|
+
ArrayColumn = (key, split, fn) => ({
|
|
427
427
|
key,
|
|
428
428
|
type: "array" /* Array */,
|
|
429
429
|
Option: {
|
|
430
430
|
type: DataTypes.STRING,
|
|
431
431
|
defaultValue: [].join(","),
|
|
432
432
|
get() {
|
|
433
|
-
|
|
434
|
-
|
|
433
|
+
let data = this.getDataValue(key);
|
|
434
|
+
if (split) {
|
|
435
|
+
return new DatabaseArray(data.split(",").filter(Boolean));
|
|
436
|
+
} else {
|
|
437
|
+
try {
|
|
438
|
+
data = JSON.parse(data) || [];
|
|
439
|
+
} catch (e) {
|
|
440
|
+
data = [];
|
|
441
|
+
}
|
|
442
|
+
return new DatabaseArray(data);
|
|
443
|
+
}
|
|
435
444
|
},
|
|
436
445
|
set(data) {
|
|
437
446
|
const setData = (fn ? fn(data) : data) || [];
|
|
@@ -634,9 +643,9 @@ var MysUserInfoTable = createTable(
|
|
|
634
643
|
var MysUserInfoDB = await MysUserInfoTable.init(
|
|
635
644
|
[
|
|
636
645
|
Database.PkColumn("userId", "STRING"),
|
|
637
|
-
Database.ArrayColumn("ltuids"),
|
|
638
|
-
Database.ArrayColumn("stuids"),
|
|
639
|
-
Database.ArrayColumn("deviceList")
|
|
646
|
+
Database.ArrayColumn("ltuids", true),
|
|
647
|
+
Database.ArrayColumn("stuids", true),
|
|
648
|
+
Database.ArrayColumn("deviceList", true)
|
|
640
649
|
]
|
|
641
650
|
);
|
|
642
651
|
|
package/lib/core/index.js
CHANGED
|
@@ -3,7 +3,7 @@ type PathImpl<T, Key extends keyof T> = Key extends string | number ? T[Key] ext
|
|
|
3
3
|
type Path<T> = PathImpl<T, keyof T> | keyof T;
|
|
4
4
|
type PathValue<T, P> = P extends keyof T ? T[P] : P extends `${infer K}.${infer Rest}` ? K extends keyof T ? PathValue<T[K], Rest> : {
|
|
5
5
|
[Key in keyof T]: ToString<Key> extends K ? PathValue<T[Key], Rest> : never;
|
|
6
|
-
}[keyof T] :
|
|
6
|
+
}[keyof T] : T[P];
|
|
7
7
|
declare class Config<C extends {
|
|
8
8
|
[key: string]: any;
|
|
9
9
|
}> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as DatabaseType, a as DatabaseClassInstance, b as Dialect, c as DatabaseClassStatic, C as ColumnOption, d as ColumnOptionType, M as ModelAttributes, e as DatabaseReturn, V as ValidateSchema, f as MysDeviceInfoTableType, B as BaseUserInfoTableType, g as BaseGameUIDInfoTableType } from '../../mysUserInfo-
|
|
2
|
-
export { k as BindUidsItemType, h as DatabaseArray, i as MysDeviceInfoDatabaseBaseType, j as MysDeviceInfoDatabaseIdFpType, U as UidPermission } from '../../mysUserInfo-
|
|
1
|
+
import { D as DatabaseType, a as DatabaseClassInstance, b as Dialect, c as DatabaseClassStatic, C as ColumnOption, d as ColumnOptionType, M as ModelAttributes, e as DatabaseReturn, V as ValidateSchema, f as MysDeviceInfoTableType, B as BaseUserInfoTableType, g as BaseGameUIDInfoTableType } from '../../mysUserInfo-D0yyoCGB.js';
|
|
2
|
+
export { k as BindUidsItemType, h as DatabaseArray, i as MysDeviceInfoDatabaseBaseType, j as MysDeviceInfoDatabaseIdFpType, U as UidPermission } from '../../mysUserInfo-D0yyoCGB.js';
|
|
3
3
|
import { DataTypes, ModelAttributeColumnOptions, Model, ModelStatic } from 'sequelize';
|
|
4
4
|
import { a as MysAccountInfoTableType } from '../../mysAccountInfo-B7u5Sl8f.js';
|
|
5
5
|
export { M as MysAccountType } from '../../mysAccountInfo-B7u5Sl8f.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { M as MysAccountType, a as MysAccountInfoTableType } from '../../mysAccountInfo-B7u5Sl8f.js';
|
|
2
2
|
import { SendMessage } from 'node-karin';
|
|
3
3
|
import { AxiosRequestConfig, AxiosResponse } from 'node-karin/axios';
|
|
4
|
-
import { i as MysDeviceInfoDatabaseBaseType, j as MysDeviceInfoDatabaseIdFpType, f as MysDeviceInfoTableType, B as BaseUserInfoTableType, e as DatabaseReturn, D as DatabaseType, h as DatabaseArray, U as UidPermission, g as BaseGameUIDInfoTableType } from '../../mysUserInfo-
|
|
4
|
+
import { i as MysDeviceInfoDatabaseBaseType, j as MysDeviceInfoDatabaseIdFpType, f as MysDeviceInfoTableType, B as BaseUserInfoTableType, e as DatabaseReturn, D as DatabaseType, h as DatabaseArray, U as UidPermission, g as BaseGameUIDInfoTableType } from '../../mysUserInfo-D0yyoCGB.js';
|
|
5
5
|
import 'sequelize';
|
|
6
6
|
|
|
7
7
|
declare const MysApp: Readonly<{
|
package/lib/exports/mys/index.js
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
getUserFullInfo,
|
|
16
16
|
getUserGameRolesByCookie,
|
|
17
17
|
queryQRcode
|
|
18
|
-
} from "../../chunk-
|
|
18
|
+
} from "../../chunk-4HJNTODO.js";
|
|
19
19
|
import "../../chunk-5LRGHP36.js";
|
|
20
20
|
import "../../chunk-HI6OZTI2.js";
|
|
21
21
|
import "../../chunk-BLE3V6QR.js";
|
|
22
|
-
import "../../chunk-
|
|
22
|
+
import "../../chunk-MSOQW3UL.js";
|
|
23
23
|
import "../../chunk-RX4VMVAI.js";
|
|
24
24
|
import "../../chunk-SHLPPEAY.js";
|
|
25
25
|
import "../../chunk-MLKGABMK.js";
|
|
@@ -106,7 +106,7 @@ interface DatabaseClassStatic {
|
|
|
106
106
|
/** @description 数据库说明 */
|
|
107
107
|
description: string;
|
|
108
108
|
Column<T, K extends string>(key: K, type: keyof typeof DataTypes, def: T, option?: Partial<ModelAttributeColumnOptions<Model>>): ColumnOption<ColumnOptionType.Normal, K>;
|
|
109
|
-
ArrayColumn<T, K extends string>(key: K, fn?: (data: DatabaseArray<T>) => T[]): ColumnOption<ColumnOptionType.Array, K>;
|
|
109
|
+
ArrayColumn<T, K extends string>(key: K, split: boolean, fn?: (data: DatabaseArray<T>) => T[]): ColumnOption<ColumnOptionType.Array, K>;
|
|
110
110
|
JsonColumn<T extends Record<string, any>, K extends string>(key: K, def: T): ColumnOption<ColumnOptionType.Json, K>;
|
|
111
111
|
}
|
|
112
112
|
declare class DatabaseArray<T> extends Array<T> {
|
package/lib/web.config.js
CHANGED
package/package.json
CHANGED
|
@@ -729,10 +729,6 @@ video {
|
|
|
729
729
|
gap: 0.75rem;
|
|
730
730
|
}
|
|
731
731
|
|
|
732
|
-
.gap-4 {
|
|
733
|
-
gap: 1rem;
|
|
734
|
-
}
|
|
735
|
-
|
|
736
732
|
.overflow-visible {
|
|
737
733
|
overflow: visible;
|
|
738
734
|
}
|
|
@@ -777,6 +773,10 @@ video {
|
|
|
777
773
|
border-color: rgb(0 0 0 / 0.06);
|
|
778
774
|
}
|
|
779
775
|
|
|
776
|
+
.bg-black\/20 {
|
|
777
|
+
background-color: rgb(0 0 0 / 0.2);
|
|
778
|
+
}
|
|
779
|
+
|
|
780
780
|
.bg-black\/\[0\.06\] {
|
|
781
781
|
background-color: rgb(0 0 0 / 0.06);
|
|
782
782
|
}
|
|
@@ -850,11 +850,6 @@ video {
|
|
|
850
850
|
padding-right: 0.5rem;
|
|
851
851
|
}
|
|
852
852
|
|
|
853
|
-
.px-4 {
|
|
854
|
-
padding-left: 1rem;
|
|
855
|
-
padding-right: 1rem;
|
|
856
|
-
}
|
|
857
|
-
|
|
858
853
|
.px-5 {
|
|
859
854
|
padding-left: 1.25rem;
|
|
860
855
|
padding-right: 1.25rem;
|
|
@@ -875,11 +870,6 @@ video {
|
|
|
875
870
|
padding-bottom: 0.375rem;
|
|
876
871
|
}
|
|
877
872
|
|
|
878
|
-
.py-2\.5 {
|
|
879
|
-
padding-top: 0.625rem;
|
|
880
|
-
padding-bottom: 0.625rem;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
873
|
.py-5 {
|
|
884
874
|
padding-top: 1.25rem;
|
|
885
875
|
padding-bottom: 1.25rem;
|
|
@@ -893,6 +883,10 @@ video {
|
|
|
893
883
|
padding-bottom: 2.25rem;
|
|
894
884
|
}
|
|
895
885
|
|
|
886
|
+
.pt-2 {
|
|
887
|
+
padding-top: 0.5rem;
|
|
888
|
+
}
|
|
889
|
+
|
|
896
890
|
.pt-3 {
|
|
897
891
|
padding-top: 0.75rem;
|
|
898
892
|
}
|
|
@@ -909,10 +903,6 @@ video {
|
|
|
909
903
|
font-family: HYWenHei-55W, sans-serif;
|
|
910
904
|
}
|
|
911
905
|
|
|
912
|
-
.text-\[10px\] {
|
|
913
|
-
font-size: 10px;
|
|
914
|
-
}
|
|
915
|
-
|
|
916
906
|
.text-\[13px\] {
|
|
917
907
|
font-size: 13px;
|
|
918
908
|
}
|
|
@@ -921,6 +911,10 @@ video {
|
|
|
921
911
|
font-size: 5px;
|
|
922
912
|
}
|
|
923
913
|
|
|
914
|
+
.text-\[8px\] {
|
|
915
|
+
font-size: 8px;
|
|
916
|
+
}
|
|
917
|
+
|
|
924
918
|
.text-sm {
|
|
925
919
|
font-size: 0.875rem;
|
|
926
920
|
line-height: 1.25rem;
|