mirror of
https://github.com/usememos/memos.git
synced 2025-06-05 22:09:59 +02:00
chore: tweak custom profile
This commit is contained in:
@@ -158,12 +158,9 @@ func (s *APIV1Service) getSystemCustomizedProfile(ctx context.Context) (*Customi
|
||||
return nil, err
|
||||
}
|
||||
customizedProfile := &CustomizedProfile{
|
||||
Name: "memos",
|
||||
LogoURL: "",
|
||||
Description: "",
|
||||
Locale: "en",
|
||||
Appearance: "system",
|
||||
ExternalURL: "",
|
||||
Name: "Memos",
|
||||
Locale: "en",
|
||||
Appearance: "system",
|
||||
}
|
||||
if systemSetting != nil {
|
||||
if err := json.Unmarshal([]byte(systemSetting.Value), customizedProfile); err != nil {
|
||||
|
@@ -80,7 +80,7 @@ func (s *APIV1Service) GetSystemStatus(c echo.Context) error {
|
||||
AllowSignUp: true,
|
||||
MaxUploadSizeMiB: 32,
|
||||
CustomizedProfile: CustomizedProfile{
|
||||
Name: "memos",
|
||||
Name: "Memos",
|
||||
Locale: "en",
|
||||
Appearance: "system",
|
||||
},
|
||||
|
@@ -21,7 +21,7 @@ export const initialGlobalState = async () => {
|
||||
additionalScript: "",
|
||||
memoDisplayWithUpdatedTs: false,
|
||||
customizedProfile: {
|
||||
name: "memos",
|
||||
name: "Memos",
|
||||
logoUrl: "/logo.png",
|
||||
description: "",
|
||||
locale: "en",
|
||||
@@ -37,7 +37,7 @@ export const initialGlobalState = async () => {
|
||||
defaultGlobalState.systemStatus = {
|
||||
...data,
|
||||
customizedProfile: {
|
||||
name: customizedProfile.name || "memos",
|
||||
name: customizedProfile.name || "Memos",
|
||||
logoUrl: customizedProfile.logoUrl || "/logo.png",
|
||||
description: customizedProfile.description,
|
||||
locale: customizedProfile.locale || "en",
|
||||
|
@@ -25,7 +25,7 @@ const globalSlice = createSlice({
|
||||
additionalScript: "",
|
||||
memoDisplayWithUpdatedTs: false,
|
||||
customizedProfile: {
|
||||
name: "memos",
|
||||
name: "Memos",
|
||||
logoUrl: "/logo.png",
|
||||
description: "",
|
||||
locale: "en",
|
||||
|
Reference in New Issue
Block a user