niucloud-admin/niucloud/public/admin/assets/overview-b8dd024e.js
2023-10-26 17:26:46 +08:00

2 lines
3.5 KiB
JavaScript

import"./base-0e92f4db.js";/* empty css *//* empty css */import{_ as C}from"./apply_empty-78684083.js";/* empty css *//* empty css *//* empty css */import{_ as I}from"./app_store_default-c4798c2d.js";import{t as i}from"./index-8f29cb04.js";import{g as S,Y as A}from"./index-9033603c.js";import{c as B}from"./common-46715e7e.js";import{a as F}from"./vue-router-8b032575.js";import{E as N}from"./index-e09a20f5.js";import{E as R}from"./index-2b1dc445.js";import{E as V}from"./index-39b9f241.js";import{E as D}from"./index-0caa5b89.js";import{v as z}from"./directive-c6f70b8e.js";import{d as j,r as q,M,L as P,b as m,e as _,f as t,x as o,u as e,q as d,p,F as T,t as U,m as Y,v as $,C as G,n as H,au as J,av as K}from"./runtime-core.esm-bundler-67034826.js";import{_ as O}from"./_plugin-vue_export-helper-c27b6911.js";import"./event-a537c4cb.js";import"./index-72686045.js";import"./index-81f2aa1e.js";import"./el-main-7a89c415.js";import"./index-ebd2990f.js";import"./el-overlay-3eff2fc5.js";import"./index-defed8ff.js";import"./focus-trap-83769a43.js";import"./index-6cae7119.js";import"./index-d87ae4a2.js";import"./el-form-item-c2dd2ffe.js";/* empty css *//* empty css */import"./index-e9d9b1a1.js";import"./index-8cefa3ab.js";import"./index-ef31373f.js";import"./index-de22cd40.js";import"./index-c7745eb3.js";import"./debounce-f6ba9d12.js";import"./position-c2e84b2a.js";const u=r=>(J("data-v-19b76bfb"),r=r(),K(),r),Q={class:"main-container"},W={class:"flex justify-between items-center"},X={class:"font-600 text-[20px] text-[#222]"},Z=u(()=>t("span",{class:"iconfont iconanzhuang mr-[9px]"},null,-1)),tt={class:"flex flex-wrap mt-[28px]"},ot=["onClick"],et={class:"flex items-center"},st=u(()=>t("div",{class:"image-slot"},[t("img",{class:"w-[40px] h-[40px] rounded-[8px]",src:I})],-1)),it={class:"flex-1 font-600 text-[14px] text-[#222] ml-[12px]"},pt={class:"font-500 text-[13px] text-[#6D7278] mt-[14px]"},rt=u(()=>t("div",{class:"w-[230px] mx-auto"},[t("img",{src:C,class:"max-w-full",alt:""})],-1)),at={class:"flex items-center"},nt=j({__name:"overview",setup(r){const x=F(),v=S(),s=q(!0),a=M({appList:[]});(()=>{s.value=!0,A().then(n=>{a.appList=n.data,s.value=!1}).catch(()=>{s.value=!1})})();const f=()=>{x.push("tools/app_store")},h=n=>{let l=v.addonIndexRoute[n];l?x.push({name:l}):f()},g=()=>{window.open("https://www.niucloud.com/app")};return(n,l)=>{const w=N,b=R,y=V,k=D,E=z;return P((m(),_("div",Q,[t("div",{class:H(["h-[480px] box-border px-[60px] pt-[40px]",a.appList.length?"overview-top":""])},[t("div",W,[t("div",X,o(e(i)("app")),1),d(w,{onClick:f},{default:p(()=>[Z,t("span",null,o(e(i)("installApp")),1)]),_:1})]),t("div",tt,[(m(!0),_(T,null,U(a.appList,(c,L)=>(m(),_("div",{key:L,class:"app-item w-[284px] box-border p-[18px] pb-[24px] bg-[#fff] rounded-[8px] cursor-pointer mr-[24px] mb-[24px]",onClick:mt=>h(c.key)},[t("div",et,[d(b,{class:"w-[40px] h-[40px] rounded-[8px]",src:e(B)(c.icon),fit:"contain"},{error:p(()=>[st]),_:2},1032,["src"]),t("div",it,o(c.title),1)]),t("div",pt,o(c.desc),1)],8,ot))),128)),!a.appList.length&&!s.value?(m(),Y(k,{key:0,class:"mx-auto overview-empty"},{image:p(()=>[rt]),description:p(()=>[t("p",at,[t("span",null,o(e(i)("descriptionLeft")),1),d(y,{type:"primary",onClick:g},{default:p(()=>[$(o(e(i)("link")),1)]),_:1}),t("span",null,o(e(i)("descriptionRight")),1)])]),_:1})):G("",!0)])],2)])),[[E,s.value]])}}});const Qt=O(nt,[["__scopeId","data-v-19b76bfb"]]);export{Qt as default};