From a0adc1f32fdf13df0a564351ed446f92378a6604 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Fri, 5 Jan 2024 18:06:32 +0100 Subject: [PATCH 1/4] add appearance field to replace themeMode --- status_page.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/status_page.go b/status_page.go index e43aaf3..f619ce2 100644 --- a/status_page.go +++ b/status_page.go @@ -34,7 +34,8 @@ type StatusPage struct { IpWhitelist []string `json:"ipWhitelist,omitempty"` AccountWideView bool `json:"accountWideView,omitempty"` Structure *StatusPageStructure `json:"structure,omitempty"` - ThemeMode string `json:"themeMode,omitempty"` + ThemeMode string `json:"themeMode,omitempty"` // please use field `Appearance` instead + Appearance string `json:"appearance,omitempty"` } // StatusPageStructure defines status page structure From 61d33f2f918ea4b4f3866275a55b053d06f5f906 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Fri, 5 Jan 2024 18:06:48 +0100 Subject: [PATCH 2/4] bump version --- version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.go b/version.go index dff6edf..3e1fbe0 100644 --- a/version.go +++ b/version.go @@ -1,4 +1,4 @@ package ilert // Version package version -const Version = "v3.4.0" +const Version = "v3.4.1" From 994b31f7bf66ec54c5a86acd807f3e5283a764e2 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Fri, 5 Jan 2024 18:08:36 +0100 Subject: [PATCH 3/4] update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a2986c1..712cf38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +# 05.01.2024, Version 3.4.1 + +- replace `ThemeMode` field with `Appearance` for status page resource in [#35](https://github.com/iLert/ilert-go/pull/35) + # 03.01.2024, Version 3.4.0 - deprecate uptime monitors in [#32](https://github.com/iLert/ilert-go/pull/32) From c5c29579185358bcb13844a694279133007cd0d4 Mon Sep 17 00:00:00 2001 From: Marko Simon Date: Fri, 5 Jan 2024 18:14:22 +0100 Subject: [PATCH 4/4] rename theme mode enum --- status_page.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/status_page.go b/status_page.go index f619ce2..ed2e4dc 100644 --- a/status_page.go +++ b/status_page.go @@ -106,8 +106,8 @@ var StatusPageLayoutAll = []string{ StatusPageLayout.Responsive, } -// StatusPageThemeMode defines status page theme mode -var StatusPageThemeMode = struct { +// StatusPageAppearance defines status page appearance +var StatusPageAppearance = struct { Light string Dark string }{ @@ -115,10 +115,10 @@ var StatusPageThemeMode = struct { Dark: "DARK", } -// StatusPageThemeModeAll defines all status page theme modes -var StatusPageThemeModeAll = []string{ - StatusPageThemeMode.Light, - StatusPageThemeMode.Dark, +// StatusPageAppearanceAll defines all status page appearances +var StatusPageAppearanceAll = []string{ + StatusPageAppearance.Light, + StatusPageAppearance.Dark, } // StatusPageElementOption defines status page element option