Implement Knowledge City platform, organizer and DAV integration
Capture accumulated application, UI, CLI, regression tests and design documentation changes, including task project mapping and default CalDAV list naming. Keep deployment data, backups, local credentials and build artifacts out of Git. Move the Compose enrollment token to an ignored local environment file.
This commit is contained in:
1 parent
288e6e94ac
commit
c1175d389f
699 files changed
+110197
-4117
No files matched your search
@@ -24,6 +24,12 @@ func builtinThemeOptions() []ThemeOption {
|
||||
{ID: "amber-crt", Label: "Amber CRT", CSS: "/static/css/theme/amber-crt.css"},
|
||||
{ID: "lain-dark", Label: "Lain Dark", CSS: "/static/css/theme/lain-dark.css"},
|
||||
{ID: "nanoha-dark", Label: "Nanoha Dark", CSS: "/static/css/theme/nanoha-dark.css"},
|
||||
{ID: "fate-t-dark", Label: "Fate.T. (Fate Testarossa) Dark", CSS: "/static/css/theme/fate-t-dark.css"},
|
||||
{ID: "index-white", Label: "Index White", CSS: "/static/css/theme/index-white.css"},
|
||||
{ID: "index-dark", Label: "Index Dark", CSS: "/static/css/theme/index-dark.css"},
|
||||
{ID: "railgun-white", Label: "Railgun White", CSS: "/static/css/theme/railgun-white.css"},
|
||||
{ID: "railgun-dark", Label: "Railgun Dark", CSS: "/static/css/theme/railgun-dark.css"},
|
||||
{ID: "accelerator-dark", Label: "Accelerator Dark", CSS: "/static/css/theme/accelerator-dark.css"},
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,9 +91,9 @@ func isAllowedTheme(theme string) bool {
|
||||
return ok
|
||||
}
|
||||
|
||||
func (s *Server) getTheme() string {
|
||||
theme, err := s.store.GetConfig("theme")
|
||||
if err != nil || theme == "" {
|
||||
func (s *Server) getTheme(domainUUID ...string) string {
|
||||
theme := s.getDomainConfig("theme", domainUUID...)
|
||||
if theme == "" {
|
||||
return "dark"
|
||||
}
|
||||
|
||||
@@ -98,8 +104,8 @@ func (s *Server) getTheme() string {
|
||||
return theme
|
||||
}
|
||||
|
||||
func (s *Server) getThemeCSS() string {
|
||||
opt, ok := findTheme(s.getTheme())
|
||||
func (s *Server) getThemeCSS(domainUUID ...string) string {
|
||||
opt, ok := findTheme(s.getTheme(domainUUID...))
|
||||
if !ok {
|
||||
return "/static/css/theme/dark.css"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user