-
Notifications
You must be signed in to change notification settings - Fork 508
Master #3023
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Master #3023
Changes from all commits
e13dba1
d6b2a3b
96813f4
af1bfbb
d5f212d
6d5ed50
4461805
5d44dc2
7025181
6170aa4
ff44af5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1421,10 +1421,29 @@ Entry.BlockView = class BlockView { | |
| const { block, isInBlockMenu, copyable } = blockView; | ||
| const { options: EntryOptions = {} } = Entry; | ||
| const { | ||
| Blocks: { Duplication_option, CONTEXT_COPY_option, cut_blocks, Delete_Blocks }, | ||
| Blocks: { | ||
| AI_analyze_option, | ||
| Duplication_option, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| CONTEXT_COPY_option, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| cut_blocks, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| Delete_Blocks, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| }, | ||
| Menus: { save_as_image }, | ||
| } = Lang; | ||
|
|
||
| const aiAnalyze = { | ||
| text: AI_analyze_option, | ||
| enable: copyable && !isBoardReadOnly, | ||
| callback() { | ||
| // NOTICE : Entry.do는 필요할지 고려 > 뒤로가기 적용이 필요한지 | ||
| const blocksData = { ...block.copy() }; | ||
|
|
||
| Entry.dispatchEvent('analyzeBlock', { | ||
| data: JSON.stringify(blocksData), | ||
| }); | ||
| }, | ||
| }; | ||
|
|
||
| const copyAndPaste = { | ||
| text: Duplication_option, | ||
| enable: copyable && !isBoardReadOnly, | ||
|
|
@@ -1494,9 +1513,16 @@ Entry.BlockView = class BlockView { | |
| } | ||
|
|
||
| if (!isInBlockMenu) { | ||
| options = [copyAndPaste, copy, cut, remove, addStorage, ...options, comment].filter( | ||
| (x) => x | ||
| ); | ||
| options = [ | ||
| Entry.aiAssistantEnable && aiAnalyze, | ||
| copyAndPaste, | ||
| copy, | ||
| cut, | ||
| remove, | ||
| addStorage, | ||
| ...options, | ||
| comment, | ||
| ].filter((x) => x); | ||
| } | ||
|
|
||
| return options; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Identifier 'AI_analyze_option' is not in camel case.