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
ee99afd7
Commit
ee99afd7
authored
May 19, 2025
by
johnnyjoy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: enable location by default
parent
d4ebf293
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
17 additions
and
70 deletions
+17
-70
workspace_setting_service.proto
proto/api/v1/workspace_setting_service.proto
+1
-3
workspace_setting_service.pb.go
proto/gen/api/v1/workspace_setting_service.pb.go
+3
-13
apidocs.swagger.yaml
proto/gen/apidocs.swagger.yaml
+0
-3
workspace_setting.pb.go
proto/gen/store/workspace_setting.pb.go
+3
-13
workspace_setting.proto
proto/store/workspace_setting.proto
+1
-3
workspace_setting_service.go
server/router/api/v1/workspace_setting_service.go
+0
-2
index.tsx
web/src/components/MemoEditor/index.tsx
+9
-11
MemoRelatedSettings.tsx
web/src/components/Settings/MemoRelatedSettings.tsx
+0
-7
workspace_setting_service.ts
web/src/types/proto/api/v1/workspace_setting_service.ts
+0
-15
No files found.
proto/api/v1/workspace_setting_service.proto
View file @
ee99afd7
...
@@ -96,7 +96,7 @@ message WorkspaceStorageSetting {
...
@@ -96,7 +96,7 @@ message WorkspaceStorageSetting {
}
}
message
WorkspaceMemoRelatedSetting
{
message
WorkspaceMemoRelatedSetting
{
reserved
4
;
reserved
4
,
8
;
// disallow_public_visibility disallows set memo as public visibility.
// disallow_public_visibility disallows set memo as public visibility.
bool
disallow_public_visibility
=
1
;
bool
disallow_public_visibility
=
1
;
...
@@ -110,8 +110,6 @@ message WorkspaceMemoRelatedSetting {
...
@@ -110,8 +110,6 @@ message WorkspaceMemoRelatedSetting {
bool
enable_link_preview
=
6
;
bool
enable_link_preview
=
6
;
// enable_comment enables comment.
// enable_comment enables comment.
bool
enable_comment
=
7
;
bool
enable_comment
=
7
;
// enable_location enables setting location for memo.
bool
enable_location
=
8
;
// reactions is the list of reactions.
// reactions is the list of reactions.
repeated
string
reactions
=
10
;
repeated
string
reactions
=
10
;
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
...
...
proto/gen/api/v1/workspace_setting_service.pb.go
View file @
ee99afd7
...
@@ -458,8 +458,6 @@ type WorkspaceMemoRelatedSetting struct {
...
@@ -458,8 +458,6 @@ type WorkspaceMemoRelatedSetting struct {
EnableLinkPreview
bool
`protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
EnableLinkPreview
bool
`protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
// enable_comment enables comment.
// enable_comment enables comment.
EnableComment
bool
`protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
EnableComment
bool
`protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
// enable_location enables setting location for memo.
EnableLocation
bool
`protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"`
// reactions is the list of reactions.
// reactions is the list of reactions.
Reactions
[]
string
`protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
Reactions
[]
string
`protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
// disable_markdown_shortcuts disallow the registration of markdown shortcuts.
...
@@ -544,13 +542,6 @@ func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
...
@@ -544,13 +542,6 @@ func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
return
false
return
false
}
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetEnableLocation
()
bool
{
if
x
!=
nil
{
return
x
.
EnableLocation
}
return
false
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetReactions
()
[]
string
{
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetReactions
()
[]
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Reactions
return
x
.
Reactions
...
@@ -799,20 +790,19 @@ const file_api_v1_workspace_setting_service_proto_rawDesc = "" +
...
@@ -799,20 +790,19 @@ const file_api_v1_workspace_setting_service_proto_rawDesc = "" +
"
\x18
STORAGE_TYPE_UNSPECIFIED
\x10\x00\x12\f\n
"
+
"
\x18
STORAGE_TYPE_UNSPECIFIED
\x10\x00\x12\f\n
"
+
"
\b
DATABASE
\x10\x01\x12\t\n
"
+
"
\b
DATABASE
\x10\x01\x12\t\n
"
+
"
\x05
LOCAL
\x10\x02\x12\x06\n
"
+
"
\x05
LOCAL
\x10\x02\x12\x06\n
"
+
"
\x02
S3
\x10\x03\"\x
b7
\x04\n
"
+
"
\x02
S3
\x10\x03\"\x
94
\x04\n
"
+
"
\x1b
WorkspaceMemoRelatedSetting
\x12
<
\n
"
+
"
\x1b
WorkspaceMemoRelatedSetting
\x12
<
\n
"
+
"
\x1a
disallow_public_visibility
\x18\x01
\x01
(
\b
R
\x18
disallowPublicVisibility
\x12
7
\n
"
+
"
\x1a
disallow_public_visibility
\x18\x01
\x01
(
\b
R
\x18
disallowPublicVisibility
\x12
7
\n
"
+
"
\x18
display_with_update_time
\x18\x02
\x01
(
\b
R
\x15
displayWithUpdateTime
\x12
0
\n
"
+
"
\x18
display_with_update_time
\x18\x02
\x01
(
\b
R
\x15
displayWithUpdateTime
\x12
0
\n
"
+
"
\x14
content_length_limit
\x18\x03
\x01
(
\x05
R
\x12
contentLengthLimit
\x12
7
\n
"
+
"
\x14
content_length_limit
\x18\x03
\x01
(
\x05
R
\x12
contentLengthLimit
\x12
7
\n
"
+
"
\x18
enable_double_click_edit
\x18\x05
\x01
(
\b
R
\x15
enableDoubleClickEdit
\x12
.
\n
"
+
"
\x18
enable_double_click_edit
\x18\x05
\x01
(
\b
R
\x15
enableDoubleClickEdit
\x12
.
\n
"
+
"
\x13
enable_link_preview
\x18\x06
\x01
(
\b
R
\x11
enableLinkPreview
\x12
%
\n
"
+
"
\x13
enable_link_preview
\x18\x06
\x01
(
\b
R
\x11
enableLinkPreview
\x12
%
\n
"
+
"
\x0e
enable_comment
\x18\a
\x01
(
\b
R
\r
enableComment
\x12
'
\n
"
+
"
\x0e
enable_comment
\x18\a
\x01
(
\b
R
\r
enableComment
\x12\x1c\n
"
+
"
\x0f
enable_location
\x18\b
\x01
(
\b
R
\x0e
enableLocation
\x12\x1c\n
"
+
"
\t
reactions
\x18\n
"
+
"
\t
reactions
\x18\n
"
+
"
\x03
(
\t
R
\t
reactions
\x12
<
\n
"
+
"
\x03
(
\t
R
\t
reactions
\x12
<
\n
"
+
"
\x1a
disable_markdown_shortcuts
\x18\v
\x01
(
\b
R
\x18
disableMarkdownShortcuts
\x12
7
\n
"
+
"
\x1a
disable_markdown_shortcuts
\x18\v
\x01
(
\b
R
\x18
disableMarkdownShortcuts
\x12
7
\n
"
+
"
\x18
enable_blur_nsfw_content
\x18\f
\x01
(
\b
R
\x15
enableBlurNsfwContent
\x12\x1b\n
"
+
"
\x18
enable_blur_nsfw_content
\x18\f
\x01
(
\b
R
\x15
enableBlurNsfwContent
\x12\x1b\n
"
+
"
\t
nsfw_tags
\x18\r
\x03
(
\t
R
\b
nsfwTagsJ
\x04\b\x04\x10\x05\"
5
\n
"
+
"
\t
nsfw_tags
\x18\r
\x03
(
\t
R
\b
nsfwTagsJ
\x04\b\x04\x10\x05
J
\x04\b\b\x10\t
\"
5
\n
"
+
"
\x1a
GetWorkspaceSettingRequest
\x12\x17\n
"
+
"
\x1a
GetWorkspaceSettingRequest
\x12\x17\n
"
+
"
\x04
name
\x18\x01
\x01
(
\t
B
\x03\xe0
A
\x02
R
\x04
name
\"
V
\n
"
+
"
\x04
name
\x18\x01
\x01
(
\t
B
\x03\xe0
A
\x02
R
\x04
name
\"
V
\n
"
+
"
\x1a
SetWorkspaceSettingRequest
\x12
8
\n
"
+
"
\x1a
SetWorkspaceSettingRequest
\x12
8
\n
"
+
...
...
proto/gen/apidocs.swagger.yaml
View file @
ee99afd7
...
@@ -2308,9 +2308,6 @@ definitions:
...
@@ -2308,9 +2308,6 @@ definitions:
enableComment
:
enableComment
:
type
:
boolean
type
:
boolean
description
:
enable_comment enables comment.
description
:
enable_comment enables comment.
enableLocation
:
type
:
boolean
description
:
enable_location enables setting location for memo.
reactions
:
reactions
:
type
:
array
type
:
array
items
:
items
:
...
...
proto/gen/store/workspace_setting.pb.go
View file @
ee99afd7
...
@@ -669,8 +669,6 @@ type WorkspaceMemoRelatedSetting struct {
...
@@ -669,8 +669,6 @@ type WorkspaceMemoRelatedSetting struct {
EnableLinkPreview
bool
`protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
EnableLinkPreview
bool
`protobuf:"varint,6,opt,name=enable_link_preview,json=enableLinkPreview,proto3" json:"enable_link_preview,omitempty"`
// enable_comment enables comment.
// enable_comment enables comment.
EnableComment
bool
`protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
EnableComment
bool
`protobuf:"varint,7,opt,name=enable_comment,json=enableComment,proto3" json:"enable_comment,omitempty"`
// enable_location enables setting location for memo.
EnableLocation
bool
`protobuf:"varint,8,opt,name=enable_location,json=enableLocation,proto3" json:"enable_location,omitempty"`
// reactions is the list of reactions.
// reactions is the list of reactions.
Reactions
[]
string
`protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
Reactions
[]
string
`protobuf:"bytes,10,rep,name=reactions,proto3" json:"reactions,omitempty"`
// disable markdown shortcuts
// disable markdown shortcuts
...
@@ -755,13 +753,6 @@ func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
...
@@ -755,13 +753,6 @@ func (x *WorkspaceMemoRelatedSetting) GetEnableComment() bool {
return
false
return
false
}
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetEnableLocation
()
bool
{
if
x
!=
nil
{
return
x
.
EnableLocation
}
return
false
}
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetReactions
()
[]
string
{
func
(
x
*
WorkspaceMemoRelatedSetting
)
GetReactions
()
[]
string
{
if
x
!=
nil
{
if
x
!=
nil
{
return
x
.
Reactions
return
x
.
Reactions
...
@@ -839,20 +830,19 @@ const file_store_workspace_setting_proto_rawDesc = "" +
...
@@ -839,20 +830,19 @@ const file_store_workspace_setting_proto_rawDesc = "" +
"
\b
endpoint
\x18\x03
\x01
(
\t
R
\b
endpoint
\x12\x16\n
"
+
"
\b
endpoint
\x18\x03
\x01
(
\t
R
\b
endpoint
\x12\x16\n
"
+
"
\x06
region
\x18\x04
\x01
(
\t
R
\x06
region
\x12\x16\n
"
+
"
\x06
region
\x18\x04
\x01
(
\t
R
\x06
region
\x12\x16\n
"
+
"
\x06
bucket
\x18\x05
\x01
(
\t
R
\x06
bucket
\x12
$
\n
"
+
"
\x06
bucket
\x18\x05
\x01
(
\t
R
\x06
bucket
\x12
$
\n
"
+
"
\x0e
use_path_style
\x18\x06
\x01
(
\b
R
\f
usePathStyle
\"\x
b7
\x04\n
"
+
"
\x0e
use_path_style
\x18\x06
\x01
(
\b
R
\f
usePathStyle
\"\x
94
\x04\n
"
+
"
\x1b
WorkspaceMemoRelatedSetting
\x12
<
\n
"
+
"
\x1b
WorkspaceMemoRelatedSetting
\x12
<
\n
"
+
"
\x1a
disallow_public_visibility
\x18\x01
\x01
(
\b
R
\x18
disallowPublicVisibility
\x12
7
\n
"
+
"
\x1a
disallow_public_visibility
\x18\x01
\x01
(
\b
R
\x18
disallowPublicVisibility
\x12
7
\n
"
+
"
\x18
display_with_update_time
\x18\x02
\x01
(
\b
R
\x15
displayWithUpdateTime
\x12
0
\n
"
+
"
\x18
display_with_update_time
\x18\x02
\x01
(
\b
R
\x15
displayWithUpdateTime
\x12
0
\n
"
+
"
\x14
content_length_limit
\x18\x03
\x01
(
\x05
R
\x12
contentLengthLimit
\x12
7
\n
"
+
"
\x14
content_length_limit
\x18\x03
\x01
(
\x05
R
\x12
contentLengthLimit
\x12
7
\n
"
+
"
\x18
enable_double_click_edit
\x18\x05
\x01
(
\b
R
\x15
enableDoubleClickEdit
\x12
.
\n
"
+
"
\x18
enable_double_click_edit
\x18\x05
\x01
(
\b
R
\x15
enableDoubleClickEdit
\x12
.
\n
"
+
"
\x13
enable_link_preview
\x18\x06
\x01
(
\b
R
\x11
enableLinkPreview
\x12
%
\n
"
+
"
\x13
enable_link_preview
\x18\x06
\x01
(
\b
R
\x11
enableLinkPreview
\x12
%
\n
"
+
"
\x0e
enable_comment
\x18\a
\x01
(
\b
R
\r
enableComment
\x12
'
\n
"
+
"
\x0e
enable_comment
\x18\a
\x01
(
\b
R
\r
enableComment
\x12\x1c\n
"
+
"
\x0f
enable_location
\x18\b
\x01
(
\b
R
\x0e
enableLocation
\x12\x1c\n
"
+
"
\t
reactions
\x18\n
"
+
"
\t
reactions
\x18\n
"
+
"
\x03
(
\t
R
\t
reactions
\x12
<
\n
"
+
"
\x03
(
\t
R
\t
reactions
\x12
<
\n
"
+
"
\x1a
disable_markdown_shortcuts
\x18\v
\x01
(
\b
R
\x18
disableMarkdownShortcuts
\x12
7
\n
"
+
"
\x1a
disable_markdown_shortcuts
\x18\v
\x01
(
\b
R
\x18
disableMarkdownShortcuts
\x12
7
\n
"
+
"
\x18
enable_blur_nsfw_content
\x18\f
\x01
(
\b
R
\x15
enableBlurNsfwContent
\x12\x1b\n
"
+
"
\x18
enable_blur_nsfw_content
\x18\f
\x01
(
\b
R
\x15
enableBlurNsfwContent
\x12\x1b\n
"
+
"
\t
nsfw_tags
\x18\r
\x03
(
\t
R
\b
nsfwTagsJ
\x04\b\x04\x10\x05
*s
\n
"
+
"
\t
nsfw_tags
\x18\r
\x03
(
\t
R
\b
nsfwTagsJ
\x04\b\x04\x10\x05
J
\x04\b\b\x10\t
*s
\n
"
+
"
\x13
WorkspaceSettingKey
\x12
%
\n
"
+
"
\x13
WorkspaceSettingKey
\x12
%
\n
"
+
"!WORKSPACE_SETTING_KEY_UNSPECIFIED
\x10\x00\x12\t\n
"
+
"!WORKSPACE_SETTING_KEY_UNSPECIFIED
\x10\x00\x12\t\n
"
+
"
\x05
BASIC
\x10\x01\x12\v\n
"
+
"
\x05
BASIC
\x10\x01\x12\v\n
"
+
...
...
proto/store/workspace_setting.proto
View file @
ee99afd7
...
@@ -95,7 +95,7 @@ message StorageS3Config {
...
@@ -95,7 +95,7 @@ message StorageS3Config {
}
}
message
WorkspaceMemoRelatedSetting
{
message
WorkspaceMemoRelatedSetting
{
reserved
4
;
reserved
4
,
8
;
// disallow_public_visibility disallows set memo as public visibility.
// disallow_public_visibility disallows set memo as public visibility.
bool
disallow_public_visibility
=
1
;
bool
disallow_public_visibility
=
1
;
...
@@ -109,8 +109,6 @@ message WorkspaceMemoRelatedSetting {
...
@@ -109,8 +109,6 @@ message WorkspaceMemoRelatedSetting {
bool
enable_link_preview
=
6
;
bool
enable_link_preview
=
6
;
// enable_comment enables comment.
// enable_comment enables comment.
bool
enable_comment
=
7
;
bool
enable_comment
=
7
;
// enable_location enables setting location for memo.
bool
enable_location
=
8
;
// reactions is the list of reactions.
// reactions is the list of reactions.
repeated
string
reactions
=
10
;
repeated
string
reactions
=
10
;
// disable markdown shortcuts
// disable markdown shortcuts
...
...
server/router/api/v1/workspace_setting_service.go
View file @
ee99afd7
...
@@ -229,7 +229,6 @@ func convertWorkspaceMemoRelatedSettingFromStore(setting *storepb.WorkspaceMemoR
...
@@ -229,7 +229,6 @@ func convertWorkspaceMemoRelatedSettingFromStore(setting *storepb.WorkspaceMemoR
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableComment
:
setting
.
EnableComment
,
EnableComment
:
setting
.
EnableComment
,
EnableLocation
:
setting
.
EnableLocation
,
Reactions
:
setting
.
Reactions
,
Reactions
:
setting
.
Reactions
,
DisableMarkdownShortcuts
:
setting
.
DisableMarkdownShortcuts
,
DisableMarkdownShortcuts
:
setting
.
DisableMarkdownShortcuts
,
EnableBlurNsfwContent
:
setting
.
EnableBlurNsfwContent
,
EnableBlurNsfwContent
:
setting
.
EnableBlurNsfwContent
,
...
@@ -248,7 +247,6 @@ func convertWorkspaceMemoRelatedSettingToStore(setting *v1pb.WorkspaceMemoRelate
...
@@ -248,7 +247,6 @@ func convertWorkspaceMemoRelatedSettingToStore(setting *v1pb.WorkspaceMemoRelate
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableDoubleClickEdit
:
setting
.
EnableDoubleClickEdit
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableLinkPreview
:
setting
.
EnableLinkPreview
,
EnableComment
:
setting
.
EnableComment
,
EnableComment
:
setting
.
EnableComment
,
EnableLocation
:
setting
.
EnableLocation
,
Reactions
:
setting
.
Reactions
,
Reactions
:
setting
.
Reactions
,
DisableMarkdownShortcuts
:
setting
.
DisableMarkdownShortcuts
,
DisableMarkdownShortcuts
:
setting
.
DisableMarkdownShortcuts
,
EnableBlurNsfwContent
:
setting
.
EnableBlurNsfwContent
,
EnableBlurNsfwContent
:
setting
.
EnableBlurNsfwContent
,
...
...
web/src/components/MemoEditor/index.tsx
View file @
ee99afd7
...
@@ -507,7 +507,6 @@ const MemoEditor = observer((props: Props) => {
...
@@ -507,7 +507,6 @@ const MemoEditor = observer((props: Props) => {
<
MarkdownMenu
editorRef=
{
editorRef
}
/>
<
MarkdownMenu
editorRef=
{
editorRef
}
/>
<
UploadResourceButton
isUploadingResource=
{
state
.
isUploadingResource
}
/>
<
UploadResourceButton
isUploadingResource=
{
state
.
isUploadingResource
}
/>
<
AddMemoRelationPopover
editorRef=
{
editorRef
}
/>
<
AddMemoRelationPopover
editorRef=
{
editorRef
}
/>
{
workspaceMemoRelatedSetting
.
enableLocation
&&
(
<
LocationSelector
<
LocationSelector
location=
{
state
.
location
}
location=
{
state
.
location
}
onChange=
{
(
location
)
=>
onChange=
{
(
location
)
=>
...
@@ -517,7 +516,6 @@ const MemoEditor = observer((props: Props) => {
...
@@ -517,7 +516,6 @@ const MemoEditor = observer((props: Props) => {
}))
}))
}
}
/>
/>
)
}
</
div
>
</
div
>
</
div
>
</
div
>
<
Divider
className=
"!mt-2 opacity-40"
/>
<
Divider
className=
"!mt-2 opacity-40"
/>
...
...
web/src/components/Settings/MemoRelatedSettings.tsx
View file @
ee99afd7
...
@@ -93,13 +93,6 @@ const MemoRelatedSettings = () => {
...
@@ -93,13 +93,6 @@ const MemoRelatedSettings = () => {
onChange=
{
(
event
)
=>
updatePartialSetting
({
enableComment
:
event
.
target
.
checked
})
}
onChange=
{
(
event
)
=>
updatePartialSetting
({
enableComment
:
event
.
target
.
checked
})
}
/>
/>
</
div
>
</
div
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
>
{
t
(
"setting.memo-related-settings.enable-memo-location"
)
}
</
span
>
<
Switch
checked=
{
memoRelatedSetting
.
enableLocation
}
onChange=
{
(
event
)
=>
updatePartialSetting
({
enableLocation
:
event
.
target
.
checked
})
}
/>
</
div
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
div
className=
"w-full flex flex-row justify-between items-center"
>
<
span
>
{
t
(
"setting.system-section.enable-double-click-to-edit"
)
}
</
span
>
<
span
>
{
t
(
"setting.system-section.enable-double-click-to-edit"
)
}
</
span
>
<
Switch
<
Switch
...
...
web/src/types/proto/api/v1/workspace_setting_service.ts
View file @
ee99afd7
...
@@ -138,8 +138,6 @@ export interface WorkspaceMemoRelatedSetting {
...
@@ -138,8 +138,6 @@ export interface WorkspaceMemoRelatedSetting {
enableLinkPreview
:
boolean
;
enableLinkPreview
:
boolean
;
/** enable_comment enables comment. */
/** enable_comment enables comment. */
enableComment
:
boolean
;
enableComment
:
boolean
;
/** enable_location enables setting location for memo. */
enableLocation
:
boolean
;
/** reactions is the list of reactions. */
/** reactions is the list of reactions. */
reactions
:
string
[];
reactions
:
string
[];
/** disable_markdown_shortcuts disallow the registration of markdown shortcuts. */
/** disable_markdown_shortcuts disallow the registration of markdown shortcuts. */
...
@@ -689,7 +687,6 @@ function createBaseWorkspaceMemoRelatedSetting(): WorkspaceMemoRelatedSetting {
...
@@ -689,7 +687,6 @@ function createBaseWorkspaceMemoRelatedSetting(): WorkspaceMemoRelatedSetting {
enableDoubleClickEdit
:
false
,
enableDoubleClickEdit
:
false
,
enableLinkPreview
:
false
,
enableLinkPreview
:
false
,
enableComment
:
false
,
enableComment
:
false
,
enableLocation
:
false
,
reactions
:
[],
reactions
:
[],
disableMarkdownShortcuts
:
false
,
disableMarkdownShortcuts
:
false
,
enableBlurNsfwContent
:
false
,
enableBlurNsfwContent
:
false
,
...
@@ -717,9 +714,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
...
@@ -717,9 +714,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
if
(
message
.
enableComment
!==
false
)
{
if
(
message
.
enableComment
!==
false
)
{
writer
.
uint32
(
56
).
bool
(
message
.
enableComment
);
writer
.
uint32
(
56
).
bool
(
message
.
enableComment
);
}
}
if
(
message
.
enableLocation
!==
false
)
{
writer
.
uint32
(
64
).
bool
(
message
.
enableLocation
);
}
for
(
const
v
of
message
.
reactions
)
{
for
(
const
v
of
message
.
reactions
)
{
writer
.
uint32
(
82
).
string
(
v
!
);
writer
.
uint32
(
82
).
string
(
v
!
);
}
}
...
@@ -790,14 +784,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
...
@@ -790,14 +784,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
message
.
enableComment
=
reader
.
bool
();
message
.
enableComment
=
reader
.
bool
();
continue
;
continue
;
}
}
case
8
:
{
if
(
tag
!==
64
)
{
break
;
}
message
.
enableLocation
=
reader
.
bool
();
continue
;
}
case
10
:
{
case
10
:
{
if
(
tag
!==
82
)
{
if
(
tag
!==
82
)
{
break
;
break
;
...
@@ -850,7 +836,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
...
@@ -850,7 +836,6 @@ export const WorkspaceMemoRelatedSetting: MessageFns<WorkspaceMemoRelatedSetting
message
.
enableDoubleClickEdit
=
object
.
enableDoubleClickEdit
??
false
;
message
.
enableDoubleClickEdit
=
object
.
enableDoubleClickEdit
??
false
;
message
.
enableLinkPreview
=
object
.
enableLinkPreview
??
false
;
message
.
enableLinkPreview
=
object
.
enableLinkPreview
??
false
;
message
.
enableComment
=
object
.
enableComment
??
false
;
message
.
enableComment
=
object
.
enableComment
??
false
;
message
.
enableLocation
=
object
.
enableLocation
??
false
;
message
.
reactions
=
object
.
reactions
?.
map
((
e
)
=>
e
)
||
[];
message
.
reactions
=
object
.
reactions
?.
map
((
e
)
=>
e
)
||
[];
message
.
disableMarkdownShortcuts
=
object
.
disableMarkdownShortcuts
??
false
;
message
.
disableMarkdownShortcuts
=
object
.
disableMarkdownShortcuts
??
false
;
message
.
enableBlurNsfwContent
=
object
.
enableBlurNsfwContent
??
false
;
message
.
enableBlurNsfwContent
=
object
.
enableBlurNsfwContent
??
false
;
...
...
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