mirror of
https://github.com/pvrzz/directify.git
synced 2026-11-29 05:22:24 +00:00
Fully custom titlebar, search status/sort filters, and import by link
- Replace Window Controls Overlay with a fully frameless window and custom minimize/maximize/close buttons, since even the native overlay always paints a flat rect that can't blend into this app's gradient/glass backgrounds. Sidebar and content now reach the true top of the window instead of leaving a reserved gap. - Add ranked-status filter chips (ranked/qualified/loved/pending/wip/ graveyard/approved) and a sort dropdown (favourites, plays, difficulty, newest/oldest) to Find maps, backed by real Favourites/ Playcount fields confirmed present on catboy.best's API. - Add "Import by link": paste an osu! beatmapset URL or bare numeric ID to fetch and install it directly, without a text search.
This commit is contained in:
@@ -48,6 +48,8 @@ export interface BeatmapSet {
|
||||
source: string;
|
||||
/** Present for beatmapsets found on disk; the Songs subfolder name, used for file operations. */
|
||||
folderName?: string;
|
||||
favouriteCount?: number;
|
||||
playCount?: number;
|
||||
}
|
||||
|
||||
/** osu!'s own genre enum (matches the IDs osu!/mirrors report; "any" omitted since it means "no filter"). */
|
||||
@@ -85,6 +87,15 @@ export const LANGUAGES: Record<number, string> = {
|
||||
14: "Other",
|
||||
};
|
||||
|
||||
export type BeatmapSortOption =
|
||||
| "relevance"
|
||||
| "favourites"
|
||||
| "plays"
|
||||
| "difficulty-asc"
|
||||
| "difficulty-desc"
|
||||
| "newest"
|
||||
| "oldest";
|
||||
|
||||
export interface BeatmapSearchQuery {
|
||||
query?: string;
|
||||
mode?: OsuMode;
|
||||
@@ -97,6 +108,7 @@ export interface BeatmapSearchQuery {
|
||||
language?: number;
|
||||
/** Mania key count (4, 7, ...) — matched against difficulty CS. Ignored unless mode is "mania". */
|
||||
keys?: number;
|
||||
sort?: BeatmapSortOption;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user