y
This commit is contained in:
1 parent
84be8e5828
commit
2c3379026b
5 files changed
+28
-130
No files matched your search
@@ -783,4 +783,4 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
||||
Zielversion: ${Je}.
|
||||
Während des Updates befindet sich StackPulse im Wartungsmodus.
|
||||
Fortfahren?`)))try{X(""),_(!0),await C(),e({variant:"info",title:"Update gestartet",description:"Das Portainer-Update wurde gestartet."})}catch(Nt){const zt=((gt=(mt=Nt.response)==null?void 0:mt.data)==null?void 0:gt.error)||Nt.message||"Portainer-Update konnte nicht gestartet werden";X(zt),e({variant:"error",title:"Update fehlgeschlagen",description:zt})}finally{_(!1)}},[j,P,ft,C,e]);Z.useCallback(async Je=>{var zt,hr,Tr,rn;if(!Je)return;if(j||P){e({variant:"warning",title:"Aktion nicht möglich",description:"Während des Wartungsmodus sind Bereinigungen deaktiviert."});return}const mt=(zt=Je.canonical)==null?void 0:zt.Id;if(!mt)return;const gt=(Je.duplicates||[]).map(yn=>yn.Id).filter(Boolean);if(!gt.length)return;const Nt=((hr=Je.canonical)==null?void 0:hr.Name)||Je.name||`Stack ${mt}`;if(!(typeof window<"u"&&!window.confirm(`Bereinigung für "${Nt}" starten?
|
||||
Es werden ${gt.length} Duplikate entfernt: ${gt.join(", ")}`))){xt(String(mt));try{const ee=(await Nr.post("/api/maintenance/duplicates/cleanup",{canonicalId:mt,duplicateIds:gt})).data??{};if(ee.success===!1)throw new Error(ee.error||"Bereinigung fehlgeschlagen");const n=Array.isArray(ee.results)?ee.results.filter(o=>o.status==="deleted").map(o=>o.id):gt;e({variant:"success",title:"Bereinigung abgeschlossen",description:`${Nt} – entfernte IDs: ${n.join(", ")}`}),await Ct({silent:!0})}catch(yn){const ee=((rn=(Tr=yn.response)==null?void 0:Tr.data)==null?void 0:rn.error)||yn.message||"Bereinigung fehlgeschlagen";e({variant:"error",title:"Bereinigung fehlgeschlagen",description:ee})}finally{xt(null)}}},[Ct,j,e,P]);const Gn=t!=null&&t.activatedAt?Ws(t.activatedAt):null,yr=t!=null&&t.updatedAt?Ws(t.updatedAt):null,gn=(r==null?void 0:r.status)??(P?"running":"idle"),_o=EV[gn]??gn,Uo=Bs[gn]??Bs.idle,bn=r!=null&&r.stage?MV[r.stage]??r.stage:"–",po=(r==null?void 0:r.logs)??[],Gr=(r==null?void 0:r.targetVersion)??"-",ho=(r==null?void 0:r.resultVersion)??"-",Rn=r!=null&&r.startedAt?Ws(r.startedAt):"-",Oo=r!=null&&r.finishedAt?Ws(r.finishedAt):"-",vn=(r==null?void 0:r.message)??(P?"Update läuft…":""),zr=P||v||l;return te.jsxs("div",{className:"mt-12 mb-8 flex flex-col gap-12",children:[(j||P)&&te.jsx("div",{className:"rounded-lg border border-cyan-500/60 bg-cyan-900/30 px-4 py-3 text-sm text-bluegray-100",children:te.jsxs("div",{className:"flex flex-col gap-1",children:[te.jsxs("span",{children:["Wartungsmodus aktiv",R?` – ${R}`:P?" – Portainer-Update läuft":"","."]}),P&&te.jsxs("span",{className:"text-xs text-indigo-900",children:["Phase: ",bn]})]})}),te.jsxs(De.Card,{children:[te.jsx(De.CardHeader,{variant:"gradient",color:"gray",className:"mb-8 p-6",children:te.jsx(De.Typography,{variant:"h6",color:"white",className:"flex items-center justify-between",children:te.jsx("span",{children:"Portainer"})})}),te.jsxs(De.CardBody,{className:"flex flex-col gap-4 p-4 pt-0",children:[te.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[te.jsxs("div",{children:[te.jsx("h2",{className:"block antialiased font-sans text-lg font-semibold",children:"Portainer Status"}),te.jsx("p",{className:"block antialiased font-sans text-sm font-light leading-normal text-inherit",children:Bt?"Status wird geprüft…":Tt||(P?"Portainer wird aktuell aktualisiert.":(ft==null?void 0:ft.updateAvailable)===!0?"Es ist ein Update für Portainer verfügbar.":"Portainer ist auf dem aktuellen Stand.")}),Ur&&!Bt&&te.jsxs("p",{className:"mt-1 text-xs text-gray-500 block antialiased font-sans",children:["Stand: ",Ur.toLocaleString("de-DE",{hour:"2-digit",minute:"2-digit",second:"2-digit"})]})]}),te.jsx("div",{className:"flex items-center gap-3",children:te.jsx(De.Button,{onClick:()=>ct({silent:!1}),disabled:Bt||br,className:"w-full",children:"Status aktualisieren"})})]}),te.jsx("div",{className:"flex flex-col gap-4 mt-5 space-y-4 block antialiased font-sans text-sm font-light leading-normal text-inherit",children:!Bt&&!Tt&&ft&&te.jsxs("div",{className:"",children:[te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Installierte Version"}),te.jsx("span",{className:"font-medium",children:ft.currentVersion??"Unbekannt"})]}),te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Neueste Version"}),te.jsx("span",{className:"font-medium",children:ft.latestVersion??"Unbekannt"})]}),te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Status"}),te.jsx("span",{className:`rounded-full px-3 py-0.5 text-xs font-semibold ${ft.updateAvailable===!0?Bs.error:ft.updateAvailable===!1?Bs.success:Bs.idle}`,children:ft.updateAvailable===!0?"Update verfügbar":ft.updateAvailable===!1?"Aktuell":"Unbekannt"})]}),ft.edition&&te.jsxs("div",{className:"flex items-center justify-between",children:[te.jsx("span",{className:"text-gray-400",children:"Edition"}),te.jsx("span",{className:"font-medium",children:ft.edition})]}),ft.build&&te.jsxs("div",{className:"flex items-center justify-between",children:[te.jsx("span",{className:"text-gray-400",children:"Build"}),te.jsx("span",{className:"font-medium",children:ft.build})]}),((tn=ft.errors)==null?void 0:tn.latestVersion)&&te.jsxs("div",{className:"rounded-md mt-8 border border-red-500/40 bg-red-900/40 px-3 py-2 text-xs",children:["Neueste Version konnte nicht ermittelt werden: ",ft.errors.latestVersion]}),((mn=ft.errors)==null?void 0:mn.container)&&te.jsxs("div",{className:"rounded-md mt-8 border border-red-500/40 bg-red-900/40 px-3 py-2 text-xs",children:["Container-Details konnten nicht ermittelt werden: ",ft.errors.container]})]})}),te.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-2 xl:grid-cols-3",children:[te.jsxs("div",{className:"rounded-md border border-gray-700/20 p-4",children:[te.jsx("div",{className:"flex item
Line truncated
|
||||
Es werden ${gt.length} Duplikate entfernt: ${gt.join(", ")}`))){xt(String(mt));try{const ee=(await Nr.post("/api/maintenance/duplicates/cleanup",{canonicalId:mt,duplicateIds:gt})).data??{};if(ee.success===!1)throw new Error(ee.error||"Bereinigung fehlgeschlagen");const n=Array.isArray(ee.results)?ee.results.filter(o=>o.status==="deleted").map(o=>o.id):gt;e({variant:"success",title:"Bereinigung abgeschlossen",description:`${Nt} – entfernte IDs: ${n.join(", ")}`}),await Ct({silent:!0})}catch(yn){const ee=((rn=(Tr=yn.response)==null?void 0:Tr.data)==null?void 0:rn.error)||yn.message||"Bereinigung fehlgeschlagen";e({variant:"error",title:"Bereinigung fehlgeschlagen",description:ee})}finally{xt(null)}}},[Ct,j,e,P]);const Gn=t!=null&&t.activatedAt?Ws(t.activatedAt):null,yr=t!=null&&t.updatedAt?Ws(t.updatedAt):null,gn=(r==null?void 0:r.status)??(P?"running":"idle"),_o=EV[gn]??gn,Uo=Bs[gn]??Bs.idle,bn=r!=null&&r.stage?MV[r.stage]??r.stage:"–",po=(r==null?void 0:r.logs)??[],Gr=(r==null?void 0:r.targetVersion)??"-",ho=(r==null?void 0:r.resultVersion)??"-",Rn=r!=null&&r.startedAt?Ws(r.startedAt):"-",Oo=r!=null&&r.finishedAt?Ws(r.finishedAt):"-",vn=(r==null?void 0:r.message)??(P?"Update läuft…":""),zr=P||v||l;return te.jsxs("div",{className:"mt-12 mb-8 flex flex-col gap-12",children:[(j||P)&&te.jsx("div",{className:"rounded-lg border border-cyan-500/60 bg-cyan-900/30 px-4 py-3 text-sm text-bluegray-100",children:te.jsxs("div",{className:"flex flex-col gap-1",children:[te.jsxs("span",{children:["Wartungsmodus aktiv",R?` – ${R}`:P?" – Portainer-Update läuft":"","."]}),P&&te.jsxs("span",{className:"text-xs text-indigo-900",children:["Phase: ",bn]})]})}),te.jsxs(De.Card,{children:[te.jsx(De.CardHeader,{variant:"gradient",color:"gray",className:"mb-8 p-6",children:te.jsx(De.Typography,{variant:"h6",color:"white",className:"flex items-center justify-between",children:te.jsx("span",{children:"Portainer"})})}),te.jsxs(De.CardBody,{className:"flex flex-col gap-4 p-4 pt-0",children:[te.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[te.jsxs("div",{children:[te.jsx("h2",{className:"block antialiased font-sans text-lg font-semibold",children:"Portainer Status"}),te.jsx("p",{className:"block antialiased font-sans text-sm font-light leading-normal text-inherit",children:Bt?"Status wird geprüft…":Tt||(P?"Portainer wird aktuell aktualisiert.":(ft==null?void 0:ft.updateAvailable)===!0?"Es ist ein Update für Portainer verfügbar.":"Portainer ist auf dem aktuellen Stand.")}),Ur&&!Bt&&te.jsxs("p",{className:"mt-1 text-xs text-gray-500 block antialiased font-sans",children:["Stand: ",Ur.toLocaleString("de-DE",{hour:"2-digit",minute:"2-digit",second:"2-digit"})]})]}),te.jsx("div",{className:"flex items-center gap-3",children:te.jsx(De.Button,{onClick:()=>ct({silent:!1}),disabled:Bt||br,className:"w-full",children:"Status aktualisieren"})})]}),te.jsx("div",{className:"flex flex-col gap-4 mt-5 space-y-4 block antialiased font-sans text-sm font-light leading-normal text-inherit",children:!Bt&&!Tt&&ft&&te.jsxs("div",{className:"",children:[te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Installierte Version"}),te.jsx("span",{className:"font-medium",children:ft.currentVersion??"Unbekannt"})]}),te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Neueste Version"}),te.jsx("span",{className:"font-medium",children:ft.latestVersion??"Unbekannt"})]}),te.jsxs("div",{className:"flex items-center justify-between space-y-2",children:[te.jsx("span",{children:"Status"}),te.jsx("span",{className:`rounded-full px-3 py-0.5 text-xs font-semibold ${ft.updateAvailable===!0?Bs.error:ft.updateAvailable===!1?Bs.success:Bs.idle}`,children:ft.updateAvailable===!0?"Update verfügbar":ft.updateAvailable===!1?"Aktuell":"Unbekannt"})]}),ft.edition&&te.jsxs("div",{className:"flex items-center justify-between",children:[te.jsx("span",{className:"text-gray-400",children:"Edition"}),te.jsx("span",{className:"font-medium",children:ft.edition})]}),ft.build&&te.jsxs("div",{className:"flex items-center justify-between",children:[te.jsx("span",{className:"text-gray-400",children:"Build"}),te.jsx("span",{className:"font-medium",children:ft.build})]}),((tn=ft.errors)==null?void 0:tn.latestVersion)&&te.jsxs("div",{className:"rounded-md mt-8 border border-red-500/40 bg-red-900/40 px-3 py-2 text-xs",children:["Neueste Version konnte nicht ermittelt werden: ",ft.errors.latestVersion]}),((mn=ft.errors)==null?void 0:mn.container)&&te.jsxs("div",{className:"rounded-md mt-8 border border-red-500/40 bg-red-900/40 px-3 py-2 text-xs",children:["Container-Details konnten nicht ermittelt werden: ",ft.errors.container]})]})}),te.jsxs("div",{className:"mt-6 grid gap-6 lg:grid-cols-2 xl:grid-cols-3",children:[te.jsxs("div",{className:"rounded-md border border-gray-700/20 p-4",children:[te.jsx("div",{className:"flex item
Line truncated
|
||||
@@ -32,7 +32,7 @@
|
||||
<!-- Nepcha Analytics (nepcha.com) -->
|
||||
<!-- Nepcha is a easy-to-use web analytics. No cookies and fully compliant with GDPR, CCPA and PECR. -->
|
||||
<script defer data-site="YOUR_DOMAIN_HERE" src="https://api.nepcha.com/js/nepcha-analytics.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-0d7bc5f7.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-55cb988b.js"></script>
|
||||
<link rel="stylesheet" href="/assets/index-c9347383.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in new issue
Block a user