diff --git a/entrypoint.sh b/entrypoint.sh
index 95f6a53fc..0e63fdc2f 100644
--- a/entrypoint.sh
+++ b/entrypoint.sh
@@ -11,6 +11,10 @@ ln -sf /app/romm/assets /app/frontend/assets/romm/assets
# Define a signal handler to propagate termination signals
function handle_termination() {
echo "Terminating child processes..."
+ # Cleanup symlinks
+ rm -f /app/frontend/assets/romm/resources
+ rm -f /app/frontend/assets/romm/assets
+ # Kill all background jobs
# trunk-ignore(shellcheck)
kill -TERM $(jobs -p) 2>/dev/null
}
diff --git a/frontend/src/components/Gallery/AppBar/Base.vue b/frontend/src/components/Gallery/AppBar/Base.vue
index 51e1dd605..8179dadfb 100644
--- a/frontend/src/components/Gallery/AppBar/Base.vue
+++ b/frontend/src/components/Gallery/AppBar/Base.vue
@@ -1,13 +1,10 @@
@@ -40,7 +34,6 @@ const { calculatedWidth } = calculateMainLayoutWidth();
-
@@ -53,7 +46,7 @@ const { calculatedWidth } = calculateMainLayoutWidth();
diff --git a/frontend/src/components/Gallery/AppBar/Collection/Base.vue b/frontend/src/components/Gallery/AppBar/Collection/Base.vue
index 26b0f81bb..d62f401ed 100644
--- a/frontend/src/components/Gallery/AppBar/Collection/Base.vue
+++ b/frontend/src/components/Gallery/AppBar/Collection/Base.vue
@@ -5,16 +5,17 @@ import RAvatar from "@/components/common/Collection/RAvatar.vue";
import storeNavigation from "@/stores/navigation";
import storeRoms from "@/stores/roms";
import { storeToRefs } from "pinia";
-import { computed } from "vue";
+import { useDisplay } from "vuetify";
// Props
+const { xs } = useDisplay();
const navigationStore = storeNavigation();
const romsStore = storeRoms();
const { currentCollection } = storeToRefs(romsStore);
-
+
-
+
-import { ref, inject } from "vue";
-import storeRoms from "@/stores/roms";
-import storeGalleryFilter from "@/stores/galleryFilter";
-import { storeToRefs } from "pinia";
-import type { Events } from "@/types/emitter";
-import type { Emitter } from "mitt";
-
-const romsStore = storeRoms();
-const { fetchingRoms, initialSearch } = storeToRefs(romsStore);
-const emitter = inject>("emitter");
-const galleryFilterStore = storeGalleryFilter();
-const { searchTerm } = storeToRefs(galleryFilterStore);
-
-function fetchRoms() {
- if (searchTerm.value == null) return;
-
- const inputElement = document.getElementById("search-text-field");
- inputElement?.blur();
- initialSearch.value = true;
- romsStore.fetchRoms(galleryFilterStore).catch((error) => {
- emitter?.emit("snackbarShow", {
- msg: `Couldn't fetch roms: ${error}`,
- icon: "mdi-close-circle",
- color: "red",
- timeout: 4000,
- });
- });
-
- galleryFilterStore.activeFilterDrawer = false;
-}
-
-
-
-
-
diff --git a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue
index 65a5e97a6..18b4f061b 100644
--- a/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue
+++ b/frontend/src/components/Gallery/AppBar/Search/SearchTextField.vue
@@ -1,13 +1,12 @@
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue
index a05e17fad..a0de619e5 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterFavouritesBtn.vue
@@ -13,7 +13,7 @@ const { filterFavourites } = storeToRefs(galleryFilterStore);
const emitter = inject>("emitter");
function setFavourites() {
galleryFilterStore.switchFilterFavourites();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue
index cddb34fcc..538c52b2b 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMatchedBtn.vue
@@ -13,7 +13,7 @@ const { filterMatched } = storeToRefs(galleryFilterStore);
const emitter = inject>("emitter");
function setUnmatched() {
galleryFilterStore.switchFilterMatched();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue
index 3918aafeb..6c171967a 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterMissingBtn.vue
@@ -13,7 +13,7 @@ const { filterMissing } = storeToRefs(galleryFilterStore);
const emitter = inject>("emitter");
function setMissing() {
galleryFilterStore.switchFilterMissing();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue
index 78d11fd12..660329eb5 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterPlayablesBtn.vue
@@ -18,7 +18,7 @@ const emitter = inject>("emitter");
// Functions
function setPlayables() {
galleryFilterStore.switchFilterPlayables();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue
index 40dc408b9..c5f5b7433 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterRaBtn.vue
@@ -18,7 +18,7 @@ const emitter = inject>("emitter");
// Functions
function setRA() {
galleryFilterStore.switchFilterRA();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue
index ba2c39571..570ebc56d 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterUnmatchedBtn.vue
@@ -13,7 +13,7 @@ const { filterUnmatched } = storeToRefs(galleryFilterStore);
const emitter = inject>("emitter");
function setUnmatched() {
galleryFilterStore.switchFilterUnmatched();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue
index 488168e37..7cd5d4823 100644
--- a/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue
+++ b/frontend/src/components/Gallery/AppBar/common/FilterDrawer/FilterVerifiedBtn.vue
@@ -13,7 +13,7 @@ const { filterVerified } = storeToRefs(galleryFilterStore);
const emitter = inject>("emitter");
function setVerified() {
galleryFilterStore.switchFilterVerified();
- emitter?.emit("filter", null);
+ emitter?.emit("filterRoms", null);
}
diff --git a/frontend/src/components/Gallery/AppBar/common/FilterTextField.vue b/frontend/src/components/Gallery/AppBar/common/FilterTextField.vue
deleted file mode 100644
index 995626bd7..000000000
--- a/frontend/src/components/Gallery/AppBar/common/FilterTextField.vue
+++ /dev/null
@@ -1,67 +0,0 @@
-
-
-
-
-
diff --git a/frontend/src/components/common/EmptyStates/EmptyGame.vue b/frontend/src/components/common/EmptyStates/EmptyGame.vue
index 5abd3cad6..3df4e6e39 100644
--- a/frontend/src/components/common/EmptyStates/EmptyGame.vue
+++ b/frontend/src/components/common/EmptyStates/EmptyGame.vue
@@ -1,6 +1,6 @@
{
allRoms.value.length === 0) &&
collection
) {
- resetGallery();
+ if (currentCollection.value) resetGallery();
romsStore.setCurrentCollection(collection);
document.title = `${collection.name}`;
- await fetchRoms();
+ emitter?.emit("filterRoms", null);
}
window.addEventListener("scroll", onScroll);
@@ -225,10 +225,10 @@ onMounted(async () => {
allRoms.value.length === 0) &&
collection
) {
- resetGallery();
+ if (currentVirtualCollection.value) resetGallery();
romsStore.setCurrentVirtualCollection(collection);
document.title = `${collection.name}`;
- await fetchRoms();
+ emitter?.emit("filterRoms", null);
}
window.addEventListener("scroll", onScroll);
@@ -363,7 +363,7 @@ onBeforeUnmount(() => {
-
+
diff --git a/frontend/src/views/Gallery/Platform.vue b/frontend/src/views/Gallery/Platform.vue
index d7a21a4e6..e1b7ded2c 100644
--- a/frontend/src/views/Gallery/Platform.vue
+++ b/frontend/src/views/Gallery/Platform.vue
@@ -192,10 +192,10 @@ onMounted(async () => {
allRoms.value.length === 0) &&
platform
) {
- resetGallery();
+ if (currentPlatform.value) resetGallery();
romsStore.setCurrentPlatform(platform);
document.title = `${platform.display_name}`;
- await fetchRoms();
+ emitter?.emit("filterRoms", null);
}
window.addEventListener("scroll", onScroll);
@@ -232,7 +232,7 @@ onBeforeRouteUpdate(async (to, from) => {
) {
romsStore.setCurrentPlatform(platform);
document.title = `${platform.display_name}`;
- await fetchRoms();
+ emitter?.emit("filterRoms", null);
} else {
noPlatformError.value = true;
}
@@ -311,7 +311,7 @@ onBeforeUnmount(() => {
-
+
diff --git a/frontend/src/views/Gallery/Search.vue b/frontend/src/views/Gallery/Search.vue
index 7fc1f4e12..28ffaecb0 100644
--- a/frontend/src/views/Gallery/Search.vue
+++ b/frontend/src/views/Gallery/Search.vue
@@ -144,6 +144,7 @@ function onScroll() {
}
onMounted(async () => {
+ emitter?.emit("filterRoms", null);
scrolledToTop.value = true;
window.addEventListener("scroll", onScroll);
});