koishi-plugin-kkk 1.0.1 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # 更新日志
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### 变更
6
+ - 配置面板去掉了写死的用户信息块(原来侧栏一直显示「炫炫 / Super Admin / 当前身份:管理员」)。
7
+ - 面板内的 Karin 字样全部改成 Koishi(登录页「Karin 鉴权」、挂载到 Karin、发送方式说明等),
8
+ 「帮助文档」按钮改为指向本项目文档站。
9
+ - `config/default_config/*.yaml` 里描述字段的 Karin 字样同步改成 Koishi。
10
+
11
+ ### 新增
12
+ - `webUiAuth` 打开后,面板页面与静态资源同样要求登录 Koishi 控制台(未登录时连 `/kkk/assets/*` 也不放行);
13
+ 默认关闭,行为与之前一致(免登录)。
14
+
3
15
  ## 1.0.1
4
16
 
5
17
  ### 修复
@@ -1 +1 @@
1
- import{t as e}from"./separator-CxcFlCzz.js";import{a as t,c as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./ThemeSwitch-DFohhwd9.js";import{Bt as u,T as d,_ as f,a as p,gt as m,i as h,n as g,o as _,r as v,s as y,w as b,yt as x,zt as S}from"./index-BRROK0vh.js";var C=v(`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`}]]),w=u(S(),1),T=x(),E=({activeMenu:e})=>(0,T.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-4`,children:(()=>{switch(e){case`config`:return(0,T.jsx)(g,{device:`desktop`});case`about`:return(0,T.jsx)(s,{});default:return(0,T.jsx)(g,{device:`desktop`})}})()}),D=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],O=({collapsed:t,activeMenu:n,onMenuChange:r})=>{let o=y(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),s=y(()=>{p(),window.location.reload()});return t?null:(0,T.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,T.jsx)(`div`,{className:`shrink-0 px-4 pt-3 pb-2`,children:(0,T.jsxs)(f,{children:[(0,T.jsx)(f.Trigger,{"aria-label":`用户信息`,children:(0,T.jsxs)(`div`,{className:`flex w-full items-center gap-3 rounded-lg p-2 transition-colors hover:bg-default-100 cursor-pointer`,tabIndex:0,children:[(0,T.jsxs)(d,{size:`lg`,children:[(0,T.jsx)(d.Image,{src:a}),(0,T.jsx)(d.Fallback,{children:`ikenxuan`})]}),(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col items-start`,children:[(0,T.jsx)(`p`,{className:`truncate text-lg font-semibold`,children:`炫炫`}),(0,T.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]})}),(0,T.jsx)(f.Content,{className:`w-60`,children:(0,T.jsxs)(f.Dialog,{children:[(0,T.jsxs)(`div`,{className:`flex items-center gap-3 pb-3`,children:[(0,T.jsxs)(d,{size:`md`,children:[(0,T.jsx)(d.Image,{src:a}),(0,T.jsx)(d.Fallback,{children:`U`})]}),(0,T.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,T.jsx)(`p`,{className:`truncate font-medium`,children:`用户`}),(0,T.jsx)(`p`,{className:`truncate text-md text-muted`,children:`Super Admin`})]})]}),(0,T.jsx)(e,{className:`my-2`}),(0,T.jsx)(`p`,{className:`text-xs text-muted`,children:`当前身份:管理员`})]})})]})}),(0,T.jsx)(`nav`,{className:`flex flex-1 flex-col gap-1 overflow-y-auto px-3 py-3`,"aria-label":`主导航`,children:D.map(e=>{let t=e.icon,i=n===e.id;return(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:i?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":i?`page`:void 0,onPress:()=>r(e.id),children:[(0,T.jsx)(t,{size:20,className:m(`shrink-0 mr-3`,!i&&`text-muted`),"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:m(`truncate`,i&&`font-medium`),children:e.label})]},e.id)})}),(0,T.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1 px-3 py-3`,children:[(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,T.jsx)(i,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:s,children:[(0,T.jsx)(c,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})},k=({onToggleSidebar:e,sidebarCollapsed:n,currentMenuLabel:r})=>(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,T.jsx)(b,{isIconOnly:!0,variant:`ghost`,onPress:e,"aria-label":n?`展开侧边栏`:`折叠侧边栏`,"aria-expanded":!n,children:n?(0,T.jsx)(o,{size:20,"aria-hidden":`true`}):(0,T.jsx)(C,{size:20,"aria-hidden":`true`})}),n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(t,{size:24,"aria-hidden":`true`}),(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:`KKK Config`})]}),!n&&(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:r||`配置管理面板`})]}),(0,T.jsx)(l,{})]}),A=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],j=({activeMenu:e,onMenuChange:t})=>{let[n,{toggle:r}]=_(!1),i=(0,w.useRef)(null);return(0,w.useEffect)(()=>{i.current&&(n?h.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`,h.fromTo(i.current,{width:0,opacity:0,borderRightWidth:0},{width:260,opacity:1,borderRightWidth:1,duration:.3,ease:`power2.inOut`})))},[n]),(0,T.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,T.jsx)(`aside`,{ref:i,className:`flex h-full w-65 shrink-0 flex-col border-r border-default-100`,"aria-label":`侧边栏导航`,children:(0,T.jsx)(O,{collapsed:n,activeMenu:e,onMenuChange:t,onToggleCollapse:r})}),(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col overflow-hidden`,children:[(0,T.jsx)(`header`,{className:`flex h-16 shrink-0 items-center px-6`,children:(0,T.jsx)(k,{onToggleSidebar:r,sidebarCollapsed:n,currentMenuLabel:A.find(t=>t.id===e)?.label})}),(0,T.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-6`,id:`main-content`,children:(0,T.jsx)(`div`,{"data-scrollbar":`thin`,children:(0,T.jsx)(E,{activeMenu:e})})})]})]})};export{j as default};
1
+ import{t as e}from"./separator-CxcFlCzz.js";import{a as t,c as n,i as r,l as i,n as a,o,r as s,s as c,t as l}from"./ThemeSwitch-DFohhwd9.js";import{Bt as u,T as d,_ as f,a as p,gt as m,i as h,n as g,o as _,r as v,s as y,w as b,yt as x,zt as S}from"./index-BRROK0vh.js";var C=v(`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`}]]),w=u(S(),1),T=x(),E=({activeMenu:e})=>(0,T.jsx)(`div`,{className:`mx-auto w-full max-w-7xl px-4`,children:(()=>{switch(e){case`config`:return(0,T.jsx)(g,{device:`desktop`});case`about`:return(0,T.jsx)(s,{});default:return(0,T.jsx)(g,{device:`desktop`})}})()}),D=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],O=({collapsed:t,activeMenu:n,onMenuChange:r})=>{let o=y(()=>{window.open(`https://kkk.tangbot.xyz`,`_blank`,`noopener,noreferrer`)}),s=y(()=>{p(),window.location.reload()});return t?null:(0,T.jsxs)(`div`,{className:`flex h-full flex-col`,children:[(0,T.jsx)(`nav`,{className:`flex flex-1 flex-col gap-1 overflow-y-auto px-3 py-3`,"aria-label":`主导航`,children:D.map(e=>{let t=e.icon,i=n===e.id;return(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:i?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":i?`page`:void 0,onPress:()=>r(e.id),children:[(0,T.jsx)(t,{size:20,className:m(`shrink-0 mr-3`,!i&&`text-muted`),"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:m(`truncate`,i&&`font-medium`),children:e.label})]},e.id)})}),(0,T.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-1 px-3 py-3`,children:[(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,T.jsx)(i,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,T.jsxs)(b,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:s,children:[(0,T.jsx)(c,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,T.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})},k=({onToggleSidebar:e,sidebarCollapsed:n,currentMenuLabel:r})=>(0,T.jsxs)(`div`,{className:`flex w-full items-center justify-between`,children:[(0,T.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,T.jsx)(b,{isIconOnly:!0,variant:`ghost`,onPress:e,"aria-label":n?`展开侧边栏`:`折叠侧边栏`,"aria-expanded":!n,children:n?(0,T.jsx)(o,{size:20,"aria-hidden":`true`}):(0,T.jsx)(C,{size:20,"aria-hidden":`true`})}),n&&(0,T.jsxs)(T.Fragment,{children:[(0,T.jsx)(t,{size:24,"aria-hidden":`true`}),(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:`KKK Config`})]}),!n&&(0,T.jsx)(`h1`,{className:`truncate text-lg font-semibold`,children:r||`配置管理面板`})]}),(0,T.jsx)(l,{})]}),A=[{id:`config`,label:`配置管理`,icon:r},{id:`about`,label:`关于插件`,icon:n}],j=({activeMenu:e,onMenuChange:t})=>{let[n,{toggle:r}]=_(!1),i=(0,w.useRef)(null);return(0,w.useEffect)(()=>{i.current&&(n?h.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`,h.fromTo(i.current,{width:0,opacity:0,borderRightWidth:0},{width:260,opacity:1,borderRightWidth:1,duration:.3,ease:`power2.inOut`})))},[n]),(0,T.jsxs)(`div`,{className:`flex h-screen overflow-hidden`,children:[(0,T.jsx)(`aside`,{ref:i,className:`flex h-full w-65 shrink-0 flex-col border-r border-default-100`,"aria-label":`侧边栏导航`,children:(0,T.jsx)(O,{collapsed:n,activeMenu:e,onMenuChange:t,onToggleCollapse:r})}),(0,T.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col overflow-hidden`,children:[(0,T.jsx)(`header`,{className:`flex h-16 shrink-0 items-center px-6`,children:(0,T.jsx)(k,{onToggleSidebar:r,sidebarCollapsed:n,currentMenuLabel:A.find(t=>t.id===e)?.label})}),(0,T.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-6`,id:`main-content`,children:(0,T.jsx)(`div`,{"data-scrollbar":`thin`,children:(0,T.jsx)(E,{activeMenu:e})})})]})]})};export{j as default};
@@ -1 +1 @@
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"./ThemeSwitch-DFohhwd9.js";import{Bt as l,T as u,a as d,g as f,gt as p,n as m,o as h,r as g,s as _,v,w as y,yt as b,zt as x}from"./index-BRROK0vh.js";var S=g(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=b(),w=({activeMenu:e})=>(0,C.jsx)(`div`,{className:`w-full max-w-2xl mx-auto`,children:(()=>{switch(e){case`config`:return(0,C.jsx)(m,{device:`mobile`});case`about`:return(0,C.jsx)(o,{});default:return(0,C.jsx)(m,{device:`mobile`})}})()}),T=l(x(),1),E=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],D=({open:e,onClose:t,activeMenu:n,onMenuChange:a})=>{let o=_(()=>{window.open(`https://kkk.karinjs.com`,`_blank`,`noopener,noreferrer`)}),c=_(()=>{d(),window.location.reload()});return(0,T.useEffect)(()=>{let n=n=>{n.key===`Escape`&&e&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,T.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,C.jsx)(v.Backdrop,{isOpen:e,isDismissable:!0,className:`backdrop-blur-sm`,onOpenChange:e=>{e||t()},children:(0,C.jsx)(v.Content,{placement:`right`,children:(0,C.jsxs)(v.Dialog,{className:`px-4`,children:[(0,C.jsxs)(v.Header,{className:`flex items-center justify-between pb-4`,children:[(0,C.jsx)(v.Heading,{className:`text-lg font-semibold`,children:`菜单`}),(0,C.jsx)(v.CloseTrigger,{"aria-label":`关闭菜单`,className:`mr-2`,children:(0,C.jsx)(S,{size:24,"aria-hidden":`true`})})]}),(0,C.jsxs)(v.Body,{className:`flex flex-col`,children:[(0,C.jsx)(`div`,{className:`shrink-0 pb-5`,children:(0,C.jsxs)(`div`,{className:`flex items-center gap-3 px-1`,children:[(0,C.jsxs)(u,{size:`md`,children:[(0,C.jsx)(u.Image,{src:i}),(0,C.jsx)(u.Fallback,{children:`ikenxuan`})]}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 flex-col`,children:[(0,C.jsx)(`p`,{className:`truncate text-sm font-medium`,children:`炫炫`}),(0,C.jsx)(`p`,{className:`truncate text-xs text-muted`,children:`Super Admin`})]})]})}),(0,C.jsx)(`nav`,{className:`flex flex-1 flex-col gap-2 overflow-y-auto`,"aria-label":`主导航`,children:E.map(e=>{let t=e.icon,r=n===e.id;return(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:r?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":r?`page`:void 0,onPress:()=>a(e.id),children:[(0,C.jsx)(t,{size:20,className:p(`shrink-0 mr-3`,!r&&`text-muted`),"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:p(`truncate`,r&&`font-semibold`),children:e.label})]},e.id)})}),(0,C.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,C.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:c,children:[(0,C.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})]})})})},O=({onOpenDrawer:t})=>(0,C.jsxs)(`div`,{className:`flex h-full items-center justify-between px-4`,children:[(0,C.jsx)(c,{className:`shrink-0`}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center justify-center gap-2 px-2`,children:[(0,C.jsx)(e,{size:22,"aria-hidden":`true`}),(0,C.jsx)(`h1`,{className:`truncate text-base font-semibold`,children:`KKK Config`})]}),(0,C.jsx)(y,{isIconOnly:!0,className:`shrink-0`,variant:`ghost`,onPress:t,"aria-label":`打开菜单`,"aria-expanded":!1,children:(0,C.jsx)(a,{size:24,"aria-hidden":`true`})})]}),k=({activeMenu:e,onMenuChange:t})=>{let[n,{setTrue:r,setFalse:i}]=h(!1),a=_(e=>{t(e),i()});return(0,C.jsxs)(f,{"data-scrollbar":`thin`,className:`flex min-h-screen flex-col`,children:[(0,C.jsx)(`header`,{className:`sticky top-0 z-50 h-14 shrink-0 backdrop-blur-xs mask-[linear-gradient(to_bottom,black_40%,transparent_100%)]`,children:(0,C.jsx)(O,{onOpenDrawer:r})}),(0,C.jsx)(D,{open:n,onClose:i,activeMenu:e,onMenuChange:a}),(0,C.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-4`,id:`main-content`,children:(0,C.jsx)(w,{activeMenu:e})})]})};export{k as default};
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"./ThemeSwitch-DFohhwd9.js";import{Bt as l,T as u,a as d,g as f,gt as p,n as m,o as h,r as g,s as _,v,w as y,yt as b,zt as x}from"./index-BRROK0vh.js";var S=g(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),C=b(),w=({activeMenu:e})=>(0,C.jsx)(`div`,{className:`w-full max-w-2xl mx-auto`,children:(()=>{switch(e){case`config`:return(0,C.jsx)(m,{device:`mobile`});case`about`:return(0,C.jsx)(o,{});default:return(0,C.jsx)(m,{device:`mobile`})}})()}),T=l(x(),1),E=[{id:`config`,label:`配置管理`,icon:n},{id:`about`,label:`关于插件`,icon:t}],D=({open:e,onClose:t,activeMenu:n,onMenuChange:a})=>{let o=_(()=>{window.open(`https://kkk.tangbot.xyz`,`_blank`,`noopener,noreferrer`)}),c=_(()=>{d(),window.location.reload()});return(0,T.useEffect)(()=>{let n=n=>{n.key===`Escape`&&e&&t()};return window.addEventListener(`keydown`,n),()=>window.removeEventListener(`keydown`,n)},[e,t]),(0,T.useEffect)(()=>(e?document.body.style.overflow=`hidden`:document.body.style.overflow=``,()=>{document.body.style.overflow=``}),[e]),(0,C.jsx)(v.Backdrop,{isOpen:e,isDismissable:!0,className:`backdrop-blur-sm`,onOpenChange:e=>{e||t()},children:(0,C.jsx)(v.Content,{placement:`right`,children:(0,C.jsxs)(v.Dialog,{className:`px-4`,children:[(0,C.jsxs)(v.Header,{className:`flex items-center justify-between pb-4`,children:[(0,C.jsx)(v.Heading,{className:`text-lg font-semibold`,children:`菜单`}),(0,C.jsx)(v.CloseTrigger,{"aria-label":`关闭菜单`,className:`mr-2`,children:(0,C.jsx)(S,{size:24,"aria-hidden":`true`})})]}),(0,C.jsxs)(v.Body,{className:`flex flex-col`,children:[(0,C.jsx)(`nav`,{className:`flex flex-1 flex-col gap-2 overflow-y-auto`,"aria-label":`主导航`,children:E.map(e=>{let t=e.icon,r=n===e.id;return(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:r?`tertiary`:`ghost`,"aria-label":e.label,"aria-current":r?`page`:void 0,onPress:()=>a(e.id),children:[(0,C.jsx)(t,{size:20,className:p(`shrink-0 mr-3`,!r&&`text-muted`),"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:p(`truncate`,r&&`font-semibold`),children:e.label})]},e.id)})}),(0,C.jsxs)(`div`,{className:`flex shrink-0 flex-col gap-2`,children:[(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`查看帮助文档`,onPress:o,children:[(0,C.jsx)(r,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`帮助文档`})]}),(0,C.jsxs)(y,{fullWidth:!0,className:`justify-start`,size:`lg`,variant:`ghost`,"aria-label":`登出`,onPress:c,children:[(0,C.jsx)(s,{size:20,className:`shrink-0 mr-3 text-muted`,"aria-hidden":`true`}),(0,C.jsx)(`span`,{className:`truncate`,children:`登出`})]})]})]})]})})})},O=({onOpenDrawer:t})=>(0,C.jsxs)(`div`,{className:`flex h-full items-center justify-between px-4`,children:[(0,C.jsx)(c,{className:`shrink-0`}),(0,C.jsxs)(`div`,{className:`flex min-w-0 flex-1 items-center justify-center gap-2 px-2`,children:[(0,C.jsx)(e,{size:22,"aria-hidden":`true`}),(0,C.jsx)(`h1`,{className:`truncate text-base font-semibold`,children:`KKK Config`})]}),(0,C.jsx)(y,{isIconOnly:!0,className:`shrink-0`,variant:`ghost`,onPress:t,"aria-label":`打开菜单`,"aria-expanded":!1,children:(0,C.jsx)(a,{size:24,"aria-hidden":`true`})})]}),k=({activeMenu:e,onMenuChange:t})=>{let[n,{setTrue:r,setFalse:i}]=h(!1),a=_(e=>{t(e),i()});return(0,C.jsxs)(f,{"data-scrollbar":`thin`,className:`flex min-h-screen flex-col`,children:[(0,C.jsx)(`header`,{className:`sticky top-0 z-50 h-14 shrink-0 backdrop-blur-xs mask-[linear-gradient(to_bottom,black_40%,transparent_100%)]`,children:(0,C.jsx)(O,{onOpenDrawer:r})}),(0,C.jsx)(D,{open:n,onClose:i,activeMenu:e,onMenuChange:a}),(0,C.jsx)(`main`,{className:`scrollbar flex-1 overflow-y-auto p-4`,id:`main-content`,children:(0,C.jsx)(w,{activeMenu:e})})]})};export{k as default};
@@ -1 +1 @@
1
- import{C as e,m as t,r as n,t as r,u as i,w as a,yt as o}from"./index-BRROK0vh.js";var s=n(`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=n(`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=n(`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=n(`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=n(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=n(`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=n(`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=n(`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=n(`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=o(),_=()=>{let t=e=>{window.open(e,`_blank`)};return(0,g.jsxs)(e,{className:`mx-auto max-w-3xl`,children:[(0,g.jsxs)(e.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,g.jsx)(p,{size:64,"aria-hidden":`true`}),(0,g.jsx)(e.Title,{children:`karin-plugin-kkk`}),(0,g.jsx)(e.Description,{children:`版本 2.33.0`})]}),(0,g.jsxs)(e.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,g.jsx)(i,{children:`Karin 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,g.jsx)(i,{children:`ikenxuan, sj817`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,g.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,g.jsxs)(a,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,g.jsxs)(a,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})},v=`https://github.com/ikenxuan.png`,y=({className:e})=>{let{isDark:n,toggleTheme:i}=r();return(0,g.jsxs)(t,{delay:1,closeDelay:1,children:[(0,g.jsx)(a,{isIconOnly:!0,"aria-label":n?`切换到浅色模式`:`切换到深色模式`,className:e,variant:`ghost`,onPress:i,children:n?(0,g.jsx)(h,{size:20,"aria-hidden":`true`}):(0,g.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,g.jsx)(t.Content,{children:n?`浅色模式`:`深色模式`})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,_ as r,u as s,y as t};
1
+ import{C as e,m as t,r as n,t as r,u as i,w as a,yt as o}from"./index-BRROK0vh.js";var s=n(`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=n(`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=n(`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=n(`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=n(`menu`,[[`path`,{d:`M4 5h16`,key:`1tepv9`}],[`path`,{d:`M4 12h16`,key:`1lakjw`}],[`path`,{d:`M4 19h16`,key:`1djgab`}]]),f=n(`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=n(`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=n(`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=n(`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=o(),_=()=>{let t=e=>{window.open(e,`_blank`)};return(0,g.jsxs)(e,{className:`mx-auto max-w-3xl`,children:[(0,g.jsxs)(e.Header,{className:`items-center text-center gap-4 pt-8 pb-6`,children:[(0,g.jsx)(p,{size:64,"aria-hidden":`true`}),(0,g.jsx)(e.Title,{children:`karin-plugin-kkk`}),(0,g.jsx)(e.Description,{children:`版本 2.33.0`})]}),(0,g.jsxs)(e.Content,{className:`flex flex-col gap-6 pb-8`,children:[(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`插件简介`}),(0,g.jsx)(i,{children:`Koishi 的「抖音」「B站」视频解析/动态推送插件。 支持视频解析、动态推送、扫码登录等功能。`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`开发者`}),(0,g.jsx)(i,{children:`ikenxuan, sj817`})]}),(0,g.jsxs)(`section`,{children:[(0,g.jsx)(`h3`,{className:`mb-3 text-base font-semibold`,children:`相关链接`}),(0,g.jsxs)(`div`,{className:`mt-3 flex flex-wrap gap-3`,children:[(0,g.jsxs)(a,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`GitHub 仓库`})]}),(0,g.jsxs)(a,{variant:`outline`,onPress:()=>t(`https://github.com/ikenxuan/karin-plugin-kkk/issues`),children:[(0,g.jsx)(c,{size:18,"aria-hidden":`true`}),(0,g.jsx)(`span`,{children:`反馈问题`})]})]})]})]})]})},v=`https://github.com/ikenxuan.png`,y=({className:e})=>{let{isDark:n,toggleTheme:i}=r();return(0,g.jsxs)(t,{delay:1,closeDelay:1,children:[(0,g.jsx)(a,{isIconOnly:!0,"aria-label":n?`切换到浅色模式`:`切换到深色模式`,className:e,variant:`ghost`,onPress:i,children:n?(0,g.jsx)(h,{size:20,"aria-hidden":`true`}):(0,g.jsx)(f,{size:20,"aria-hidden":`true`})}),(0,g.jsx)(t.Content,{children:n?`浅色模式`:`深色模式`})]})};export{p as a,l as c,m as i,s as l,v as n,d as o,_ as r,u as s,y as t};