feat: customize system profile (#828)

This commit is contained in:
boojack
2022-12-22 19:48:44 +08:00
committed by GitHub
parent 72daa4e1d6
commit 7efa749c66
14 changed files with 171 additions and 141 deletions

View File

@@ -47,7 +47,12 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
AdditionalStyle: "",
AdditionalScript: "",
CustomizedProfile: api.CustomizedProfile{
Name: "memos",
Name: "memos",
IconURL: "",
Description: "",
Locale: "en",
Appearance: "system",
ExternalURL: "",
},
}
@@ -73,6 +78,9 @@ func (s *Server) registerSystemRoutes(g *echo.Group) {
systemStatus.CustomizedProfile = api.CustomizedProfile{
Name: valueMap["name"].(string),
IconURL: valueMap["iconUrl"].(string),
Description: valueMap["description"].(string),
Locale: valueMap["locale"].(string),
Appearance: valueMap["appearance"].(string),
ExternalURL: valueMap["externalUrl"].(string),
}
}