chore: 前端支持取消视频来源筛选(点击来源两次),调整 API TOKEN 填写位置 (#264)

This commit is contained in:
ᴀᴍᴛᴏᴀᴇʀ
2025-02-19 02:18:20 +08:00
committed by GitHub
parent 9c5f3452e9
commit bc27778366
2 changed files with 79 additions and 60 deletions

View File

@@ -0,0 +1,15 @@
<script lang="ts">
import { Input } from '$lib/components/ui/input';
let apiToken: string = localStorage.getItem('auth_token') || '';
function updateToken() {
localStorage.setItem('auth_token', apiToken);
}
</script>
<header class="flex items-center justify-between bg-gray-100 p-4">
<h1 class="text-xl font-bold">bili-sync 管理页</h1>
<div>
<Input placeholder="API Token" bind:value={apiToken} on:change={updateToken} />
</div>
</header>
<slot />