summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-03-25Directly implement HTTP handler for /HEAD0.1.0mainxengineering
There is no reason anymore to work with a closure here. This commit makes the code more readable.
2024-03-25Make the parsed configuration a global variablexengineering
This removes the need to pass the configuration struct to every function.
2024-03-25Move template parsing to main functionxengineering
2024-03-25Make parsed templates a global variablexengineering
This allows to parse the templates during startup and use them in each HTTP handler without explicit passing to these handlers.
2024-03-25Define /api handler directlyxengineering
Using a function returning a closure does not really make sense here.
2024-03-25Move configuration code to a separate filexengineering
2024-03-25Remove unused function mustRender()xengineering
2024-03-25Remove mustRead()xengineering
This function just increases function nesting and makes the code less readable.
2024-03-24Remove Makefilexengineering
Since the build output is now only one binary it is not so useful anymore to use a Makefile. Removing the Makefile reduces the build dependencies for this project.
2024-03-24Replace io/ioutil by os packagexengineering
io/ioutil should not be used since Go 1.16.
2024-03-24Replace appdata completely by embed packagexengineering
The embed package makes it useless to handle static files from the source tree during runtime. All those files go simply to the embed.FS variable and are thus embedded into the binary which is easier to handle.
2024-03-24Embed simple.css file into binaryxengineering
This removes the need to deploy the simple.css file to the target machine.
2024-03-24Create a Go module for this projectxengineering
2024-03-24Update to simple.css v2.2.1xengineering
2024-03-24Provide example and default configurationxengineering
Those two configuration files should not be the same. The default configuration should be more or less empty while the example configuration should demonstrate the server's capabilities.
2023-03-27Rework code documentationxengineering
Comments inside functions are not that helpful. While the functino docstring should explain everything to a user, the implementation inside should speak for itself.
2023-03-27Apply `go fmt` to all filesxengineering
2023-03-27Fix AGPL v3 linkxengineering
2023-03-27Change title in HTMLxengineering
2023-03-27Remove systemd-specific codexengineering
This source is targeted at all Linux-based operating systems. Since they are not all based on systemd the removed code should be re-introduced in packaging repositories for specific distributions.
2023-03-27Switch to simple.cssxengineering
This very simple CSS framework is far better / beautiful / easy to maintain than my own CSS.
2023-03-27Pass appdata directory by argumentxengineering
Passing this as part of the configuration file is not flexible. With args it can be easily tweaked for the debug use case while the default path for production is included in the argument parsing.
2023-03-27Reformat README from plaintext to Markdownxengineering
Syntax highlighting is a nice thing and READMEs could be rendered in the future via a CI-like build automation system.
2022-05-16Remove unnecessary headline from index.html.tmplxengineering
2022-05-16Implement CSS installationxengineering
2022-05-16Introduce appdata configuration optionxengineering
2022-05-16Add configuration of template pathxengineering
2022-05-16Deploy HTML via Makefilexengineering
2022-05-16Fix default path for configxengineering
2022-05-16Fix sysusers installationxengineering
2022-05-16Fix sysusers filexengineering
2022-05-16Remove unnecessary mkdir in Makefilexengineering
2022-05-16Implement install of systemd filesxengineering
2022-05-15Add AGPL Licensexengineering
2022-05-15Add systemd filesxengineering
2022-05-15Add Makefilexengineering
2022-05-15Publish codexengineering