[+] Appbar button for import
This commit is contained in:
@@ -1,15 +1,16 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import AppBar from "../../../components/appbar/AppBar.svelte";
|
import { goto } from "$app/navigation"
|
||||||
import ImageListItem from "../../../components/listitem/ImageListItem.svelte";
|
import AppBar from "../../../components/appbar/AppBar.svelte"
|
||||||
|
import ImageListItem from "../../../components/listitem/ImageListItem.svelte"
|
||||||
|
import MenuItem from "../../../components/material3/MenuItem.svelte"
|
||||||
import type { PageProps } from "./$types"
|
import type { PageProps } from "./$types"
|
||||||
|
|
||||||
let { data }: PageProps = $props()
|
let { data }: PageProps = $props()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<AppBar title={data.isMine ? '我的歌单' : '推荐歌单'} right={[
|
<AppBar title={data.isMine ? '我的歌单' : '推荐歌单'}>
|
||||||
// TODO
|
<MenuItem icon="i-material-symbols:download" onclick={() => goto("/import/netease")}>从网易云导入</MenuItem>
|
||||||
{icon: "i-material-symbols:more-vert", onclick: () => alert('More clicked')}
|
</AppBar>
|
||||||
]} />
|
|
||||||
|
|
||||||
<div class="vbox p-content gap-12px">
|
<div class="vbox p-content gap-12px">
|
||||||
{#each data.playlists as pl}
|
{#each data.playlists as pl}
|
||||||
|
|||||||
Reference in New Issue
Block a user