Commit graph

163 commits

Author SHA1 Message Date
Tom Wiesing
e969351f8e
config/network: Prepare for multiple networks
This commit futures proofs the code to allow for usage of more than one
docker network.
2023-03-13 10:11:28 +01:00
dependabot[bot]
1b38c01237
build(deps): bump json5 in /internal/dis/component/server/assets
Bumps [json5](https://github.com/json5/json5) from 2.2.1 to 2.2.3.
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-10 19:49:02 +00:00
Tom Wiesing
4c0dd325ad
Update static files URL
This commit updates the static file url to the mountain emoji.
2023-03-10 20:47:55 +01:00
Tom Wiesing
c31c46ee44
Rework error messages
This commit reworks error messages for all commands and makes sure they
pass liniting.
2023-03-09 12:18:39 +01:00
Tom Wiesing
d22784e6f5
templating/flags: Clone actions and crumbs 2023-03-08 15:28:00 +01:00
Tom Wiesing
4681f3c33d
sql/snapshot: Bugfix 2023-03-08 15:06:59 +01:00
Tom Wiesing
854e756016
Add NEWS.md 2023-03-08 12:48:45 +01:00
Tom Wiesing
840efd5c03
config: Remove erronous yaml entries 2023-03-08 12:25:32 +01:00
Tom Wiesing
f0073a649f
Multiplex http and ssh ports 2023-03-08 11:27:19 +01:00
Tom Wiesing
668f1dd193
component/web: Implement nicer compose reader 2023-03-07 10:51:18 +01:00
Tom Wiesing
1855090f26
Initial support for native docker client
This commit updates the implementation to use a native docker client as
opposed to calling an external executable.
2023-03-07 09:45:20 +01:00
Tom Wiesing
2ee8dfaaec
internal/server: Log unknown errors
This commit updates the server code to log unknown errors to the
console.
2023-03-06 22:32:03 +01:00
Tom Wiesing
141d10746e
internal: Remove unneeded methods 2023-03-03 10:58:00 +01:00
Tom Wiesing
4cdf29d8bf
frontend/remote: Display "cancel" when cancelling a process 2023-03-02 13:08:27 +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
066390e30d
html/anal: Fix regression
Migration to the pkglib package caused a regression that prevents
Components and Ingredients from being rendered properly. This commit
fixes the issue.
2023-02-28 21:43:12 +01:00
Tom Wiesing
c19215068e
remote: Allow protocol input & cancellation
This commit reworks the protocol being used on top of websockets. It now
permits sending input to the server, and interrupting the remote
process.
2023-02-28 21:38:08 +01:00
Tom Wiesing
746ebcd9e3
socket: Explicitly communicate success
This commit updates the socket process to explicitly communicate the
process (and any potential error) on the server using a binary message.
2023-02-28 01:07:28 +01:00
Tom Wiesing
53f63d4efd
Add a form to provision a new instance 2023-02-27 11:12:22 +01:00
Tom Wiesing
80906d3791
Syntax highlight configuration 2023-02-26 20:10:25 +01:00
Tom Wiesing
eec8b89e06
admin/index.html: Display config as yaml 2023-02-26 19:21:42 +01:00
Tom Wiesing
2edd0f2fe2
internal/config/template: Cleanup
This commit cleans up the internal/config/template to remove code no
longer used because of the new configuration.
2023-02-26 10:46:10 +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
b1009fa109
Add a logo 2023-02-10 12:01:06 +01:00
Tom Wiesing
7f820224ec
Refactor: Menu 2023-02-09 10:22:22 +01:00
Tom Wiesing
a7309d5268
component.DummyMenuItem: Force early replacement 2023-02-03 15:12:52 +01:00
Tom Wiesing
2466238388
socket: Add option to create backup 2023-02-03 14:31:43 +01:00
Tom Wiesing
34d1f557a0
admin interface: Introduce seperate instance page 2023-02-03 14:11:52 +01:00
Tom Wiesing
a420155c7c
admin/instance: Properly display titles 2023-02-03 09:48:34 +01:00
Tom Wiesing
78b5a96294
Allow non-instance specific socket actions 2023-02-03 09:45:35 +01:00
Tom Wiesing
25c3af3516
Bugfix: Add missing forms 2023-02-02 16:46:42 +01:00
Tom Wiesing
2d163a4dad
templating: Rework timers 2023-01-31 12:51:54 +01:00
Tom Wiesing
66eb13df30
logger: Fix missing argument 2023-01-26 22:42:11 +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
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
6ede99d7c6
Refactor server and templates package 2023-01-19 13:22:48 +01:00
Tom Wiesing
b6bf0a8900
custom: Improve templating of assets 2023-01-19 11:25:39 +01:00
Tom Wiesing
7d0fb60d67
admin: Allow impersonation and deactivation 2023-01-17 12:25:23 +01:00
Tom Wiesing
2384ee0841
admin: Add purge interface
This commit adds a new option to the admin interface to purge an
instance. This requires the user to manually confirm the name of the
instance.
2023-01-16 18:22:13 +01:00