From 8c92250c994127c12e931b12279e9b2e1f1dfcee Mon Sep 17 00:00:00 2001 From: Haris Razis Date: Mon, 27 Jul 2020 18:06:18 +0300 Subject: [PATCH] Add Documentation page --- web/locales/en.json | 48 ++++- .../javascripts/{labSearch.js => search.js} | 12 ++ web/views/documentation.ejs | 196 +++++++++++++++++- web/views/partials/footer.ejs | 2 +- web/views/partials/header.ejs | 3 +- 5 files changed, 256 insertions(+), 5 deletions(-) rename web/public/javascripts/{labSearch.js => search.js} (54%) diff --git a/web/locales/en.json b/web/locales/en.json index 29a2ccc..f861315 100644 --- a/web/locales/en.json +++ b/web/locales/en.json @@ -33,6 +33,52 @@ "node_text3": "WebSocket Client & Server Implementation for Node", "node_text4": "Learn How to providing a bi-directional communication channel between a client and a server.", "python_header": "Python, scipy", - "python_text": "This Labroom provides a Python-based ecosystem of open-source software for mathematics, science, engineering and Web development" + "python_text": "This Labroom provides a Python-based ecosystem of open-source software for mathematics, science, engineering and Web development", + "doc-text-01": "", + "doc-text-02": "The Swarmlabs platform", + "doc-text-03": "The Main page", + "doc-text-04": "My lab", + "doc-text-05": "The run text", + "doc-text-06": "Run lab instance area", + "doc-text-07": "Creating a lab", + "doc-text-08": "Running a lab instance", + "doc-text-09": "Enter a lab-room area", + "doc-text-10": "Browsing lab-rooms", + "doc-text-11": "Entering a lab-room", + "doc-text-12": "Bootstrap", + "doc-text-13": "For tutors", + "doc-text-14": "My labrooms", + "doc-text-15": "Bootstrap labrooms", + "doc-text-16": "Platform architecture", + "doc-text-17": "Storage", + "doc-text-18": "IPFS cluster", + "doc-text-19": "minio cluster", + "doc-text-20": "MariaDB Galera cluster", + "doc-text-21": "A replica set in MongoDB", + "doc-text-22": "ShareDB", + "doc-text-23": "Devel", + "doc-text-24": "slim", + "doc-text-25": "node-js", + "doc-text-26": "vue.js", + "doc-text-27": "python", + "doc-text-28": "php", + "doc-text-29": "codemirror", + "doc-text-30": "oauth2", + "doc-text-31": "System admin and devel", + "doc-text-32": "docker", + "doc-text-33": "docker-compose", + "doc-text-34": "Bash", + "doc-text-35": "ansible", + "doc-text-36": "keycloak", + "doc-text-37": "Deploy", + "doc-text-38": "Docker swarm", + "doc-text-39": "Colaboration", + "doc-text-40": "gitea", + "doc-text-41": "jitsi", + "doc-text-42": "Service access", + "doc-text-43": "noVNC", + "doc-text-44": "ttyd" + + } } \ No newline at end of file diff --git a/web/public/javascripts/labSearch.js b/web/public/javascripts/search.js similarity index 54% rename from web/public/javascripts/labSearch.js rename to web/public/javascripts/search.js index ed8a167..02b201c 100644 --- a/web/public/javascripts/labSearch.js +++ b/web/public/javascripts/search.js @@ -8,4 +8,16 @@ $("#search").on("keyup", () => { $(this).parent().parent().hide(); } }); +}); + +$("#search-docs").on("keyup", () => { + var searchValue = $("#search-docs").val().toLowerCase(); + $(".search-docs").each(function () { + var title = $(this).children(); + if (title.text().toLowerCase().includes(searchValue)) { + $(this).show(); + } else { + $(this).hide(); + } + }); }); \ No newline at end of file diff --git a/web/views/documentation.ejs b/web/views/documentation.ejs index 514b065..eedb5e6 100644 --- a/web/views/documentation.ejs +++ b/web/views/documentation.ejs @@ -1 +1,195 @@ -<%- include("partials/header.ejs") %> \ No newline at end of file +<%- include("partials/header.ejs") %> + +
+
+ +
+
+

Main Area

+

