From ab0038402e6e90a9f7afcab3792114ad34aa97fb Mon Sep 17 00:00:00 2001 From: JuLi0n21 Date: Thu, 12 Mar 2026 21:39:11 +0100 Subject: [PATCH] add skeleton loading --- frontend/nginx.conf | 2 +- frontend/src/components/ActiveSearchList.vue | 9 ++- frontend/src/components/CollectionItem.vue | 5 ++ .../src/components/CollectionListItem.vue | 15 +++-- .../components/CollectionListItemSkeleton.vue | 24 +++++++ frontend/src/components/SongItem.vue | 7 ++- frontend/src/components/SongItemSkeleton.vue | 21 +++++++ frontend/src/script/types.ts | 2 +- frontend/src/views/CollectionView.vue | 62 +++++++++++++------ frontend/src/views/NowPlayingView.vue | 7 +-- frontend/src/views/RecentView.vue | 12 +++- grpc-backend/handlers.go | 1 + 12 files changed, 133 insertions(+), 34 deletions(-) create mode 100644 frontend/src/components/CollectionListItemSkeleton.vue create mode 100644 frontend/src/components/SongItemSkeleton.vue diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 4d532e0..9e016b6 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -6,7 +6,7 @@ server { root /usr/share/nginx/html; index index.html index.htm; - try_files $uri $uri/ /index.html; # Redirect all non-static routes to index.html + try_files $uri $uri/ /index.html; } error_page 404 /index.html; diff --git a/frontend/src/components/ActiveSearchList.vue b/frontend/src/components/ActiveSearchList.vue index 8d45e4b..b26189e 100644 --- a/frontend/src/components/ActiveSearchList.vue +++ b/frontend/src/components/ActiveSearchList.vue @@ -40,7 +40,14 @@ function highlightText(text: string, searchterm: string) {