Loheide-eu-mitarbeiterplatt.../public/build/assets/Index-BGhpfcUh.js
Friederich Loheide c275db4dce
Some checks failed
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 11m34s
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 12m8s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 15m14s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 15m47s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m48s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 14m15s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 16m38s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 17m2s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 1m16s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m53s
Menüleiste am Handy, Updater in zwei Schritten, Absturzerkennung ohne Merkdateien (0.62.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-07 17:03:05 +00:00

1 line
No EOL
2.7 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{At as e,P as t,W as n}from"./ui-DY0WbyhT.js";import{At as r,C as i,Dt as a,E as o,O as s,S as c,T as l,Tt as u,Y as d,i as f,k as p,o as m,ot as h,q as g,rt as _,v,w as y}from"./framework-Cy4cevSy.js";import{t as b}from"./plus-BkVfuiNS.js";import{E as x,F as S,d as C,f as w,p as T,u as E}from"./app-V0HOzKwI.js";var D={class:`grid gap-6 lg:grid-cols-3`},O={key:0,class:`-mx-5 -mb-5 divide-y border-t`},k={class:`min-w-0 flex-1`},A={class:`block font-medium`},j={class:`block text-xs text-muted-foreground`},M={key:0,class:`shrink-0 text-xs text-muted-foreground`},N={key:1,class:`shrink-0 rounded-md bg-brand px-2.5 py-1 text-xs font-medium text-brand-foreground`},P={key:0,class:`-mx-5 -mb-5 divide-y border-t`},F={class:`block text-sm font-medium`},I={class:`block text-xs text-muted-foreground`},L={key:1,class:`text-sm text-muted-foreground`},R={__name:`Index`,props:{open:{type:Array,required:!0},closed:{type:Array,required:!0},canManage:{type:Boolean,default:!1}},setup(R){let z=m();return _(()=>z.props.flash.status,e=>e&&n.success(e),{immediate:!0}),(n,m)=>(g(),i(w,{title:`Umfragen`},{default:h(()=>[p(T,{title:`Umfragen`,description:`Ihre Meinung ist gefragt – Abstimmungen und Umfragen im Haus.`},o({_:2},[R.canManage?{name:`actions`,fn:h(()=>[p(u(t),{"as-child":``},{default:h(()=>[p(u(f),{href:`/redaktion/umfragen/neu`},{default:h(()=>[p(u(b)),m[0]||=s(` Neue Umfrage`,-1)]),_:1})]),_:1})]),key:`0`}:void 0]),1024),c(`div`,D,[p(C,{title:`Laufende Umfragen`,class:`lg:col-span-2`},{default:h(()=>[R.open.length?(g(),l(`ul`,O,[(g(!0),l(v,null,d(R.open,t=>(g(),l(`li`,{key:t.id},[p(u(f),{href:t.url,class:`flex items-center gap-4 px-5 py-4 hover:bg-accent/40`},{default:h(()=>[c(`span`,{class:a([`grid size-10 shrink-0 place-items-center rounded-md`,t.voted?`bg-muted text-muted-foreground`:`bg-brand-soft text-brand-text`])},[t.voted?(g(),i(u(e),{key:0,class:`size-5`})):(g(),i(u(S),{key:1,class:`size-5`}))],2),c(`span`,k,[c(`span`,A,r(t.title),1),c(`span`,j,[s(r(t.questions_count)+` `+r(t.questions_count===1?`Frage`:`Fragen`),1),t.closes_at?(g(),l(v,{key:0},[s(` · bis `+r(u(x)(t.closes_at)),1)],64)):y(``,!0)])]),t.voted?(g(),l(`span`,M,`Teilgenommen`)):(g(),l(`span`,N,`Mitmachen`))]),_:2},1032,[`href`])]))),128))])):(g(),i(E,{key:1,icon:u(S),title:`Gerade läuft keine Umfrage`,class:`py-8`},null,8,[`icon`]))]),_:1}),p(C,{title:`Beendet`,class:`content-start`},{default:h(()=>[R.closed.length?(g(),l(`ul`,P,[(g(!0),l(v,null,d(R.closed,e=>(g(),l(`li`,{key:e.id},[p(u(f),{href:e.url,class:`block px-5 py-3 hover:bg-accent/40`},{default:h(()=>[c(`span`,F,r(e.title),1),c(`span`,I,`beendet am `+r(u(x)(e.closes_at)),1)]),_:2},1032,[`href`])]))),128))])):(g(),l(`p`,L,`Noch keine beendeten Umfragen.`))]),_:1})])]),_:1}))}};export{R as default};