feat: support custom header logo (#2801)

* feat: support custom header logo

* feat: add i18n

* feat: preview default logo when field is empty

* feat: improve logo setting and display logic

* feat: change logoLight to logo
This commit is contained in:
DacongDA
2024-03-13 23:33:43 +08:00
committed by GitHub
parent 7e2f265420
commit 3875896c1e
29 changed files with 198 additions and 15 deletions

View File

@ -153,11 +153,7 @@ class App extends Component {
}
getLogo(themes) {
if (themes.includes("dark")) {
return `${Setting.StaticBaseUrl}/img/casdoor-logo_1185x256_dark.png`;
} else {
return `${Setting.StaticBaseUrl}/img/casdoor-logo_1185x256.png`;
}
return Setting.getLogo(themes);
}
setLanguage(account) {