feat: release version 1.0.9
This commit is contained in:
@@ -1,6 +1,28 @@
|
||||
<script lang="ts">
|
||||
import { onMount } from 'svelte';
|
||||
import { page } from '$app/stores';
|
||||
import { events } from '$lib/data/events.ts';
|
||||
import { createInitialReleaseClock, synchronizeReleaseClock } from '$lib/data/release-clock.ts';
|
||||
import { activeEventAt } from '$lib/engine/event-optimization.ts';
|
||||
import '$lib/styles/layout-tokens.css';
|
||||
|
||||
let eventClock = createInitialReleaseClock($page.data?.serverNow);
|
||||
let eventNow = eventClock.now();
|
||||
$: showEventTab = Boolean(activeEventAt(events, eventNow));
|
||||
|
||||
onMount(() => {
|
||||
let mounted = true;
|
||||
void synchronizeReleaseClock().then((clock) => {
|
||||
if (!mounted) return;
|
||||
eventClock = clock;
|
||||
eventNow = eventClock.now();
|
||||
});
|
||||
const timer = window.setInterval(() => eventNow = eventClock.now(), 1_000);
|
||||
return () => {
|
||||
mounted = false;
|
||||
window.clearInterval(timer);
|
||||
};
|
||||
});
|
||||
</script>
|
||||
|
||||
<header class="site-nav">
|
||||
@@ -10,6 +32,7 @@
|
||||
<a href="/cards" aria-current={$page.url.pathname.startsWith('/cards') ? 'page' : undefined}>카드 목록</a>
|
||||
<a href="/analysis" aria-current={$page.url.pathname.startsWith('/analysis') ? 'page' : undefined}>배치 분석</a>
|
||||
<a href="/combination" aria-current={$page.url.pathname.startsWith('/combination') ? 'page' : undefined}>조합 탐색</a>
|
||||
{#if showEventTab}<a href="/event" aria-current={$page.url.pathname.startsWith('/event') ? 'page' : undefined}>이벤트 Pt</a>{/if}
|
||||
<a href="/data" aria-current={$page.url.pathname.startsWith('/data') ? 'page' : undefined}>사용자 데이터</a>
|
||||
<a
|
||||
class="report-link"
|
||||
|
||||
Reference in New Issue
Block a user