karin-plugin-mys-core 1.0.5 → 1.0.7
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 +16 -5
- package/lib/apps/MiHoYoLogin.js +3 -3
- package/lib/apps/UIDManage.js +3 -3
- package/lib/chunk-JT3SU5UU.js +52 -0
- package/lib/{chunk-AY34PPJT.js → chunk-LLYBEHPW.js} +7 -2
- package/lib/{chunk-ZZ5BYFNK.js → chunk-P2PBUTB7.js} +16 -29
- package/lib/exports/render/index.d.ts +15 -1
- package/lib/exports/render/index.js +5 -2
- package/lib/exports/render/render.js +2 -1
- package/package.json +3 -4
- package/resources/image/frame-logo.png +0 -0
- package/resources/image/mys-core-logo.png +0 -0
- package/resources/styles/karin-plugin-mys-core.css +10 -95
- package/lib/apps/MiHoYoLogin.d.ts +0 -7
- package/lib/apps/MysDevice.d.ts +0 -5
- package/lib/apps/UIDManage.d.ts +0 -10
- package/lib/chunk-UX2BDLJF.js +0 -6
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+

|
|
2
2
|
|
|
3
3
|
## 📖 目录
|
|
4
4
|
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
- [米游社模块 (mys)](#米游社模块-mys)
|
|
12
12
|
- [渲染模块 (render)](#渲染模块-render)
|
|
13
13
|
- [工具模块 (utils)](#工具模块-utils)
|
|
14
|
-
- [
|
|
14
|
+
- [贡献者](#贡献者)
|
|
15
15
|
|
|
16
16
|
---
|
|
17
17
|
|
|
@@ -1072,7 +1072,18 @@ const str = common.ObjToStr({ key: 'value', foo: 'bar' }, '&')
|
|
|
1072
1072
|
|
|
1073
1073
|
---
|
|
1074
1074
|
|
|
1075
|
-
|
|
1075
|
+
### 贡献者
|
|
1076
1076
|
|
|
1077
|
-
|
|
1078
|
-
|
|
1077
|
+
[](https://github.com/Karin-Mys-Plugins/karin-plugin-mys-core/graphs/contributors)
|
|
1078
|
+
|
|
1079
|
+

|
|
1080
|
+
|
|
1081
|
+
## 如何参与贡献(PR)
|
|
1082
|
+
|
|
1083
|
+
1. Fork 本仓库,创建你的分支
|
|
1084
|
+
2. 提交你的更改,附上简要说明
|
|
1085
|
+
3. 发起 Pull Request,耐心等待 Review
|
|
1086
|
+
4. 你的名字将出现在贡献者列表,收获一份开源荣誉!
|
|
1087
|
+
5. 有任何建议或问题,欢迎在 [Issues](https://github.com/Karin-Mys-Plugins/karin-plugin-mys-core/issues) 提出。
|
|
1088
|
+
|
|
1089
|
+
> 💡 欢迎任何形式的贡献,无论是代码、文档、建议还是灵感!
|
package/lib/apps/MiHoYoLogin.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ShowBindAccountCmdFunc
|
|
3
|
-
} from "../chunk-
|
|
4
|
-
import "../chunk-
|
|
5
|
-
import "../chunk-
|
|
3
|
+
} from "../chunk-P2PBUTB7.js";
|
|
4
|
+
import "../chunk-JT3SU5UU.js";
|
|
5
|
+
import "../chunk-LLYBEHPW.js";
|
|
6
6
|
import {
|
|
7
7
|
UserInfo,
|
|
8
8
|
fetchQRcode,
|
package/lib/apps/UIDManage.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
ShowBindAccountCmdFunc,
|
|
5
5
|
UnbindAccount,
|
|
6
6
|
UnbindUID
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
9
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-P2PBUTB7.js";
|
|
8
|
+
import "../chunk-JT3SU5UU.js";
|
|
9
|
+
import "../chunk-LLYBEHPW.js";
|
|
10
10
|
import "../chunk-DJTJKSNN.js";
|
|
11
11
|
import "../chunk-7VAWV6ZE.js";
|
|
12
12
|
import "../chunk-LJSDSOY6.js";
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import {
|
|
2
|
+
dir
|
|
3
|
+
} from "./chunk-SHLPPEAY.js";
|
|
4
|
+
|
|
5
|
+
// src/exports/render/index.ts
|
|
6
|
+
import React2 from "react";
|
|
7
|
+
|
|
8
|
+
// src/exports/render/layout/DefaultLayout.tsx
|
|
9
|
+
import { config } from "node-karin";
|
|
10
|
+
import React from "react";
|
|
11
|
+
var DefaultLayoutComponent = ({
|
|
12
|
+
children,
|
|
13
|
+
bgColor,
|
|
14
|
+
mysPlugin
|
|
15
|
+
}) => {
|
|
16
|
+
const karinVersion = config.pkg().version;
|
|
17
|
+
return /* @__PURE__ */ React.createElement(
|
|
18
|
+
"div",
|
|
19
|
+
{
|
|
20
|
+
className: `relative flex w-[600px] flex-col pb-10 font-hywh text-black ${bgColor}`,
|
|
21
|
+
id: "container"
|
|
22
|
+
},
|
|
23
|
+
children,
|
|
24
|
+
/* @__PURE__ */ React.createElement("div", { className: "absolute bottom-0 left-0 flex w-full items-center justify-center gap-4 px-4 py-2.5 text-sm" }, mysPlugin && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, /* @__PURE__ */ React.createElement(
|
|
25
|
+
"img",
|
|
26
|
+
{
|
|
27
|
+
src: `${mysPlugin.logoPath}`,
|
|
28
|
+
alt: "Mys Plugin Logo",
|
|
29
|
+
className: "h-6 w-6 rounde"
|
|
30
|
+
}
|
|
31
|
+
), /* @__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-xs 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(
|
|
32
|
+
"img",
|
|
33
|
+
{
|
|
34
|
+
src: `${dir.pluginDir}/resources/image/mys-core-logo.png`,
|
|
35
|
+
alt: "MysCore Logo",
|
|
36
|
+
className: "h-6 w-6 rounded-sm"
|
|
37
|
+
}
|
|
38
|
+
), /* @__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-xs 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(
|
|
39
|
+
"img",
|
|
40
|
+
{
|
|
41
|
+
src: `${dir.pluginDir}/resources/image/frame-logo.png`,
|
|
42
|
+
alt: "Karin Logo",
|
|
43
|
+
className: "h-6 w-6 rounded-sm"
|
|
44
|
+
}
|
|
45
|
+
), /* @__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-1.5" }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, "Karin"), /* @__PURE__ */ React.createElement("strong", { className: "text-[10px] font-bold text-[#f2c06f]" }, "v", karinVersion)))))
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export {
|
|
50
|
+
DefaultLayoutComponent,
|
|
51
|
+
React2 as React
|
|
52
|
+
};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
common_exports
|
|
3
3
|
} from "./chunk-LG34FPBI.js";
|
|
4
|
+
import {
|
|
5
|
+
dir
|
|
6
|
+
} from "./chunk-SHLPPEAY.js";
|
|
4
7
|
|
|
5
8
|
// src/exports/render/render.ts
|
|
6
9
|
import karin, { config, existToMkdirSync, karinPathBase } from "node-karin";
|
|
@@ -34,13 +37,15 @@ var ReactRender = class {
|
|
|
34
37
|
async template(template, component, props, options = {}) {
|
|
35
38
|
const element = React.createElement(component, props);
|
|
36
39
|
const appHtml = renderToString(element);
|
|
37
|
-
const
|
|
40
|
+
const coreCssPath = path.join(dir.pluginDir, "resources", "styles", `${dir.name}.css`).replace(/\\/g, "/");
|
|
41
|
+
const cssPath = this.#renderCfg.name !== dir.name ? path.join(this.plugin.resources.default, "styles", `${this.#renderCfg.name}.css`).replace(/\\/g, "/") : "";
|
|
38
42
|
const Html = `
|
|
39
43
|
<!DOCTYPE html>
|
|
40
44
|
<html lang="zh-CN">
|
|
41
45
|
<head>
|
|
42
46
|
<meta charset="UTF-8">
|
|
43
47
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
48
|
+
<link rel="stylesheet" href="${coreCssPath}">
|
|
44
49
|
<link rel="stylesheet" href="${cssPath}">
|
|
45
50
|
</head>
|
|
46
51
|
<body>
|
|
@@ -57,7 +62,7 @@ var ReactRender = class {
|
|
|
57
62
|
omitBackground: options.type === "png",
|
|
58
63
|
selector: "container",
|
|
59
64
|
setViewport: {
|
|
60
|
-
deviceScaleFactor:
|
|
65
|
+
deviceScaleFactor: 3
|
|
61
66
|
},
|
|
62
67
|
...options.render || {},
|
|
63
68
|
file: savePath
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DefaultLayoutComponent
|
|
3
|
+
} from "./chunk-JT3SU5UU.js";
|
|
1
4
|
import {
|
|
2
5
|
ReactRender
|
|
3
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LLYBEHPW.js";
|
|
4
7
|
import {
|
|
5
8
|
UserInfo
|
|
6
9
|
} from "./chunk-DJTJKSNN.js";
|
|
@@ -11,56 +14,38 @@ import {
|
|
|
11
14
|
dir
|
|
12
15
|
} from "./chunk-SHLPPEAY.js";
|
|
13
16
|
|
|
14
|
-
// src/template/
|
|
17
|
+
// src/template/ShowBindAccount/ShowBindAccount.tsx
|
|
15
18
|
import React from "react";
|
|
16
19
|
|
|
17
20
|
// src/template/render.ts
|
|
18
21
|
var Render = new ReactRender(dir, {});
|
|
19
22
|
|
|
20
|
-
// src/template/layout/DefaultLayout.tsx
|
|
21
|
-
var DefaultLayoutComponent = ({
|
|
22
|
-
children
|
|
23
|
-
}) => {
|
|
24
|
-
const { plugin, karin: karin2 } = Render;
|
|
25
|
-
return /* @__PURE__ */ React.createElement(
|
|
26
|
-
"div",
|
|
27
|
-
{
|
|
28
|
-
className: "relative flex w-[600px] flex-col pb-10 font-[HYWenHei-55W] text-white",
|
|
29
|
-
id: "container",
|
|
30
|
-
style: { fontFamily: "HYWenHei-55W, sans-serif" }
|
|
31
|
-
},
|
|
32
|
-
children,
|
|
33
|
-
/* @__PURE__ */ React.createElement("div", { className: "absolute bottom-0 left-0 flex w-full items-center justify-center bg-black px-0 py-2.5 text-base" }, /* @__PURE__ */ React.createElement("span", null, "Created\xA0by\xA0Karin"), /* @__PURE__ */ React.createElement("strong", { className: "pt-1.5 text-[10px] font-bold text-[#f2c06f]" }, "v", karin2.version), /* @__PURE__ */ React.createElement("span", null, "\xA0&&\xA0", plugin.name), /* @__PURE__ */ React.createElement("strong", { className: "pt-1.5 text-[10px] font-bold text-[#f2c06f]" }, "v", plugin.version))
|
|
34
|
-
);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
23
|
// src/template/ShowBindAccount/ShowBindAccount.tsx
|
|
38
|
-
import React2 from "react";
|
|
39
24
|
var ShowBindAccountComponent = ({
|
|
40
25
|
User,
|
|
41
26
|
AccountList
|
|
42
27
|
}) => {
|
|
43
28
|
const plugin = Render.plugin;
|
|
44
|
-
return /* @__PURE__ */
|
|
29
|
+
return /* @__PURE__ */ React.createElement(DefaultLayoutComponent, { bgColor: "bg-[#f6f0e6]" }, /* @__PURE__ */ React.createElement("div", { className: "px-[18px] pb-9 pt-5" }, /* @__PURE__ */ React.createElement(
|
|
45
30
|
"div",
|
|
46
31
|
{
|
|
47
32
|
className: "absolute -top-2.5 right-0 z-[5] h-[72px] w-[150px] bg-contain bg-center bg-no-repeat opacity-50",
|
|
48
33
|
style: { backgroundImage: `url('${plugin.resources.default}/image/mys-logo.png')` }
|
|
49
34
|
}
|
|
50
|
-
), /* @__PURE__ */
|
|
35
|
+
), /* @__PURE__ */ React.createElement("div", { className: "mb-3 flex items-center gap-2.5" }, /* @__PURE__ */ React.createElement("img", { className: "h-10 w-10 flex-none rounded-full object-cover", src: User.avatar, alt: "avatar" }), /* @__PURE__ */ React.createElement("span", { className: "min-w-0 overflow-anywhere break-words text-sm text-[#222]" }, User.nickname, " (", User.userId, ")")), AccountList && AccountList.length > 0 ? AccountList.map((account, idx) => /* @__PURE__ */ React.createElement(
|
|
51
36
|
"div",
|
|
52
37
|
{
|
|
53
38
|
className: "mb-3 flex flex-col gap-1.5 rounded-lg border border-black/[0.06] bg-white p-3 shadow-[0_2px_6px_rgba(0,0,0,0.04)]",
|
|
54
39
|
key: account.ltuid
|
|
55
40
|
},
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
account.bindUids.map((bindUid, bindIdx) => /* @__PURE__ */
|
|
41
|
+
/* @__PURE__ */ React.createElement("div", { className: "relative flex items-center justify-between gap-2" }, /* @__PURE__ */ React.createElement("span", { className: "flex text-sm font-semibold text-[#3f7dd1]" }, "MYS UID (", idx + 1, ")\uFF1A", account.ltuid), /* @__PURE__ */ React.createElement("div", { className: "flex items-center gap-2" }, account.permission >= 1 && /* @__PURE__ */ React.createElement("span", { className: "inline-block rounded-xl bg-gradient-to-b from-[#34bc5b] to-[#2ea94b] px-2 py-1 text-xs font-semibold text-white shadow-[0_1px_0_rgba(0,0,0,0.06)_inset]" }, "cookie"), account.permission >= 2 && /* @__PURE__ */ React.createElement("span", { className: "inline-block rounded-xl bg-gradient-to-b from-[#f6d86a] to-[#f1c40f] px-2 py-1 text-xs font-semibold text-black/85" }, "stoken"))),
|
|
42
|
+
account.bindUids.map((bindUid, bindIdx) => /* @__PURE__ */ React.createElement(
|
|
58
43
|
"div",
|
|
59
44
|
{
|
|
60
45
|
className: `flex items-center gap-3 rounded-md px-1 py-1.5 ${bindIdx > 0 ? "relative pt-3 before:absolute before:left-[5%] before:right-0 before:top-0 before:h-px before:w-[90%] before:rounded-sm before:bg-[#3f7dd1]" : ""}`,
|
|
61
46
|
key: bindUid.gameName
|
|
62
47
|
},
|
|
63
|
-
/* @__PURE__ */
|
|
48
|
+
/* @__PURE__ */ React.createElement(
|
|
64
49
|
"img",
|
|
65
50
|
{
|
|
66
51
|
className: "flex w-10 items-center justify-center rounded-[10px]",
|
|
@@ -68,7 +53,7 @@ var ShowBindAccountComponent = ({
|
|
|
68
53
|
alt: bindUid.gameName
|
|
69
54
|
}
|
|
70
55
|
),
|
|
71
|
-
/* @__PURE__ */
|
|
56
|
+
/* @__PURE__ */ React.createElement("div", { className: "grid flex-auto grid-cols-3 gap-2" }, bindUid.uids.map((info) => /* @__PURE__ */ React.createElement(
|
|
72
57
|
"span",
|
|
73
58
|
{
|
|
74
59
|
key: info.uid,
|
|
@@ -77,11 +62,11 @@ var ShowBindAccountComponent = ({
|
|
|
77
62
|
info.uid
|
|
78
63
|
)))
|
|
79
64
|
))
|
|
80
|
-
)) : /* @__PURE__ */
|
|
65
|
+
)) : /* @__PURE__ */ React.createElement("div", { className: "my-3 px-5 py-5 text-center font-semibold text-[#6b6b6b]" }, "\u6682\u672A\u7ED1\u5B9A\u8D26\u53F7")));
|
|
81
66
|
};
|
|
82
67
|
|
|
83
68
|
// src/template/ShowBindDevice/ShowBindDevice.tsx
|
|
84
|
-
import
|
|
69
|
+
import React2 from "react";
|
|
85
70
|
|
|
86
71
|
// src/apps/UIDManage.ts
|
|
87
72
|
import karin, { handler, segment } from "node-karin";
|
|
@@ -194,7 +179,9 @@ var ShowBindAccountCmdFunc = async (e) => {
|
|
|
194
179
|
renderData.AccountList.push(data);
|
|
195
180
|
}
|
|
196
181
|
}
|
|
197
|
-
const image = await Render.template("ShowBindAccount", ShowBindAccountComponent, renderData
|
|
182
|
+
const image = await Render.template("ShowBindAccount", ShowBindAccountComponent, renderData, {
|
|
183
|
+
type: "png"
|
|
184
|
+
});
|
|
198
185
|
image && e.reply(segment.image(image), { at: true });
|
|
199
186
|
return true;
|
|
200
187
|
};
|
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
export { default as React } from 'react';
|
|
3
|
+
export { DefaultRenderPluginOptionsType, ReactRender, RenderCfg } from './render.js';
|
|
3
4
|
import 'node-karin';
|
|
5
|
+
|
|
6
|
+
interface DefaultLayoutProps {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
bgColor: string;
|
|
9
|
+
mysPlugin?: {
|
|
10
|
+
name: string;
|
|
11
|
+
version: string;
|
|
12
|
+
logoPath: string;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
declare const DefaultLayoutComponent: React.FC<DefaultLayoutProps>;
|
|
16
|
+
|
|
17
|
+
export { DefaultLayoutComponent, type DefaultLayoutProps };
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
+
DefaultLayoutComponent,
|
|
2
3
|
React
|
|
3
|
-
} from "../../chunk-
|
|
4
|
+
} from "../../chunk-JT3SU5UU.js";
|
|
4
5
|
import {
|
|
5
6
|
ReactRender
|
|
6
|
-
} from "../../chunk-
|
|
7
|
+
} from "../../chunk-LLYBEHPW.js";
|
|
7
8
|
import "../../chunk-UC6INRYV.js";
|
|
8
9
|
import "../../chunk-LG34FPBI.js";
|
|
10
|
+
import "../../chunk-SHLPPEAY.js";
|
|
9
11
|
import "../../chunk-MLKGABMK.js";
|
|
10
12
|
export {
|
|
13
|
+
DefaultLayoutComponent,
|
|
11
14
|
React,
|
|
12
15
|
ReactRender
|
|
13
16
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ReactRender
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-LLYBEHPW.js";
|
|
4
4
|
import "../../chunk-UC6INRYV.js";
|
|
5
5
|
import "../../chunk-LG34FPBI.js";
|
|
6
|
+
import "../../chunk-SHLPPEAY.js";
|
|
6
7
|
import "../../chunk-MLKGABMK.js";
|
|
7
8
|
export {
|
|
8
9
|
ReactRender
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "karin-plugin-mys-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"author": "babanbang",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "karin-plugin-mys-core",
|
|
@@ -79,11 +79,10 @@
|
|
|
79
79
|
"/lib/**/*.js",
|
|
80
80
|
"/lib/**/*.d.ts",
|
|
81
81
|
"resources",
|
|
82
|
-
"!resources/**/*.css.map",
|
|
83
|
-
"!resources/**/*.scss",
|
|
84
82
|
"!lib/app.js",
|
|
85
83
|
"!lib/app.d.ts",
|
|
86
|
-
"!lib/index.d.ts"
|
|
84
|
+
"!lib/index.d.ts",
|
|
85
|
+
"!lib/apps/**/*.d.ts"
|
|
87
86
|
],
|
|
88
87
|
"publishConfig": {
|
|
89
88
|
"access": "public",
|
|
Binary file
|
|
Binary file
|
|
@@ -554,40 +554,6 @@ video {
|
|
|
554
554
|
display: none;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
|
-
.container {
|
|
558
|
-
width: 100%;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
@media (min-width: 640px) {
|
|
562
|
-
.container {
|
|
563
|
-
max-width: 640px;
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
@media (min-width: 768px) {
|
|
568
|
-
.container {
|
|
569
|
-
max-width: 768px;
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
@media (min-width: 1024px) {
|
|
574
|
-
.container {
|
|
575
|
-
max-width: 1024px;
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
@media (min-width: 1280px) {
|
|
580
|
-
.container {
|
|
581
|
-
max-width: 1280px;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
@media (min-width: 1536px) {
|
|
586
|
-
.container {
|
|
587
|
-
max-width: 1536px;
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
|
|
591
557
|
.absolute {
|
|
592
558
|
position: absolute;
|
|
593
559
|
}
|
|
@@ -600,14 +566,6 @@ video {
|
|
|
600
566
|
top: -0.625rem;
|
|
601
567
|
}
|
|
602
568
|
|
|
603
|
-
.bottom-0 {
|
|
604
|
-
bottom: 0px;
|
|
605
|
-
}
|
|
606
|
-
|
|
607
|
-
.left-0 {
|
|
608
|
-
left: 0px;
|
|
609
|
-
}
|
|
610
|
-
|
|
611
569
|
.right-0 {
|
|
612
570
|
right: 0px;
|
|
613
571
|
}
|
|
@@ -653,14 +611,6 @@ video {
|
|
|
653
611
|
width: 150px;
|
|
654
612
|
}
|
|
655
613
|
|
|
656
|
-
.w-\[600px\] {
|
|
657
|
-
width: 600px;
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
.w-full {
|
|
661
|
-
width: 100%;
|
|
662
|
-
}
|
|
663
|
-
|
|
664
614
|
.min-w-0 {
|
|
665
615
|
min-width: 0px;
|
|
666
616
|
}
|
|
@@ -754,11 +704,6 @@ video {
|
|
|
754
704
|
background-color: rgb(246 240 230 / var(--tw-bg-opacity, 1));
|
|
755
705
|
}
|
|
756
706
|
|
|
757
|
-
.bg-black {
|
|
758
|
-
--tw-bg-opacity: 1;
|
|
759
|
-
background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
|
|
760
|
-
}
|
|
761
|
-
|
|
762
707
|
.bg-black\/\[0\.06\] {
|
|
763
708
|
background-color: rgb(0 0 0 / 0.06);
|
|
764
709
|
}
|
|
@@ -817,11 +762,6 @@ video {
|
|
|
817
762
|
padding: 1rem;
|
|
818
763
|
}
|
|
819
764
|
|
|
820
|
-
.px-0 {
|
|
821
|
-
padding-left: 0px;
|
|
822
|
-
padding-right: 0px;
|
|
823
|
-
}
|
|
824
|
-
|
|
825
765
|
.px-1 {
|
|
826
766
|
padding-left: 0.25rem;
|
|
827
767
|
padding-right: 0.25rem;
|
|
@@ -852,28 +792,15 @@ video {
|
|
|
852
792
|
padding-bottom: 0.375rem;
|
|
853
793
|
}
|
|
854
794
|
|
|
855
|
-
.py-2\.5 {
|
|
856
|
-
padding-top: 0.625rem;
|
|
857
|
-
padding-bottom: 0.625rem;
|
|
858
|
-
}
|
|
859
|
-
|
|
860
795
|
.py-5 {
|
|
861
796
|
padding-top: 1.25rem;
|
|
862
797
|
padding-bottom: 1.25rem;
|
|
863
798
|
}
|
|
864
799
|
|
|
865
|
-
.pb-10 {
|
|
866
|
-
padding-bottom: 2.5rem;
|
|
867
|
-
}
|
|
868
|
-
|
|
869
800
|
.pb-9 {
|
|
870
801
|
padding-bottom: 2.25rem;
|
|
871
802
|
}
|
|
872
803
|
|
|
873
|
-
.pt-1\.5 {
|
|
874
|
-
padding-top: 0.375rem;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
804
|
.pt-3 {
|
|
878
805
|
padding-top: 0.75rem;
|
|
879
806
|
}
|
|
@@ -886,23 +813,10 @@ video {
|
|
|
886
813
|
text-align: center;
|
|
887
814
|
}
|
|
888
815
|
|
|
889
|
-
.font-\[HYWenHei-55W\] {
|
|
890
|
-
font-family: HYWenHei-55W;
|
|
891
|
-
}
|
|
892
|
-
|
|
893
|
-
.text-\[10px\] {
|
|
894
|
-
font-size: 10px;
|
|
895
|
-
}
|
|
896
|
-
|
|
897
816
|
.text-\[13px\] {
|
|
898
817
|
font-size: 13px;
|
|
899
818
|
}
|
|
900
819
|
|
|
901
|
-
.text-base {
|
|
902
|
-
font-size: 1rem;
|
|
903
|
-
line-height: 1.5rem;
|
|
904
|
-
}
|
|
905
|
-
|
|
906
820
|
.text-sm {
|
|
907
821
|
font-size: 0.875rem;
|
|
908
822
|
line-height: 1.25rem;
|
|
@@ -913,10 +827,6 @@ video {
|
|
|
913
827
|
line-height: 1rem;
|
|
914
828
|
}
|
|
915
829
|
|
|
916
|
-
.font-bold {
|
|
917
|
-
font-weight: 700;
|
|
918
|
-
}
|
|
919
|
-
|
|
920
830
|
.font-semibold {
|
|
921
831
|
font-weight: 600;
|
|
922
832
|
}
|
|
@@ -941,11 +851,6 @@ video {
|
|
|
941
851
|
color: rgb(107 107 107 / var(--tw-text-opacity, 1));
|
|
942
852
|
}
|
|
943
853
|
|
|
944
|
-
.text-\[\#f2c06f\] {
|
|
945
|
-
--tw-text-opacity: 1;
|
|
946
|
-
color: rgb(242 192 111 / var(--tw-text-opacity, 1));
|
|
947
|
-
}
|
|
948
|
-
|
|
949
854
|
.text-black\/60 {
|
|
950
855
|
color: rgb(0 0 0 / 0.6);
|
|
951
856
|
}
|
|
@@ -975,6 +880,16 @@ video {
|
|
|
975
880
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
976
881
|
}
|
|
977
882
|
|
|
883
|
+
@font-face {
|
|
884
|
+
font-family: 'HYWenHei-55W';
|
|
885
|
+
|
|
886
|
+
src: url('../../resources/fonts/HYWenHei-55W.ttf') format('truetype');
|
|
887
|
+
|
|
888
|
+
font-weight: normal;
|
|
889
|
+
|
|
890
|
+
font-style: normal;
|
|
891
|
+
}
|
|
892
|
+
|
|
978
893
|
.before\:absolute::before {
|
|
979
894
|
content: var(--tw-content);
|
|
980
895
|
position: absolute;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as node_karin from 'node-karin';
|
|
2
|
-
|
|
3
|
-
declare const MiHoYoLoginQRCode: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
4
|
-
declare const BindCookieByMessage: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
5
|
-
declare const BindStokenByMessage: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
6
|
-
|
|
7
|
-
export { BindCookieByMessage, BindStokenByMessage, MiHoYoLoginQRCode };
|
package/lib/apps/MysDevice.d.ts
DELETED
package/lib/apps/UIDManage.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as node_karin from 'node-karin';
|
|
2
|
-
import { Message } from 'node-karin';
|
|
3
|
-
|
|
4
|
-
declare const BindUID: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
5
|
-
declare const UnbindUID: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
6
|
-
declare const ShowBindAccountCmdFunc: (e: Message) => Promise<boolean>;
|
|
7
|
-
declare const ShowBindAccount: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
8
|
-
declare const UnbindAccount: node_karin.Command<keyof node_karin.MessageEventMap>;
|
|
9
|
-
|
|
10
|
-
export { BindUID, ShowBindAccount, ShowBindAccountCmdFunc, UnbindAccount, UnbindUID };
|