update readme
This commit is contained in:
parent
184a6b6502
commit
54cac427a2
3 changed files with 15 additions and 8 deletions
|
@ -1,5 +1,10 @@
|
|||
# tweaks
|
||||
|
||||
## Features
|
||||
|
||||
- Add difficulty names to the beatmap icons
|
||||
- More coming soon...
|
||||
|
||||
## Install
|
||||
|
||||
No distribution packages yet, please follow the development guide to use for now!
|
||||
|
|
|
@ -34,9 +34,13 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
|||
])
|
||||
beatmapMap.set(JSON.stringify([beatmap.id, beatmap.mode]), beatmap);
|
||||
|
||||
const beatmapPicker = await waitForElementToExist(
|
||||
const beatmapPicker: HTMLDivElement = await waitForElementToExist(
|
||||
".beatmapset-beatmap-picker",
|
||||
);
|
||||
|
||||
// I think this makes it more readable
|
||||
beatmapPicker.style.backdropFilter = "blur(10px)";
|
||||
|
||||
const beatmapPickerChildren: HTMLAnchorElement[] = Array.from(
|
||||
beatmapPicker.children,
|
||||
);
|
||||
|
@ -47,6 +51,7 @@ export async function beatmapPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
|||
const correspondingBeatmap = beatmapMap.get(
|
||||
JSON.stringify([targetBeatmapId, modeString]),
|
||||
);
|
||||
if (!correspondingBeatmap) continue;
|
||||
|
||||
// create the elements and add it to screen
|
||||
const icon = child.children[0];
|
||||
|
|
|
@ -1,8 +1,5 @@
|
|||
export async function userPageHandler(m, path) {
|
||||
console.log("User page");
|
||||
let currentUser = await wait(
|
||||
() => unsafeWindow.currentUser,
|
||||
(c) => !!c,
|
||||
);
|
||||
console.log(currentUser);
|
||||
import type { OsuPath } from "../dom";
|
||||
|
||||
export async function userPageHandler(m: RegExpMatchArray, path: OsuPath) {
|
||||
// Coming soon!
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue