Commit Graph

61 Commits

Author SHA1 Message Date
Oliver Booth 1588f6c8f6
refactor!: move services and entities to common proj 2024-03-02 00:56:59 +00:00
Oliver Booth e11c8327ec
feat: add CDN backend API 2024-02-29 18:10:04 +00:00
Oliver Booth 0a86721db2
feat: save drafts (version history) when post is updated 2024-02-29 18:06:30 +00:00
Oliver Booth 6efbd749be
Merge branch 'main' into feature/admin 2024-02-26 13:14:20 +00:00
Oliver Booth d655b46db5
fix: fix NRE on null HtmlNodeCollection 2024-02-26 13:14:02 +00:00
Oliver Booth 4b2223634e
feat: add blog post editing 2024-02-26 02:50:48 +00:00
Oliver Booth faf3c4c3a8
feat: implement MFA for admin login 2024-02-25 17:21:29 +00:00
Oliver Booth d38167bb97
feat: add user agent verification to session 2024-02-25 17:18:43 +00:00
Oliver Booth 8f96251f94
feat: add secure and samesite policy for sid 2024-02-25 16:00:15 +00:00
Oliver Booth 9a447db891
fix: expire sid after 30 days 2024-02-25 14:17:11 +00:00
Oliver Booth 6db9537206
refactor: delegate session->user check to service 2024-02-25 14:16:55 +00:00
Oliver Booth 1d1acd2a40
feat: add visibility search to GetAllBlogPosts 2024-02-25 14:15:21 +00:00
Oliver Booth 9593979d7b
feat: expose method to delete sid 2024-02-25 14:14:32 +00:00
Oliver Booth 2a16c185fe
fix: fix user validation check 2024-02-25 14:13:12 +00:00
Oliver Booth 9c938bc730
style: amend 278c807fa3 2024-02-25 14:12:58 +00:00
Oliver Booth e21dfd17ff
refactor: purge expired sessions on startup 2024-02-25 14:12:28 +00:00
Oliver Booth 0837092d5f
fix: fix expiration date check 2024-02-25 14:12:04 +00:00
Oliver Booth 278c807fa3
style: apply braces style to project 2024-02-25 14:11:33 +00:00
Oliver Booth 14d73851ea
refactor: delegate cookie writing to SessionService 2024-02-24 15:37:39 +00:00
Oliver Booth fa394480b1
refactor: move Session entity to Web area 2024-02-24 15:27:03 +00:00
Oliver Booth 951500ca91
refactor: validate session separately 2024-02-24 15:04:03 +00:00
Oliver Booth 8ef34d014b
refactor: rename BlogUserService to UserService 2024-02-24 14:52:43 +00:00
Oliver Booth bd55ac28e3
Merge branch 'main' into feature/blog-admin 2024-02-24 03:42:08 +00:00
Oliver Booth 6b3e8d06df
fix: strip Mastodon's botched formatting in links 2024-02-24 00:43:14 +00:00
Oliver Booth 0aa9754714
refactor: remove unused imports 2024-02-23 15:46:32 +00:00
Oliver Booth 70f167c9c3
feat: add support for mastodon media 2024-02-23 05:36:31 +00:00
Oliver Booth 279d824772
feat: add mastodon status card 2024-02-23 03:23:57 +00:00
Oliver Booth 8fda2e9907
feat: add blog admin page and simple login 2024-02-20 20:39:52 +00:00
Oliver Booth cbfdefae71
style: redesign projects page
This change separates the project logo and details into separate pages and makes the list more visually striking.
2023-12-24 12:20:03 +00:00
Oliver Booth 1f6825c9df
feat: add contact blacklist 2023-12-22 14:26:18 +00:00
Oliver Booth 47069f5ece
fix: amend 5cb61d275d
Add missing services
2023-12-14 16:31:55 +00:00
Oliver Booth c3706213f7
chore: remove unused imports 2023-09-25 20:06:30 +01:00
Oliver Booth 6b1a75bfcc
feat: load projects from db 2023-09-24 14:37:38 +01:00
Oliver Booth d114870f87
feat: add links to next and prev articles 2023-09-19 19:29:21 +01:00
Oliver Booth 0e583de316
feat(blog): add post visibility and password 2023-08-20 14:23:04 +01:00
Oliver Booth 09f3535d77
refactor: remove unused ns import 2023-08-15 17:07:49 +01:00
Oliver Booth 7ee9d3637c
feat: add support for template variants 2023-08-15 17:04:43 +01:00
Oliver Booth dc83309db7
perf(blog): cache users 2023-08-13 18:03:08 +01:00
Oliver Booth 369436ccce
refactor: use global templates 2023-08-13 18:02:19 +01:00
Oliver Booth 0a9c2e82d5
refactor: combine sites into one
CORS was "cors"ing some issues (heh).

But also it is easier to maintain this way. Development was made much more difficult when I separated it. Combining it all also improves SEO
2023-08-13 17:34:38 +01:00
Oliver Booth 287af40501
feat: share template system among all projects 2023-08-13 13:27:44 +01:00
Oliver Booth 692d688dc3
refactor: remove unused config service 2023-08-12 22:38:28 +01:00
Oliver Booth 58799594ae
refactor: switch to serilog 2023-08-12 21:06:48 +01:00
Oliver Booth e8bc50bbdf
refactor: move blog to separate app
I'd ideally like to keep the blog. subdomain the same, and while there are a few ways to achieve this it is much simpler to just dedicate a separate application for the subdomain.

This change also adjusts the webhost builder extensions to default to ports 443/80, and each app now explicitly sets the port it needs.
2023-08-12 20:13:47 +01:00
Oliver Booth 641313f97a
refactor: remove Author schema
Introducing new User which serves both as author model and credential model
2023-08-12 14:24:27 +01:00
Oliver Booth 47b648f327
fix: fix markdown formatting inside templates 2023-08-11 21:51:16 +01:00
Oliver Booth 6f7fa67135
refactor: move DateFormatter to child ns 2023-08-11 21:34:04 +01:00
Oliver Booth 034bd66b29
feat: format template arguments 2023-08-11 21:33:14 +01:00
Oliver Booth e9d9836238
refactor: move Template extension to subnamespace 2023-08-11 16:35:13 +01:00
Oliver Booth 143131b413
style: remove BOM 2023-08-11 15:51:20 +01:00