Commit graph

98 commits

Author SHA1 Message Date
Tom
e2f5c66b1c Remove custom template logic
This commit removes custom template logic in the entire distillery
codebase.
2023-07-14 15:23:21 +02:00
Tom
588cb7ebaa stack: Do not use templates for env files
This commit removes the templating logic for writing .env files.
Instead it simply writes a key-value directory directly to the destined
file.
2023-07-14 14:06:10 +02:00
Tom Wiesing
0f6803f890
Use fsx package and friends from pkglib 2023-04-08 17:52:19 +02:00
Tom Wiesing
9b30223b09
Update dependencies 2023-03-15 19:45:50 +01:00
Tom Wiesing
2493cbb078
pkg/logging: Remove unneeded argument 2023-03-13 13:24:19 +01:00
Tom Wiesing
d7847b5d69
logging: Replace functions by native equivalents 2023-03-13 13:19:32 +01:00
Tom Wiesing
4fc937841a
pkg/logging: Remove unused methods 2023-03-13 13:05:51 +01:00
Tom Wiesing
668f1dd193
component/web: Implement nicer compose reader 2023-03-07 10:51:18 +01:00
Tom Wiesing
9807213e60
Replace deprecated os.Is{Not,}Exist calls
This commit replaces deprecated calls to `os.Is{Not,}Exist` with the
newer `errors.Is(err, fs.Err{Not,}Exist)`.
2023-03-02 12:56:20 +01:00
Tom Wiesing
473040a69f
Remove environment.Environment struct
This commit completely removes the environment struct as it is no longer
used.
2023-03-02 12:52:51 +01:00
Tom Wiesing
3263920d6b
fsx: Remove environment references
This commit removes the reference to the environment from the fsx
package.
2023-03-02 11:51:51 +01:00
Tom Wiesing
5a43ecfaeb
pkg/environment: Migrate fs functions to fsx 2023-03-02 11:38:30 +01:00
Tom Wiesing
45540ab253
pkg/environment: Remove some file-based functions
This commit removes certain file-based functions from 'pkg/environment',
continuing the migration to entirely remove the package.
2023-03-02 11:15:15 +01:00
Tom Wiesing
39207a1cb5
pkg/environment: Remove 'net' related functions
This commit continues removing the environment abstraction and removes
all 'net' related functions, replacing them by their native equivalents.
2023-03-02 11:07:50 +01:00
Tom Wiesing
14bb7f1086
pkg/environment: Remove exec related functions
This commit starts the migration to remove the environment package. It
introduced an abstraction that is not being used, and removing it makes
the code simpler to maintain.

This commit removes all 'exec' related package.
2023-03-02 11:03:33 +01:00
Tom Wiesing
aa3580c248
Migrat pkg/password to using pkglib package 2023-02-26 10:24:06 +01:00
Tom Wiesing
010fd536ea
pkg/httpx => github.com/tkw1536/pkglib/httpx 2023-02-26 10:08:17 +01:00
Tom Wiesing
5e89fadeeb
Migrate pkg/lazy => pkglib/{lazy,lifetime} 2023-02-26 10:00:47 +01:00
Tom Wiesing
c3ca8e2974
Move to github.com/tkw1536/pkglib package
This commit removes various modules that can be migrated to the
github.com/tkw1536/pkglib package without any code changes (beyond
module renamings).
2023-02-26 09:53:25 +01:00
Tom Wiesing
945329a080
Move to yaml-based configuration
This commit updates the configuration to be yaml-based and updates the
configuration to read in a yaml file.
2023-02-25 09:14:56 +01:00
Tom Wiesing
568c005d15
httpx: Remove unuused methods 2023-02-10 12:44:01 +01:00
Tom Wiesing
b1009fa109
Add a logo 2023-02-10 12:01:06 +01:00
Tom Wiesing
2d163a4dad
templating: Rework timers 2023-01-31 12:51:54 +01:00
Tom Wiesing
598de5b289
pools: Add a pool for buffers 2023-01-24 11:04:34 +01:00
Tom Wiesing
a63bb2f669
pkg/pools: Use pool for strings.Builder everywhere 2023-01-24 10:52:15 +01:00
Tom Wiesing
8af2213d5a
pkg/httpx/form: Remove unuused fields 2023-01-24 10:51:39 +01:00
Tom Wiesing
d235ee4e5c
Refactor html templates
This commit entirely refactors the use of html templates. Instead of
inheriting from a shared template, we insert the results into a base
template.
2023-01-23 11:41:20 +01:00
Tom Wiesing
bcd1805001
Add SSH Key Management 2023-01-15 19:41:00 +01:00
Tom Wiesing
a00195be16
templates: Add a proper menu and navigation 2023-01-11 14:34:04 +01:00
Tom Wiesing
6f257bd27f
Add a password policy for distillery users 2023-01-10 11:10:38 +01:00
Tom Wiesing
ab9998881b
server: Switch to custom mux 2023-01-10 00:41:53 +01:00
Tom Wiesing
c6f77e86fe
Add autocomplete attribute to forms 2023-01-08 17:16:38 +01:00
Tom Wiesing
97f5ac7e1a
Update grant page 2023-01-07 13:14:43 +01:00
Tom Wiesing
021fc3cc7e
footer: Add a semi-flexible template system 2023-01-06 23:28:02 +01:00
Tom Wiesing
34bdb3cf24
control: Generalize cookie and csrf handling 2023-01-06 18:59:10 +01:00
Tom Wiesing
eb17dbe33f
Refactor CSRF protection 2023-01-06 18:59:10 +01:00
Tom Wiesing
d34e85a18f
Admin: Add user page 2023-01-06 18:59:10 +01:00
Tom Wiesing
785130dc36
Minify html on-the-fly before sending it to users 2023-01-06 18:59:09 +01:00
Tom Wiesing
b3039768af
Update URL routes 2023-01-06 18:59:09 +01:00
Tom Wiesing
b8f1281f78
auth: Refactor home page 2023-01-06 18:59:09 +01:00
Tom Wiesing
2d5b92f464
httpx.Response: Add 'Content-Length' header 2023-01-06 18:59:09 +01:00
Tom Wiesing
b9795be745
Add change password feature 2023-01-06 18:59:09 +01:00
Tom Wiesing
515142c055
auth: Improve login parts 2023-01-06 18:59:08 +01:00
Tom Wiesing
3aa79b0d23
Implement initial login functionality 2023-01-06 18:59:06 +01:00
Tom Wiesing
337a5fbeba
pool: Reddo component-like fields 2022-12-22 13:49:05 +01:00
Tom Wiesing
a590d93e76
environment/exec: Seperate Exec and Wait 2022-12-14 08:53:45 +01:00
Tom Wiesing
52dbfbf56e
Add Cron interval to config 2022-12-07 11:02:44 +01:00
Tom Wiesing
f52fe6abf3
Add cron tasks to distillery 2022-12-07 10:30:48 +01:00
Tom Wiesing
4dc2559431
api/login: Use 'See Other' return code 2022-12-05 14:04:37 +01:00
Tom Wiesing
b86e6294de
ingredient/locker: Unlock even after cancel 2022-12-05 14:01:53 +01:00