feat: calendar

This commit is contained in:
Timothy Jaeryang Baek committed 2026-04-19 19:15:05 +09:00
1 parent 5087492e25
commit 8d739e2aba
14 files changed
+2844

No files matched your search

@@ -250,6 +250,38 @@
</a>
{/if}
{#if $user?.role === 'admin' || $user?.permissions?.features?.calendar}
<a
href="/calendar"
draggable="false"
class="flex rounded-xl py-1.5 px-3 w-full hover:bg-gray-50 dark:hover:bg-gray-800 transition cursor-pointer select-none"
on:click={async (e) => {
if (e.metaKey || e.ctrlKey || e.shiftKey || e.button === 1) return;
e.preventDefault();
show = false;
goto('/calendar');
}}
>
<div class="self-center mr-3">
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
stroke-width="1.5"
stroke="currentColor"
class="size-5"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
d="M6.75 3v2.25M17.25 3v2.25M3 18.75V7.5a2.25 2.25 0 0 1 2.25-2.25h13.5A2.25 2.25 0 0 1 21 7.5v11.25m-18 0A2.25 2.25 0 0 0 5.25 21h13.5A2.25 2.25 0 0 0 21 18.75m-18 0v-7.5A2.25 2.25 0 0 1 5.25 9h13.5A2.25 2.25 0 0 1 21 11.25v7.5"
/>
</svg>
</div>
<div class="self-center truncate">{$i18n.t('Calendar')}</div>
</a>
{/if}
{#if role === 'admin'}
<a
href="/playground"