2 lines
4.9 KiB
JavaScript
2 lines
4.9 KiB
JavaScript
import{_ as C,x as D,ar as F,hm as M,hn as A,b6 as P,f as N,c as V}from"./index-BTglIPU2.js?v=1773287522785";import{_ as z}from"./update-back-B_ypzosv.js?v=1773287522785";import{B as I}from"./details-iQhxmYqQ.js?v=1773287522785";import{k as G,R,c as i,r as j,ab as E,$ as u,Z as c,_ as e,aa as o,S as s,a0 as l,a9 as m,j as w,F as x,ak as O,X as L}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const T="data:image/svg+xml,%3csvg%20width='40'%20height='40'%20viewBox='0%200%2040%2040'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20filter='url(%23a)'%3e%3cpath%20d='M20%200a15.988%2015.988%200%200%201%2010.15%203.632A15.993%2015.993%200%200%201%2036%2016a15.98%2015.98%200%200%201-1.89%207.542%2015.956%2015.956%200%200%201-3.96%204.826%2016.015%2016.015%200%200%201-8.582%203.555%2016.007%2016.007%200%200%201-12.882-4.61%2015.98%2015.98%200%200%201-3.997-6.668%2015.98%2015.98%200%200%201-.381-7.766A15.971%2015.971%200%200%201%206.697%207.11%2016%2016%200%200%201%2020%200z'%20fill='%23D7FFDB'/%3e%3c/g%3e%3cpath%20d='M20%203.2a12.789%2012.789%200%200%201%208.12%202.905%2012.798%2012.798%200%200%201-1.009%2020.538%2012.764%2012.764%200%200%201-4.614%201.911%2012.789%2012.789%200%200%201-8.53-1.265%2012.764%2012.764%200%200%201-3.862-3.169%2012.796%2012.796%200%200%201-.748-15.23%2012.776%2012.776%200%200%201%204.61-4.178A12.806%2012.806%200%200%201%2020%203.2z'%20fill='%2323E249'%20opacity='.9'/%3e%3cpath%20d='m28.28%2012-9.464%209.6-.28.264-.28-.264-5.864-5.936%201.912-1.936%204.232%204.28L26.4%2010.04%2028.28%2012z'%20fill='%23FFF'/%3e%3cdefs%3e%3cfilter%20id='a'%20x='0'%20y='0'%20width='40'%20height='40'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='4'/%3e%3cfeGaussianBlur%20stdDeviation='1.333'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.12941%200%200%200%200%200.64706%200%200%200%200%200.23137%200%200%200%200.5%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect_dropShadow_1'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect_dropShadow_1'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e",X={class:"update-new"},Z={class:"update-head"},q={class:"relative pt-40px pb-24px z-20"},J={class:"update-title"},K={class:"leading-32px"},Q={class:"flex items-center justify-between mt-20px mb-30px px-32px text-14px"},W={key:0,class:"update-latest-bg"},Y={class:"mr-16px"},e0={class:"mr-16px"},t0=G({__name:"new",props:{info:{}},setup(U){const b=U,{t:h}=R(),{info:a}=b,r=i(()=>a.is_pro),p=i(()=>a.is_beta),g=i(()=>r.value?H.value:p.value?f.value:_.value),H=i(()=>({uptime:a.pro.uptime.replaceAll("/","-"),downUrl:a.pro.downUrl,version:a.pro.version,updateMsg:a.pro.updateMsg})),_=i(()=>({uptime:a.uptime.replaceAll("/","-"),downUrl:a.downUrl,version:a.version,updateMsg:a.updateMsg})),f=i(()=>({uptime:a.beta.uptime.replaceAll("/","-"),downUrl:a.beta.downUrl,version:a.beta.version,updateMsg:a.beta.updateMsg})),d=j(!1),$=()=>{d.value=!0},k=()=>{F({title:h("Home.Update.index_11"),content:h("Home.Update.index_14"),onConfirm:async()=>{await M(),await A(),await P(),N()}})};return(t,n)=>{const v=C,B=E("i18n-t"),y=D;return u(),c("div",X,[e("div",Z,o(t.$t("Home.Update.index_14",[s(r)?"Pro":s(p)?t.$t("Home.Update.index_7"):t.$t("Home.Update.index_8")])),1),n[2]||(n[2]=e("div",{class:"update-back"},[e("img",{class:"w-full",src:z,alt:""})],-1)),e("div",q,[e("div",J,[n[1]||(n[1]=e("img",{class:"w-32px mr-8px",src:T,alt:""},null,-1)),e("span",K,o(t.$t("Home.Update.index_2")),1)]),e("div",Q,[e("div",null,[e("span",null,o(t.$t("Home.Update.index_3")),1),l(v,{class:"color-[var(--home-update-bt-link-color)]",href:"https://www.yakpanel.com/forum/d/9-yakpanel-linux-panel-6-1-5-installation-tutorial/36",target:"_blank"},{default:m(()=>[w(o(t.$t("Public.Name"))+" "+o(s(r)?"Pro":s(p)?t.$t("Home.Update.index_7"):t.$t("Home.Update.index_8"))+" "+o(s(g).version),1)]),_:1})]),e("div",null,o(t.$t("Home.Update.index_4",[s(g).uptime])),1)]),s(r)?O("",!0):(u(),c("div",W,[s(p)?(u(),c(x,{key:1},[e("div",null,[e("span",e0,o(t.$t("Home.Update.index_10",[s(_).version])),1),e("span",null,o(t.$t("Home.Update.index_6",[s(_).uptime])),1)]),e("div",null,[l(v,{onClick:k},{default:m(()=>[w(o(t.$t("Home.Update.index_11")),1)]),_:1})])],64)):(u(),c(x,{key:0},[e("div",null,[e("span",Y,o(t.$t("Home.Update.index_5",[s(f).version])),1),e("span",null,o(t.$t("Home.Update.index_6",[s(f).uptime])),1)]),l(B,{tag:"div",scope:"global",keypath:"Home.Update.index_9_1"},{btn_:m(()=>[l(v,{onClick:$},{default:m(()=>[w(o(t.$t("Home.Update.index_9_2")),1)]),_:1})]),_:1})],64))]))]),l(y,{show:s(d),"onUpdate:show":n[0]||(n[0]=S=>L(d)?d.value=S:null),title:t.$t("Home.Update.index_12"),component:I},null,8,["show","title"])])}}}),r0=V(t0,[["__scopeId","data-v-ff930ff0"]]);export{r0 as default};
|