refactor(assets): migrate to resource domain (#975)

* refactor(assets): migrate to resource domain

* feat(bootstrap): add migration value for logo and favicon settings
This commit is contained in:
MadDogOwner
2025-08-10 09:57:33 +08:00
committed by GitHub
parent df479ba806
commit 8c244a984d
4 changed files with 9 additions and 9 deletions

View File

@@ -116,10 +116,10 @@ func UpdateIndex() {
mainColor := setting.GetStr(conf.MainColor)
utils.Log.Debug("Applying replacements for default pages...")
replaceMap1 := map[string]string{
"https://cdn.oplist.org/gh/OpenListTeam/Logo@main/logo.svg": favicon,
"https://cdn.oplist.org/gh/OpenListTeam/Logo@main/logo.png": logo,
"Loading...": title,
"main_color: undefined": fmt.Sprintf("main_color: '%s'", mainColor),
"https://res.oplist.org/logo/logo.svg": favicon,
"https://res.oplist.org/logo/logo.png": logo,
"Loading...": title,
"main_color: undefined": fmt.Sprintf("main_color: '%s'", mainColor),
}
conf.ManageHtml = replaceStrings(conf.RawIndexHtml, replaceMap1)
utils.Log.Debug("Applying replacements for manage pages...")