mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
460be70261
* backend locale -> language * frontend locale -> language * sample.ini and tests * fix few last locale -> language * fix few last locale -> language
49 lines
2.0 KiB
Go
49 lines
2.0 KiB
Go
package dtos
|
|
|
|
import (
|
|
pref "github.com/grafana/grafana/pkg/services/preference"
|
|
)
|
|
|
|
type Prefs struct {
|
|
Theme string `json:"theme"`
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
HomeDashboardUID string `json:"homeDashboardUID,omitempty"`
|
|
Timezone string `json:"timezone"`
|
|
WeekStart string `json:"weekStart"`
|
|
Language string `json:"language"`
|
|
Navbar pref.NavbarPreference `json:"navbar,omitempty"`
|
|
QueryHistory pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
}
|
|
|
|
// swagger:model
|
|
type UpdatePrefsCmd struct {
|
|
// Enum: light,dark
|
|
Theme string `json:"theme"`
|
|
// The numerical :id of a favorited dashboard
|
|
// Default:0
|
|
HomeDashboardID int64 `json:"homeDashboardId"`
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
|
// Enum: utc,browser
|
|
Timezone string `json:"timezone"`
|
|
WeekStart string `json:"weekStart"`
|
|
Navbar *pref.NavbarPreference `json:"navbar,omitempty"`
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
Language string `json:"language"`
|
|
}
|
|
|
|
// swagger:model
|
|
type PatchPrefsCmd struct {
|
|
// Enum: light,dark
|
|
Theme *string `json:"theme,omitempty"`
|
|
// The numerical :id of a favorited dashboard
|
|
// Default:0
|
|
HomeDashboardID *int64 `json:"homeDashboardId,omitempty"`
|
|
// Enum: utc,browser
|
|
Timezone *string `json:"timezone,omitempty"`
|
|
WeekStart *string `json:"weekStart,omitempty"`
|
|
Language *string `json:"language,omitempty"`
|
|
Navbar *pref.NavbarPreference `json:"navbar,omitempty"`
|
|
QueryHistory *pref.QueryHistoryPreference `json:"queryHistory,omitempty"`
|
|
HomeDashboardUID *string `json:"homeDashboardUID,omitempty"`
|
|
}
|