Commit Graph

249 Commits

Author SHA1 Message Date
leo
32aa8d8852
go: add+enable compression middleware
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-31 22:42:50 +02:00
leo
5cf5ba51bc
go: enable HEAD method for some routes
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-31 22:32:25 +02:00
leo
ffc9b74c75
go: add a simple caching middleware for assets
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-31 22:29:52 +02:00
leo
dbd0e9d01d
go: implement session auth middleware
All checks were successful
continuous-integration/drone/push Build is passing
* simplify protection of endpoints
* role discernment still occures in respective handlers
* db client needs to be passed into handlers as a global var now
2023-05-30 23:50:37 +02:00
leo
1f11b71341
user-mgmt: clear err messages + page rendering
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-30 21:08:34 +02:00
leo
ef6ef17715
feat: don't compare pcmt.css in ci
All checks were successful
continuous-integration/drone/push Build is passing
* unstage pcmt.css, needs to be built separately
* generate the stylesheet in ci and build the app with that
* add better instructions to readme on how to build the app
* add more justfile targets for convenience
2023-05-30 20:43:19 +02:00
leo
ae5c4f1dd4
go,tmpl: add usr details listing
All checks were successful
continuous-integration/drone/push Build is passing
* add tmpl
* add handler for route /manage/user/:id
* add convenience helper func
* handle not found/invalid uuid errors
2023-05-29 22:42:18 +02:00
leo
06c2c79aa8
singin.tmpl: improve form
All checks were successful
continuous-integration/drone/push Build is passing
* add limits to inputs
* signify with CSS when the input is incorrect
* rebuild tailwind
2023-05-29 14:57:13 +02:00
leo
771dc0d55c
chore: bump npm deps
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-28 23:15:56 +02:00
leo
e2a29fa692
handlers,tmpl: render+log signin better errors
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-28 22:47:10 +02:00
leo
fcd723d062
dockerignore: add node_modules [skip ci] 2023-05-28 20:05:51 +02:00
leo
f53953e920
containerfile: install npm, gen stylesheet
[skip ci]
2023-05-28 20:05:01 +02:00
leo
17540bf453
just(svgo): look for tmpls in subdirs [skip ci] 2023-05-28 18:59:40 +02:00
leo
395ab701f2
just: run db with --replace [skip ci] 2023-05-28 18:58:32 +02:00
leo
e0a7656b2b
handlers(types): add validation
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-28 18:57:37 +02:00
leo
11de8de558
go: add local breach data schema
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-26 01:59:09 +02:00
leo
ff68a7dbe3
go: fix port default,flag handling
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-23 16:37:33 +02:00
leo
11b28e3d39
readme: fixes and corrections [skip ci] 2023-05-23 14:03:02 +02:00
leo
547f6e7b3c
add user creation
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-22 06:47:33 +02:00
leo
cca2b360f4
navbar: fix background
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-22 03:49:42 +02:00
leo
97ea29d043
add user listing
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-22 03:22:58 +02:00
leo
9972551239
run: improve config load err message
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-21 18:59:12 +02:00
leo
874cdcec3a
just,pre-commit: fix typos [skip ci] 2023-05-21 18:54:28 +02:00
leo
6ce05ea74d
feat: add initial admin user creation
All checks were successful
continuous-integration/drone/push Build is passing
have the app create the initial admin user:
* if the db has not yet been set up
* if there are not users
* if the config value for Init.CreateAdmin is True
* if the admin password is not empty

default username, email values can be seen in modules/user/const.go
2023-05-21 18:50:41 +02:00
leo
744090aa9a
enable erasing ENVs
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-21 16:00:22 +02:00
leo
9eb811169d
feat: bump configuration schema to 0.0.1-rc.2
All checks were successful
continuous-integration/drone/push Build is passing
this entails a couple of breaking changes due to schema evolution. once
the schema is stabilised, backward compatibility promise will be given.

* update config struct and accompanying scructs
* update tests
* update exampleConfig.dhall
* update local dev environment (devenv)
* make settings reflect the config schema changes
* make use of some settings/config updates
2023-05-21 12:44:18 +02:00
leo
7b5366daa4
just: fix db init args [skip ci] 2023-05-20 21:31:27 +02:00
leo
3a2f85f683
feat: add license headers (+spdx id)
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-20 20:15:57 +02:00
leo
9159cc315e
just: make sure the db folder exists [skip ci] 2023-05-20 19:05:37 +02:00
leo
af87336ac0
readme: add pods example [skip ci] 2023-05-20 18:58:09 +02:00
leo
f8bfad1da5
readme: add custom config section [skip ci] 2023-05-20 18:31:59 +02:00
leo
298e838d0b
readme: add instructions on running pcmt [skip ci] 2023-05-20 18:27:32 +02:00
leo
6ebf092b9f
ci,just,pre-commit: add Containerfile
All checks were successful
continuous-integration/drone/push Build is passing
* lint in pre-commit, ci, justfile
* build on feature branches and PRs and publish on tags.
* add a symlink to Dockerfile
2023-05-20 18:05:26 +02:00
leo
723c3fea5f
justfile: add db init args [skip ci] 2023-05-20 18:00:02 +02:00
leo
ac7c1ae431
add TODOs [skip ci] 2023-05-17 20:55:09 +02:00
leo
72723d951d
go(refactor): clean up run.go
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-17 20:40:24 +02:00
leo
4de0576c26
go: add some more startup checks for DB
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-17 13:35:13 +02:00
leo
e5980b15e5
update TODOs [skip ci] 2023-05-17 13:21:14 +02:00
leo
be1709794a
fix(session panic): check if nil before use
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-16 13:49:02 +02:00
leo
ad6bcac326
css: stage the tailwind-built file
All checks were successful
continuous-integration/drone/push Build is passing
ci: save the generated file in the tmp folder and do a diff with the
staged file
2023-05-16 12:13:49 +02:00
leo
695039e882
handlers(echo): use c.Bind in sign{in,up}
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-15 23:57:38 +02:00
leo
15918d4cd7
tmpls: set required attr for form fields
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-15 18:37:34 +02:00
leo
532934b88f
browserSync: update what gets watched [skip ci] 2023-05-15 15:25:58 +02:00
leo
50c3c939b6
head.tmpl: add Content Security Policy meta attr
All checks were successful
continuous-integration/drone/push Build is passing
* implement calculating integrity for script, stylesheet assets
* break out browser-sync loader script to its own file (instead of
  inline)
* implement Content Security Policy that only allows BrowserSync scripts
  and hooks to load from localhost when DevelMode is enabled (i.e. not
  in production)
2023-05-15 14:12:39 +02:00
leo
852cc60a9e
go(funcmap): add sha384,sha512 funcs
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-14 22:53:25 +02:00
leo
31ab083f8a
handlers: add health-check endpoints
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-13 22:33:38 +02:00
leo
ac4cc4ad48
config: expand comment [skip ci] 2023-05-13 21:33:55 +02:00
leo
3a86905b14
config: rename LoadConfig to Load
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-13 19:44:32 +02:00
leo
23bd5df200
readme: update link to logo [skip ci] 2023-05-13 14:15:55 +02:00
leo
1dc22cb811
config: add schemaCompatibility
All checks were successful
continuous-integration/drone/push Build is passing
2023-05-12 23:29:16 +02:00