Skip to content

Commit

Permalink
Merge pull request #35 from iLert/fix/status-page-theme-mode-field
Browse files Browse the repository at this point in the history
Fix/status page theme mode field
  • Loading branch information
STLVRTX authored Jan 9, 2024
2 parents b948361 + c5c2957 commit c9f64c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
15 changes: 8 additions & 7 deletions status_page.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -105,19 +106,19 @@ 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
}{
Light: "LIGHT",
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
Expand Down
2 changes: 1 addition & 1 deletion version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package ilert

// Version package version
const Version = "v3.4.0"
const Version = "v3.4.1"

0 comments on commit c9f64c7

Please sign in to comment.