PageSourceSearch

https://www.aiara.ch/build/assets/Index-CR4khBZt.js

js aiara.ch collected 2026-09-24 09:06:55 UTC 6,734 bytes, 1 lines download raw bytes

1import{c as N,w as u,a as e,t,u as s,f as g,l as f,e as h,o,b as r,d as m,F as v,r as w,n as x,y as T,g as $,q as D,z as S,h as k,p as F}from"./app-BkdOeDGm.js";import{C as V}from"./ClientLayout-BSiMFsFY.js";import{u as q}from"./useTranslations-DvNzXvsd.js";/* empty css            */import"./LanguageSwitcher-D3MSN3u1.js";import"./_plugin-vue_export-helper-DlAUqK2U.js";const A={class:"flex items-center justify-between mb-6"},M={class:"text-2xl font-bold text-gray-900"},P={key:0,class:"mb-4 rounded-md bg-green-50 p-4"},E={class:"text-sm text-green-700"},H={key:1,class:"bg-white rounded-lg shadow p-8 text-center"},I={class:"text-gray-500 mb-4"},R={key:2,class:"bg-white rounded-lg shadow"},W={class:"min-w-full divide-y divide-gray-200"},G={class:"bg-gray-50 [&>tr>th:first-child]:rounded-tl-lg [&>tr>th:last-child]:rounded-tr-lg"},J={class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},K={class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},O={class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},Q={class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},U={class:"px-6 py-3 text-right text-xs font-medium text-gray-500 uppercase tracking-wider"},X={class:"bg-white divide-y divide-gray-200"},Y={class:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900"},Z={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ee={class:"px-6 py-4 whitespace-nowrap"},te={class:"px-6 py-4 whitespace-nowrap text-sm"},se=["title"],ae={class:"w-20 h-2 bg-gray-200 rounded-full overflow-hidden"},le={key:0,class:"absolute left-0 top-full mt-1 z-10 hidden group-hover:block bg-gray-900 text-white text-xs rounded-md px-3 py-2 shadow-lg whitespace-nowrap"},ne={class:"space-y-0.5"},oe={class:"px-6 py-4 whitespace-nowrap text-sm text-gray-500"},ie={class:"px-6 py-4 whitespace-nowrap text-right text-sm space-x-3"},re=["onClick"],de={class:"bg-white rounded-xl shadow-xl max-w-md w-full mx-4 p-6"},ce={class:"flex items-center gap-3 mb-4"},ue={class:"text-lg font-semibold text-gray-900"},he={class:"text-sm text-gray-600 mb-2"},me={class:"text-sm text-gray-500 mb-6"},xe={class:"flex justify-end gap-3"},pe=["disabled"],we={__name:"Index",props:{domains:Array},setup(_){const{t:l}=q(),b=D(()=>S().props.flash),d=k(null),c=k(!1),C=()=>{c.value=!0,F.delete(`/domains/${d.value.slug}`,{onFinish:()=>{c.value=!1,d.value=null}})},B={banner_configured:"Banner konfigurieren",questionnaire_completed:"Fragebogen ausfüllen",recent_scan:"Cookie-Scan starten (innerhalb 30 Tage)",legal_texts_generated:"Rechtstexte generieren",snippet_detected:"Snippet auf Website einbauen"},y=n=>B[n]||n,L=n=>n>=80?"bg-green-500":n>=50?"bg-amber-500":"bg-red-500",j=n=>n>=80?"text-green-700":n>=50?"text-amber-700":"text-red-700",z=n=>n.missing.length===0?"Alles erledigt":"Noch offen: "+n.missing.map(y).join(", ");return(n,i)=>(o(),N(V,null,{default:u(()=>[e("div",A,[e("h1",M,t(s(l)("domains.title")),1),g(s(f),{href:"/domains/create",class:"rounded-md bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500"},{default:u(()=>[h(t(s(l)("domains.add")),1)]),_:1})]),b.value.success?(o(),r("div",P,[e("p",E,t(b.value.success),1)])):m("",!0),_.domains.length===0?(o(),r("div",H,[e("p",I,t(s(l)("domains.empty")),1),g(s(f),{href:"/domains/create",class:"text-blue-600 hover:text-blue-500 font-medium text-sm"},{default:u(()=>[h(t(s(l)("domains.add_first")),1)]),_:1})])):(o(),r("div",R,[e("table",W,[e("thead",G,[e("tr",null,[e("th",J,t(s(l)("domains.table.hostname")),1),e("th",K,t(s(l)("domains.table.display_name")),1),e("th",O,t(s(l)("domains.table.status")),1),i[2]||(i[2]=e("th",{class:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider"},"Bereitschaft",-1)),e("th",Q,t(s(l)("domains.table.created")),1),e("th",U,t(s(l)("domains.table.actions")),1)])]),e("tbody",X,[(o(!0),r(v,null,w(_.domains,a=>(o(),r("tr",{key:a.id},[e("td",Y,[h(t(a.hostname)+" ",1),e("span",{class:x([a.plan_tier==="pro"?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-600","ml-2 inline-flex rounded-full px-2 py-0.5 text-xs font-medium"])},t(a.plan_tier==="pro"?"Pro":"Basic"),3)]),e("td",Z,t(a.display_name),1),e("td",ee,[e("span",{class:x([a.is_active?"bg-green-100 text-green-800":"bg-gray-100 text-gray-800","inline-flex rounded-full px-2 text-xs font-semibold leading-5"])},t(a.is_active?s(l)("common.status.active"):s(l)("common.status.inactive")),3)]),e("td",te,[a.health?(o(),r("div",{key:0,class:"flex items-center gap-2 group relative",title:a.health.missing.length===0?z(a.health):null},[e("div",ae,[e("div",{class:x([L(a.health.score),"h-full transition-all"]),style:T({width:`${a.health.score}%`})},null,6)]),e("span",{class:x(["text-xs font-medium",j(a.health.score)])},t(a.health.score)+"% ",3),a.health.missing.length>0?(o(),r("div",le,[i[3]||(i[3]=e("p",{class:"font-semibold mb-1"},"Noch offen:",-1)),e("ul",ne,[(o(!0),r(v,null,w(a.health.missing,p=>(o(),r("li",{key:p},"• "+t(y(p)),1))),128))])])):m("",!0)],8,se)):m("",!0)]),e("td",oe,t(new Date(a.created_at).toLocaleDateString("de-CH")),1),e("td",ie,[g(s(f),{href:`/domains/${a.slug}`,class:"text-blue-600 hover:text-blue-500 font-medium"},{default:u(()=>[h(t(s(l)("common.view")),1)]),_:1},8,["href"]),e("button",{onClick:p=>d.value=a,class:"text-red-600 hover:text-red-500 font-medium"},t(s(l)("common.delete")),9,re)])]))),128))])])])),d.value?(o(),r("div",{key:3,class:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",onClick:i[1]||(i[1]=$(a=>d.value=null,["self"]))},[e("div",de,[e("div",ce,[i[4]||(i[4]=e("div",{class:"flex-shrink-0 w-10 h-10 rounded-full bg-red-100 flex items-center justify-center"},[e("svg",{class:"w-5 h-5 text-red-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},[e("path",{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})])],-1)),e("h3",ue,t(s(l)("domains.delete.title")),1)]),e("p",he,t(s(l)("domains.delete.confirm_question",{hostname:d.value.hostname})),1),e("p",me,t(s(l)("domains.delete.warning")),1),e("div",xe,[e("button",{onClick:i[0]||(i[0]=a=>d.value=null),class:"px-4 py-2 text-sm font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50"},t(s(l)("common.cancel")),1),e("button",{onClick:C,disabled:c.value,class:"px-4 py-2 text-sm font-medium text-white bg-red-600 rounded-lg hover:bg-red-500 disabled:opacity-50"},t(c.value?s(l)("domains.delete.deleting"):s(l)("domains.delete.confirm")),9,pe)])])])):m("",!0)]),_:1}))}};export{we as default};

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