aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-08 18:17:23 +0530
committerBobby <[email protected]>2026-03-08 18:17:23 +0530
commit1136af49815be77a0aca151f3b8ec7348bf4b4c8 (patch)
treeca4d94f981be59c51fa7d160e32be978a8d4b4fb /pages
parentf48054e9bc5e4fb36b9aba9126c6ace9c5b1f470 (diff)
downloaddove-1136af49815be77a0aca151f3b8ec7348bf4b4c8.tar.xz
dove-1136af49815be77a0aca151f3b8ec7348bf4b4c8.zip
feat(dns): add update functionality for DNS records (MX, SRV, TXT)
- Implemented UpdateMXRecord, UpdateSRVRecord, and UpdateTXTRecord functions in their respective repositories. - Added UpdateRecord method in dns service to handle updates for various DNS record types. - Updated router to include a new route for updating DNS records. - Enhanced error messages for record updates in messages.go. - Modified the frontend forms to support editing DNS records with improved UI components. - Refactored existing domain management code to remove unused update functionality. - Improved email handling by adding MX record validation during email delivery.
Diffstat (limited to 'pages')
-rw-r--r--pages/domain/domain.go17
-rw-r--r--pages/mail/mailboxes.go2
-rw-r--r--pages/mail/users.go2
3 files changed, 3 insertions, 18 deletions
diff --git a/pages/domain/domain.go b/pages/domain/domain.go
index 94068f2..8407efb 100644
--- a/pages/domain/domain.go
+++ b/pages/domain/domain.go
@@ -46,21 +46,6 @@ func NewDomain(context *fiber.Ctx) error {
return shortcuts.Render(context, "domains/newdomain", domainService.DomainFormData())
}
-func EditDomain(context *fiber.Ctx) error {
- domainID, parseError := strconv.ParseUint(meta.Request(context).Param("id"), 10, 64)
- if parseError != nil {
- return shortcuts.BadRequestError(context, parseError)
- }
-
- formData, serviceError := domainService.EditDomainFormData(uint(domainID))
- if serviceError != nil {
- return shortcuts.HandleError(context, serviceError)
- }
-
- meta.SetPageTitle(context, "Edit Domain")
- return shortcuts.Render(context, "domains/editdomain", formData)
-}
-
func NewTLD(context *fiber.Ctx) error {
meta.SetPageTitle(context, "New TLD")
return shortcuts.Render(context, "domains/newtld", nil)
@@ -79,4 +64,4 @@ func EditTLD(context *fiber.Ctx) error {
meta.SetPageTitle(context, "Edit TLD")
return shortcuts.Render(context, "domains/edittld", formData)
-} \ No newline at end of file
+}
diff --git a/pages/mail/mailboxes.go b/pages/mail/mailboxes.go
index f679839..58089b9 100644
--- a/pages/mail/mailboxes.go
+++ b/pages/mail/mailboxes.go
@@ -38,4 +38,4 @@ func Mailboxes(context *fiber.Ctx) error {
search := context.Query("search")
return shortcuts.Render(context, "mail/mailboxes", mailService.ListMailboxes(pagination, sorting, search))
-} \ No newline at end of file
+}
diff --git a/pages/mail/users.go b/pages/mail/users.go
index 6fe057d..6d3aa16 100644
--- a/pages/mail/users.go
+++ b/pages/mail/users.go
@@ -38,4 +38,4 @@ func Users(context *fiber.Ctx) error {
search := context.Query("search")
return shortcuts.Render(context, "mail/users", mailService.ListUsers(pagination, sorting, search))
-} \ No newline at end of file
+}