Files
AllinSSL/frontend/static/js/useStore-4YHA15e6.js
chudong 85988ba8b6 【修复】图标和内容映射的问题,增加中文解释
【调整】ssh 部署下的参数,增加证书路径和密钥路径
【调整】移除表单内添加按钮的颜色内容
【修复】测试的 BUG 和部分调整判断逻辑
2025-05-07 18:07:01 +08:00

2 lines
942 B
JavaScript

import{u as e}from"./index-BSLywxSf.js";import{a}from"./setting-ByHDXnNk.js";import{m as t,s as o,r as l,w as n}from"./main-VX8JURFR.js";import{u as r}from"./index-Cmth8j_R.js";const s=t("layout-store",(()=>{const{handleError:t}=e(),o=r("layout-collapsed",!1),s=l([]),i=r("menu-active","home"),u=n((()=>"home"!==i.value?"var(--n-content-padding)":"0"));return{locales:r("locales-active","zhCN"),notifyProvider:s,isCollapsed:o,layoutPadding:u,menuActive:i,resetDataInfo:()=>{i.value="home",localStorage.removeItem("menu-active")},updateMenuActive:e=>{"logout"!==e&&(i.value=e)},toggleCollapse:()=>{o.value=!o.value},handleCollapse:()=>{o.value=!0},handleExpand:()=>{o.value=!1},fetchNotifyProvider:async()=>{try{const{data:e}=await a({p:1,search:"",limit:1e3}).fetch();s.value=[],s.value=null==e?void 0:e.map((e=>({label:e.name,value:e.id.toString(),type:e.type})))}catch(e){t(e)}}}})),i=()=>{const e=s();return{...e,...o(e)}};export{i as u};