From 064e228226ee573c65ad1e227b4b27e006f0e76c Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Sat, 6 Oct 2018 16:00:02 -0700 Subject: [PATCH] Started adding maintainer modes for managing duplicates, deletions, trash, etc. Signed-off-by: James Ketrenos --- frontend/elements/photo-thumbnail.html | 2 +- frontend/src/ketr-photos/ketr-photos.html | 193 ++++++++++++++-------- server/app.js | 95 ++++------- server/db/photos.js | 1 + server/routes/photos.js | 50 +++++- server/routes/users.js | 107 +++++++++--- server/scanner.js | 9 +- 7 files changed, 302 insertions(+), 155 deletions(-) diff --git a/frontend/elements/photo-thumbnail.html b/frontend/elements/photo-thumbnail.html index a31a023..4a3b8d3 100755 --- a/frontend/elements/photo-thumbnail.html +++ b/frontend/elements/photo-thumbnail.html @@ -46,7 +46,7 @@
-
[[item.name]]
+
[[item.name]] ([[item.id]])
[[item.taken]]
[[item.path]]
diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index ae3122f..4711709 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -310,6 +310,8 @@ + +
@@ -336,6 +338,21 @@
On [[memoryDate]], there have been [[add(thumbnails.length,pendingPhotos.length)]] photos taken over [[years.length]] year(s).
+
+
Trash
+
There are [[add(thumbnails.length,pendingPhotos.length)]] photos in the trash.
+
Do you want to purge the trash?
+
+
+
Duplicate names
+
There are [[add(thumbnails.length,pendingPhotos.length)]] photos which may be duplicates + based on either their name.
+
Look for duplicates in each file-name pair. If they are not the same, + tap on the photo and that one will be renamed + on the server by adding four letters from the image's signature to the name.
+
If they are duplicates, you can tap to move the + photo to the trash.
+