add bookmarking clients, fix sorting issues, add sorting by country and only showing specific countries.

This commit is contained in:
KingKDot
2026-03-17 00:11:25 -05:00
parent 0cdc5efefb
commit 50bc381943
9 changed files with 561 additions and 9 deletions
+8
View File
@@ -10,6 +10,7 @@ import {
requestPreview,
requestThumbnail,
} from "./data.js";
import { initCountryPicker } from "./country-picker.js";
const grid = document.getElementById("grid");
const totalPill = document.getElementById("total-pill");
@@ -445,6 +446,13 @@ filterOsSelect?.addEventListener("change", (e) => {
loadWithOptions({ force: true });
});
initCountryPicker((code) => {
state.filterCountry = code;
state.page = 1;
state.lastDigest = "";
loadWithOptions({ force: true });
});
showOfflineToggle?.addEventListener("change", (e) => {
if (e.target.checked) {
state.filterStatus = lastNonOnlineStatus || "all";