2 lines
7.8 KiB
JavaScript
2 lines
7.8 KiB
JavaScript
|
import{d as te,r,q as ae,n as j,N as c,a1 as H,y as se,h as n,c as k,I as x,w as a,a as e,u as i,i as d,e as s,t as _,B as E,F as oe,G as le,a7 as ne,a8 as ie,E as re,a2 as ce,a9 as pe,W as de,X as ue,$ as _e,Y as me,aa as xe,ab as he,ac as fe,a0 as ve,p as ge,g as ye,_ as we}from"./index-4dcc0234.js";/* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{g as ke,a as Ce,s as be}from"./module-874b1348.js";import{U as Ve,C as Fe}from"./index-3983f14a.js";import"./vue-web-terminal-6f196033.js";/* empty css *//* empty css *//* empty css */const g=C=>(ge("data-v-95ed21db"),C=C(),ye(),C),Be={class:"main main-container min-w-[1000px] min-h-[650px]"},Ie={class:"flex"},Ee={class:"bg-[#F3F6FF] mr-[14px] w-[402px] pt-[30px] pl-[32px] pr-[20px] pb-[60px] timeline-log-wrap"},Te={class:"flex items-center justify-between"},Ae=g(()=>e("span",{class:"text-[20px]"},"版本信息",-1)),Le={class:"flex-1 w-0 flex justify-end"},Se={class:"mt-[30px] flex items-center text-[14px] text-[#797979]"},ze=g(()=>e("span",null,"当前版本",-1)),De={class:"text-[26px] ml-[15px] mr-[10px] text-[#656668]"},Ne={key:0,class:"text-[12px]"},Re={key:1,class:"text-[12px] text-[red]"},Ue={class:"flex-1 flex justify-between items-center bg-[#F3F6FF] pt-[34px] pl-[30px] pr-[60px] pb-[62px] timeline-log-wrap"},je={class:"flex flex-col"},He={class:"flex flex-wrap items-center"},Pe=g(()=>e("p",{class:"text-[20px] mr-[20px]"},"授权信息",-1)),$e={class:"text-[14px] text-[#666]"},Me={class:"mt-[46px] ml-[40px] flex flex-wrap"},qe={class:"text-[14px] mr-[84px]"},Je={class:"ml-[12px] text-[12px]"},Oe={class:"text-[14px] flex items-center"},Ge=g(()=>e("span",null,"授权码",-1)),We={class:"ml-[12px] mr-[10px] text-[12px]"},Xe={class:"flex flex-1 flex-wrap justify-end relative"},Ye={class:"px-[18px] py-[8px]"},Ke=g(()=>e("p",{class:"leading-[32px] text-[14px]"},"您在官方应用市场购买任意一款应用,即可获得授权码。输入正确授权码认证通过后,即可支持在线升级和其它相关服务 ",-1)),Qe={class:"flex justify-end mt-[36px]"},Ze={class:"mt-[20px]"},et={class:"text-sm mt-[10px] text-info"},tt={class:"mt-[20px]"},at={class:"mt-[10px] text-right"},st=g(()=>e("div",{class:"text-[20px] mb-[20px]"},"历史版本",-1)),ot={key:0,class:"mt-[10px] p-[20px] bg-overlay rounded-md timeline-log-wrap whitespace-pre"},lt=["innerHTML"],nt=te({__name:"authorize",setup(C){const T=r(null),b=r(null),A=r(null),h=r(!1),f=r(!1),V=r([]),L=()=>{ke().then(({data:o})=>{V.value=o})};L();const m=ae(()=>V.value.length?V.value[0]:null),P=o=>{const t=JSON.parse(JSON.stringify(o));return t.slice(0,t.length/2)+t.slice(t.length/2,t.length-1).replace(/./g,"*")},B=()=>{h.value=!0},u=r({company_name:"",site_address:"",auth_code:""}),y=r(!0),w=r(!1),S=()=>{Ce().then(o=>{y.value=!1,o.data.data&&o.data.data.length!=0&&(u.value=o.data.data,h.value=!1)}).catch(()=>{y.value=!1,h.value=!1})};S();const v=j({auth_code:"",auth_secret:""}),z=r(),$=j({auth_code:[{required:!0,message:c("authCodePlaceholder"),trigger:"blur"}],auth_secret:[{required:!0,message:c("authSecretPlaceholder"),trigger:"blur"}]}),M=async o=>{w.value||!o||await o.validate(async t=>{t&&(w.value=!0,be(v).then(()=>{w.value=!1,S()}).catch(()=>{w.value=!1,h.value=!1}))})},D=()=>{window.open("https://www.niucloud.com/app")},F=r("");(()=>{ne().then(o=>{F.value=o.data.version.version})})();const q=()=>{var o;if(!u.value){B();return}(o=T.value)==null||o.open()},J=()=>{var o;if(!u.value){B();return}if(b.value.cloudBuildTask){(o=b.value)==null||o.open();return}ie.confirm(c("cloudBuildTips"),c("warning"),{confirmButtonText:c("confirm"),cancelButtonText:c("cancel"),type:"warning"}).then(()=>{var t;(t=b.value)==null||t.open()})};return(o,t)=>{const p=re,O=H("View"),N=ce,G=H("Hide"),W=pe,R=de,U=ue,I=_e
|