@samyx/preview-stacks-ui 0.19.0 → 0.22.0
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/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js +2 -0
- package/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js.map +1 -0
- package/dist/assets/{AxesTab-COaSNzrG.js → AxesTab-CCB3wdSX.js} +2 -2
- package/dist/assets/{AxesTab-COaSNzrG.js.map → AxesTab-CCB3wdSX.js.map} +1 -1
- package/dist/assets/ConfigTab-Cyqzeq3C.js +2 -0
- package/dist/assets/ConfigTab-Cyqzeq3C.js.map +1 -0
- package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-DrzDcr4X.js → ConflictNote.vue_vue_type_script_setup_true_lang-CtwJE2eJ.js} +2 -2
- package/dist/assets/{ConflictNote.vue_vue_type_script_setup_true_lang-DrzDcr4X.js.map → ConflictNote.vue_vue_type_script_setup_true_lang-CtwJE2eJ.js.map} +1 -1
- package/dist/assets/{DangerTab-DsSJqxzj.js → DangerTab-Cdr9luUy.js} +2 -2
- package/dist/assets/{DangerTab-DsSJqxzj.js.map → DangerTab-Cdr9luUy.js.map} +1 -1
- package/dist/assets/{DashboardView-0BLBDth-.js → DashboardView-S4eiNX8X.js} +2 -2
- package/dist/assets/{DashboardView-0BLBDth-.js.map → DashboardView-S4eiNX8X.js.map} +1 -1
- package/dist/assets/DeploymentDetailView-CD4RVr06.js +2 -0
- package/dist/assets/DeploymentDetailView-CD4RVr06.js.map +1 -0
- package/dist/assets/DeploymentsView-DIX7IA8g.js +2 -0
- package/dist/assets/DeploymentsView-DIX7IA8g.js.map +1 -0
- package/dist/assets/{EquivalentCommand-DyCAI1Cy.js → EquivalentCommand-NHzDrg5d.js} +2 -2
- package/dist/assets/{EquivalentCommand-DyCAI1Cy.js.map → EquivalentCommand-NHzDrg5d.js.map} +1 -1
- package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-DjEWoD0O.js → ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js} +2 -2
- package/dist/assets/{ErrorNote.vue_vue_type_script_setup_true_lang-DjEWoD0O.js.map → ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js.map} +1 -1
- package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-CACw-lfW.js → HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.js} +2 -2
- package/dist/assets/{HelpModal.vue_vue_type_script_setup_true_lang-CACw-lfW.js.map → HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.js.map} +1 -1
- package/dist/assets/JobDetailView-BsCnnkPz.js +2 -0
- package/dist/assets/JobDetailView-BsCnnkPz.js.map +1 -0
- package/dist/assets/{JobsView-UUwzBG2c.js → JobsView-Bd_XHRkd.js} +2 -2
- package/dist/assets/{JobsView-UUwzBG2c.js.map → JobsView-Bd_XHRkd.js.map} +1 -1
- package/dist/assets/LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js +3 -0
- package/dist/assets/LogViewer.vue_vue_type_script_setup_true_lang-7Ggcxz1R.js.map +1 -0
- package/dist/assets/{LoginView-cKuF7PhJ.js → LoginView-Bj7uMFvv.js} +2 -2
- package/dist/assets/{LoginView-cKuF7PhJ.js.map → LoginView-Bj7uMFvv.js.map} +1 -1
- package/dist/assets/LogsTab-DRp76oC1.js +6 -0
- package/dist/assets/LogsTab-DRp76oC1.js.map +1 -0
- package/dist/assets/{NotFoundView-Bpcd3Ptj.js → NotFoundView-D-A8YFJw.js} +2 -2
- package/dist/assets/{NotFoundView-Bpcd3Ptj.js.map → NotFoundView-D-A8YFJw.js.map} +1 -1
- package/dist/assets/NotifiersView-CChDRHSy.js +2 -0
- package/dist/assets/NotifiersView-CChDRHSy.js.map +1 -0
- package/dist/assets/OverviewTab-jE_kOZI7.js +2 -0
- package/dist/assets/OverviewTab-jE_kOZI7.js.map +1 -0
- package/dist/assets/{RegistriesView-CfblUxVo.js → RegistriesView-D3Nh0dbq.js} +2 -2
- package/dist/assets/{RegistriesView-CfblUxVo.js.map → RegistriesView-D3Nh0dbq.js.map} +1 -1
- package/dist/assets/RelativeTime.vue_vue_type_script_setup_true_lang-mVrRpkV_.js +2 -0
- package/dist/assets/{RelativeTime.vue_vue_type_script_setup_true_lang-Dx90hw4F.js.map → RelativeTime.vue_vue_type_script_setup_true_lang-mVrRpkV_.js.map} +1 -1
- package/dist/assets/{RequiresTab-DKFeob92.js → RequiresTab-BgGIZ1Tn.js} +2 -2
- package/dist/assets/{RequiresTab-DKFeob92.js.map → RequiresTab-BgGIZ1Tn.js.map} +1 -1
- package/dist/assets/{RoutingView-7SWVlOx8.js → RoutingView-D2StZawf.js} +3 -3
- package/dist/assets/{RoutingView-7SWVlOx8.js.map → RoutingView-D2StZawf.js.map} +1 -1
- package/dist/assets/RuntimeTab-B0D_MxFQ.js +2 -0
- package/dist/assets/RuntimeTab-B0D_MxFQ.js.map +1 -0
- package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-B-DTK242.js → SelectMenu.vue_vue_type_script_setup_true_lang-qGkx2MwW.js} +2 -2
- package/dist/assets/{SelectMenu.vue_vue_type_script_setup_true_lang-B-DTK242.js.map → SelectMenu.vue_vue_type_script_setup_true_lang-qGkx2MwW.js.map} +1 -1
- package/dist/assets/SettingsView-Cu1Zkufg.js +2 -0
- package/dist/assets/SettingsView-Cu1Zkufg.js.map +1 -0
- package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-DiCGtn2a.js → SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js} +2 -2
- package/dist/assets/{SkeletonList.vue_vue_type_script_setup_true_lang-DiCGtn2a.js.map → SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js.map} +1 -1
- package/dist/assets/SpecDetailView-DIi21wo1.js +2 -0
- package/dist/assets/SpecDetailView-DIi21wo1.js.map +1 -0
- package/dist/assets/SpecsView-B49LI4Ut.js +2 -0
- package/dist/assets/SpecsView-B49LI4Ut.js.map +1 -0
- package/dist/assets/StateBadge.vue_vue_type_script_setup_true_lang-DANvveJ6.js +2 -0
- package/dist/assets/StateBadge.vue_vue_type_script_setup_true_lang-DANvveJ6.js.map +1 -0
- package/dist/assets/{SubmitView-6cqvVYlz.js → SubmitView-ZYGApCXE.js} +3 -3
- package/dist/assets/{SubmitView-6cqvVYlz.js.map → SubmitView-ZYGApCXE.js.map} +1 -1
- package/dist/assets/{Teleport-SesEhfqH.js → Teleport-d5PoAxFM.js} +2 -2
- package/dist/assets/{Teleport-SesEhfqH.js.map → Teleport-d5PoAxFM.js.map} +1 -1
- package/dist/assets/TerminalTab-DAZpn3jK.js +3 -0
- package/dist/assets/TerminalTab-DAZpn3jK.js.map +1 -0
- package/dist/assets/TerminalTab-DbjRludT.css +1 -0
- package/dist/assets/UsersView-BfQKf8Sf.js +2 -0
- package/dist/assets/UsersView-BfQKf8Sf.js.map +1 -0
- package/dist/assets/UsersView-DpZ_4vlY.css +1 -0
- package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-UEG5poOe.js → VarEditor.vue_vue_type_script_setup_true_lang-D--Rd-Mv.js} +2 -2
- package/dist/assets/{VarEditor.vue_vue_type_script_setup_true_lang-UEG5poOe.js.map → VarEditor.vue_vue_type_script_setup_true_lang-D--Rd-Mv.js.map} +1 -1
- package/dist/assets/VariablesView-Bej9ZZmS.js +2 -0
- package/dist/assets/VariablesView-Bej9ZZmS.js.map +1 -0
- package/dist/assets/VariablesView-Cnpkn8AM.css +1 -0
- package/dist/assets/index-Cyc_WOgY.css +1 -0
- package/dist/assets/{index-jLPJ82ve.js → index-DVCVnKbf.js} +28 -28
- package/dist/assets/index-DVCVnKbf.js.map +1 -0
- package/dist/assets/{useDeployment-Bgo0U4-I.js → useDeployment-752fTjLE.js} +2 -2
- package/dist/assets/{useDeployment-Bgo0U4-I.js.map → useDeployment-752fTjLE.js.map} +1 -1
- package/dist/assets/useFormat-DVXTfIS-.js +2 -0
- package/dist/assets/{useFormat-CKJxQp_i.js.map → useFormat-DVXTfIS-.js.map} +1 -1
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang-C0iLjBml.js +0 -2
- package/dist/assets/ActionButton.vue_vue_type_script_setup_true_lang-C0iLjBml.js.map +0 -1
- package/dist/assets/ConfigTab-XGvUbd66.js +0 -2
- package/dist/assets/ConfigTab-XGvUbd66.js.map +0 -1
- package/dist/assets/DeploymentDetailView-dJjqob1P.js +0 -2
- package/dist/assets/DeploymentDetailView-dJjqob1P.js.map +0 -1
- package/dist/assets/DeploymentsView-BM9LVpU-.js +0 -2
- package/dist/assets/DeploymentsView-BM9LVpU-.js.map +0 -1
- package/dist/assets/JobDetailView-DsYfLQUd.js +0 -2
- package/dist/assets/JobDetailView-DsYfLQUd.js.map +0 -1
- package/dist/assets/LogViewer.vue_vue_type_script_setup_true_lang-DYfYw8_a.js +0 -3
- package/dist/assets/LogViewer.vue_vue_type_script_setup_true_lang-DYfYw8_a.js.map +0 -1
- package/dist/assets/LogsTab-QEuDGrG2.js +0 -5
- package/dist/assets/LogsTab-QEuDGrG2.js.map +0 -1
- package/dist/assets/NotifiersView-B1xAKTwU.js +0 -2
- package/dist/assets/NotifiersView-B1xAKTwU.js.map +0 -1
- package/dist/assets/OverviewTab-B2aCu4e0.js +0 -2
- package/dist/assets/OverviewTab-B2aCu4e0.js.map +0 -1
- package/dist/assets/RelativeTime.vue_vue_type_script_setup_true_lang-Dx90hw4F.js +0 -2
- package/dist/assets/RuntimeTab-CiSAV3D0.js +0 -2
- package/dist/assets/RuntimeTab-CiSAV3D0.js.map +0 -1
- package/dist/assets/SettingsView-BEha1Bt3.js +0 -2
- package/dist/assets/SettingsView-BEha1Bt3.js.map +0 -1
- package/dist/assets/SpecDetailView-l86eWf2v.js +0 -2
- package/dist/assets/SpecDetailView-l86eWf2v.js.map +0 -1
- package/dist/assets/SpecsView-BfWq69K5.js +0 -2
- package/dist/assets/SpecsView-BfWq69K5.js.map +0 -1
- package/dist/assets/StateBadge.vue_vue_type_script_setup_true_lang-DMzCGltO.js +0 -2
- package/dist/assets/StateBadge.vue_vue_type_script_setup_true_lang-DMzCGltO.js.map +0 -1
- package/dist/assets/TerminalTab-4vbfGB2S.css +0 -1
- package/dist/assets/TerminalTab-gDAKYgTX.js +0 -3
- package/dist/assets/TerminalTab-gDAKYgTX.js.map +0 -1
- package/dist/assets/UsersView-Bvs30U8o.js +0 -2
- package/dist/assets/UsersView-Bvs30U8o.js.map +0 -1
- package/dist/assets/UsersView-DZhhpsnX.css +0 -1
- package/dist/assets/VariablesView-Xn79UX3b.js +0 -2
- package/dist/assets/VariablesView-Xn79UX3b.js.map +0 -1
- package/dist/assets/VariablesView-m1RjJR-x.css +0 -1
- package/dist/assets/index-WMJXAtiA.css +0 -1
- package/dist/assets/index-jLPJ82ve.js.map +0 -1
- package/dist/assets/useFormat-CKJxQp_i.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequiresTab-
|
|
1
|
+
{"version":3,"file":"RequiresTab-BgGIZ1Tn.js","sources":["../../src/views/tabs/RequiresTab.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/** Preconditions: checked before anything is created, so a failure names a thing, not a stack trace. */\nimport { dep } from '../../composables/useDeployment';\n</script>\n\n<template>\n <section class=\"panel\">\n <h2 class=\"section\" style=\"margin-bottom: var(--s3)\">\n Requires <span class=\"mute\">(checked before anything is created)</span>\n </h2>\n\n <p v-if=\"!dep.detail\" class=\"mute\">Unavailable until the spec resolves.</p>\n <template v-else>\n <p class=\"hint\" style=\"margin: 0 0 var(--s3)\">\n Preconditions run first, in order, and <code>up</code> stops at the first one that fails —\n by name, before a single resource exists. The <code>assert</code> command itself stays on\n the host; only the name and its authored hint are sent here.\n </p>\n\n <table class=\"cards\">\n <thead>\n <tr>\n <th>Requirement</th>\n <th>Hint shown on failure</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(r, i) in dep.detail.requires\" :key=\"r.name\" :style=\"{ '--i': i }\">\n <td class=\"name\" data-label=\"requirement\">{{ r.name }}</td>\n <td class=\"dim\" data-label=\"hint\">{{ r.hint || '— (no hint authored)' }}</td>\n </tr>\n <tr v-if=\"!dep.detail.requires.length\">\n <td colspan=\"2\" class=\"mute\">\n None declared — an isolated deployment that borrows shared infrastructure usually\n wants at least one.\n </td>\n </tr>\n </tbody>\n </table>\n </template>\n </section>\n</template>\n"],"names":["_openBlock","_createElementBlock","_hoisted_1","_createElementVNode","_unref","dep","_Fragment","_hoisted_3","_hoisted_4","_renderList","r","i","_hoisted_5","_toDisplayString","_hoisted_6","_hoisted_7","_cache","_hoisted_2"],"mappings":"4ZAMEA,EAAA,EAAAC,EAkCU,UAlCVC,EAkCU,aAjCRC,EAEK,KAAA,CAFD,MAAM,UAAU,MAAA,CAAA,gBAAA,WAAA,CAAA,KAAiC,YAC1C,EAAAA,EAA8D,OAAA,CAAxD,MAAM,MAAA,EAAO,sCAAoC,CAAA,OAGxDC,EAAAC,CAAA,EAAI,YACdJ,EA2BWK,EAAA,CAAA,IAAA,GAAA,aA1BTH,EAII,IAAA,CAJD,MAAM,OAAO,MAAA,CAAA,OAAA,eAAA,CAAA,KAA8B,0CACL,EAAAA,EAAe,YAAT,IAAE,IAAO,qFACR,EAAAA,EAAmB,YAAb,QAAM,IAAO,wFAEnE,CAAA,OAEAA,EAmBQ,QAnBRI,EAmBQ,aAlBNJ,EAKQ,QAAA,KAAA,CAJNA,EAGK,KAAA,KAAA,CAFHA,EAAoB,UAAhB,aAAW,EACfA,EAA8B,UAA1B,uBAAqB,CAAA,SAG7BA,EAWQ,QAXRK,EAWQ,QAVNP,EAGKK,EAAA,KAAAG,EAHgBL,KAAI,OAAO,SAAQ,CAA5BM,EAAGC,SAAfV,EAGK,KAAA,CAHsC,IAAKS,EAAE,KAAO,eAAgBC,EAAC,CAAA,GACxER,EAA2D,KAA3DS,EAA2DC,EAAdH,EAAE,IAAI,EAAA,CAAA,EACnDP,EAA6E,KAA7EW,EAA6ED,EAAxCH,EAAE,MAAI,sBAAA,EAAA,CAAA,CAAA,aAElCN,EAAAC,CAAA,EAAI,OAAO,SAAS,qBAA/BJ,EAKK,KAAAc,EAAA,CAAA,GAAAC,EAAA,CAAA,IAAAA,EAAA,CAAA,EAAA,CAJHb,EAGK,KAAA,CAHD,QAAQ,IAAI,MAAM,MAAA,EAAO,0GAG7B,EAAA,CAAA,qBAxBRF,EAA2E,IAA3EgB,EAAmC,sCAAoC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{d as oe,c as o,a as t,f as n,e as c,w as f,_ as G,g as v,x as g,t as u,F as w,s as E,u as x,R as $,i as j,v as z,r,C as O,A as _,B as A,j as le,N as q,o as s,D as ne}from"./index-
|
|
1
|
+
import{d as oe,c as o,a as t,f as n,e as c,w as f,_ as G,g as v,x as g,t as u,F as w,s as E,u as x,R as $,i as j,v as z,r,C as O,A as _,B as A,j as le,N as q,o as s,D as ne}from"./index-DVCVnKbf.js";import{c as ae}from"./useFormat-DVXTfIS-.js";import{_ as J}from"./ActionButton.vue_vue_type_script_setup_true_lang-D06apM-6.js";import{_ as K}from"./ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js";import{_ as Q}from"./SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js";import{_ as ie}from"./HelpModal.vue_vue_type_script_setup_true_lang-DwwXY7EX.js";import"./Teleport-d5PoAxFM.js";const re={class:"page-head"},ue={class:"sub"},de={key:1,class:"banner info"},ve={class:"panel"},pe={class:"phead"},fe={class:"mute",style:{"font-size":"var(--t-sm)"}},ce={key:0,class:"banner warn"},me={key:1,class:"cards"},he={class:"stagger"},ye={"data-label":"url"},ke=["href"],be={key:1,class:"mono mute"},ge={key:0,class:"mute"},we={"data-label":"forwards to"},_e={key:0,class:"mono"},Re={key:1,class:"s-failed"},Te={"data-label":"deployment"},Ce={key:1,class:"mute"},xe={class:"dim","data-label":"router"},$e={key:2,class:"mute"},Ae={class:"panel"},Le={class:"phead"},Ne={key:0,class:"mute",style:{"font-size":"var(--t-sm)"}},Se={class:"mute"},De={key:0,class:"banner failed"},Ie={key:1,class:"banner info"},Ue={key:3,class:"kvlist"},Pe={class:"k"},Ve=["onClick"],Ee={class:"v mute",style:{"font-size":"var(--t-sm)"}},je={key:4,class:"mute"},ze={key:2,class:"panel"},Be={class:"phead"},Fe={class:"section"},We={key:0,class:"badge warn"},Me={key:0,class:"field",style:{"max-width":"340px"}},He={key:2,class:"banner plain"},Ge={class:"field"},Oe={class:"row",style:{"margin-top":"var(--s4)"}},qe={key:0,class:"mute"},Je={class:"field",style:{"max-width":"340px"}},Ke=["for"],Qe=["id","placeholder"],Xe={class:"row"},Ye=`http:
|
|
2
2
|
middlewares:
|
|
3
3
|
# An example — replace it. Middlewares go UNDER http; at the top level Traefik ignores them.
|
|
4
4
|
ip-allow:
|
|
5
5
|
ipAllowList:
|
|
6
6
|
sourceRange:
|
|
7
7
|
- 203.0.113.0/24
|
|
8
|
-
`,it=oe({__name:"RoutingView",setup(Ze){const
|
|
9
|
-
//# sourceMappingURL=RoutingView-
|
|
8
|
+
`,it=oe({__name:"RoutingView",setup(Ze){const L=r([]),N=r(null),S=r([]),D=r(""),I=r(null),B=r(!1),R=r(""),i=r(null),d=r(""),m=r(""),T=r(!1),U=r(!1),k=r(!1),p=r(""),C=r(""),h=r(null),y=r(""),F=O(()=>i.value!==null&&d.value!==m.value),X=O(()=>!!$.token&&!k.value&&d.value.trim().length>0&&(F.value||i.value===""));async function P(){const l=await _.get("/api/routing");if(B.value=!0,!l.ok){R.value=A(l,"load the routing files");return}R.value="",S.value=l.body.files??[],D.value=l.body.dir??"",I.value=l.body.writable??!1}async function Y(){const l=await _.get("/api/routing/live");if(!l.ok){N.value=!1;return}N.value=l.body.reachable,L.value=l.body.routes??[]}P(),Y();async function Z(l){i.value=l,U.value=!0,p.value="",T.value=!1,y.value="";const e=await _.getAuthed(`/api/routing/${encodeURIComponent(l)}`);if(U.value=!1,!e.ok){p.value=A(e,"open this file");return}if(e.body.sourceWithheld){T.value=!0,d.value="",m.value="";return}d.value=e.body.content??"",m.value=d.value}function ee(){i.value="",C.value="",d.value=Ye,m.value="",T.value=!1,p.value=""}function W(){i.value=null,d.value="",m.value="",p.value=""}async function M(){const l=i.value===""?C.value.trim():i.value;if(!l){p.value="Give the file a name, ending in .yml";return}k.value=!0,p.value="";const e=await _.put(`/api/routing/${encodeURIComponent(l)}`,{content:d.value});if(k.value=!1,!e.ok){p.value=A(e,"save this file");return}e.body.previous&&(h.value={name:l,content:e.body.previous}),m.value=d.value,i.value=l,q("ok",`Saved ${l}. Traefik reloads within a second or two.`),P()}async function te(){const l=h.value;l&&(d.value=l.content,i.value=l.name,await M(),h.value=null)}async function se(){const l=i.value;if(!l||y.value!==l)return;const e=await _.del(`/api/routing/${encodeURIComponent(l)}`);if(!e.ok){p.value=A(e,"delete this file");return}e.body.previous&&(h.value={name:l,content:e.body.previous}),q("ok",`Deleted ${l}.`),W(),P()}return(l,e)=>{const V=le("RouterLink");return s(),o("div",null,[t("div",re,[t("div",null,[t("h1",null,[e[4]||(e[4]=n(" Routing ",-1)),c(ie,{title:"How routing files work, and what can go wrong"},{default:f(()=>[...e[3]||(e[3]=[t("p",null,[t("b",null,"Traefik reads this directory as a whole."),n(" One file it cannot parse and it reports a problem for the "),t("em",null,"directory"),n(" — so the symptom is other, unrelated routes disappearing rather than an error about the file you just saved. ")],-1),t("p",null," Saves here are checked before they are written and replace the old file in one step, so a file that would break the directory never reaches Traefik in the first place. ",-1),t("p",null,[t("b",null,"This page cannot lock you out."),n(" It and the API are routed by their containers' own settings, not by these files — no save here can take away the page you would use to undo it. ")],-1),t("p",null," What belongs here: shared middleware (sign-in prompts, rate limits, address allow-lists), TLS options, the catch-all fallback, and routes to things running outside this host's previews. A single preview's own routes are not here — those travel with the deployment. ",-1)])]),_:1})]),t("div",ue,[e[6]||(e[6]=n(" Every route on this host, and the config files behind them ",-1)),c(G,{label:"what belongs in these files"},{default:f(()=>[...e[5]||(e[5]=[n(" Middleware (basic auth, rate limits, IP allow-lists), TLS options, the catch-all fallback router, and routes to anything running outside compose. Per-PR routers are not here — those are labels in each deployment's own compose file. ",-1)])]),_:1})])]),e[7]||(e[7]=t("span",{class:"grow"},null,-1)),I.value?(s(),o("button",{key:0,class:"btn primary",onClick:ee},"New file")):v("",!0)]),R.value?(s(),g(K,{key:0,text:R.value,title:"Could not load the routing files."},null,8,["text"])):v("",!0),h.value?(s(),o("div",de,[t("b",null,"Replaced "+u(h.value.name)+".",1),t("p",null,[e[8]||(e[8]=n(" The previous contents are still here for this session. ",-1)),t("button",{class:"btn sm",onClick:te},"Put it back")])])):v("",!0),t("section",ve,[t("div",pe,[e[11]||(e[11]=t("h2",{class:"section"},"Live routes",-1)),e[12]||(e[12]=t("span",{class:"grow"},null,-1)),t("span",fe,[e[10]||(e[10]=n(" from container labels ",-1)),c(G,{label:"why routes are not in the files below",align:"end"},{default:f(()=>[...e[9]||(e[9]=[n(" Traefik reads two providers. Per-PR routers are ",-1),t("b",null,"labels on containers",-1),n(", written by each deployment's own compose file — so deploying a stack changes this list and never the files. The files are the other provider: middleware, TLS options, the fallback router. ",-1)])]),_:1})])]),N.value===!1?(s(),o("div",ce,[...e[13]||(e[13]=[t("b",null,"Docker did not answer.",-1),t("p",null,"Routes could not be listed — which is not the same as there being none.",-1)])])):L.value.length?(s(),o("table",me,[e[14]||(e[14]=t("thead",null,[t("tr",null,[t("th",null,"URL"),t("th",null,"Forwards to"),t("th",null,"Deployment"),t("th",null,"Router")])],-1)),t("tbody",he,[(s(!0),o(w,null,E(L.value,(a,H)=>(s(),o("tr",{key:`${a.container}-${a.router}`,style:ne({"--i":H})},[t("td",ye,[(s(!0),o(w,null,E(a.hosts,b=>(s(),o("div",{key:b},[b.startsWith("(pattern)")?(s(),o("span",be,u(b),1)):(s(),o("a",{key:0,href:`https://${b}`,target:"_blank",rel:"noreferrer"},u(b),9,ke))]))),128)),a.hosts.length?v("",!0):(s(),o("span",ge,"no host in the rule"))]),t("td",we,[a.target?(s(),o("span",_e,u(a.target),1)):(s(),o("span",Re,u(a.port===null?"no port declared":"not on the ingress network"),1))]),t("td",Te,[a.project?(s(),g(V,{key:0,to:`/deployments/${encodeURIComponent(a.project)}/runtime`},{default:f(()=>[n(u(a.project),1)]),_:2},1032,["to"])):(s(),o("span",Ce,"—"))]),t("td",xe,u(a.router),1)],4))),128))])])):(s(),o("p",$e,[...e[15]||(e[15]=[n(" No container on this host declares a Traefik router. A deployment's routes come from labels in its own compose file — open a deployment's ",-1),t("b",null,"Containers & routes",-1),n(" tab to see what is missing. ",-1)])]))]),t("section",Ae,[t("div",Le,[e[16]||(e[16]=t("h2",{class:"section"},"Config files",-1)),e[17]||(e[17]=t("span",{class:"grow"},null,-1)),D.value?(s(),o("span",Ne,[t("span",Se,u(D.value),1)])):v("",!0)]),I.value===!1?(s(),o("div",De,[...e[18]||(e[18]=[t("b",null,"Read-only: the API cannot write to this directory.",-1),t("p",null," The control stack mounts it into the API from 0.4.0 onward. Re-run setup again on the host to pick up the mount — it is safe to repeat, and it recreates the control containers. ",-1)])])):x($).token?v("",!0):(s(),o("div",Ie,[e[22]||(e[22]=t("b",null,"Viewing needs a token too.",-1)),t("p",null,[e[20]||(e[20]=n(" These files hold basic-auth hashes and forward-auth URLs, so their contents are not served unauthenticated. ",-1)),c(V,{to:"/settings"},{default:f(()=>[...e[19]||(e[19]=[n("Add your token",-1)])]),_:1}),e[21]||(e[21]=n(". ",-1))])])),B.value?S.value.length?(s(),o("ul",Ue,[(s(!0),o(w,null,E(S.value,a=>(s(),o("li",{key:a.name},[t("span",Pe,[t("button",{class:"ghost sm",onClick:H=>Z(a.name)},u(a.name),9,Ve)]),t("span",Ee,u(a.size)+" bytes · "+u(x(ae)(a.updatedAt)),1)]))),128))])):(s(),o("p",je," No files yet. Everything is routed by container labels, which is a perfectly good place to be. ")):(s(),g(Q,{key:2,rows:3}))]),i.value!==null?(s(),o("section",ze,[t("div",Be,[t("h2",Fe,u(i.value===""?"New file":i.value),1),F.value?(s(),o("span",We,"unsaved")):v("",!0),e[23]||(e[23]=t("span",{class:"grow"},null,-1)),t("button",{class:"ghost sm",onClick:W},"Close")]),i.value===""?(s(),o("div",Me,[e[24]||(e[24]=t("label",{for:"fname"},"File name",-1)),j(t("input",{id:"fname","onUpdate:modelValue":e[0]||(e[0]=a=>C.value=a),type:"text",placeholder:"middleware.yml",spellcheck:"false",autocomplete:"off"},null,512),[[z,C.value,void 0,{trim:!0}]]),e[25]||(e[25]=t("div",{class:"mute hint"},[n("Lower case, ending in "),t("code",null,".yml"),n(".")],-1))])):v("",!0),U.value?(s(),g(Q,{key:1,rows:4})):T.value?(s(),o("div",He,[e[28]||(e[28]=t("b",null,"Hidden without an access token.",-1)),t("p",null,[c(V,{to:"/settings"},{default:f(()=>[...e[26]||(e[26]=[n("Add your token",-1)])]),_:1}),e[27]||(e[27]=n(" to read and edit this file. ",-1))])])):(s(),o(w,{key:3},[t("div",Ge,[e[29]||(e[29]=t("label",{for:"content"},"Contents",-1)),j(t("textarea",{id:"content","onUpdate:modelValue":e[1]||(e[1]=a=>d.value=a),rows:"18",spellcheck:"false"},null,512),[[z,d.value]])]),p.value?(s(),g(K,{key:0,text:p.value,title:"Traefik would not accept this."},null,8,["text"])):v("",!0),t("div",Oe,[c(J,{variant:"primary",pending:k.value,disabled:!X.value,onClick:M},{default:f(()=>[n(u(k.value?"Saving…":"Save"),1)]),_:1},8,["pending","disabled"]),x($).token?v("",!0):(s(),o("span",qe,"Saving needs a token."))]),i.value?(s(),o(w,{key:1},[e[33]||(e[33]=t("h2",{class:"section",style:{margin:"var(--s5) 0 var(--s3)"}},"Delete this file",-1)),e[34]||(e[34]=t("p",{class:"dim"}," Whatever it configures stops applying as soon as Traefik reloads. If it holds a router, those hostnames stop resolving to anything. ",-1)),t("div",Je,[t("label",{for:`confirm-${i.value}`},[e[30]||(e[30]=n(" Type ",-1)),t("b",null,u(i.value),1),e[31]||(e[31]=n(" to confirm ",-1))],8,Ke),j(t("input",{id:`confirm-${i.value}`,"onUpdate:modelValue":e[2]||(e[2]=a=>y.value=a),type:"text",placeholder:i.value,spellcheck:"false",autocomplete:"off"},null,8,Qe),[[z,y.value,void 0,{trim:!0}]])]),t("div",Xe,[c(J,{variant:"danger",disabled:y.value!==i.value||!x($).token,title:y.value!==i.value?"Type the file name to confirm.":void 0,onClick:se},{default:f(()=>[...e[32]||(e[32]=[n(" Delete ",-1)])]),_:1},8,["disabled","title"])])],64)):v("",!0)],64))])):v("",!0)])}}});export{it as default};
|
|
9
|
+
//# sourceMappingURL=RoutingView-D2StZawf.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RoutingView-7SWVlOx8.js","sources":["../../src/views/RoutingView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Traefik's dynamic configuration — the file list, and an editor.\n *\n * WHAT LIVES HERE. Traefik reads config from two providers: labels on containers (every per-PR router)\n * and a watched *directory* of files. This page is the directory: middleware (basic auth, rate limits,\n * IP allow-lists), TLS options, the catch-all fallback router, routes to something running outside\n * compose. Several files rather than one is the point of a watched directory — one file per concern.\n *\n * THE WARNING IS NOT DECORATION. Traefik's documented behaviour is that an unparseable file produces\n * a parse error for the whole DIRECTORY, and the rest can be discarded with it — so a careless save\n * here breaks *other people's* routes, not the file being edited. The server validates before writing\n * and renames into place so the watcher never sees a partial file, and every rejection is rendered\n * verbatim because it names the actual problem.\n *\n * What it cannot break: `control.<domain>` and `api.<domain>` are docker labels on the pstack\n * container, not file config. This page cannot lock you out of the page you would use to undo a bad\n * save. That is stated in the UI, because an operator hesitating over a save deserves to know it.\n *\n * `previous` from a save is an in-session undo. There is deliberately no history on disk: the obvious\n * place to keep it is the one directory that must contain nothing but dynamic config.\n */\nimport { computed, ref } from 'vue';\nimport { api, problem } from '../api/client';\nimport type {\n LiveRoutesResponse,\n RoutingFile,\n RoutingListResponse,\n RoutingReadResponse,\n RoutingWriteResponse,\n RuntimeRoute,\n} from '../api/types';\nimport { settings } from '../composables/useSettings';\nimport { stamp } from '../composables/useFormat';\nimport { toast } from '../composables/useToasts';\nimport ActionButton from '../components/ActionButton.vue';\nimport ErrorNote from '../components/ErrorNote.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport SkeletonList from '../components/SkeletonList.vue';\nimport HelpModal from '../components/HelpModal.vue';\n\n/**\n * The live routes, from container labels.\n *\n * This page used to show only the file provider, and the reported confusion was exactly right: a\n * deployment goes up, its hostname appears, and nothing here changes — because per-PR routers are\n * DOCKER labels and the files below are Traefik's *other* provider. Showing both is what makes the\n * page match what \"routing\" means to whoever opened it.\n */\nconst live = ref<RuntimeRoute[]>([]);\nconst liveReachable = ref<boolean | null>(null);\n\nconst files = ref<RoutingFile[]>([]);\nconst dir = ref('');\nconst writable = ref<boolean | null>(null);\nconst loaded = ref(false);\nconst listError = ref('');\n\n/** The open file. `null` name means a new one. */\nconst openName = ref<string | null>(null);\nconst draft = ref('');\nconst original = ref('');\nconst withheld = ref(false);\nconst loadingFile = ref(false);\nconst saving = ref(false);\nconst fileError = ref('');\nconst newName = ref('');\n/** Last replaced content, offered as an undo for the rest of the session. */\nconst undo = ref<{ name: string; content: string } | null>(null);\nconst confirmDelete = ref('');\n\nconst dirty = computed(() => openName.value !== null && draft.value !== original.value);\nconst canSave = computed(\n () => !!settings.token && !saving.value && draft.value.trim().length > 0 && (dirty.value || openName.value === ''),\n);\n\nconst STARTER = `http:\n middlewares:\n # An example — replace it. Middlewares go UNDER http; at the top level Traefik ignores them.\n ip-allow:\n ipAllowList:\n sourceRange:\n - 203.0.113.0/24\n`;\n\nasync function loadList(): Promise<void> {\n const r = await api.get<RoutingListResponse>('/api/routing');\n loaded.value = true;\n if (!r.ok) {\n listError.value = problem(r, 'load the routing files');\n return;\n }\n listError.value = '';\n files.value = r.body.files ?? [];\n dir.value = r.body.dir ?? '';\n writable.value = r.body.writable ?? false;\n}\n\nasync function loadLive(): Promise<void> {\n const r = await api.get<LiveRoutesResponse>('/api/routing/live');\n if (!r.ok) {\n liveReachable.value = false;\n return;\n }\n liveReachable.value = r.body.reachable;\n live.value = r.body.routes ?? [];\n}\n\nvoid loadList();\nvoid loadLive();\n\nasync function open(name: string): Promise<void> {\n openName.value = name;\n loadingFile.value = true;\n fileError.value = '';\n withheld.value = false;\n confirmDelete.value = '';\n // Authenticated: dynamic config holds basic-auth hashes and forward-auth URLs.\n const r = await api.getAuthed<RoutingReadResponse>(`/api/routing/${encodeURIComponent(name)}`);\n loadingFile.value = false;\n if (!r.ok) {\n fileError.value = problem(r, 'open this file');\n return;\n }\n if (r.body.sourceWithheld) {\n withheld.value = true;\n draft.value = '';\n original.value = '';\n return;\n }\n draft.value = r.body.content ?? '';\n original.value = draft.value;\n}\n\nfunction startNew(): void {\n openName.value = '';\n newName.value = '';\n draft.value = STARTER;\n original.value = '';\n withheld.value = false;\n fileError.value = '';\n}\n\nfunction close(): void {\n openName.value = null;\n draft.value = '';\n original.value = '';\n fileError.value = '';\n}\n\nasync function save(): Promise<void> {\n const name = openName.value === '' ? newName.value.trim() : openName.value;\n if (!name) {\n fileError.value = 'Give the file a name, ending in .yml';\n return;\n }\n saving.value = true;\n fileError.value = '';\n const r = await api.put<RoutingWriteResponse>(`/api/routing/${encodeURIComponent(name)}`, {\n content: draft.value,\n });\n saving.value = false;\n if (!r.ok) {\n // Rendered verbatim: the server's message names the unknown section or the YAML error, which is\n // the whole diagnosis.\n fileError.value = problem(r, 'save this file');\n return;\n }\n if (r.body.previous) undo.value = { name, content: r.body.previous };\n original.value = draft.value;\n openName.value = name;\n toast('ok', `Saved ${name}. Traefik reloads within a second or two.`);\n void loadList();\n}\n\nasync function revert(): Promise<void> {\n const u = undo.value;\n if (!u) return;\n draft.value = u.content;\n openName.value = u.name;\n await save();\n undo.value = null;\n}\n\nasync function remove(): Promise<void> {\n const name = openName.value;\n if (!name || confirmDelete.value !== name) return;\n const r = await api.del<RoutingWriteResponse>(`/api/routing/${encodeURIComponent(name)}`);\n if (!r.ok) {\n fileError.value = problem(r, 'delete this file');\n return;\n }\n if (r.body.previous) undo.value = { name, content: r.body.previous };\n toast('ok', `Deleted ${name}.`);\n close();\n void loadList();\n}\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>\n Routing\n <HelpModal title=\"How routing files work, and what can go wrong\">\n <p>\n <b>Traefik reads this directory as a whole.</b> One file it cannot parse and it reports a\n problem for the <em>directory</em> — so the symptom is other, unrelated routes\n disappearing rather than an error about the file you just saved.\n </p>\n <p>\n Saves here are checked before they are written and replace the old file in one step, so a\n file that would break the directory never reaches Traefik in the first place.\n </p>\n <p>\n <b>This page cannot lock you out.</b> It and the API are routed by their containers'\n own settings, not by these files — no save here can take away the page you would use to\n undo it.\n </p>\n <p>\n What belongs here: shared middleware (sign-in prompts, rate limits, address\n allow-lists), TLS options, the catch-all fallback, and routes to things running outside\n this host's previews. A single preview's own routes are not here — those travel with the\n deployment.\n </p>\n </HelpModal>\n </h1>\n <div class=\"sub\">\n Every route on this host, and the config files behind them\n <InfoHint label=\"what belongs in these files\">\n Middleware (basic auth, rate limits, IP allow-lists), TLS options, the catch-all fallback\n router, and routes to anything running outside compose. Per-PR routers are not here —\n those are labels in each deployment's own compose file.\n </InfoHint>\n </div>\n </div>\n <span class=\"grow\" />\n <button v-if=\"writable\" class=\"btn primary\" @click=\"startNew\">New file</button>\n </div>\n\n <ErrorNote v-if=\"listError\" :text=\"listError\" title=\"Could not load the routing files.\" />\n\n <div v-if=\"undo\" class=\"banner info\">\n <b>Replaced {{ undo.name }}.</b>\n <p>\n The previous contents are still here for this session.\n <button class=\"btn sm\" @click=\"revert\">Put it back</button>\n </p>\n </div>\n\n <!-- ============================ live routes ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Live routes</h2>\n <span class=\"grow\" />\n <span class=\"mute\" style=\"font-size: var(--t-sm)\">\n from container labels\n <InfoHint label=\"why routes are not in the files below\" align=\"end\">\n Traefik reads two providers. Per-PR routers are <b>labels on containers</b>, written by each\n deployment's own compose file — so deploying a stack changes this list and never the files.\n The files are the other provider: middleware, TLS options, the fallback router.\n </InfoHint>\n </span>\n </div>\n\n <div v-if=\"liveReachable === false\" class=\"banner warn\">\n <b>Docker did not answer.</b>\n <p>Routes could not be listed — which is not the same as there being none.</p>\n </div>\n\n <table v-else-if=\"live.length\" class=\"cards\">\n <thead>\n <tr>\n <th>url</th>\n <th>forwards to</th>\n <th>deployment</th>\n <th>router</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(r, i) in live\" :key=\"`${r.container}-${r.router}`\" :style=\"{ '--i': i }\">\n <td data-label=\"url\">\n <div v-for=\"h in r.hosts\" :key=\"h\">\n <a v-if=\"!h.startsWith('(pattern)')\" :href=\"`https://${h}`\" target=\"_blank\" rel=\"noreferrer\">\n {{ h }}\n </a>\n <span v-else class=\"mono mute\">{{ h }}</span>\n </div>\n <span v-if=\"!r.hosts.length\" class=\"mute\">no host in the rule</span>\n </td>\n <td data-label=\"forwards to\">\n <span v-if=\"r.target\" class=\"mono\">{{ r.target }}</span>\n <span v-else class=\"s-failed\">\n {{ r.port === null ? 'no port declared' : 'not on the ingress network' }}\n </span>\n </td>\n <td data-label=\"deployment\">\n <RouterLink v-if=\"r.project\" :to=\"`/deployments/${encodeURIComponent(r.project)}/runtime`\">\n {{ r.project }}\n </RouterLink>\n <span v-else class=\"mute\">—</span>\n </td>\n <td class=\"dim\" data-label=\"router\">{{ r.router }}</td>\n </tr>\n </tbody>\n </table>\n\n <p v-else class=\"mute\">\n No container on this host declares a Traefik router. A deployment's routes come from labels in\n its own compose file — open a deployment's <b>Containers & routes</b> tab to see what is\n missing.\n </p>\n </section>\n\n <!-- ============================ config files ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Config files</h2>\n <span class=\"grow\" />\n <span v-if=\"dir\" class=\"mute\" style=\"font-size: var(--t-sm)\">\n <span class=\"mute\">{{ dir }}</span>\n </span>\n </div>\n\n <!--\n The blast radius, stated once and up front — and the reassurance alongside it, because \"this can\n break everything\" without \"you will still be able to fix it\" just makes people avoid the page.\n -->\n\n <div v-if=\"writable === false\" class=\"banner failed\">\n <b>Read-only: the API cannot write to this directory.</b>\n <p>\n The control stack mounts it into the API from 0.4.0 onward. Re-run\n setup again on the host to pick up the mount — it is safe to repeat, and it recreates\n the control containers.\n </p>\n </div>\n\n <div v-else-if=\"!settings.token\" class=\"banner info\">\n <b>Viewing needs a token too.</b>\n <p>\n These files hold basic-auth hashes and forward-auth URLs, so their contents are not served\n unauthenticated. <RouterLink to=\"/settings\">Add your token</RouterLink>.\n </p>\n </div>\n\n <SkeletonList v-if=\"!loaded\" :rows=\"3\" />\n <ul v-else-if=\"files.length\" class=\"kvlist\">\n <li v-for=\"f in files\" :key=\"f.name\">\n <span class=\"k\">\n <button class=\"ghost sm\" @click=\"open(f.name)\">{{ f.name }}</button>\n </span>\n <span class=\"v mute\" style=\"font-size: var(--t-sm)\">\n {{ f.size }} bytes · {{ stamp(f.updatedAt) }}\n </span>\n </li>\n </ul>\n <p v-else class=\"mute\">\n No files yet. Everything is routed by container labels, which is a perfectly good place to be.\n </p>\n </section>\n\n <section v-if=\"openName !== null\" class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">{{ openName === '' ? 'New file' : openName }}</h2>\n <span v-if=\"dirty\" class=\"badge warn\">unsaved</span>\n <span class=\"grow\" />\n <button class=\"ghost sm\" @click=\"close\">Close</button>\n </div>\n\n <div v-if=\"openName === ''\" class=\"field\" style=\"max-width: 340px\">\n <label for=\"fname\">File name</label>\n <input\n id=\"fname\"\n v-model.trim=\"newName\"\n type=\"text\"\n placeholder=\"middleware.yml\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n />\n <div class=\"mute hint\">Lower case, ending in <code>.yml</code>.</div>\n </div>\n\n <SkeletonList v-if=\"loadingFile\" :rows=\"4\" />\n\n <div v-else-if=\"withheld\" class=\"banner plain\">\n <b>Hidden without an access token.</b>\n <p>\n <RouterLink to=\"/settings\">Add your token</RouterLink> to read and edit this file.\n </p>\n </div>\n\n <template v-else>\n <div class=\"field\">\n <label for=\"content\">Contents</label>\n <textarea id=\"content\" v-model=\"draft\" rows=\"18\" spellcheck=\"false\" />\n </div>\n\n <ErrorNote v-if=\"fileError\" :text=\"fileError\" title=\"Traefik would not accept this.\" />\n\n <div class=\"row\" style=\"margin-top: var(--s4)\">\n <ActionButton variant=\"primary\" :pending=\"saving\" :disabled=\"!canSave\" @click=\"save\">\n {{ saving ? 'Saving…' : 'Save' }}\n </ActionButton>\n <span v-if=\"!settings.token\" class=\"mute\">Saving needs a token.</span>\n </div>\n\n <template v-if=\"openName\">\n <h2 class=\"section\" style=\"margin: var(--s5) 0 var(--s3)\">Delete this file</h2>\n <p class=\"dim\">\n Whatever it configures stops applying as soon as Traefik reloads. If it holds a router,\n those hostnames stop resolving to anything.\n </p>\n <div class=\"field\" style=\"max-width: 340px\">\n <label :for=\"`confirm-${openName}`\">\n Type <b>{{ openName }}</b> to confirm\n </label>\n <input\n :id=\"`confirm-${openName}`\"\n v-model.trim=\"confirmDelete\"\n type=\"text\"\n :placeholder=\"openName\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n />\n </div>\n <div class=\"row\">\n <ActionButton\n variant=\"danger\"\n :disabled=\"confirmDelete !== openName || !settings.token\"\n :title=\"confirmDelete !== openName ? 'Type the file name to confirm.' : undefined\"\n @click=\"remove\"\n >\n Delete\n </ActionButton>\n </div>\n </template>\n </template>\n </section>\n </div>\n</template>\n"],"names":["STARTER","live","ref","liveReachable","files","dir","writable","loaded","listError","openName","draft","original","withheld","loadingFile","saving","fileError","newName","undo","confirmDelete","dirty","computed","canSave","settings","loadList","r","api","problem","loadLive","open","name","startNew","close","save","toast","revert","u","remove","_createElementBlock","_createElementVNode","_hoisted_1","_createVNode","HelpModal","_cache","_hoisted_2","InfoHint","_createBlock","ErrorNote","_openBlock","_hoisted_3","_toDisplayString","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_Fragment","_renderList","i","_hoisted_10","h","_hoisted_12","_hoisted_11","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_component_RouterLink","_createTextVNode","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_unref","_hoisted_26","_hoisted_27","f","_hoisted_28","$event","_hoisted_29","_hoisted_30","stamp","_hoisted_31","SkeletonList","_hoisted_32","_hoisted_33","_hoisted_34","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","ActionButton","_hoisted_40","_hoisted_41","_hoisted_44"],"mappings":"6xDA4EMA,GAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,wCA3BhB,MAAMC,EAAOC,EAAoB,EAAE,EAC7BC,EAAgBD,EAAoB,IAAI,EAExCE,EAAQF,EAAmB,EAAE,EAC7BG,EAAMH,EAAI,EAAE,EACZI,EAAWJ,EAAoB,IAAI,EACnCK,EAASL,EAAI,EAAK,EAClBM,EAAYN,EAAI,EAAE,EAGlBO,EAAWP,EAAmB,IAAI,EAClCQ,EAAQR,EAAI,EAAE,EACdS,EAAWT,EAAI,EAAE,EACjBU,EAAWV,EAAI,EAAK,EACpBW,EAAcX,EAAI,EAAK,EACvBY,EAASZ,EAAI,EAAK,EAClBa,EAAYb,EAAI,EAAE,EAClBc,EAAUd,EAAI,EAAE,EAEhBe,EAAOf,EAA8C,IAAI,EACzDgB,EAAgBhB,EAAI,EAAE,EAEtBiB,EAAQC,EAAS,IAAMX,EAAS,QAAU,MAAQC,EAAM,QAAUC,EAAS,KAAK,EAChFU,EAAUD,EACd,IAAM,CAAC,CAACE,EAAS,OAAS,CAACR,EAAO,OAASJ,EAAM,MAAM,OAAO,OAAS,IAAMS,EAAM,OAASV,EAAS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AAAM,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAA,GAFC,WAED,EAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"RoutingView-D2StZawf.js","sources":["../../src/views/RoutingView.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * Traefik's dynamic configuration — the file list, and an editor.\n *\n * WHAT LIVES HERE. Traefik reads config from two providers: labels on containers (every per-PR router)\n * and a watched *directory* of files. This page is the directory: middleware (basic auth, rate limits,\n * IP allow-lists), TLS options, the catch-all fallback router, routes to something running outside\n * compose. Several files rather than one is the point of a watched directory — one file per concern.\n *\n * THE WARNING IS NOT DECORATION. Traefik's documented behaviour is that an unparseable file produces\n * a parse error for the whole DIRECTORY, and the rest can be discarded with it — so a careless save\n * here breaks *other people's* routes, not the file being edited. The server validates before writing\n * and renames into place so the watcher never sees a partial file, and every rejection is rendered\n * verbatim because it names the actual problem.\n *\n * What it cannot break: `control.<domain>` and `api.<domain>` are docker labels on the pstack\n * container, not file config. This page cannot lock you out of the page you would use to undo a bad\n * save. That is stated in the UI, because an operator hesitating over a save deserves to know it.\n *\n * `previous` from a save is an in-session undo. There is deliberately no history on disk: the obvious\n * place to keep it is the one directory that must contain nothing but dynamic config.\n */\nimport { computed, ref } from 'vue';\nimport { api, problem } from '../api/client';\nimport type {\n LiveRoutesResponse,\n RoutingFile,\n RoutingListResponse,\n RoutingReadResponse,\n RoutingWriteResponse,\n RuntimeRoute,\n} from '../api/types';\nimport { settings } from '../composables/useSettings';\nimport { stamp } from '../composables/useFormat';\nimport { toast } from '../composables/useToasts';\nimport ActionButton from '../components/ActionButton.vue';\nimport ErrorNote from '../components/ErrorNote.vue';\nimport InfoHint from '../components/InfoHint.vue';\nimport SkeletonList from '../components/SkeletonList.vue';\nimport HelpModal from '../components/HelpModal.vue';\n\n/**\n * The live routes, from container labels.\n *\n * This page used to show only the file provider, and the reported confusion was exactly right: a\n * deployment goes up, its hostname appears, and nothing here changes — because per-PR routers are\n * DOCKER labels and the files below are Traefik's *other* provider. Showing both is what makes the\n * page match what \"routing\" means to whoever opened it.\n */\nconst live = ref<RuntimeRoute[]>([]);\nconst liveReachable = ref<boolean | null>(null);\n\nconst files = ref<RoutingFile[]>([]);\nconst dir = ref('');\nconst writable = ref<boolean | null>(null);\nconst loaded = ref(false);\nconst listError = ref('');\n\n/** The open file. `null` name means a new one. */\nconst openName = ref<string | null>(null);\nconst draft = ref('');\nconst original = ref('');\nconst withheld = ref(false);\nconst loadingFile = ref(false);\nconst saving = ref(false);\nconst fileError = ref('');\nconst newName = ref('');\n/** Last replaced content, offered as an undo for the rest of the session. */\nconst undo = ref<{ name: string; content: string } | null>(null);\nconst confirmDelete = ref('');\n\nconst dirty = computed(() => openName.value !== null && draft.value !== original.value);\nconst canSave = computed(\n () => !!settings.token && !saving.value && draft.value.trim().length > 0 && (dirty.value || openName.value === ''),\n);\n\nconst STARTER = `http:\n middlewares:\n # An example — replace it. Middlewares go UNDER http; at the top level Traefik ignores them.\n ip-allow:\n ipAllowList:\n sourceRange:\n - 203.0.113.0/24\n`;\n\nasync function loadList(): Promise<void> {\n const r = await api.get<RoutingListResponse>('/api/routing');\n loaded.value = true;\n if (!r.ok) {\n listError.value = problem(r, 'load the routing files');\n return;\n }\n listError.value = '';\n files.value = r.body.files ?? [];\n dir.value = r.body.dir ?? '';\n writable.value = r.body.writable ?? false;\n}\n\nasync function loadLive(): Promise<void> {\n const r = await api.get<LiveRoutesResponse>('/api/routing/live');\n if (!r.ok) {\n liveReachable.value = false;\n return;\n }\n liveReachable.value = r.body.reachable;\n live.value = r.body.routes ?? [];\n}\n\nvoid loadList();\nvoid loadLive();\n\nasync function open(name: string): Promise<void> {\n openName.value = name;\n loadingFile.value = true;\n fileError.value = '';\n withheld.value = false;\n confirmDelete.value = '';\n // Authenticated: dynamic config holds basic-auth hashes and forward-auth URLs.\n const r = await api.getAuthed<RoutingReadResponse>(`/api/routing/${encodeURIComponent(name)}`);\n loadingFile.value = false;\n if (!r.ok) {\n fileError.value = problem(r, 'open this file');\n return;\n }\n if (r.body.sourceWithheld) {\n withheld.value = true;\n draft.value = '';\n original.value = '';\n return;\n }\n draft.value = r.body.content ?? '';\n original.value = draft.value;\n}\n\nfunction startNew(): void {\n openName.value = '';\n newName.value = '';\n draft.value = STARTER;\n original.value = '';\n withheld.value = false;\n fileError.value = '';\n}\n\nfunction close(): void {\n openName.value = null;\n draft.value = '';\n original.value = '';\n fileError.value = '';\n}\n\nasync function save(): Promise<void> {\n const name = openName.value === '' ? newName.value.trim() : openName.value;\n if (!name) {\n fileError.value = 'Give the file a name, ending in .yml';\n return;\n }\n saving.value = true;\n fileError.value = '';\n const r = await api.put<RoutingWriteResponse>(`/api/routing/${encodeURIComponent(name)}`, {\n content: draft.value,\n });\n saving.value = false;\n if (!r.ok) {\n // Rendered verbatim: the server's message names the unknown section or the YAML error, which is\n // the whole diagnosis.\n fileError.value = problem(r, 'save this file');\n return;\n }\n if (r.body.previous) undo.value = { name, content: r.body.previous };\n original.value = draft.value;\n openName.value = name;\n toast('ok', `Saved ${name}. Traefik reloads within a second or two.`);\n void loadList();\n}\n\nasync function revert(): Promise<void> {\n const u = undo.value;\n if (!u) return;\n draft.value = u.content;\n openName.value = u.name;\n await save();\n undo.value = null;\n}\n\nasync function remove(): Promise<void> {\n const name = openName.value;\n if (!name || confirmDelete.value !== name) return;\n const r = await api.del<RoutingWriteResponse>(`/api/routing/${encodeURIComponent(name)}`);\n if (!r.ok) {\n fileError.value = problem(r, 'delete this file');\n return;\n }\n if (r.body.previous) undo.value = { name, content: r.body.previous };\n toast('ok', `Deleted ${name}.`);\n close();\n void loadList();\n}\n</script>\n\n<template>\n <div>\n <div class=\"page-head\">\n <div>\n <h1>\n Routing\n <HelpModal title=\"How routing files work, and what can go wrong\">\n <p>\n <b>Traefik reads this directory as a whole.</b> One file it cannot parse and it reports a\n problem for the <em>directory</em> — so the symptom is other, unrelated routes\n disappearing rather than an error about the file you just saved.\n </p>\n <p>\n Saves here are checked before they are written and replace the old file in one step, so a\n file that would break the directory never reaches Traefik in the first place.\n </p>\n <p>\n <b>This page cannot lock you out.</b> It and the API are routed by their containers'\n own settings, not by these files — no save here can take away the page you would use to\n undo it.\n </p>\n <p>\n What belongs here: shared middleware (sign-in prompts, rate limits, address\n allow-lists), TLS options, the catch-all fallback, and routes to things running outside\n this host's previews. A single preview's own routes are not here — those travel with the\n deployment.\n </p>\n </HelpModal>\n </h1>\n <div class=\"sub\">\n Every route on this host, and the config files behind them\n <InfoHint label=\"what belongs in these files\">\n Middleware (basic auth, rate limits, IP allow-lists), TLS options, the catch-all fallback\n router, and routes to anything running outside compose. Per-PR routers are not here —\n those are labels in each deployment's own compose file.\n </InfoHint>\n </div>\n </div>\n <span class=\"grow\" />\n <button v-if=\"writable\" class=\"btn primary\" @click=\"startNew\">New file</button>\n </div>\n\n <ErrorNote v-if=\"listError\" :text=\"listError\" title=\"Could not load the routing files.\" />\n\n <div v-if=\"undo\" class=\"banner info\">\n <b>Replaced {{ undo.name }}.</b>\n <p>\n The previous contents are still here for this session.\n <button class=\"btn sm\" @click=\"revert\">Put it back</button>\n </p>\n </div>\n\n <!-- ============================ live routes ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Live routes</h2>\n <span class=\"grow\" />\n <span class=\"mute\" style=\"font-size: var(--t-sm)\">\n from container labels\n <InfoHint label=\"why routes are not in the files below\" align=\"end\">\n Traefik reads two providers. Per-PR routers are <b>labels on containers</b>, written by each\n deployment's own compose file — so deploying a stack changes this list and never the files.\n The files are the other provider: middleware, TLS options, the fallback router.\n </InfoHint>\n </span>\n </div>\n\n <div v-if=\"liveReachable === false\" class=\"banner warn\">\n <b>Docker did not answer.</b>\n <p>Routes could not be listed — which is not the same as there being none.</p>\n </div>\n\n <table v-else-if=\"live.length\" class=\"cards\">\n <thead>\n <tr>\n <th>URL</th>\n <th>Forwards to</th>\n <th>Deployment</th>\n <th>Router</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(r, i) in live\" :key=\"`${r.container}-${r.router}`\" :style=\"{ '--i': i }\">\n <td data-label=\"url\">\n <div v-for=\"h in r.hosts\" :key=\"h\">\n <a v-if=\"!h.startsWith('(pattern)')\" :href=\"`https://${h}`\" target=\"_blank\" rel=\"noreferrer\">\n {{ h }}\n </a>\n <span v-else class=\"mono mute\">{{ h }}</span>\n </div>\n <span v-if=\"!r.hosts.length\" class=\"mute\">no host in the rule</span>\n </td>\n <td data-label=\"forwards to\">\n <span v-if=\"r.target\" class=\"mono\">{{ r.target }}</span>\n <span v-else class=\"s-failed\">\n {{ r.port === null ? 'no port declared' : 'not on the ingress network' }}\n </span>\n </td>\n <td data-label=\"deployment\">\n <RouterLink v-if=\"r.project\" :to=\"`/deployments/${encodeURIComponent(r.project)}/runtime`\">\n {{ r.project }}\n </RouterLink>\n <span v-else class=\"mute\">—</span>\n </td>\n <td class=\"dim\" data-label=\"router\">{{ r.router }}</td>\n </tr>\n </tbody>\n </table>\n\n <p v-else class=\"mute\">\n No container on this host declares a Traefik router. A deployment's routes come from labels in\n its own compose file — open a deployment's <b>Containers & routes</b> tab to see what is\n missing.\n </p>\n </section>\n\n <!-- ============================ config files ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Config files</h2>\n <span class=\"grow\" />\n <span v-if=\"dir\" class=\"mute\" style=\"font-size: var(--t-sm)\">\n <span class=\"mute\">{{ dir }}</span>\n </span>\n </div>\n\n <!--\n The blast radius, stated once and up front — and the reassurance alongside it, because \"this can\n break everything\" without \"you will still be able to fix it\" just makes people avoid the page.\n -->\n\n <div v-if=\"writable === false\" class=\"banner failed\">\n <b>Read-only: the API cannot write to this directory.</b>\n <p>\n The control stack mounts it into the API from 0.4.0 onward. Re-run\n setup again on the host to pick up the mount — it is safe to repeat, and it recreates\n the control containers.\n </p>\n </div>\n\n <div v-else-if=\"!settings.token\" class=\"banner info\">\n <b>Viewing needs a token too.</b>\n <p>\n These files hold basic-auth hashes and forward-auth URLs, so their contents are not served\n unauthenticated. <RouterLink to=\"/settings\">Add your token</RouterLink>.\n </p>\n </div>\n\n <SkeletonList v-if=\"!loaded\" :rows=\"3\" />\n <ul v-else-if=\"files.length\" class=\"kvlist\">\n <li v-for=\"f in files\" :key=\"f.name\">\n <span class=\"k\">\n <button class=\"ghost sm\" @click=\"open(f.name)\">{{ f.name }}</button>\n </span>\n <span class=\"v mute\" style=\"font-size: var(--t-sm)\">\n {{ f.size }} bytes · {{ stamp(f.updatedAt) }}\n </span>\n </li>\n </ul>\n <p v-else class=\"mute\">\n No files yet. Everything is routed by container labels, which is a perfectly good place to be.\n </p>\n </section>\n\n <section v-if=\"openName !== null\" class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">{{ openName === '' ? 'New file' : openName }}</h2>\n <span v-if=\"dirty\" class=\"badge warn\">unsaved</span>\n <span class=\"grow\" />\n <button class=\"ghost sm\" @click=\"close\">Close</button>\n </div>\n\n <div v-if=\"openName === ''\" class=\"field\" style=\"max-width: 340px\">\n <label for=\"fname\">File name</label>\n <input\n id=\"fname\"\n v-model.trim=\"newName\"\n type=\"text\"\n placeholder=\"middleware.yml\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n />\n <div class=\"mute hint\">Lower case, ending in <code>.yml</code>.</div>\n </div>\n\n <SkeletonList v-if=\"loadingFile\" :rows=\"4\" />\n\n <div v-else-if=\"withheld\" class=\"banner plain\">\n <b>Hidden without an access token.</b>\n <p>\n <RouterLink to=\"/settings\">Add your token</RouterLink> to read and edit this file.\n </p>\n </div>\n\n <template v-else>\n <div class=\"field\">\n <label for=\"content\">Contents</label>\n <textarea id=\"content\" v-model=\"draft\" rows=\"18\" spellcheck=\"false\" />\n </div>\n\n <ErrorNote v-if=\"fileError\" :text=\"fileError\" title=\"Traefik would not accept this.\" />\n\n <div class=\"row\" style=\"margin-top: var(--s4)\">\n <ActionButton variant=\"primary\" :pending=\"saving\" :disabled=\"!canSave\" @click=\"save\">\n {{ saving ? 'Saving…' : 'Save' }}\n </ActionButton>\n <span v-if=\"!settings.token\" class=\"mute\">Saving needs a token.</span>\n </div>\n\n <template v-if=\"openName\">\n <h2 class=\"section\" style=\"margin: var(--s5) 0 var(--s3)\">Delete this file</h2>\n <p class=\"dim\">\n Whatever it configures stops applying as soon as Traefik reloads. If it holds a router,\n those hostnames stop resolving to anything.\n </p>\n <div class=\"field\" style=\"max-width: 340px\">\n <label :for=\"`confirm-${openName}`\">\n Type <b>{{ openName }}</b> to confirm\n </label>\n <input\n :id=\"`confirm-${openName}`\"\n v-model.trim=\"confirmDelete\"\n type=\"text\"\n :placeholder=\"openName\"\n spellcheck=\"false\"\n autocomplete=\"off\"\n />\n </div>\n <div class=\"row\">\n <ActionButton\n variant=\"danger\"\n :disabled=\"confirmDelete !== openName || !settings.token\"\n :title=\"confirmDelete !== openName ? 'Type the file name to confirm.' : undefined\"\n @click=\"remove\"\n >\n Delete\n </ActionButton>\n </div>\n </template>\n </template>\n </section>\n </div>\n</template>\n"],"names":["STARTER","live","ref","liveReachable","files","dir","writable","loaded","listError","openName","draft","original","withheld","loadingFile","saving","fileError","newName","undo","confirmDelete","dirty","computed","canSave","settings","loadList","r","api","problem","loadLive","open","name","startNew","close","save","toast","revert","u","remove","_createElementBlock","_createElementVNode","_hoisted_1","_createVNode","HelpModal","_cache","_hoisted_2","InfoHint","_createBlock","ErrorNote","_openBlock","_hoisted_3","_toDisplayString","_hoisted_4","_hoisted_5","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_Fragment","_renderList","i","_hoisted_10","h","_hoisted_12","_hoisted_11","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_component_RouterLink","_createTextVNode","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_unref","_hoisted_26","_hoisted_27","f","_hoisted_28","$event","_hoisted_29","_hoisted_30","stamp","_hoisted_31","SkeletonList","_hoisted_32","_hoisted_33","_hoisted_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uBAAqB,KAGjDzF,EAAA,WAAhB4B,EA6BWmB,EAAA,CAAA,IAAA,GAAA,eA5BTlB,EAA+E,KAAA,CAA3E,MAAM,UAAU,MAAA,CAAA,OAAA,uBAAA,CAAA,EAAsC,mBAAgB,EAAA,GAC1EI,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAAJ,EAGI,IAAA,CAHD,MAAM,KAAA,EAAM,wIAGf,EAAA,GACAA,EAYM,MAZN6D,GAYM,CAXJ7D,EAEQ,QAAA,CAFA,eAAgB7B,EAAA,KAAQ,EAAA,mBAAI,SAC7B,EAAA,GAAA6B,EAAqB,WAAf7B,EAAA,KAAQ,EAAA,CAAA,kBAAO,eAC5B,EAAA,EAAA,UACA6B,EAOE,QAAA,CANC,cAAe7B,EAAA,KAAQ,wCACVS,EAAa,MAAAiE,GAC3B,KAAK,OACJ,YAAa1E,EAAA,MACd,WAAW,QACX,aAAa,KAAA,iBAJCS,EAAA,aAAN,CAAA,KAAR,EAAA,CAA4B,MAOhCoB,EASM,MATN8D,GASM,CARJ5D,EAOeyD,EAAA,CANb,QAAQ,SACP,SAAU/E,EAAA,QAAkBT,SAAQ,CAAKqE,EAAAxD,CAAA,EAAS,MAClD,MAAOJ,EAAA,QAAkBT,EAAA,uCAA8C,OACvE,QAAO2B,EAAA,aACT,IAED,CAAA,GAAAM,EAAA,EAAA,IAAAA,EAAA,EAAA,EAAA,GAFC,WAED,EAAA,CAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{s as S}from"./useFormat-DVXTfIS-.js";import{d as U,H as A,p as D,c as o,x as w,g as u,F as h,a as t,s as p,f as a,t as r,e as k,w as f,_ as P,r as $,C as g,j as B,o as n,D as I,E as R,u as y,A as E,B as V}from"./index-DVCVnKbf.js";import{d as b,v as F}from"./useDeployment-752fTjLE.js";import{_ as K}from"./SkeletonList.vue_vue_type_script_setup_true_lang-BYHXRCNR.js";import{_ as W}from"./ErrorNote.vue_vue_type_script_setup_true_lang-BFuRxw1l.js";import"./useVars-VN9gYdR6.js";const H={key:0,class:"banner warn"},M={key:0,class:"banner ok"},O={class:"panel"},j={class:"phead"},Q={class:"mute",style:{"font-size":"var(--t-sm)"}},q={key:0,class:"cards"},G={class:"stagger"},J={"data-label":"url"},X=["href"],Y={key:1,class:"mono mute"},Z={key:0,class:"mute"},ee={"data-label":"forwards to"},te={key:0,class:"mono"},se={key:1,class:"s-failed"},ne={class:"mute",style:{"font-size":"var(--t-sm)"}},oe={"data-label":"router"},re={key:0,class:"mute",style:{"font-size":"var(--t-sm)"}},ae={"data-label":"tls"},le={key:0,class:"badge ok"},ie={key:1,class:"badge off"},de={key:1,class:"banner warn"},ue={class:"panel"},he={class:"phead"},me={class:"mute",style:{"font-size":"var(--t-sm)"}},pe={key:0,class:"cards"},ce={class:"stagger"},fe={class:"name","data-label":"service"},ve={class:"mute",style:{"font-size":"var(--t-sm)"}},ke={"data-label":"state"},ge={"data-label":"ports"},ye={class:"mono"},be={key:0,class:"mute"},_e={key:0,class:"mute"},we={"data-label":"networks"},$e={key:0,class:"mute mono",style:{"font-size":"var(--t-sm)"}},Re={class:"dim","data-label":"image"},Ce={class:"row-actions","data-label":""},Te=["href"],Se={key:1,class:"mute"},Ae=U({__name:"RuntimeTab",setup(Pe){const l=$(null),v=$(""),_=$(!0);async function C(){const i=await E.get(`/api/deployments/${encodeURIComponent(b.id)}/runtime${F.value}`);if(_.value=!1,!i.ok){v.value=V(i,"inspect what is running");return}v.value="",l.value=i.body}A(()=>b.id,()=>{_.value=!0,C()},{immediate:!0}),D(()=>void C(),8e3);const N=g(()=>{var i;return((i=l.value)==null?void 0:i.findings.filter(e=>e.level==="error"))??[]}),x=g(()=>{var i;return((i=l.value)==null?void 0:i.findings.filter(e=>e.level==="warn"))??[]}),L=g(()=>{var i;return((i=l.value)==null?void 0:i.findings.filter(e=>e.level==="info"))??[]}),z=g(()=>{var i;return((i=l.value)==null?void 0:i.containers.filter(e=>e.state==="running").length)??0});function T(i){var c;const e=(c=l.value)==null?void 0:c.routes.filter(s=>s.container===i.name).flatMap(s=>s.hosts).find(s=>!s.startsWith("(pattern)"));return e?`https://${e}`:null}return(i,e)=>{const c=B("RouterLink");return n(),o("div",null,[v.value?(n(),w(W,{key:0,text:v.value,title:"Could not inspect this deployment."},null,8,["text"])):u("",!0),_.value&&!l.value?(n(),w(K,{key:1,rows:5})):l.value?(n(),o(h,{key:2},[l.value.reachable?(n(),o(h,{key:1},[(n(!0),o(h,null,p(N.value,(s,m)=>(n(),o("div",{key:`e${m}`,class:"banner failed"},[e[1]||(e[1]=t("b",null,"Blocking",-1)),t("p",null,r(s.message),1)]))),128)),(n(!0),o(h,null,p(x.value,(s,m)=>(n(),o("div",{key:`w${m}`,class:"banner warn"},[e[2]||(e[2]=t("b",null,"Worth checking",-1)),t("p",null,r(s.message),1)]))),128)),(n(!0),o(h,null,p(L.value,(s,m)=>(n(),o("div",{key:`i${m}`,class:"banner plain"},[t("p",null,r(s.message),1)]))),128)),!l.value.findings.length&&l.value.containers.length?(n(),o("div",M,[...e[3]||(e[3]=[t("b",null,"Nothing looks wrong.",-1),t("p",null," Every container is attached to the ingress network and every router has a rule and a port. If a hostname still fails, the next suspects are DNS and the certificate. ",-1)])])):u("",!0),t("section",O,[t("div",j,[e[5]||(e[5]=t("h2",{class:"section"},"Routing",-1)),e[6]||(e[6]=t("span",{class:"grow"},null,-1)),t("span",Q,[a(" TLS: "+r(l.value.challenge==="unknown"?"unknown":l.value.challenge)+" ",1),k(P,{label:"why the TLS mode matters here",align:"end"},{default:f(()=>[...e[4]||(e[4]=[a(" Under HTTP-01 every per-PR router needs ",-1),t("code",null,"tls.certresolver=le",-1),a(", because each hostname resolves its own certificate. Under DNS-01 that inverts — one always-on router holds the wildcard, and a per-PR certresolver makes each PR order its own and burn the weekly limit. Read from the running Traefik's own flags, not configured here. ",-1)])]),_:1})])]),l.value.routes.length?(n(),o("table",q,[t("thead",null,[t("tr",null,[e[9]||(e[9]=t("th",null,"URL",-1)),t("th",null,[e[8]||(e[8]=a(" Forwards to ",-1)),k(P,{label:"how a URL reaches a port"},{default:f(()=>[...e[7]||(e[7]=[a(" Traefik's docker provider resolves the container's IP on ",-1),t("code",null,"preview-ingress",-1),a(" and dials it on the port from ",-1),t("code",null,"loadbalancer.server.port",-1),a(" — it does ",-1),t("em",null,"not",-1),a(" use ",-1),t("code",null,"service:port",-1),a(" DNS. So the port here is the one inside the container, and publishing a host port is unnecessary. ",-1)])]),_:1})]),e[10]||(e[10]=t("th",null,"Router",-1)),e[11]||(e[11]=t("th",null,"TLS",-1))])]),t("tbody",G,[(n(!0),o(h,null,p(l.value.routes,(s,m)=>(n(),o("tr",{key:s.router,style:I({"--i":m})},[t("td",J,[(n(!0),o(h,null,p(s.hosts,d=>(n(),o("div",{key:d},[d.startsWith("(pattern)")?(n(),o("span",Y,r(d),1)):(n(),o("a",{key:0,href:`https://${d}`,target:"_blank",rel:"noreferrer"},r(d),9,X))]))),128)),s.hosts.length?u("",!0):(n(),o("span",Z,"no host in the rule"))]),t("td",ee,[s.target?(n(),o("span",te,r(s.target),1)):(n(),o("span",se,r(s.port===null?"no port declared":"not on the ingress network"),1)),t("div",ne,r(s.container),1)]),t("td",oe,[a(r(s.router)+" ",1),s.priority?(n(),o("div",re," priority "+r(s.priority),1)):u("",!0)]),t("td",ae,[s.tls?(n(),o("span",le,r(s.certresolver||"inherited"),1)):(n(),o("span",ie,"off"))])],4))),128))])])):(n(),o("div",de,[e[17]||(e[17]=t("b",null,"No routes. Traefik has not been told about this deployment.",-1)),t("p",null,[e[13]||(e[13]=a(" Routes come from labels in ",-1)),e[14]||(e[14]=t("em",null,"your",-1)),e[15]||(e[15]=a(" compose file, not from pstack and not from the ",-1)),k(c,{to:"/routing"},{default:f(()=>[...e[12]||(e[12]=[a("Routing",-1)])]),_:1}),e[16]||(e[16]=a(" page (that is Traefik's file provider — middleware and TLS options, not per-PR routers). A reachable service needs four things: ",-1))]),e[18]||(e[18]=t("pre",{class:"code"},"labels:\n - traefik.enable=true # the host runs exposedbydefault=false\n - traefik.docker.network=preview-ingress # which network Traefik should dial\n - traefik.http.routers.<name>-${STACK}.rule=Host(`<name>-${STACK}.${PREVIEW_DOMAIN}`)\n - traefik.http.services.<name>-${STACK}.loadbalancer.server.port=80\nnetworks: [default, preview-ingress] # and preview-ingress: { external: true }",-1)),e[19]||(e[19]=t("p",{class:"mute"},[a(" Put "),t("code",null,"${STACK}"),a(" in the router and service names: Traefik's namespace is global across the host, so two deployments sharing a router name serve each other's containers. ")],-1))]))]),t("section",ue,[t("div",he,[e[20]||(e[20]=t("h2",{class:"section"},"Containers",-1)),e[21]||(e[21]=t("span",{class:"grow"},null,-1)),t("span",me,r(z.value)+" of "+r(l.value.containers.length)+" running ",1)]),l.value.containers.length?(n(),o("table",pe,[e[24]||(e[24]=t("thead",null,[t("tr",null,[t("th",null,"Service"),t("th",null,"State"),t("th",null,"Ports"),t("th",null,"Networks"),t("th",null,"Image"),t("th",{"aria-label":"Actions"})])],-1)),t("tbody",ce,[(n(!0),o(h,null,p(l.value.containers,(s,m)=>(n(),o("tr",{key:s.id,style:I({"--i":m})},[t("td",fe,[a(r(s.service??s.name)+" ",1),t("div",ve,r(s.name),1)]),t("td",ke,[t("span",{class:R(s.state==="running"?"s-ok":"s-failed")},r(y(S)(s.state)),3),s.health?(n(),o("div",{key:0,class:R(["mute",s.health==="healthy"?"s-ok":"s-failed"]),style:{"font-size":"var(--t-sm)"}},r(y(S)(s.health)),3)):u("",!0)]),t("td",ge,[(n(!0),o(h,null,p(s.ports,d=>(n(),o("div",{key:`${d.containerPort}/${d.protocol}`},[t("span",ye,r(d.containerPort),1),d.hostPort?(n(),o("span",be," ← host "+r(d.hostPort),1)):u("",!0)]))),128)),s.ports.length?u("",!0):(n(),o("span",_e,"none exposed"))]),t("td",we,[(n(!0),o(h,null,p(s.networks,d=>(n(),o("div",{key:d},[t("span",{class:R(d==="preview-ingress"?"s-ok":"")},r(d),3)]))),128)),s.ingressIp?(n(),o("div",$e,r(s.ingressIp),1)):u("",!0)]),t("td",Re,r(s.image),1),t("td",Ce,[k(c,{class:"btn sm ghost",to:`/deployments/${encodeURIComponent(y(b).id)}/logs?container=${encodeURIComponent(s.name)}`},{default:f(()=>[...e[22]||(e[22]=[a(" Logs ",-1)])]),_:1},8,["to"]),s.state==="running"?(n(),w(c,{key:0,class:"btn sm ghost",to:`/deployments/${encodeURIComponent(y(b).id)}/terminal?container=${encodeURIComponent(s.name)}`},{default:f(()=>[...e[23]||(e[23]=[a(" Shell ",-1)])]),_:1},8,["to"])):u("",!0),T(s)?(n(),o("a",{key:1,class:"btn sm ghost",href:T(s),target:"_blank",rel:"noreferrer"}," Open ",8,Te)):u("",!0)])],4))),128))])])):(n(),o("p",Se," No containers for this stack. If you expected some, check that their profile is one the spec selects — a service behind a profile that is not enabled is never started. "))])],64)):(n(),o("div",H,[...e[0]||(e[0]=[t("b",null,"Docker did not answer.",-1),t("p",null," Nothing below could be determined — this is not the same as nothing running. Check the daemon and the socket mount, then refresh. ",-1)])]))],64)):u("",!0)])}}});export{Ae as default};
|
|
2
|
+
//# sourceMappingURL=RuntimeTab-B0D_MxFQ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuntimeTab-B0D_MxFQ.js","sources":["../../src/views/tabs/RuntimeTab.vue"],"sourcesContent":["<script setup lang=\"ts\">\n/**\n * What is actually running, and what Traefik was actually told about it.\n *\n * THE QUESTION THIS ANSWERS. \"The hostname does not work.\" Nothing in this UI could answer it: the\n * registry shows what was *submitted*, the logs show what the container *says*, and the reason a\n * request 404s is in neither — it is in the container's Traefik labels, which pstack never writes.\n *\n * The routing table is the direct answer to \"which URL maps to which port\". Traefik does **not** dial\n * `service_name:port`: its docker provider resolves the container's IP on the ingress network and\n * dials that, on the port from the `loadbalancer.server.port` label. That is why a service must be\n * attached to `preview-ingress`, why the port is the *container-internal* one, and why publishing a\n * host port is unnecessary. The `target` column shows the address Traefik assembled, so a missing\n * half is visible rather than inferred.\n *\n * Findings come first because they are the reason anyone opened this tab.\n */\nimport { computed, ref, watch } from 'vue';\nimport { sentence } from '../../composables/useFormat';\nimport { api, problem } from '../../api/client';\nimport type { RuntimeContainer, RuntimeResponse } from '../../api/types';\nimport { dep, varsQuery } from '../../composables/useDeployment';\nimport { usePolling } from '../../composables/usePolling';\nimport SkeletonList from '../../components/SkeletonList.vue';\nimport ErrorNote from '../../components/ErrorNote.vue';\nimport InfoHint from '../../components/InfoHint.vue';\n\nconst rt = ref<RuntimeResponse | null>(null);\nconst error = ref('');\nconst loading = ref(true);\n\nasync function load(): Promise<void> {\n const r = await api.get<RuntimeResponse>(\n `/api/deployments/${encodeURIComponent(dep.id)}/runtime${varsQuery.value}`,\n );\n loading.value = false;\n if (!r.ok) {\n error.value = problem(r, 'inspect what is running');\n return;\n }\n error.value = '';\n rt.value = r.body;\n}\n\nwatch(() => dep.id, () => { loading.value = true; void load(); }, { immediate: true });\n// Containers change state during a deploy; the poll pauses itself when the tab is hidden.\nusePolling(() => void load(), 8000);\n\nconst errors = computed(() => rt.value?.findings.filter((f) => f.level === 'error') ?? []);\nconst warns = computed(() => rt.value?.findings.filter((f) => f.level === 'warn') ?? []);\nconst infos = computed(() => rt.value?.findings.filter((f) => f.level === 'info') ?? []);\nconst running = computed(() => rt.value?.containers.filter((c) => c.state === 'running').length ?? 0);\n\n/**\n * The hostname Traefik actually routes to this container, or null.\n *\n * Built from the ROUTES rather than guessed from the container: a router's rule is the only thing\n * that decides what URL reaches it, and a link assembled from a service name and a domain would be\n * a plausible-looking 404. Pattern hosts (`HostRegexp`) are skipped for the same reason — there is\n * no single address to send someone to.\n */\nfunction urlFor(c: RuntimeContainer): string | null {\n const host = rt.value?.routes\n .filter((r) => r.container === c.name)\n .flatMap((r) => r.hosts)\n .find((h) => !h.startsWith('(pattern)'));\n return host ? `https://${host}` : null;\n}\n</script>\n\n<template>\n <div>\n <ErrorNote v-if=\"error\" :text=\"error\" title=\"Could not inspect this deployment.\" />\n <SkeletonList v-if=\"loading && !rt\" :rows=\"5\" />\n\n <template v-else-if=\"rt\">\n <!--\n `reachable: false` is not \"nothing is running\". The stack may be perfectly healthy while this\n process cannot reach the Docker socket, and reporting that as empty is how a UI tells someone\n their live preview is gone.\n -->\n <div v-if=\"!rt.reachable\" class=\"banner warn\">\n <b>Docker did not answer.</b>\n <p>\n Nothing below could be determined — this is not the same as nothing running. Check the\n daemon and the socket mount, then refresh.\n </p>\n </div>\n\n <template v-else>\n <!-- Findings first: this tab exists because something is not working. -->\n <div v-for=\"(f, i) in errors\" :key=\"`e${i}`\" class=\"banner failed\">\n <b>Blocking</b>\n <p>{{ f.message }}</p>\n </div>\n <div v-for=\"(f, i) in warns\" :key=\"`w${i}`\" class=\"banner warn\">\n <b>Worth checking</b>\n <p>{{ f.message }}</p>\n </div>\n <div v-for=\"(f, i) in infos\" :key=\"`i${i}`\" class=\"banner plain\">\n <p>{{ f.message }}</p>\n </div>\n <div v-if=\"!rt.findings.length && rt.containers.length\" class=\"banner ok\">\n <b>Nothing looks wrong.</b>\n <p>\n Every container is attached to the ingress network and every router has a rule and a port.\n If a hostname still fails, the next suspects are DNS and the certificate.\n </p>\n </div>\n\n <!-- ============================ routing ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Routing</h2>\n <span class=\"grow\" />\n <span class=\"mute\" style=\"font-size: var(--t-sm)\">\n TLS: {{ rt.challenge === 'unknown' ? 'unknown' : rt.challenge }}\n <InfoHint label=\"why the TLS mode matters here\" align=\"end\">\n Under HTTP-01 every per-PR router needs <code>tls.certresolver=le</code>, because each\n hostname resolves its own certificate. Under DNS-01 that inverts — one always-on router\n holds the wildcard, and a per-PR certresolver makes each PR order its own and burn the\n weekly limit. Read from the running Traefik's own flags, not configured here.\n </InfoHint>\n </span>\n </div>\n\n <table v-if=\"rt.routes.length\" class=\"cards\">\n <thead>\n <tr>\n <th>URL</th>\n <th>\n Forwards to\n <InfoHint label=\"how a URL reaches a port\">\n Traefik's docker provider resolves the container's IP on\n <code>preview-ingress</code> and dials it on the port from\n <code>loadbalancer.server.port</code> — it does <em>not</em> use\n <code>service:port</code> DNS. So the port here is the one inside the container,\n and publishing a host port is unnecessary.\n </InfoHint>\n </th>\n <th>Router</th>\n <th>TLS</th>\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(r, i) in rt.routes\" :key=\"r.router\" :style=\"{ '--i': i }\">\n <td data-label=\"url\">\n <div v-for=\"h in r.hosts\" :key=\"h\">\n <a v-if=\"!h.startsWith('(pattern)')\" :href=\"`https://${h}`\" target=\"_blank\" rel=\"noreferrer\">\n {{ h }}\n </a>\n <span v-else class=\"mono mute\">{{ h }}</span>\n </div>\n <span v-if=\"!r.hosts.length\" class=\"mute\">no host in the rule</span>\n </td>\n <td data-label=\"forwards to\">\n <span v-if=\"r.target\" class=\"mono\">{{ r.target }}</span>\n <span v-else class=\"s-failed\">\n {{ r.port === null ? 'no port declared' : 'not on the ingress network' }}\n </span>\n <div class=\"mute\" style=\"font-size: var(--t-sm)\">{{ r.container }}</div>\n </td>\n <td data-label=\"router\">\n {{ r.router }}\n <div v-if=\"r.priority\" class=\"mute\" style=\"font-size: var(--t-sm)\">\n priority {{ r.priority }}\n </div>\n </td>\n <td data-label=\"tls\">\n <span v-if=\"r.tls\" class=\"badge ok\">{{ r.certresolver || 'inherited' }}</span>\n <span v-else class=\"badge off\">off</span>\n </td>\n </tr>\n </tbody>\n </table>\n\n <!--\n The reported failure, stated where it will be looked for. pstack does not write these\n labels — the deployment's own compose file does — so the fix is in the user's file.\n -->\n <div v-else class=\"banner warn\">\n <b>No routes. Traefik has not been told about this deployment.</b>\n <p>\n Routes come from labels in <em>your</em> compose file, not from pstack and not from the\n <RouterLink to=\"/routing\">Routing</RouterLink> page (that is Traefik's file provider —\n middleware and TLS options, not per-PR routers). A reachable service needs four things:\n </p>\n <pre class=\"code\">labels:\n - traefik.enable=true # the host runs exposedbydefault=false\n - traefik.docker.network=preview-ingress # which network Traefik should dial\n - traefik.http.routers.<name>-${STACK}.rule=Host(`<name>-${STACK}.${PREVIEW_DOMAIN}`)\n - traefik.http.services.<name>-${STACK}.loadbalancer.server.port=80\nnetworks: [default, preview-ingress] # and preview-ingress: { external: true }</pre>\n <p class=\"mute\">\n Put <code>${STACK}</code> in the router and service names: Traefik's namespace is global\n across the host, so two deployments sharing a router name serve each other's containers.\n </p>\n </div>\n </section>\n\n <!-- ============================ containers ============================ -->\n <section class=\"panel\">\n <div class=\"phead\">\n <h2 class=\"section\">Containers</h2>\n <span class=\"grow\" />\n <span class=\"mute\" style=\"font-size: var(--t-sm)\">\n {{ running }} of {{ rt.containers.length }} running\n </span>\n </div>\n\n <table v-if=\"rt.containers.length\" class=\"cards\">\n <thead>\n <tr>\n <th>Service</th>\n <th>State</th>\n <th>Ports</th>\n <th>Networks</th>\n <th>Image</th>\n <th aria-label=\"Actions\" />\n </tr>\n </thead>\n <tbody class=\"stagger\">\n <tr v-for=\"(c, i) in rt.containers\" :key=\"c.id\" :style=\"{ '--i': i }\">\n <td class=\"name\" data-label=\"service\">\n {{ c.service ?? c.name }}\n <div class=\"mute\" style=\"font-size: var(--t-sm)\">{{ c.name }}</div>\n </td>\n <td data-label=\"state\">\n <span :class=\"c.state === 'running' ? 's-ok' : 's-failed'\">{{ sentence(c.state) }}</span>\n <div\n v-if=\"c.health\"\n class=\"mute\"\n style=\"font-size: var(--t-sm)\"\n :class=\"c.health === 'healthy' ? 's-ok' : 's-failed'\"\n >\n {{ sentence(c.health) }}\n </div>\n </td>\n <td data-label=\"ports\">\n <div v-for=\"p in c.ports\" :key=\"`${p.containerPort}/${p.protocol}`\">\n <span class=\"mono\">{{ p.containerPort }}</span>\n <span v-if=\"p.hostPort\" class=\"mute\"> ← host {{ p.hostPort }}</span>\n </div>\n <span v-if=\"!c.ports.length\" class=\"mute\">none exposed</span>\n </td>\n <td data-label=\"networks\">\n <div v-for=\"n in c.networks\" :key=\"n\">\n <span :class=\"n === 'preview-ingress' ? 's-ok' : ''\">{{ n }}</span>\n </div>\n <div v-if=\"c.ingressIp\" class=\"mute mono\" style=\"font-size: var(--t-sm)\">\n {{ c.ingressIp }}\n </div>\n </td>\n <td class=\"dim\" data-label=\"image\">{{ c.image }}</td>\n <!--\n The three things anyone wants from a container row, without hunting for the tab\n that does it. Open goes to the URL Traefik actually assembled for THIS container\n (see `urlFor`), so it is absent rather than wrong when no router points here.\n -->\n <td class=\"row-actions\" data-label=\"\">\n <RouterLink\n class=\"btn sm ghost\"\n :to=\"`/deployments/${encodeURIComponent(dep.id)}/logs?container=${encodeURIComponent(c.name)}`\"\n >\n Logs\n </RouterLink>\n <RouterLink\n v-if=\"c.state === 'running'\"\n class=\"btn sm ghost\"\n :to=\"`/deployments/${encodeURIComponent(dep.id)}/terminal?container=${encodeURIComponent(c.name)}`\"\n >\n Shell\n </RouterLink>\n <a\n v-if=\"urlFor(c)\"\n class=\"btn sm ghost\"\n :href=\"urlFor(c)!\"\n target=\"_blank\"\n rel=\"noreferrer\"\n >\n Open\n </a>\n </td>\n </tr>\n </tbody>\n </table>\n <p v-else class=\"mute\">\n No containers for this stack. If you expected some, check that their profile is one the\n spec selects — a service behind a profile that is not enabled is never started.\n </p>\n </section>\n </template>\n </template>\n </div>\n</template>\n"],"names":["rt","ref","error","loading","load","r","api","dep","varsQuery","problem","watch","usePolling","errors","computed","_a","f","warns","infos","running","c","urlFor","host","h","_createElementBlock","_createBlock","ErrorNote","SkeletonList","_Fragment","_openBlock","_renderList","i","_cache","_createElementVNode","_toDisplayString","_hoisted_2","_hoisted_3","_hoisted_4","_hoisted_5","_createVNode","InfoHint","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_10","_hoisted_9","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","_hoisted_17","_hoisted_18","_hoisted_19","_hoisted_20","_hoisted_21","_component_RouterLink","_hoisted_22","_hoisted_23","_hoisted_24","_hoisted_25","_hoisted_26","_hoisted_27","_createTextVNode","_hoisted_28","_hoisted_29","_normalizeClass","_unref","sentence","_hoisted_30","p","_hoisted_31","_hoisted_32","_hoisted_33","_hoisted_34","n","_hoisted_35","_hoisted_36","_hoisted_37","_hoisted_38","_hoisted_39","_hoisted_1"],"mappings":"ypDA2BA,MAAMA,EAAKC,EAA4B,IAAI,EACrCC,EAAQD,EAAI,EAAE,EACdE,EAAUF,EAAI,EAAI,EAExB,eAAeG,GAAsB,CACnC,MAAMC,EAAI,MAAMC,EAAI,IAClB,oBAAoB,mBAAmBC,EAAI,EAAE,CAAC,WAAWC,EAAU,KAAK,EAAA,EAG1E,GADAL,EAAQ,MAAQ,GACZ,CAACE,EAAE,GAAI,CACTH,EAAM,MAAQO,EAAQJ,EAAG,yBAAyB,EAClD,MACF,CACAH,EAAM,MAAQ,GACdF,EAAG,MAAQK,EAAE,IACf,CAEAK,EAAM,IAAMH,EAAI,GAAI,IAAM,CAAEJ,EAAQ,MAAQ,GAAWC,EAAA,CAAQ,EAAG,CAAE,UAAW,GAAM,EAErFO,EAAW,IAAM,KAAKP,EAAA,EAAQ,GAAI,EAElC,MAAMQ,EAASC,EAAS,WAAM,QAAAC,EAAAd,EAAG,QAAH,YAAAc,EAAU,SAAS,OAAQC,GAAMA,EAAE,QAAU,WAAY,CAAA,EAAE,EACnFC,EAAQH,EAAS,WAAM,QAAAC,EAAAd,EAAG,QAAH,YAAAc,EAAU,SAAS,OAAQC,GAAMA,EAAE,QAAU,UAAW,CAAA,EAAE,EACjFE,EAAQJ,EAAS,WAAM,QAAAC,EAAAd,EAAG,QAAH,YAAAc,EAAU,SAAS,OAAQC,GAAMA,EAAE,QAAU,UAAW,CAAA,EAAE,EACjFG,EAAUL,EAAS,IAAA,OAAM,QAAAC,EAAAd,EAAG,QAAH,YAAAc,EAAU,WAAW,OAAQK,GAAMA,EAAE,QAAU,WAAW,SAAU,EAAC,EAUpG,SAASC,EAAOD,EAAoC,OAClD,MAAME,GAAOP,EAAAd,EAAG,QAAH,YAA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