chore: tweak custom profile
This commit is contained in:
parent
7735cfac31
commit
a10b3d3821
4 changed files with 7 additions and 10 deletions
|
|
@ -158,12 +158,9 @@ func (s *APIV1Service) getSystemCustomizedProfile(ctx context.Context) (*Customi
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
customizedProfile := &CustomizedProfile{
|
customizedProfile := &CustomizedProfile{
|
||||||
Name: "memos",
|
Name: "Memos",
|
||||||
LogoURL: "",
|
Locale: "en",
|
||||||
Description: "",
|
Appearance: "system",
|
||||||
Locale: "en",
|
|
||||||
Appearance: "system",
|
|
||||||
ExternalURL: "",
|
|
||||||
}
|
}
|
||||||
if systemSetting != nil {
|
if systemSetting != nil {
|
||||||
if err := json.Unmarshal([]byte(systemSetting.Value), customizedProfile); err != 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,
|
AllowSignUp: true,
|
||||||
MaxUploadSizeMiB: 32,
|
MaxUploadSizeMiB: 32,
|
||||||
CustomizedProfile: CustomizedProfile{
|
CustomizedProfile: CustomizedProfile{
|
||||||
Name: "memos",
|
Name: "Memos",
|
||||||
Locale: "en",
|
Locale: "en",
|
||||||
Appearance: "system",
|
Appearance: "system",
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ export const initialGlobalState = async () => {
|
||||||
additionalScript: "",
|
additionalScript: "",
|
||||||
memoDisplayWithUpdatedTs: false,
|
memoDisplayWithUpdatedTs: false,
|
||||||
customizedProfile: {
|
customizedProfile: {
|
||||||
name: "memos",
|
name: "Memos",
|
||||||
logoUrl: "/logo.png",
|
logoUrl: "/logo.png",
|
||||||
description: "",
|
description: "",
|
||||||
locale: "en",
|
locale: "en",
|
||||||
|
|
@ -37,7 +37,7 @@ export const initialGlobalState = async () => {
|
||||||
defaultGlobalState.systemStatus = {
|
defaultGlobalState.systemStatus = {
|
||||||
...data,
|
...data,
|
||||||
customizedProfile: {
|
customizedProfile: {
|
||||||
name: customizedProfile.name || "memos",
|
name: customizedProfile.name || "Memos",
|
||||||
logoUrl: customizedProfile.logoUrl || "/logo.png",
|
logoUrl: customizedProfile.logoUrl || "/logo.png",
|
||||||
description: customizedProfile.description,
|
description: customizedProfile.description,
|
||||||
locale: customizedProfile.locale || "en",
|
locale: customizedProfile.locale || "en",
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ const globalSlice = createSlice({
|
||||||
additionalScript: "",
|
additionalScript: "",
|
||||||
memoDisplayWithUpdatedTs: false,
|
memoDisplayWithUpdatedTs: false,
|
||||||
customizedProfile: {
|
customizedProfile: {
|
||||||
name: "memos",
|
name: "Memos",
|
||||||
logoUrl: "/logo.png",
|
logoUrl: "/logo.png",
|
||||||
description: "",
|
description: "",
|
||||||
locale: "en",
|
locale: "en",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue