Loheide-eu-mitarbeiterplatt.../public/build/assets/NewsStats-C1jehxUD.js
Friederich Loheide 03e31f42b5
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m38s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 8m0s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 11m51s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 12m15s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 13m27s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 13m42s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 16m0s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 15m20s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 56s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m14s
Noch schneller (0.46.0)
- Erscheinungsbild: große Fotos (Anmeldung, Titelbild) beim Speichern als WebP
  ≤ 2400 px; Migration verkleinert vorhandene einmal
- Vite: Grundgerüst und UI-Bausteine als gemeinsame Dateien (Startseite 34 statt
  58 Skripte)
- Plugin-Oberflächen: Kopie nach public/ erneuert sich bei neuem Build
  (Fingerabdruck von dist/inhaus.json), auch ohne neue Version

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-28 17:00:29 +00:00

1 line
No EOL
1.2 KiB
JavaScript

import{Et as e,O as t,T as n,k as r,kt as i,q as a,w as o,wt as s,x as c}from"./framework-CFqPLBV8.js";import{Q as l,dt as u}from"./app-Bi2ZjL_5.js";var d=[`aria-label`,`title`],f={key:0,class:`inline-flex items-center gap-1`},p={key:1,class:`inline-flex items-center gap-1`},m={__name:`NewsStats`,props:{post:{type:Object,required:!0},light:{type:Boolean,default:!1}},setup(m){let h=m,g=c(()=>typeof h.post.likes==`number`),_=c(()=>typeof h.post.comments==`number`),v=c(()=>[g.value?`${h.post.likes} ${h.post.likes===1?`Herz`:`Herzen`}`:null,_.value?`${h.post.comments} ${h.post.comments===1?`Kommentar`:`Kommentare`}`:null].filter(Boolean).join(`, `));return(c,h)=>g.value||_.value?(a(),n(`span`,{key:0,class:e([`inline-flex items-center gap-3 text-xs tabular-nums`,m.light?`text-white/85`:`text-muted-foreground`]),role:`img`,"aria-label":v.value,title:v.value},[g.value?(a(),n(`span`,f,[r(s(u),{class:e([`size-3.5`,m.post.liked?m.light?`fill-current`:`fill-current text-brand-text`:``]),"aria-hidden":`true`},null,8,[`class`]),t(i(m.post.likes),1)])):o(``,!0),_.value?(a(),n(`span`,p,[r(s(l),{class:`size-3.5`,"aria-hidden":`true`}),t(i(m.post.comments),1)])):o(``,!0)],10,d)):o(``,!0)}};export{m as t};