zenno: resolve lint errors

This commit is contained in:
2026-03-31 23:31:11 -04:00
parent 34140c0bba
commit ccef87f0a3
4 changed files with 22 additions and 17 deletions

View File

@@ -32,7 +32,7 @@
{#if !required} {#if !required}
<option value="0" class={optionClass}></option> <option value="0" class={optionClass}></option>
{/if} {/if}
{#each character[region] as c} {#each character[region] as c (c.chara_id)}
<option value={c.chara_id} class={optionClass}>{c.name}</option> <option value={c.chara_id} class={optionClass}>{c.name}</option>
{/each} {/each}
</select> </select>

View File

@@ -1,6 +1,7 @@
<script lang="ts"> <script lang="ts">
import './layout.css'; import './layout.css';
import favicon from '$lib/assets/favicon.png'; import favicon from '$lib/assets/favicon.png';
import { resolve } from '$app/paths';
let { children } = $props(); let { children } = $props();
</script> </script>
@@ -13,14 +14,14 @@
<div class="flex h-screen flex-col"> <div class="flex h-screen flex-col">
<nav class="mb-4 flex min-w-full bg-mist-300 p-4 shadow-md dark:bg-mist-900"> <nav class="mb-4 flex min-w-full bg-mist-300 p-4 shadow-md dark:bg-mist-900">
<span class="hidden flex-1 md:inline"> <span class="hidden flex-1 md:inline">
<a href="/" class="text-4xl">Zenno Rob Roy</a> <a href={resolve('/')} class="text-4xl">Zenno Rob Roy</a>
</span> </span>
<span class="flex-1 text-center"> <span class="flex-1 text-center">
<a href="/" class="mx-8 my-1 block font-semibold md:hidden">Zenno Rob Roy</a> <a href={resolve('/')} class="mx-8 my-1 block font-semibold md:hidden">Zenno Rob Roy</a>
<a href="/inherit" class="mx-8 my-1 inline-block">Inheritance Chance</a> <a href={resolve('/inherit')} class="mx-8 my-1 inline-block">Inheritance Chance</a>
<a href="/spark" class="mx-8 my-1 inline-block">Spark Chance</a> <a href={resolve('/spark')} class="mx-8 my-1 inline-block">Spark Chance</a>
<a href="/vet" class="mx-8 my-1 inline-block">My Veterans</a> <a href={resolve('/vet')} class="mx-8 my-1 inline-block">My Veterans</a>
<a href="/convo" class="mx-8 my-1 inline-block">Lobby Conversations</a> <a href={resolve('/convo')} class="mx-8 my-1 inline-block">Lobby Conversations</a>
</span> </span>
</nav> </nav>
<div class="mx-4 grow lg:m-auto lg:max-w-7xl lg:min-w-7xl"> <div class="mx-4 grow lg:m-auto lg:max-w-7xl lg:min-w-7xl">

View File

@@ -1,27 +1,31 @@
<script lang="ts">
import { resolve } from '$app/paths';
</script>
<h1 class="m-8 text-center text-7xl">Zenno Rob Roy</h1> <h1 class="m-8 text-center text-7xl">Zenno Rob Roy</h1>
<p>She's read all about Umamusume, and she's always happy to share her knowledge and give recommendations!</p> <p>She's read all about Umamusume, and she's always happy to share her knowledge and give recommendations!</p>
<h2 class="mt-8 mb-4 text-4xl">Tools</h2> <h2 class="mt-8 mb-4 text-4xl">Tools</h2>
<ul class="list-disc pl-4"> <ul class="list-disc pl-4">
<li> <li>
<a href="/inherit">Inheritance Chance</a><i>Not yet implemented</i> — Given a legacy, calculate the probability distribution <a href={resolve('/inherit')}>Inheritance Chance</a><i>Not yet implemented</i> — Given a legacy, calculate the probability distribution
of activation counts for each spark. of activation counts for each spark.
</li> </li>
<li> <li>
<a href="/spark">Spark Chance</a><i>Not yet implemented</i> — Given a legacy, calculate the chance of generating each spark if <a href={resolve('/spark')}>Spark Chance</a><i>Not yet implemented</i> — Given a legacy, calculate the chance of generating each
you fulfill the conditions to do so, and the distribution of total spark counts. spark if you fulfill the conditions to do so, and the distribution of total spark counts.
</li> </li>
<li> <li>
<a href="/vet">My Veterans</a><i>Not yet implemented</i> — Set up and track your veterans for Zenno Rob Roy's inspiration and <a href={resolve('/vet')}>My Veterans</a><i>Not yet implemented</i> — Set up and track your veterans for Zenno Rob Roy's inspiration
spark calculators. and spark calculators.
</li> </li>
<li> <li>
<a href="/convo">Lobby Conversations</a> — Check participants in lobby conversations and get recommendations on unlocking them quickly. <a href={resolve('/convo')}>Lobby Conversations</a> — Check participants in lobby conversations and get recommendations on unlocking
them quickly.
</li> </li>
<li> <li>
<a href="https://discord.com/oauth2/authorize?client_id=1461931240264568994" target="_blank" rel="noopener noreferrer" <a href="https://discord.com/oauth2/authorize?client_id=1461931240264568994" target="_blank" rel="noopener noreferrer"
>Discord Bot</a >Discord Bot</a
> > — Skill search by name or unique owner within Discord. Install to a server or user.
— Skill search by name or unique owner within Discord. Install to a server or user.
</li> </li>
</ul> </ul>
<h2 class="mt-8 mb-4 text-4xl">About</h2> <h2 class="mt-8 mb-4 text-4xl">About</h2>

View File

@@ -30,7 +30,7 @@
<div class="m-4 flex-1 md:mt-3"> <div class="m-4 flex-1 md:mt-3">
<label for="convo" class="hidden md:inline">Conversation</label> <label for="convo" class="hidden md:inline">Conversation</label>
<select id="convo" bind:value={convo} class="w-full"> <select id="convo" bind:value={convo} class="w-full">
{#each options as opt} {#each options as opt (opt.number)}
<option value={opt.number}>Slice of Life {opt.number}</option> <option value={opt.number}>Slice of Life {opt.number}</option>
{/each} {/each}
</select> </select>
@@ -57,7 +57,7 @@
<span>Other characters who appear here most often:</span> <span>Other characters who appear here most often:</span>
</div> </div>
<div class="mt-4 grid text-center shadow-sm transition-shadow ease-in hover:shadow-md hover:ease-out md:grid-cols-4"> <div class="mt-4 grid text-center shadow-sm transition-shadow ease-in hover:shadow-md hover:ease-out md:grid-cols-4">
{#each suggested as s} {#each suggested as s (s.chara_id)}
<span>{charaNames.get(s.chara_id)?.en}: {s.count}&#xd7;</span> <span>{charaNames.get(s.chara_id)?.en}: {s.count}&#xd7;</span>
{/each} {/each}
</div> </div>