Chambray sustainable roof party. Shoreditch vegan artisan Helvetica. Tattooed Codeply
Echo + Park + Godard kogi, next level irony ennui twee squid fap selvage. Meggings flannel Brooklyn literally + small + batch, mumblecore PBR try-hard kale chips. Brooklyn vinyl lumbersexual bicycle rights, viral fap + cronut + leggings squid chillwave pickled gentrify mustache. 3 wolf moon hashtag church-key Odd Future. + Austin + messenger bag normcore, Helvetica Williamsburg sartorial tote bag distillery Portland before they + sold + out gastropub taxidermy Vice.

+

3 wolf moon retro jean shorts chambray sustainable roof party. Shoreditch
vegan artisan + Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony ennui twee squid fap selvage. Meggings + flannel
Brooklyn literally small batch, mumblecore PBR try-hard kale chips. Brooklyn vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid chillwave pickled gentrify mustache. 3 + wolf + moon hashtag church-key Odd Future. Austin messenger bag normcore, Helvetica Williamsburg sartorial + tote + bag distillery Portland before they sold out gastropub taxidermy Vice.

+

3 wolf moon retro jean shorts chambray sustainable roof party. Shoreditch
vegan artisan + Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony ennui twee squid fap selvage. Meggings + flannel
Brooklyn literally small batch, mumblecore PBR try-hard kale chips. Brooklyn vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid chillwave pickled gentrify mustache. + 3 wolf + moon hashtag church-key Odd Future. Austin messenger bag normcore, Helvetica Williamsburg + sartorial tote + bag distillery Portland before they sold out gastropub taxidermy Vice.

+

3 wolf moon retro jean shorts chambray sustainable roof party. Shoreditch
vegan + artisan Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony ennui twee squid fap selvage. + Meggings + flannel
Brooklyn literally small batch, mumblecore PBR try-hard kale chips. Brooklyn + vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid chillwave pickled gentrify + mustache. 3 wolf + moon hashtag church-key Odd Future. Austin messenger bag normcore, Helvetica Williamsburg + sartorial tote + bag distillery Portland before they sold out gastropub taxidermy Vice.

+

3 wolf moon retro jean shorts chambray sustainable roof party. Shoreditch
vegan + artisan Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony ennui twee squid fap selvage. + Meggings + flannel
Brooklyn literally small batch, mumblecore PBR try-hard kale chips. + Brooklyn + vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid chillwave pickled gentrify + mustache. 3 wolf + moon hashtag church-key Odd Future. Austin messenger bag normcore, Helvetica + Williamsburg + sartorial tote + bag distillery Portland before they sold out gastropub taxidermy Vice.

+

3 wolf moon retro jean shorts chambray sustainable roof party. Shoreditch +
vegan + artisan Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony ennui twee + squid fap selvage. + Meggings + flannel
Brooklyn literally small batch, mumblecore PBR try-hard + kale chips. Brooklyn + vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid chillwave + pickled gentrify + mustache. 3 wolf + moon hashtag church-key Odd Future. Austin messenger bag normcore, + Helvetica Williamsburg + sartorial tote + bag distillery Portland before they sold out gastropub taxidermy Vice. +

+

3 wolf moon retro jean shorts chambray sustainable roof + party. Shoreditch
vegan + artisan Helvetica. + Tattooed Codeply Echo Park Godard kogi, next level irony + ennui twee squid fap selvage. + Meggings + flannel
Brooklyn literally small batch, mumblecore PBR + try-hard kale chips. Brooklyn + vinyl + lumbersexual bicycle rights, viral fap cronut leggings squid + chillwave pickled gentrify + mustache. 3 wolf + moon hashtag church-key Odd Future. Austin messenger bag + normcore, Helvetica Williamsburg + sartorial tote + bag distillery Portland before they sold out gastropub + taxidermy Vice.

+
+
+
+
+ +<%- include("partials/footer.ejs") %> \ No newline at end of file diff --git a/web/views/partials/footer.ejs b/web/views/partials/footer.ejs index 2ee8d6f..3d019c5 100644 --- a/web/views/partials/footer.ejs +++ b/web/views/partials/footer.ejs @@ -41,7 +41,7 @@ - + \ No newline at end of file diff --git a/web/views/partials/header.ejs b/web/views/partials/header.ejs index c949775..cac38bc 100644 --- a/web/views/partials/header.ejs +++ b/web/views/partials/header.ejs @@ -41,8 +41,7 @@ - - Sign Up