Schnellzugriffe mit Logo, Kategorien und Sichtbar für (0.51.0)
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m7s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m30s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 17m13s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 17m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m52s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m29s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m23s
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 7m7s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m30s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 8m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 8m21s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 17m13s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 17m12s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 9m52s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 9m29s
CI / Bekannte Sicherheitslücken in Paketen (pull_request) Successful in 47s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m23s
Untertitel, Logo, Kategorie, Rollen und Anheften je Eintrag; Knopf „Anwendungen“ in der Kopfzeile mit allen sichtbaren Einträgen. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
25fe5e8c37
commit
a618927a52
152 changed files with 653 additions and 379 deletions
|
|
@ -2,13 +2,17 @@
|
|||
import { onMounted, ref } from 'vue';
|
||||
import { Link } from '@inertiajs/vue3';
|
||||
import { useEventListener, useResizeObserver } from '@vueuse/core';
|
||||
import { ChevronLeft, ChevronRight } from '@lucide/vue';
|
||||
import AppIcon from '@/components/AppIcon.vue';
|
||||
import { ChevronLeft, ChevronRight, LayoutGrid } from '@lucide/vue';
|
||||
import AppMark from '@/components/apps/AppMark.vue';
|
||||
import { appsOpen } from '@/lib/apps';
|
||||
|
||||
defineProps({
|
||||
const props = defineProps({
|
||||
links: { type: Array, required: true },
|
||||
total: { type: Number, default: 0 },
|
||||
});
|
||||
|
||||
const more = () => Math.max(0, props.total - props.links.length);
|
||||
|
||||
const track = ref(null);
|
||||
const canScrollLeft = ref(false);
|
||||
const canScrollRight = ref(false);
|
||||
|
|
@ -70,9 +74,21 @@ useEventListener(track, 'scroll', update, { passive: true });
|
|||
:rel="link.new_tab ? 'noopener' : undefined"
|
||||
class="flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md bg-muted px-2 py-4 text-center transition-colors hover:bg-brand-soft @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3"
|
||||
>
|
||||
<AppIcon :name="link.icon || 'link'" class="size-6 text-brand-text" :stroke-width="1.6" />
|
||||
<span class="text-xs leading-tight font-medium break-words hyphens-auto">{{ link.label }}</span>
|
||||
<AppMark :app="link" class="size-10" />
|
||||
<span class="grid gap-0.5">
|
||||
<span class="text-xs leading-tight font-medium break-words hyphens-auto">{{ link.label }}</span>
|
||||
<span v-if="link.subtitle" class="text-[11px] leading-tight text-muted-foreground">{{ link.subtitle }}</span>
|
||||
</span>
|
||||
</component>
|
||||
<button
|
||||
v-if="more()"
|
||||
type="button"
|
||||
class="flex w-[116px] shrink-0 snap-start flex-col items-center gap-2.5 rounded-md border border-dashed px-2 py-4 text-center transition-colors hover:bg-accent @max-md:w-auto @max-md:gap-2 @max-md:px-1.5 @max-md:py-3"
|
||||
@click.stop="appsOpen = true"
|
||||
>
|
||||
<span class="grid size-10 place-items-center rounded-lg bg-muted text-foreground/70"><LayoutGrid class="size-5" /></span>
|
||||
<span class="text-xs leading-tight font-medium">Alle Anwendungen<span class="block text-[11px] font-normal text-muted-foreground">{{ more() }} weitere</span></span>
|
||||
</button>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue