From 399f1e5459757dbd0216267c2f988e686a7f7ff2 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 29 Dec 2020 18:16:48 +0100 Subject: [PATCH] Docs Actions --- .../Superalgos/Schemas/Docs-Concepts/vaina.json | 6 +----- ...h.json => docs-basics-010-docs-paragraoh.json} | 2 +- ...nu-actions-001-docs-action-edit-paragraph.json | 15 +++++++++++++++ ...-actions-002-docs-action-delete-paragraph.json | 15 +++++++++++++++ ...actions-003-docs-action-copy-to-clipboard.json | 15 +++++++++++++++ .../Superalgos/UI/Spaces/Docs-Space/DocsSpace.js | 2 +- 6 files changed, 48 insertions(+), 7 deletions(-) rename Projects/Superalgos/Schemas/Docs-Topics/{docs-basics-010-docs-paragraph.json => docs-basics-010-docs-paragraoh.json} (92%) create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-001-docs-action-edit-paragraph.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-002-docs-action-delete-paragraph.json create mode 100644 Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-003-docs-action-copy-to-clipboard.json diff --git a/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json b/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json index 28e8fa6c2..1d00c601a 100644 --- a/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json +++ b/Projects/Superalgos/Schemas/Docs-Concepts/vaina.json @@ -73,11 +73,7 @@ "text": "Block #2" }, { - "style": "Text", - "text": "Vaina Paragraph 4" - }, - { - "style": "Include", + "style": "Title", "text": "Anchor 1" }, { diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraph.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraoh.json similarity index 92% rename from Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraph.json rename to Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraoh.json index 5a6d74949..1b1f7f8cb 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraph.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-basics-010-docs-paragraoh.json @@ -1,7 +1,7 @@ { "topic": "Docs Basics", "pageNumber": "10", - "type": "Docs Paragraph", + "type": "Docs Paragraoh", "definition": { "text": "Write here a summary for this topic page." }, diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-001-docs-action-edit-paragraph.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-001-docs-action-edit-paragraph.json new file mode 100644 index 000000000..a39224e4c --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-001-docs-action-edit-paragraph.json @@ -0,0 +1,15 @@ +{ + "topic": "Docs Context Menu Actions", + "pageNumber": "1", + "type": "Docs Action Edit Paragraph", + "definition": { + "text": "Use this action to edit the text of a paragraph. Then use the ESC key to exit the edit mode.", + "updated": 1609261900642 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-002-docs-action-delete-paragraph.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-002-docs-action-delete-paragraph.json new file mode 100644 index 000000000..4e5fa9c39 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-002-docs-action-delete-paragraph.json @@ -0,0 +1,15 @@ +{ + "topic": "Docs Context Menu Actions", + "pageNumber": "2", + "type": "Docs Action Delete Paragraph", + "definition": { + "text": "Use this action to delete a paragraph. This action can not be undone. You can still refresh the page without executing the Docs Save Command to rollback all your changes until the last execution of the save command.", + "updated": 1609262026576 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-003-docs-action-copy-to-clipboard.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-003-docs-action-copy-to-clipboard.json new file mode 100644 index 000000000..80b5a2f80 --- /dev/null +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-context-menu-actions-003-docs-action-copy-to-clipboard.json @@ -0,0 +1,15 @@ +{ + "topic": "Docs Context Menu Actions", + "pageNumber": "3", + "type": "Docs Action Copy To Clipboard", + "definition": { + "text": "This allows you to easily copy the text of any paragraph into your computer's clipboard. It is specially useful for pagragraphs of Docs Anchor Style or of Docs Block Style to get the string needed to execute the Docs Goto Command in the first case or to use it at a Docs Include Style in the second case.", + "updated": 1609262148454 + }, + "paragraphs": [ + { + "style": "Text", + "text": "Left click and Edit to enter edit mode and change this text. ENTER to write new paragraphs. ESC to exit edit mode." + } + ] +} \ No newline at end of file diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 8a8febe82..c89d67f95 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -2097,7 +2097,7 @@ function newSuperalgosDocSpace() { let includedSchemaDocument if (SCHEMAS_BY_PROJECT.get(project) === undefined) { - return 'Include Paragraph Style Syntax Error. The Project ' + project + ' could not be found. Check the Docs Include Style Syntax to learn how to include paragraphs from a different page. This error message will dissapear as soon as you fix the problem.' + return 'Include paragraph style Syntax Error. The Project ' + project + ' could not be found. Check the Docs Include Style Syntax to learn how to include paragraphs from a different page. This error message will dissapear as soon as you fix the problem.' } switch (category) { case 'Node': {