PageSourceSearch

https://civtechalliance.org/static/js/appVersion-_PsKc98L.js

js civtechalliance.org collected 2026-10-07 14:46:02 UTC 2,303 bytes, 1 lines download raw bytes

1import{A as m,At as n,Ct as _,E as f,L as y,Ot as v,Q as g,Y as x,it as h}from"./vue.runtime.esm-bundler-BXOQDxND.js";import{n as w}from"./vue-i18n.runtime-B5CF65Os.js";import{t as p}from"./message-BWqmnC5I.js";import{t as l}from"./appConfig-edDTuM6C.js";import{t as d}from"./fixedParams-BM6IgRkA.js";y();_();var I={class:"ma-content-block lg:flex justify-between p-4"},N=Object.assign({name:"appConfig:appVersion"},{setup(A){const{t}=w(),s=n(),a=n({app_version:"",update_at:"",download_url:"",force_update:0,content:[{}],title:[{}]});x(async()=>{let r=await l.get("app_version");const e=r?.data&&!Array.isArray(r.data)?r.data:{},o=e.update_at?new Date(e.update_at):null;a.value.app_version=e.app_version??"",a.value.download_url=e.download_url??"",a.value.update_at=o&&!Number.isNaN(o.getTime())?o:"",a.value.force_update=e.force_update??0,a.value.title=Array.isArray(e.title)?e.title:[{}],a.value.content=Array.isArray(e.content)?e.content:[{}]});const u=v([{title:t("app.t20"),dataIndex:"app_version"},{title:t("app.t21"),dataIndex:"download_url"},{title:t("app.t22"),dataIndex:"update_at",formType:"date"},{title:t("app.t23"),dataIndex:"force_update",formType:"switch",checkedValue:1,uncheckedValue:0},{title:t("app.t01"),dataIndex:"title",formType:"children-form",type:"group",emptyRow:1,hide:!0,formList:[{title:t("app.t02"),dataIndex:"lang",search:!0,formType:"select",width:120,dict:{data:d.lang,translation:!0},addDefaultValue:"zh_CN"},{title:t("app.t03"),dataIndex:"text",formType:"textarea",autoSize:!0,commonRules:[{required:!0,message:t("app.t04")}]}]},{title:t("app.t24"),dataIndex:"content",formType:"children-form",type:"group",emptyRow:1,hide:!0,formList:[{title:t("app.t02"),dataIndex:"lang",search:!0,formType:"select",width:120,dict:{data:d.lang,translation:!0},addDefaultValue:"zh_CN"},{title:t("app.t03"),dataIndex:"text",formType:"textarea",autoSize:!0,commonRules:[{required:!0,message:t("app.t04")}]}]}]),i=r=>{r&&l.update("app_version",{value:a.value}).then(e=>{e.success&&p.success(e.message)}).catch(e=>{p.error(t("app.t25"))})};return(r,e)=>{const o=h("legacy-ma-form");return g(),f("div",I,[m(o,{modelValue:a.value,"onUpdate:modelValue":e[0]||(e[0]=c=>a.value=c),columns:u,ref_key:"crudForm",ref:s,onOnSubmit:i},null,8,["modelValue","columns"])])}}});export{N as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.