@vtechcom/hexcore 2.0.0-beta.1 → 2.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -2
- package/README.md +6 -3
- package/dist/cli/hexcore.js +113 -0
- package/dist/cli/hexcore.js.map +1 -1
- package/dist/config.js +1 -1
- package/dist/hydra/argv.js +10 -0
- package/dist/hydra/argv.js.map +1 -1
- package/dist/hydra/capabilities.js +3 -0
- package/dist/hydra/capabilities.js.map +1 -1
- package/node_modules/@hexcore/shared/dist/cjs/hydra-versions.d.ts +12 -6
- package/node_modules/@hexcore/shared/dist/cjs/hydra-versions.d.ts.map +1 -1
- package/node_modules/@hexcore/shared/dist/cjs/hydra-versions.js +119 -38
- package/node_modules/@hexcore/shared/dist/cjs/hydra-versions.js.map +1 -1
- package/node_modules/@hexcore/shared/dist/esm/hydra-versions.js +119 -38
- package/node_modules/@hexcore/shared/dist/esm/hydra-versions.js.map +1 -1
- package/package.json +2 -2
- package/web/200.html +20 -18
- package/web/404.html +20 -18
- package/web/_nuxt/{DgDlQiDU.js → B-lS44p0.js} +1 -1
- package/web/_nuxt/{CqsSss-D.js → B1NtJEdQ.js} +1 -1
- package/web/_nuxt/B1ZAR7mP.js +1 -0
- package/web/_nuxt/BFc_bxHc.js +1 -0
- package/web/_nuxt/BGGQYvrr.js +1 -0
- package/web/_nuxt/BPQ3VLAy.js +1 -0
- package/web/_nuxt/BV_QiRi8.js +1 -0
- package/web/_nuxt/BW_3NqYy.js +1 -0
- package/web/_nuxt/B_DikKgJ.js +1 -0
- package/web/_nuxt/B_Vrwblg.js +1 -0
- package/web/_nuxt/Bbbbx_yO.js +1 -0
- package/web/_nuxt/BeS-yS0C.js +1 -0
- package/web/_nuxt/{Onf26W-r.js → BfFJ09wD.js} +1 -1
- package/web/_nuxt/{rhEiP908.js → Bj1gglGt.js} +1 -1
- package/web/_nuxt/BkRxDbrA.js +1 -0
- package/web/_nuxt/Bmqx7s9K.js +1 -0
- package/web/_nuxt/BnZUk6sk.js +1 -0
- package/web/_nuxt/BqoV-QnQ.js +3 -0
- package/web/_nuxt/Bv47q1hu.js +1 -0
- package/web/_nuxt/Bz1eTnxX.js +1 -0
- package/web/_nuxt/{CkCrahXt.js → CAfY3dDF.js} +1 -1
- package/web/_nuxt/CBchb2Up.js +1 -0
- package/web/_nuxt/CEGGvSzA.js +1 -0
- package/web/_nuxt/CG6Dc4jp.js +1 -0
- package/web/_nuxt/{LGfPBi70.js → CH5xbifj.js} +1 -1
- package/web/_nuxt/CZFMOWPc.js +1 -0
- package/web/_nuxt/C_n__rkq.js +1 -0
- package/web/_nuxt/CaWYVaRD.js +1 -0
- package/web/_nuxt/ChS5Np24.js +1 -0
- package/web/_nuxt/Cp-IABpG.js +1 -0
- package/web/_nuxt/Cuk6v7N8.js +1 -0
- package/web/_nuxt/CzTJPvyS.js +1 -0
- package/web/_nuxt/D-Stn6KG.js +1 -0
- package/web/_nuxt/D7oLnXFd.js +1 -0
- package/web/_nuxt/DAHap_t6.js +1 -0
- package/web/_nuxt/DBL-cQio.js +1 -0
- package/web/_nuxt/DIi866IK.js +7 -0
- package/web/_nuxt/DMl_I_aT.js +1 -0
- package/web/_nuxt/Dd34_EaM.js +1 -0
- package/web/_nuxt/DlAUqK2U.js +1 -0
- package/web/_nuxt/DlHvzKYz.js +1 -0
- package/web/_nuxt/DmF-LwQa.js +1 -0
- package/web/_nuxt/DmPn-vCY.js +1 -0
- package/web/_nuxt/DsttYulo.js +1 -0
- package/web/_nuxt/{DL9i0ayn.js → DybEwxe5.js} +1 -1
- package/web/_nuxt/JXuauuVw.js +41 -0
- package/web/_nuxt/Yzrsuije.js +1 -0
- package/web/_nuxt/builds/latest.json +1 -1
- package/web/_nuxt/builds/meta/5b0a342e-aa78-42e7-89fa-ee280f32f47a.json +1 -0
- package/web/_nuxt/dhmyGJu2.js +1 -0
- package/web/_nuxt/entry.Q53uGRvC.css +1 -0
- package/web/_nuxt/error-404.DL126m4x.css +1 -0
- package/web/_nuxt/error-500.BUVIYHmG.css +1 -0
- package/web/_nuxt/{YUGC0nt0.js → hza_YA5H.js} +1 -1
- package/web/_nuxt/index.D8biniUe.css +1 -0
- package/web/_nuxt/vzCX1O3u.js +1 -0
- package/web/_nuxt/{CZK6xUH-.js → yhvT770r.js} +1 -1
- package/web/heads/index.html +20 -18
- package/web/heads/new/index.html +20 -18
- package/web/index.html +20 -18
- package/web/login/index.html +20 -18
- package/web/settings/index.html +20 -18
- package/web/setup/index.html +20 -18
- package/web/_nuxt/2MxohCD-.js +0 -1
- package/web/_nuxt/4pFXjB_u.js +0 -1
- package/web/_nuxt/B-v0dEQX.js +0 -1
- package/web/_nuxt/B4yE3U25.js +0 -1
- package/web/_nuxt/BFh8Ai0L.js +0 -1
- package/web/_nuxt/BgPn4NJH.js +0 -1
- package/web/_nuxt/Bj1xviSh.js +0 -1
- package/web/_nuxt/BnotlrL7.js +0 -1
- package/web/_nuxt/C1YRg2ic.js +0 -1
- package/web/_nuxt/CGD7MYQH.js +0 -1
- package/web/_nuxt/CQcG7Bu4.js +0 -1
- package/web/_nuxt/CS3KqpH_.js +0 -1
- package/web/_nuxt/CT-yt694.js +0 -1
- package/web/_nuxt/CcdyYRYz.js +0 -1
- package/web/_nuxt/CePNTU1S.js +0 -1
- package/web/_nuxt/CgPLsCeU.js +0 -5
- package/web/_nuxt/CnOqDT9k.js +0 -3
- package/web/_nuxt/Cr8dL64Q.js +0 -1
- package/web/_nuxt/D3CwzwU0.js +0 -1
- package/web/_nuxt/DDANn6-H.js +0 -1
- package/web/_nuxt/DDl9uKIA.js +0 -1
- package/web/_nuxt/DLNoK9BC.js +0 -1
- package/web/_nuxt/DLztFeOQ.js +0 -1
- package/web/_nuxt/DPihKXdt.js +0 -1
- package/web/_nuxt/DXyr6Naa.js +0 -1
- package/web/_nuxt/DeDg5p0D.js +0 -1
- package/web/_nuxt/DyPI7qJE.js +0 -30
- package/web/_nuxt/QZNQe_OX.js +0 -1
- package/web/_nuxt/Y8IJM-iz.js +0 -1
- package/web/_nuxt/builds/meta/7e461629-93e2-4694-b237-6d5c6a85c97c.json +0 -1
- package/web/_nuxt/builds/meta/dev.json +0 -1
- package/web/_nuxt/entry.BxsAxZxf.css +0 -1
- package/web/_nuxt/error-404.XbtAw-qw.css +0 -1
- package/web/_nuxt/error-500.CNHVltWM.css +0 -1
- package/web/_nuxt/rS90pPZ_.js +0 -1
- package/web/_nuxt/vSj9Ec0g.js +0 -1
- package/web/_nuxt/woNjBJMN.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e}from"./
|
|
1
|
+
import{c as e}from"./BV_QiRi8.js";const a=e("Trash2Icon",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);export{a as T};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as Y}from"./B_DikKgJ.js";import{_ as Z,a as ee,b as te,c as se,L as oe}from"./Bj1gglGt.js";import{e as ae,f as ne,u as le,s as re,h as ce,n as y,v as de,c as u,a as l,t as n,i as e,l as p,w as a,b as t,x as ie,r as ue,o as c,d as i,m,j as me,k as pe,F as _e,y as fe,z as ke,B as ve,C as he,q as g,A as we}from"./DIi866IK.js";import{_ as ye,a as xe}from"./ChS5Np24.js";import{_ as be,a as ge,b as Ue,c as Ve,d as Pe,e as Se}from"./BFc_bxHc.js";import{_ as $e}from"./BW_3NqYy.js";import{_ as Be}from"./DsttYulo.js";import{c as L,_ as Xe}from"./BV_QiRi8.js";import{_ as Ce}from"./BGGQYvrr.js";import{_ as Ne}from"./CAfY3dDF.js";import{_ as Ie}from"./vzCX1O3u.js";import{T as ze}from"./DybEwxe5.js";import"./BqoV-QnQ.js";import"./dhmyGJu2.js";import"./yhvT770r.js";const je=L("CircleCheckIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);const Ae=L("KeyRoundIcon",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]),Te={class:"w-full max-w-lg"},Le={class:"mb-6 flex flex-col items-center text-center"},Ee={class:"text-xl font-semibold tracking-tight"},Me={class:"text-sm text-muted-foreground"},Re={class:"flex items-start gap-3"},qe={class:"font-semibold"},De={class:"text-sm text-muted-foreground"},Fe={class:"mb-2"},Ke={key:1,class:"space-y-2"},He={class:"space-y-2"},Oe={class:"space-y-2"},Qe={class:"space-y-2"},Ge=["value"],Je={class:"min-w-0"},We={class:"flex flex-wrap items-center gap-2 text-sm font-medium"},Ye={class:"block text-xs text-muted-foreground"},Ze={class:"block text-xs text-muted-foreground/80"},et={key:2,class:"space-y-2"},tt={key:0,class:"text-xs text-destructive"},st={key:1,class:"text-xs text-muted-foreground"},ot={key:3,class:"space-y-2"},at={key:0,class:"text-xs text-destructive"},nt={class:"grid gap-4 sm:grid-cols-2"},lt={class:"space-y-2"},rt={class:"space-y-2"},ct={key:4,class:"space-y-2"},dt={key:0,class:"text-xs text-destructive"},it={key:1,class:"text-xs text-destructive"},ut={key:5,class:"text-xs text-muted-foreground"},mt={class:"mt-4 text-center text-xs text-muted-foreground"},Bt=ae({__name:"setup",setup(pt){const{t:o,locale:E}=ne();le({title:g(()=>o("setup.title"))});const x=re(),N=ce(),I=y(!0),b=y(!1),h=y(""),_=y({}),z=y(!1),k=y(typeof N.query.token=="string"?N.query.token:""),s=ie({network:"preprod",chainBackend:"offline",blockfrostProjectId:"",cardanoNodeSocket:"",adminUsername:"admin",adminPassword:"",confirmPassword:""}),M=[{value:"offline",key:"offline"},{value:"blockfrost",key:"blockfrost"},{value:"cardano-node",key:"cardanoNode"}];de(async()=>{try{const v=await x.fetchStatus();s.network=v.defaults.network,s.adminUsername=v.defaults.adminUsername||"admin"}catch{h.value=o("setup.unreachable")}finally{I.value=!1}});const U=g(()=>s.adminPassword.length>0&&s.adminPassword!==s.confirmPassword),V=g(()=>s.adminPassword.length>0&&s.adminPassword.length<8),R=g(()=>k.value.trim().length>0&&!U.value&&!V.value&&!b.value);async function q(){h.value="",_.value={},b.value=!0;try{await x.complete({setupToken:k.value.trim(),network:s.network,chainBackend:s.chainBackend,blockfrostProjectId:s.chainBackend==="blockfrost"?s.blockfrostProjectId.trim():"",cardanoNodeSocket:s.chainBackend==="cardano-node"?s.cardanoNodeSocket.trim():"",adminUsername:s.adminUsername.trim(),adminPassword:s.adminPassword||void 0}),z.value=!0}catch(v){v instanceof we?(h.value=v.message,_.value=v.fieldErrors):h.value=o("setup.failed")}finally{b.value=!1}}return(v,d)=>{const P=Y,S=ee,$=Z,j=be,D=$e,B=xe,X=ye,F=Be,A=Xe,f=te,w=se,K=Ve,H=Ue,C=Se,O=Pe,Q=ge,G=Ce,T=ue("i18n-t"),J=Ne;return c(),u("div",Te,[l("div",Le,[d[8]||(d[8]=l("img",{src:Ie,alt:"",class:"mb-3 size-14"},null,-1)),l("h1",Ee,n(e(o)("setup.title")),1),l("p",Me,n(e(o)("setup.subtitle")),1)]),e(I)?(c(),p($,{key:0},{default:a(()=>[t(S,{class:"space-y-3 pt-6"},{default:a(()=>[t(P,{class:"h-4 w-40"}),t(P,{class:"h-9 w-full"}),t(P,{class:"h-9 w-full"})]),_:1})]),_:1})):e(z)?(c(),p($,{key:1},{default:a(()=>[t(S,{class:"space-y-4 pt-6"},{default:a(()=>[l("div",Re,[t(e(je),{class:"mt-0.5 size-5 shrink-0 text-success"}),l("div",null,[l("h2",qe,n(e(o)("setup.done.title")),1),l("p",De,n(e(o)("setup.done.body")),1)])]),e(x).generatedPassword?(c(),p(X,{key:0},{default:a(()=>[t(j,{class:"flex items-center gap-2"},{default:a(()=>[t(e(Ae),{class:"size-4"}),i(" "+n(e(o)("setup.done.savePassword")),1)]),_:1}),t(B,null,{default:a(()=>[l("p",Fe,n(e(o)("setup.done.shownOnce")),1),t(D,{value:e(x).generatedPassword,label:e(o)("copy.labels.password")},null,8,["value","label"])]),_:1})]),_:1})):m("",!0),t(A,{class:"w-full","as-child":""},{default:a(()=>[t(F,{to:"/login"},{default:a(()=>[i(n(e(o)("login.submit")),1)]),_:1})]),_:1})]),_:1})]),_:1})):(c(),p($,{key:2},{default:a(()=>[t(S,{class:"pt-6"},{default:a(()=>[l("form",{class:"space-y-5",onSubmit:me(q,["prevent"])},[e(k).trim()?m("",!0):(c(),p(X,{key:0,variant:"destructive"},{default:a(()=>[t(j,{class:"flex items-center gap-2"},{default:a(()=>[t(e(ze),{class:"size-4"}),i(" "+n(e(o)("setup.token.required")),1)]),_:1}),t(B,null,{default:a(()=>[i(n(e(o)("setup.token.body")),1)]),_:1})]),_:1})),e(k).trim()?m("",!0):(c(),u("div",Ke,[t(f,{for:"token"},{default:a(()=>[i(n(e(o)("setup.token.label")),1)]),_:1}),t(w,{id:"token",modelValue:e(k),"onUpdate:modelValue":d[0]||(d[0]=r=>pe(k)?k.value=r:null),autocomplete:"off",spellcheck:"false",class:"font-mono"},null,8,["modelValue"])])),l("div",He,[t(f,{for:"network"},{default:a(()=>[i(n(e(o)("settings.chain.network")),1)]),_:1}),(c(),p(Q,{id:"network",key:e(E),modelValue:e(s).network,"onUpdate:modelValue":d[1]||(d[1]=r=>e(s).network=r)},{default:a(()=>[t(H,{class:"w-full"},{default:a(()=>[t(K)]),_:1}),t(O,null,{default:a(()=>[t(C,{value:"preprod"},{default:a(()=>[i(n(e(o)("setup.networks.preprod")),1)]),_:1}),t(C,{value:"preview"},{default:a(()=>[i(n(e(o)("setup.networks.preview")),1)]),_:1}),t(C,{value:"mainnet"},{default:a(()=>[i(n(e(o)("setup.networks.mainnet")),1)]),_:1})]),_:1})]),_:1},8,["modelValue"]))]),l("div",Oe,[t(f,null,{default:a(()=>[i(n(e(o)("setup.backendQuestion")),1)]),_:1}),l("div",Qe,[(c(),u(_e,null,fe(M,r=>l("label",{key:r.value,class:ke(["flex cursor-pointer items-start gap-3 rounded-md border p-3 transition-colors",e(s).chainBackend===r.value?"border-primary bg-muted/40":"hover:bg-muted/30"])},[ve(l("input",{"onUpdate:modelValue":d[2]||(d[2]=W=>e(s).chainBackend=W),type:"radio",value:r.value,class:"mt-1 size-4 accent-primary"},null,8,Ge),[[he,e(s).chainBackend]]),l("span",Je,[l("span",We,[i(n(e(o)(`setup.backends.${r.key}.label`))+" ",1),r.value==="offline"?(c(),p(G,{key:0,tone:"success",label:e(o)("setup.noCredential"),plain:""},null,8,["label"])):m("",!0)]),l("span",Ye,n(e(o)(`setup.backends.${r.key}.blurb`)),1),l("span",Ze,n(e(o)("setup.needs",{what:e(o)(`setup.backends.${r.key}.needs`)})),1)])],2)),64))])]),e(s).chainBackend==="blockfrost"?(c(),u("div",et,[t(f,{for:"blockfrost"},{default:a(()=>[i(n(e(o)("settings.chain.blockfrost")),1)]),_:1}),t(w,{id:"blockfrost",modelValue:e(s).blockfrostProjectId,"onUpdate:modelValue":d[3]||(d[3]=r=>e(s).blockfrostProjectId=r),placeholder:`${e(s).network}XXXXXXXXXXXXXXXXXXXX`,autocomplete:"off",spellcheck:"false",class:"font-mono","aria-invalid":!!e(_).blockfrostProjectId},null,8,["modelValue","placeholder","aria-invalid"]),e(_).blockfrostProjectId?(c(),u("p",tt,n(e(_).blockfrostProjectId),1)):(c(),u("p",st,[t(T,{keypath:"setup.blockfrostHint",scope:"global"},{network:a(()=>[l("b",null,n(e(s).network),1)]),_:1})]))])):m("",!0),e(s).chainBackend==="cardano-node"?(c(),u("div",ot,[t(f,{for:"socket"},{default:a(()=>[i(n(e(o)("setup.socketPath")),1)]),_:1}),t(w,{id:"socket",modelValue:e(s).cardanoNodeSocket,"onUpdate:modelValue":d[4]||(d[4]=r=>e(s).cardanoNodeSocket=r),placeholder:"/run/cardano/node.socket",autocomplete:"off",spellcheck:"false",class:"font-mono","aria-invalid":!!e(_).cardanoNodeSocket},null,8,["modelValue","aria-invalid"]),e(_).cardanoNodeSocket?(c(),u("p",at,n(e(_).cardanoNodeSocket),1)):m("",!0)])):m("",!0),t(J),l("div",nt,[l("div",lt,[t(f,{for:"username"},{default:a(()=>[i(n(e(o)("settings.adminUsername")),1)]),_:1}),t(w,{id:"username",modelValue:e(s).adminUsername,"onUpdate:modelValue":d[5]||(d[5]=r=>e(s).adminUsername=r),autocomplete:"username"},null,8,["modelValue"])]),l("div",rt,[t(f,{for:"password"},{default:a(()=>[i(n(e(o)("login.password")),1)]),_:1}),t(w,{id:"password",modelValue:e(s).adminPassword,"onUpdate:modelValue":d[6]||(d[6]=r=>e(s).adminPassword=r),type:"password",autocomplete:"new-password",placeholder:e(o)("setup.password.placeholder"),"aria-invalid":e(V)},null,8,["modelValue","placeholder","aria-invalid"])])]),e(s).adminPassword?(c(),u("div",ct,[t(f,{for:"confirm"},{default:a(()=>[i(n(e(o)("setup.password.confirm")),1)]),_:1}),t(w,{id:"confirm",modelValue:e(s).confirmPassword,"onUpdate:modelValue":d[7]||(d[7]=r=>e(s).confirmPassword=r),type:"password",autocomplete:"new-password","aria-invalid":e(U)},null,8,["modelValue","aria-invalid"]),e(V)?(c(),u("p",dt,n(e(o)("setup.password.tooShort")),1)):e(U)?(c(),u("p",it,n(e(o)("setup.password.mismatch")),1)):m("",!0)])):(c(),u("p",ut,n(e(o)("setup.password.generated")),1)),e(h)?(c(),p(X,{key:6,variant:"destructive"},{default:a(()=>[t(B,null,{default:a(()=>[i(n(e(h)),1)]),_:1})]),_:1})):m("",!0),t(A,{type:"submit",class:"w-full",disabled:!e(R)},{default:a(()=>[e(b)?(c(),p(e(oe),{key:0,class:"size-4 animate-spin"})):m("",!0),i(" "+n(e(o)("setup.submit")),1)]),_:1},8,["disabled"])],32)]),_:1})]),_:1})),l("p",mt,[t(T,{keypath:"setup.footer",scope:"global"},{command:a(()=>[...d[9]||(d[9]=[l("code",{class:"bg-muted text-foreground rounded px-1 py-0.5 font-mono"},"hexcore init",-1)])]),_:1})])])}}});export{Bt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as o}from"./JXuauuVw.js";import"./DsttYulo.js";import"./DIi866IK.js";import"./BV_QiRi8.js";import"./Bj1gglGt.js";import"./B_DikKgJ.js";import"./BGGQYvrr.js";import"./ChS5Np24.js";import"./BFc_bxHc.js";import"./BqoV-QnQ.js";import"./dhmyGJu2.js";import"./yhvT770r.js";import"./D-Stn6KG.js";import"./DmPn-vCY.js";import"./DAHap_t6.js";import"./BW_3NqYy.js";import"./DlHvzKYz.js";import"./BnZUk6sk.js";import"./B1ZAR7mP.js";import"./DlAUqK2U.js";import"./B1NtJEdQ.js";import"./CAfY3dDF.js";import"./Bz1eTnxX.js";import"./CH5xbifj.js";export{o as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as P}from"./DsttYulo.js";import{c as w,r as j,a as H,P as I,b as q,_ as F}from"./BV_QiRi8.js";import{e as $,o as i,l as v,w as a,D as B,L as M,i as e,g as W,h as E,f as R,c as _,a as s,b as t,t as r,F as y,y as G,W as J,d as u,m as g,q as k}from"./DIi866IK.js";import{_ as K}from"./BGGQYvrr.js";import{_ as Q,a as X,b as Y,c as Z,d as ee}from"./B_Vrwblg.js";import{a as te,_ as ae}from"./ChS5Np24.js";import{_ as se}from"./vzCX1O3u.js";import{u as oe}from"./BnZUk6sk.js";import{N as ne}from"./B-lS44p0.js";import{T as re}from"./DybEwxe5.js";import"./BqoV-QnQ.js";import"./yhvT770r.js";const ie=w("LogOutIcon",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);const le=w("SettingsIcon",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),ce=$({__name:"Badge",props:{asChild:{type:Boolean},as:{},variant:{},class:{type:[Boolean,null,String,Object,Array]}},setup(m){const l=m,f=j(l,"class");return(p,o)=>(i(),v(e(I),M({"data-slot":"badge",class:e(H)(e(de)({variant:m.variant}),l.class)},e(f)),{default:a(()=>[B(p.$slots,"default")]),_:3},16,["class"]))}}),de=q("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}}),ue={class:"min-h-screen flex flex-col"},_e={class:"border-b bg-card"},me={class:"mx-auto flex h-16 max-w-6xl items-center justify-between gap-4 px-6"},fe={class:"flex items-center gap-6"},pe={class:"leading-tight"},ge={class:"block text-[11px] text-muted-foreground"},ve={class:"hidden items-center gap-1 sm:flex"},he={class:"flex items-center gap-2"},be={class:"flex w-full max-w-6xl items-start gap-2 px-6"},xe={class:"font-semibold"},ye={key:0,class:"mt-0.5 block text-xs opacity-80"},ke={class:"mx-auto w-full max-w-6xl flex-1 px-6 py-8"},Oe=$({__name:"default",setup(m){const l=W(),f=oe(),p=E(),{t:o}=R(),z=[{to:"/heads",label:"layout.nav.heads",icon:ne},{to:"/settings",label:"layout.nav.settings",icon:le}],n=k(()=>f.health),U=k(()=>n.value&&!n.value.docker.ok);return(V,c)=>{const h=P,b=F,x=ce,S=K,N=Q,T=Y,A=Z,C=X,L=ee,O=te,D=ae;return i(),_("div",ue,[s("header",_e,[s("div",me,[s("div",fe,[t(h,{to:"/heads",class:"flex items-center gap-2.5 rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring"},{default:a(()=>[c[2]||(c[2]=s("img",{src:se,alt:"",class:"size-8"},null,-1)),s("span",pe,[c[1]||(c[1]=s("span",{class:"block font-semibold tracking-tight"},"Hexcore",-1)),s("span",ge,r(e(o)("layout.tagline")),1)])]),_:1}),s("nav",ve,[(i(),_(y,null,G(z,d=>t(b,{key:d.to,variant:e(p).path.startsWith(d.to)?"secondary":"ghost",size:"sm","as-child":""},{default:a(()=>[t(h,{to:d.to},{default:a(()=>[(i(),v(J(d.icon),{class:"size-4"})),u(" "+r(e(o)(d.label)),1)]),_:2},1032,["to"])]),_:2},1032,["variant"])),64))])]),s("div",he,[e(n)?(i(),_(y,{key:0},[t(x,{variant:"secondary",class:"hidden font-normal md:inline-flex"},{default:a(()=>[u(r(e(n).network),1)]),_:1}),t(x,{variant:"secondary",class:"hidden font-normal md:inline-flex"},{default:a(()=>[u(r(e(n).chainBackend),1)]),_:1}),t(S,{label:e(n).docker.ok?e(o)("layout.dockerHealthy"):e(o)("layout.dockerDown"),tone:e(n).docker.ok?"success":"danger",title:e(n).docker.error},null,8,["label","tone","title"])],64)):g("",!0),t(N),t(L,{"delay-duration":300},{default:a(()=>[t(C,null,{default:a(()=>[t(T,{"as-child":""},{default:a(()=>[t(b,{variant:"ghost",size:"icon","aria-label":e(o)("layout.signOut"),onClick:c[0]||(c[0]=d=>e(l).logout())},{default:a(()=>[t(e(ie),{class:"size-4"})]),_:1},8,["aria-label"])]),_:1}),t(A,null,{default:a(()=>[u(r(e(l).username?e(o)("layout.signOutAs",{user:e(l).username}):e(o)("layout.signOut")),1)]),_:1})]),_:1})]),_:1})])])]),e(U)?(i(),v(D,{key:0,variant:"destructive",class:"flex justify-center rounded-none border-x-0 border-t-0"},{default:a(()=>[s("div",be,[t(e(re),{class:"mt-0.5 size-4 shrink-0"}),t(O,{class:"min-w-0 flex-1"},{default:a(()=>[s("b",xe,r(e(o)("layout.dockerUnreachable")),1),u(" "+r(e(o)("layout.dockerUnreachableBody"))+" ",1),e(n)?.docker.error?(i(),_("span",ye,r(e(n).docker.error),1)):g("",!0)]),_:1})])]),_:1})):g("",!0),s("main",ke,[B(V.$slots,"default")])])}}});export{Oe as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,b as p}from"./BV_QiRi8.js";import{e as l,c as n,D as o,z as c,i as r,o as i}from"./DIi866IK.js";const f=l({__name:"Alert",props:{class:{type:[Boolean,null,String,Object,Array]},variant:{}},setup(t){const a=t;return(e,d)=>(i(),n("div",{"data-slot":"alert",class:c(r(s)(r(u)({variant:t.variant}),a.class)),role:"alert"},[o(e.$slots,"default")],2))}}),m=l({__name:"AlertDescription",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(t){const a=t;return(e,d)=>(i(),n("div",{"data-slot":"alert-description",class:c(r(s)("text-muted-foreground col-start-2 text-sm [&_p]:leading-relaxed",a.class))},[o(e.$slots,"default")],2))}}),u=p("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});export{f as _,m as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const n=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^]\\\\s]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[Ee][-+]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"include":"#value"},{"match":"[^,\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^}\\\\s]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"/\\\\\\\\bfnrt]|u\\\\h{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),e=[n];export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f78166","activityBar.background":"#0d1117","activityBar.border":"#30363d","activityBar.foreground":"#e6edf3","activityBar.inactiveForeground":"#7d8590","activityBarBadge.background":"#1f6feb","activityBarBadge.foreground":"#ffffff","badge.background":"#1f6feb","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#7d8590","breadcrumb.focusForeground":"#e6edf3","breadcrumb.foreground":"#7d8590","breadcrumbPicker.background":"#161b22","button.background":"#238636","button.foreground":"#ffffff","button.hoverBackground":"#2ea043","button.secondaryBackground":"#282e33","button.secondaryForeground":"#c9d1d9","button.secondaryHoverBackground":"#30363d","checkbox.background":"#161b22","checkbox.border":"#30363d","debugConsole.errorForeground":"#ffa198","debugConsole.infoForeground":"#8b949e","debugConsole.sourceForeground":"#e3b341","debugConsole.warningForeground":"#d29922","debugConsoleInputIcon.foreground":"#bc8cff","debugIcon.breakpointForeground":"#f85149","debugTokenExpression.boolean":"#56d364","debugTokenExpression.error":"#ffa198","debugTokenExpression.name":"#79c0ff","debugTokenExpression.number":"#56d364","debugTokenExpression.string":"#a5d6ff","debugTokenExpression.value":"#a5d6ff","debugToolBar.background":"#161b22","descriptionForeground":"#7d8590","diffEditor.insertedLineBackground":"#23863626","diffEditor.insertedTextBackground":"#3fb9504d","diffEditor.removedLineBackground":"#da363326","diffEditor.removedTextBackground":"#ff7b724d","dropdown.background":"#161b22","dropdown.border":"#30363d","dropdown.foreground":"#e6edf3","dropdown.listBackground":"#161b22","editor.background":"#0d1117","editor.findMatchBackground":"#9e6a03","editor.findMatchHighlightBackground":"#f2cc6080","editor.focusedStackFrameHighlightBackground":"#2ea04366","editor.foldBackground":"#6e76811a","editor.foreground":"#e6edf3","editor.lineHighlightBackground":"#6e76811a","editor.linkedEditingBackground":"#2f81f712","editor.selectionHighlightBackground":"#3fb95040","editor.stackFrameHighlightBackground":"#bb800966","editor.wordHighlightBackground":"#6e768180","editor.wordHighlightBorder":"#6e768199","editor.wordHighlightStrongBackground":"#6e76814d","editor.wordHighlightStrongBorder":"#6e768199","editorBracketHighlight.foreground1":"#79c0ff","editorBracketHighlight.foreground2":"#56d364","editorBracketHighlight.foreground3":"#e3b341","editorBracketHighlight.foreground4":"#ffa198","editorBracketHighlight.foreground5":"#ff9bce","editorBracketHighlight.foreground6":"#d2a8ff","editorBracketHighlight.unexpectedBracket.foreground":"#7d8590","editorBracketMatch.background":"#3fb95040","editorBracketMatch.border":"#3fb95099","editorCursor.foreground":"#2f81f7","editorGroup.border":"#30363d","editorGroupHeader.tabsBackground":"#010409","editorGroupHeader.tabsBorder":"#30363d","editorGutter.addedBackground":"#2ea04366","editorGutter.deletedBackground":"#f8514966","editorGutter.modifiedBackground":"#bb800966","editorIndentGuide.activeBackground":"#e6edf33d","editorIndentGuide.background":"#e6edf31f","editorInlayHint.background":"#8b949e33","editorInlayHint.foreground":"#7d8590","editorInlayHint.paramBackground":"#8b949e33","editorInlayHint.paramForeground":"#7d8590","editorInlayHint.typeBackground":"#8b949e33","editorInlayHint.typeForeground":"#7d8590","editorLineNumber.activeForeground":"#e6edf3","editorLineNumber.foreground":"#6e7681","editorOverviewRuler.border":"#010409","editorWhitespace.foreground":"#484f58","editorWidget.background":"#161b22","errorForeground":"#f85149","focusBorder":"#1f6feb","foreground":"#e6edf3","gitDecoration.addedResourceForeground":"#3fb950","gitDecoration.conflictingResourceForeground":"#db6d28","gitDecoration.deletedResourceForeground":"#f85149","gitDecoration.ignoredResourceForeground":"#6e7681","gitDecoration.modifiedResourceForeground":"#d29922","gitDecoration.submoduleResourceForeground":"#7d8590","gitDecoration.untrackedResourceForeground":"#3fb950","icon.foreground":"#7d8590","input.background":"#0d1117","input.border":"#30363d","input.foreground":"#e6edf3","input.placeholderForeground":"#6e7681","keybindingLabel.foreground":"#e6edf3","list.activeSelectionBackground":"#6e768166","list.activeSelectionForeground":"#e6edf3","list.focusBackground":"#388bfd26","list.focusForeground":"#e6edf3","list.highlightForeground":"#2f81f7","list.hoverBackground":"#6e76811a","list.hoverForeground":"#e6edf3","list.inactiveFocusBackground":"#388bfd26","list.inactiveSelectionBackground":"#6e768166","list.inactiveSelectionForeground":"#e6edf3","minimapSlider.activeBackground":"#8b949e47","minimapSlider.background":"#8b949e33","minimapSlider.hoverBackground":"#8b949e3d","notificationCenterHeader.background":"#161b22","notificationCenterHeader.foreground":"#7d8590","notifications.background":"#161b22","notifications.border":"#30363d","notifications.foreground":"#e6edf3","notificationsErrorIcon.foreground":"#f85149","notificationsInfoIcon.foreground":"#2f81f7","notificationsWarningIcon.foreground":"#d29922","panel.background":"#010409","panel.border":"#30363d","panelInput.border":"#30363d","panelTitle.activeBorder":"#f78166","panelTitle.activeForeground":"#e6edf3","panelTitle.inactiveForeground":"#7d8590","peekViewEditor.background":"#6e76811a","peekViewEditor.matchHighlightBackground":"#bb800966","peekViewResult.background":"#0d1117","peekViewResult.matchHighlightBackground":"#bb800966","pickerGroup.border":"#30363d","pickerGroup.foreground":"#7d8590","progressBar.background":"#1f6feb","quickInput.background":"#161b22","quickInput.foreground":"#e6edf3","scrollbar.shadow":"#484f5833","scrollbarSlider.activeBackground":"#8b949e47","scrollbarSlider.background":"#8b949e33","scrollbarSlider.hoverBackground":"#8b949e3d","settings.headerForeground":"#e6edf3","settings.modifiedItemIndicator":"#bb800966","sideBar.background":"#010409","sideBar.border":"#30363d","sideBar.foreground":"#e6edf3","sideBarSectionHeader.background":"#010409","sideBarSectionHeader.border":"#30363d","sideBarSectionHeader.foreground":"#e6edf3","sideBarTitle.foreground":"#e6edf3","statusBar.background":"#0d1117","statusBar.border":"#30363d","statusBar.debuggingBackground":"#da3633","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#1f6feb80","statusBar.foreground":"#7d8590","statusBar.noFolderBackground":"#0d1117","statusBarItem.activeBackground":"#e6edf31f","statusBarItem.focusBorder":"#1f6feb","statusBarItem.hoverBackground":"#e6edf314","statusBarItem.prominentBackground":"#6e768166","statusBarItem.remoteBackground":"#30363d","statusBarItem.remoteForeground":"#e6edf3","symbolIcon.arrayForeground":"#f0883e","symbolIcon.booleanForeground":"#58a6ff","symbolIcon.classForeground":"#f0883e","symbolIcon.colorForeground":"#79c0ff","symbolIcon.constantForeground":["#aff5b4","#7ee787","#56d364","#3fb950","#2ea043","#238636","#196c2e","#0f5323","#033a16","#04260f"],"symbolIcon.constructorForeground":"#d2a8ff","symbolIcon.enumeratorForeground":"#f0883e","symbolIcon.enumeratorMemberForeground":"#58a6ff","symbolIcon.eventForeground":"#6e7681","symbolIcon.fieldForeground":"#f0883e","symbolIcon.fileForeground":"#d29922","symbolIcon.folderForeground":"#d29922","symbolIcon.functionForeground":"#bc8cff","symbolIcon.interfaceForeground":"#f0883e","symbolIcon.keyForeground":"#58a6ff","symbolIcon.keywordForeground":"#ff7b72","symbolIcon.methodForeground":"#bc8cff","symbolIcon.moduleForeground":"#ff7b72","symbolIcon.namespaceForeground":"#ff7b72","symbolIcon.nullForeground":"#58a6ff","symbolIcon.numberForeground":"#3fb950","symbolIcon.objectForeground":"#f0883e","symbolIcon.operatorForeground":"#79c0ff","symbolIcon.packageForeground":"#f0883e","symbolIcon.propertyForeground":"#f0883e","symbolIcon.referenceForeground":"#58a6ff","symbolIcon.snippetForeground":"#58a6ff","symbolIcon.stringForeground":"#79c0ff","symbolIcon.structForeground":"#f0883e","symbolIcon.textForeground":"#79c0ff","symbolIcon.typeParameterForeground":"#79c0ff","symbolIcon.unitForeground":"#58a6ff","symbolIcon.variableForeground":"#f0883e","tab.activeBackground":"#0d1117","tab.activeBorder":"#0d1117","tab.activeBorderTop":"#f78166","tab.activeForeground":"#e6edf3","tab.border":"#30363d","tab.hoverBackground":"#0d1117","tab.inactiveBackground":"#010409","tab.inactiveForeground":"#7d8590","tab.unfocusedActiveBorder":"#0d1117","tab.unfocusedActiveBorderTop":"#30363d","tab.unfocusedHoverBackground":"#6e76811a","terminal.ansiBlack":"#484f58","terminal.ansiBlue":"#58a6ff","terminal.ansiBrightBlack":"#6e7681","terminal.ansiBrightBlue":"#79c0ff","terminal.ansiBrightCyan":"#56d4dd","terminal.ansiBrightGreen":"#56d364","terminal.ansiBrightMagenta":"#d2a8ff","terminal.ansiBrightRed":"#ffa198","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e3b341","terminal.ansiCyan":"#39c5cf","terminal.ansiGreen":"#3fb950","terminal.ansiMagenta":"#bc8cff","terminal.ansiRed":"#ff7b72","terminal.ansiWhite":"#b1bac4","terminal.ansiYellow":"#d29922","terminal.foreground":"#e6edf3","textBlockQuote.background":"#010409","textBlockQuote.border":"#30363d","textCodeBlock.background":"#6e768166","textLink.activeForeground":"#2f81f7","textLink.foreground":"#2f81f7","textPreformat.background":"#6e768166","textPreformat.foreground":"#7d8590","textSeparator.foreground":"#21262d","titleBar.activeBackground":"#0d1117","titleBar.activeForeground":"#7d8590","titleBar.border":"#30363d","titleBar.inactiveBackground":"#010409","titleBar.inactiveForeground":"#7d8590","tree.indentGuidesStroke":"#21262d","welcomePage.buttonBackground":"#21262d","welcomePage.buttonHoverBackground":"#30363d"},"displayName":"GitHub Dark Default","name":"github-dark-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#8b949e"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#ff7b72"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#79c0ff"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#ffa657"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#e6edf3"}},{"scope":"entity.name.function","settings":{"foreground":"#d2a8ff"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#7ee787"}},{"scope":"keyword","settings":{"foreground":"#ff7b72"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#ff7b72"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#e6edf3"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#a5d6ff"}},{"scope":"support","settings":{"foreground":"#79c0ff"}},{"scope":"meta.property-name","settings":{"foreground":"#79c0ff"}},{"scope":"variable","settings":{"foreground":"#ffa657"}},{"scope":"variable.other","settings":{"foreground":"#e6edf3"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#ffa198"}},{"scope":"carriage-return","settings":{"background":"#ff7b72","content":"^M","fontStyle":"italic underline","foreground":"#f0f6fc"}},{"scope":"message.error","settings":{"foreground":"#ffa198"}},{"scope":"string variable","settings":{"foreground":"#79c0ff"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#a5d6ff"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#a5d6ff"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#7ee787"}},{"scope":"support.constant","settings":{"foreground":"#79c0ff"}},{"scope":"support.variable","settings":{"foreground":"#79c0ff"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#7ee787"}},{"scope":"meta.module-reference","settings":{"foreground":"#79c0ff"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#ffa657"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"markup.quote","settings":{"foreground":"#7ee787"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#e6edf3"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#e6edf3"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#79c0ff"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#490202","foreground":"#ffa198"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#ff7b72"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#04260f","foreground":"#7ee787"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#5a1e02","foreground":"#ffa657"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#79c0ff","foreground":"#161b22"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#d2a8ff"}},{"scope":"meta.diff.header","settings":{"foreground":"#79c0ff"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#79c0ff"}},{"scope":"meta.output","settings":{"foreground":"#79c0ff"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#8b949e"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#ffa198"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#a5d6ff"}}],"type":"dark"}'));export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as K}from"./DsttYulo.js";import{_ as Q}from"./BV_QiRi8.js";import{_ as W}from"./B_DikKgJ.js";import{_ as X,a as Y,b as Z,c as ee,L as te}from"./Bj1gglGt.js";import{e as ae,h as oe,H as se,f as ie,u as de,v as ne,A as q,c as v,b as o,w as i,i as e,l as P,F as B,a as l,t as n,m as g,q as I,n as w,x as le,p as C,r as re,o as u,d as c,B as ce,G as me}from"./DIi866IK.js";import{_ as ue,a as fe}from"./ChS5Np24.js";import{_ as pe}from"./BFc_bxHc.js";import{_ as _e}from"./DMl_I_aT.js";import{b as ge,A as xe}from"./Bz1eTnxX.js";import{e as he}from"./DAHap_t6.js";import{u as ye}from"./BnZUk6sk.js";import{u as ve}from"./B1ZAR7mP.js";import"./BqoV-QnQ.js";import"./dhmyGJu2.js";import"./yhvT770r.js";const be={class:"text-xl font-semibold tracking-tight"},ke={class:"mt-0.5 mb-4 text-sm text-muted-foreground"},He=["disabled"],Pe={class:"space-y-2"},Ve={key:0,class:"text-xs text-destructive"},Ie={class:"space-y-2"},we={key:0,class:"space-y-2"},Ne={class:"text-xs text-muted-foreground"},Ue={key:0,class:"text-xs text-destructive"},Ae={class:"text-sm font-medium"},Se={class:"grid gap-4 sm:grid-cols-2"},Me={class:"space-y-2"},$e={class:"text-xs text-muted-foreground"},Fe={class:"space-y-2"},ze={class:"space-y-2"},Re={class:"text-sm font-medium"},je={class:"flex items-center gap-2 text-sm"},qe={class:"grid gap-4 sm:grid-cols-2"},Be={class:"space-y-2"},Ce={class:"space-y-2"},Te={class:"text-xs text-muted-foreground"},Ee={class:"space-y-2"},Le={class:"text-xs text-muted-foreground"},De={key:0,class:"text-xs text-destructive"},Ge={class:"mt-4 flex justify-end gap-2"},Oe={class:"text-sm text-muted-foreground"},rt=ae({__name:"edit",setup(Je){const T=oe(),N=ye(),E=ve(),A=se(),{t:s}=ie(),b=I(()=>Number(T.params.id)),m=w(null),S=w(!0),V=w(!1),x=w(""),f=w({});de({title:()=>`${s("editHead.pageTitle",{name:m.value?.name??"head"})} · Hexcore`});const t=le({name:"",description:"",hydraNodeImage:"",contestationPeriod:120,depositPeriod:720,persistenceRotateAfter:15e3,quiet:!1,maxSizeMb:10,maxFiles:3,blockfrostProjectId:""}),M=I(()=>m.value?.chainBackend==="offline"),$=I(()=>m.value?.chainBackend==="blockfrost"),U=I(()=>m.value?he(m.value.status):!1);ne(async()=>{try{const[d]=await Promise.all([A.get(`/api/heads/${b.value}`),N.fetchHydraVersions().catch(()=>{})]);m.value=d,t.name=d.name,t.description=d.description??"",t.hydraNodeImage=d.hydraNodeImage,t.contestationPeriod=d.contestationPeriod,t.depositPeriod=d.depositPeriod,t.persistenceRotateAfter=d.persistenceRotateAfter,t.quiet=d.logging.quiet,t.maxSizeMb=d.logging.maxSizeMb,t.maxFiles=d.logging.maxFiles}catch(d){x.value=d instanceof q?d.message:s("editHead.loadFailed")}finally{S.value=!1}});function F(){const d=m.value,a={};return t.name!==d.name&&(a.name=t.name),t.description!==(d.description??"")&&(a.description=t.description),t.hydraNodeImage!==d.hydraNodeImage&&(a.hydraNodeImage=t.hydraNodeImage),M.value||(t.contestationPeriod!==d.contestationPeriod&&(a.contestationPeriod=t.contestationPeriod),t.depositPeriod!==d.depositPeriod&&(a.depositPeriod=t.depositPeriod)),t.persistenceRotateAfter!==d.persistenceRotateAfter&&(a.persistenceRotateAfter=t.persistenceRotateAfter),(t.quiet!==d.logging.quiet||t.maxSizeMb!==d.logging.maxSizeMb||t.maxFiles!==d.logging.maxFiles)&&(a.logging={quiet:t.quiet,maxSizeMb:t.maxSizeMb,maxFiles:t.maxFiles}),$.value&&t.blockfrostProjectId.trim()&&(a.blockfrostProjectId=t.blockfrostProjectId.trim()),a}const L=I(()=>m.value?Object.keys(F()).length>0:!1);async function D(){if(!m.value)return;x.value="",f.value={};const d=F();if(Object.keys(d).length===0){await C(`/heads/${b.value}`);return}const a=ge.safeParse(d);if(!a.success){for(const p of a.error.issues){const y=p.path.join(".");y&&!f.value[y]&&(f.value[y]=p.message)}x.value=s("editHead.invalid");return}V.value=!0;try{await A.patch(`/api/heads/${b.value}`,a.data),await N.fetchHeads().catch(()=>{}),E.success(s("editHead.toast",{name:t.name}),s("editHead.appliedNextStart")),await C(`/heads/${b.value}`)}catch(p){p instanceof q?(f.value=p.fieldErrors,x.value=p.message):x.value=s("editHead.failed")}finally{V.value=!1}}return(d,a)=>{const p=K,y=Q,z=W,k=Y,H=X,G=pe,R=fe,j=ue,_=Z,h=ee,O=_e,J=re("i18n-t");return u(),v("div",null,[o(y,{variant:"ghost",size:"sm",class:"mb-3 -ml-3","as-child":""},{default:i(()=>[o(p,{to:`/heads/${e(b)}`},{default:i(()=>[o(e(xe),{class:"size-4"}),c(" "+n(e(s)("editHead.back")),1)]),_:1},8,["to"])]),_:1}),e(S)?(u(),P(H,{key:0},{default:i(()=>[o(k,{class:"space-y-3 py-6"},{default:i(()=>[o(z,{class:"h-6 w-56"}),o(z,{class:"h-4 w-full"})]),_:1})]),_:1})):e(m)?(u(),v(B,{key:1},[l("h1",be,n(e(s)("editHead.pageTitle",{name:e(m).name})),1),l("p",ke,n(e(s)("editHead.subtitle")),1),e(U)?g("",!0):(u(),P(j,{key:0,variant:"destructive",class:"mb-4"},{default:i(()=>[o(G,null,{default:i(()=>[c(n(e(s)("editHead.locked")),1)]),_:1}),o(R,null,{default:i(()=>[c(n(e(m).status==="RUNNING"||e(m).status==="STARTING"?e(s)("editHead.lockedRunning"):e(s)("editHead.lockedRan")),1)]),_:1})]),_:1})),l("fieldset",{disabled:!e(U)||e(V),class:"space-y-6"},[o(H,null,{default:i(()=>[o(k,{class:"space-y-4 pt-6"},{default:i(()=>[l("div",Pe,[o(_,{for:"name"},{default:i(()=>[c(n(e(s)("newHead.name")),1)]),_:1}),o(h,{id:"name",modelValue:e(t).name,"onUpdate:modelValue":a[0]||(a[0]=r=>e(t).name=r)},null,8,["modelValue"]),e(f).name?(u(),v("p",Ve,n(e(f).name),1)):g("",!0)]),l("div",Ie,[o(_,{for:"description"},{default:i(()=>[c(n(e(s)("newHead.description")),1)]),_:1}),o(h,{id:"description",modelValue:e(t).description,"onUpdate:modelValue":a[1]||(a[1]=r=>e(t).description=r),placeholder:e(s)("newHead.descriptionPlaceholder")},null,8,["modelValue","placeholder"])]),e(N).hydraVersions?(u(),v("div",we,[o(_,{for:"hydraNodeImage"},{default:i(()=>[c(n(e(s)("editHead.image")),1)]),_:1}),o(O,{modelValue:e(t).hydraNodeImage,"onUpdate:modelValue":a[2]||(a[2]=r=>e(t).hydraNodeImage=r)},null,8,["modelValue"]),l("p",Ne,n(e(s)("editHead.imageHint")),1),e(f).hydraNodeImage?(u(),v("p",Ue,n(e(f).hydraNodeImage),1)):g("",!0)])):g("",!0)]),_:1})]),_:1}),o(H,null,{default:i(()=>[o(k,{class:"space-y-4 pt-6"},{default:i(()=>[l("h2",Ae,n(e(s)("newHead.timing.title")),1),l("div",Se,[e(M)?g("",!0):(u(),v(B,{key:0},[l("div",Me,[o(_,{for:"contestationPeriod"},{default:i(()=>[c(n(e(s)("newHead.timing.contestation")),1)]),_:1}),o(h,{id:"contestationPeriod",modelValue:e(t).contestationPeriod,"onUpdate:modelValue":a[3]||(a[3]=r=>e(t).contestationPeriod=r),modelModifiers:{number:!0},type:"number",min:"1"},null,8,["modelValue"]),l("p",$e,n(e(s)("newHead.timing.contestationHint")),1)]),l("div",Fe,[o(_,{for:"depositPeriod"},{default:i(()=>[c(n(e(s)("newHead.timing.deposit")),1)]),_:1}),o(h,{id:"depositPeriod",modelValue:e(t).depositPeriod,"onUpdate:modelValue":a[4]||(a[4]=r=>e(t).depositPeriod=r),modelModifiers:{number:!0},type:"number",min:"1"},null,8,["modelValue"])])],64)),l("div",ze,[o(_,{for:"persistenceRotateAfter"},{default:i(()=>[c(n(e(s)("newHead.timing.rotate")),1)]),_:1}),o(h,{id:"persistenceRotateAfter",modelValue:e(t).persistenceRotateAfter,"onUpdate:modelValue":a[5]||(a[5]=r=>e(t).persistenceRotateAfter=r),modelModifiers:{number:!0},type:"number",min:"100"},null,8,["modelValue"])])])]),_:1})]),_:1}),o(H,null,{default:i(()=>[o(k,{class:"space-y-4 pt-6"},{default:i(()=>[l("h2",Re,n(e(s)("newHead.logging.title")),1),l("label",je,[ce(l("input",{"onUpdate:modelValue":a[6]||(a[6]=r=>e(t).quiet=r),type:"checkbox",class:"size-4 accent-primary"},null,512),[[me,e(t).quiet]]),o(J,{keypath:"editHead.quiet",scope:"global"},{flag:i(()=>[...a[11]||(a[11]=[l("code",null,"--quiet",-1)])]),_:1})]),l("div",qe,[l("div",Be,[o(_,{for:"maxSizeMb"},{default:i(()=>[c(n(e(s)("newHead.logging.maxSize")),1)]),_:1}),o(h,{id:"maxSizeMb",modelValue:e(t).maxSizeMb,"onUpdate:modelValue":a[7]||(a[7]=r=>e(t).maxSizeMb=r),modelModifiers:{number:!0},type:"number",min:"1",max:"1024"},null,8,["modelValue"])]),l("div",Ce,[o(_,{for:"maxFiles"},{default:i(()=>[c(n(e(s)("newHead.logging.maxFiles")),1)]),_:1}),o(h,{id:"maxFiles",modelValue:e(t).maxFiles,"onUpdate:modelValue":a[8]||(a[8]=r=>e(t).maxFiles=r),modelModifiers:{number:!0},type:"number",min:"1",max:"50"},null,8,["modelValue"])])]),l("p",Te,n(e(s)("newHead.logging.hint")),1)]),_:1})]),_:1}),e($)?(u(),P(H,{key:0},{default:i(()=>[o(k,{class:"space-y-4 pt-6"},{default:i(()=>[a[12]||(a[12]=l("h2",{class:"text-sm font-medium"},"Blockfrost",-1)),l("div",Ee,[o(_,{for:"blockfrostProjectId"},{default:i(()=>[c(n(e(s)("editHead.blockfrost.replace")),1)]),_:1}),o(h,{id:"blockfrostProjectId",modelValue:e(t).blockfrostProjectId,"onUpdate:modelValue":a[9]||(a[9]=r=>e(t).blockfrostProjectId=r),placeholder:e(s)("editHead.blockfrost.placeholder"),spellcheck:"false"},null,8,["modelValue","placeholder"]),l("p",Le,n(e(s)("editHead.blockfrost.hint")),1),e(f).blockfrostProjectId?(u(),v("p",De,n(e(f).blockfrostProjectId),1)):g("",!0)])]),_:1})]),_:1})):g("",!0)],8,He),e(x)?(u(),P(j,{key:1,variant:"destructive",class:"mt-4"},{default:i(()=>[o(R,null,{default:i(()=>[c(n(e(x)),1)]),_:1})]),_:1})):g("",!0),l("div",Ge,[o(y,{variant:"outline","as-child":""},{default:i(()=>[o(p,{to:`/heads/${e(b)}`},{default:i(()=>[c(n(e(s)("common.cancel")),1)]),_:1},8,["to"])]),_:1}),o(y,{disabled:!e(U)||e(V)||!e(L),onClick:a[10]||(a[10]=r=>D())},{default:i(()=>[e(V)?(u(),P(e(te),{key:0,class:"size-4 animate-spin"})):g("",!0),c(" "+n(e(s)("editHead.save")),1)]),_:1},8,["disabled"])])],64)):(u(),P(H,{key:2},{default:i(()=>[o(k,{class:"py-6"},{default:i(()=>[l("p",Oe,n(e(x)||e(s)("detail.notFound")),1)]),_:1})]),_:1}))])}}});export{rt as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as ae,P as H,u as Q,c as W,r as L,a as E,_ as xe}from"./BV_QiRi8.js";import{T as we,u as oe,c as se,a as ne,b as X,d as ke}from"./BqoV-QnQ.js";import{e as k,o as c,l as w,w as m,D as T,Q as re,R as le,i as e,S as Z,b as x,n as C,v as ie,T as Ce,E as Y,q as M,O as ue,U as Te,N as Se,j as Ie,L as P,f as j,V as $e,a as b,d as D,t as y,c as _,F as q,r as Be,z as U,H as Fe,K as de,y as ee,W as Ae,m as V,A as De}from"./DIi866IK.js";import{g as te,u as ce,c as qe}from"./dhmyGJu2.js";import{_ as Me,D as Re,a as Oe,b as Ee,c as Pe,d as Ke,e as Le}from"./DmPn-vCY.js";import{f as Ve}from"./DAHap_t6.js";import{_ as Ne,a as Ue}from"./ChS5Np24.js";import{C as He}from"./BW_3NqYy.js";import{L as je}from"./Bj1gglGt.js";import{C as ze}from"./DlHvzKYz.js";import{u as Ge}from"./BnZUk6sk.js";import{u as Ye}from"./B1ZAR7mP.js";var Qe=k({__name:"DialogPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(a){const o=a;return(t,s)=>(c(),w(e(we),re(le(o)),{default:m(()=>[T(t.$slots,"default")]),_:3},16))}}),We=Qe;const Xe="rovingFocusGroup.onEntryFocus",Ze={bubbles:!1,cancelable:!0},Je={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function et(a,o){return o!=="rtl"?a:a==="ArrowLeft"?"ArrowRight":a==="ArrowRight"?"ArrowLeft":a}function tt(a,o,t){const s=et(a.key,t);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(s))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(s)))return Je[s]}function fe(a,o=!1){const t=te();for(const s of a)if(s===t||(s.focus({preventScroll:o}),te()!==t))return}function at(a,o){return a.map((t,s)=>a[(o+s)%a.length])}const[ot,st]=se("RovingFocusGroup");var nt=k({__name:"RovingFocusGroup",props:{orientation:{type:String,required:!1,default:void 0},dir:{type:String,required:!1},loop:{type:Boolean,required:!1,default:!1},currentTabStopId:{type:[String,null],required:!1},defaultCurrentTabStopId:{type:String,required:!1},preventScrollOnEntryFocus:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["entryFocus","update:currentTabStopId"],setup(a,{expose:o,emit:t}){const s=a,r=t,{loop:l,orientation:n,dir:d}=Z(s),p=oe(d),i=ae(s,"currentTabStopId",r,{defaultValue:s.defaultCurrentTabStopId,passive:s.currentTabStopId===void 0}),f=C(!1),u=C(!1),v=C(0),{getItems:S,CollectionSlot:N}=ce({isProvider:!0});function B(I){const A=!u.value;if(I.currentTarget&&I.target===I.currentTarget&&A&&!f.value){const K=new CustomEvent(Xe,Ze);if(I.currentTarget.dispatchEvent(K),r("entryFocus",K),!K.defaultPrevented){const R=S().map($=>$.ref).filter($=>$.dataset.disabled!==""),G=R.find($=>$.getAttribute("data-active")===""),g=R.find($=>$.getAttribute("data-highlighted")===""),F=R.find($=>$.id===i.value),O=[G,g,F,...R].filter(Boolean);fe(O,s.preventScrollOnEntryFocus)}}u.value=!1}function z(){setTimeout(()=>{u.value=!1},1)}return o({getItems:S}),st({loop:l,dir:p,orientation:n,currentTabStopId:i,onItemFocus:I=>{i.value=I},onItemShiftTab:()=>{f.value=!0},onFocusableItemAdd:()=>{v.value++},onFocusableItemRemove:()=>{v.value--}}),(I,A)=>(c(),w(e(N),null,{default:m(()=>[x(e(H),{tabindex:f.value||v.value===0?-1:0,"data-orientation":e(n),as:I.as,"as-child":I.asChild,dir:e(p),style:{outline:"none"},onMousedown:A[0]||(A[0]=K=>u.value=!0),onMouseup:z,onFocus:B,onBlur:A[1]||(A[1]=K=>f.value=!1)},{default:m(()=>[T(I.$slots,"default")]),_:3},8,["tabindex","data-orientation","as","as-child","dir"])]),_:3}))}}),rt=nt,lt=k({__name:"RovingFocusItem",props:{tabStopId:{type:String,required:!1},focusable:{type:Boolean,required:!1,default:!0},active:{type:Boolean,required:!1},allowShiftKey:{type:Boolean,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"span"}},setup(a){const o=a,t=ot(),s=ne(),r=M(()=>o.tabStopId||s),l=M(()=>t.currentTabStopId.value===r.value),{getItems:n,CollectionItem:d}=ce();ie(()=>{o.focusable&&t.onFocusableItemAdd()}),Ce(()=>{o.focusable&&t.onFocusableItemRemove()}),Y(()=>o.focusable,(i,f)=>{i!==f&&(i?t.onFocusableItemAdd():t.onFocusableItemRemove())});function p(i){if(i.key==="Tab"&&i.shiftKey){t.onItemShiftTab();return}if(i.target!==i.currentTarget)return;const f=tt(i,t.orientation.value,t.dir.value);if(f!==void 0){if(i.metaKey||i.ctrlKey||i.altKey||!o.allowShiftKey&&i.shiftKey)return;i.preventDefault();let u=[...n().map(v=>v.ref).filter(v=>v.dataset.disabled!=="")];if(f==="last")u.reverse();else if(f==="prev"||f==="next"){f==="prev"&&u.reverse();const v=u.indexOf(i.currentTarget);u=t.loop.value?at(u,v+1):u.slice(v+1)}ue(()=>fe(u))}}return(i,f)=>(c(),w(e(d),null,{default:m(()=>[x(e(H),{tabindex:l.value?0:-1,"data-orientation":e(t).orientation.value,"data-active":i.active?"":void 0,"data-disabled":i.focusable?void 0:"",as:i.as,"as-child":i.asChild,onMousedown:f[0]||(f[0]=u=>{i.focusable?e(t).onItemFocus(r.value):u.preventDefault()}),onFocus:f[1]||(f[1]=u=>e(t).onItemFocus(r.value)),onKeydown:p},{default:m(()=>[T(i.$slots,"default")]),_:3},8,["tabindex","data-orientation","data-active","data-disabled","as","as-child"])]),_:3}))}}),it=lt;const[pe,ut]=se("TabsRoot");var dt=k({__name:"TabsRoot",props:{defaultValue:{type:null,required:!1},orientation:{type:String,required:!1,default:"horizontal"},dir:{type:String,required:!1},activationMode:{type:String,required:!1,default:"automatic"},modelValue:{type:null,required:!1},unmountOnHide:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},emits:["update:modelValue"],setup(a,{emit:o}){const t=a,s=o,{orientation:r,unmountOnHide:l,dir:n}=Z(t),d=oe(n);Q();const p=ae(t,"modelValue",s,{defaultValue:t.defaultValue,passive:t.modelValue===void 0}),i=C(),f=Te(new Set);return ut({modelValue:p,changeModelValue:u=>{p.value=u},orientation:r,dir:d,unmountOnHide:l,activationMode:t.activationMode,baseId:ne(void 0,"reka-tabs"),tabsList:i,contentIds:f,registerContent:u=>{f.value=new Set([...f.value,u])},unregisterContent:u=>{const v=new Set(f.value);v.delete(u),f.value=v}}),(u,v)=>(c(),w(e(H),{dir:e(d),"data-orientation":e(r),"as-child":u.asChild,as:u.as},{default:m(()=>[T(u.$slots,"default",{modelValue:e(p)})]),_:3},8,["dir","data-orientation","as-child","as"]))}}),ct=dt;function ft(a,o){return`${a}-trigger-${o}`}function pt(a,o){return`${a}-content-${o}`}var mt=k({__name:"TabsList",props:{loop:{type:Boolean,required:!1,default:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(a){const o=a,{loop:t}=Z(o),{forwardRef:s,currentElement:r}=Q(),l=pe();return l.tabsList=r,(n,d)=>(c(),w(e(rt),{"as-child":"",orientation:e(l).orientation.value,dir:e(l).dir.value,loop:e(t)},{default:m(()=>[x(e(H),{ref:e(s),role:"tablist","as-child":n.asChild,as:n.as,"aria-orientation":e(l).orientation.value},{default:m(()=>[T(n.$slots,"default")]),_:3},8,["as-child","as","aria-orientation"])]),_:3},8,["orientation","dir","loop"]))}}),vt=mt,gt=k({__name:"TabsTrigger",props:{value:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!1,default:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(a){const o=a,{forwardRef:t}=Q(),s=pe(),r=M(()=>ft(s.baseId,o.value)),l=M(()=>s.contentIds.value.has(o.value)?pt(s.baseId,o.value):void 0),n=M(()=>o.value===s.modelValue.value);return(d,p)=>(c(),w(e(it),{"as-child":"",focusable:!d.disabled,active:n.value},{default:m(()=>[x(e(H),{id:r.value,ref:e(t),role:"tab",type:d.as==="button"?"button":void 0,as:d.as,"as-child":d.asChild,"aria-selected":n.value?"true":"false","aria-controls":l.value,"data-state":n.value?"active":"inactive",disabled:d.disabled,"data-disabled":d.disabled?"":void 0,"data-orientation":e(s).orientation.value,onMousedown:p[0]||(p[0]=Ie(i=>{!d.disabled&&i.ctrlKey===!1?e(s).changeModelValue(d.value):i.preventDefault()},["left"])),onKeydown:p[1]||(p[1]=Se(i=>e(s).changeModelValue(d.value),["enter","space"])),onFocus:p[2]||(p[2]=()=>{const i=e(s).activationMode!=="manual";!n.value&&!d.disabled&&i&&e(s).changeModelValue(d.value)})},{default:m(()=>[T(d.$slots,"default")]),_:3},8,["id","type","as","as-child","aria-selected","aria-controls","data-state","disabled","data-disabled","data-orientation"])]),_:3},8,["focusable","active"]))}}),yt=gt;const ht=W("CircleAlertIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);const na=W("ExternalLinkIcon",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);const ra=W("RefreshCwIcon",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);const _t=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],bt=qe("x",_t),la=k({__name:"Tabs",props:{defaultValue:{},orientation:{},dir:{},activationMode:{},modelValue:{},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},emits:["update:modelValue"],setup(a,{emit:o}){const t=a,s=o,r=L(t,"class"),l=X(r,s);return(n,d)=>(c(),w(e(ct),P({"data-slot":"tabs"},e(l),{class:e(E)("flex flex-col gap-2",t.class)}),{default:m(p=>[T(n.$slots,"default",re(le(p)))]),_:3},16,["class"]))}}),ia=k({__name:"TabsList",props:{loop:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a,t=L(o,"class");return(s,r)=>(c(),w(e(vt),P({"data-slot":"tabs-list"},e(t),{class:e(E)("bg-muted text-muted-foreground inline-flex h-9 w-fit items-center justify-center rounded-lg p-0.75",o.class)}),{default:m(()=>[T(s.$slots,"default")]),_:3},16,["class"]))}}),ua=k({__name:"TabsTrigger",props:{value:{},disabled:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a,t=L(o,"class"),s=ke(t);return(r,l)=>(c(),w(e(yt),P({"data-slot":"tabs-trigger",class:e(E)("data-[state=active]:bg-card data-[state=active]:text-foreground data-[state=active]:font-semibold data-[state=active]:border-border focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:outline-ring text-muted-foreground inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 rounded-md border border-transparent px-2 py-1 text-sm font-medium whitespace-nowrap transition-[color,box-shadow] focus-visible:ring-3 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:shadow-sm [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",o.class)},e(s)),{default:m(()=>[T(r.$slots,"default")]),_:3},16,["class"]))}});function xt(){const{t:a}=j();return o=>{if(!o)return;const t=o.params??{};return typeof t.count=="number"?a(o.key,t,t.count):a(o.key,t)}}function me(a){return new Date(a.includes("T")?a:`${a.replace(" ","T")}Z`)}function da(a,o="en"){const t=Math.round((Date.now()-me(a).getTime())/1e3);if(!Number.isFinite(t))return a;const s=new Intl.RelativeTimeFormat(o,{numeric:"auto",style:"narrow"});return t<60?s.format(0,"second"):t<3600?s.format(-Math.floor(t/60),"minute"):t<86400?s.format(-Math.floor(t/3600),"hour"):s.format(-Math.floor(t/86400),"day")}function ca(a,o){const t=me(a);return Number.isNaN(t.getTime())?a:t.toLocaleTimeString(o)}const wt={class:"text-foreground"},kt={class:"text-destructive"},Ct={class:"text-foreground"},Tt={class:"text-destructive"},St={class:"text-foreground"},It={class:"flex items-center gap-2 text-sm"},$t=["checked"],fa=k({__name:"HeadConfirmDialog",props:{head:{},kind:{},loading:{type:Boolean}},emits:["update:kind","close","confirm"],setup(a,{emit:o}){const t=a,s=o,{t:r}=j(),l=xt(),n=M(()=>Ve(t.kind,t.head?.name));return(d,p)=>{const i=Be("i18n-t"),f=Me;return c(),w(f,{open:a.head!==null,title:e(l)(e(n).title),"confirm-label":e(l)(e(n).confirmLabel),"require-text":e(n).requireText,loading:a.loading,"onUpdate:open":p[1]||(p[1]=u=>s("close")),onConfirm:p[2]||(p[2]=u=>s("confirm"))},$e({default:m(()=>[a.kind==="delete"?(c(),_(q,{key:0},[x(i,{keypath:"headConfirm.delete.body",tag:"p",scope:"global"},{name:m(()=>[b("b",wt,y(a.head?.name),1)]),_:1}),b("p",kt,y(e(r)("headConfirm.delete.warning")),1)],64)):a.kind==="resetKeys"?(c(),_(q,{key:1},[x(i,{keypath:"headConfirm.resetKeys.body",tag:"p",scope:"global"},{keys:m(()=>[b("b",Ct,y(e(r)("headConfirm.resetKeys.keys")),1)]),_:1}),b("p",Tt,y(e(r)("headConfirm.resetKeys.warning")),1)],64)):(c(),_(q,{key:2},[x(i,{keypath:"headConfirm.reset.body",tag:"p",scope:"global"},{name:m(()=>[b("b",St,y(a.head?.name),1)]),_:1}),b("p",null,y(e(r)("headConfirm.reset.kept")),1)],64))]),_:2},[a.kind!=="delete"?{name:"options",fn:m(()=>[b("label",It,[b("input",{type:"checkbox",class:"size-4 accent-[var(--destructive)]",checked:a.kind==="resetKeys",onChange:p[0]||(p[0]=u=>s("update:kind",u.target.checked?"resetKeys":"reset"))},null,40,$t),D(" "+y(e(r)("headConfirm.alsoKeys")),1)])]),key:"0"}:void 0]),1032,["open","title","confirm-label","require-text","loading"])}}}),Bt=k({__name:"Sheet",props:{open:{type:Boolean},defaultOpen:{type:Boolean},modal:{type:Boolean},unmountOnHide:{type:Boolean}},emits:["update:open"],setup(a,{emit:o}){const r=X(a,o);return(l,n)=>(c(),w(e(Re),P({"data-slot":"sheet"},e(r)),{default:m(()=>[T(l.$slots,"default")]),_:3},16))}}),Ft=k({__name:"SheetOverlay",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a,t=L(o,"class");return(s,r)=>(c(),w(e(Oe),P({"data-slot":"sheet-overlay"},e(t),{class:e(E)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60",o.class)}),null,16,["class"]))}}),At=k({inheritAttrs:!1,__name:"SheetContent",props:{forceMount:{type:Boolean},disableOutsidePointerEvents:{type:Boolean},asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]},side:{default:"right"}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(a,{emit:o}){const t=a,s=o,r=L(t,"class","side"),l=X(r,s);return(n,d)=>(c(),w(e(We),null,{default:m(()=>[x(Ft),x(e(Pe),P({"data-slot":"sheet-content"},{...n.$attrs,...e(l)},{class:e(E)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex h-full w-full flex-col gap-0 border-l shadow-lg transition duration-300 ease-in-out sm:max-w-xl",a.side==="right"?"inset-y-0 right-0 data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right":"inset-y-0 left-0 border-r border-l-0 data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left",t.class)}),{default:m(()=>[T(n.$slots,"default"),x(e(Ee),{class:"ring-offset-background focus:ring-ring absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none"},{default:m(()=>[x(e(bt),{class:"size-4"}),d[0]||(d[0]=b("span",{class:"sr-only"},"Close",-1))]),_:1})]),_:3},16,["class"])]),_:3}))}}),Dt=k({__name:"SheetDescription",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a,t=L(o,"class");return(s,r)=>(c(),w(e(Ke),P({"data-slot":"sheet-description"},e(t),{class:e(E)("text-sm text-muted-foreground",o.class)}),{default:m(()=>[T(s.$slots,"default")]),_:3},16,["class"]))}}),qt=k({__name:"SheetHeader",props:{class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a;return(t,s)=>(c(),_("div",{"data-slot":"sheet-header",class:U(e(E)("flex flex-col gap-1 border-b px-5 py-4",o.class))},[T(t.$slots,"default")],2))}}),Mt=k({__name:"SheetTitle",props:{asChild:{type:Boolean},as:{},class:{type:[Boolean,null,String,Object,Array]}},setup(a){const o=a,t=L(o,"class");return(s,r)=>(c(),w(e(Le),P({"data-slot":"sheet-title"},e(t),{class:e(E)("text-base font-semibold tracking-tight",o.class)}),{default:m(()=>[T(s.$slots,"default")]),_:3},16,["class"]))}}),Rt=globalThis.setInterval,Ot={class:"flex min-h-0 flex-1 flex-col"},Et={key:0,class:"space-y-2.5 border-b px-5 py-4"},Pt={class:"min-w-0"},Kt={key:1,class:"px-5 py-4 text-sm text-muted-foreground"},Lt={key:2,class:"flex min-h-0 flex-1 flex-col"},Vt={class:"flex items-center justify-between px-5 pt-3 pb-1.5"},Nt={class:"text-xs font-medium text-muted-foreground"},Ut={class:"text-muted-foreground/60"},Ht={key:0,class:"ml-1.5 text-muted-foreground/80"},jt={key:3,class:"border-t px-5 py-3"},zt={class:"flex justify-end gap-2 border-t px-5 py-3"},pa=k({__name:"HeadBootSheet",props:{headId:{},headName:{}},emits:["close"],setup(a,{emit:o}){const t=a,s=o,r=Fe(),{t:l}=j(),n=C(null),d=C(""),p=C(null),i=C(!0),f=M(()=>t.headId!==null),u=M(()=>n.value?.status==="running");async function v(){if(t.headId!==null)try{n.value=await r.get(`/api/heads/${t.headId}/boot`),d.value=""}catch{d.value=n.value?"":l("boot.noProgress")}}let S=null;function N(){B(),v(),S=Rt(()=>{if(!f.value)return B();v(),n.value&&n.value.status!=="running"&&B()},1e3)}function B(){S&&clearInterval(S),S=null}Y(()=>t.headId,g=>{n.value=null,d.value="",i.value=!0,g!==null?N():B()},{immediate:!0}),de(B),Y(()=>n.value?.logs.length,async()=>{if(!i.value)return;await ue();const g=p.value;g&&(g.scrollTop=g.scrollHeight)});function z(){const g=p.value;g&&(i.value=g.scrollHeight-g.scrollTop-g.clientHeight<40)}function I(g){return g.state==="done"?He:g.state==="failed"?ht:g.state==="active"?je:ze}const A={done:"text-success-soft-foreground",active:"text-foreground",failed:"text-destructive",pending:"text-muted-foreground"},K={info:"text-muted-foreground",warn:"text-warning-soft-foreground",error:"text-destructive"},R=M(()=>{const g=n.value;if(!g)return"";const F=g.endedAt?new Date(g.endedAt):new Date,O=Math.max(0,Math.round((F.getTime()-new Date(g.startedAt).getTime())/1e3));return O<60?`${O}s`:`${Math.floor(O/60)}m ${O%60}s`});function G(g){return g.slice(11,19)}return(g,F)=>{const O=Mt,$=Dt,ve=qt,J=xe,ge=Ue,ye=Ne,he=At,_e=Bt;return c(),w(_e,{open:e(f),"onUpdate:open":F[2]||(F[2]=h=>!h&&s("close"))},{default:m(()=>[x(he,{class:"sm:max-w-2xl"},{default:m(()=>[x(ve,null,{default:m(()=>[x(O,null,{default:m(()=>[D(y(e(l)("boot.title",{name:a.headName??e(l)("boot.headN",{id:a.headId})})),1)]),_:1}),x($,null,{default:m(()=>[e(n)?.status==="succeeded"?(c(),_(q,{key:0},[D(y(e(l)("boot.succeeded",{elapsed:e(R)})),1)],64)):e(n)?.status==="failed"?(c(),_(q,{key:1},[D(y(e(l)("boot.failed",{elapsed:e(R)})),1)],64)):e(n)?(c(),_(q,{key:2},[D(y(e(l)("boot.running",{elapsed:e(R)})),1)],64)):(c(),_(q,{key:3},[D(y(e(l)("boot.waiting")),1)],64))]),_:1})]),_:1}),b("div",Ot,[e(n)?(c(),_("ol",Et,[(c(!0),_(q,null,ee(e(n).steps,h=>(c(),_("li",{key:h.key,class:"flex items-start gap-2.5 text-sm"},[(c(),w(Ae(I(h)),{class:U(["mt-0.5 size-4 shrink-0",[A[h.state],h.state==="active"?"animate-spin":""]])},null,8,["class"])),b("div",Pt,[b("span",{class:U(h.state==="pending"?"text-muted-foreground":"text-foreground")},y(h.label),3),h.detail?(c(),_("p",{key:0,class:U(["truncate text-xs",A[h.state]])},y(h.detail),3)):V("",!0)])]))),128))])):e(d)?(c(),_("p",Kt,y(e(d)),1)):V("",!0),e(n)?(c(),_("div",Lt,[b("div",Vt,[b("span",Nt,y(e(l)("boot.log")),1),e(i)?V("",!0):(c(),w(J,{key:0,variant:"ghost",size:"sm",class:"h-6 text-xs",onClick:F[0]||(F[0]=h=>i.value=!0)},{default:m(()=>[D(y(e(l)("common.follow")),1)]),_:1}))]),b("div",{ref_key:"logPane",ref:p,class:"min-h-0 flex-1 overflow-auto bg-muted/40 px-5 py-2 font-mono text-xs",onScroll:z},[(c(!0),_(q,null,ee(e(n).logs,(h,be)=>(c(),_("p",{key:be,class:"break-all whitespace-pre-wrap"},[b("span",Ut,y(G(h.at)),1),h.source!=="hexcore"?(c(),_("span",Ht,y(h.source),1)):V("",!0),b("span",{class:U(["ml-1.5",K[h.level]])},y(h.message),3)]))),128))],544)])):V("",!0),e(n)?.status==="failed"?(c(),_("div",jt,[x(ye,{variant:"destructive"},{default:m(()=>[x(ge,null,{default:m(()=>[D(y(e(n).error),1)]),_:1})]),_:1})])):V("",!0)]),b("div",zt,[x(J,{variant:"outline",size:"sm",onClick:F[1]||(F[1]=h=>s("close"))},{default:m(()=>[D(y(e(u)?e(l)("boot.closeKeepStarting"):e(l)("common.close")),1)]),_:1})])]),_:1})]),_:1},8,["open"])}}});function ma(a,o){const{immediate:t=!0,maxFailures:s=3}=o,r=C(!1),l=C(0),n=C(!1);let d=null;const p=()=>typeof o.interval=="function"?o.interval():o.interval,i=()=>l.value===0?p():Math.min(p()*2**l.value,6e4);async function f(){if(r.value){if(typeof document<"u"&&document.hidden){u();return}if(o.enabled&&!o.enabled()){u();return}try{await a(),l.value=0,n.value=!1}catch{if(l.value+=1,l.value>=s){n.value=!0,r.value=!1;return}}u()}}function u(){r.value&&(d=setTimeout(f,i()))}function v(){r.value||(r.value=!0,l.value=0,n.value=!1,t?f():u())}function S(){r.value=!1,d&&(clearTimeout(d),d=null)}function N(){S(),v()}const B=()=>{typeof document<"u"&&!document.hidden&&r.value&&(S(),r.value=!0,f())};return ie(()=>{document.addEventListener("visibilitychange",B)}),de(()=>{S(),document.removeEventListener("visibilitychange",B)}),{start:v,stop:S,retry:N,active:r,failures:l,stalled:n}}function va(a={}){const o=Ge(),t=Ye(),{t:s}=j(),r=C(null),l=C("reset"),n=C(!1);function d(u){l.value="reset",r.value=u}function p(u){l.value="delete",r.value=u}function i(){n.value||(r.value=null)}async function f(){const u=r.value;if(u){n.value=!0;try{if(l.value==="delete"){await o.remove(u.id),t.success(s("headConfirm.toast.deleted",{name:u.name})),r.value=null,a.onDeleted?.();return}const v=l.value==="resetKeys";await o.reset(u.id,v),t.success(s(v?"headConfirm.toast.resetKeys":"headConfirm.toast.reset",{name:u.name}),v?s("headConfirm.toast.resetKeysDetail"):void 0),r.value=null,a.onReset?.()}catch(v){t.error(v instanceof De?v.message:s("headConfirm.toast.failed"))}finally{n.value=!1}}}return{target:r,kind:l,busy:n,askReset:d,askDelete:p,close:i,run:f}}export{na as E,ra as R,la as _,ma as a,va as b,fa as c,pa as d,ia as e,ua as f,pt as g,Bt as h,pe as i,At as j,qt as k,Mt as l,ft as m,Dt as n,ca as o,da as r,Rt as s,xt as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#fd8c73","activityBar.background":"#ffffff","activityBar.border":"#d0d7de","activityBar.foreground":"#1f2328","activityBar.inactiveForeground":"#656d76","activityBarBadge.background":"#0969da","activityBarBadge.foreground":"#ffffff","badge.background":"#0969da","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#656d76","breadcrumb.focusForeground":"#1f2328","breadcrumb.foreground":"#656d76","breadcrumbPicker.background":"#ffffff","button.background":"#1f883d","button.foreground":"#ffffff","button.hoverBackground":"#1a7f37","button.secondaryBackground":"#ebecf0","button.secondaryForeground":"#24292f","button.secondaryHoverBackground":"#f3f4f6","checkbox.background":"#f6f8fa","checkbox.border":"#d0d7de","debugConsole.errorForeground":"#cf222e","debugConsole.infoForeground":"#57606a","debugConsole.sourceForeground":"#9a6700","debugConsole.warningForeground":"#7d4e00","debugConsoleInputIcon.foreground":"#6639ba","debugIcon.breakpointForeground":"#cf222e","debugTokenExpression.boolean":"#116329","debugTokenExpression.error":"#a40e26","debugTokenExpression.name":"#0550ae","debugTokenExpression.number":"#116329","debugTokenExpression.string":"#0a3069","debugTokenExpression.value":"#0a3069","debugToolBar.background":"#ffffff","descriptionForeground":"#656d76","diffEditor.insertedLineBackground":"#aceebb4d","diffEditor.insertedTextBackground":"#6fdd8b80","diffEditor.removedLineBackground":"#ffcecb4d","diffEditor.removedTextBackground":"#ff818266","dropdown.background":"#ffffff","dropdown.border":"#d0d7de","dropdown.foreground":"#1f2328","dropdown.listBackground":"#ffffff","editor.background":"#ffffff","editor.findMatchBackground":"#bf8700","editor.findMatchHighlightBackground":"#fae17d80","editor.focusedStackFrameHighlightBackground":"#4ac26b66","editor.foldBackground":"#6e77811a","editor.foreground":"#1f2328","editor.lineHighlightBackground":"#eaeef280","editor.linkedEditingBackground":"#0969da12","editor.selectionHighlightBackground":"#4ac26b40","editor.stackFrameHighlightBackground":"#d4a72c66","editor.wordHighlightBackground":"#eaeef280","editor.wordHighlightBorder":"#afb8c199","editor.wordHighlightStrongBackground":"#afb8c14d","editor.wordHighlightStrongBorder":"#afb8c199","editorBracketHighlight.foreground1":"#0969da","editorBracketHighlight.foreground2":"#1a7f37","editorBracketHighlight.foreground3":"#9a6700","editorBracketHighlight.foreground4":"#cf222e","editorBracketHighlight.foreground5":"#bf3989","editorBracketHighlight.foreground6":"#8250df","editorBracketHighlight.unexpectedBracket.foreground":"#656d76","editorBracketMatch.background":"#4ac26b40","editorBracketMatch.border":"#4ac26b99","editorCursor.foreground":"#0969da","editorGroup.border":"#d0d7de","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#d0d7de","editorGutter.addedBackground":"#4ac26b66","editorGutter.deletedBackground":"#ff818266","editorGutter.modifiedBackground":"#d4a72c66","editorIndentGuide.activeBackground":"#1f23283d","editorIndentGuide.background":"#1f23281f","editorInlayHint.background":"#afb8c133","editorInlayHint.foreground":"#656d76","editorInlayHint.paramBackground":"#afb8c133","editorInlayHint.paramForeground":"#656d76","editorInlayHint.typeBackground":"#afb8c133","editorInlayHint.typeForeground":"#656d76","editorLineNumber.activeForeground":"#1f2328","editorLineNumber.foreground":"#8c959f","editorOverviewRuler.border":"#ffffff","editorWhitespace.foreground":"#afb8c1","editorWidget.background":"#ffffff","errorForeground":"#cf222e","focusBorder":"#0969da","foreground":"#1f2328","gitDecoration.addedResourceForeground":"#1a7f37","gitDecoration.conflictingResourceForeground":"#bc4c00","gitDecoration.deletedResourceForeground":"#cf222e","gitDecoration.ignoredResourceForeground":"#6e7781","gitDecoration.modifiedResourceForeground":"#9a6700","gitDecoration.submoduleResourceForeground":"#656d76","gitDecoration.untrackedResourceForeground":"#1a7f37","icon.foreground":"#656d76","input.background":"#ffffff","input.border":"#d0d7de","input.foreground":"#1f2328","input.placeholderForeground":"#6e7781","keybindingLabel.foreground":"#1f2328","list.activeSelectionBackground":"#afb8c133","list.activeSelectionForeground":"#1f2328","list.focusBackground":"#ddf4ff","list.focusForeground":"#1f2328","list.highlightForeground":"#0969da","list.hoverBackground":"#eaeef280","list.hoverForeground":"#1f2328","list.inactiveFocusBackground":"#ddf4ff","list.inactiveSelectionBackground":"#afb8c133","list.inactiveSelectionForeground":"#1f2328","minimapSlider.activeBackground":"#8c959f47","minimapSlider.background":"#8c959f33","minimapSlider.hoverBackground":"#8c959f3d","notificationCenterHeader.background":"#f6f8fa","notificationCenterHeader.foreground":"#656d76","notifications.background":"#ffffff","notifications.border":"#d0d7de","notifications.foreground":"#1f2328","notificationsErrorIcon.foreground":"#cf222e","notificationsInfoIcon.foreground":"#0969da","notificationsWarningIcon.foreground":"#9a6700","panel.background":"#f6f8fa","panel.border":"#d0d7de","panelInput.border":"#d0d7de","panelTitle.activeBorder":"#fd8c73","panelTitle.activeForeground":"#1f2328","panelTitle.inactiveForeground":"#656d76","pickerGroup.border":"#d0d7de","pickerGroup.foreground":"#656d76","progressBar.background":"#0969da","quickInput.background":"#ffffff","quickInput.foreground":"#1f2328","scrollbar.shadow":"#6e778133","scrollbarSlider.activeBackground":"#8c959f47","scrollbarSlider.background":"#8c959f33","scrollbarSlider.hoverBackground":"#8c959f3d","settings.headerForeground":"#1f2328","settings.modifiedItemIndicator":"#d4a72c66","sideBar.background":"#f6f8fa","sideBar.border":"#d0d7de","sideBar.foreground":"#1f2328","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#d0d7de","sideBarSectionHeader.foreground":"#1f2328","sideBarTitle.foreground":"#1f2328","statusBar.background":"#ffffff","statusBar.border":"#d0d7de","statusBar.debuggingBackground":"#cf222e","statusBar.debuggingForeground":"#ffffff","statusBar.focusBorder":"#0969da80","statusBar.foreground":"#656d76","statusBar.noFolderBackground":"#ffffff","statusBarItem.activeBackground":"#1f23281f","statusBarItem.focusBorder":"#0969da","statusBarItem.hoverBackground":"#1f232814","statusBarItem.prominentBackground":"#afb8c133","statusBarItem.remoteBackground":"#eaeef2","statusBarItem.remoteForeground":"#1f2328","symbolIcon.arrayForeground":"#953800","symbolIcon.booleanForeground":"#0550ae","symbolIcon.classForeground":"#953800","symbolIcon.colorForeground":"#0a3069","symbolIcon.constantForeground":"#116329","symbolIcon.constructorForeground":"#3e1f79","symbolIcon.enumeratorForeground":"#953800","symbolIcon.enumeratorMemberForeground":"#0550ae","symbolIcon.eventForeground":"#57606a","symbolIcon.fieldForeground":"#953800","symbolIcon.fileForeground":"#7d4e00","symbolIcon.folderForeground":"#7d4e00","symbolIcon.functionForeground":"#6639ba","symbolIcon.interfaceForeground":"#953800","symbolIcon.keyForeground":"#0550ae","symbolIcon.keywordForeground":"#a40e26","symbolIcon.methodForeground":"#6639ba","symbolIcon.moduleForeground":"#a40e26","symbolIcon.namespaceForeground":"#a40e26","symbolIcon.nullForeground":"#0550ae","symbolIcon.numberForeground":"#116329","symbolIcon.objectForeground":"#953800","symbolIcon.operatorForeground":"#0a3069","symbolIcon.packageForeground":"#953800","symbolIcon.propertyForeground":"#953800","symbolIcon.referenceForeground":"#0550ae","symbolIcon.snippetForeground":"#0550ae","symbolIcon.stringForeground":"#0a3069","symbolIcon.structForeground":"#953800","symbolIcon.textForeground":"#0a3069","symbolIcon.typeParameterForeground":"#0a3069","symbolIcon.unitForeground":"#0550ae","symbolIcon.variableForeground":"#953800","tab.activeBackground":"#ffffff","tab.activeBorder":"#ffffff","tab.activeBorderTop":"#fd8c73","tab.activeForeground":"#1f2328","tab.border":"#d0d7de","tab.hoverBackground":"#ffffff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#656d76","tab.unfocusedActiveBorder":"#ffffff","tab.unfocusedActiveBorderTop":"#d0d7de","tab.unfocusedHoverBackground":"#eaeef280","terminal.ansiBlack":"#24292f","terminal.ansiBlue":"#0969da","terminal.ansiBrightBlack":"#57606a","terminal.ansiBrightBlue":"#218bff","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#1a7f37","terminal.ansiBrightMagenta":"#a475f9","terminal.ansiBrightRed":"#a40e26","terminal.ansiBrightWhite":"#8c959f","terminal.ansiBrightYellow":"#633c01","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#116329","terminal.ansiMagenta":"#8250df","terminal.ansiRed":"#cf222e","terminal.ansiWhite":"#6e7781","terminal.ansiYellow":"#4d2d00","terminal.foreground":"#1f2328","textBlockQuote.background":"#f6f8fa","textBlockQuote.border":"#d0d7de","textCodeBlock.background":"#afb8c133","textLink.activeForeground":"#0969da","textLink.foreground":"#0969da","textPreformat.background":"#afb8c133","textPreformat.foreground":"#656d76","textSeparator.foreground":"#d8dee4","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#656d76","titleBar.border":"#d0d7de","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#656d76","tree.indentGuidesStroke":"#d8dee4","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#f3f4f6"},"displayName":"GitHub Light Default","name":"github-light-default","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6e7781"}},{"scope":["constant.other.placeholder","constant.character"],"settings":{"foreground":"#cf222e"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language","entity"],"settings":{"foreground":"#0550ae"}},{"scope":["entity.name","meta.export.default","meta.definition.variable"],"settings":{"foreground":"#953800"}},{"scope":["variable.parameter.function","meta.jsx.children","meta.block","meta.tag.attributes","entity.name.constant","meta.object.member","meta.embedded.expression"],"settings":{"foreground":"#1f2328"}},{"scope":"entity.name.function","settings":{"foreground":"#8250df"}},{"scope":["entity.name.tag","support.class.component"],"settings":{"foreground":"#116329"}},{"scope":"keyword","settings":{"foreground":"#cf222e"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#cf222e"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#1f2328"}},{"scope":["string","string punctuation.section.embedded source"],"settings":{"foreground":"#0a3069"}},{"scope":"support","settings":{"foreground":"#0550ae"}},{"scope":"meta.property-name","settings":{"foreground":"#0550ae"}},{"scope":"variable","settings":{"foreground":"#953800"}},{"scope":"variable.other","settings":{"foreground":"#1f2328"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#82071e"}},{"scope":"carriage-return","settings":{"background":"#cf222e","content":"^M","fontStyle":"italic underline","foreground":"#f6f8fa"}},{"scope":"message.error","settings":{"foreground":"#82071e"}},{"scope":"string variable","settings":{"foreground":"#0550ae"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#0a3069"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#0a3069"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#116329"}},{"scope":"support.constant","settings":{"foreground":"#0550ae"}},{"scope":"support.variable","settings":{"foreground":"#0550ae"}},{"scope":"support.type.property-name.json","settings":{"foreground":"#116329"}},{"scope":"meta.module-reference","settings":{"foreground":"#0550ae"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#953800"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"markup.quote","settings":{"foreground":"#116329"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#1f2328"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#1f2328"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#0550ae"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffebe9","foreground":"#82071e"}},{"scope":["punctuation.section.embedded"],"settings":{"foreground":"#cf222e"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#dafbe1","foreground":"#116329"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffd8b5","foreground":"#953800"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#0550ae","foreground":"#eaeef2"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#8250df"}},{"scope":"meta.diff.header","settings":{"foreground":"#0550ae"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#0550ae"}},{"scope":"meta.output","settings":{"foreground":"#0550ae"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#57606a"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#82071e"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"foreground":"#0a3069"}}],"type":"light"}'));export{e as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=(t,n)=>({key:`presentation.${t}`,params:n});function g(t,n){if(t.chainBackend==="offline")return{known:!0,allFunded:!0,unfunded:[]};if(!n||n.length===0)return{known:!1,allFunded:!1,unfunded:[]};const i=t.nodes.filter(r=>{const a=n.find(l=>l.index===r.index);return a?a.lovelace!==null&&BigInt(a.lovelace)===0n:!1}).map(r=>r.name);return{known:!0,allFunded:i.length===0,unfunded:i}}function p(t,n){const r=n.known?n.allFunded:t.status==="RUNNING",a=t.status==="RUNNING",l=t.hydraState==="OPEN",o=[!0,r,a,l],s=["created","fund","start","open"],f=o.findIndex(u=>!u);return s.map((u,c)=>{let d;return o[c]?d="done":c===f?d=t.status==="FAILED"?"failed":"active":d="pending",{key:u,state:d}})}function b(t){return t.nodes.filter(n=>n.status==="RUNNING").length}function k(t,n,i){if(t.status==="RUNNING"){const r=b(t);if(r<t.nodeCount)return{tone:"warning",title:e("bar.degraded.title",{up:r,total:t.nodeCount}),detail:e(r===0?"bar.degraded.noneUp":"bar.degraded.partyMissing")}}return N(t,n,i)}function N(t,n,i){return t.status==="FAILED"?{tone:"error",title:e("bar.failed.title"),detail:t.lastError?e("bar.failed.detail",{error:t.lastError}):e("bar.failed.noDetail")}:t.status==="STARTING"?{tone:"neutral",title:e("bar.starting.title",{count:t.nodeCount}),detail:e("bar.starting.detail")}:t.status==="CONFIGURED"||t.status==="STOPPED"?n.known&&!n.allFunded?{tone:"warning",title:e("bar.unfunded.title"),detail:e("bar.unfunded.detail")}:n.known?{tone:"neutral",title:e(t.status==="STOPPED"?"bar.stopped":"bar.ready"),detail:e(t.chainBackend==="offline"?"bar.readyOffline":"bar.intact")}:{tone:"warning",title:e("bar.fundingUnknown.title"),detail:e("bar.fundingUnknown.detail")}:{OPEN:{tone:"success",title:e("bar.open.title"),detail:i===void 0?e("bar.open.detail",{count:t.nodeCount}):e("bar.open.detailUtxo",{count:t.nodeCount,utxos:i})},INITIALIZING:{tone:"warning",title:e("bar.initializing.title"),detail:e("bar.initializing.detail")},IDLE:{tone:"neutral",title:e("bar.idle.title"),detail:e("bar.idle.detail")},CLOSED:{tone:"warning",title:e("bar.closed.title"),detail:e("bar.closed.detail")},FANOUT_POSSIBLE:{tone:"warning",title:e("bar.fanout.title"),detail:e("bar.fanout.detail")},FINAL:{tone:"neutral",title:e("bar.final.title"),detail:e("bar.final.detail")},UNKNOWN:{tone:"neutral",title:e("bar.idle.title"),detail:e("bar.unknown.detail")}}[t.hydraState]}function I(t){return t==="CONFIGURED"||t==="FAILED"}function R(t,n,i=!0){const r=t.status==="STARTING",a=t.status==="RUNNING";let l;i?n.known&&!n.allFunded&&(l=e("blocked.unfunded",{node:n.unfunded[0]})):l=e("blocked.docker");const o=I(t.status);let s;return o||(s=e(t.status==="RUNNING"||t.status==="STARTING"?"blocked.editRunning":"blocked.editRan")),{canStart:!r&&!a&&!l,canStop:!r&&a,canRestart:!r&&a&&i,canReset:!r&&!a,canEdit:o,editBlockedReason:s,canDelete:!0,startBlockedReason:l}}function w(t){return t==="STARTING"?2e3:1e4}function S(t,n){switch(t){case"delete":return{title:e("confirm.delete.title"),confirmLabel:e("confirm.delete.label"),requireText:n};case"resetKeys":return{title:e("confirm.resetKeys.title"),confirmLabel:e("confirm.resetKeys.label"),requireText:n};case"reset":return{title:e("confirm.reset.title"),confirmLabel:e("confirm.reset.label")}}}export{k as a,R as b,g as c,p as d,I as e,S as f,w as p};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const t={common:{optional:{t:0,b:{t:2,i:[{t:3}],s:"optional"}},cancel:{t:0,b:{t:2,i:[{t:3}],s:"Cancel"}},tryAgain:{t:0,b:{t:2,i:[{t:3}],s:"Try again"}},reset:{t:0,b:{t:2,i:[{t:3}],s:"reset"}},resetAll:{t:0,b:{t:2,i:[{t:3}],s:"Reset all"}},details:{t:0,b:{t:2,i:[{t:3}],s:"Details"}},close:{t:0,b:{t:2,i:[{t:3}],s:"Close"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"Confirm"}},follow:{t:0,b:{t:2,i:[{t:3}],s:"Follow"}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Loading…"}},refresh:{t:0,b:{t:2,i:[{t:3}],s:"Refresh"}}},layout:{tagline:{t:0,b:{t:2,i:[{t:3}],s:"v2 · control-plane"}},nav:{heads:{t:0,b:{t:2,i:[{t:3}],s:"Hydra Heads"}},settings:{t:0,b:{t:2,i:[{t:3}],s:"Settings"}}},dockerHealthy:{t:0,b:{t:2,i:[{t:3}],s:"docker healthy"}},dockerDown:{t:0,b:{t:2,i:[{t:3}],s:"docker down"}},dockerUnreachable:{t:0,b:{t:2,i:[{t:3}],s:"Docker is unreachable."}},dockerUnreachableBody:{t:0,b:{t:2,i:[{t:3}],s:"Heads cannot be started or stopped until it is back."}},signOut:{t:0,b:{t:2,i:[{t:3}],s:"Sign out"}},signOutAs:{t:0,b:{t:2,i:[{t:3,v:"Sign out ("},{t:4,k:"user"},{t:3,v:")"}]}},language:{t:0,b:{t:2,i:[{t:3}],s:"Language"}}},imageField:{recommended:{t:0,b:{t:2,i:[{t:3}],s:"recommended"}},serverDefault:{t:0,b:{t:2,i:[{t:3,v:"Server default · "},{t:4,k:"image"}]}},unknownSummary:{t:0,b:{t:2,i:[{t:3}],s:"Not a known version — its flags are read from the image on first start."}},custom:{t:0,b:{t:2,i:[{t:3}],s:"Custom image…"}},customPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"docker.io/you/hydra-node:2.4.1"}},profileHint:{t:0,b:{t:2,i:[{t:3,v:"Flags come from the "},{t:4,k:"label"},{t:3,v:" profile — selected by tag, so your own build needs no probing."}]}},probeHint:{t:0,b:{t:2,i:[{t:3}],s:"No profile claims this tag. Its flags are read from hydra-node --help on first start."}},emptyHint:{t:0,b:{t:2,i:[{t:3}],s:"Leave empty to use the server's default image."}}},newHead:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"New head"}},back:{t:0,b:{t:2,i:[{t:3}],s:"Back to heads"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Create a Hydra Head"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Hexcore generates every key the head needs and gives each node an address to fund."}},name:{t:0,b:{t:2,i:[{t:3}],s:"Name"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Description"}},descriptionPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"What this head is for"}},nodes:{t:0,b:{t:2,i:[{t:3}],s:"Nodes"}},nodesHint:{t:0,b:{t:2,i:[{t:3}],s:"1 node is enough for a smoke test; a real head needs one per participant."}},backend:{label:{t:0,b:{t:2,i:[{t:3}],s:"Chain backend"}},blockfrost:{t:0,b:{t:2,i:[{t:3}],s:"Blockfrost — an API key, nothing to run"}},cardanoNode:{t:0,b:{t:2,i:[{t:3}],s:"cardano-node — local node socket"}},cardanoNodeUnavailable:{t:0,b:{t:2,i:[{t:3}],s:"cardano-node — unavailable"}},offline:{t:0,b:{t:2,i:[{t:3}],s:"Offline — no layer 1"}}},noSocket:{title:{t:0,b:{t:2,i:[{t:3}],s:"No cardano-node socket"}},body:{t:0,b:{t:2,i:[{t:4,k:"reason"},{t:3,v:". Use Blockfrost or offline until "},{t:4,k:"env"},{t:3,v:" points at a readable socket."}]}}},offlineInfo:{title:{t:0,b:{t:2,i:[{t:3}],s:"Offline head"}},body:{t:0,b:{t:2,i:[{t:3,v:"No layer 1. Nodes still peer with each other — at most "},{t:4,k:"max"},{t:3,v:", all on this machine — and each node's address is seeded in the starting UTxO instead of funded."}]}}},offlineUnsupported:{t:0,b:{t:2,i:[{t:3}],s:"This hydra-node version has no offline mode. Pick another version or backend."}},blockfrost:{key:{t:0,b:{t:2,i:[{t:3}],s:"Blockfrost API key"}},placeholderOptional:{t:0,b:{t:2,i:[{t:3}],s:"Empty: use the server's key"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Shared by every node of this head."}},requiredTitle:{t:0,b:{t:2,i:[{t:3}],s:"This server has no Blockfrost key"}},requiredBody:{t:0,b:{t:2,i:[{t:3}],s:"Every node needs one."}},getKey:{t:0,b:{t:2,i:[{t:3}],s:"Get a free key"}},missing:{t:0,b:{t:2,i:[{t:3}],s:"This server has no default Blockfrost key, so every node needs one."}},perNode:{t:0,b:{t:2,i:[{t:3}],s:"A different key for each node"}},perNodeHint:{t:0,b:{t:2,i:[{t:3}],s:"Nodes sharing a key share its rate limit."}},nodeKeyPlaceholder:{t:0,b:{t:2,i:[{t:3,v:"Key for node "},{t:4,k:"index"}]}}},offline:{seed:{t:0,b:{t:2,i:[{t:3}],s:"Head seed"}},seedPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Derived from the head id — 64 hex characters"}},seedHint:{t:0,b:{t:2,i:[{t:3}],s:"Fixed once the head exists."}},customUtxo:{t:0,b:{t:2,i:[{t:3}],s:"Write the starting UTxO myself"}},customUtxoHint:{t:0,b:{t:2,i:[{t:3}],s:"By default each node's own address is seeded."}},seedAmount:{t:0,b:{t:2,i:[{t:3}],s:"Seed amount (lovelace)"}},seedAmountHint:{t:0,b:{t:2,i:[{t:4,k:"perNode"},{t:3,v:" per node — "},{t:4,k:"total"},{t:3,v:" in the head."}]}},genesis:{t:0,b:{t:2,i:[{t:3}],s:"Shelley genesis"}},genesisPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Paste a whole shelley-genesis.json"}},genesisHint:{t:0,b:{t:2,i:[{t:3}],s:"A whole file or nothing — a partial one stops the node at startup."}}},keys:{import:{t:0,b:{t:2,i:[{t:3}],s:"Use existing Cardano payment keys"}},importHint:{t:0,b:{t:2,i:[{t:3}],s:"Reuse an address that already holds test ADA. Hydra keys are always generated."}},importHintOffline:{t:0,b:{t:2,i:[{t:3}],s:"The starting UTxO is seeded to this key's address. Hydra keys are always generated."}},nodeEmpty:{t:0,b:{t:2,i:[{t:3}],s:"empty: generate this node's key"}},signingPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Signing key: .skey, cborHex, 64 hex or ed25519_sk1…"}},verificationPlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Verification key (optional)"}},verify:{t:0,b:{t:2,i:[{t:3}],s:"Verify key"}},valid:{t:0,b:{t:2,i:[{t:3}],s:"Valid key"}},validPair:{t:0,b:{t:2,i:[{t:3}],s:"Valid key — the pair matches"}},balance:{t:0,b:{t:2,i:[{t:3,v:"Balance "},{t:4,k:"amount"},{t:3,v:" across "},{t:4,k:"count"},{t:3,v:" UTxO"}]}},empty:{t:0,b:{t:2,i:[{t:3}],s:"Nothing at this address yet — fund it before starting."}},verifyFailed:{t:0,b:{t:2,i:[{t:3}],s:"Could not verify that key."}}},version:{label:{t:0,b:{t:2,i:[{t:3}],s:"hydra-node version"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Fixed for the life of the head — switching later means resetting it."}},fixedIn:{t:0,b:{t:2,i:[{t:3,v:"Fixed in hydra-node "},{t:4,k:"version"},{t:3,v:"."}]}},notFixed:{t:0,b:{t:2,i:[{t:3}],s:"Not fixed in any release yet."}}},timing:{title:{t:0,b:{t:2,i:[{t:3}],s:"Timing"}},contestation:{t:0,b:{t:2,i:[{t:3}],s:"Contestation period (s)"}},contestationHint:{t:0,b:{t:2,i:[{t:3}],s:"Must match across every participant."}},deposit:{t:0,b:{t:2,i:[{t:3}],s:"Deposit period (s)"}},depositHint:{t:0,b:{t:2,i:[{t:3}],s:"Also how long a deposit takes to become spendable."}},rotate:{t:0,b:{t:2,i:[{t:3}],s:"Persistence rotate after (events)"}},rotateHint:{t:0,b:{t:2,i:[{t:3}],s:"Lower: smaller files, slower recovery."}},offlineNote:{t:0,b:{t:2,i:[{t:3}],s:"An offline head has no on-chain deadlines, so neither period applies."}}},logging:{title:{t:0,b:{t:2,i:[{t:3}],s:"Logging"}},quiet:{t:0,b:{t:2,i:[{t:3}],s:"Quiet — hydra-node writes no logs"}},quietWarning:{t:0,b:{t:2,i:[{t:3}],s:"The log viewer stays empty, and a failed start explains itself only through its exit status."}},maxSize:{t:0,b:{t:2,i:[{t:3}],s:"Max log size (MB per file)"}},maxFiles:{t:0,b:{t:2,i:[{t:3}],s:"Rotated files kept"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"Docker keeps logs without limit by default; these caps keep a head from filling the disk."}}},params:{toggle:{t:0,b:{t:2,i:[{t:3}],s:"Protocol parameters"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"The ledger rules inside the head. Left alone, it follows the chain."}},loading:{t:0,b:{t:2,i:[{t:3}],s:"Reading the current parameters…"}},loadFailed:{t:0,b:{t:2,i:[{t:3}],s:"Could not read the current protocol parameters."}},sourceBlockfrost:{t:0,b:{t:2,i:[{t:3}],s:"Live values from Blockfrost, with the Hydra L2 defaults applied."}},extra:{t:0,b:{t:2,i:[{t:3}],s:"Other parameters"}},extraTag:{t:0,b:{t:2,i:[{t:3}],s:"optional JSON"}},extraHint:{t:0,b:{t:2,i:[{t:3}],s:"Merged last. Whole top-level keys only."}},pinned:{t:0,b:{t:1,c:[{t:2,i:[{t:3,v:"Pinning "},{t:4,k:"count"},{t:3,v:" parameter: "},{t:4,k:"keys"},{t:3,v:". It stays fixed when the chain changes."}]},{t:2,i:[{t:3,v:"Pinning "},{t:4,k:"count"},{t:3,v:" parameters: "},{t:4,k:"keys"},{t:3,v:". They stay fixed when the chain changes."}]}]}},nothingPinned:{t:0,b:{t:2,i:[{t:3}],s:"Nothing pinned — the head follows the chain."}}},errors:{jsonObject:{t:0,b:{t:2,i:[{t:4,k:"what"},{t:3,v:" must be a JSON object."}]}},jsonInvalid:{t:0,b:{t:2,i:[{t:4,k:"what"},{t:3,v:" is not valid JSON: "},{t:4,k:"error"}]}},whatExtra:{t:0,b:{t:2,i:[{t:3}],s:"Extra protocol parameters"}},whatUtxo:{t:0,b:{t:2,i:[{t:3}],s:"The starting UTxO"}},whatGenesis:{t:0,b:{t:2,i:[{t:3}],s:"The ledger genesis"}},createFailed:{t:0,b:{t:2,i:[{t:3}],s:"Could not create the head."}}},toast:{created:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" created"}]}},fundThenStart:{t:0,b:{t:2,i:[{t:3}],s:"Fund its addresses, then start it."}},startOffline:{t:0,b:{t:2,i:[{t:3}],s:"It needs no funding — start it."}}},submit:{t:0,b:{t:2,i:[{t:3}],s:"Create head"}}},actions:{start:{t:0,b:{t:2,i:[{t:3}],s:"Start"}},stop:{t:0,b:{t:2,i:[{t:3}],s:"Stop"}},restart:{t:0,b:{t:2,i:[{t:3}],s:"Restart"}},retry:{t:0,b:{t:2,i:[{t:3}],s:"Retry"}},reset:{t:0,b:{t:2,i:[{t:3}],s:"Reset"}},edit:{t:0,b:{t:2,i:[{t:3}],s:"Edit"}},delete:{t:0,b:{t:2,i:[{t:3}],s:"Delete"}}},lifecycle:{done:{start:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" is running"}]}},stop:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" stopped"}]}},restart:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" restarted"}]}}},failed:{start:{t:0,b:{t:2,i:[{t:3,v:"Could not start "},{t:4,k:"name"}]}},stop:{t:0,b:{t:2,i:[{t:3,v:"Could not stop "},{t:4,k:"name"}]}},restart:{t:0,b:{t:2,i:[{t:3,v:"Could not restart "},{t:4,k:"name"}]}}}},status:{head:{CREATED:{t:0,b:{t:2,i:[{t:3}],s:"Created"}},CONFIGURED:{t:0,b:{t:2,i:[{t:3}],s:"Configured"}},STARTING:{t:0,b:{t:2,i:[{t:3}],s:"Starting"}},RUNNING:{t:0,b:{t:2,i:[{t:3}],s:"Running"}},STOPPED:{t:0,b:{t:2,i:[{t:3}],s:"Stopped"}},FAILED:{t:0,b:{t:2,i:[{t:3}],s:"Failed"}}},hydra:{IDLE:{t:0,b:{t:2,i:[{t:3}],s:"Idle"}},INITIALIZING:{t:0,b:{t:2,i:[{t:3}],s:"Initializing"}},OPEN:{t:0,b:{t:2,i:[{t:3}],s:"Open"}},CLOSED:{t:0,b:{t:2,i:[{t:3}],s:"Closed"}},FANOUT_POSSIBLE:{t:0,b:{t:2,i:[{t:3}],s:"Fanout ready"}},FANNING_OUT:{t:0,b:{t:2,i:[{t:3}],s:"Fanning out"}},FINAL:{t:0,b:{t:2,i:[{t:3}],s:"Final"}},UNKNOWN:{t:0,b:{t:2,i:[{t:3}],s:"Unknown"}}}},presentation:{steps:{created:{t:0,b:{t:2,i:[{t:3}],s:"Created"}},fund:{t:0,b:{t:2,i:[{t:3}],s:"Fund"}},start:{t:0,b:{t:2,i:[{t:3}],s:"Start"}},open:{t:0,b:{t:2,i:[{t:3}],s:"Open"}},failed:{t:0,b:{t:2,i:[{t:4,k:"step"},{t:3,v:" failed"}]}}},bar:{degraded:{title:{t:0,b:{t:2,i:[{t:3,v:"Degraded — "},{t:4,k:"up"},{t:3,v:"/"},{t:4,k:"total"},{t:3,v:" nodes running"}]}},noneUp:{t:0,b:{t:2,i:[{t:3}],s:"No node of this head is up. Restart it, or check the container logs."}},partyMissing:{t:0,b:{t:2,i:[{t:3}],s:"The head cannot reach consensus while a party is missing. Open it for details."}}},failed:{title:{t:0,b:{t:2,i:[{t:3}],s:"Boot failed — all containers rolled back"}},detail:{t:0,b:{t:2,i:[{t:4,k:"error"}]}},noDetail:{t:0,b:{t:2,i:[{t:3}],s:"No further detail was recorded."}}},starting:{title:{t:0,b:{t:1,c:[{t:2,i:[{t:3,v:"Booting "},{t:4,k:"count"},{t:3,v:" node"}]},{t:2,i:[{t:3,v:"Booting "},{t:4,k:"count"},{t:3,v:" nodes"}]}]}},detail:{t:0,b:{t:2,i:[{t:3}],s:"Waiting for every node to answer on its API port. This can take a few minutes."}}},unfunded:{title:{t:0,b:{t:2,i:[{t:3}],s:"Fund these addresses to continue"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"Each node needs test ADA to commit. Keys were generated for you — nothing to install."}}},fundingUnknown:{title:{t:0,b:{t:2,i:[{t:3}],s:"Fund each node before starting"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"Balances cannot be verified from here yet, so check each address has test ADA before you start the head."}}},stopped:{t:0,b:{t:2,i:[{t:3}],s:"Stopped"}},ready:{t:0,b:{t:2,i:[{t:3}],s:"Ready to start"}},readyOffline:{t:0,b:{t:2,i:[{t:3}],s:"Offline head — it opens with the UTxO set written at start, with nothing to fund."}},intact:{t:0,b:{t:2,i:[{t:3}],s:"Keys and persistence are intact."}},open:{title:{t:0,b:{t:2,i:[{t:3}],s:"Head is open"}},detail:{t:0,b:{t:1,c:[{t:2,i:[{t:3}],s:"The only node is connected."},{t:2,i:[{t:3,v:"All "},{t:4,k:"count"},{t:3,v:" nodes connected."}]}]}},detailUtxo:{t:0,b:{t:1,c:[{t:2,i:[{t:3,v:"The only node is connected · "},{t:4,k:"utxos"},{t:3,v:" UTxOs in the L2 snapshot."}]},{t:2,i:[{t:3,v:"All "},{t:4,k:"count"},{t:3,v:" nodes connected · "},{t:4,k:"utxos"},{t:3,v:" UTxOs in the L2 snapshot."}]}]}}},initializing:{title:{t:0,b:{t:2,i:[{t:3}],s:"Waiting for all parties to commit"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"The head is initialising. Every participant must commit before it opens."}}},idle:{title:{t:0,b:{t:2,i:[{t:3}],s:"Nodes are up"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"The head has not been initialised yet."}}},closed:{title:{t:0,b:{t:2,i:[{t:3}],s:"Head closed"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"The contestation period is running. Fanout becomes possible once it ends."}}},fanout:{title:{t:0,b:{t:2,i:[{t:3}],s:"Fanout available"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"The head is closed and funds can be distributed back to L1."}}},final:{title:{t:0,b:{t:2,i:[{t:3}],s:"Head finalised"}},detail:{t:0,b:{t:2,i:[{t:3}],s:"Funds have been returned to L1."}}},unknown:{detail:{t:0,b:{t:2,i:[{t:3}],s:"Hydra state could not be determined — nodes may disagree."}}}},blocked:{docker:{t:0,b:{t:2,i:[{t:3}],s:"Docker is unreachable — the control-plane cannot create containers."}},unfunded:{t:0,b:{t:2,i:[{t:4,k:"node"},{t:3,v:" has no funds yet."}]}},editRunning:{t:0,b:{t:2,i:[{t:3}],s:"Stop the head before changing its settings."}},editRan:{t:0,b:{t:2,i:[{t:3}],s:"This head has already run. Reset it to wipe persistence, then edit."}}},confirm:{delete:{title:{t:0,b:{t:2,i:[{t:3}],s:"Delete this head?"}},label:{t:0,b:{t:2,i:[{t:3}],s:"Delete head"}}},resetKeys:{title:{t:0,b:{t:2,i:[{t:3}],s:"Reset and regenerate keys?"}},label:{t:0,b:{t:2,i:[{t:3}],s:"Reset everything"}}},reset:{title:{t:0,b:{t:2,i:[{t:3}],s:"Reset persistence?"}},label:{t:0,b:{t:2,i:[{t:3}],s:"Reset"}}}}},confirmDialog:{typeToConfirm:{t:0,b:{t:2,i:[{t:3,v:"Type "},{t:4,k:"text"},{t:3,v:" to confirm"}]}},typeToEnable:{t:0,b:{t:2,i:[{t:3,v:"Type "},{t:4,k:"text"},{t:3,v:" to enable"}]}}},copy:{copy:{t:0,b:{t:2,i:[{t:3,v:"Copy "},{t:4,k:"what"}]}},copied:{t:0,b:{t:2,i:[{t:3}],s:"Copied"}},value:{t:0,b:{t:2,i:[{t:3}],s:"value"}},labels:{address:{t:0,b:{t:2,i:[{t:3}],s:"address"}},vkey:{t:0,b:{t:2,i:[{t:3}],s:"verification key"}},log:{t:0,b:{t:2,i:[{t:3}],s:"log"}},snippet:{t:0,b:{t:2,i:[{t:3}],s:"snippet"}},frame:{t:0,b:{t:2,i:[{t:3}],s:"frame"}},nodeUrl:{t:0,b:{t:2,i:[{t:3}],s:"node URL"}},password:{t:0,b:{t:2,i:[{t:3}],s:"password"}}}},headConfirm:{delete:{body:{t:0,b:{t:2,i:[{t:3,v:"This removes "},{t:4,k:"name"},{t:3,v:", its containers, and its entire state directory — including the generated keys."}]}},warning:{t:0,b:{t:2,i:[{t:3}],s:"Any funds still held by this head's addresses become unreachable through Hexcore."}}},resetKeys:{body:{t:0,b:{t:2,i:[{t:3,v:"This wipes persistence "},{t:4,k:"keys"},{t:3,v:", which produces brand-new Cardano addresses."}]}},keys:{t:0,b:{t:2,i:[{t:3}],s:"and regenerates every key"}},warning:{t:0,b:{t:2,i:[{t:3}],s:"Test ADA already sent to the current addresses will no longer be reachable from this head."}}},reset:{body:{t:0,b:{t:2,i:[{t:3,v:"Wipes the Hydra persistence for "},{t:4,k:"name"},{t:3,v:" so the next start begins from a clean state."}]}},kept:{t:0,b:{t:2,i:[{t:3}],s:"Keys and funded addresses are kept."}}},alsoKeys:{t:0,b:{t:2,i:[{t:3}],s:"Also regenerate keys (new addresses)"}},toast:{deleted:{t:0,b:{t:2,i:[{t:3,v:"Deleted "},{t:4,k:"name"}]}},reset:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" persistence wiped"}]}},resetKeys:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" reset"}]}},resetKeysDetail:{t:0,b:{t:2,i:[{t:3}],s:"New addresses were generated — fund them before starting."}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Action failed"}}}},headsPage:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"Hydra Heads"}},title:{t:0,b:{t:2,i:[{t:3}],s:"Your Hydra Heads"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Each head runs one or more hydra-node containers that form a single Head."}},cards:{t:0,b:{t:2,i:[{t:3}],s:"Cards"}},table:{t:0,b:{t:2,i:[{t:3}],s:"Table"}},newHead:{t:0,b:{t:2,i:[{t:3}],s:"New Head"}},stalled:{t:0,b:{t:2,i:[{t:3}],s:"Lost contact with the control-plane. Live updates are paused."}},reconnect:{t:0,b:{t:2,i:[{t:3}],s:"Reconnect"}},suggestTable:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" heads — the table view fits more on screen."}]}},switchToTable:{t:0,b:{t:2,i:[{t:3}],s:"Switch to table"}},empty:{title:{t:0,b:{t:2,i:[{t:3}],s:"No heads yet"}},body:{t:0,b:{t:2,i:[{t:3}],s:"Creating a head generates every Hydra and Cardano key it needs — you only choose a name and how many nodes should take part."}},cta:{t:0,b:{t:2,i:[{t:3}],s:"Create your first head"}}}},headCard:{open:{t:0,b:{t:2,i:[{t:3,v:"Open "},{t:4,k:"name"}]}},nodes:{t:0,b:{t:1,c:[{t:2,i:[{t:4,k:"count"},{t:3,v:" node"}]},{t:2,i:[{t:4,k:"count"},{t:3,v:" nodes"}]}]}},contestation:{t:0,b:{t:2,i:[{t:3,v:"contestation "},{t:4,k:"value"}]}},deposit:{t:0,b:{t:2,i:[{t:3,v:"deposit "},{t:4,k:"value"}]}},created:{t:0,b:{t:2,i:[{t:3,v:"created "},{t:4,k:"when"}]}},viewLog:{t:0,b:{t:2,i:[{t:3}],s:"View log"}},inspect:{t:0,b:{t:2,i:[{t:3}],s:"Inspect"}}},headTable:{head:{t:0,b:{t:2,i:[{t:3}],s:"Head"}},status:{t:0,b:{t:2,i:[{t:3}],s:"Status"}},hydraState:{t:0,b:{t:2,i:[{t:3}],s:"Hydra state"}},nodes:{t:0,b:{t:2,i:[{t:3}],s:"Nodes"}},contestation:{t:0,b:{t:2,i:[{t:3}],s:"Contestation"}},actions:{t:0,b:{t:2,i:[{t:3}],s:"Actions"}}},fundList:{noAddress:{t:0,b:{t:2,i:[{t:3}],s:"no address"}},balancesUnknown:{t:0,b:{t:2,i:[{t:3}],s:"Balances can't be read from here yet — check each address has funds before starting."}},faucet:{t:0,b:{t:2,i:[{t:3}],s:"Open the faucet"}}},detail:{head:{t:0,b:{t:2,i:[{t:3}],s:"Head"}},notFound:{t:0,b:{t:2,i:[{t:3}],s:"Head not found"}},notFoundHint:{t:0,b:{t:2,i:[{t:3}],s:"It may have been deleted."}},allHeads:{t:0,b:{t:2,i:[{t:3}],s:"All heads"}},chips:{nodes:{t:0,b:{t:2,i:[{t:3}],s:"nodes"}},network:{t:0,b:{t:2,i:[{t:3}],s:"network"}},seed:{t:0,b:{t:2,i:[{t:3}],s:"seed"}},contestation:{t:0,b:{t:2,i:[{t:3}],s:"contestation"}},deposit:{t:0,b:{t:2,i:[{t:3}],s:"deposit"}},version:{t:0,b:{t:2,i:[{t:3}],s:"version"}},pinned:{t:0,b:{t:2,i:[{t:3}],s:"pinned"}},pinnedValue:{t:0,b:{t:1,c:[{t:2,i:[{t:4,k:"count"},{t:3,v:" parameter"}]},{t:2,i:[{t:4,k:"count"},{t:3,v:" parameters"}]}]}}},resetHint:{t:0,b:{t:2,i:[{t:3}],s:"Wipe this head's Hydra persistence and start over. Keys and addresses are kept."}},deleteHead:{t:0,b:{t:2,i:[{t:3}],s:"Delete head"}},lastError:{t:0,b:{t:2,i:[{t:3}],s:"Last error"}},tabs:{node:{t:0,b:{t:2,i:[{t:3}],s:"Node"}},resources:{t:0,b:{t:2,i:[{t:3}],s:"Resources"}},log:{t:0,b:{t:2,i:[{t:3}],s:"Container log"}},events:{t:0,b:{t:2,i:[{t:3}],s:"Head events"}}},console:{t:0,b:{t:2,i:[{t:3}],s:"Console"}},consoleHint:{t:0,b:{t:2,i:[{t:3}],s:"Connect to this node, watch its frames and send commands"}},consoleBlocked:{t:0,b:{t:2,i:[{t:3}],s:"The head must be running before a node can answer"}},identity:{t:0,b:{t:2,i:[{t:3}],s:"Identity"}},ports:{t:0,b:{t:2,i:[{t:3}],s:"Ports"}},address:{t:0,b:{t:2,i:[{t:3}],s:"Address"}},liveState:{t:0,b:{t:2,i:[{t:3}],s:"Live state"}},inSync:{t:0,b:{t:2,i:[{t:3}],s:"in sync"}},catchingUp:{t:0,b:{t:2,i:[{t:3}],s:"catching up"}},networkDown:{t:0,b:{t:2,i:[{t:3}],s:"network down"}},peersLost:{t:0,b:{t:2,i:[{t:3,v:"peers lost: "},{t:4,k:"peers"}]}},snapshotUtxos:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" snapshot UTxOs"}]}},connecting:{t:0,b:{t:2,i:[{t:3}],s:"Connecting to the node…"}},notRunning:{t:0,b:{t:2,i:[{t:3}],s:"The head is not running — nothing to report."}},log:{empty:{t:0,b:{t:2,i:[{t:3}],s:"(no output yet)"}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Could not read logs."}},failedWith:{t:0,b:{t:2,i:[{t:3,v:"Could not read logs: "},{t:4,k:"error"}]}},tail:{t:0,b:{t:2,i:[{t:3}],s:"Lines to tail"}},lines:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" lines"}]}}},noEvents:{t:0,b:{t:2,i:[{t:3}],s:"No events recorded yet."}}},boot:{title:{t:0,b:{t:2,i:[{t:3,v:"Starting "},{t:4,k:"name"}]}},headN:{t:0,b:{t:2,i:[{t:3,v:"head "},{t:4,k:"id"}]}},succeeded:{t:0,b:{t:2,i:[{t:3,v:"Ready in "},{t:4,k:"elapsed"},{t:3,v:" — every node greeted."}]}},failed:{t:0,b:{t:2,i:[{t:3,v:"Failed after "},{t:4,k:"elapsed"},{t:3,v:". Containers were rolled back, so a retry starts clean."}]}},running:{t:0,b:{t:2,i:[{t:3,v:"Running for "},{t:4,k:"elapsed"},{t:3,v:". Closing this does not stop it."}]}},waiting:{t:0,b:{t:2,i:[{t:3}],s:"Waiting for the control-plane to report progress…"}},noProgress:{t:0,b:{t:2,i:[{t:3}],s:"No boot progress recorded for this head yet."}},log:{t:0,b:{t:2,i:[{t:3}],s:"Log"}},closeKeepStarting:{t:0,b:{t:2,i:[{t:3}],s:"Close and keep starting"}}},resources:{title:{t:0,b:{t:2,i:[{t:3}],s:"Container resources"}},resample:{t:0,b:{t:2,i:[{t:3}],s:"Resample"}},running:{t:0,b:{t:2,i:[{t:3}],s:"Running"}},memory:{t:0,b:{t:2,i:[{t:3}],s:"Memory"}},sampling:{t:0,b:{t:2,i:[{t:3}],s:"Sampling…"}},nothing:{t:0,b:{t:2,i:[{t:3}],s:"Nothing to sample — this head has no containers."}},nodeRunning:{t:0,b:{t:2,i:[{t:3}],s:"running"}},nodeStopped:{t:0,b:{t:2,i:[{t:3}],s:"stopped"}},threads:{t:0,b:{t:2,i:[{t:4,k:"count"},{t:3,v:" thr"}]}},noContainer:{t:0,b:{t:2,i:[{t:3}],s:"No container — stopped, or Docker could not be reached."}},sampled:{t:0,b:{t:2,i:[{t:3,v:"Sampled "},{t:4,k:"at"},{t:3,v:", every "},{t:4,k:"every"},{t:3,v:"s · memory excludes page cache."}]}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Could not read container stats."}}},topology:{solo:{t:0,b:{t:2,i:[{t:3}],s:"Solo head — no peers"}},peerUp:{t:0,b:{t:2,i:[{t:3}],s:"peer connected"}},peerDown:{t:0,b:{t:2,i:[{t:3}],s:"peer down"}},inferred:{t:0,b:{t:2,i:[{t:3}],s:"inferred from node reachability"}}},console:{subtitle:{t:0,b:{t:2,i:[{t:3,v:"Node "},{t:4,k:"index"},{t:3,v:" of "},{t:4,k:"head"},{t:3,v:" · api port "},{t:4,k:"port"}]}},status:{idle:{t:0,b:{t:2,i:[{t:3}],s:"idle"}},connecting:{t:0,b:{t:2,i:[{t:3}],s:"connecting"}},open:{t:0,b:{t:2,i:[{t:3}],s:"open"}},closed:{t:0,b:{t:2,i:[{t:3}],s:"closed"}}},connectTab:{t:0,b:{t:2,i:[{t:3}],s:"Connect"}},notRunning:{t:0,b:{t:2,i:[{t:3}],s:"This head is not running, so there is no node to connect to. Start it and the console attaches by itself."}},connect:{t:0,b:{t:2,i:[{t:3}],s:"Connect"}},disconnect:{t:0,b:{t:2,i:[{t:3}],s:"Disconnect"}},filter:{t:0,b:{t:2,i:[{t:3}],s:"Filter frames…"}},historyHint:{t:0,b:{t:2,i:[{t:3}],s:"Replay the node's event log"}},snapshotUtxoHint:{t:0,b:{t:2,i:[{t:3}],s:"Include the UTxO map in Greetings"}},clear:{t:0,b:{t:2,i:[{t:3}],s:"Clear frames"}},noMatch:{t:0,b:{t:2,i:[{t:3}],s:"No frame matches that filter."}},nothingYet:{t:0,b:{t:2,i:[{t:3}],s:"Nothing received yet."}},templateLabel:{t:0,b:{t:2,i:[{t:3}],s:"Load a command template"}},templatePlaceholder:{t:0,b:{t:2,i:[{t:3}],s:"Command…"}},templateHint:{t:0,b:{t:2,i:[{t:3}],s:"Templates load into the box — read and edit before sending."}},send:{t:0,b:{t:2,i:[{t:3}],s:"Send"}},notConnected:{t:0,b:{t:2,i:[{t:3}],s:"Not connected — nothing was sent."}},since:{v022:{t:0,b:{t:2,i:[{t:3}],s:"0.22 only"}},v2:{t:0,b:{t:2,i:[{t:3}],s:"2.x only"}}},confirm:{title:{t:0,b:{t:2,i:[{t:3,v:"Send "},{t:4,k:"command"},{t:3,v:" to "},{t:4,k:"node"},{t:3,v:"?"}]}},label:{t:0,b:{t:2,i:[{t:3,v:"Send "},{t:4,k:"command"}]}},body:{t:0,b:{t:2,i:[{t:3}],s:"This goes to one node, and the head is shared — the other nodes follow it. There is no way to take it back."}}},httpsAdvice:{t:0,b:{t:2,i:[{t:3}],s:"This page is served over HTTPS, and browsers block plain ws:// from a secure page. Reach the node over a TLS-terminating proxy, or open Hexcore over http:// on the machine running Docker."}},invalid:{empty:{t:0,b:{t:2,i:[{t:3}],s:"Nothing to send."}},notObject:{t:0,b:{t:2,i:[{t:3}],s:"A command must be a JSON object."}},noTag:{t:0,b:{t:2,i:[{t:3}],s:'A command needs a "tag" — that is how hydra-node dispatches it.'}},json:{t:0,b:{t:2,i:[{t:3,v:"Not valid JSON: "},{t:4,k:"error"}]}}},close:{byNode:{t:0,b:{t:2,i:[{t:3,v:"Node closed the connection: "},{t:4,k:"reason"},{t:3,v:" (code "},{t:4,k:"code"},{t:3,v:")"}]}},clean:{t:0,b:{t:2,i:[{t:3,v:"Connection closed (code "},{t:4,k:"code"},{t:3,v:")."}]}},unreachable:{t:0,b:{t:2,i:[{t:3}],s:"Could not reach the node. Its container may be down, the API port may not be published, or something between this browser and the host is blocking it."}},lost:{t:0,b:{t:2,i:[{t:3,v:"Connection lost (code "},{t:4,k:"code"},{t:3,v:")."}]}}},notes:{connecting:{t:0,b:{t:2,i:[{t:3,v:"connecting to "},{t:4,k:"url"}]}},connected:{t:0,b:{t:2,i:[{t:3}],s:"connected"}},cannotOpen:{t:0,b:{t:2,i:[{t:3,v:"Cannot open "},{t:4,k:"url"},{t:3,v:": "},{t:4,k:"error"}]}}}},connect:{title:{t:0,b:{t:2,i:[{t:3,v:"Connect to "},{t:4,k:"node"}]}},intro:{t:0,b:{t:2,i:[{t:3}],s:"This node's Hydra API, as the console beside it is using it. The port belongs to this node alone — every node of a head gets its own block."}},url:{t:0,b:{t:2,i:[{t:3}],s:"WebSocket URL"}},sdkHint:{t:0,b:{t:2,i:[{t:4,k:"install"},{t:3,v:" — the same client the control-plane uses to watch these nodes."}]}},rawHint:{t:0,b:{t:2,i:[{t:3,v:"No dependencies. hydra-node speaks newline-free JSON objects, one per frame, each carrying a "},{t:4,k:"tag"},{t:3,v:"."}]}},httpHint:{t:0,b:{t:2,i:[{t:3}],s:"The same port answers HTTP for the things that are a query rather than a stream."}},docs:{t:0,b:{t:2,i:[{t:3}],s:"hydra-sdk documentation"}},docsHint:{t:0,b:{t:2,i:[{t:3}],s:"Building transactions, committing funds and reading snapshots — the parts this console shows you the wire format of, with types."}}},editHead:{pageTitle:{t:0,b:{t:2,i:[{t:3,v:"Edit "},{t:4,k:"name"}]}},back:{t:0,b:{t:2,i:[{t:3}],s:"Back to head"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Applied at the next start. Node count, chain backend and generated keys are fixed at creation."}},locked:{t:0,b:{t:2,i:[{t:3}],s:"This head can no longer be edited"}},lockedRunning:{t:0,b:{t:2,i:[{t:3}],s:"Stop it first — its containers are running with these settings."}},lockedRan:{t:0,b:{t:2,i:[{t:3}],s:"It has already run, so its persistence may not match new settings. Reset it to wipe persistence, then edit."}},image:{t:0,b:{t:2,i:[{t:3}],s:"hydra-node image"}},imageHint:{t:0,b:{t:2,i:[{t:3}],s:"Changing this is safe while the head has never run. Once it has, the persistence on disk was written by the old version and a different line cannot resume it."}},quiet:{t:0,b:{t:2,i:[{t:3,v:"Quiet hydra-node ("},{t:4,k:"flag"},{t:3,v:")"}]}},blockfrost:{replace:{t:0,b:{t:2,i:[{t:3}],s:"Replace the API key"}},placeholder:{t:0,b:{t:2,i:[{t:3}],s:"Leave empty to keep the current key"}},hint:{t:0,b:{t:2,i:[{t:3}],s:"The key is never sent back to this form, so there is nothing to show here — type a new one only if you mean to replace it. Per-node keys are unaffected."}}},save:{t:0,b:{t:2,i:[{t:3}],s:"Save changes"}},loadFailed:{t:0,b:{t:2,i:[{t:3}],s:"Could not load this head."}},invalid:{t:0,b:{t:2,i:[{t:3}],s:"Some values need fixing."}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Update failed."}},toast:{t:0,b:{t:2,i:[{t:4,k:"name"},{t:3,v:" updated"}]}},appliedNextStart:{t:0,b:{t:2,i:[{t:3}],s:"Applied at the next start."}}},login:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"Sign in"}},tagline:{t:0,b:{t:2,i:[{t:3}],s:"Boot and operate Hydra Heads"}},username:{t:0,b:{t:2,i:[{t:3}],s:"Username"}},password:{t:0,b:{t:2,i:[{t:3}],s:"Password"}},submit:{t:0,b:{t:2,i:[{t:3}],s:"Sign in"}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Could not sign in. Is the control-plane running?"}},firstBoot:{t:0,b:{t:2,i:[{t:3,v:"On first boot the control-plane generates a password and prints it once in its log, unless "},{t:4,k:"env"},{t:3,v:" is set."}]}}},setup:{title:{t:0,b:{t:2,i:[{t:3}],s:"Set up Hexcore"}},subtitle:{t:0,b:{t:2,i:[{t:3}],s:"Four answers, then you can boot a Hydra Head."}},unreachable:{t:0,b:{t:2,i:[{t:3}],s:"Cannot reach the control-plane. Is it still running?"}},failed:{t:0,b:{t:2,i:[{t:3}],s:"Setup failed. Is the control-plane still running?"}},done:{title:{t:0,b:{t:2,i:[{t:3}],s:"Hexcore is configured"}},body:{t:0,b:{t:2,i:[{t:3}],s:"Settings are saved and already in effect — no restart needed."}},savePassword:{t:0,b:{t:2,i:[{t:3}],s:"Save this password now"}},shownOnce:{t:0,b:{t:2,i:[{t:3}],s:"It is shown once and cannot be recovered — only reset."}}},token:{required:{t:0,b:{t:2,i:[{t:3}],s:"Setup link required"}},body:{t:0,b:{t:2,i:[{t:3}],s:"Open the URL printed in the terminal where you started Hexcore — it carries a one-time token. Anyone who can reach this port could otherwise claim the admin account."}},label:{t:0,b:{t:2,i:[{t:3}],s:"Setup token"}}},networks:{preprod:{t:0,b:{t:2,i:[{t:3}],s:"preprod — the usual testnet"}},preview:{t:0,b:{t:2,i:[{t:3}],s:"preview — the newer testnet"}},mainnet:{t:0,b:{t:2,i:[{t:3}],s:"mainnet — real funds"}}},backendQuestion:{t:0,b:{t:2,i:[{t:3}],s:"How should heads reach the chain?"}},backends:{offline:{label:{t:0,b:{t:2,i:[{t:3}],s:"Offline"}},blurb:{t:0,b:{t:2,i:[{t:3}],s:"The head simulates its own layer 1. Real multi-node Hydra, no chain, no waiting."}},needs:{t:0,b:{t:2,i:[{t:3}],s:"Nothing at all"}}},blockfrost:{label:{t:0,b:{t:2,i:[{t:3}],s:"Blockfrost"}},blurb:{t:0,b:{t:2,i:[{t:3}],s:"Talks to the real chain over a hosted API. The usual choice for a testnet head."}},needs:{t:0,b:{t:2,i:[{t:3}],s:"A free API key from blockfrost.io"}}},cardanoNode:{label:{t:0,b:{t:2,i:[{t:3}],s:"cardano-node"}},blurb:{t:0,b:{t:2,i:[{t:3}],s:"Talks to a node you already run. Closest to the tip, and the fastest to sync."}},needs:{t:0,b:{t:2,i:[{t:3}],s:"A node socket on this machine"}}}},noCredential:{t:0,b:{t:2,i:[{t:3}],s:"no credential needed"}},needs:{t:0,b:{t:2,i:[{t:3,v:"Needs: "},{t:4,k:"what"}]}},blockfrostHint:{t:0,b:{t:2,i:[{t:3,v:"Free at blockfrost.io. It must be a "},{t:4,k:"network"},{t:3,v:" key — a key for another network does not fail loudly, it produces a head that never sees its own transactions."}]}},socketPath:{t:0,b:{t:2,i:[{t:3}],s:"cardano-node socket path"}},password:{placeholder:{t:0,b:{t:2,i:[{t:3}],s:"leave blank to generate"}},confirm:{t:0,b:{t:2,i:[{t:3}],s:"Confirm password"}},tooShort:{t:0,b:{t:2,i:[{t:3}],s:"Use at least 8 characters."}},mismatch:{t:0,b:{t:2,i:[{t:3}],s:"These do not match."}},generated:{t:0,b:{t:2,i:[{t:3}],s:"Left blank, a strong password is generated and shown once on the next screen."}}},submit:{t:0,b:{t:2,i:[{t:3}],s:"Finish setup"}},footer:{t:0,b:{t:2,i:[{t:3,v:"Everything here can be changed later from Settings. Prefer a terminal? "},{t:4,k:"command"},{t:3,v:" asks the same questions."}]}}},settings:{pageTitle:{t:0,b:{t:2,i:[{t:3}],s:"Settings"}},intro:{t:0,b:{t:2,i:[{t:3,v:"Saved on the control-plane and applied without a restart. An environment variable or a "},{t:4,k:"env"},{t:3,v:" still wins over anything set here — the table at the bottom says which."}]}},chain:{title:{t:0,b:{t:2,i:[{t:3}],s:"Chain"}},description:{t:0,b:{t:2,i:[{t:3}],s:"Defaults for new heads. Existing heads keep what they were created with."}},network:{t:0,b:{t:2,i:[{t:3}],s:"Cardano network"}},offline:{t:0,b:{t:2,i:[{t:3}],s:"offline — no credential"}},blockfrost:{t:0,b:{t:2,i:[{t:3}],s:"Blockfrost project id"}},unchanged:{t:0,b:{t:2,i:[{t:3}],s:"unchanged"}},keyStored:{t:0,b:{t:2,i:[{t:3}],s:"A key is stored. Leave this blank to keep it — it is never sent back to the browser."}},mustStartWith:{t:0,b:{t:2,i:[{t:3,v:"Must start with "},{t:4,k:"network"},{t:3,v:"."}]}},socket:{t:0,b:{t:2,i:[{t:3}],s:"cardano-node socket"}},image:{t:0,b:{t:2,i:[{t:3}],s:"Default hydra-node image"}},imageHint:{t:0,b:{t:2,i:[{t:3}],s:"A head can still pin its own at creation, which is how two versions run side by side."}},keyRequired:{t:0,b:{t:2,i:[{t:3}],s:"The Blockfrost backend needs a project id before a head can be created against it."}}},adminUsername:{t:0,b:{t:2,i:[{t:3}],s:"Admin username"}},save:{t:0,b:{t:2,i:[{t:3}],s:"Save settings"}},saveHint:{t:0,b:{t:2,i:[{t:3}],s:"Applied immediately; no restart."}},facts:{signedInAs:{t:0,b:{t:2,i:[{t:3}],s:"Signed in as"}},version:{t:0,b:{t:2,i:[{t:3}],s:"Control-plane version"}},healthy:{t:0,b:{t:2,i:[{t:3}],s:"healthy"}},unreachable:{t:0,b:{t:2,i:[{t:3}],s:"unreachable"}},auth:{t:0,b:{t:2,i:[{t:3}],s:"Authentication"}},enabled:{t:0,b:{t:2,i:[{t:3}],s:"enabled"}},disabled:{t:0,b:{t:2,i:[{t:3}],s:"disabled"}},available:{t:0,b:{t:2,i:[{t:3}],s:"available"}},notAvailable:{t:0,b:{t:2,i:[{t:3}],s:"not available"}},notSet:{t:0,b:{t:2,i:[{t:3}],s:"not set"}},stateDir:{t:0,b:{t:2,i:[{t:3}],s:"State directory"}},maxNodes:{t:0,b:{t:2,i:[{t:3}],s:"Max active nodes"}}},provenance:{title:{t:0,b:{t:2,i:[{t:3}],s:"Where each value comes from"}},description:{t:0,b:{t:2,i:[{t:3,v:"Highest layer wins: environment variable, then a "},{t:4,k:"env"},{t:3,v:" beside the server, then what is saved here, then the built-in default."}]}},pinned:{t:0,b:{t:2,i:[{t:3}],s:"Some settings are pinned"}},pinnedBody:{t:0,b:{t:2,i:[{t:4,k:"keys"},{t:3,v:" came from a higher layer, so saving a different value here has no effect until it is unset on the server."}]}},set:{t:0,b:{t:2,i:[{t:3}],s:"(set)"}},unset:{t:0,b:{t:2,i:[{t:3}],s:"(not set)"}}},source:{environment:{t:0,b:{t:2,i:[{t:3}],s:"environment variable"}},envFile:{t:0,b:{t:2,i:[{t:3}],s:".env file"}},settingsFile:{t:0,b:{t:2,i:[{t:3}],s:"saved here"}},default:{t:0,b:{t:2,i:[{t:3}],s:"built-in default"}}},wipe:{title:{t:0,b:{t:2,i:[{t:3}],s:"Start over"}},description:{t:0,b:{t:2,i:[{t:3,v:"Both keep your Cardano signing keys, so any address already holding test ADA survives. Deleting those needs "},{t:4,k:"command"},{t:3,v:" with the server stopped."}]}},config:{t:0,b:{t:2,i:[{t:3}],s:"Reset configuration"}},configHint:{t:0,b:{t:2,i:[{t:3}],s:"Forgets network, backend and credentials, and returns to the setup wizard. Heads are untouched."}},heads:{t:0,b:{t:2,i:[{t:3}],s:"Delete every head"}},headsHint:{t:0,b:{t:2,i:[{t:3}],s:"Removes all containers and Hydra persistence. Configuration and your login stay as they are."}},deleteAll:{t:0,b:{t:2,i:[{t:3}],s:"Delete all"}},configConfirm:{t:0,b:{t:2,i:[{t:3}],s:"Reset the configuration?"}},headsConfirm:{t:0,b:{t:2,i:[{t:3}],s:"Delete every head?"}},configBody:{t:0,b:{t:2,i:[{t:3}],s:"Network, backend and stored credentials are forgotten, and Hexcore returns to the setup wizard."}},configKept:{t:0,b:{t:2,i:[{t:3}],s:"Your heads, their keys and their persistence are kept exactly as they are."}},headsBody:{t:0,b:{t:2,i:[{t:3}],s:"Every head is stopped, its containers removed and its Hydra persistence deleted."}},headsKept:{t:0,b:{t:2,i:[{t:3}],s:"Signing keys are kept, so addresses you have already funded remain spendable."}}},toast:{saved:{t:0,b:{t:2,i:[{t:3}],s:"Settings saved"}},savedDetail:{t:0,b:{t:2,i:[{t:3}],s:"Applied to the running control-plane — no restart needed."}},saveFailed:{t:0,b:{t:2,i:[{t:3}],s:"Could not save settings"}},removed:{t:0,b:{t:2,i:[{t:3,v:"Removed "},{t:4,k:"heads"},{t:3,v:" head(s) and "},{t:4,k:"containers"},{t:3,v:" container(s)"}]}},nothingDeleted:{t:0,b:{t:2,i:[{t:3}],s:"Nothing was deleted"}}}},api:{timeout:{t:0,b:{t:2,i:[{t:3,v:"The request to "},{t:4,k:"path"},{t:3,v:" timed out after "},{t:4,k:"seconds"},{t:3,v:"s."}]}},unreachable:{t:0,b:{t:2,i:[{t:3}],s:"Cannot reach the control-plane. Is it running?"}},notJson:{t:0,b:{t:2,i:[{t:3,v:"Server returned a non-JSON response ("},{t:4,k:"status"},{t:3,v:")."}]}},badEnvelope:{t:0,b:{t:2,i:[{t:3}],s:"Server response did not match the expected envelope."}}}};export{t as default};
|