From 7282f6995d2840755a95fbf4fe11500e138c8e03 Mon Sep 17 00:00:00 2001
From: Luis Fernando Molina
Thanks for giving a star to the project's repo at GitHub.com. That will help other devs to find it.
+Thanks for giving a star to the project's repo at GitHub.com. This help other devs to find it.
diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index 337df31cb..8ab22970f 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -20,6 +20,7 @@ function newSuperalgosDocSpace() { currentBookBeingRendered: undefined, paragraphMap: undefined, // Here we will store a map of paragraphs from the Docs Node, Concept, Topics, Tutorials, Reviews or Books Schema in order to find it when we need to update them. textArea: undefined, + sharePage: sharePage, changeLanguage: changeLanguage, changeCurrentBranch: changeCurrentBranch, changeContributionsBranch: changeContributionsBranch, @@ -220,6 +221,11 @@ function newSuperalgosDocSpace() { UI.projects.superalgos.spaces.docsSpace.navigateTo('Superalgos', 'Topic', 'Docs In ' + languageLabel) } + function sharePage() { + let clipboard = "docs.goto " + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.project + '->' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.category + '->' + UI.projects.superalgos.spaces.docsSpace.currentDocumentBeingRendered.type + UI.projects.superalgos.utilities.clipboard.copyTextToClipboard(clipboard) + } + function onKeyDown(event) { /* When an editor is on focus we will only @@ -227,7 +233,7 @@ function newSuperalgosDocSpace() { so as to tell the editor container when the user would like to close the editor. ESC key exits edit mode. */ - if (event.key === 'Escape') { + if (event.key === 'Escape') { UI.projects.superalgos.spaces.docsSpace.exitEditMode() } } diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js b/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js index f5102f069..b56655f51 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/Footer.js @@ -31,6 +31,10 @@ function newSuperalgosDocsFooter() { HTML = HTML + '' HTML = HTML + '