68 Commits

Author SHA1 Message Date
ajurna e5086ec653 Add authentication and session management improvements
Build and push image / deploy (push) Has been cancelled
Introduce navigation guards for authentication and admin access within routes. Replace localStorage usage with secure token storage via httpOnly cookies, and add token blacklisting upon logout. Enhance token refresh mechanism and session expiration handling to improve security and user experience.
2025-05-21 22:53:29 +01:00
ajurna dd5817419b Remove ThePdfReader.vue and migrate PDF handling to pymupdf
This commit removes the frontend component ThePdfReader.vue and replaces its functionality with a backend implementation based on pymupdf. Also includes package updates, refactors PDF archive handling, and adjusts security settings to support development on localhost.
2025-05-21 22:30:34 +01:00
ajurna 708df71220 Merge remote-tracking branch 'origin/master'
# Conflicts:
#	.pre-commit-config.yaml
#	Dockerfile
#	frontend/package-lock.json
#	frontend/package.json
#	poetry.lock
#	pyproject.toml
2025-04-02 11:35:56 +01:00
ajurna 871f930727 update libs 2025-04-02 11:32:47 +01:00
ajurna 50d46ab835 updating deps
Build and push image / deploy (push) Has been cancelled
2023-10-13 10:17:44 +01:00
Peter Dwyer db23064929 library bumps
version bump.
added inital build action
2023-08-28 11:14:53 +01:00
ajurna 2647a0e31e Merge pull request #77
* added timestamp to comicstatus.

