From 315d7db56a831a85adfec6e4ecf30943a680b8cb Mon Sep 17 00:00:00 2001 From: Arthur Lefebvre Date: Wed, 25 Mar 2026 15:45:50 +0100 Subject: [PATCH] Add a new tab to browse all books on the instance --- front/src/AppNavBar.vue | 3 ++ front/src/BooksBrowser.vue | 4 +- front/src/InstanceBrowser.vue | 61 ++++++++++++++++++++++++++ front/src/api.js | 8 ++++ front/src/locales/en.json | 1 + front/src/locales/fr.json | 1 + front/src/router.js | 2 + internal/apitest/fetchallbooks_test.go | 58 ++++++++++++++++++++++++ internal/query/query.go | 16 +++++++ internal/routes/booksget.go | 40 +++++++++++++++++ internal/setup/setup.go | 4 +- 11 files changed, 195 insertions(+), 3 deletions(-) create mode 100644 front/src/InstanceBrowser.vue create mode 100644 internal/apitest/fetchallbooks_test.go create mode 100644 internal/routes/booksget.go diff --git a/front/src/AppNavBar.vue b/front/src/AppNavBar.vue index 96acfb3..df95366 100644 --- a/front/src/AppNavBar.vue +++ b/front/src/AppNavBar.vue @@ -83,6 +83,9 @@ onMounted(() => {