Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
canifa_note
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vũ Hoàng Anh
canifa_note
Commits
a10b3d38
Commit
a10b3d38
authored
Dec 15, 2023
by
Steven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: tweak custom profile
parent
7735cfac
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
+7
-10
rss.go
api/v1/rss.go
+3
-6
system.go
api/v1/system.go
+1
-1
global.ts
web/src/store/module/global.ts
+2
-2
global.ts
web/src/store/reducer/global.ts
+1
-1
No files found.
api/v1/rss.go
View file @
a10b3d38
...
@@ -158,12 +158,9 @@ func (s *APIV1Service) getSystemCustomizedProfile(ctx context.Context) (*Customi
...
@@ -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
{
...
...
api/v1/system.go
View file @
a10b3d38
...
@@ -80,7 +80,7 @@ func (s *APIV1Service) GetSystemStatus(c echo.Context) error {
...
@@ -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
:
"
m
emos"
,
Name
:
"
M
emos"
,
Locale
:
"en"
,
Locale
:
"en"
,
Appearance
:
"system"
,
Appearance
:
"system"
,
},
},
...
...
web/src/store/module/global.ts
View file @
a10b3d38
...
@@ -21,7 +21,7 @@ export const initialGlobalState = async () => {
...
@@ -21,7 +21,7 @@ export const initialGlobalState = async () => {
additionalScript
:
""
,
additionalScript
:
""
,
memoDisplayWithUpdatedTs
:
false
,
memoDisplayWithUpdatedTs
:
false
,
customizedProfile
:
{
customizedProfile
:
{
name
:
"
m
emos"
,
name
:
"
M
emos"
,
logoUrl
:
"/logo.png"
,
logoUrl
:
"/logo.png"
,
description
:
""
,
description
:
""
,
locale
:
"en"
,
locale
:
"en"
,
...
@@ -37,7 +37,7 @@ export const initialGlobalState = async () => {
...
@@ -37,7 +37,7 @@ export const initialGlobalState = async () => {
defaultGlobalState
.
systemStatus
=
{
defaultGlobalState
.
systemStatus
=
{
...
data
,
...
data
,
customizedProfile
:
{
customizedProfile
:
{
name
:
customizedProfile
.
name
||
"
m
emos"
,
name
:
customizedProfile
.
name
||
"
M
emos"
,
logoUrl
:
customizedProfile
.
logoUrl
||
"/logo.png"
,
logoUrl
:
customizedProfile
.
logoUrl
||
"/logo.png"
,
description
:
customizedProfile
.
description
,
description
:
customizedProfile
.
description
,
locale
:
customizedProfile
.
locale
||
"en"
,
locale
:
customizedProfile
.
locale
||
"en"
,
...
...
web/src/store/reducer/global.ts
View file @
a10b3d38
...
@@ -25,7 +25,7 @@ const globalSlice = createSlice({
...
@@ -25,7 +25,7 @@ const globalSlice = createSlice({
additionalScript
:
""
,
additionalScript
:
""
,
memoDisplayWithUpdatedTs
:
false
,
memoDisplayWithUpdatedTs
:
false
,
customizedProfile
:
{
customizedProfile
:
{
name
:
"
m
emos"
,
name
:
"
M
emos"
,
logoUrl
:
"/logo.png"
,
logoUrl
:
"/logo.png"
,
description
:
""
,
description
:
""
,
locale
:
"en"
,
locale
:
"en"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment