PageSourceSearch

https://d3xai.ai/assets/level-91KwELBs.js

js d3xai.ai collected 2026-10-05 12:02:01 UTC 3,967 bytes, 1 lines download raw bytes

1import{dY as e,cM as a,eJ as s,cW as t,da as l,eX as d,fs as i,ft as r,d_ as n,cN as o,eF as c,cP as u,cV as v,d4 as f,cT as p,cU as m,ev as x,ew as F,cS as b,cY as g,cR as C,db as w,d5 as y,dl as h,c$ as _,d2 as A,d1 as D,d3 as E,de as j}from"./index-Dmu6oiBK.js";import{C as k}from"./index-Cd2hLp3V.js";/* empty css              */import{B}from"./index-NqdnCNlF.js";import{s as S,a as V}from"./index-Cq03yJXE.js";import"./index-lUJYnyjZ.js";import"./mount-component-B56sttZr.js";const[L,U]=e("cell-group");const Y=n(a({name:L,inheritAttrs:!1,props:{title:String,inset:Boolean,border:s},setup(e,{slots:a,attrs:s}){const n=()=>{var l;return t("div",d({class:[U({inset:e.inset}),{[r]:e.border&&!e.inset}]},s,i()),[null==(l=a.default)?void 0:l.call(a)])};return()=>e.title||a.title?t(l,null,[t("div",{class:U("title",{inset:e.inset})},[a.title?a.title():e.title]),n()]):n()}})),G={key:0,class:"mt-3"},J={class:"text-xl font-bold text-center"},M={class:"text-blue-500 text-sm text-center"},N={class:"px-3 py-5"},P={class:"flex"},R=["placeholder"],T={class:"flex mt-3"},W=["placeholder"],X=a({__name:"level",setup(e){const{t:a}=o(),s=["0x799f31ccC94894a79856a1885F3a8f721FFe6036","0x38c6a0433fd546A153738ef4FB30ea08870c1Ca3","0xa90d665d416eBf21726E799A79052bb09F6E3232","0xa480EEB19a47520EdF6A2E82C07C5fB5AA4ebaf0","0xb155f1f7619a9b77CF70b1887c487Ad7be6a2254","0xb661Fea628ee14bDb27Fc6484Ea7a6C0f1C85468","0x495283afaC5ea6eD1656B2C5381715a28a246D66","0x3060e18D259F12FfCDd095b9576694C89D7Ae84D","0x80429ad0bb340aecF0713E82b123e3872c10ae0c"].map(e=>e.toLowerCase()),d=c().address,i=u(),r=h({address:"",level:0}),n=_([]),L=async()=>{var e;if(!d.value)return;if(!r.address)return S("请输入地址");if(r.level<1||r.level>5)return S(a("请输入")+"1-5"+a("之间的数字"));const s=V({message:a("加载中")+"...",forbidClick:!0,duration:1e4});try{const a={account:r.address,user:d.value,level:r.level,timestamp:~~(Date.now()/1e3),signature:""},t=d.value+a.timestamp.toString()+r.level.toString(),l=await D(i,{message:t});a.signature=l;const o=await A.SwaggerV3Api.post_api_admin_config_modifyAccountLevel(a);if(1!=(null==(e=o.data)?void 0:e.status))throw o;s.close(),S("设置成功");const c=n.value.find(e=>e.address==r.address);c?c.level=r.level:n.value.push({address:r.address,level:r.level})}catch(t){s.close(),S((null==t?void 0:t.message)||a("设置失败"))}};return(e,i)=>{var o;const c=B,u=k,h=Y;return v(s).includes((null==(o=v(d))?void 0:o.toLowerCase())||"")?(E(),f("div",G,[p("h1",J,m(v(a)("设置地址等级")),1),p("div",M,m(v(a)("等级范围"))+": 1-5",1),p("div",N,[p("div",P,[x(p("input",{type:"text","onUpdate:modelValue":i[0]||(i[0]=e=>r.address=e),class:"w-10 flex-1 px-2 bg-[#FFFFFF4D] text-white! rounded",placeholder:v(a)("请输入地址")},null,8,R),[[F,r.address]]),i[3]||(i[3]=p("div",{class:"ml-3"},null,-1)),t(c,{type:"primary",onClick:i[1]||(i[1]=e=>(async()=>{if(!d.value)return;if(!r.address)return S("请输入地址");const e=V({message:a("加载中")+"...",forbidClick:!0,duration:1e4});try{const a=await A.SwaggerV3Api.get_api_admin_config_getAccountLevel(r.address);if(0!=a.code)throw a;n.value=[{address:r.address,level:a.data.level}],e.close()}catch(s){e.close(),S((null==s?void 0:s.message)||a("获取失败"))}})())},{default:b(()=>[g(m(v(a)("查看等级")),1)]),_:1})]),p("div",T,[x(p("input",{type:"number","onUpdate:modelValue":i[2]||(i[2]=e=>r.level=e),class:"w-10 flex-1 px-2 bg-[#FFFFFF4D] text-white! rounded",placeholder:v(a)("请输入等级")},null,8,W),[[F,r.level]]),i[4]||(i[4]=p("div",{class:"ml-3"},null,-1)),t(c,{type:"primary",onClick:L},{default:b(()=>[g(m(v(a)("修改等级")),1)]),_:1})])]),n.value.length>0?(E(),C(h,{key:0,inset:""},{default:b(()=>[t(u,{title:v(a)("地址"),value:v(a)("等级")},null,8,["title","value"]),(E(!0),f(l,null,w(n.value,e=>(E(),C(u,{key:e.address,title:v(j)(e.address),value:e.level},null,8,["title","value"]))),128))]),_:1})):y("",!0)])):y("",!0)}}});export{X 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.