karin-plugin-mys-core 1.0.10 → 1.0.11

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.
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ShowBindAccountCmdFunc
3
- } from "../chunk-MQ52BX7O.js";
4
- import "../chunk-JT3SU5UU.js";
3
+ } from "../chunk-AFLOM3CG.js";
4
+ import "../chunk-BBJ4U2IY.js";
5
5
  import "../chunk-LBLGKL3W.js";
6
6
  import {
7
7
  UserInfo,
@@ -4,8 +4,8 @@ import {
4
4
  ShowBindAccountCmdFunc,
5
5
  UnbindAccount,
6
6
  UnbindUID
7
- } from "../chunk-MQ52BX7O.js";
8
- import "../chunk-JT3SU5UU.js";
7
+ } from "../chunk-AFLOM3CG.js";
8
+ import "../chunk-BBJ4U2IY.js";
9
9
  import "../chunk-LBLGKL3W.js";
10
10
  import "../chunk-4BTKE3LO.js";
11
11
  import "../chunk-2BVJS5VE.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DefaultLayoutComponent,
3
3
  React
4
- } from "./chunk-JT3SU5UU.js";
4
+ } from "./chunk-BBJ4U2IY.js";
5
5
  import {
6
6
  ReactRender
7
7
  } from "./chunk-LBLGKL3W.js";
@@ -21,7 +21,7 @@ var ShowBindAccountComponent = ({
21
21
  AccountList
22
22
  }) => {
23
23
  const plugin = Render.plugin;
24
- return /* @__PURE__ */ React.createElement(DefaultLayoutComponent, { bgColor: "bg-[#f6f0e6]" }, /* @__PURE__ */ React.createElement("div", { className: "px-[18px] pb-9 pt-5" }, /* @__PURE__ */ React.createElement(
24
+ return /* @__PURE__ */ React.createElement(DefaultLayoutComponent, { bg: "bg-[#f6f0e6]", width: "w-[600px]" }, /* @__PURE__ */ React.createElement("div", { className: "w-full px-[18px] pb-9 pt-5" }, /* @__PURE__ */ React.createElement(
25
25
  "div",
26
26
  {
27
27
  className: "absolute -top-2.5 right-0 z-[5] h-[72px] w-[150px] bg-contain bg-center bg-no-repeat opacity-50",
@@ -33,7 +33,7 @@ var ShowBindAccountComponent = ({
33
33
  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)]",
34
34
  key: account.ltuid
35
35
  },
36
- /* @__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"))),
36
+ /* @__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"))),
37
37
  account.bindUids.map((bindUid, bindIdx) => /* @__PURE__ */ React.createElement(
38
38
  "div",
39
39
  {
@@ -52,7 +52,7 @@ var ShowBindAccountComponent = ({
52
52
  "span",
53
53
  {
54
54
  key: info.uid,
55
- className: `relative flex items-center justify-center overflow-visible break-all rounded-lg bg-black/[0.06] px-2 py-1.5 text-[13px] font-semibold text-[#111] ${info.perm === 4 ? "text-black/60 after:absolute after:left-[8%] after:right-[8%] after:top-1/2 after:h-px after:rounded-sm after:bg-[#d32f2f] after:-translate-y-1/2" : ""}`
55
+ className: `relative flex items-center justify-center overflow-visible break-all rounded-lg bg-black/[0.06] px-2 py-1.5 text-[13px] font-semibold text-[#34bc5b] ${info.perm === 4 ? "text-black/60 after:absolute after:left-[8%] after:right-[8%] after:top-1/2 after:h-px after:rounded-sm after:bg-[#d32f2f] after:-translate-y-1/2" : ""}`
56
56
  },
57
57
  info.uid
58
58
  )))
@@ -10,14 +10,15 @@ import { config } from "node-karin";
10
10
  import React from "react";
11
11
  var DefaultLayoutComponent = ({
12
12
  children,
13
- bgColor,
13
+ bg,
14
+ width,
14
15
  mysPlugin
15
16
  }) => {
16
17
  const karinVersion = config.pkg().version;
17
18
  return /* @__PURE__ */ React.createElement(
18
19
  "div",
19
20
  {
20
- className: `relative flex w-[600px] flex-col pb-10 font-hywh text-black ${bgColor}`,
21
+ className: `relative flex ${width} flex-col pb-10 font-hywh text-black ${bg}`,
21
22
  id: "container"
22
23
  },
23
24
  children,
@@ -26,6 +26,7 @@ interface UserGameRoleItemType {
26
26
  game_biz: string;
27
27
  region: string;
28
28
  game_uid: string;
29
+ level: number;
29
30
  nickname: string;
30
31
  is_chosen: boolean;
31
32
  }
@@ -5,7 +5,8 @@ import 'node-karin';
5
5
 
6
6
  interface DefaultLayoutProps {
7
7
  children: React.ReactNode;
8
- bgColor: string;
8
+ bg: string;
9
+ width: string;
9
10
  mysPlugin?: {
10
11
  name: string;
11
12
  version: string;
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DefaultLayoutComponent,
3
3
  React
4
- } from "../../chunk-JT3SU5UU.js";
4
+ } from "../../chunk-BBJ4U2IY.js";
5
5
  import {
6
6
  ReactRender
7
7
  } from "../../chunk-LBLGKL3W.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karin-plugin-mys-core",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "author": "babanbang",
5
5
  "type": "module",
6
6
  "description": "karin-plugin-mys-core",
@@ -952,14 +952,14 @@ video {
952
952
  line-height: 1;
953
953
  }
954
954
 
955
- .text-\[\#111\] {
955
+ .text-\[\#222\] {
956
956
  --tw-text-opacity: 1;
957
- color: rgb(17 17 17 / var(--tw-text-opacity, 1));
957
+ color: rgb(34 34 34 / var(--tw-text-opacity, 1));
958
958
  }
959
959
 
960
- .text-\[\#222\] {
960
+ .text-\[\#34bc5b\] {
961
961
  --tw-text-opacity: 1;
962
- color: rgb(34 34 34 / var(--tw-text-opacity, 1));
962
+ color: rgb(52 188 91 / var(--tw-text-opacity, 1));
963
963
  }
964
964
 
965
965
  .text-\[\#3f7dd1\] {