karin-plugin-kkk 2.34.0 → 2.35.0

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.
Files changed (33) hide show
  1. package/CHANGELOG.md +842 -1166
  2. package/README.md +4 -5
  3. package/config/default_config/app.yaml +1 -1
  4. package/config/default_config/bilibili.yaml +2 -2
  5. package/config/default_config/config.json +136 -0
  6. package/config/default_config/cookies.yaml +2 -2
  7. package/config/default_config/douyin.yaml +3 -3
  8. package/config/default_config/kuaishou.yaml +1 -1
  9. package/config/default_config/pushlist.yaml +6 -6
  10. package/config/default_config/request.yaml +1 -1
  11. package/config/default_config/xiaohongshu.yaml +2 -2
  12. package/lib/build-metadata.json +5 -5
  13. package/lib/core_chunk/amagi.d.mts +18 -18
  14. package/lib/core_chunk/amagi.js +1 -1
  15. package/lib/core_chunk/amagiClient.js +1 -1
  16. package/lib/core_chunk/main.js +618 -1833
  17. package/lib/core_chunk/vendor.js +4564 -2166
  18. package/lib/root.js +1 -1
  19. package/lib/web/assets/CronEditor-Cg5OQ1zE.js +1 -0
  20. package/lib/web/assets/DesktopLayout-R64EJDVu.js +1 -0
  21. package/lib/web/assets/MobileLayout-D45Q2A-w.js +2 -0
  22. package/lib/web/assets/ThemeSwitch-M2yTf191.js +1 -0
  23. package/lib/web/assets/index-Bz9RVG7l.js +28 -0
  24. package/lib/web/assets/index-C9k3Jf0p.css +2 -0
  25. package/lib/web/index.html +3 -3
  26. package/package.json +28 -28
  27. package/resources/font/bilifont/font.css +3 -3
  28. package/resources/font/fansmedal-num/font.css +1 -1
  29. package/lib/web/assets/AboutPanel-DFjZYu60.js +0 -1
  30. package/lib/web/assets/DesktopLayout-Cr5AitGP.js +0 -1
  31. package/lib/web/assets/MobileLayout-BW-vN-VU.js +0 -2
  32. package/lib/web/assets/index-8KaTMCj2.css +0 -2
  33. package/lib/web/assets/index-CQhoJUBv.js +0 -28
@@ -2,12 +2,12 @@
2
2
  <html lang="zh-CN">
3
3
  <head>
4
4
  <meta charset="UTF-8" />
5
- <link rel="icon" type="image/svg+xml" href="/kkk/favicon.svg" />
5
+ <link rel="icon" type="image/svg+xml" href="/kkk/assets/favicon.svg" />
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
7
7
  <meta name="description" content="KKK Config - Karin 插件配置管理面板" />
8
8
  <title>KKK Config</title>
9
- <script type="module" crossorigin src="/kkk/assets/index-CQhoJUBv.js"></script>
10
- <link rel="stylesheet" crossorigin href="/kkk/assets/index-8KaTMCj2.css">
9
+ <script type="module" crossorigin src="/kkk/assets/assets/index-Bz9RVG7l.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/kkk/assets/assets/index-C9k3Jf0p.css">
11
11
  </head>
12
12
  <body>
13
13
  <div id="root"></div>
