Commit Graph

261 Commits

Author SHA1 Message Date
fee993711f hacked /files_ip for now, this whole page is a bit of a mess, not sure we keep it - and its a kludge to assume its in the file_ip path -- only will work if img is in import path and we are viewing in flat mode, but at least this means we dont break the app, just get a confused viewer message. Also use tmp_locn rather than face.locn for viewlist to fix BUG-82 2022-01-28 20:48:56 +11:00
297b12b2b1 fix bug where viewer does not disable ra / la if viewlist causes us to land on first/last image 2022-01-28 14:45:07 +11:00
52f6063bc1 remove debug 2022-01-28 13:26:22 +11:00
3acc967101 fix up not sending import/storage versions of noo/folders 2022-01-28 13:25:55 +11:00
55724ccd59 removed use of last_entry_in_db (boolean) and replaced with use of current/first_eid/last_eid in PA_USER_STATE so it persists across reloads/back buttons, and allows full use of ajax data retrieval in the background for the viewer (so fullscreen stays across page loads), and the next/prev buttons are set on the image load, not after they have been pressed "one too many times" 2022-01-27 14:27:52 +11:00
08ca9b4e74 partial implementation of first_eid, last_eid -- I think the vals work -- they do for searches anyway, but not stored in pa_user_state yet 2022-01-25 00:48:14 +11:00
0f44af4ec3 clean up of unneeded viewing hidden vars, now we retrieve data from pa_user_state 2022-01-23 14:41:54 +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
78acb9bd66 big clean up of Options -> States, total rework, now actually handles pa_user_state -> States as Import/Storage/Bin/Search or View. If Search has orig_search_term saved. If view, has orig_ptype (and orig_search_term if orig_ptype is Search) -- removed OPT.paths -> these are now worked out when we GetEntries based on pa_user_state. This now allows us to GET all URLs for image viewing allowing me to use the back-button without issues in PROD - well we will see once I commit :) 2022-01-20 17:25:01 +11:00
2dab42d712 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:14:14 +11:00
4fa7b4b2d3 renamed pa_pref to better named pa_user_state, changed code to adapt and made new_view and viewlist work with newer Options/pa_user_state - still more work but it should be functional again 2022-01-20 14:13:50 +11:00
30a2fa6d99 quick fix for view being a POST, its now redirected to a GET, but I want to fix up the viewlist properly as well, should work for now though 2022-01-20 11:26:09 +11:00
505a5fa813 made search a POST to /search be a redirect to a GET /search/<search_term> so that it works with back/forward buttons in the browser 2022-01-19 22:40:47 +11:00
a2091f0194 remove onpopstate stuff, and updated TODO with better way to deal with this 2022-01-19 21:18:50 +11:00
de81db9412 unmatched faces now sorts size of face desc, and is slightly prettier -- still slow and only takes you to the file anyway, might optimise that later. still no code to auto deal with unmatched face, but will add some capabilities next. Also, remembered last dir when file_ip/sp/bin. Also throw error if try to find unknown person - happened since I allowed the back/forward. 2022-01-18 20:59:39 +11:00
d65c310f6e remove debug 2022-01-16 14:49:56 +11:00
28f15ee4e6 fixed sort order to work with datatables sorting 2022-01-16 14:49:38 +11:00
d8db522d00 first quick pass of user menu in navbar which shows simple read only prefs content, and a logout option that works 2022-01-16 12:51:42 +11:00
684cc27df9 first quick pass of user menu in navbar which shows simple read only prefs content, and a logout option that works 2022-01-16 11:37:49 +11:00
e03d11b9e1 fixed job refresh issues 2022-01-16 01:17:54 +11:00
12726ed186 added # matches on show persons page, and fixed issue with search OPT being hardcoded and not using those in the DB 2022-01-16 00:55:23 +11:00
bd7cae6037 fixed BUG-78 (deleted recursively too far - took out parent_dir), also deleting from the viewer page works with Delete key too. Removed debugs in viewer for fullscreen 2022-01-14 13:49:39 +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
71951ca04c minor re-formating of joblog to fit larger screens & phone screens better 2022-01-14 11:03:03 +11:00
a2fb877f12 implemented job archiving (via a Setting, and just viewing recent or all) 2022-01-13 23:11:21 +11:00
3e67c9c27f try sm-txt on joblog 2022-01-13 21:22:49 +11:00
8a6a7a5115 joblog rewrite to show only a few "newest" lines and "oldest" logs for a job, with the more button in the middle, also has a little icon to show the re-ordering that goes with each view - should really make this clickable/togglable. 2022-01-13 21:12:09 +11:00
a67c20d72b new BUG (very minor), reordered TODOs and now have basic stale job handling - they are detected, and can be cancelled or restarted from GUI 2022-01-11 13:18:21 +11:00
bf04c862d6 first pass of allowing to scan for all files in import and storage paths <- works, and showing all unknown faces to handle them somehow - very rudimentary 2022-01-10 01:20:20 +11:00
27dadacd5c add move on context menu for folders 2022-01-09 18:51:03 +11:00
911d43bddc wrong password now has close button looking consistent AND actually closes alert 2021-10-08 22:31:31 +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
a0e8982419 only show close button when its not a success message that is not a checkdups 2021-09-24 20:27:34 +10:00
3ee81a66f2 allow close of errors that are not checkdups jobs from FE 2021-09-24 12:50:02 +10:00
cafa1f1b5a remove duplicate row 2021-09-22 21:01:55 +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
db6319c5ab when viewing image, with fname, show full path with icon of path 2021-09-22 19:59:18 +10:00
a1f8afa781 AI submenu now has all at top 2021-09-22 19:19:21 +10:00
e07d6c462b remember orig_url properly in OPT so that viewlist knows if we were originall import or storage for GetEntries to continue the list 2021-09-22 18:43:01 +10:00
79c7e5a2a8 dont offer force scan delete data & rebuild in PROD - wont do that again 2021-09-21 00:36:55 +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
5b4bbeec46 order ai stats, and remember to put a container div in for formatting 2021-09-17 18:38:39 +10:00
67b1c0dd49 fix BUG-53 video/image viewer switching had spacing and name wrong 2021-09-16 21:06:05 +10:00
c59e23efda provide estimates, format dates better 2021-09-16 19:20:43 +10:00