From 7436a6752b63cd68916f4519cefd45e2dfcdf932 Mon Sep 17 00:00:00 2001
From: varunwitty <30322599+varunwitty@users.noreply.github.com>
Date: Fri, 4 Aug 2017 21:16:44 +0530
Subject: [PATCH 01/72] [imad-console] Updates ui/index.html
---
ui/index.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/index.html b/ui/index.html
index 5a28644db45..cdc9f1c2d60 100644
--- a/ui/index.html
+++ b/ui/index.html
@@ -9,7 +9,7 @@
+ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
+- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-+ This is the conent for my second article. +
++ This is the conent for my third article. +
+From 14803339586cd6c83657f938c83242fed140714a Mon Sep 17 00:00:00 2001 From: varunwitty <30322599+varunwitty@users.noreply.github.com> Date: Sat, 5 Aug 2017 22:41:44 +0530 Subject: [PATCH 29/72] Update article-3.html --- ui/article-3.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/article-3.html b/ui/article-3.html index a9f2335bbd3..c7bbad81191 100644 --- a/ui/article-3.html +++ b/ui/article-3.html @@ -14,7 +14,7 @@
From bb27d677fbe3d8d406d4e3008c974e9f55de4c7b Mon Sep 17 00:00:00 2001 From: varunwitty <30322599+varunwitty@users.noreply.github.com> Date: Sat, 5 Aug 2017 22:42:39 +0530 Subject: [PATCH 30/72] [imad-console] Updates server.js --- server.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.js b/server.js index 9691f020a48..f5ac6ec4541 100644 --- a/server.js +++ b/server.js @@ -14,11 +14,11 @@ app.get('/article-one', function (req, res){ }); app.get('/article-two', function (req, res){ - res.send('Article two requested and will be served here'); + res.sendFile(path.join(__dirname, 'ui', 'article-2.html')); }); app.get('/article-three', function (req, res){ - res.send('Article three requested and will be served here'); + res.sendFile(path.join(__dirname, 'ui', 'article-3.html')); }); app.get('/ui/style.css', function (req, res) { From 1930a8fce57d33e4bae380fc52081baaa6bded42 Mon Sep 17 00:00:00 2001 From: varunwitty <30322599+varunwitty@users.noreply.github.com> Date: Sun, 6 Aug 2017 21:09:14 +0530 Subject: [PATCH 31/72] [imad-console] Updates ui/article-1.html --- ui/article-1.html | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/ui/article-1.html b/ui/article-1.html index 24858913a37..f18ab1b577f 100644 --- a/ui/article-1.html +++ b/ui/article-1.html @@ -4,8 +4,18 @@ Article one .. I'm Varun +
+- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
` +}; + +function createTemplate (data) { + var title = data.title; + var date = data.date; + var heading = data.heading; + var content = data.content; + var htmlTemplate = ` + + +- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
` +var articles = { + 'article-one': { + title: 'Article one .. Im Varun', + heading: 'Article One', + date: 'August 5,2017', + content: ` ++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
++ This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. +
` + }, + 'article-two': { + title: 'Article Two .. Im Varun', + heading: 'Article Two', + date: 'August 10,2017', + content: ` ++ This is the conent for my second article. +
` + + }, + 'article-three': { + title: 'Article Three .. Im Varun', + heading: 'Article Three', + date: 'August 23,2017', + content: ` ++ This is the conent for my third article. +
` + + } }; function createTemplate (data) { @@ -56,23 +78,17 @@ function createTemplate (data) { `; return htmlTemplate; -} +} + app.get('/', function (req, res) { res.sendFile(path.join(__dirname, 'ui', 'index.html')); }); -app.get('/article-one', function (req, res){ - res.send(createTemplate(articleOne)); +app.get('/:articleName', function (req, res){ + res.send(createTemplate(articles[articleName])); }); -app.get('/article-two', function (req, res){ - res.sendFile(path.join(__dirname, 'ui', 'article-2.html')); -}); - -app.get('/article-three', function (req, res){ - res.sendFile(path.join(__dirname, 'ui', 'article-3.html')); -}); - +var articleName = req.params.aricleName; app.get('/ui/style.css', function (req, res) { res.sendFile(path.join(__dirname, 'ui', 'style.css')); }); From 5120cd37dfabdb58abc1fadec993a20c9d0fa9d6 Mon Sep 17 00:00:00 2001 From: varunwitty <30322599+varunwitty@users.noreply.github.com> Date: Wed, 9 Aug 2017 23:07:46 +0530 Subject: [PATCH 52/72] Delete article-1.html --- ui/article-1.html | 39 --------------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 ui/article-1.html diff --git a/ui/article-1.html b/ui/article-1.html deleted file mode 100644 index 9e8de11043e..00000000000 --- a/ui/article-1.html +++ /dev/null @@ -1,39 +0,0 @@ - - -- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article.This is the conent for my first article. -
-- This is the conent for my second article. -
-- This is the conent for my third article. -
-