Merge 8ef27c3a60f7c40766d3df114b6d4ac3548c1405 into d22c9e24f4ca63c8757af0e0d9640f5d0431e815
This commit is contained in:
commit
563afcce79
@ -100,7 +100,6 @@ import {
|
|||||||
ScaleIcon,
|
ScaleIcon,
|
||||||
} from "@modrinth/assets";
|
} from "@modrinth/assets";
|
||||||
import { defineMessages, useVIntl } from "@vintl/vintl";
|
import { defineMessages, useVIntl } from "@vintl/vintl";
|
||||||
import { useLocalStorage } from "@vueuse/core";
|
|
||||||
import ConfettiExplosion from "vue-confetti-explosion";
|
import ConfettiExplosion from "vue-confetti-explosion";
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
import ModerationQueueCard from "~/components/ui/moderation/ModerationQueueCard.vue";
|
import ModerationQueueCard from "~/components/ui/moderation/ModerationQueueCard.vue";
|
||||||
@ -215,7 +214,7 @@ watch(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const currentFilterType = useLocalStorage("moderation-current-filter-type", () => "All projects");
|
const currentFilterType = ref("All projects");
|
||||||
const filterTypes: readonly string[] = readonly([
|
const filterTypes: readonly string[] = readonly([
|
||||||
"All projects",
|
"All projects",
|
||||||
"Modpacks",
|
"Modpacks",
|
||||||
@ -226,7 +225,7 @@ const filterTypes: readonly string[] = readonly([
|
|||||||
"Shaders",
|
"Shaders",
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const currentSortType = useLocalStorage("moderation-current-sort-type", () => "Oldest");
|
const currentSortType = ref("Oldest");
|
||||||
const sortTypes: readonly string[] = readonly(["Oldest", "Newest"]);
|
const sortTypes: readonly string[] = readonly(["Oldest", "Newest"]);
|
||||||
|
|
||||||
const currentPage = ref(1);
|
const currentPage = ref(1);
|
||||||
|
|||||||
@ -72,7 +72,6 @@
|
|||||||
import { DropdownSelect, Button, Pagination } from "@modrinth/ui";
|
import { DropdownSelect, Button, Pagination } from "@modrinth/ui";
|
||||||
import { XIcon, SearchIcon, SortAscIcon, SortDescIcon, FilterIcon } from "@modrinth/assets";
|
import { XIcon, SearchIcon, SortAscIcon, SortDescIcon, FilterIcon } from "@modrinth/assets";
|
||||||
import { defineMessages, useVIntl } from "@vintl/vintl";
|
import { defineMessages, useVIntl } from "@vintl/vintl";
|
||||||
import { useLocalStorage } from "@vueuse/core";
|
|
||||||
import type { Report } from "@modrinth/utils";
|
import type { Report } from "@modrinth/utils";
|
||||||
import Fuse from "fuse.js";
|
import Fuse from "fuse.js";
|
||||||
import type { ExtendedReport } from "@modrinth/moderation";
|
import type { ExtendedReport } from "@modrinth/moderation";
|
||||||
@ -170,10 +169,10 @@ watch(
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
const currentFilterType = useLocalStorage("moderation-reports-filter-type", () => "All");
|
const currentFilterType = ref("All");
|
||||||
const filterTypes: readonly string[] = readonly(["All", "Unread", "Read"]);
|
const filterTypes: readonly string[] = readonly(["All", "Unread", "Read"]);
|
||||||
|
|
||||||
const currentSortType = useLocalStorage("moderation-reports-sort-type", () => "Oldest");
|
const currentSortType = ref("Oldest");
|
||||||
const sortTypes: readonly string[] = readonly(["Oldest", "Newest"]);
|
const sortTypes: readonly string[] = readonly(["Oldest", "Newest"]);
|
||||||
|
|
||||||
const currentPage = ref(1);
|
const currentPage = ref(1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user