From 0bfc19cb076eb35220683a8e005fdca84f84d485 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Fri, 4 Aug 2023 11:53:59 -0400 Subject: [PATCH] Revert force download through api --- .gitignore | 3 ++ .../src/components/Game/Card/ActionBar.vue | 25 ++++++++++----- .../src/components/Game/ListItem/Item.vue | 25 ++++++++++----- frontend/src/views/Details.vue | 31 +++++++++++++------ frontend/vite.config.js | 8 +++++ 5 files changed, 69 insertions(+), 23 deletions(-) diff --git a/.gitignore b/.gitignore index 6420d6da2..7345ee274 100644 --- a/.gitignore +++ b/.gitignore @@ -46,3 +46,6 @@ romm_mock # testing backend/romm_test/resources backend/romm_test/logs + +# service worker +frontend/dev-dist diff --git a/frontend/src/components/Game/Card/ActionBar.vue b/frontend/src/components/Game/Card/ActionBar.vue index e9f4fc272..1de2da729 100644 --- a/frontend/src/components/Game/Card/ActionBar.vue +++ b/frontend/src/components/Game/Card/ActionBar.vue @@ -15,13 +15,24 @@ const downloadUrl = `${window.location.origin}${props.rom.download_path}`; - + + - + + { - - - + + { }, ], }, + workbox: { + globPatterns: ['**/*.{js,css,html,ico,png,svg}'], + navigateFallbackDenylist: [/^\/assets\/romm\/library/], + }, + devOptions: { + enabled: false, + type: 'module', + }, }), ], define: { "process.env": {} },