karin-plugin-mys-core 1.0.20 → 1.0.21

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-SOLISSTT.js";
4
- import "../chunk-S3ALDDWH.js";
3
+ } from "../chunk-SEKKAPRU.js";
4
+ import "../chunk-C2ZR7X67.js";
5
5
  import {
6
6
  UserInfo,
7
7
  fetchQRcode,
@@ -5,8 +5,8 @@ import {
5
5
  ShowBindAccountCmdFunc,
6
6
  UnbindAccount,
7
7
  UnbindUID
8
- } from "../chunk-SOLISSTT.js";
9
- import "../chunk-S3ALDDWH.js";
8
+ } from "../chunk-SEKKAPRU.js";
9
+ import "../chunk-C2ZR7X67.js";
10
10
  import "../chunk-32QZ2PSX.js";
11
11
  import "../chunk-5LRGHP36.js";
12
12
  import "../chunk-HI6OZTI2.js";
@@ -13,15 +13,15 @@ import { config } from "node-karin";
13
13
  import React from "react";
14
14
  var DefaultLayoutComponent = ({
15
15
  children,
16
- bg,
17
- width,
16
+ bgStyle,
18
17
  mysPlugin
19
18
  }) => {
20
19
  const karinVersion = config.pkg().version;
21
20
  return /* @__PURE__ */ React.createElement(
22
21
  "div",
23
22
  {
24
- className: `relative flex ${width} flex-col pb-10 font-hywh text-black ${bg}`,
23
+ className: "relative flex flex-col pb-10 font-hywh text-black",
24
+ style: bgStyle,
25
25
  id: "container"
26
26
  },
27
27
  children,
@@ -29,21 +29,18 @@ var DefaultLayoutComponent = ({
29
29
  "img",
30
30
  {
31
31
  src: `${mysPlugin.logoPath}`,
32
- alt: "Mys Plugin Logo",
33
32
  className: "h-6 w-6 rounde"
34
33
  }
35
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-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(
36
35
  "img",
37
36
  {
38
37
  src: `${dir.pluginDir}/resources/image/mys-core-logo.webp`,
39
- alt: "MysCore Logo",
40
38
  className: "h-6 w-6 rounded-sm"
41
39
  }
42
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-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(
43
41
  "img",
44
42
  {
45
43
  src: `${dir.pluginDir}/resources/image/frame-logo.webp`,
46
- alt: "Karin Logo",
47
44
  className: "h-6 w-6 rounded-sm"
48
45
  }
49
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-1.5" }, /* @__PURE__ */ React.createElement("span", { className: "font-semibold" }, "Karin"), /* @__PURE__ */ React.createElement("strong", { className: "text-[10px] font-bold text-[#f2c06f]" }, "v", karinVersion)))))
@@ -51,7 +48,7 @@ var DefaultLayoutComponent = ({
51
48
  };
52
49
 
53
50
  // src/exports/render/render.ts
54
- import karin, { absPath, config as config2, existToMkdirSync, karinPathBase } from "node-karin";
51
+ import karin, { absPath, existToMkdirSync, karinPathBase } from "node-karin";
55
52
  import fs from "fs";
56
53
  import path from "path";
57
54
  import React2 from "react";
@@ -74,11 +71,6 @@ var ReactRender = class {
74
71
  }
75
72
  };
76
73
  }
77
- get karin() {
78
- return {
79
- version: config2.pkg().version
80
- };
81
- }
82
74
  async template(template, component, props, options = {}) {
83
75
  const element = React2.createElement(component, props);
84
76
  const appHtml = renderToString(element);
@@ -2,7 +2,7 @@ import {
2
2
  DefaultLayoutComponent,
3
3
  React,
4
4
  ReactRender
5
- } from "./chunk-S3ALDDWH.js";
5
+ } from "./chunk-C2ZR7X67.js";
6
6
  import {
7
7
  MysGame,
8
8
  UserInfo
@@ -17,7 +17,7 @@ var ShowBindAccountComponent = ({
17
17
  AccountList
18
18
  }) => {
19
19
  const plugin = Render.plugin;
20
- 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(
20
+ return /* @__PURE__ */ React.createElement(DefaultLayoutComponent, { bgStyle: { backgroundColor: "#f6f0e6", width: 600 } }, /* @__PURE__ */ React.createElement("div", { className: "w-full px-[18px] pb-9 pt-5" }, /* @__PURE__ */ React.createElement(
21
21
  "div",
22
22
  {
23
23
  className: "absolute -top-2.5 right-0 z-[5] h-[72px] w-[150px] bg-contain bg-center bg-no-repeat opacity-50",
@@ -4,8 +4,10 @@ import { Options } from 'node-karin';
4
4
 
5
5
  interface DefaultLayoutProps {
6
6
  children: React.ReactNode;
7
- bg: string;
8
- width: string;
7
+ bgStyle: React.CSSProperties & {
8
+ backgroundColor: React.CSSProperties['backgroundColor'];
9
+ width: React.CSSProperties['width'];
10
+ };
9
11
  mysPlugin?: {
10
12
  name: string;
11
13
  version: string;
@@ -38,9 +40,6 @@ declare class ReactRender<P extends Record<string, any>, K extends string> {
38
40
  #private;
39
41
  constructor(cfg: RenderCfg, pluginOptions?: Omit<P, 'name' | 'version' | 'resources'>);
40
42
  get plugin(): Omit<P, 'name' | 'version' | 'resources'> & DefaultRenderPluginOptionsType;
41
- get karin(): {
42
- version: string;
43
- };
44
43
  template<C extends React.ComponentType<any>>(template: K, component: C, props: React.ComponentProps<C>, options?: {
45
44
  type?: 'png' | 'jpeg' | 'webp';
46
45
  plugin?: Record<string, any>;
@@ -2,7 +2,7 @@ import {
2
2
  DefaultLayoutComponent,
3
3
  React,
4
4
  ReactRender
5
- } from "../../chunk-S3ALDDWH.js";
5
+ } from "../../chunk-C2ZR7X67.js";
6
6
  import "../../chunk-RX4VMVAI.js";
7
7
  import "../../chunk-SHLPPEAY.js";
8
8
  import "../../chunk-MLKGABMK.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karin-plugin-mys-core",
3
- "version": "1.0.20",
3
+ "version": "1.0.21",
4
4
  "author": "babanbang",
5
5
  "type": "module",
6
6
  "description": "karin-plugin-mys-core",
@@ -665,10 +665,6 @@ video {
665
665
  width: 150px;
666
666
  }
667
667
 
668
- .w-\[600px\] {
669
- width: 600px;
670
- }
671
-
672
668
  .w-full {
673
669
  width: 100%;
674
670
  }
@@ -781,11 +777,6 @@ video {
781
777
  border-color: rgb(0 0 0 / 0.06);
782
778
  }
783
779
 
784
- .bg-\[\#f6f0e6\] {
785
- --tw-bg-opacity: 1;
786
- background-color: rgb(246 240 230 / var(--tw-bg-opacity, 1));
787
- }
788
-
789
780
  .bg-black\/\[0\.06\] {
790
781
  background-color: rgb(0 0 0 / 0.06);
791
782
  }