Files
grafana/apps/preferences/kinds/preferences.cue

61 lines
1.0 KiB
CUE

package preferences
preferencesV1alpha1: {
kind: "Preferences"
pluralName: "Preferences"
scope: "Namespaced"
validation: {
operations: [
"CREATE",
"UPDATE",
]
}
schema: {
spec: {
// UID for the home dashboard
homeDashboardUID?: string
// The timezone selection
// TODO: this should use the timezone defined in common
timezone?: string
// day of the week (sunday, monday, etc)
weekStart?: string
// light, dark, empty is default
theme?: string
// Selected language (beta)
language?: string
// Selected locale (beta)
regionalFormat?: string
// Explore query history preferences
queryHistory?: #QueryHistoryPreference
// Cookie preferences
cookiePreferences?: #CookiePreferences
// Navigation preferences
navbar?: #NavbarPreference
}
#QueryHistoryPreference: {
// one of: '' | 'query' | 'starred';
homeTab?: string
}
#CookiePreferences: {
analytics?: {}
performance?: {}
functional?: {}
}
#NavbarPreference: {
bookmarkUrls: [...string]
}
}
}