{ menuOpen = true }}>
{#each charas as chara}
{ openedData = chara }}>
{chara.name}
{chara.desc}
{#each chara.tags as tag, i} {#if i < 4}
{tag}
{:else if i === 4}
...
{/if} {/each}
{/each}
{#if openedData}
{ openedData = null }}>
{openedData.name}
{openedData.desc}
{ const conf = await alertConfirm('Report this character?') if(conf){ const report = await alertInput('Write a report text that would be sent to the admin') const da = await fetch(hubURL + '/hub/report', { method: "POST", body: JSON.stringify({ id: openedData.id, report: report }) }) alertNormal(await da.text()) } }}>
{ downloadRisuHub(openedData.id) openedData = null }}>
{/if} {#if menuOpen}
{ menuOpen = false }}>
Menu
{menuOpen = false}}>
{ menuOpen = false const id = await alertInput('Import ID') downloadRisuHub(id) }}>Import Character from ID
{/if}