Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-03-25 | Directly implement HTTP handler for /HEAD0.1.0main | xengineering | |
There is no reason anymore to work with a closure here. This commit makes the code more readable. | |||
2024-03-25 | Make the parsed configuration a global variable | xengineering | |
This removes the need to pass the configuration struct to every function. | |||
2024-03-25 | Move template parsing to main function | xengineering | |
2024-03-25 | Make parsed templates a global variable | xengineering | |
This allows to parse the templates during startup and use them in each HTTP handler without explicit passing to these handlers. | |||
2024-03-25 | Define /api handler directly | xengineering | |
Using a function returning a closure does not really make sense here. | |||
2024-03-25 | Move configuration code to a separate file | xengineering | |
2024-03-25 | Remove unused function mustRender() | xengineering | |
2024-03-25 | Remove mustRead() | xengineering | |
This function just increases function nesting and makes the code less readable. | |||
2024-03-24 | Remove Makefile | xengineering | |
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-24 | Replace io/ioutil by os package | xengineering | |
io/ioutil should not be used since Go 1.16. | |||
2024-03-24 | Replace appdata completely by embed package | xengineering | |
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-24 | Embed simple.css file into binary | xengineering | |
This removes the need to deploy the simple.css file to the target machine. | |||
2024-03-24 | Create a Go module for this project | xengineering | |
2024-03-24 | Update to simple.css v2.2.1 | xengineering | |
2024-03-24 | Provide example and default configuration | xengineering | |
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-27 | Rework code documentation | xengineering | |
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-27 | Apply `go fmt` to all files | xengineering | |
2023-03-27 | Fix AGPL v3 link | xengineering | |
2023-03-27 | Change title in HTML | xengineering | |
2023-03-27 | Remove systemd-specific code | xengineering | |
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-27 | Switch to simple.css | xengineering | |
This very simple CSS framework is far better / beautiful / easy to maintain than my own CSS. | |||
2023-03-27 | Pass appdata directory by argument | xengineering | |
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-27 | Reformat README from plaintext to Markdown | xengineering | |
Syntax highlighting is a nice thing and READMEs could be rendered in the future via a CI-like build automation system. | |||
2022-05-16 | Remove unnecessary headline from index.html.tmpl | xengineering | |
2022-05-16 | Implement CSS installation | xengineering | |
2022-05-16 | Introduce appdata configuration option | xengineering | |
2022-05-16 | Add configuration of template path | xengineering | |
2022-05-16 | Deploy HTML via Makefile | xengineering | |
2022-05-16 | Fix default path for config | xengineering | |
2022-05-16 | Fix sysusers installation | xengineering | |
2022-05-16 | Fix sysusers file | xengineering | |
2022-05-16 | Remove unnecessary mkdir in Makefile | xengineering | |
2022-05-16 | Implement install of systemd files | xengineering | |
2022-05-15 | Add AGPL License | xengineering | |
2022-05-15 | Add systemd files | xengineering | |
2022-05-15 | Add Makefile | xengineering | |
2022-05-15 | Publish code | xengineering | |