Commit Graph

48 Commits

Author SHA1 Message Date
grumbulon c59553184a added swagger docs, turn nolintlint OFF, and documented API routes in Swagger 2023-01-20 16:53:11 -05:00
grumbulon 4f0a999e08 Merge pull request 'feat(backend): zonefile parsing and other enhancements' (#12) from zonefile into master
Reviewed-on: https://git.freecumextremist.com/grumbulon/pomme/pulls/12
2023-01-20 15:33:06 +00:00
grumbulon 1e5ba290c4 make jwt expiration consistent with cookies 2023-01-20 10:10:27 -05:00
grumbulon 002787c1fc add logging to internal server error 2023-01-20 09:34:01 -05:00
grumbulon a22ad3ec37 added a handler function for common stuff like 500 error, and changed the auth failure handler. Added error handling in a few places. Unexported setDBMiddleware handler 2023-01-19 23:56:38 -05:00
Sam Therapy 16de4f0a43
I am stupid
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-19 15:41:29 +01:00
Sam Therapy a21c93555e
fix misspell
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-19 15:30:23 +01:00
grumbulon 200997976d added sample config 2023-01-09 17:30:39 -05:00
grumbulon 55383869d1 add check for xdg config path and cwd directory config.yaml -- xdg takes presidence if both exist 2023-01-09 17:25:40 -05:00
Sam Therapy a1f848d423
nit: fix comment to make correct
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-09 19:28:04 +01:00
grumbulon a3230fbc72 fix login oppsie, fix zonefile query to check filename and username, and linting 2023-01-09 18:19:07 +00:00
grumbulon da5bd54b3e amended the Zone schema, fixed file upload size too small issue, refactoring, and zone file parsing works now 2023-01-09 18:19:07 +00:00
grumbulon e363c83009 if already logged in return on login func and generate cookie for newly created users -- ensure all redirect to index 2023-01-09 18:19:07 +00:00
grumbulon 6e8f401e70 refactor, lint, refactor, lint, refactor, etc. Added config path for hashing secret, and a few other things 2023-01-09 18:19:07 +00:00
grumbulon 53e8d01cb9 handle file upload, create temp file, write that request made to DB using user/zone_file relation in DB, do other shit I forgot, linting 2023-01-09 18:19:07 +00:00
Renovate Bot 3e77954af6 chore(deps): update dependency vitest to ^0.27.0 2023-01-09 18:18:55 +00:00
Sam Therapy c4e309bf2f
fix(make): the stuff after the colon idk the name
make it right

Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-09 18:57:14 +01:00
grumbulon 5d5774e371 add bug, feature, and pr templates 2023-01-07 09:25:56 -05:00
Sam Therapy b5599eb055 feat(frontend): workspaces (#13)
Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: https://git.freecumextremist.com/grumbulon/pomme/pulls/13
2023-01-07 14:18:43 +00:00
Renovate Bot 0e09ff1856 fix(deps): update module gorm.io/gorm to v1.24.3 2023-01-06 14:30:27 +00:00
Renovate Bot 4f366c1cf3 chore(deps): update dependency vitest to ^0.26.0 2023-01-06 14:13:49 +00:00
Sam Therapy 46ee2f0157
frontend: remove --tsconfig from svelte-check
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2023-01-06 15:13:36 +01:00
Renovate Bot 14ee8b285c chore(deps): update dependency svelte-check to v3 2023-01-06 14:12:31 +00:00
Renovate Bot 76bda66fdb fix(deps): update module golang.org/x/crypto to v0.5.0 2023-01-06 00:30:43 +00:00
grumbulon c005016cb2 adding error returns or else bad things happen and adding max cookie age of 1 hr 2023-01-05 19:15:15 -05:00
Renovate Bot e5bf6169d8 Configure Renovate (#3)
Co-authored-by: Renovate Bot <sam+renovate@samtherapy.net>
Co-committed-by: Renovate Bot <sam+renovate@samtherapy.net>
2023-01-03 16:37:00 +00:00
grumbulon 63c262b028 Merge pull request 'feat: auth flow' (#4) from chi-gorm-middleware into master
Reviewed-on: https://git.freecumextremist.com/grumbulon/pomme/pulls/4
2022-12-31 19:29:57 +00:00
grumbulon ff24f2e713 fix error message 2022-12-31 13:31:37 -05:00
grumbulon ec4a7ed396 fixed a big oops 2022-12-31 13:23:09 -05:00
grumbulon e2fbc9b1a1 review suggestion 2022-12-31 10:58:20 -05:00
grumbulon c3c533558f linted, added a custom web server definition with timeouts, added new type of context key, and added linting to the makefile 2022-12-31 10:05:20 -05:00
grumbulon 11692efdd1 small response stuff 2022-12-30 23:22:44 -05:00
grumbulon f469d20e06 move files around, make sure cookies work, and add logout 2022-12-30 23:15:09 -05:00
grumbulon c7893eb38e do the jwt shit 2022-12-30 21:48:01 -05:00
grumbulon e4236f235f add gorm chi middleware and fix up create and login functions 2022-12-30 19:47:47 -05:00
Sam Therapy 5fa55b22e1
autism: go mod tidy
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-30 22:55:12 +01:00
Sam Therapy 5c2dcf5cec
makefile
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-30 22:21:00 +01:00
grumbulon c8a22b5924 Merge pull request 'frontend :)' (#2) from frontend-init into master
Reviewed-on: https://git.freecumextremist.com/grumbulon/pomme/pulls/2
2022-12-30 18:40:37 +00:00
Sam Therapy 20a9fef0b6
add basic install instructions
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-30 19:27:46 +01:00
Sam Therapy 3771eaedfd frontend :)
Signed-off-by: Sam Therapy <sam@samtherapy.net>
2022-12-30 18:24:51 +00:00
Sam Therapy fe454dd2c7 Use pure go sqlite instead of the cgo one (#1)
Co-authored-by: Sam Therapy <sam@samtherapy.net>
Reviewed-on: https://git.freecumextremist.com/grumbulon/pomme/pulls/1
2022-12-30 18:04:44 +00:00
grumbulon 93b9f23a25 handle incoming requests of zonefiles somewhat 2022-12-11 22:15:35 -05:00
grumbulon 2965700048 more auth stuff 2022-12-11 10:54:32 -05:00
grumbulon 06210317dd database thing 2022-12-11 01:57:53 -05:00
grumbulon 11e6900e1d switched from mux to Chi for way better auth middleware support, started building out auth flow, and a few other things 2022-12-11 01:10:02 -05:00
grumbulon d96b7a8b99 initial commit 2022-12-02 21:16:34 -05:00
grumbulon cd09dc190a initial commit 2022-12-02 21:15:49 -05:00
grumbulon f0c9c53331 Initial commit 2022-12-03 02:12:49 +00:00