karin-plugin-mys-core 1.0.9 → 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.
- package/lib/apps/MiHoYoLogin.js +2 -2
- package/lib/apps/UIDManage.js +2 -2
- package/lib/{chunk-MQ52BX7O.js → chunk-AFLOM3CG.js} +4 -4
- package/lib/{chunk-JT3SU5UU.js → chunk-BBJ4U2IY.js} +3 -2
- package/lib/exports/mys/types/user/userInfo.d.ts +1 -0
- package/lib/exports/render/index.d.ts +2 -1
- package/lib/exports/render/index.js +1 -1
- package/package.json +1 -1
- package/resources/styles/karin-plugin-mys-core.css +134 -3
package/lib/apps/MiHoYoLogin.js
CHANGED
package/lib/apps/UIDManage.js
CHANGED
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
ShowBindAccountCmdFunc,
|
|
5
5
|
UnbindAccount,
|
|
6
6
|
UnbindUID
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
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-
|
|
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, {
|
|
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-[#
|
|
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
|
-
|
|
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
|
|
21
|
+
className: `relative flex ${width} flex-col pb-10 font-hywh text-black ${bg}`,
|
|
21
22
|
id: "container"
|
|
22
23
|
},
|
|
23
24
|
children,
|
package/package.json
CHANGED
|
@@ -554,6 +554,40 @@ 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
|
+
|
|
557
591
|
.absolute {
|
|
558
592
|
position: absolute;
|
|
559
593
|
}
|
|
@@ -566,6 +600,14 @@ video {
|
|
|
566
600
|
top: -0.625rem;
|
|
567
601
|
}
|
|
568
602
|
|
|
603
|
+
.bottom-0 {
|
|
604
|
+
bottom: 0px;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.left-0 {
|
|
608
|
+
left: 0px;
|
|
609
|
+
}
|
|
610
|
+
|
|
569
611
|
.right-0 {
|
|
570
612
|
right: 0px;
|
|
571
613
|
}
|
|
@@ -599,6 +641,14 @@ video {
|
|
|
599
641
|
height: 2.5rem;
|
|
600
642
|
}
|
|
601
643
|
|
|
644
|
+
.h-6 {
|
|
645
|
+
height: 1.5rem;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
.h-8 {
|
|
649
|
+
height: 2rem;
|
|
650
|
+
}
|
|
651
|
+
|
|
602
652
|
.h-\[72px\] {
|
|
603
653
|
height: 72px;
|
|
604
654
|
}
|
|
@@ -607,10 +657,26 @@ video {
|
|
|
607
657
|
width: 2.5rem;
|
|
608
658
|
}
|
|
609
659
|
|
|
660
|
+
.w-6 {
|
|
661
|
+
width: 1.5rem;
|
|
662
|
+
}
|
|
663
|
+
|
|
610
664
|
.w-\[150px\] {
|
|
611
665
|
width: 150px;
|
|
612
666
|
}
|
|
613
667
|
|
|
668
|
+
.w-\[600px\] {
|
|
669
|
+
width: 600px;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
.w-full {
|
|
673
|
+
width: 100%;
|
|
674
|
+
}
|
|
675
|
+
|
|
676
|
+
.w-px {
|
|
677
|
+
width: 1px;
|
|
678
|
+
}
|
|
679
|
+
|
|
614
680
|
.min-w-0 {
|
|
615
681
|
min-width: 0px;
|
|
616
682
|
}
|
|
@@ -635,6 +701,10 @@ video {
|
|
|
635
701
|
align-items: center;
|
|
636
702
|
}
|
|
637
703
|
|
|
704
|
+
.items-baseline {
|
|
705
|
+
align-items: baseline;
|
|
706
|
+
}
|
|
707
|
+
|
|
638
708
|
.justify-center {
|
|
639
709
|
justify-content: center;
|
|
640
710
|
}
|
|
@@ -643,6 +713,10 @@ video {
|
|
|
643
713
|
justify-content: space-between;
|
|
644
714
|
}
|
|
645
715
|
|
|
716
|
+
.gap-0\.5 {
|
|
717
|
+
gap: 0.125rem;
|
|
718
|
+
}
|
|
719
|
+
|
|
646
720
|
.gap-1\.5 {
|
|
647
721
|
gap: 0.375rem;
|
|
648
722
|
}
|
|
@@ -659,6 +733,10 @@ video {
|
|
|
659
733
|
gap: 0.75rem;
|
|
660
734
|
}
|
|
661
735
|
|
|
736
|
+
.gap-4 {
|
|
737
|
+
gap: 1rem;
|
|
738
|
+
}
|
|
739
|
+
|
|
662
740
|
.overflow-visible {
|
|
663
741
|
overflow: visible;
|
|
664
742
|
}
|
|
@@ -687,6 +765,10 @@ video {
|
|
|
687
765
|
border-radius: 0.375rem;
|
|
688
766
|
}
|
|
689
767
|
|
|
768
|
+
.rounded-sm {
|
|
769
|
+
border-radius: 0.125rem;
|
|
770
|
+
}
|
|
771
|
+
|
|
690
772
|
.rounded-xl {
|
|
691
773
|
border-radius: 0.75rem;
|
|
692
774
|
}
|
|
@@ -708,6 +790,11 @@ video {
|
|
|
708
790
|
background-color: rgb(0 0 0 / 0.06);
|
|
709
791
|
}
|
|
710
792
|
|
|
793
|
+
.bg-gray-600 {
|
|
794
|
+
--tw-bg-opacity: 1;
|
|
795
|
+
background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
|
|
796
|
+
}
|
|
797
|
+
|
|
711
798
|
.bg-white {
|
|
712
799
|
--tw-bg-opacity: 1;
|
|
713
800
|
background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
|
|
@@ -772,6 +859,11 @@ video {
|
|
|
772
859
|
padding-right: 0.5rem;
|
|
773
860
|
}
|
|
774
861
|
|
|
862
|
+
.px-4 {
|
|
863
|
+
padding-left: 1rem;
|
|
864
|
+
padding-right: 1rem;
|
|
865
|
+
}
|
|
866
|
+
|
|
775
867
|
.px-5 {
|
|
776
868
|
padding-left: 1.25rem;
|
|
777
869
|
padding-right: 1.25rem;
|
|
@@ -792,11 +884,20 @@ video {
|
|
|
792
884
|
padding-bottom: 0.375rem;
|
|
793
885
|
}
|
|
794
886
|
|
|
887
|
+
.py-2\.5 {
|
|
888
|
+
padding-top: 0.625rem;
|
|
889
|
+
padding-bottom: 0.625rem;
|
|
890
|
+
}
|
|
891
|
+
|
|
795
892
|
.py-5 {
|
|
796
893
|
padding-top: 1.25rem;
|
|
797
894
|
padding-bottom: 1.25rem;
|
|
798
895
|
}
|
|
799
896
|
|
|
897
|
+
.pb-10 {
|
|
898
|
+
padding-bottom: 2.5rem;
|
|
899
|
+
}
|
|
900
|
+
|
|
800
901
|
.pb-9 {
|
|
801
902
|
padding-bottom: 2.25rem;
|
|
802
903
|
}
|
|
@@ -813,10 +914,22 @@ video {
|
|
|
813
914
|
text-align: center;
|
|
814
915
|
}
|
|
815
916
|
|
|
917
|
+
.font-hywh {
|
|
918
|
+
font-family: HYWenHei-55W, sans-serif;
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
.text-\[10px\] {
|
|
922
|
+
font-size: 10px;
|
|
923
|
+
}
|
|
924
|
+
|
|
816
925
|
.text-\[13px\] {
|
|
817
926
|
font-size: 13px;
|
|
818
927
|
}
|
|
819
928
|
|
|
929
|
+
.text-\[5px\] {
|
|
930
|
+
font-size: 5px;
|
|
931
|
+
}
|
|
932
|
+
|
|
820
933
|
.text-sm {
|
|
821
934
|
font-size: 0.875rem;
|
|
822
935
|
line-height: 1.25rem;
|
|
@@ -827,13 +940,16 @@ video {
|
|
|
827
940
|
line-height: 1rem;
|
|
828
941
|
}
|
|
829
942
|
|
|
943
|
+
.font-bold {
|
|
944
|
+
font-weight: 700;
|
|
945
|
+
}
|
|
946
|
+
|
|
830
947
|
.font-semibold {
|
|
831
948
|
font-weight: 600;
|
|
832
949
|
}
|
|
833
950
|
|
|
834
|
-
.
|
|
835
|
-
|
|
836
|
-
color: rgb(17 17 17 / var(--tw-text-opacity, 1));
|
|
951
|
+
.leading-none {
|
|
952
|
+
line-height: 1;
|
|
837
953
|
}
|
|
838
954
|
|
|
839
955
|
.text-\[\#222\] {
|
|
@@ -841,6 +957,11 @@ video {
|
|
|
841
957
|
color: rgb(34 34 34 / var(--tw-text-opacity, 1));
|
|
842
958
|
}
|
|
843
959
|
|
|
960
|
+
.text-\[\#34bc5b\] {
|
|
961
|
+
--tw-text-opacity: 1;
|
|
962
|
+
color: rgb(52 188 91 / var(--tw-text-opacity, 1));
|
|
963
|
+
}
|
|
964
|
+
|
|
844
965
|
.text-\[\#3f7dd1\] {
|
|
845
966
|
--tw-text-opacity: 1;
|
|
846
967
|
color: rgb(63 125 209 / var(--tw-text-opacity, 1));
|
|
@@ -851,6 +972,16 @@ video {
|
|
|
851
972
|
color: rgb(107 107 107 / var(--tw-text-opacity, 1));
|
|
852
973
|
}
|
|
853
974
|
|
|
975
|
+
.text-\[\#f2c06f\] {
|
|
976
|
+
--tw-text-opacity: 1;
|
|
977
|
+
color: rgb(242 192 111 / var(--tw-text-opacity, 1));
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
.text-black {
|
|
981
|
+
--tw-text-opacity: 1;
|
|
982
|
+
color: rgb(0 0 0 / var(--tw-text-opacity, 1));
|
|
983
|
+
}
|
|
984
|
+
|
|
854
985
|
.text-black\/60 {
|
|
855
986
|
color: rgb(0 0 0 / 0.6);
|
|
856
987
|
}
|