package/package.json CHANGED
@@ -1,22 +1,41 @@
1
1
  {
2
2
  "name": "karin-plugin-kkk",
3
- "version": "2.34.0",
3
+ "version": "2.35.0",
4
4
  "description": "Karin 的「抖音」「B 站」视频解析/动态推送插件",
5
5
  "keywords": [
6
- "karin-plugin",
7
- "karin"
6
+ "karin",
7
+ "karin-plugin"
8
8
  ],
9
9
  "homepage": "https://github.com/ikenxuan/karin-plugin-kkk",
10
10
  "bugs": {
11
11
  "url": "https://github.com/ikenxuan/karin-plugin-kkk/issues"
12
12
  },
13
+ "license": "GPL-3.0-only",
14
+ "author": "ikenxuan",
13
15
  "repository": {
14
16
  "type": "git",
15
17
  "url": "git+https://github.com/ikenxuan/karin-plugin-kkk.git"
16
18
  },
17
- "license": "GPL-3.0-only",
18
- "author": "ikenxuan",
19
+ "files": [
20
+ "config/",
21
+ "lib/",
22
+ "resources/",
23
+ "LICENSE",
24
+ "package.json",
25
+ "README.md",
26
+ "CHANGELOG.md"
27
+ ],
19
28
  "type": "module",
29
+ "typesVersions": {
30
+ "*": {
31
+ "template": [
32
+ "./lib/core_chunk/template.d.mts"
33
+ ],
34
+ "amagi": [
35
+ "./lib/core_chunk/amagi.d.mts"
36
+ ]
37
+ }
38
+ },
20
39
  "exports": {
21
40
  ".": {
22
41
  "default": "./lib/index.js"
@@ -34,25 +53,10 @@
34
53
  "import": "./lib/core_chunk/amagi.js"
35
54
  }
36
55
  },
37
- "typesVersions": {
38
- "*": {
39
- "template": [
40
- "./lib/core_chunk/template.d.mts"
41
- ],
42
- "amagi": [
43
- "./lib/core_chunk/amagi.d.mts"
44
- ]
45
- }
56
+ "publishConfig": {
57
+ "access": "public",
58
+ "registry": "https://registry.npmjs.org"
46
59
  },
47
- "files": [
48
- "config/",
49
- "lib/",
50
- "resources/",
51
- "LICENSE",
52
- "package.json",
53
- "README.md",
54
- "CHANGELOG.md"
55
- ],
56
60
  "dependencies": {
57
61
  "@ikenxuan/qrcode": "1.2.0",
58
62
  "@ikenxuan/watermark": "1.1.6",
@@ -65,10 +69,6 @@
65
69
  "engines": {
66
70
  "node": ">=18.0.0"
67
71
  },
68
- "publishConfig": {
69
- "access": "public",
70
- "registry": "https://registry.npmjs.org"
71
- },
72
72
  "karin": {
73
73
  "engines": ">=1.14.0",
74
74
  "main": "src/index.ts",
@@ -89,5 +89,5 @@
89
89
  "web": "./lib/web.config.js",
90
90
  "ts-web": "./src/web.config.ts"
91
91
  },
92
- "timestamp": "2026-06-11T07:36:05.399Z"
92
+ "timestamp": "2026-06-11T15:14:59.983Z"
93
93
  }
@@ -1,7 +1,7 @@
1
1
  /** generated by https://github.com/voderl/font-slice */
2
2
  @font-face {
3
3
  font-family: bilifont;
4
- src: url("./bilifont.1.woff2") format("woff2");
4
+ src: url('./bilifont.1.woff2') format('woff2');
5
5
  font-weight: 100;
6
6
  font-style: normal;
7
7
  font-display: swap;
@@ -9,9 +9,9 @@
9
9
  }
10
10
  @font-face {
11
11
  font-family: bilifont;
12
- src: url("./bilifont.2.woff2") format("woff2");
12
+ src: url('./bilifont.2.woff2') format('woff2');
13
13
  font-weight: 100;
14
14
  font-style: normal;
15
15
  font-display: swap;
16
- unicode-range: U+2e,U+30-39,U+43,U+44,U+4f;
16
+ unicode-range: U+2e, U+30-39, U+43, U+44, U+4f;
17
17
  }
@@ -1,7 +1,7 @@
1
1
  /** generated by https://github.com/voderl/font-slice */
2
2
  @font-face {
3
3
  font-family: fansmedal-num;
4
- src: url("./fansmedal-num.1.woff2") format("woff2");
4
+ src: url('./fansmedal-num.1.woff2') format('woff2');
5
5
  font-weight: normal;
6
6
  font-style: normal;
7
7
  font-display: swap;
@@ -1 +0,0 @@
1
- import{a as e,c as t,l as n,m as r,p as i,t as a,x as o}from"./index-CQhoJUBv.js";var s=e(`circle-question-mark`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),c=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),l=e(`file-text`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`M10 9H8`,key:`b1mrlr`}],[`path`,{d:`M16 13H8`,key:`t4e002`}],[`path`,{d:`M16 17H8`,key:`z1uh3a`}]]),u=e(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),d=e(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=e(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),p=e(`package`,[[`path`,{d:`M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z`,key:`1a0edw`}],[`path`,{d:`M12 22V12`,key:`d0xqtd`}],[`polyline`,{points:`3.29 7 12 12 20.71 7`,key:`ousv84`}],[`path`,{d:`m7.5 4.27 9 5.15`,key:`1c824w`}]]),m=e(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),h=e(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),g=`https://github.com/ikenxuan.png`,_=o(),v=({className:e})=>{let{isDark:t,toggleTheme:i}=a();return(0,_.jsxs)(n,{delay:1,closeDelay:1,children:[(0,_.jsx)(r,{isIconOnly:!0,"aria-label":t?`切换到浅色模式`:`切换到深色模式`,className:e,variant:`ghost`,onPress:i,children:t?(0,_.jsx)(h,{size:20,"aria-hidden":`true`}):(0,_.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,_.jsx)(n.Content,{children:t?`浅色模式`:`深色模式`})]})},y=()=>{let e=e=>{window.open(e,`_blank`)};return(0,_.jsxs)(i,{className:`mx-auto max-w-3xl`,children:[(0,_.jsxs)(i.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,_.jsx)(p,{size:64,"aria-hidden":`true`}),(0,_.jsx)(i.Title,{children:`karin-plugin-kkk`}),(0,_.jsx)(i.Description,{children:`版本 2.33.0`})]}),(0,_.jsxs)(i.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,_.jsxs)(`section`,{children:[(0,_.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,_.jsx)(t,{children:`Karin 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,_.jsxs)(`section`,{children:[(0,_.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,_.jsx)(t,{children:`ikenxuan, sj817`})]}),(0,_.jsxs)(`section`,{children:[(0,_.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,_.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,_.jsxs)(r,{variant:`outline`,onPress:()=>e(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,_.jsx)(c,{size:18,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,_.jsxs)(r,{variant:`outline`,onPress:()=>e(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,_.jsx)(c,{size:18,"aria-hidden":`true`}),(0,_.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,g as r,u as s,y as t};
@@ -1 +0,0 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./AboutPanel-DFjZYu60.js";import{C as l,S as u,_ as d,a as f,b as p,d as m,g as h,h as g,i as _,m as v,n as y,o as b,r as x,s as S,v as C,x as w,y as T}from"./index-CQhoJUBv.js";var E=p({base:`separator`,defaultVariants:{orientation:`horizontal`,variant:`default`},variants:{orientation:{horizontal:`separator--horizontal`,vertical:`separator--vertical`},variant:{default:`separator--default`,secondary:`separator--secondary`,tertiary:`separator--tertiary`}}}),D=w(),O=({className:e,orientation:t,variant:n,...r})=>{let i=C(d),a=t??i?.orientation??`horizontal`;return(0,D.jsx)(h,{"data-orientation":a,"data-slot":`separator`,orientation:a,className:E({orientation:a,variant:n,className:e}),...r})},k=Object.assign(O,{Root:O}),A=f(`panel-left-close`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}],[`path`,{d:`m16 15-3-3 3-3`,key:`14y99z`}]]),j=l(u(),1),M=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],N=({collapsed:e,activeMenu:t,onMenuChange:n})=>{let i=S(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),a=S(()=>{_(),window.location.reload()});return e?null:(0,D.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,D.jsx)(`div`,{className:`shrink-0 px-4 pt-3 pb-2`,children:(0,D.jsxs)(m,{children:[(0,D.jsx)(m.Trigger,{"aria-label":`用户信息`,children:(0,D.jsxs)(`button`,{className:`flex w-full items-center gap-3 rounded-lg p-2 transition-colors hover:bg-default-100`,children:[(0,D.jsxs)(g,{size:`lg`,children:[(0,D.jsx)(g.Image,{src:o}),(0,D.jsx)(g.Fallback,{children:`ikenxuan`})]}),(0,D.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col items-start`,children:[(0,D.jsx)(`p`,{className:`truncate text-lg font-semibold`,children:`炫炫`}),(0,D.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]})}),(0,D.jsx)(m.Content,{className:`w-60`,children:(0,D.jsxs)(m.Dialog,{children:[(0,D.jsxs)(`div`,{className:`flex items-center gap-3 pb-3`,children:[(0,D.jsxs)(g,{size:`md`,children:[(0,D.jsx)(g.Image,{src:o}),(0,D.jsx)(g.Fallback,{children:`U`})]}),(0,D.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,D.jsx)(`p`,{className:`truncate font-medium`,children:`用户`}),(0,D.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]}),(0,D.jsx)(k,{className:`my-2`}),(0,D.jsx)(`p`,{className:`text-xs text-muted`,children:`当前身份:管理员`})]})})]})}),(0,D.jsx)(`nav`,{className:`flex flex-1 flex-col gap-1 overflow-y-auto px-3 py-3`,"aria-label":`主导航`,children:M.map(e=>{let r=e.icon,i=t===e.id;return(0,D.jsxs)(v,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:i?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":i?`page`:void 0,onPress:()=>n(e.id),children:[(0,D.jsx)(r,{size:20,className:T(`shrink-0 mr-3`,!i&&`text-muted`),"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:T(`truncate`,i&&`font-medium`),children:e.label})]},e.id)})}),(0,D.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1 px-3 py-3`,children:[(0,D.jsxs)(v,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:i,children:[(0,D.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,D.jsxs)(v,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:a,children:[(0,D.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,D.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})},P=({onToggleSidebar:t,sidebarCollapsed:n,currentMenuLabel:r})=>(0,D.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,D.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,D.jsx)(v,{isIconOnly:!0,variant:`ghost`,onPress:t,"aria-label":n?`展开侧边栏`:`折叠侧边栏`,"aria-expanded":!n,children:n?(0,D.jsx)(a,{size:20,"aria-hidden":`true`}):(0,D.jsx)(A,{size:20,"aria-hidden":`true`})}),n&&(0,D.jsxs)(D.Fragment,{children:[(0,D.jsx)(e,{size:24,"aria-hidden":`true`}),(0,D.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:`KKK Config`})]}),!n&&(0,D.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:r||`配置管理面板`})]}),(0,D.jsx)(i,{})]}),F=({activeMenu:e})=>(0,D.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-4`,children:(()=>{switch(e){case`config`:return(0,D.jsx)(y,{device:`desktop`});case`about`:return(0,D.jsx)(c,{});default:return(0,D.jsx)(y,{})}})()}),I=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],L=({activeMenu:e,onMenuChange:t})=>{let[n,{toggle:r}]=b(!1),i=(0,j.useRef)(null);return(0,j.useEffect)(()=>{i.current&&(n?x.to(i.current,{width:0,opacity:0,borderRightWidth:0,duration:.3,ease:`power2.inOut`,onComplete:()=>{i.current&&(i.current.style.display=`none`)}}):(i.current.style.display=`flex`,x.fromTo(i.current,{width:0,opacity:0,borderRightWidth:0},{width:260,opacity:1,borderRightWidth:1,duration:.3,ease:`power2.inOut`})))},[n]),(0,D.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,D.jsx)(`aside`,{ref:i,className:`flex h-full w-65 shrink-0 flex-col border-r border-default-100`,"aria-label":`侧边栏导航`,children:(0,D.jsx)(N,{collapsed:n,activeMenu:e,onMenuChange:t,onToggleCollapse:r})}),(0,D.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col overflow-hidden`,children:[(0,D.jsx)(`header`,{className:`flex h-16 shrink-0 items-center px-6`,children:(0,D.jsx)(P,{onToggleSidebar:r,sidebarCollapsed:n,currentMenuLabel:I.find(t=>t.id===e)?.label})}),(0,D.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-6`,id:`main-content`,children:(0,D.jsx)(`div`,{"data-scrollbar":`thin`,children:(0,D.jsx)(F,{activeMenu:e})})})]})]})};export{L as default};
@@ -1,2 +0,0 @@
1
- import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./AboutPanel-DFjZYu60.js";import{C as l,S as u,a as d,f,h as p,i as m,m as h,n as g,o as _,s as v,u as y,x as b,y as x}from"./index-CQhoJUBv.js";var S=d(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=l(u(),1),w=b(),T=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],E=({open:e,onClose:t,activeMenu:n,onMenuChange:i})=>{let a=v(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),c=v(()=>{m(),window.location.reload()});return(0,C.useEffect)(()=>{let n=n=>{n.key===`Escape`&&e&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,C.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,w.jsx)(f,{isOpen:e,onOpenChange:e=>{e||t()},children:(0,w.jsx)(f.Backdrop,{isDismissable:!0,className:`backdrop-blur-sm`,children:(0,w.jsx)(f.Content,{placement:`right`,children:(0,w.jsxs)(f.Dialog,{className:`px-4`,children:[(0,w.jsx)(f.Header,{className:`flex items-center justify-between pb-4`,children:(0,w.jsx)(f.CloseTrigger,{"aria-label":`关闭菜单`,className:`mr-2`,children:(0,w.jsx)(S,{size:24,"aria-hidden":`true`})})}),(0,w.jsxs)(f.Body,{className:`flex flex-col`,children:[(0,w.jsx)(`div`,{className:`shrink-0 pb-5`,children:(0,w.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[(0,w.jsxs)(p,{size:`md`,children:[(0,w.jsx)(p.Image,{src:o}),(0,w.jsx)(p.Fallback,{children:`ikenxuan`})]}),(0,w.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,w.jsx)(`p`,{className:`truncate text-sm font-medium`,children:`炫炫`}),(0,w.jsx)(`p`,{className:`truncate text-xs text-muted`,children:`Super Admin`})]})]})}),(0,w.jsx)(`nav`,{className:`flex flex-1 flex-col gap-2 overflow-y-auto`,"aria-label":`主导航`,children:T.map(e=>{let t=e.icon,r=n===e.id;return(0,w.jsxs)(h,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:r?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":r?`page`:void 0,onPress:()=>i(e.id),children:[(0,w.jsx)(t,{size:20,className:x(`shrink-0 mr-3`,!r&&`text-muted`),"aria-hidden":`true`}),(0,w.jsx)(`span`,{className:x(`truncate`,r&&`font-semibold`),children:e.label})]},e.id)})}),(0,w.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,w.jsxs)(h,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:a,children:[(0,w.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,w.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,w.jsxs)(h,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:c,children:[(0,w.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,w.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})]})})})})},D=({onOpenDrawer:t})=>(0,w.jsxs)(`div`,{className:`flex h-full items-center justify-between px-4`,children:[(0,w.jsx)(i,{className:`shrink-0`}),(0,w.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center justify-center gap-2 px-2`,children:[(0,w.jsx)(e,{size:22,"aria-hidden":`true`}),(0,w.jsx)(`h1`,{className:`truncate text-base font-semibold`,children:`KKK Config`})]}),(0,w.jsx)(h,{isIconOnly:!0,className:`shrink-0`,variant:`ghost`,onPress:t,"aria-label":`打开菜单`,"aria-expanded":!1,children:(0,w.jsx)(a,{size:24,"aria-hidden":`true`})})]}),O=({activeMenu:e})=>(0,w.jsx)(`div`,{className:`w-full max-w-2xl mx-auto`,children:(()=>{switch(e){case`config`:return(0,w.jsx)(g,{device:`mobile`});case`about`:return(0,w.jsx)(c,{});default:return(0,w.jsx)(g,{})}})()}),k=({activeMenu:e,onMenuChange:t})=>{let[n,{setTrue:r,setFalse:i}]=_(!1),a=v(e=>{t(e),i()});return(0,w.jsxs)(y,{"data-scrollbar":`thin`,className:`flex min-h-screen flex-col`,children:[(0,w.jsx)(`header`,{className:`sticky top-0 z-50 h-14 shrink-0 backdrop-blur-xs bg-white/60
2
- mask-[linear-gradient(to_bottom,black_40%,transparent_100%)]`,children:(0,w.jsx)(D,{onOpenDrawer:r})}),(0,w.jsx)(E,{open:n,onClose:i,activeMenu:e,onMenuChange:a}),(0,w.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-4`,id:`main-content`,children:(0,w.jsx)(O,{activeMenu:e})})]})};export{k as default};