{#if isInitializing}
加载中...
{:else if !isAuthenticated}
My Score
Sign in to your account
Username
Password
{#if error}
{error}
{/if}
Sign in
{:else}
{#each categories as category}
currentCategory = category.id} > {category.label}
{/each}
showCreateModal = true} > 添加新作品
{#if loading}
{:else}
{#each mediaList as media}
{/each}
Showing {(currentPage - 1) * pageSize + 1} to {Math.min(currentPage * pageSize, totalItems)} of {totalItems} items
currentPage = currentPage - 1} > Previous
= totalItems} onclick={() => currentPage = currentPage + 1} > Next
{/if}
{/if}
showCreateModal = false} submitMedia={handleCreate} mode="add" itemType={currentCategory} media={null} />
editingMedia = null} submitMedia={handleEdit} mode="edit" itemType="" media={editingMedia} />
deletingMedia = null} />