* added timestamp to comicstatus.
2022-09-19 12:18:46 +01:00
Peter Dwyer 08fade65ab adding typing and flake8 2022-09-01 11:06:12 +01:00
Peter Dwyer f0bcf6df6f merging logger.py into base.py. 2022-08-31 15:16:42 +01:00
Peter Dwyer b191c332b9 fix for columns alignment and title readability. 2022-08-29 15:27:49 +01:00
ajurna 5ca3c396ea Docker optimisation (#74)
* optimised docker image.

* bump version

Co-authored-by: Peter Dwyer <peter.dwyer@clanwilliamhealth.com>
2022-08-26 16:08:48 +01:00
ajurna 40b79c2f5d V1 cleanup (#73)
* removed obsolete code

* removed obsolete code

* removed obsolete code and added type annotations

* removed obsolete code and added type annotations

* version bump

Co-authored-by: Peter Dwyer <peter.dwyer@clanwilliamhealth.com>
2022-08-26 13:11:29 +01:00
ajurna c5633bf54a New Frontend in Vue with drf interface (#72)
* frontend rewrite with vie initial commit

* got ComicCard.vue working nice.

* got TheComicList.vue working.

* added router and basic config

* getting jwt stuff working.

* login with jwt now working.

* implemented browse api call

* implemented browse api recievers

* jwt token is now updating automatically.

* removed code for jwt testing.

* enabled browsing

* breadcrumbs working

* adding django webpack loader

* linking up navigation

* fixes for ComicCard.vue stying

* added thumbnail view

* added thumbnail generation and handling.

* detached breadcrumbs

* fix breadcrumbs

* added first stages of reader

* reader view is working.

* reader is now working with keyboard shortcuts

* implemented setting read page.

* implemented pagination on comic reader.

* hide elements that shouldn't be shown.

* fixed the ComicCard.vue to use as little space as possible.

* fix navbar browse link

* added RecentView.vue and added manual option for breadcrumbs

* updated rest api to handle recent comics.

* most functionality of recent comics done

* modified comicstatus relation to use uuid relation and implemented mark read and unread for batches.

* added functions to TheRecentTable.vue

* added feed link to TheRecentTable.vue

* fixes for comicstatus updates.

* added constraints to comicstatus

* update to python packages.

* some changes for django 4, also removed django-recaptcha2 as it doesnt support django 4.

* some fixes and updates to ComicCard.vue

* cleaned up generate_directory. fixed bug where pages not visible on first call.

* cleaned up generate_directory. fixed bug where pages not visible on first call.

* cleaned up generate_directory. fixed bug where pages not visible on first call.

* cleaned up generate_directory.

* added silk stubs

* fix for re-requesting thumbnail after getting it already.

* fix for removing stale comics.
adding leeway to access token.

* mark read and unread

* added filtering to comic list.

* stored filtering state.

* stored filtering state.

* added next functionality to login.

* cleanup LoginView.vue

* bump font-awesome.

* working on AccountView.vue

* fixed form submission on LoginView.vue

* account page should now be working.

* hide users option if not superuser.

* added pdf support

* make pdf resize.

* added touch controls to pdf reader

* added touch controls to comic reader

* beginnings of routing between issues.

* fixes for navigating pages.

* fixes for navigating pages.

* fixes for navigating pages.

* renamed HomeView.vue to BrowseView.vue

* stubs for users page added. api ready

* users page further functinality

* fix for notification

* fix for notification

* moved messages to parent.

* form to add users

* added error handling

* removed console logging

* classification in base directory should be lowest

* renamed usermisc to classification to be more consistent with what it does.

* renamed usermisc to classification to be more consistent with what it does.

* added functionality to change classification of directories.

* merged rss_id api into account api.

* merged breadcrumbs api into browse api.

* clears some warnings from console.

* fixed read/unread rendering.

* added build script and starting lint

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing lint errors

* fixing navigation bugs

* cleanup and fixes

* fixed generated tooltips over calling.

* fixed classifications.

* initial setup now working

* fix navbar branding

* fix favicon

* added beta build script.

* fixes to get ready for production

* optimisations for loading new comics.

* added loading indicators to TheComicList.vue

* lint fixes

* made two methods static. may use them elsewhere.

* fix for scanning files.

* version updates.

* fixes for production

* fixes for production

Co-authored-by: Peter Dwyer <peter.dwyer@clanwilliamhealth.com>
2022-08-25 15:42:20 +01:00
ajurna 82981482df tighten security 2022-04-02 08:37:47 +01:00
ajurna 8f0eb5d23c tighter security 2022-04-01 21:07:57 +01:00
ajurna 5d0b0dd50a updating and adding more security 2022-04-01 08:53:02 +01:00
ajurna fb8bbe65a4 update reveal.js 2022-03-31 22:57:32 +01:00
ajurna 715f0838b9 Node assets (#36)
* moved all static files to node_modules

* updating Dockerfile

* updating Dockerfile

* updating Dockerfile

* updating Dockerfile

* fixed fontawesome

* added psql client in case it's needed.

* removed some debug stuff from scan_comics.py

* fixed generete_directory to cover missing thumbnails
2021-05-17 09:38:47 +01:00
ajurna 76a1863b73 Update __init__.py
fixed typo
2021-05-16 16:21:09 +01:00
ajurna a3ba0e459a fixed settings import. 2021-05-16 12:47:51 +01:00
ajurna cd58379326 Sri (#35)
* added django-sri and updated templates.

* updated requirements.txt

* datatables with integrity

* fixed recent comics not showing when related comicstatus doesnt exist.

* fixed classifications on recent comcis.

* fixed classifications on recent comcis.

* fixed classifications on recent comcis.

* fixed classifications on recent comcis.

* fixed classifications on recent comcis.

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fixes for pymupdy 1.18.13

* fix for pdf's not switching properly

* fix for comics's not switching properly

* fix for comics's not switching properly
2021-05-16 10:54:14 +01:00
ajurna ce38340a22 Classification (#32)
* added some code cleanup for views.py

* added some code cleanup for views.py

* fixed comics not working in the base directory.
2021-05-11 15:52:56 +01:00
ajurna c0a1160bc1 Dotenv (#28)
* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes

* docker-compose.yml fixes
2021-05-04 15:46:40 +01:00
ajurna d175a790fa docker-compose.yml fixes 2021-05-04 14:23:57 +01:00
ajurna 10ffd01a2e adding csp 2021-05-04 09:21:13 +01:00
ajurna d21ec61f06 adding csp 2021-04-30 19:37:56 +01:00
ajurna 5eecbf1075 adding csp 2021-04-29 23:07:57 +01:00
ajurna 3f8a41504f fix for dropdowns not working. 2021-04-29 16:55:03 +01:00
ajurna d40c8e270c Rewrite of Comic lists so that tehy have thumbnails. (#26) 2021-04-23 18:21:25 +01:00
ajurna 9fb2a1c15c added django_extensions and updated admin settings. 2021-04-21 09:11:28 +01:00
ajurna 64acde19db fixed tests working. 2021-04-15 14:05:45 +01:00
ajurna 43fc877445 fixed tests working. 2021-04-15 11:33:36 +01:00
ajurna 1d5dcb90c0 added a lock on a critical path when regenerating pages. this should allow all images to load correctly 2021-04-09 11:29:03 +01:00
ajurna dd806f0bce added a lock on a critical path when regenerating pages. this should allow all images to load correctly 2021-04-08 16:10:28 +01:00
ajurna c32f12cce7 fixed tests.
removed os based file access.
removed rarfile integration now using package.
now using environment variable for comic directory.
2021-04-07 16:30:46 +01:00
ajurna 9900467413 fix's for django 3.2 2021-04-07 11:59:52 +01:00
ajurna 31a7d8f45a fix for duplicate files being created. 2020-11-03 08:36:57 +00:00
ajurna 7d2e3a636e added sorting so as to give some idea when it will finish. 2020-05-26 11:17:09 +01:00
ajurna 14caef1e42 added python-dotenv and updated crontab example to load environment variables so the scan_comics will get the correct settings. 2020-05-26 10:22:23 +01:00
ajurna 2630c614e7 fix for URL's not working correctly behind a reverse proxy. 2020-05-26 10:12:04 +01:00
ajurna 8ddfcb7965 fix for URL's not working correctly behind a reverse proxy. 2020-05-25 18:43:52 +01:00
ajurna 6f8a7bd4b8 optimised directory listing query 2020-05-22 15:40:15 +01:00
ajurna e4a181209b added dev config with silk configured. 2020-05-22 11:09:48 +01:00
ajurna 341513b016 adding logging 2020-05-22 09:38:19 +01:00
ajurna 2debda7abc fixed bug with debug env 2020-05-14 16:46:51 +01:00
ajurna f5f05d5e4d fixed settings and user management. 2020-05-14 16:05:23 +01:00
ajurna 02bed2e7d8 fixed settings and user management. 2020-05-14 14:21:07 +01:00
ajurna 73de37f784 migration to bootstrap 4 2020-05-14 11:23:11 +01:00
ajurna f87ab8636b Merge pull request #7 from apoclyps/docker-support
[ISSUE-3] Adding docker support
2019-07-25 22:35:13 +01:00
Apoclyps 2bc64f690a Configuring Postgres for application and test 2019-07-24 22:20:35 +01:00