feat: release version 1.0.9

This commit is contained in:
2026-08-31 12:33:52 +09:00
parent 2998278353
commit 89169c5c0d
15 changed files with 421 additions and 67 deletions
+43
View File
@@ -0,0 +1,43 @@
<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 CombinationPage from '../combination/+page.svelte';
let clock = createInitialReleaseClock($page.data?.serverNow);
let now = clock.now();
$: activeEvent = activeEventAt(events, now);
onMount(() => {
let mounted = true;
void synchronizeReleaseClock().then((nextClock) => {
if (!mounted) return;
clock = nextClock;
now = clock.now();
});
const timer = window.setInterval(() => now = clock.now(), 1_000);
return () => {
mounted = false;
window.clearInterval(timer);
};
});
</script>
<svelte:head><title>이벤트 Pt 최적화 · 홀로도리 계산기</title></svelte:head>
{#if activeEvent}
<CombinationPage eventMode />
{:else}
<main class="inactive-event">
<h1>진행 중인 이벤트가 없습니다</h1>
<p>포인트 획득 이벤트가 시작되면 이 메뉴와 최적화 기능이 자동으로 활성화됩니다.</p>
</main>
{/if}
<style>
.inactive-event { width: min(var(--page-max-width), calc(100% - var(--page-gutter))); margin: 0 auto; padding: var(--page-content-top) 0 80px; }
h1 { margin: 0; color: #f3f5f8; font-size: var(--page-title-size); letter-spacing: -.045em; }
p { margin: 12px 0 0; color: #929cab; line-height: 1.7; }
</style>