Vorschau zeigt immer das ganze Bild, eingepasst mit Rand (1.0.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
14aaa16b30
commit
dce39774a2
13 changed files with 17 additions and 17 deletions
|
|
@ -4,7 +4,7 @@ Verleihsystem für das Mitarbeiterportal **Inhaus** – gebaut für die Bilder d
|
||||||
aber für alles nutzbar, was verliehen wird (Bezeichnungen im Backend einstellbar).
|
aber für alles nutzbar, was verliehen wird (Bezeichnungen im Backend einstellbar).
|
||||||
|
|
||||||
- **Übersicht** `/verleih`: alle Bilder mit Status (verfügbar / verliehen) und aktuellem Standort,
|
- **Übersicht** `/verleih`: alle Bilder mit Status (verfügbar / verliehen) und aktuellem Standort,
|
||||||
verfügbare zuerst, Filter und Suche. Kunstwerke werden nie beschnitten.
|
verfügbare zuerst, Filter und Suche. Die Vorschau füllt die Kachel, die Detailseite zeigt das ganze Bild.
|
||||||
- **Anfragen im Portal** statt E-Mail-Links: „Bild anfragen“ mit Wunschort, optionalem Zeitraum und
|
- **Anfragen im Portal** statt E-Mail-Links: „Bild anfragen“ mit Wunschort, optionalem Zeitraum und
|
||||||
Nachricht. Das Team bekommt eine Benachrichtigung im Portal und eine E-Mail (Antworten gehen direkt
|
Nachricht. Das Team bekommt eine Benachrichtigung im Portal und eine E-Mail (Antworten gehen direkt
|
||||||
an die anfragende Person).
|
an die anfragende Person).
|
||||||
|
|
|
||||||
2
dist/assets/style-DpnhOE_3.css
vendored
2
dist/assets/style-DpnhOE_3.css
vendored
File diff suppressed because one or more lines are too long
2
dist/assets/style-HFzXm6mv.css
vendored
Normal file
2
dist/assets/style-HFzXm6mv.css
vendored
Normal file
File diff suppressed because one or more lines are too long
2
dist/editorial/EditorialRequests.js
vendored
2
dist/editorial/EditorialRequests.js
vendored
|
|
@ -1 +1 @@
|
||||||
import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p,formatRelative as m}from"@inhaus/ui";var h={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},g=[`src`],_={class:`ih:min-w-0 ih:flex-1`},v={class:`ih:truncate ih:text-xs ih:text-muted-foreground`},y={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},b={key:1,class:`ih:text-sm ih:text-muted-foreground`},x={__name:`EditorialRequests`,props:{pending:{type:Array,required:!0}},setup(x){return(S,C)=>(s(),t(u(p),{title:`Verleih – offene Anfragen`,"action-label":`Zu den Anfragen`,"action-href":`/verleih/anfragen`},{default:d(()=>[x.pending.length?(s(),r(`ul`,h,[(s(!0),r(e,null,c(x.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.item?.thumb_url?(s(),r(`img`,{key:0,src:e.item.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:bg-muted ih:object-contain`},null,8,g)):n(``,!0),i(`div`,_,[o(u(f),{href:e.item?.url??`/verleih/anfragen`,class:`ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.item?.title),1)]),_:2},1032,[`href`]),i(`p`,v,l(e.user?.name)+` · nach `+l(e.location),1)]),i(`span`,y,l(u(m)(e.created_at)),1)]))),128))])):(s(),r(`p`,b,`Keine offenen Anfragen.`))]),_:1}))}};export{x as default};
|
import{Fragment as e,createBlock as t,createCommentVNode as n,createElementBlock as r,createElementVNode as i,createTextVNode as a,createVNode as o,openBlock as s,renderList as c,toDisplayString as l,unref as u,withCtx as d}from"vue";import{Link as f}from"@inertiajs/vue3";import{Panel as p,formatRelative as m}from"@inhaus/ui";var h={key:0,class:`ih:-mx-5 ih:divide-y ih:border-t`},g=[`src`],_={class:`ih:min-w-0 ih:flex-1`},v={class:`ih:truncate ih:text-xs ih:text-muted-foreground`},y={class:`ih:shrink-0 ih:text-xs ih:text-muted-foreground`},b={key:1,class:`ih:text-sm ih:text-muted-foreground`},x={__name:`EditorialRequests`,props:{pending:{type:Array,required:!0}},setup(x){return(S,C)=>(s(),t(u(p),{title:`Verleih – offene Anfragen`,"action-label":`Zu den Anfragen`,"action-href":`/verleih/anfragen`},{default:d(()=>[x.pending.length?(s(),r(`ul`,h,[(s(!0),r(e,null,c(x.pending,e=>(s(),r(`li`,{key:e.id,class:`ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5`},[e.item?.thumb_url?(s(),r(`img`,{key:0,src:e.item.thumb_url,alt:``,class:`ih:size-10 ih:rounded ih:bg-muted ih:object-contain ih:p-0.5`},null,8,g)):n(``,!0),i(`div`,_,[o(u(f),{href:e.item?.url??`/verleih/anfragen`,class:`ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline`},{default:d(()=>[a(l(e.item?.title),1)]),_:2},1032,[`href`]),i(`p`,v,l(e.user?.name)+` · nach `+l(e.location),1)]),i(`span`,y,l(u(m)(e.created_at)),1)]))),128))])):(s(),r(`p`,b,`Keine offenen Anfragen.`))]),_:1}))}};export{x as default};
|
||||||
2
dist/inhaus.json
vendored
2
dist/inhaus.json
vendored
|
|
@ -7,6 +7,6 @@
|
||||||
"pages/Show": "pages/Show.js"
|
"pages/Show": "pages/Show.js"
|
||||||
},
|
},
|
||||||
"css": [
|
"css": [
|
||||||
"assets/style-DpnhOE_3.css"
|
"assets/style-HFzXm6mv.css"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
2
dist/pages/Index.js
vendored
2
dist/pages/Index.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/Requests.js
vendored
2
dist/pages/Requests.js
vendored
File diff suppressed because one or more lines are too long
2
dist/pages/Show.js
vendored
2
dist/pages/Show.js
vendored
File diff suppressed because one or more lines are too long
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"slug": "verleih",
|
"slug": "verleih",
|
||||||
"name": "Verleih",
|
"name": "Verleih",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Verleihsystem, z. B. für die Bilder des Künstlerteams: Übersicht mit Status und aktuellem Standort, Anfragen im Portal mit Zusage oder Absage, Import aus dem bisherigen WordPress-Verleihsystem.",
|
"description": "Verleihsystem, z. B. für die Bilder des Künstlerteams: Übersicht mit Status und aktuellem Standort, Anfragen im Portal mit Zusage oder Absage, Import aus dem bisherigen WordPress-Verleihsystem.",
|
||||||
"author": "Loheide",
|
"author": "Loheide",
|
||||||
"namespace": "Inhaus\\Plugins\\Verleih\\",
|
"namespace": "Inhaus\\Plugins\\Verleih\\",
|
||||||
|
|
|
||||||
|
|
@ -10,10 +10,10 @@ defineProps({
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<article class="ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md">
|
<article class="ih:group ih:flex ih:flex-col ih:overflow-hidden ih:rounded-lg ih:border ih:bg-card ih:shadow-xs ih:transition-shadow ih:hover:shadow-md">
|
||||||
<!-- Kunstwerke nicht beschneiden: ganzes Bild auf ruhigem Grund -->
|
<!-- Immer das ganze Bild: in die Fläche eingepasst, mit Rand – nie ein Ausschnitt -->
|
||||||
<Link :href="item.url" prefetch class="ih:relative ih:grid ih:aspect-[4/3] ih:place-items-center ih:overflow-hidden ih:bg-muted ih:p-3">
|
<Link :href="item.url" prefetch class="ih:relative ih:block ih:aspect-[4/3] ih:overflow-hidden ih:bg-muted ih:p-3 ih:pt-9">
|
||||||
<img v-if="item.thumb_url" :src="item.thumb_url" :alt="item.title" loading="lazy" class="ih:max-h-full ih:max-w-full ih:object-contain ih:shadow-sm ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]" />
|
<img v-if="item.thumb_url" :src="item.thumb_url" :alt="item.title" loading="lazy" class="ih:size-full ih:object-contain ih:transition-transform ih:duration-300 ih:group-hover:scale-[1.02]" />
|
||||||
<ImageOff v-else class="ih:size-8 ih:text-muted-foreground" :stroke-width="1.5" />
|
<span v-else class="ih:grid ih:size-full ih:place-items-center"><ImageOff class="ih:size-8 ih:text-muted-foreground" :stroke-width="1.5" /></span>
|
||||||
<StatusBadge :lent="item.lent" class="ih:absolute ih:top-2 ih:left-2" />
|
<StatusBadge :lent="item.lent" class="ih:absolute ih:top-2 ih:left-2" />
|
||||||
</Link>
|
</Link>
|
||||||
<div class="ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3">
|
<div class="ih:flex ih:flex-1 ih:flex-col ih:gap-1 ih:p-3">
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ defineProps({ pending: { type: Array, required: true } });
|
||||||
<Panel title="Verleih – offene Anfragen" action-label="Zu den Anfragen" action-href="/verleih/anfragen">
|
<Panel title="Verleih – offene Anfragen" action-label="Zu den Anfragen" action-href="/verleih/anfragen">
|
||||||
<ul v-if="pending.length" class="ih:-mx-5 ih:divide-y ih:border-t">
|
<ul v-if="pending.length" class="ih:-mx-5 ih:divide-y ih:border-t">
|
||||||
<li v-for="r in pending" :key="r.id" class="ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5">
|
<li v-for="r in pending" :key="r.id" class="ih:flex ih:items-center ih:gap-3 ih:px-5 ih:py-2.5">
|
||||||
<img v-if="r.item?.thumb_url" :src="r.item.thumb_url" alt="" class="ih:size-10 ih:rounded ih:bg-muted ih:object-contain" />
|
<img v-if="r.item?.thumb_url" :src="r.item.thumb_url" alt="" class="ih:size-10 ih:rounded ih:bg-muted ih:object-contain ih:p-0.5" />
|
||||||
<div class="ih:min-w-0 ih:flex-1">
|
<div class="ih:min-w-0 ih:flex-1">
|
||||||
<Link :href="r.item?.url ?? '/verleih/anfragen'" class="ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline">{{ r.item?.title }}</Link>
|
<Link :href="r.item?.url ?? '/verleih/anfragen'" class="ih:block ih:truncate ih:text-sm ih:font-medium ih:hover:underline">{{ r.item?.title }}</Link>
|
||||||
<p class="ih:truncate ih:text-xs ih:text-muted-foreground">{{ r.user?.name }} · nach {{ r.location }}</p>
|
<p class="ih:truncate ih:text-xs ih:text-muted-foreground">{{ r.user?.name }} · nach {{ r.location }}</p>
|
||||||
|
|
|
||||||
|
|
@ -58,8 +58,8 @@ const period = (r) => [r.from ? `ab ${formatDate(r.from)}` : null, r.until ? `bi
|
||||||
<h2 id="offen" class="ih:mb-3 ih:text-sm ih:font-semibold">Offen <span class="ih:text-muted-foreground">({{ pending.length }})</span></h2>
|
<h2 id="offen" class="ih:mb-3 ih:text-sm ih:font-semibold">Offen <span class="ih:text-muted-foreground">({{ pending.length }})</span></h2>
|
||||||
<div v-if="pending.length" class="ih:grid ih:gap-3">
|
<div v-if="pending.length" class="ih:grid ih:gap-3">
|
||||||
<article v-for="request in pending" :key="request.id" class="ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:sm:grid-cols-[7rem_minmax(0,1fr)_auto] ih:sm:items-center">
|
<article v-for="request in pending" :key="request.id" class="ih:grid ih:gap-4 ih:rounded-lg ih:border ih:bg-card ih:p-4 ih:sm:grid-cols-[7rem_minmax(0,1fr)_auto] ih:sm:items-center">
|
||||||
<Link :href="request.item?.url ?? '#'" class="ih:grid ih:aspect-[4/3] ih:w-28 ih:place-items-center ih:overflow-hidden ih:rounded-md ih:bg-muted">
|
<Link :href="request.item?.url ?? '#'" class="ih:grid ih:aspect-[4/3] ih:w-28 ih:place-items-center ih:overflow-hidden ih:rounded-md ih:bg-muted ih:p-1.5">
|
||||||
<img v-if="request.item?.thumb_url" :src="request.item.thumb_url" :alt="request.item.title" class="ih:max-h-full ih:max-w-full ih:object-contain" />
|
<img v-if="request.item?.thumb_url" :src="request.item.thumb_url" :alt="request.item.title" class="ih:size-full ih:object-contain" />
|
||||||
<ImageOff v-else class="ih:size-6 ih:text-muted-foreground" />
|
<ImageOff v-else class="ih:size-6 ih:text-muted-foreground" />
|
||||||
</Link>
|
</Link>
|
||||||
<div class="ih:grid ih:min-w-0 ih:gap-1.5">
|
<div class="ih:grid ih:min-w-0 ih:gap-1.5">
|
||||||
|
|
|
||||||
|
|
@ -142,7 +142,7 @@ const period = (from, until) =>
|
||||||
|
|
||||||
<!-- Vergrößerung -->
|
<!-- Vergrößerung -->
|
||||||
<div v-if="zoom" class="ih:fixed ih:inset-0 ih:z-50 ih:grid ih:place-items-center ih:bg-black/85 ih:p-4" role="dialog" aria-modal="true" :aria-label="item.title" @click="zoom = false">
|
<div v-if="zoom" class="ih:fixed ih:inset-0 ih:z-50 ih:grid ih:place-items-center ih:bg-black/85 ih:p-4" role="dialog" aria-modal="true" :aria-label="item.title" @click="zoom = false">
|
||||||
<img :src="item.image_url" :alt="item.title" class="ih:max-h-full ih:max-w-full ih:object-contain" />
|
<img :src="item.image_url" :alt="item.title" class="ih:size-full ih:object-contain" />
|
||||||
<button type="button" class="ih:absolute ih:top-4 ih:right-4 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-white/15 ih:text-white" aria-label="Schließen" @click.stop="zoom = false"><X /></button>
|
<button type="button" class="ih:absolute ih:top-4 ih:right-4 ih:grid ih:size-10 ih:place-items-center ih:rounded-full ih:bg-white/15 ih:text-white" aria-label="Schließen" @click.stop="zoom = false"><X /></button>
|
||||||
</div>
|
</div>
|
||||||
</AppLayout>
|
</AppLayout>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue