Commit Graph

91 Commits

Author SHA1 Message Date
leo
b5373602ba
run.go: add license flag
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 23:36:12 +02:00
leo
f00b5bdaf8
handlers: add a TODO [skip ci] 2023-04-19 23:23:22 +02:00
leo
574693ebb2
add .air.toml [skip ci] 2023-04-19 23:23:02 +02:00
leo
7c200b7488
readme: add goreportcard|godocs labels [skip ci] 2023-04-19 23:08:45 +02:00
leo
77a5f190a2
ci: add golangci-lint|godocs pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 23:05:30 +02:00
leo
aa63dafad4
go(handlers): add bluemonday HTML sanitiser
All checks were successful
continuous-integration/drone/push Build is passing
should aid at thwarting XSS.
2023-04-19 22:46:20 +02:00
leo
25335293eb
chore: clean up handlers pkg
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 22:08:17 +02:00
leo
ee98acef74
pre-commit: rm gofumpt hook
gofumpt is already ran as a part of golangci-lint linting process

[skip ci]
2023-04-19 21:48:05 +02:00
leo
8622539294
chore: clean up app pkg
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 21:46:56 +02:00
leo
dc0ce9b27a
chore: clean up run.go
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 21:41:51 +02:00
leo
733f232c49
banner: add moar bling ✨
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 21:22:00 +02:00
leo
aadb409606
go: fully switch to slogging
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 05:30:52 +02:00
leo
c6378d7dd3
pass logger ctx under key 'l'
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 05:18:01 +02:00
leo
608b0952b2
handlers: clean up
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 04:45:49 +02:00
leo
773b10e60b
handlers: handle err on redirects
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 04:09:24 +02:00
leo
ff252df692
handlers: streamline SignupPost
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 04:01:03 +02:00
leo
62e038fa3e
simplify: funcMap member func
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:57:07 +02:00
leo
c6896bdee2
modules/password: simplify return
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:51:42 +02:00
leo
63e5a86cdc
slogging: clean up deadcode
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:49:45 +02:00
leo
58c9446130
handlers: clean up deadcode
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:48:47 +02:00
leo
6ba09987a9
handlers: set cookie with SameSiteStrictMode
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:34:23 +02:00
leo
33c9b8a30e
tmpl: fix 500 on logout
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:29:44 +02:00
leo
7bfa6a6da1
navbar: stretch to larger screen sizes
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:25:42 +02:00
leo
16be42a233
pre-commit: run golangci-lint
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-19 03:01:47 +02:00
leo
4dfb7a78f1
add .golangci.yml [skip ci] 2023-04-19 02:40:08 +02:00
leo
e09d395208
pre-commit: add go-fumpt hook [skip ci] 2023-04-19 02:28:21 +02:00
leo
8cc43bba13
go: switch to a custom slog-based logging solution
All checks were successful
continuous-integration/drone/push Build is passing
* make all packages use the logger
* add a couple of convenience methods on the logger that enable
  formatting using fmt syntax
2023-04-19 02:12:27 +02:00
leo
613bb0d028
ci: use dedicated runners
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-17 21:57:22 +02:00
leo
f129606b8f
add bulk changes
All checks were successful
continuous-integration/drone/push Build is passing
* add handlers for signin,singup,logout...
* introduce ent ORM and add user schema
* add live mode, devel mode to selectively turn on features via
  config/flags
* add templates, handle embedding moar smarter:
  * live mode uses live folder structure, else embedded templates are
    used
* start using tailwindcss to style stuff
* add development goodies for hot-reloading (browser-sync - bs.js)
* pimp-up config.dhall with actual custom config Type (enables remote
  schema and local values only as needed)
* add justfile (alternative to makefile for process automation)
2023-04-13 00:07:08 +02:00
leo
fee253b79e
add .pre-commit-config.yaml,readme badge [skip ci] 2023-04-12 23:50:01 +02:00
leo
774aa742cc
readme: add logo [skip ci] 2023-04-12 23:23:46 +02:00
leo
1d1e09e731
update .editorconfig [skip ci] 2023-04-12 23:14:21 +02:00
leo
b33a9cfae0
ci: add .drone.ci
All checks were successful
continuous-integration/drone/push Build is passing
2023-04-12 22:49:10 +02:00
leo
345838cc76
go: add secure middleware 2023-03-22 23:15:04 +01:00
leo
5937a24ad9
go: add a handler for admin endpoint(s) 2023-03-22 23:11:14 +01:00
leo
5cfad662fc
go: make StartupSettings a method 2023-03-22 23:04:57 +01:00
leo
c945c9fcb7
go: add a method to setup routes 2023-03-22 23:03:21 +01:00
leo
f728a9750f
go: handle SIGINT gracefully 2023-03-22 22:56:25 +01:00
leo
6194f36d73
go: add app struct bearing e,logger; own startup 2023-03-22 22:13:23 +01:00
leo
b78fc9964d
add application that handles basic config 2023-03-19 22:03:12 +01:00
7ff8aa9d87
initial commit 2023-01-30 20:19:53 +01:00