Commit Graph

95 Commits

Author SHA1 Message Date
24e49a613c now use eval() for GetEntries*Fold*, and much better fix for bug where next/prev was breaking with inputs with spaces in names -- dont need those inputs anyway, JUST pass next or prev and the rest comes from pa_user_state now 2022-01-29 18:54:48 +11:00
8e82271e2a start of noo for Search, and rewrite of GetEnt* to use eval(), search and flat done, but also fixed OLD bug I just noticed where prev/next buttons would not work when sorting by "A to Z", etc. as the value of the form.input has a space in it and serializeArray() was not dealing with it properly 2022-01-29 18:06:21 +11:00
2e4b1ed9d2 defaults in PAuser include noo/folders for import/storage separated, defaults are stored into PAUser in DB, changable in GUI, used as the defaults for new PA_User_States. Also disabled search noo, search folders as they are hard-coded in the ORM retreive anyway 2022-01-22 23:26:14 +11:00
0f4632e240 changing options on files_*, search, also next/prev all now use POST->redirect model, so should allow back/forward browser buttons to work - commit so we can test in PROD 2022-01-22 21:36:58 +11:00
fd16e80b78 tweaked bin icon for small/large displaying, added todo around viewing on phone and maybe datatables 2022-01-14 11:20:41 +11:00
27dadacd5c add move on context menu for folders 2022-01-09 18:51:03 +11:00
fea5ae6c7d set button state when choosing with right-click 2021-10-02 14:47:59 +10:00
3dafae334b remove last remnants of rotate instead of transform, updated rot* svgs to have arrow point in direction of actual rotation, AND, fixed bug where when we rotate an image that has already had an exif_transform on it, then we have to do that and then the requested rotation - fixes why sometimes we rotate say 180 when we intended a 90 rotate. Also, when we transform, recalc md5 as file has changed 2021-10-01 22:16:28 +10:00
1685308430 add unknown_ftype - used for Unknown file types in viewer, or if no thumbnail for some reason & fixed issue with move_paths only working from button, not context menu 2021-09-29 16:56:10 +10:00
23c8d16a5b fix BUG-64: can now move files into import or storage path 2021-09-26 21:14:08 +10:00
81264bd50d stop trying to use loop.index for which ecnt, just use a dedicated var... stops the weirdness between folders/no folders when highlighting too -- fixed last bug with incorrect selections 2021-09-24 21:39:35 +10:00
d258c963f6 fix issue with OPT.how_many being an int, so it is not setting the "selected" string options in CreateSelect 2021-09-22 20:58:01 +10:00
a1f8afa781 AI submenu now has all at top 2021-09-22 19:19:21 +10:00
a67b0cc16c Del key bound for delete on files page 2021-09-20 21:18:02 +10:00
ed04b5e92a fix bug-59 - missing locn icon for videos, stupidly has a # in front of the filename! 2021-09-18 17:55:59 +10:00
10f8e4cc9d aria-label to make lighthouse report better 2021-09-14 22:17:23 +10:00
479c6179c2 fix icon url needing to be passed as a jinja2 var 2021-09-05 22:23:08 +10:00
7c192b5d66 with MoveDBox going into js file, need to pass jinja2 var as a param 2021-09-05 21:34:13 +10:00
3472717d01 fixed BUG-44: quickly clicking in folder view can somehow end up with a view/<id> crash 2021-08-30 18:25:19 +10:00
10fcda0d7c convert OPT from a dict to a class 2021-08-29 20:13:26 +10:00
1d3caf17de 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. 2021-08-27 23:38:31 +10:00
652a89161d include the js form the internal dir and viewer now has tooltips on buttons, and all buttons work, call the right javascript, send jobs to the pa_job_manager, and make image go gray with throbber, and on job completion, hide throbber, redraw the image in color and with the newly transformed image 2021-08-15 21:26:43 +10:00
59c72f9aee moving to /internal for a js dir, icons.svg Ive built, etc. and added route in files.py, updates all html to use new path 2021-08-15 00:26:27 +10:00
b40ecbf208 put svgs in icons.svg and reference appropriately, still not happy with pa_logo, but otherwise all working 2021-07-25 13:19:01 +10:00
3757c942e6 more bootstrap 5 fixes 2021-07-22 19:54:18 +10:00
915063a7a7 semi fixed move dbox, the input group is still not right, but it will suffice, more use of svg and ditching font awesome 2021-07-22 00:50:45 +10:00
678e18b89d disable next button when we have no more int he list -- doesnt deal with when we exactly land on the last image, and it seems we have 1 too many in the first set of images (have 10 on select, but see 11 on page - after next button though its 10 on the page 2021-07-20 19:08:32 +10:00
b9f05d64f8 okay this now works with bootstrap 5, I dont love the sz buttons / mixed black and white hover text needs love - probably own class with own styles, but I dont want to hard-code info color, need to work out how to do style / css using the right bs variable for info color 2021-07-20 19:03:14 +10:00
e1a3ad388c added small spaces before first row of images to stop squishing into navbar, added flipping / made that work, and now show thumbnail after rotation/flip is finished - all works, and removed debugs 2021-07-16 22:28:44 +10:00
3ac6f143f4 first pass of rotation sub-menu on images. It only posts on Image. For each selection it turns thumbnail gray, overlays a centered color spinning wheel, posts to the f/e to create a rotation job, gets the job id back, keeps checking the f/e to see when the job id is done, and when it is (for now) undoes the spinning wheel/grayscale - will return new thumb once done and pa_job_mgr has no code to handle job as yet 2021-07-16 21:08:16 +10:00
d42ac8c8b5 string / int strictness issue causing default size to not highlight button - fixed 2021-07-16 17:52:31 +10:00
6e6f59fdd5 more cases of not using px explicitly not working, fixed for icon overlays on search/file view 2021-07-16 17:16:19 +10:00
f30ca16552 added viewnext and viewprev routes and plumbed these in to the file viewer code. Viewer code now works has a prev/next button, and handles videos 2021-07-15 20:23:02 +10:00
3c56cac1ef fix up selections to work with ctrl/shift and right-click -- its a bit clunky but works, redid numbering to make that work and condensed down to 1 common code block for context menu for figures and dirs now 2021-07-06 17:40:53 +10:00
4cb10c4a6b started hooking up right-click menu for Dir and Files all the way through to calling the new ScanFileForPerson() - which is still incomplete but does use the new Faces DB linkages and functions 2021-06-28 18:52:05 +10:00
c-d-p
26ba27cc0d updated files.py and files.html to add a context menu submenu to look for faces in an image. Doesnt work yet, but the context menu works 2021-06-27 14:27:46 +10:00
a412164ef7 moved styles to force folder naming correctly from base to files.html so that file_list.html didnt end up with crud. Also allowed move DBox to handle multiple storage paths and passes chosen (or only) storage path through to web front-end then to back-end job 2021-06-24 17:33:09 +10:00
6c3cdf79eb force the figcaption to break long words (even without spaces) 2021-06-22 21:06:24 +10:00
4dd5cd2f29 fixed BUG-36: view details showing all entries -- its a bit crap as its only import dir, but its functional again 2021-06-22 18:31:57 +10:00
decbcaec9a file_{ip|sp|rbp} now use functions to view flat or folder, and consistently offer Oldest/Newest (per files) and A to Z, Z to A (dir and files)... folder view only does A to Z / Oldest as alpha sort for dirs (dirs dont currently contain date metadata, so unless I add it, it wont work and I dont really think its useful anyway)... BUT, its added to the TODO for another day 2021-06-22 18:01:15 +10:00
26cd851325 view by folder now has same width for back "button" (hacked width in fa-stack css from font-awesome to force width:2em from 2.5em) - also made figcation wrap to keep horizontal folder spacing - seems much neater 2021-06-21 18:26:18 +10:00
2762f58f98 added quickhack of buttons on bottom of page to make navigation easier 2021-06-19 23:28:43 +10:00
f275da33e0 if you go into a new dir (up or down), offset is put back to 0 2021-06-18 01:05:06 +10:00
beb1ae6eb8 making this look usable on ipad and okay on larger desktop browser 2021-06-18 00:40:13 +10:00
f8a9f056ed fix bug where back button goes missing if you go into an empty folder 2021-06-17 19:54:09 +10:00
b09d19570f improved DBox images/html, improved look of MoveDBox, started plumbing for pa_job_manager to do actual moves, all the data is there, just havent performed the FS or DB move. cleaned up duplicated DEBUGS that are straight before AddLogForJob... tweaked TODO appropriately 2021-06-14 18:30:52 +10:00
7c3c8977d6 refined right-click seln. If you have one or more highlights, dont mess with them. If you have none, then select the one you are over. Also finished TODO for view details menu option 2021-06-13 22:14:35 +10:00
ae5fb0f747 fixed 3 BUGS: BUG-31: can post move/del/restore DBoxes without highlighted files/content; BUG-33: can call move/del/restore on mixed content - prob. stop it? (e.g right-click from search with highlighted files in both Bin and non Bin locations); BUG-34: shift-clicking (left or right) from a non-highlighted state does not add the shift-clicked item. ALSO removed ability to right-click change sel... 2021-06-13 21:35:08 +10:00
93d0eec00e FIXED: BUG-29: when delete/restore from search view the popup shows a path icon - in wrong spot, move it or lose it AND put trash icon back in alert for location when in Bin, restore icon in that context was wrong 2021-06-12 17:25:47 +10:00
f776a6a3c1 fixed up commit where I removed the data on the POST, so del/restore stopped working 2021-06-12 17:06:24 +10:00