Commit Graph

381 Commits

Author SHA1 Message Date
Brian Picciano
1de0ab3b72 Define an actual middleware type, use that to set up API routes 2022-05-21 09:17:43 -06:00
Brian Picciano
034342421b Simplify routes by moving formMiddleware to the global level 2022-05-20 19:29:01 -06:00
Brian Picciano
1181af0318 Don't use EDIT method, only POSTs should use alt methods 2022-05-20 19:19:32 -06:00
Brian Picciano
c4692f72e3 Add tag parameter to feed endpoint 2022-05-20 17:51:41 -06:00
Brian Picciano
1f42c5e000 Add tag selector to index 2022-05-20 17:43:47 -06:00
Brian Picciano
47d4787907 Always return results in time desc order from PostStore 2022-05-20 17:31:44 -06:00
Brian Picciano
99f8c1188c Add RSS feed generator 2022-05-20 17:24:52 -06:00
Brian Picciano
b4ca8853a9 Update http config names 2022-05-20 17:04:20 -06:00
Brian Picciano
1ffda21ae3 Implement ratelimit on authentications 2022-05-20 14:54:26 -06:00
Brian Picciano
ae1fa76efc Rename follow.html to follow 2022-05-20 14:32:31 -06:00
Brian Picciano
af434077ef Implement image macro for rendering images 2022-05-20 14:30:26 -06:00
Brian Picciano
16cfbd1915 Move static assets to within srv 2022-05-20 13:37:43 -06:00
Brian Picciano
3cdee89c96 Put post preview behind auth 2022-05-20 11:20:02 -06:00
Brian Picciano
09acb111a2 Rename api package to http 2022-05-20 11:17:31 -06:00
Brian Picciano
f69ed83de7 Add preview button to edit post page 2022-05-20 11:06:21 -06:00
Brian Picciano
2c4b617dde Implement saving of new and edited posts 2022-05-20 10:47:22 -06:00
Brian Picciano
75044eef03 Implement edit post page 2022-05-20 10:13:46 -06:00
Brian Picciano
0bc0204f0b Implement post deleting 2022-05-20 09:33:03 -06:00
Brian Picciano
1242be7cfe Implement posts index page 2022-05-20 08:42:54 -06:00
Brian Picciano
5a99778187 Scatter render.go contents everywhere 2022-05-20 07:59:36 -06:00
Brian Picciano
16f9da05e5 Fix spacing in assets table delete button 2022-05-19 22:47:57 -06:00
Brian Picciano
3664286506 Actually use the auth middleware for assets routes 2022-05-19 22:44:33 -06:00
Brian Picciano
8da42184eb Implement basic auth middleware 2022-05-19 21:35:45 -06:00
Brian Picciano
56530a8a66 Implement asset deletion and fix redirect logic 2022-05-18 10:59:07 -06:00
Brian Picciano
69de76cb32 Add asset file upload form, plus related necessary refactors 2022-05-17 15:54:20 -06:00
Brian Picciano
e406ad6e7c Re-arrange how api endpoints are defined 2022-05-17 15:25:13 -06:00
Brian Picciano
7b7bdcf57a Initial implementation of admin assets page 2022-05-17 14:39:42 -06:00
Brian Picciano
9a67ef9211 Add follow.html to v2 2022-05-17 14:15:38 -06:00
Brian Picciano
e742a2d6d5 Add BlogURL template function 2022-05-17 13:52:18 -06:00
Brian Picciano
0fdece68c0 Add /v2/assets/ handler, with resizing 2022-05-17 13:29:12 -06:00
Brian Picciano
f9d1f664f0 Implement import-asset script 2022-05-17 13:28:56 -06:00
Brian Picciano
4d23325823 Implement cfg.BoolVar method 2022-05-17 11:56:17 -06:00
Brian Picciano
788aba3d0d Fix new index page 2022-05-14 21:35:53 -06:00
Brian Picciano
af08122a25 Add static serve back to dev-shell 2022-05-14 21:28:33 -06:00
Brian Picciano
e24dd6d630 Import posts in dev-shell target 2022-05-14 20:42:43 -06:00
Brian Picciano
e41ff2b897 Implement index handler
This involved re-arranging how templates are being parsed, slightly.
2022-05-14 17:02:30 -06:00
Brian Picciano
4c04177c05 Move template rendering logic into api package 2022-05-14 17:02:16 -06:00
Brian Picciano
dd354bc323 Create srv.dev-shell target in Makefile 2022-05-14 15:22:32 -06:00
Brian Picciano
7e87c09c50 Add /posts handler to api 2022-05-14 15:22:16 -06:00
Brian Picciano
2929b4279c Implement rendering Posts to html 2022-05-14 15:22:10 -06:00
Brian Picciano
d284fe2d25 Fix integration tests 2022-05-08 16:57:04 -06:00
Brian Picciano
a6269d1fe0 Cleanup and fix dev entrypoint target 2022-05-08 16:49:20 -06:00
Brian Picciano
a759fc28f7 Add test target to Makefile to run full integration tests 2022-05-08 16:36:28 -06:00
Brian Picciano
ddb126db17 Move radix config into cfg, use that for integration tests 2022-05-08 16:36:08 -06:00
Brian Picciano
450136a0c0 Implement cachedAssetStore 2022-05-07 18:22:57 -06:00
Brian Picciano
3088c9d76c Implement AssetStore interface 2022-05-07 18:07:27 -06:00
Brian Picciano
cfb633b3b5 Cleanup various small issues with post package 2022-05-07 18:07:13 -06:00
Brian Picciano
07806c6942 Move sql db out of post.NewStore, so it can be shared 2022-05-07 14:56:34 -06:00
Brian Picciano
1495c78656 Move integration tests under a build tag 2022-05-07 14:55:19 -06:00
Brian Picciano
0d016129a4 Implement import-posts script 2022-05-07 14:33:57 -06:00