diff --git a/frontend/src/components/Dashboard/Recent.vue b/frontend/src/components/Dashboard/Recent.vue
index 5431c3e46..fea28751f 100644
--- a/frontend/src/components/Dashboard/Recent.vue
+++ b/frontend/src/components/Dashboard/Recent.vue
@@ -1,12 +1,19 @@
-
+
();
/>
-
+
diff --git a/frontend/src/components/Gallery/AppBar/Base.vue b/frontend/src/components/Gallery/AppBar/Base.vue
index 54bd2e4fb..68e546033 100644
--- a/frontend/src/components/Gallery/AppBar/Base.vue
+++ b/frontend/src/components/Gallery/AppBar/Base.vue
@@ -21,7 +21,7 @@ const auth = storeAuth();
-
+
+ >
+ >
+ >
+ >
+ >
+
+
diff --git a/frontend/src/components/Gallery/EmptyPlatform.vue b/frontend/src/components/Gallery/EmptyPlatform.vue
new file mode 100644
index 000000000..43268a035
--- /dev/null
+++ b/frontend/src/components/Gallery/EmptyPlatform.vue
@@ -0,0 +1,8 @@
+
+
+
diff --git a/frontend/src/components/Gallery/FabBar/Base.vue b/frontend/src/components/Gallery/FabBar/Base.vue
new file mode 100644
index 000000000..63a5bb650
--- /dev/null
+++ b/frontend/src/components/Gallery/FabBar/Base.vue
@@ -0,0 +1,81 @@
+
+
+
+
+
+
+
+ mdi-chevron-up
+
+
+
+
+ {{ selectedRoms.length }}
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/components/Gallery/FabMenu/Base.vue b/frontend/src/components/Gallery/FabBar/FabMenu.vue
similarity index 92%
rename from frontend/src/components/Gallery/FabMenu/Base.vue
rename to frontend/src/components/Gallery/FabBar/FabMenu.vue
index d0b3975ce..ab30b53de 100644
--- a/frontend/src/components/Gallery/FabMenu/Base.vue
+++ b/frontend/src/components/Gallery/FabBar/FabMenu.vue
@@ -7,7 +7,7 @@ import storeRoms from "@/stores/roms";
import storeScanning from "@/stores/scanning";
import type { Events } from "@/types/emitter";
import type { Emitter } from "mitt";
-import { computed, inject, ref } from "vue";
+import { inject } from "vue";
import { useRoute } from "vue-router";
// Event listeners bus
@@ -61,7 +61,7 @@ function onDownload() {
text="Reset selection"
location="top"
>
-
+
-
+
-
+
-
+
-
+
-
\ No newline at end of file
+
diff --git a/frontend/src/components/Game/Card/ActionBar.vue b/frontend/src/components/Game/Card/ActionBar.vue
index ea8a373cd..ab6cadb06 100644
--- a/frontend/src/components/Game/Card/ActionBar.vue
+++ b/frontend/src/components/Game/Card/ActionBar.vue
@@ -35,7 +35,7 @@ const downloadStore = storeDownload();
/>
-
+
-import storeDownload from "@/stores/download";
-import storeRoms, { type SimpleRom } from "@/stores/roms.js";
import ActionBar from "@/components/Game/Card/ActionBar.vue";
-import { storeToRefs } from "pinia";
-import { onMounted, onUnmounted, ref } from "vue";
+import storeDownload from "@/stores/download";
import storeGalleryView from "@/stores/galleryView";
+import storeRoms, { type SimpleRom } from "@/stores/roms.js";
+import { storeToRefs } from "pinia";
+import { onMounted, ref } from "vue";
import { useTheme } from "vuetify";
// Props
const props = withDefaults(
defineProps<{
rom: SimpleRom;
- index?: number | null;
transformScale?: boolean;
titleOnHover?: boolean;
titleOnFooter?: boolean;
showActionBar?: boolean;
- detailsOnClick?: boolean;
withBorder?: boolean;
src?: string;
}>(),
{
- index: null,
transformScale: false,
titleOnHover: false,
titleOnFooter: false,
showActionBar: false,
- detailsOnClick: true,
withBorder: false,
src: "",
}
);
-const emit = defineEmits(["selectRom"]);
+const emit = defineEmits(["click", "touchstart", "touchend"]);
+const handleClick = (event: MouseEvent) => {
+ emit("click", { event: event, rom: props.rom });
+};
+const handleTouchStart = (event: TouchEvent) => {
+ emit("touchstart", { event: event, rom: props.rom });
+};
+const handleTouchEnd = (event: TouchEvent) => {
+ emit("touchend", { event: event, rom: props.rom });
+};
const romsStore = storeRoms();
const downloadStore = storeDownload();
const { selectedRoms } = storeToRefs(romsStore);
const card = ref();
-let timeout: ReturnType;
+
const theme = useTheme();
const galleryViewStore = storeGalleryView();
// Functions
-function selectRom(event: MouseEvent) {
- if (!selectedRoms.value.includes(props.rom)) {
- romsStore.addToSelection(props.rom);
- } else {
- romsStore.removeFromSelection(props.rom);
- }
- emit("selectRom", {
- event,
- selected: !selectedRoms.value.includes(props.rom),
- });
-}
-
-function onNavigate(event: MouseEvent) {
- if (
- event.ctrlKey ||
- event.shiftKey ||
- romsStore.selecting ||
- romsStore.selectedRoms.length > 0
- ) {
- event.preventDefault();
- event.stopPropagation();
- emit("selectRom", event);
- }
-}
-
-function onTouchStart(event: TouchEvent) {
+onMounted(() => {
card.value.$el.addEventListener("contextmenu", (event: Event) => {
event.preventDefault();
});
- timeout = setTimeout(() => {
- emit("selectRom", event);
- }, 500);
-}
-
-function onTouchEnd() {
- clearTimeout(timeout);
-}
-
-function onScroll() {
- clearTimeout(timeout);
-}
-
-onMounted(() => {
- window.addEventListener("scroll", onScroll);
-});
-
-onUnmounted(() => {
- window.removeEventListener("scroll", onScroll);
});
@@ -110,80 +71,68 @@ onUnmounted(() => {
:indeterminate="true"
absolute
/>
-
-
-
-
-
-
-
- {{ rom.name }}
-
-
-
+
+
+
+
+
+
+ {{ rom.name }}
+
+
+
-
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
@@ -223,4 +172,10 @@ onUnmounted(() => {
max-height: 0; /* Set max-height to 0 when entering or leaving */
overflow: hidden;
}
+.v-img {
+ user-select: none; /* Prevents text selection */
+ -webkit-user-select: none; /* Safari */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* Internet Explorer/Edge */
+}
diff --git a/frontend/src/components/Game/Card/Sources.vue b/frontend/src/components/Game/Card/Sources.vue
index e0310baf8..c06427368 100644
--- a/frontend/src/components/Game/Card/Sources.vue
+++ b/frontend/src/components/Game/Card/Sources.vue
@@ -12,7 +12,7 @@ defineProps<{ rom: SearchRomSchema }>();
transition="fade-transition"
text="IGDB matched"
open-delay="500"
- >
+ >
@@ -22,7 +22,7 @@ defineProps<{ rom: SearchRomSchema }>();
transition="fade-transition"
text="Mobygames matched"
open-delay="500"
- >
+ >
{
v-model="romsStore._selectedIDs"
v-model:page="page"
>
-
+
-
+
{{ item.name }}
-
+
{{ item.file_name }}
-
+
{{ formatBytes(item.file_size_bytes) }}
-
+
{{ regionToEmoji(region) }}
-
+
{{ languageToEmoji(language) }}
-
+
{
mdi-play
-
+
{
-
+
diff --git a/frontend/src/components/Game/Details/ActionBar.vue b/frontend/src/components/Game/Details/ActionBar.vue
index 7402b8f27..5dd0c49c0 100644
--- a/frontend/src/components/Game/Details/ActionBar.vue
+++ b/frontend/src/components/Game/Details/ActionBar.vue
@@ -78,7 +78,7 @@ async function copyDownloadLink(rom: DetailedRom) {
location="bottom"
:disabled="emulationSupported"
>
-
+
-
+
();
id="background-header"
lazy
>
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
-
+
{{ snackbarStatus.msg }}
-
+
diff --git a/frontend/src/components/Platform/PlatformIcon.vue b/frontend/src/components/Platform/PlatformIcon.vue
index 74fc8b54c..366133b29 100644
--- a/frontend/src/components/Platform/PlatformIcon.vue
+++ b/frontend/src/components/Platform/PlatformIcon.vue
@@ -4,7 +4,7 @@ const props = defineProps<{ slug: string }>();
diff --git a/frontend/src/components/Platform/PlatformListItem.vue b/frontend/src/components/Platform/PlatformListItem.vue
index a4d4b5c23..4357ac82e 100644
--- a/frontend/src/components/Platform/PlatformListItem.vue
+++ b/frontend/src/components/Platform/PlatformListItem.vue
@@ -14,7 +14,7 @@ defineProps<{ platform: Platform; rail: boolean }>();
class="bg-terciary"
>
{{ platform.name }}
-
+
();
transition="fade-transition"
text="Not found"
open-delay="500"
- >
+ >
();
>
-
+
{{ platform.rom_count }}
diff --git a/frontend/src/components/Settings/Config/PlatformBindingCard.vue b/frontend/src/components/Settings/Config/PlatformBindingCard.vue
index 6be665d21..aad7428c7 100644
--- a/frontend/src/components/Settings/Config/PlatformBindingCard.vue
+++ b/frontend/src/components/Settings/Config/PlatformBindingCard.vue
@@ -47,14 +47,14 @@ const editable = ref(false);
:title="slug"
>
-
+
{{ fsSlug }}
-
+
-
+
{{ fsSlug }}
-
+
({
current: JSON.parse(localStorage.getItem("currentView") ?? "0") as number,
+ scrolledToTop: false
}),
actions: {
- set(view: number) {
+ setView(view: number) {
this.current = view;
localStorage.setItem("currentView", this.current.toString());
},
next() {
if (this.current == 2) {
- this.set(0);
+ this.setView(0);
} else {
- this.set(this.current + 1);
+ this.setView(this.current + 1);
}
},
},
diff --git a/frontend/src/types/emitter.d.ts b/frontend/src/types/emitter.d.ts
index e7d070926..0c049aca2 100644
--- a/frontend/src/types/emitter.d.ts
+++ b/frontend/src/types/emitter.d.ts
@@ -71,5 +71,4 @@ export type Events = {
updateDataTablePages: null;
sortBarShow: null;
romUpdated: DetailedRom;
- selectRom: SimpleRom;
};
diff --git a/frontend/src/views/Gallery.vue b/frontend/src/views/Gallery.vue
index cd18ea2e5..31a8d1e57 100644
--- a/frontend/src/views/Gallery.vue
+++ b/frontend/src/views/Gallery.vue
@@ -1,6 +1,6 @@
@@ -106,9 +105,9 @@ watch(metadataOptions, (newOptions) => {
hide-details
chips
>
-
+
-
+
@@ -139,7 +138,7 @@ watch(metadataOptions, (newOptions) => {
hide-details
chips
>
-
+
{
v-model="scanType"
:items="scanOptions"
>
-
+
{
:loading="scanning"
>
Scan
-
+
{
v-model:page="page"
:sort-by="[{ key: 'username', order: 'asc' }]"
>
-
+
+
{{ formatTimestamp(item.last_active) }}
-
+
{
hide-details
/>
-
+
{
>
-
+