[PR #2161] [MERGED] Changed all the html into go using go-elem #2533

Closed
opened 2025-12-29 03:21:41 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/2161
Author: @amha-mersha
Created: 9/30/2024
Status: Merged
Merged: 10/4/2024
Merged by: @kradalby

Base: mainHead: amha.refactoring_html_codes_using_goelem


📝 Commits (2)

  • 5c226e1 Changed all the HTML into go using go-elem
  • 949ec07 update flake

📊 Changes

11 files changed (+323 additions, -294 deletions)

View changed files

📝 flake.nix (+1 -1)
📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 hscontrol/handlers.go (+37 -56)
📝 hscontrol/platform_config.go (+5 -61)
hscontrol/templates/apple.go (+149 -0)
hscontrol/templates/apple.html (+0 -131)
hscontrol/templates/general.go (+56 -0)
hscontrol/templates/register_web.go (+34 -0)
hscontrol/templates/windows.go (+38 -0)
hscontrol/templates/windows.html (+0 -45)

📄 Description

Created templates package in ./hscontrol/templates. Moved the registerWebAPITemplate into the templates package as a function to be called.

Replaced the apple and windows html files with go-elem.

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/2161 **Author:** [@amha-mersha](https://github.com/amha-mersha) **Created:** 9/30/2024 **Status:** ✅ Merged **Merged:** 10/4/2024 **Merged by:** [@kradalby](https://github.com/kradalby) **Base:** `main` ← **Head:** `amha.refactoring_html_codes_using_goelem` --- ### 📝 Commits (2) - [`5c226e1`](https://github.com/juanfont/headscale/commit/5c226e148ef6d70b92233745baa91a14fcbab3c7) Changed all the HTML into go using go-elem - [`949ec07`](https://github.com/juanfont/headscale/commit/949ec0709d079befc2126b5dc07d89de51dec4c5) update flake ### 📊 Changes **11 files changed** (+323 additions, -294 deletions) <details> <summary>View changed files</summary> 📝 `flake.nix` (+1 -1) 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `hscontrol/handlers.go` (+37 -56) 📝 `hscontrol/platform_config.go` (+5 -61) ➕ `hscontrol/templates/apple.go` (+149 -0) ➖ `hscontrol/templates/apple.html` (+0 -131) ➕ `hscontrol/templates/general.go` (+56 -0) ➕ `hscontrol/templates/register_web.go` (+34 -0) ➕ `hscontrol/templates/windows.go` (+38 -0) ➖ `hscontrol/templates/windows.html` (+0 -45) </details> ### 📄 Description Created templates package in ./hscontrol/templates. Moved the registerWebAPITemplate into the templates package as a function to be called. Replaced the apple and windows html files with go-elem. <!-- Headscale is "Open Source, acknowledged contribution", this means that any contribution will have to be discussed with the Maintainers before being submitted. This model has been chosen to reduce the risk of burnout by limiting the maintenance overhead of reviewing and validating third-party code. Headscale is open to code contributions for bug fixes without discussion. If you find mistakes in the documentation, please submit a fix to the documentation. --> <!-- Please tick if the following things apply. You… --> - [X] have read the [CONTRIBUTING.md](./CONTRIBUTING.md) file - [ ] raised a GitHub issue or discussed it on the projects chat beforehand - [ ] added unit tests - [ ] added integration tests - [ ] updated documentation if needed - [ ] updated CHANGELOG.md <!-- If applicable, please reference the issue using `Fixes #XXX` and add tests to cover your new code. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:21:41 +01:00
adam closed this issue 2025-12-29 03:21:41 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2533