Commit Graph

1271 Commits

Author SHA1 Message Date
da0019ecdc adding a get_version function that gets the mtime of the jscript file and then lets us embed that into the
<script src=>
Note, accidentally committed, partially tested
2025-10-11 12:27:59 +11:00
e4bf9606b9 move functions to appropriate file location for files/view support js, commented them better, removed some dead code 2025-10-11 12:13:44 +11:00
3a053bea49 found new todo around going back in folder view and sort order 2025-10-11 12:13:17 +11:00
1e421c3f22 move jscript logic out of template/html, into jscript so we can keep all logic into the included file, then I can force version on it and stop caching issues in mobiles, and a shift-reload will also get new code, rather than a container restart even on desktops 2025-10-11 11:11:51 +11:00
346defde8b added a functional (small) up button in the viewer, all works 2025-10-11 09:19:51 +11:00
6419e20d7e updated as I have fixed the restore/del from the viewer 2025-10-10 23:14:15 +11:00
b51d9e1776 make delete/restore button in viewer be the right colour, and go back to / when the success for the delete or restore finishes 2025-10-10 23:13:03 +11:00
fa2197adbe fix up bug where empty file_rbp did not work and displayed in the wrong div 2025-10-10 23:03:23 +11:00
66344e146e added a health check to see if this can help with the odd startup lag, it didnt 2025-10-10 23:02:47 +11:00
ee1c9b5494 all override add and remove now use new datastructures, close to be able to test / augment as per TODO 2025-10-09 23:56:27 +11:00
846bdc4e52 fix up linking between face to refimg when we add that face to a person from right-click 2025-10-07 23:52:06 +11:00
541cbec0de update adding refimg to new or existing person via right-click on a face to use new data structures 2025-10-07 23:43:07 +11:00
071164d381 remove dead code 2025-10-07 23:42:17 +11:00
1adb1bc7af no longer have pa_user_state data really, ditch the table 2025-10-07 23:42:02 +11:00
747f524343 remove more dead code 2025-10-07 23:41:38 +11:00
4feae96511 remove comments/format 2025-10-07 23:31:37 +11:00
e6c9429466 remove search term from DB 2025-10-07 23:30:28 +11:00
005b5be2b9 remove search_term from DB fields we want 2025-10-07 23:28:54 +11:00
f369b6d796 ticked off a couple of items around no content being better displayed 2025-10-07 00:01:30 +11:00
eb7bb84e09 add some padding, and set root_eid - Its 0 when nothing at all in Path (first run/empty). Also, started override for marshmallow, but overrides wont work yet 2025-10-07 00:00:50 +11:00
7f13d78700 deal with completely empty directories, remove ChangeSize and move that content into changeSize 2025-10-06 21:41:35 +11:00
e5d6ce9b73 move MoveDBox into full javascript and fold it into internal/js/files_support.js, also remove unused parameter for MoveDBox, and use marshmallow to pass people in query_data - overall just cleaner more consistent code for existing functionality 2025-10-05 23:20:17 +11:00
e0654edd21 alter move_paths from a specific var passed in the render_template, to be folded into query_data var 2025-10-05 22:36:49 +11:00
24c2922f74 actually set NMO var based on marshmallow data 2025-10-05 22:21:57 +11:00
24c3762c61 remove PathDetails*, and use marshmallow schemas with methods to get icon_url, and "path" renamed to "root_dir", updated move* code to use new data structure 2025-10-05 22:19:58 +11:00
40f0b5d369 refactor most javascript code, moved what can be moved into files_support.js, made keydown() items only apply when I go to the viewer code 2025-10-04 23:25:46 +10:00
2f5c6ec949 update for sqlalchemy v2 2025-10-04 23:23:39 +10:00
81ebf6fa01 use to_dict() here, so we can use |json in jscript 2025-10-04 22:45:28 +10:00
7a4f5ddb17 update z-index so we dont get buttons being higher than toast popup 2025-10-04 22:45:01 +10:00
00e42447fc make download link work with document.viewing rather than objs[current] 2025-10-04 10:43:00 +10:00
50f9fbee20 update to use new viewing data structures, consolidate to one set of transform functions with successCallback to cover the files vs viewer content. Updated TODO appropriately 2025-10-04 10:39:11 +10:00
1b9b4c9c4f update to use new viewing data structures, consolidate to one set of transform functions with successCallback to cover the files vs viewer content. Updated TODO appropriately 2025-10-04 10:39:06 +10:00
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