Commit Graph

1239 Commits

Author SHA1 Message Date
86761994df need to check length of faces, not just it exists - it comes back as an empty array when no faces 2025-10-04 10:37:29 +10:00
4138f392d3 clean up includes, double up of fullscreen var, and use of current still 2025-10-04 10:37:00 +10:00
525b823632 dont crash server if we have not scanned the Path yet 2025-10-04 10:34:54 +10:00
d019dc7960 more things to test/fix 2025-10-03 21:40:59 +10:00
a15fbd74d5 update for new db models/marshmallow object 2025-10-03 21:40:48 +10:00
3c8babb619 made basic viewer now handle new marshmallowed data - faces, model_used, face_distance, etc. 2025-10-03 21:28:25 +10:00
cd73c16545 include refimg_lnk and facefile_lnk into Face to be used in viewer 2025-10-03 21:10:52 +10:00
efaec00127 OMG, face_distance is float not int, how has this ever worked 2025-10-03 21:10:04 +10:00
0777bbe237 remove more dead code 2025-10-02 23:14:42 +10:00
b0c738fcc1 moved cFO() to changeOPT() into internal/js, transformed file_list_ip to work with new query_data model, made the Size buttons use modern bootstrap5 radio buttons and work again without the form for all file* routes. Removed a lot of dead code, moved code to resetNextPrev buttons to anytime we getPage, reducing code, handle setting OPT in jscript via a to_dict() for States. Overall, search and file_list_ip now work. Only main thing left is the override code 2025-10-02 23:11:14 +10:00
2b9e0e19a2 add a to_dict() for States, and then I can use a 1-liner to set a var in jscript 2025-10-02 18:20:31 +10:00
e526d99389 no longer maintain too much state per user, remove all need to update it 2025-10-02 17:54:51 +10:00
5a923359bc remove dead viewing code 2025-10-02 17:54:31 +10:00
a147308b64 removed fields from PA_USER_STATE, no longer needed with new viewing logic 2025-10-02 17:51:47 +10:00
9e943c7e1f removed fields from PA_USER_STATE, no longer needed with new viewing logic 2025-10-02 17:51:39 +10:00
87651e80a0 fix up capitalisation of bOOLEAN, and removed fields from PA_USER_STATE, no longer needed with new viewing logic 2025-10-02 17:51:25 +10:00
2e952deda0 added code to support changing noo/how_many/folders and do this with json data back and forth, update the UI, all works - only search is missing now. Lots of dead code can still be deleted 2025-10-01 23:48:19 +10:00
b9b7a24326 removing done items 2025-10-01 23:43:15 +10:00
a7ce8e66b5 change back to how_many, too hard to fix and the inconsistency broke the GUI change 2025-10-01 23:40:39 +10:00
6199c042e3 remove most of the code, just have States with default values and some derived values such as prefix 2025-10-01 23:40:05 +10:00
c32b99f53e augment CreateFoldersSelect to support supplying js 2025-10-01 23:39:17 +10:00
175e43c9bb make viewer work for files_sp, by resetting entryList and pageList for any new directory load 2025-09-30 18:38:54 +10:00
4bb99ce589 catch all to cover when we try to view an img/video and the dir contents is empty, so nothing to show 2025-09-30 18:38:20 +10:00
70ca93b14e convert files_rbp to new query_data model 2025-09-30 18:37:15 +10:00
a0e06717ac viewer now works for files_ip, still have broken bits everywhere - files_rbp, change_opts, do I want a back button? lots of dead/old code, probably cam move more js into *_support, and do I want to keep files_support separate to view_support 2025-09-30 00:29:11 +10:00
0851b79e16 remove debug 2025-09-30 00:26:45 +10:00
8e6342b627 quick add of files_div to be able to toggle beween files viewing and viewer itself, moved isMobile to support js, change eids to use query_data - for now, will remove when we consolidate to new approach 2025-09-28 21:48:11 +10:00
5b6dc1b3e9 seems I now need setuptools, this feels like a kludge - watch this space for further upstream changes 2025-09-28 21:45:19 +10:00
59bd2af15e update to reflect we no longer use sudo for docker commands 2025-09-28 21:44:26 +10:00
1ca5ca192c move isMobile() to support js, as it has no jinja2 in it 2025-09-28 21:44:02 +10:00
5f8c48ac18 fix highlighting issue - as expected, ecnt was wrong 2025-09-27 17:36:31 +10:00
b67f2d9dcb now allow files_sp paths to work (and support folders). Highlighting with folders is broken (likely dodgy ecnt). viewing still broken, but basic navigations is finally working with folders now 2025-09-27 12:42:01 +10:00
5842bf2ab8 set OPT values in jscript in files.html, added functions to draw figures on a page based on pageList (subset of entryList) & json data, and tweaked just grouping select as well to also use the draw figures func() in jscript. Needed to move out .figure click handler into the draw figures too. This is now semi-functional, images load, pages next/prev works, grouping works -- BUT only for files_ip -- folders wont work, search wont work, files_sp wont work, viewing a file wont work 2025-09-27 00:31:42 +10:00
be218c5049 first pass of using query data to allow display of files_ip only. Does use pass in list to do next/prev page (of the eids only). No images drawn at all. Definitely NOT, a usable version of PA at the moment 2025-09-26 19:32:09 +10:00
a28f016b8a when viewing, there is no path and not needed for viewing anyway 2025-09-26 19:30:29 +10:00
d2db7f6184 hash is a string not an Integer, not sure how this issue has been here so long. Also, first pass of using query data to allow display of files_ip only. Definitely NOT, a usable version of PA at the moment 2025-09-26 19:26:23 +10:00
9ec8195d0a first pass of supprot functions to allow query/entry_list to drive pagination, and do not go back to the server to calc next/prev page 2025-09-26 19:25:19 +10:00
2325dcd22a work out prefix and store it away in States so we can just use if in updated json data calc for files 2025-09-26 19:24:10 +10:00
e0b597c58c add entry_list to query table 2025-09-26 19:22:36 +10:00
0895268df2 more thoughts on change over to json, etc 2025-09-26 19:20:47 +10:00
efceef7e57 added BUG-140 - db restarts cause job mgr to fail 2025-09-26 14:57:32 +10:00
21059a6235 reformatted to be normal sql, added query table 2025-09-20 19:32:47 +10:00
4d80fa4e7c first pass at new query table 2025-09-20 19:32:21 +10:00
a4526e2b70 updated BUG as well 2025-09-20 14:50:00 +10:00
cf9b0996be works with new ldap now, and put forward details of next big change into TODO 2025-09-20 14:48:29 +10:00
57e736a495 temporarily add some data capturing to dom for debugging, and remove superfluous condition in if 2025-09-20 14:47:52 +10:00
aaf04e7f9b AI search now does not wildcard, so only exact matches person when you do AI:<xxx> 2025-09-20 14:46:57 +10:00
eb9e7f2ce1 fix for ldap removing any anonymous binds, also use ldap.ddp.net 2025-09-16 20:36:04 +10:00
df7a81df09 new TODOs 2025-09-16 20:35:03 +10:00
4742509d56 added new BUG 2025-09-16 20:34:44 +10:00