From 94eb1e4283a1bc28b4316208ab4166a420f72ba7 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sun, 1 Mar 2026 18:07:35 +0000 Subject: [PATCH] Refactor app navigation and enhance background handling in various views - Added error handling for router navigation to prevent unhandled promise rejections. - Improved background image management in Dashboard.vue to dynamically set images based on route. - Introduced timers for managing loading states and cleanup on component unmount in Apps.vue, Marketplace.vue, and other views. - Updated app detail navigation to ensure smoother transitions and error handling. - Enhanced clipboard copy functionality in Settings.vue with improved user feedback. --- neode-ui/src/views/AppDetails.vue | 4 +- neode-ui/src/views/Apps.vue | 33 ++- neode-ui/src/views/Dashboard.vue | 260 ++++++------------- neode-ui/src/views/Login.vue | 27 +- neode-ui/src/views/Marketplace.vue | 248 ++++++------------ neode-ui/src/views/MarketplaceAppDetails.vue | 29 ++- neode-ui/src/views/Settings.vue | 16 +- 7 files changed, 218 insertions(+), 399 deletions(-) diff --git a/neode-ui/src/views/AppDetails.vue b/neode-ui/src/views/AppDetails.vue index c94c3f92..96cf87d6 100644 --- a/neode-ui/src/views/AppDetails.vue +++ b/neode-ui/src/views/AppDetails.vue @@ -621,6 +621,7 @@ function goBack() { router.back() } + function launchApp() { if (!pkg.value) return @@ -771,8 +772,7 @@ async function confirmUninstall() { try { await store.uninstallPackage(appId.value) - // Navigate back to apps after uninstall - router.push('/dashboard/apps') + router.push('/dashboard/apps').catch(() => {}) } catch (err) { console.error('Failed to uninstall app:', err) alert('Failed to uninstall app') diff --git a/neode-ui/src/views/Apps.vue b/neode-ui/src/views/Apps.vue index 4f342740..9d91d30b 100644 --- a/neode-ui/src/views/Apps.vue +++ b/neode-ui/src/views/Apps.vue @@ -171,7 +171,7 @@ \ No newline at end of file