Support selecting theme on the footer (#35741)

Fixes: https://github.com/go-gitea/gitea/pull/27576
This commit is contained in:
wxiaoguang authored and GitHub committed 2025-10-28 18:25:00 +08:00
1 parent cddff73bbd
commit 6b5563c54a
33 files changed
+254 -59

No files matched your search

+6
View File
@@ -34,4 +34,10 @@ gitea-theme-meta-info {
--k2: real;
}`)
assert.Equal(t, map[string]string{"--k2": "real"}, m)
// compressed CSS, no trailing semicolon
m = parseThemeMetaInfoToMap(`gitea-theme-meta-info{--k1:"v1"}`)
assert.Equal(t, map[string]string{"--k1": "v1"}, m)
m = parseThemeMetaInfoToMap(`gitea-theme-meta-info{--k1:"v1";--k2:"v2"}`)
assert.Equal(t, map[string]string{"--k1": "v1", "--k2": "v2"}, m)
}