30347cd485
gitignore: ignore vim sessions [skip ci]
2023-05-10 12:42:26 +02:00
a879704535
go: partially rework how slogging works
continuous-integration/drone/push Build is passing
2023-05-09 17:35:00 +02:00
e44238600b
slogging: add a default if unknown level is set
continuous-integration/drone/push Build is passing
2023-05-09 13:23:51 +02:00
0efb419d56
tmpl,just: process SVGs with svgo
continuous-integration/drone/push Build is passing
2023-05-08 23:42:27 +02:00
df0c280ad1
go: redo asset handling
...
continuous-integration/drone/push Build is passing
* only embed substructure of assets
* create subfolders for css, imgs
* add .gitattributes file specifying pcmt.css as generated (by tailwind)
2023-05-08 00:13:33 +02:00
1b2679ad97
go: add generate mechanism for frontend
continuous-integration/drone/push Build is passing
2023-05-07 19:37:44 +02:00
0490786f11
refactor(handlers): break out signin funcs
continuous-integration/drone/push Build is passing
2023-05-07 00:19:10 +02:00
e122e26596
templates(navbar): condition the link target
continuous-integration/drone/push Build is passing
2023-05-07 00:14:32 +02:00
4f697282cf
templates: align footer with the main container
continuous-integration/drone/push Build is passing
2023-05-07 00:12:37 +02:00
9dbc475145
go: implement the Echo renderer for templates
continuous-integration/drone/push Build is passing
2023-05-06 21:50:35 +02:00
e651235f90
air: update config [skip ci]
2023-05-06 13:49:23 +02:00
7d1c65e5a9
config: rename dir testconfigs to testdata
continuous-integration/drone/push Build is passing
2023-05-06 13:47:46 +02:00
f8df3f3806
dhall: switch to using the versioned config
...
continuous-integration/drone/push Build is passing
the Dhall config package formerly in ./config/schema has been moved to
https://git.dotya.ml/mirre-mt/pcmt-config-schema/ , meaning the schema
has been decoupled from this repository.
the schema is now being versioned, which makes it easier to progress
without breaking stuff (unless we wanted to reference the versions by
commit hashes...).
* use schema version 0.0.0
2023-05-06 01:48:03 +02:00
c4f8cf87f5
go: redirect signed users from / to /home
continuous-integration/drone/push Build is passing
2023-05-06 00:09:13 +02:00
eafc9c1e92
go,tmpl: conditionally show content to users
continuous-integration/drone/push Build is passing
2023-05-06 00:03:41 +02:00
0a34bca1c1
go: allow choosing db type, setting connstr
continuous-integration/drone/push Build is passing
2023-05-05 23:10:56 +02:00
f1bb52c58f
go: add a setting val for whether db is set up
continuous-integration/drone/push Build is passing
2023-05-05 22:58:13 +02:00
b1ab686493
go: add db module for preps/checks
continuous-integration/drone/push Build is passing
2023-05-05 22:52:59 +02:00
4dad751716
handlers: rm pages.go [skip ci]
2023-05-05 19:58:35 +02:00
bb4854cf1f
nix: add devenv
continuous-integration/drone/push Build is passing
2023-05-05 19:43:28 +02:00
bfafc4a8be
config: update schema
...
continuous-integration/drone/push Build is passing
* couple session-related attrs in a record
* couple logger-pertaining attrs in a record
* update config Go representation
* update Go config consumers
2023-05-05 19:31:43 +02:00
5a1ec4fe28
js: correct the commands [skip ci]
2023-05-05 15:09:02 +02:00
dfdcc77737
conf: add pretty printing,raw conf, conf tests
...
continuous-integration/drone/push Build is passing
* also, set debug logger directly in config if devel mode is set
* add new flag to indicate whether the passed config is path or raw
config
2023-05-04 23:49:25 +02:00
2a56ba3456
ci: bump golang to 1.20.4
continuous-integration/drone/push Build is passing
2023-05-05 01:33:36 +02:00
d9265cafa8
config: use new form + add example [skip ci]
...
* also unstage config.dhall and add it to the list of the ignored
2023-05-04 21:40:25 +02:00
746eb82f67
go: make sure flags are properly checked
continuous-integration/drone/push Build is passing
2023-05-04 21:28:30 +02:00
44025ccd36
dhall: create a package for config [skip ci]
2023-05-04 21:02:15 +02:00
0c835d0daf
fix(config.dhall): correct the port range
...
continuous-integration/drone/push Build is passing
well this is embarassing
2023-05-04 16:42:05 +02:00
9fd55dbc0b
app: pre-declare errors
continuous-integration/drone/push Build is passing
2023-05-04 16:38:15 +02:00
38f72825e0
app: switch a couple of Info statements to Debug
continuous-integration/drone/push Build is passing
2023-05-04 16:35:41 +02:00
18adb45692
ci: make frontend depend on pull
...
continuous-integration/drone/push Build is passing
* change git status checking method to git diff-index
2023-05-04 15:12:24 +02:00
1f427abbbe
ci: rename 'npm i' to 'frontend'
continuous-integration/drone/push Build is passing
2023-05-04 15:09:29 +02:00
f3b6075c27
ci: set GOPATH on arch to make use of caching
continuous-integration/drone/push Build is passing
2023-05-04 15:07:07 +02:00
48e3c49b52
ci: run tests sooner
continuous-integration/drone/push Build is passing
2023-05-04 15:00:42 +02:00
6c47b6e354
just: run pg with user namespaces [skip ci]
2023-05-04 00:12:39 +02:00
ecd3330ea8
fix(just): mount actual data folder [skip ci]
2023-05-04 00:12:14 +02:00
279514f350
just: add prod target [skip ci]
2023-05-03 23:58:40 +02:00
6c061fb94f
just: add db{start,stop} targets [skip ci]
2023-05-03 23:58:23 +02:00
0a5d4e7d30
go: use enttest in tests
continuous-integration/drone/push Build is passing
2023-05-03 23:21:47 +02:00
0ac668d001
mod/usr: fix typo [skip ci]
continuous-integration/drone/push Build is passing
2023-05-03 22:43:51 +02:00
4f2302143d
mod/user: rewrite some if statements as switches
continuous-integration/drone/push Build is passing
2023-05-03 22:42:08 +02:00
0125bff8bd
embed: add specificity
continuous-integration/drone Build is passing
continuous-integration/drone/push Build is passing
2023-05-03 06:38:26 +02:00
a2c17693c6
go: save,verify a bcrypt hash of the passwd
continuous-integration/drone/push Build is passing
2023-05-03 06:30:12 +02:00
5a3ce50bb2
mod/user: don't print out the raw usr object
continuous-integration/drone/push Build is passing
2023-05-03 06:09:44 +02:00
faefe3b577
mod/user: add check for when usr is not found
continuous-integration/drone/push Build is passing
2023-05-03 06:08:28 +02:00
ce70bbe196
index.tmpl: credit gopher design
continuous-integration/drone/push Build is passing
2023-05-03 06:07:32 +02:00
78774ac3ad
errorPage.tmpl: increase msg font size
continuous-integration/drone/push Build is passing
2023-05-03 06:06:32 +02:00
24b62dad98
air: don't rebuild on tmpl changes [skip ci]
2023-05-03 06:05:07 +02:00
864e2ec815
handlers.go: change msg log level
continuous-integration/drone/push Build is passing
2023-05-03 06:03:38 +02:00
672132a109
go: die even more reliably on error
continuous-integration/drone/push Build is passing
2023-05-03 05:58:09 +02:00