feat(web): add bgm viewer navigation

This commit is contained in:
2026-08-09 20:02:03 +08:00
parent 64c8bb60b3
commit 4e18ab5bc8
12 changed files with 403 additions and 66 deletions
+7
View File
@@ -0,0 +1,7 @@
import packages from 'virtual:bgm/packages';
import type { SerializedPackage } from '@tts/bgm';
/** Look up a bgm package by id from the `virtual:bgm/packages` module. */
export function findPackage(id: string | undefined): SerializedPackage | undefined {
return packages.find((p) => p.meta.id === id);
}