From 6c596c8462d6e2675bbd633a5ea3e09bc30d93f3 Mon Sep 17 00:00:00 2001 From: Kjeldgaard Date: Wed, 30 Dec 2020 22:10:26 +0100 Subject: [PATCH 1/4] Add navigation control to map In places tab, navigation controls are added to the mapbox map. --- ui/src/Pages/PlacesPage/PlacesPage.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ui/src/Pages/PlacesPage/PlacesPage.js b/ui/src/Pages/PlacesPage/PlacesPage.js index 8f3d54eb..ce235163 100644 --- a/ui/src/Pages/PlacesPage/PlacesPage.js +++ b/ui/src/Pages/PlacesPage/PlacesPage.js @@ -59,6 +59,9 @@ const MapPage = () => { zoom: 1, }) + // Add map navigation control + map.current.addControl(new mapboxLibrary.NavigationControl()) + map.current.on('load', () => { map.current.addSource('media', { type: 'geojson', From 2016489a5f79fa36643cf9fc324068d5a7dffb5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Strate=20Kl=C3=B8vedal?= Date: Sun, 3 Jan 2021 20:46:46 +0100 Subject: [PATCH 2/4] Add link to Discord server in Readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3262ce73..0a0501c3 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@ Photoview is a simple and user-friendly photo gallery that can easily be installed on personal servers. It's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos. +> If you have questions regarding setup or development, feel free to join the Discord server https://discord.gg/pxybT4Sh + ## Demo site Visit https://photos.qpqp.dk/ @@ -20,7 +22,6 @@ Password: **demo** ## Contents - [Demo site](#demo-site) -- [Aim of the project](#aim-of-the-project) - [Main features](#main-features) - [Why yet another self-hosted photo gallery](#why-yet-another-self-hosted-photo-gallery) - [Getting started - Setup with Docker](#getting-started---setup-with-docker) From 719dd633ceefa05fa22a130d9e4ddde1fb0b674b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Strate=20Kl=C3=B8vedal?= Date: Wed, 6 Jan 2021 23:35:58 +0100 Subject: [PATCH 3/4] Update Discord link with a new valid url --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0a0501c3..ad9b3413 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,8 @@ Photoview is a simple and user-friendly photo gallery that can easily be installed on personal servers. It's made for photographers and aims to provide an easy and fast way to navigate directories, with thousands of high resolution photos. -> If you have questions regarding setup or development, feel free to join the Discord server https://discord.gg/pxybT4Sh +> If you have questions regarding setup or development, +feel free to join the Discord server https://discord.gg/jQ392948u9 ## Demo site From 5b8660c5a9761d994366a19a358dd004c94c230a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Strate=20Kl=C3=B8vedal?= Date: Tue, 12 Jan 2021 21:56:43 +0100 Subject: [PATCH 4/4] Remove hyphen from default SQL password Which, in some cases, could cause problems. This solves #96 --- docker-compose.example.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.example.yml b/docker-compose.example.yml index e18046ef..37238899 100644 --- a/docker-compose.example.yml +++ b/docker-compose.example.yml @@ -7,7 +7,7 @@ services: environment: - MYSQL_DATABASE=photoview - MYSQL_USER=photoview - - MYSQL_PASSWORD=photo-secret + - MYSQL_PASSWORD=photosecret - MYSQL_RANDOM_ROOT_PASSWORD=1 volumes: - db_data:/var/lib/mysql @@ -21,7 +21,7 @@ services: - db environment: - - MYSQL_URL=photoview:photo-secret@tcp(db)/photoview + - MYSQL_URL=photoview:photosecret@tcp(db)/photoview - API_LISTEN_IP=photoview - API_LISTEN_PORT=80 - PHOTO_CACHE=/app/cache