mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-20 03:31:13 +10:00
* feat: database redist support * feat: rearchitecture of database schemas, migration reset, and #180 * feat: import redists * fix: giantbomb logging bug * feat: partial user platform support + statusMessage -> message * feat: add user platform filters to store view * fix: sanitize svg uploads ... copilot suggested this I feel dirty. * feat: beginnings of platform & redist management * feat: add server side redist patching * fix: update drop-base commit * feat: import of custom platforms & file extensions * fix: redelete platform * fix: remove platform * feat: uninstall commands, new R UI * checkpoint: before migrating to nuxt v4 * update to nuxt 4 * fix: fixes for Nuxt v4 update * fix: remaining type issues * feat: initial feedback to import other kinds of versions * working commit * fix: lint * feat: redist import
53 lines
1.5 KiB
Vue
53 lines
1.5 KiB
Vue
<template>
|
|
<PanelWidget class="flex-col gap-y-2">
|
|
<div class="border-b border-zinc-700 pb-3 p-2">
|
|
<div
|
|
class="-ml-4 -mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap"
|
|
>
|
|
<div class="ml-4 mt-2">
|
|
<h3 class="text-base font-semibold text-zinc-100 text-sm">
|
|
{{ $t("account.notifications.unread") }}
|
|
</h3>
|
|
</div>
|
|
<div class="ml-4 mt-2 shrink-0">
|
|
<NuxtLink
|
|
to="/account/notifications"
|
|
type="button"
|
|
class="text-sm text-zinc-400"
|
|
>
|
|
<i18n-t
|
|
keypath="account.notifications.all"
|
|
tag="span"
|
|
scope="global"
|
|
>
|
|
<template #arrow>
|
|
<span aria-hidden="true">{{ $t("chars.arrow") }}</span>
|
|
</template>
|
|
</i18n-t>
|
|
</NuxtLink>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex flex-col gap-y-2 max-h-[300px] overflow-y-scroll">
|
|
<NotificationItem
|
|
v-for="notification in props.notifications"
|
|
:key="notification.id"
|
|
:notification="notification"
|
|
/>
|
|
</div>
|
|
<div
|
|
v-if="props.notifications.length == 0"
|
|
class="text-sm text-zinc-400 p-3 text-center w-full"
|
|
>
|
|
{{ $t("account.notifications.none") }}
|
|
</div>
|
|
</PanelWidget>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import type { NotificationModel } from "~~/prisma/client/models";
|
|
|
|
const props = defineProps<{ notifications: Array<NotificationModel> }>();
|
|
</script>
|