diff --git a/frontend/src/views/Gallery/Base.vue b/frontend/src/views/Gallery/Base.vue index 8bf457ee7..5717370f0 100644 --- a/frontend/src/views/Gallery/Base.vue +++ b/frontend/src/views/Gallery/Base.vue @@ -7,6 +7,7 @@ import { views, normalizeString } from "@/utils/utils.js"; import storeGalleryFilter from "@/stores/galleryFilter.js"; import storeGalleryView from "@/stores/galleryView.js"; import storeScanning from "@/stores/scanning.js"; +import { VDataTable } from "vuetify/labs/VDataTable"; import FilterBar from "@/components/GalleryAppBar/FilterBar.vue"; import GalleryViewBtn from "@/components/GalleryAppBar/GalleryViewBtn.vue"; import GameCard from "@/components/Game/Card/Base.vue"; @@ -17,6 +18,65 @@ import EditRomDialog from "@/components/Dialog/Rom/EditRom.vue"; import DeleteRomDialog from "@/components/Dialog/Rom/DeleteRom.vue"; import LoadingDialog from "@/components/Dialog/Loading.vue"; +import { downloadRomApi } from "@/services/api.js"; +import useDownloadStore from "@/stores/download.js"; +import AdminMenu from "@/components/AdminMenu/Base.vue"; +const location = window.location.origin; +const downloadStore = useDownloadStore(); +const saveFiles = ref(false); +const romsPerPage = ref(5); +const romsPerPageOptions = [ + { value: 5, title: "5" }, + { value: 10, title: "10" }, + { value: 25, title: "25" }, + { value: -1, title: "$vuetify.dataFooter.itemsPerPageAll" }, +]; +const romsHeaders = [ + { + title: "", + align: "start", + sortable: false, + key: "path_cover_s", + }, + { + title: "Name", + align: "start", + sortable: true, + key: "r_name", + }, + { + title: "File", + align: "start", + sortable: true, + key: "file_name", + }, + { + title: "Platform", + align: "start", + sortable: true, + key: "p_name", + }, + { + title: "Size", + align: "start", + sortable: true, + key: "file_size", + }, + { + title: "Region", + align: "start", + sortable: true, + key: "region", + }, + { + title: "Revision", + align: "start", + sortable: true, + key: "revision", + }, + { align: "end", key: "actions", sortable: false }, +]; + // Props const route = useRoute(); const roms = ref([]); @@ -183,11 +243,7 @@ onBeforeRouteUpdate(async (to, _) => { @@ -238,9 +354,9 @@ onBeforeRouteUpdate(async (to, _) => { diff --git a/frontend/src/views/Settings/General/Users.vue b/frontend/src/views/Settings/General/Users.vue index 1d9d935e8..95b0e1856 100644 --- a/frontend/src/views/Settings/General/Users.vue +++ b/frontend/src/views/Settings/General/Users.vue @@ -130,7 +130,7 @@ const usersPerPageOptions = [ const userSearch = ref("");