diff --git a/api/system_setting.go b/api/system_setting.go index ff67d11c..645f2989 100644 --- a/api/system_setting.go +++ b/api/system_setting.go @@ -24,8 +24,8 @@ const ( type CustomizedProfile struct { // Name is the server name, default is `memos` Name string `json:"name"` - // IconURL is the url of icon image. - IconURL string `json:"iconUrl"` + // LogoURL is the url of logo image. + LogoURL string `json:"logoUrl"` // Description is the server description. Description string `json:"description"` // Locale is the server default locale. @@ -100,7 +100,7 @@ func (upsert SystemSettingUpsert) Validate() error { } else if upsert.Name == SystemSettingCustomizedProfileName { customizedProfile := CustomizedProfile{ Name: "memos", - IconURL: "", + LogoURL: "", Description: "", Locale: "en", Appearance: "system", diff --git a/server/system.go b/server/system.go index e3a28116..e4e510d5 100644 --- a/server/system.go +++ b/server/system.go @@ -48,7 +48,7 @@ func (s *Server) registerSystemRoutes(g *echo.Group) { AdditionalScript: "", CustomizedProfile: api.CustomizedProfile{ Name: "memos", - IconURL: "", + LogoURL: "", Description: "", Locale: "en", Appearance: "system", @@ -77,7 +77,7 @@ func (s *Server) registerSystemRoutes(g *echo.Group) { valueMap := value.(map[string]interface{}) systemStatus.CustomizedProfile = api.CustomizedProfile{ Name: valueMap["name"].(string), - IconURL: valueMap["iconUrl"].(string), + LogoURL: valueMap["logoUrl"].(string), Description: valueMap["description"].(string), Locale: valueMap["locale"].(string), Appearance: valueMap["appearance"].(string), diff --git a/web/index.html b/web/index.html index eb4c54c9..6a5e4e56 100644 --- a/web/index.html +++ b/web/index.html @@ -2,7 +2,7 @@
- + diff --git a/web/public/logo-full.webp b/web/public/logo-full.webp deleted file mode 100644 index 36ea2eee..00000000 Binary files a/web/public/logo-full.webp and /dev/null differ diff --git a/web/public/logo.png b/web/public/logo.png new file mode 100644 index 00000000..3c22d5f8 Binary files /dev/null and b/web/public/logo.png differ diff --git a/web/public/logo.webp b/web/public/logo.webp deleted file mode 100644 index ecf7c441..00000000 Binary files a/web/public/logo.webp and /dev/null differ diff --git a/web/public/manifest.json b/web/public/manifest.json index 74794c0b..aff5fe88 100644 --- a/web/public/manifest.json +++ b/web/public/manifest.json @@ -4,8 +4,8 @@ "description": "usememos/memos", "icons": [ { - "src": "/logo.webp", - "type": "image/webp", + "src": "/logo.png", + "type": "image/png", "sizes": "520x520" } ], diff --git a/web/src/App.tsx b/web/src/App.tsx index e00b47ab..62748f59 100644 --- a/web/src/App.tsx +++ b/web/src/App.tsx @@ -59,7 +59,7 @@ const App = () => { // dynamic update metadata with customized profile. document.title = systemStatus.customizedProfile.name; const link = document.querySelector("link[rel~='icon']") as HTMLLinkElement; - link.href = systemStatus.customizedProfile.iconUrl || "/logo.webp"; + link.href = systemStatus.customizedProfile.logoUrl || "/logo.png"; }, [systemStatus]); useEffect(() => { diff --git a/web/src/components/AboutSiteDialog.tsx b/web/src/components/AboutSiteDialog.tsx index 04759890..1636351f 100644 --- a/web/src/components/AboutSiteDialog.tsx +++ b/web/src/components/AboutSiteDialog.tsx @@ -20,7 +20,7 @@ const AboutSiteDialog: React.FC- + {t("common.about")} memos
{t("setting.system-section.customize-server.icon-url")}
- +Description
Server locale
diff --git a/web/src/pages/Auth.tsx b/web/src/pages/Auth.tsx index 10842f11..100d326e 100644 --- a/web/src/pages/Auth.tsx +++ b/web/src/pages/Auth.tsx @@ -123,7 +123,7 @@ const Auth = () => {{systemStatus.customizedProfile.name}
{systemStatus.customizedProfile.description || t("slogan")}
diff --git a/web/src/pages/Explore.tsx b/web/src/pages/Explore.tsx index f3261289..167949d9 100644 --- a/web/src/pages/Explore.tsx +++ b/web/src/pages/Explore.tsx @@ -63,7 +63,7 @@ const Explore = () => {{customizedProfile.name}