johnandersen777.bsky.social/knotless
git that lives in your Atmosphere account
Forked from chadtmiller.com/knotless
0
0
<script lang="ts">
import { LOGIN } from '#lib/login.ts';
import Meta from '#lib/atoms/Meta.svelte';
import ReportList from '#lib/organisms/ReportList.svelte';
import TakedownForm from '#lib/organisms/TakedownForm.svelte';
import UsageDays from '#lib/organisms/UsageDays.svelte';
let { data } = $props();
// What a report's Take down fills in.
let subject = $state('');
</script>
<Meta title="Admin" about="Moderating this appview, and how it is used." />
<div class="section"><h1>Admin</h1></div>
{#if data.admin}
<TakedownForm bind:subject />
{#if data.reports}<ReportList reports={data.reports.reports} pick={(s) => (subject = s)} />{/if}
{#if data.usage}<UsageDays usage={data.usage} />{/if}
{:else if data.actor}
<p class="feed-note">
This page is for this appview's operators, the accounts its KNOTLESS_ADMIN_DIDS names.
</p>
{:else if data.login}
<p class="feed-note">
Log in as one of this appview's operators to moderate it. <button
class="btn"
popovertarget={LOGIN}>Log in</button
>
</p>
{:else}
<p class="feed-note">This server has no logins: its operators moderate it with knotless admin.</p>
{/if}