From e7c44ab91f0665180ad2366f754b8759c3210116 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 13 Oct 2022 10:50:54 +0200 Subject: [PATCH] Add location grouping views Signed-off-by: Louis Chemineau --- src/Photos.vue | 5 +- src/router/index.js | 15 ++ src/views/LocationContent.vue | 442 ++++++++++++++++++++++++++++++++++ src/views/Locations.vue | 113 +++++++++ 4 files changed, 574 insertions(+), 1 deletion(-) create mode 100644 src/views/LocationContent.vue create mode 100644 src/views/Locations.vue diff --git a/src/Photos.vue b/src/Photos.vue index c090d1d7c..66a55c94f 100644 --- a/src/Photos.vue +++ b/src/Photos.vue @@ -64,9 +64,12 @@ :title="t('photos', 'Tags')"> + + + + :title="t('photos', 'Maps')"> diff --git a/src/router/index.js b/src/router/index.js index 72cd1b5f8..3e1e4c8d2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -36,6 +36,8 @@ const AlbumContent = () => import('../views/AlbumContent') const SharedAlbums = () => import('../views/SharedAlbums') const SharedAlbumContent = () => import('../views/SharedAlbumContent') const PublicAlbumContent = () => import('../views/PublicAlbumContent') +const Locations = () => import('../views/Locations') +const LocationContent = () => import('../views/LocationContent') const Tags = () => import('../views/Tags') const TagContent = () => import('../views/TagContent') const Timeline = () => import('../views/Timeline') @@ -127,6 +129,19 @@ const router = new Router({ token: route.params.token, }), }, + { + path: '/locations', + component: Locations, + name: 'locations', + }, + { + path: '/locations/:locationName*', + component: LocationContent, + name: 'locations', + props: route => ({ + locationName: route.params.locationName, + }), + }, { path: '/folders/:path*', component: Folders, diff --git a/src/views/LocationContent.vue b/src/views/LocationContent.vue new file mode 100644 index 000000000..8c5bb1b66 --- /dev/null +++ b/src/views/LocationContent.vue @@ -0,0 +1,442 @@ + + + + + diff --git a/src/views/Locations.vue b/src/views/Locations.vue new file mode 100644 index 000000000..9312c4ebf --- /dev/null +++ b/src/views/Locations.vue @@ -0,0 +1,113 @@ + + + + +