Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
chore: enable auto compact by default
Johnny16a0872972f7
diff --git a/proto/api/v1/workspace_setting_service.proto b/proto/api/v1/workspace_setting_service.protoindex 97b413047..bd18daa8f 100644--- a/proto/api/v1/workspace_setting_service.proto+++ b/proto/api/v1/workspace_setting_service.proto@@ -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.diff --git a/proto/gen/api/v1/activity_service.pb.gw.go b/proto/gen/api/v1/activity_service.pb.gw.goindex 9c61fc17f..7cbdd2c6d 100644--- a/proto/gen/api/v1/activity_service.pb.gw.go+++ b/proto/gen/api/v1/activity_service.pb.gw.go@@ -41,6 +41,7 @@ func request_ActivityService_GetActivity_0(ctx context.Context, marshaler runtimmetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["name"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")diff --git a/proto/gen/api/v1/auth_service.pb.gw.go b/proto/gen/api/v1/auth_service.pb.gw.goindex 3c553912d..904050d53 100644--- a/proto/gen/api/v1/auth_service.pb.gw.go+++ b/proto/gen/api/v1/auth_service.pb.gw.go@@ -40,6 +40,7 @@ func request_AuthService_GetAuthStatus_0(ctx context.Context, marshaler runtime.protoReq GetAuthStatusRequestmetadata 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.MarshalprotoReq SignInRequestmetadata 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 SignInWithSSORequestmetadata 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.MarshalprotoReq SignUpRequestmetadata 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.MarshaprotoReq SignOutRequestmetadata 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}diff --git a/proto/gen/api/v1/idp_service.pb.gw.go b/proto/gen/api/v1/idp_service.pb.gw.goindex 9d7251d2a..35a41c586 100644--- a/proto/gen/api/v1/idp_service.pb.gw.go+++ b/proto/gen/api/v1/idp_service.pb.gw.go@@ -40,6 +40,7 @@ func request_IdentityProviderService_ListIdentityProviders_0(ctx context.ContextprotoReq ListIdentityProvidersRequestmetadata 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.ServerMetadataerr 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.Contexmetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["name"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")diff --git a/proto/gen/api/v1/inbox_service.pb.gw.go b/proto/gen/api/v1/inbox_service.pb.gw.goindex 3144ca4f5..1975daf76 100644--- a/proto/gen/api/v1/inbox_service.pb.gw.go+++ b/proto/gen/api/v1/inbox_service.pb.gw.go@@ -42,6 +42,7 @@ func request_InboxService_ListInboxes_0(ctx context.Context, marshaler runtime.MprotoReq ListInboxesRequestmetadata 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.Mmetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["name"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")diff --git a/proto/gen/api/v1/markdown_service.pb.gw.go b/proto/gen/api/v1/markdown_service.pb.gw.goindex e4eae32a6..27740dd52 100644--- a/proto/gen/api/v1/markdown_service.pb.gw.go+++ b/proto/gen/api/v1/markdown_service.pb.gw.go@@ -114,6 +114,7 @@ func request_MarkdownService_GetLinkMetadata_0(ctx context.Context, marshaler ruprotoReq GetLinkMetadataRequestmetadata runtime.ServerMetadata)+ io.Copy(io.Discard, req.Body)if err := req.ParseForm(); err != nil {return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)}diff --git a/proto/gen/api/v1/memo_service.pb.gw.go b/proto/gen/api/v1/memo_service.pb.gw.goindex b948ad100..58c5cd2ca 100644--- a/proto/gen/api/v1/memo_service.pb.gw.go+++ b/proto/gen/api/v1/memo_service.pb.gw.go@@ -66,6 +66,7 @@ func request_MemoService_ListMemos_0(ctx context.Context, marshaler runtime.MarsprotoReq ListMemosRequestmetadata 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.Marsmetadata runtime.ServerMetadataerr 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.Marshametadata runtime.ServerMetadataerr 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.Marmetadata runtime.ServerMetadataerr 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.ServerMetadataerr 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 runtmetadata runtime.ServerMetadataerr 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 runtmetadata runtime.ServerMetadataerr 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 runtimetadata runtime.ServerMetadataerr 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 runtmetadata runtime.ServerMetadataerr 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 runmetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["id"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")diff --git a/proto/gen/api/v1/resource_service.pb.gw.go b/proto/gen/api/v1/resource_service.pb.gw.goindex f9b7cf37d..484db26da 100644--- a/proto/gen/api/v1/resource_service.pb.gw.go+++ b/proto/gen/api/v1/resource_service.pb.gw.go@@ -64,6 +64,7 @@ func request_ResourceService_ListResources_0(ctx context.Context, marshaler runtprotoReq ListResourcesRequestmetadata 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 runtimmetadata runtime.ServerMetadataerr 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, marshalermetadata runtime.ServerMetadataerr 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 runmetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["name"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")diff --git a/proto/gen/api/v1/user_service.pb.gw.go b/proto/gen/api/v1/user_service.pb.gw.goindex a86a5126a..1ac6e81d5 100644--- a/proto/gen/api/v1/user_service.pb.gw.go+++ b/proto/gen/api/v1/user_service.pb.gw.go@@ -40,6 +40,7 @@ func request_UserService_ListUsers_0(ctx context.Context, marshaler runtime.MarsprotoReq ListUsersRequestmetadata 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.Marshametadata runtime.ServerMetadataerr 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 runtprotoReq GetUserByUsernameRequestmetadata 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 rumetadata runtime.ServerMetadataerr 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.Marmetadata runtime.ServerMetadataerr 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 runtiprotoReq ListAllUserStatsRequestmetadata 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.Mmetadata runtime.ServerMetadataerr 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 runtimemetadata runtime.ServerMetadataerr 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 rmetadata runtime.ServerMetadataerr 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, marshalermetadata runtime.ServerMetadataerr 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.ServerMetadataerr 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 runtimemetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["parent"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "parent")diff --git a/proto/gen/api/v1/webhook_service.pb.gw.go b/proto/gen/api/v1/webhook_service.pb.gw.goindex 45f599e42..35192e4c2 100644--- a/proto/gen/api/v1/webhook_service.pb.gw.go+++ b/proto/gen/api/v1/webhook_service.pb.gw.go@@ -65,6 +65,7 @@ func request_WebhookService_GetWebhook_0(ctx context.Context, marshaler runtime.metadata runtime.ServerMetadataerr 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 runtimprotoReq ListWebhooksRequestmetadata 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 runtimetadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["id"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "id")diff --git a/proto/gen/api/v1/workspace_service.pb.gw.go b/proto/gen/api/v1/workspace_service.pb.gw.goindex 9dc0b42d4..5a95d0796 100644--- a/proto/gen/api/v1/workspace_service.pb.gw.go+++ b/proto/gen/api/v1/workspace_service.pb.gw.go@@ -40,6 +40,7 @@ func request_WorkspaceService_GetWorkspaceProfile_0(ctx context.Context, marshalprotoReq GetWorkspaceProfileRequestmetadata 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}diff --git a/proto/gen/api/v1/workspace_setting_service.pb.go b/proto/gen/api/v1/workspace_setting_service.pb.goindex f3f405667..6ae86ff5c 100644--- a/proto/gen/api/v1/workspace_setting_service.pb.go+++ b/proto/gen/api/v1/workspace_setting_service.pb.go@@ -452,8 +452,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.@@ -525,13 +523,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@@ -871,7 +862,7 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = string([]byte{0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c,0x0a, 0x08, 0x44, 0x41, 0x54, 0x41, 0x42, 0x41, 0x53, 0x45, 0x10, 0x01, 0x12, 0x09, 0x0a, 0x05,0x4c, 0x4f, 0x43, 0x41, 0x4c, 0x10, 0x02, 0x12, 0x06, 0x0a, 0x02, 0x53, 0x33, 0x10, 0x03, 0x22,- 0xe1, 0x04, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x4d, 0x65, 0x6d,+ 0xb7, 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, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20,@@ -883,10 +874,7 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = string([]byte{0x74, 0x65, 0x54, 0x69, 0x6d, 0x65, 0x12, 0x30, 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,+ 0x67, 0x74, 0x68, 0x4c, 0x69, 0x6d, 0x69, 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, 0x43, 0x6c, 0x69, 0x63, 0x6b, 0x45, 0x64, 0x69,@@ -909,49 +897,50 @@ var file_api_v1_workspace_setting_service_proto_rawDesc = string([]byte{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, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,- 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,- 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53,- 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74,- 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d,- 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,- 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x07, 0x73, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,- 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12,- 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,- 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70,- 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73,- 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31,- 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25,- 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70,- 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,- 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x13, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72,+ 0x61, 0x67, 0x73, 0x4a, 0x04, 0x08, 0x04, 0x10, 0x05, 0x22, 0x36, 0x0a, 0x1a, 0x47, 0x65, 0x74,+ 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,+ 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18,+ 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x04, 0xe2, 0x41, 0x01, 0x02, 0x52, 0x04, 0x6e, 0x61, 0x6d,+ 0x65, 0x22, 0x56, 0x0a, 0x1a, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63,+ 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,+ 0x38, 0x0a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b,+ 0x32, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e,+ 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,+ 0x52, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0xd9, 0x02, 0x0a, 0x17, 0x57, 0x6f,+ 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65,+ 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x93, 0x01, 0x0a, 0x13, 0x47, 0x65, 0x74, 0x57, 0x6f, 0x72,0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e,- 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74,+ 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74,0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67,0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e,0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65,- 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46, 0xda, 0x41, 0x07, 0x73, 0x65, 0x74, 0x74,- 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69,- 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b,- 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e,- 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42,- 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70,- 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,- 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f,- 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 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, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31,- 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d, 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d,- 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56, 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65,- 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d,- 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c, 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74,- 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41,- 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,+ 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x32, 0xda, 0x41, 0x04, 0x6e, 0x61, 0x6d, 0x65,+ 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x25, 0x12, 0x23, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x2f,+ 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x6e, 0x61, 0x6d, 0x65, 0x3d,+ 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x12, 0xa7, 0x01, 0x0a, 0x13,+ 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74,+ 0x69, 0x6e, 0x67, 0x12, 0x28, 0x2e, 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e,+ 0x76, 0x31, 0x2e, 0x53, 0x65, 0x74, 0x57, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53,+ 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1e, 0x2e,+ 0x6d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x57, 0x6f, 0x72,+ 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x22, 0x46, 0xda,+ 0x41, 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x82, 0xd3, 0xe4, 0x93, 0x02, 0x36, 0x3a,+ 0x07, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x32, 0x2b, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x76,+ 0x31, 0x2f, 0x77, 0x6f, 0x72, 0x6b, 0x73, 0x70, 0x61, 0x63, 0x65, 0x2f, 0x7b, 0x73, 0x65, 0x74,+ 0x74, 0x69, 0x6e, 0x67, 0x2e, 0x6e, 0x61, 0x6d, 0x65, 0x3d, 0x73, 0x65, 0x74, 0x74, 0x69, 0x6e,+ 0x67, 0x73, 0x2f, 0x2a, 0x7d, 0x42, 0xb4, 0x01, 0x0a, 0x10, 0x63, 0x6f, 0x6d, 0x2e, 0x6d, 0x65,+ 0x6d, 0x6f, 0x73, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x42, 0x1c, 0x57, 0x6f, 0x72, 0x6b,+ 0x73, 0x70, 0x61, 0x63, 0x65, 0x53, 0x65, 0x74, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x65, 0x72, 0x76,+ 0x69, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x30, 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,+ 0x61, 0x70, 0x69, 0x2f, 0x76, 0x31, 0x3b, 0x61, 0x70, 0x69, 0x76, 0x31, 0xa2, 0x02, 0x03, 0x4d,+ 0x41, 0x58, 0xaa, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x2e, 0x41, 0x70, 0x69, 0x2e, 0x56,+ 0x31, 0xca, 0x02, 0x0c, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31,+ 0xe2, 0x02, 0x18, 0x4d, 0x65, 0x6d, 0x6f, 0x73, 0x5c, 0x41, 0x70, 0x69, 0x5c, 0x56, 0x31, 0x5c,+ 0x47, 0x50, 0x42, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0xea, 0x02, 0x0e, 0x4d, 0x65,+ 0x6d, 0x6f, 0x73, 0x3a, 0x3a, 0x41, 0x70, 0x69, 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72,+ 0x6f, 0x74, 0x6f, 0x33,})var (diff --git a/proto/gen/api/v1/workspace_setting_service.pb.gw.go b/proto/gen/api/v1/workspace_setting_service.pb.gw.goindex df5991216..3d297ea91 100644--- a/proto/gen/api/v1/workspace_setting_service.pb.gw.go+++ b/proto/gen/api/v1/workspace_setting_service.pb.gw.go@@ -41,6 +41,7 @@ func request_WorkspaceSettingService_GetWorkspaceSetting_0(ctx context.Context,metadata runtime.ServerMetadataerr error)+ io.Copy(io.Discard, req.Body)val, ok := pathParams["name"]if !ok {return nil, metadata, status.Errorf(codes.InvalidArgument, "missing parameter %s", "name")diff --git a/proto/gen/apidocs.swagger.yaml b/proto/gen/apidocs.swagger.yamlindex 3cc120b33..731a3c471 100644--- a/proto/gen/apidocs.swagger.yaml+++ b/proto/gen/apidocs.swagger.yaml@@ -2313,9 +2313,6 @@ definitions:type: integerformat: int32description: 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: booleandescription: enable_double_click_edit enables editing on double click.diff --git a/proto/gen/store/workspace_setting.pb.go b/proto/gen/store/workspace_setting.pb.goindex 2b6cb1e8c..51f646da0 100644--- a/proto/gen/store/workspace_setting.pb.go+++ b/proto/gen/store/workspace_setting.pb.go@@ -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, 0xe1, 0x04, 0x0a, 0x1b, 0x57, 0x6f, 0x72, 0x6b,+ 0x74, 0x68, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x22, 0xb7, 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 (diff --git a/proto/store/workspace_setting.proto b/proto/store/workspace_setting.protoindex 2e1c22875..c8b714c01 100644--- a/proto/store/workspace_setting.proto+++ b/proto/store/workspace_setting.proto@@ -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.diff --git a/server/router/api/v1/workspace_setting_service.go b/server/router/api/v1/workspace_setting_service.goindex f72b49471..626b6de1b 100644--- a/server/router/api/v1/workspace_setting_service.go+++ b/server/router/api/v1/workspace_setting_service.go@@ -226,7 +226,6 @@ func convertWorkspaceMemoRelatedSettingFromStore(setting *storepb.WorkspaceMemoRDisallowPublicVisibility: 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.WorkspaceMemoRelateDisallowPublicVisibility: setting.DisallowPublicVisibility,DisplayWithUpdateTime: setting.DisplayWithUpdateTime,ContentLengthLimit: setting.ContentLengthLimit,- EnableAutoCompact: setting.EnableAutoCompact,EnableDoubleClickEdit: setting.EnableDoubleClickEdit,EnableLinkPreview: setting.EnableLinkPreview,EnableComment: setting.EnableComment,diff --git a/web/src/components/MemoView.tsx b/web/src/components/MemoView.tsxindex e1c7ea0d2..9420bb94c 100644--- a/web/src/components/MemoView.tsx+++ b/web/src/components/MemoView.tsx@@ -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} />}diff --git a/web/src/components/SearchBar.tsx b/web/src/components/SearchBar.tsxindex 10e589fb3..53b3d2af4 100644--- a/web/src/components/SearchBar.tsx+++ b/web/src/components/SearchBar.tsx@@ -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}diff --git a/web/src/components/Settings/MemoRelatedSettings.tsx b/web/src/components/Settings/MemoRelatedSettings.tsxindex 259f072bd..dbee0d86e 100644--- a/web/src/components/Settings/MemoRelatedSettings.tsx+++ b/web/src/components/Settings/MemoRelatedSettings.tsx@@ -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><Switchdiff --git a/web/src/locales/en.json b/web/src/locales/en.jsonindex 0bd692907..b4a1eba2f 100644--- a/web/src/locales/en.json+++ b/web/src/locales/en.json@@ -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