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
16a08729
Commit
16a08729
authored
Mar 06, 2025
by
Johnny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: enable auto compact by default
parent
56ad8ab3
Changes
21
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
114 additions
and
105 deletions
+114
-105
workspace_setting_service.proto
proto/api/v1/workspace_setting_service.proto
+2
-2
activity_service.pb.gw.go
proto/gen/api/v1/activity_service.pb.gw.go
+1
-0
auth_service.pb.gw.go
proto/gen/api/v1/auth_service.pb.gw.go
+5
-0
idp_service.pb.gw.go
proto/gen/api/v1/idp_service.pb.gw.go
+3
-0
inbox_service.pb.gw.go
proto/gen/api/v1/inbox_service.pb.gw.go
+2
-0
markdown_service.pb.gw.go
proto/gen/api/v1/markdown_service.pb.gw.go
+1
-0
memo_service.pb.gw.go
proto/gen/api/v1/memo_service.pb.gw.go
+10
-0
resource_service.pb.gw.go
proto/gen/api/v1/resource_service.pb.gw.go
+4
-0
user_service.pb.gw.go
proto/gen/api/v1/user_service.pb.gw.go
+12
-0
webhook_service.pb.gw.go
proto/gen/api/v1/webhook_service.pb.gw.go
+3
-0
workspace_service.pb.gw.go
proto/gen/api/v1/workspace_service.pb.gw.go
+1
-0
workspace_setting_service.pb.go
proto/gen/api/v1/workspace_setting_service.pb.go
+42
-53
workspace_setting_service.pb.gw.go
proto/gen/api/v1/workspace_setting_service.pb.gw.go
+1
-0
apidocs.swagger.yaml
proto/gen/apidocs.swagger.yaml
+0
-3
workspace_setting.pb.go
proto/gen/store/workspace_setting.pb.go
+21
-32
workspace_setting.proto
proto/store/workspace_setting.proto
+2
-2
workspace_setting_service.go
server/router/api/v1/workspace_setting_service.go
+0
-2
MemoView.tsx
web/src/components/MemoView.tsx
+1
-1
SearchBar.tsx
web/src/components/SearchBar.tsx
+1
-1
MemoRelatedSettings.tsx
web/src/components/Settings/MemoRelatedSettings.tsx
+0
-7
en.json
web/src/locales/en.json
+2
-2
No files found.
proto/api/v1/workspace_setting_service.proto
View file @
16a08729
...
...
@@ -96,14 +96,14 @@ message WorkspaceStorageSetting {
}
message
WorkspaceMemoRelatedSetting
{
reserved
4
;
// disallow_public_visibility disallows set memo as public visibility.
bool
disallow_public_visibility
=
1
;
// display_with_update_time orders and displays memo with update time.
bool
display_with_update_time
=
2
;
// content_length_limit is the limit of content length. Unit is byte.
int32
content_length_limit
=
3
;
// enable_auto_compact enables auto compact for large content.
bool
enable_auto_compact
=
4
;
// enable_double_click_edit enables editing on double click.
bool
enable_double_click_edit
=
5
;
// enable_link_preview enables links preview.
...
...
proto/gen/api/v1/activity_service.pb.gw.go
View file @
16a08729
...
...
@@ -41,6 +41,7 @@ func request_ActivityService_GetActivity_0(ctx context.Context, marshaler runtim
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
proto/gen/api/v1/auth_service.pb.gw.go
View file @
16a08729
...
...
@@ -40,6 +40,7 @@ func request_AuthService_GetAuthStatus_0(ctx context.Context, marshaler runtime.
protoReq
GetAuthStatusRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
GetAuthStatus
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
@@ -60,6 +61,7 @@ func request_AuthService_SignIn_0(ctx context.Context, marshaler runtime.Marshal
protoReq
SignInRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -92,6 +94,7 @@ func request_AuthService_SignInWithSSO_0(ctx context.Context, marshaler runtime.
protoReq
SignInWithSSORequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -124,6 +127,7 @@ func request_AuthService_SignUp_0(ctx context.Context, marshaler runtime.Marshal
protoReq
SignUpRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -154,6 +158,7 @@ func request_AuthService_SignOut_0(ctx context.Context, marshaler runtime.Marsha
protoReq
SignOutRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
SignOut
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
proto/gen/api/v1/idp_service.pb.gw.go
View file @
16a08729
...
...
@@ -40,6 +40,7 @@ func request_IdentityProviderService_ListIdentityProviders_0(ctx context.Context
protoReq
ListIdentityProvidersRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
ListIdentityProviders
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
@@ -59,6 +60,7 @@ func request_IdentityProviderService_GetIdentityProvider_0(ctx context.Context,
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -197,6 +199,7 @@ func request_IdentityProviderService_DeleteIdentityProvider_0(ctx context.Contex
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
proto/gen/api/v1/inbox_service.pb.gw.go
View file @
16a08729
...
...
@@ -42,6 +42,7 @@ func request_InboxService_ListInboxes_0(ctx context.Context, marshaler runtime.M
protoReq
ListInboxesRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -151,6 +152,7 @@ func request_InboxService_DeleteInbox_0(ctx context.Context, marshaler runtime.M
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
proto/gen/api/v1/markdown_service.pb.gw.go
View file @
16a08729
...
...
@@ -114,6 +114,7 @@ func request_MarkdownService_GetLinkMetadata_0(ctx context.Context, marshaler ru
protoReq
GetLinkMetadataRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
proto/gen/api/v1/memo_service.pb.gw.go
View file @
16a08729
...
...
@@ -66,6 +66,7 @@ func request_MemoService_ListMemos_0(ctx context.Context, marshaler runtime.Mars
protoReq
ListMemosRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -99,6 +100,7 @@ func request_MemoService_ListMemos_1(ctx context.Context, marshaler runtime.Mars
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"parent"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"parent"
)
...
...
@@ -147,6 +149,7 @@ func request_MemoService_GetMemo_0(ctx context.Context, marshaler runtime.Marsha
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -261,6 +264,7 @@ func request_MemoService_DeleteMemo_0(ctx context.Context, marshaler runtime.Mar
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -341,6 +345,7 @@ func request_MemoService_DeleteMemoTag_0(ctx context.Context, marshaler runtime.
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"parent"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"parent"
)
...
...
@@ -447,6 +452,7 @@ func request_MemoService_ListMemoResources_0(ctx context.Context, marshaler runt
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -525,6 +531,7 @@ func request_MemoService_ListMemoRelations_0(ctx context.Context, marshaler runt
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -603,6 +610,7 @@ func request_MemoService_ListMemoComments_0(ctx context.Context, marshaler runti
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -639,6 +647,7 @@ func request_MemoService_ListMemoReactions_0(ctx context.Context, marshaler runt
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -717,6 +726,7 @@ func request_MemoService_DeleteMemoReaction_0(ctx context.Context, marshaler run
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"id"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"id"
)
...
...
proto/gen/api/v1/resource_service.pb.gw.go
View file @
16a08729
...
...
@@ -64,6 +64,7 @@ func request_ResourceService_ListResources_0(ctx context.Context, marshaler runt
protoReq
ListResourcesRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
ListResources
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
@@ -83,6 +84,7 @@ func request_ResourceService_GetResource_0(ctx context.Context, marshaler runtim
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -121,6 +123,7 @@ func request_ResourceService_GetResourceBinary_0(ctx context.Context, marshaler
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -263,6 +266,7 @@ func request_ResourceService_DeleteResource_0(ctx context.Context, marshaler run
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
proto/gen/api/v1/user_service.pb.gw.go
View file @
16a08729
...
...
@@ -40,6 +40,7 @@ func request_UserService_ListUsers_0(ctx context.Context, marshaler runtime.Mars
protoReq
ListUsersRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
ListUsers
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
@@ -59,6 +60,7 @@ func request_UserService_GetUser_0(ctx context.Context, marshaler runtime.Marsha
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -96,6 +98,7 @@ func request_UserService_GetUserByUsername_0(ctx context.Context, marshaler runt
protoReq
GetUserByUsernameRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -129,6 +132,7 @@ func request_UserService_GetUserAvatarBinary_0(ctx context.Context, marshaler ru
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -279,6 +283,7 @@ func request_UserService_DeleteUser_0(ctx context.Context, marshaler runtime.Mar
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -314,6 +319,7 @@ func request_UserService_ListAllUserStats_0(ctx context.Context, marshaler runti
protoReq
ListAllUserStatsRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
ListAllUserStats
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
@@ -333,6 +339,7 @@ func request_UserService_GetUserStats_0(ctx context.Context, marshaler runtime.M
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -369,6 +376,7 @@ func request_UserService_GetUserSetting_0(ctx context.Context, marshaler runtime
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -483,6 +491,7 @@ func request_UserService_ListUserAccessTokens_0(ctx context.Context, marshaler r
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -561,6 +570,7 @@ func request_UserService_DeleteUserAccessToken_0(ctx context.Context, marshaler
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
@@ -613,6 +623,7 @@ func request_UserService_ListShortcuts_0(ctx context.Context, marshaler runtime.
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"parent"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"parent"
)
...
...
@@ -799,6 +810,7 @@ func request_UserService_DeleteShortcut_0(ctx context.Context, marshaler runtime
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"parent"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"parent"
)
...
...
proto/gen/api/v1/webhook_service.pb.gw.go
View file @
16a08729
...
...
@@ -65,6 +65,7 @@ func request_WebhookService_GetWebhook_0(ctx context.Context, marshaler runtime.
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"id"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"id"
)
...
...
@@ -102,6 +103,7 @@ func request_WebhookService_ListWebhooks_0(ctx context.Context, marshaler runtim
protoReq
ListWebhooksRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
if
err
:=
req
.
ParseForm
();
err
!=
nil
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"%v"
,
err
)
}
...
...
@@ -211,6 +213,7 @@ func request_WebhookService_DeleteWebhook_0(ctx context.Context, marshaler runti
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"id"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"id"
)
...
...
proto/gen/api/v1/workspace_service.pb.gw.go
View file @
16a08729
...
...
@@ -40,6 +40,7 @@ func request_WorkspaceService_GetWorkspaceProfile_0(ctx context.Context, marshal
protoReq
GetWorkspaceProfileRequest
metadata
runtime
.
ServerMetadata
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
msg
,
err
:=
client
.
GetWorkspaceProfile
(
ctx
,
&
protoReq
,
grpc
.
Header
(
&
metadata
.
HeaderMD
),
grpc
.
Trailer
(
&
metadata
.
TrailerMD
))
return
msg
,
metadata
,
err
}
...
...
proto/gen/api/v1/workspace_setting_service.pb.go
View file @
16a08729
This diff is collapsed.
Click to expand it.
proto/gen/api/v1/workspace_setting_service.pb.gw.go
View file @
16a08729
...
...
@@ -41,6 +41,7 @@ func request_WorkspaceSettingService_GetWorkspaceSetting_0(ctx context.Context,
metadata
runtime
.
ServerMetadata
err
error
)
io
.
Copy
(
io
.
Discard
,
req
.
Body
)
val
,
ok
:=
pathParams
[
"name"
]
if
!
ok
{
return
nil
,
metadata
,
status
.
Errorf
(
codes
.
InvalidArgument
,
"missing parameter %s"
,
"name"
)
...
...
proto/gen/apidocs.swagger.yaml
View file @
16a08729
...
...
@@ -2313,9 +2313,6 @@ definitions:
type
:
integer
format
:
int32
description
:
content_length_limit is the limit of content length. Unit is byte.
enableAutoCompact
:
type
:
boolean
description
:
enable_auto_compact enables auto compact for large content.
enableDoubleClickEdit
:
type
:
boolean
description
:
enable_double_click_edit enables editing on double click.
...
...
proto/gen/store/workspace_setting.pb.go
View file @
16a08729
...
...
@@ -663,8 +663,6 @@ type WorkspaceMemoRelatedSetting struct {
DisplayWithUpdateTime
bool
`protobuf:"varint,2,opt,name=display_with_update_time,json=displayWithUpdateTime,proto3" json:"display_with_update_time,omitempty"`
// content_length_limit is the limit of content length. Unit is byte.
ContentLengthLimit
int32
`protobuf:"varint,3,opt,name=content_length_limit,json=contentLengthLimit,proto3" json:"content_length_limit,omitempty"`
// enable_auto_compact enables auto compact for large content.
EnableAutoCompact
bool
`protobuf:"varint,4,opt,name=enable_auto_compact,json=enableAutoCompact,proto3" json:"enable_auto_compact,omitempty"`
// enable_double_click_edit enables editing on double click.
EnableDoubleClickEdit
bool
`protobuf:"varint,5,opt,name=enable_double_click_edit,json=enableDoubleClickEdit,proto3" json:"enable_double_click_edit,omitempty"`
// enable_link_preview enables links preview.
...
...
@@ -736,13 +734,6 @@ func (x *WorkspaceMemoRelatedSetting) GetContentLengthLimit() int32 {
return
0
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetEnableAutoCompact
()
bool
{
if
x
!=
nil
{
return
x
.
EnableAutoCompact
}
return
false
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetEnableDoubleClickEdit
()
bool
{
if
x
!=
nil
{
return
x
.
EnableDoubleClickEdit
...
...
@@ -911,7 +902,7 @@ var file_store_workspace_setting_proto_rawDesc = string([]byte{
0x6b
,
0x65
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x09
,
0x52
,
0x06
,
0x62
,
0x75
,
0x63
,
0x6b
,
0x65
,
0x74
,
0x12
,
0x24
,
0x0a
,
0x0e
,
0x75
,
0x73
,
0x65
,
0x5f
,
0x70
,
0x61
,
0x74
,
0x68
,
0x5f
,
0x73
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x18
,
0x06
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x0c
,
0x75
,
0x73
,
0x65
,
0x50
,
0x61
,
0x74
,
0x68
,
0x53
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x22
,
0x
e1
,
0x04
,
0x0a
,
0x1b
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x74
,
0x68
,
0x53
,
0x74
,
0x79
,
0x6c
,
0x65
,
0x22
,
0x
b7
,
0x04
,
0x0a
,
0x1b
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x52
,
0x65
,
0x6c
,
0x61
,
0x74
,
0x65
,
0x64
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x12
,
0x3c
,
0x0a
,
0x1a
,
0x64
,
0x69
,
0x73
,
0x61
,
0x6c
,
0x6c
,
0x6f
,
0x77
,
0x5f
,
0x70
,
0x75
,
0x62
,
0x6c
,
0x69
,
0x63
,
0x5f
,
0x76
,
0x69
,
0x73
,
0x69
,
0x62
,
...
...
@@ -924,9 +915,6 @@ var file_store_workspace_setting_proto_rawDesc = string([]byte{
0x0a
,
0x14
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x5f
,
0x6c
,
0x65
,
0x6e
,
0x67
,
0x74
,
0x68
,
0x5f
,
0x6c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x18
,
0x03
,
0x20
,
0x01
,
0x28
,
0x05
,
0x52
,
0x12
,
0x63
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x4c
,
0x65
,
0x6e
,
0x67
,
0x74
,
0x68
,
0x4c
,
0x69
,
0x6d
,
0x69
,
0x74
,
0x12
,
0x2e
,
0x0a
,
0x13
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x61
,
0x75
,
0x74
,
0x6f
,
0x5f
,
0x63
,
0x6f
,
0x6d
,
0x70
,
0x61
,
0x63
,
0x74
,
0x18
,
0x04
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x11
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x41
,
0x75
,
0x74
,
0x6f
,
0x43
,
0x6f
,
0x6d
,
0x70
,
0x61
,
0x63
,
0x74
,
0x12
,
0x37
,
0x0a
,
0x18
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x64
,
0x6f
,
0x75
,
0x62
,
0x6c
,
0x65
,
0x5f
,
0x63
,
0x6c
,
0x69
,
0x63
,
0x6b
,
0x5f
,
0x65
,
0x64
,
0x69
,
0x74
,
0x18
,
0x05
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x15
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x44
,
0x6f
,
0x75
,
0x62
,
0x6c
,
0x65
,
...
...
@@ -949,25 +937,26 @@ var file_store_workspace_setting_proto_rawDesc = string([]byte{
0x74
,
0x18
,
0x0c
,
0x20
,
0x01
,
0x28
,
0x08
,
0x52
,
0x15
,
0x65
,
0x6e
,
0x61
,
0x62
,
0x6c
,
0x65
,
0x42
,
0x6c
,
0x75
,
0x72
,
0x4e
,
0x73
,
0x66
,
0x77
,
0x43
,
0x6f
,
0x6e
,
0x74
,
0x65
,
0x6e
,
0x74
,
0x12
,
0x1b
,
0x0a
,
0x09
,
0x6e
,
0x73
,
0x66
,
0x77
,
0x5f
,
0x74
,
0x61
,
0x67
,
0x73
,
0x18
,
0x0d
,
0x20
,
0x03
,
0x28
,
0x09
,
0x52
,
0x08
,
0x6e
,
0x73
,
0x66
,
0x77
,
0x54
,
0x61
,
0x67
,
0x73
,
0x2a
,
0x73
,
0x0a
,
0x13
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x21
,
0x57
,
0x4f
,
0x52
,
0x4b
,
0x53
,
0x50
,
0x41
,
0x43
,
0x45
,
0x5f
,
0x53
,
0x45
,
0x54
,
0x54
,
0x49
,
0x4e
,
0x47
,
0x5f
,
0x4b
,
0x45
,
0x59
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x41
,
0x53
,
0x49
,
0x43
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x47
,
0x45
,
0x4e
,
0x45
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x53
,
0x54
,
0x4f
,
0x52
,
0x41
,
0x47
,
0x45
,
0x10
,
0x03
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x4d
,
0x45
,
0x4d
,
0x4f
,
0x5f
,
0x52
,
0x45
,
0x4c
,
0x41
,
0x54
,
0x45
,
0x44
,
0x10
,
0x04
,
0x42
,
0xa0
,
0x01
,
0x0a
,
0x0f
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x42
,
0x15
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x29
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xa2
,
0x02
,
0x03
,
0x4d
,
0x53
,
0x58
,
0xaa
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xca
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xe2
,
0x02
,
0x17
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
0x09
,
0x52
,
0x08
,
0x6e
,
0x73
,
0x66
,
0x77
,
0x54
,
0x61
,
0x67
,
0x73
,
0x4a
,
0x04
,
0x08
,
0x04
,
0x10
,
0x05
,
0x2a
,
0x73
,
0x0a
,
0x13
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x4b
,
0x65
,
0x79
,
0x12
,
0x25
,
0x0a
,
0x21
,
0x57
,
0x4f
,
0x52
,
0x4b
,
0x53
,
0x50
,
0x41
,
0x43
,
0x45
,
0x5f
,
0x53
,
0x45
,
0x54
,
0x54
,
0x49
,
0x4e
,
0x47
,
0x5f
,
0x4b
,
0x45
,
0x59
,
0x5f
,
0x55
,
0x4e
,
0x53
,
0x50
,
0x45
,
0x43
,
0x49
,
0x46
,
0x49
,
0x45
,
0x44
,
0x10
,
0x00
,
0x12
,
0x09
,
0x0a
,
0x05
,
0x42
,
0x41
,
0x53
,
0x49
,
0x43
,
0x10
,
0x01
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x47
,
0x45
,
0x4e
,
0x45
,
0x52
,
0x41
,
0x4c
,
0x10
,
0x02
,
0x12
,
0x0b
,
0x0a
,
0x07
,
0x53
,
0x54
,
0x4f
,
0x52
,
0x41
,
0x47
,
0x45
,
0x10
,
0x03
,
0x12
,
0x10
,
0x0a
,
0x0c
,
0x4d
,
0x45
,
0x4d
,
0x4f
,
0x5f
,
0x52
,
0x45
,
0x4c
,
0x41
,
0x54
,
0x45
,
0x44
,
0x10
,
0x04
,
0x42
,
0xa0
,
0x01
,
0x0a
,
0x0f
,
0x63
,
0x6f
,
0x6d
,
0x2e
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x42
,
0x15
,
0x57
,
0x6f
,
0x72
,
0x6b
,
0x73
,
0x70
,
0x61
,
0x63
,
0x65
,
0x53
,
0x65
,
0x74
,
0x74
,
0x69
,
0x6e
,
0x67
,
0x50
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x50
,
0x01
,
0x5a
,
0x29
,
0x67
,
0x69
,
0x74
,
0x68
,
0x75
,
0x62
,
0x2e
,
0x63
,
0x6f
,
0x6d
,
0x2f
,
0x75
,
0x73
,
0x65
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x6d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2f
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x2f
,
0x67
,
0x65
,
0x6e
,
0x2f
,
0x73
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xa2
,
0x02
,
0x03
,
0x4d
,
0x53
,
0x58
,
0xaa
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x2e
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xca
,
0x02
,
0x0b
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0xe2
,
0x02
,
0x17
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x5c
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x5c
,
0x47
,
0x50
,
0x42
,
0x4d
,
0x65
,
0x74
,
0x61
,
0x64
,
0x61
,
0x74
,
0x61
,
0xea
,
0x02
,
0x0c
,
0x4d
,
0x65
,
0x6d
,
0x6f
,
0x73
,
0x3a
,
0x3a
,
0x53
,
0x74
,
0x6f
,
0x72
,
0x65
,
0x62
,
0x06
,
0x70
,
0x72
,
0x6f
,
0x74
,
0x6f
,
0x33
,
})
var
(
...
...
proto/store/workspace_setting.proto
View file @
16a08729
...
...
@@ -95,14 +95,14 @@ message StorageS3Config {
}
message
WorkspaceMemoRelatedSetting
{
reserved
4
;
// disallow_public_visibility disallows set memo as public visibility.
bool
disallow_public_visibility
=
1
;
// display_with_update_time orders and displays memo with update time.
bool
display_with_update_time
=
2
;
// content_length_limit is the limit of content length. Unit is byte.
int32
content_length_limit
=
3
;
// enable_auto_compact enables auto compact for large content.
bool
enable_auto_compact
=
4
;
// enable_double_click_edit enables editing on double click.
bool
enable_double_click_edit
=
5
;
// enable_link_preview enables links preview.
...
...
server/router/api/v1/workspace_setting_service.go
View file @
16a08729
...
...
@@ -226,7 +226,6 @@ func convertWorkspaceMemoRelatedSettingFromStore(setting *storepb.WorkspaceMemoR
DisallowPublicVisibility
:
setting
.
DisallowPublicVisibility
,
DisplayWithUpdateTime
:
setting
.
DisplayWithUpdateTime
,
ContentLengthLimit
:
setting
.
ContentLengthLimit
,
EnableAutoCompact
:
setting
.
EnableAutoCompact
,
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableComment
:
setting
.
EnableComment
,
...
...
@@ -246,7 +245,6 @@ func convertWorkspaceMemoRelatedSettingToStore(setting *v1pb.WorkspaceMemoRelate
DisallowPublicVisibility
:
setting
.
DisallowPublicVisibility
,
DisplayWithUpdateTime
:
setting
.
DisplayWithUpdateTime
,
ContentLengthLimit
:
setting
.
ContentLengthLimit
,
EnableAutoCompact
:
setting
.
EnableAutoCompact
,
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableComment
:
setting
.
EnableComment
,
...
...
web/src/components/MemoView.tsx
View file @
16a08729
...
...
@@ -228,7 +228,7 @@ const MemoView: React.FC<Props> = (props: Props) => {
readonly=
{
readonly
}
onClick=
{
handleMemoContentClick
}
onDoubleClick=
{
handleMemoContentDoubleClick
}
compact=
{
props
.
compact
&&
workspaceMemoRelatedSetting
.
enableAutoCompact
}
compact=
{
props
.
compact
}
parentPage=
{
parentPage
}
/>
{
memo
.
location
&&
<
MemoLocationView
location=
{
memo
.
location
}
/>
}
...
...
web/src/components/SearchBar.tsx
View file @
16a08729
...
...
@@ -33,7 +33,7 @@ const SearchBar = () => {
<
div
className=
"relative w-full h-auto flex flex-row justify-start items-center"
>
<
SearchIcon
className=
"absolute left-2 w-4 h-auto opacity-40"
/>
<
input
className=
"w-full text-gray-500 leading-6 dark:text-gray-400 bg-zinc-50 dark:bg-zinc-900 border dark:border-zinc-800 text-sm rounded-xl p-1 pl-8 outline-none"
className=
"w-full text-gray-500 leading-6 dark:text-gray-400
placeholder:opacity-80
bg-zinc-50 dark:bg-zinc-900 border dark:border-zinc-800 text-sm rounded-xl p-1 pl-8 outline-none"
placeholder=
{
t
(
"memo.search-placeholder"
)
}
value=
{
queryText
}
onChange=
{
onTextChange
}
...
...
web/src/components/Settings/MemoRelatedSettings.tsx
View file @
16a08729
...
...
@@ -79,13 +79,6 @@ const MemoRelatedSettings = () => {
onChange=
{
(
event
)
=>
updatePartialSetting
({
displayWithUpdateTime
:
event
.
target
.
checked
})
}
/>
</
div
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
>
{
t
(
"setting.system-section.enable-auto-compact"
)
}
</
span
>
<
Switch
checked=
{
memoRelatedSetting
.
enableAutoCompact
}
onChange=
{
(
event
)
=>
updatePartialSetting
({
enableAutoCompact
:
event
.
target
.
checked
})
}
/>
</
div
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
>
{
t
(
"setting.memo-related-settings.enable-link-preview"
)
}
</
span
>
<
Switch
...
...
web/src/locales/en.json
View file @
16a08729
...
...
@@ -120,7 +120,7 @@
"delete-confirm"
:
"Are you sure you want to delete this memo? THIS ACTION IS IRREVERSIBLE"
,
"load-more"
:
"Load more"
,
"no-archived-memos"
:
"No archived memos."
,
"search-placeholder"
:
"Search memos"
,
"search-placeholder"
:
"Search memos
...
"
,
"show-more"
:
"Show more"
,
"show-less"
:
"Show less"
,
"view-detail"
:
"View Detail"
,
...
...
@@ -410,4 +410,4 @@
"blogs"
:
"Blogs"
,
"documents"
:
"Documents"
}
}
}
\ No newline at end of file
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