Commit Graph

51 Commits

Author SHA1 Message Date
1afaa338a8 finished basic about page, and including 15 recent commits by default 2022-12-31 14:28:05 +11:00
9de6e21eaa made main() a func, not sure it matters tbh, also reordered an import, but to no affect 2022-12-29 13:05:19 +11:00
2a1e2d7d5d cleaned up code around json, *locn -> transitioned to top, right, bottom, left to finally fix ORM replacing [ with { <- FIXES BUG-108 2022-12-23 16:18:27 +11:00
c6efd29a48 removed fullscreen and added default_search_noo 2022-01-30 23:02:42 +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
28f15ee4e6 fixed sort order to work with datatables sorting 2022-01-16 14:49:38 +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
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
34e055d920 remove old StoragePathNames(), we can now move into import or storage paths 2021-09-29 16:56:49 +10:00
0f5f21d266 use url_for not hardcoded routes 2021-09-24 12:49:34 +10:00
56f3853bfc removed unneeded ref to font-awesome, added compression, ttl for static files, several small cleanups on labels, etc. for lighthouse improvements 2021-09-14 17:22:42 +10:00
238a813ccc fix BUG-50, remove secret_token use, it caused every new instance of Flask to auth - mild irritation, BUT, caused each gunicorn thread to have a different key -- this does not work, back to a random static val and live with it 2021-09-13 17:55:49 +10:00
0c1691d495 updated comments, use secrets to generate SECRET_KEY 2021-08-11 18:20:37 +10:00
7db988d752 PROD_HOST comes from shared not also defined in main, also was still referencing book cert - not really a combo that was likely as we used gunicorn not flask in prod, and gunicorn has correct cert set on cmdline 2021-08-11 17:49:32 +10:00
b21d4f78e5 updated comments 2021-08-11 17:44:19 +10:00
f6f67b8a69 move import order around, not needed in the end, but doesnt matter so keep it 2021-07-25 15:12:29 +10:00
2e06c0b285 moved class Refimg to person, and ditched all other routes/direct access to ref images, they are only a part of Person in UI now 2021-07-05 16:51:44 +10:00
e26c992c0f make it clear if we are on DEV or PROD -> pass env thru app.config to base.html 2021-07-04 20:06:53 +10:00
c-d-p
ade3745024 spacing 2021-06-27 14:26:51 +10:00
1c2612e2cb spacing 2021-06-27 13:11:49 +10:00
886776f737 Made saved users be in the DB, not in dict in memory of workers in gunicorn - otherwise we had BUG-39, and also added input validation to username to stop ldap injection on login form 2021-06-26 16:46:26 +10:00
371e2af64b added python ldap / login pages 2021-06-26 09:20:11 +10:00
0a5e837236 support multiple paths in move DBox via new StoragePathNames() function, and pass that through to jinja 2021-06-24 17:33:42 +10:00
e20faac23b added new func LocationIcon so html can ieve the icon based on objects type of path 2021-06-06 17:22:25 +10:00
7e2494884e can now toggle between folder or flat view, its a bit ugly, but it works 2021-06-06 14:09:11 +10:00
c2d0004537 fixed up a few issues found from linter 2021-03-19 18:00:44 +11:00
b9dea327d0 use pagesize not page_size, and pass it in based on job extras, also use path based on job extras, so we fix issue of fix_dups not knowing which path from settings was used (import or storage) 2021-03-06 11:45:21 +11:00
e19e1b57f8 add extension so that break from loop works 2021-03-03 22:04:23 +11:00
Damien De Paoli
a82226b082 use DB_URL from shared 2021-02-27 10:57:27 +11:00
96bcada5c5 CreateSelect() in py called in jinja to neaten up selects 2021-02-02 00:18:52 +11:00
31d45e80b6 moved over to new ENTRY based data structures for loading from DB and viewing content 2021-01-19 17:33:10 +11:00
0e01b132ab removed debug 2021-01-18 10:53:28 +11:00
c5d8811671 actually create a job for scan now, and let the job manager do the work and send back output via new PA_JobManager_FE_Message table 2021-01-17 10:50:43 +11:00
e138ab22aa git commit, converted over to base.html pulling Status*, rather than every render_template calling it. Tightened up naming for job manager, fixed a few bugs in there with items like div by zero, created the active jobs link/badge in navbar, have it invoked each time by base.html template and it gets active jobs from DB, pa_job_manager now initiliases from an empty DB and can work out where it is at, no loop/thread/or actual job code yet. jobs.py has basics of a NewJob(), so next step is to force that job to be executed in pa_job_manager, but its tea time 2021-01-16 17:51:16 +11:00
Cam
588980a260 Added the ability to add a reference image to a person, and connect the two in the db 2021-01-15 16:55:12 +11:00
a93f9e1da8 changed files table to file to be consistent with other tables in the db 2021-01-14 21:58:20 +11:00
e884accd0a renamed importlog* to job* -- in db, python and html 2021-01-14 21:47:12 +11:00
3684f279e4 first pass of import logging, its not being used, data is in real tables, but faked. will probably have to switch to gunicorn and threading to allow import and serving pages when we use slower AI routines 2021-01-14 00:15:54 +11:00
ed3a85b8f0 added reference image class, also tweaked DB classes to have foreign keys, so you cant delete a person connected to a file (tested). Also made refimg class do some quirky bootstrap/jquery to get file dialogs not looking like crap 2021-01-12 23:58:12 +11:00
a3a95f636e now have a Person class & associated CReate/Update/Delete functions, and menu in base.html 2021-01-12 21:51:33 +11:00
ccc8085aaf changed Photo class and DB table to be Files, also reflected through templates/files* - files.html is not used yet 2021-01-11 11:00:31 +11:00
1afb794bb8 first pass at seeing if path exists 2021-01-10 16:11:24 +11:00
cf1adb3e6e made settings work lamely, but functional for now, also removed test route 2021-01-10 15:46:41 +11:00
64d3e3e4cd Settings class now uses sequence, the DB sequence and table have been created and commented out a simple settings addition for now -- Beware it runs twice with Flask in DEV mode 2021-01-10 13:41:36 +11:00
0bbed0ced5 renamed ClearMessage to better name of ClearStatus, and exposed it to jinja2 so status messages now work in base.html 2021-01-10 12:17:14 +11:00
7a0d9ec165 updated base.html to have a appropriate navbar, use Status class and a quick test route in main 2021-01-10 12:07:50 +11:00
Cam
686cc5daca added base app.route, and a templates folder with a base.html 2021-01-10 11:57:12 +11:00
BuildTools
58871299a2 fix your grammar 2021-01-10 11:41:31 +11:00