complete rewrite of viewer, videos need to be fixed. Otherwise, viewer now loads entry data for all "how_many" images on the screen, and allows prev/next movement between images without a DB load for the current page of images, then as required, it will retrieve the prev/next "how_many" from the database via /viewlist route, and go back into view/<id> of the appropriate new image of the new list. Also prevents going below 0 and beyond end of DB for the first time.

This commit is contained in:
2021-08-27 23:38:31 +10:00
parent 652a89161d
commit 1d3caf17de
6 changed files with 419 additions and 357 deletions

12
TODO
View File

@@ -1,12 +1,10 @@
## GENERAL
* viewer:
buttons need tootltips
can we make it preload next/prev images, and only reload the image div when we jump? to make arrow-based nav much faster
im_next = new Image()
im_next.src="..."
few things though:
- have to remember the details of not just the src fname, but also face* details
- onload event, what if we use it and use say arrow keys to load/change image, will one beat the other, but if we arrow next too fast, the img wont be loaded?
- buttons need tootltips to show shortcut key
- if DrawImg runs into a video, deal with it :)
* files.py cleanup:
class Option for dot-notation, or namespace???
* remove dirs after the duplicate cleanup removes all its content