From abc2953532c9b2522c51683ba31e3168854fcf6b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Sun, 10 Feb 2019 23:28:22 +0000 Subject: Created basic test html file --- Server/wwwroot/index.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Server/wwwroot/index.html (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/index.html b/Server/wwwroot/index.html new file mode 100644 index 0000000..8be3289 --- /dev/null +++ b/Server/wwwroot/index.html @@ -0,0 +1,14 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <meta http-equiv="X-UA-Compatible" content="IE=edge"> + <title>Page Title</title> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <link rel="stylesheet" type="text/css" media="screen" href="main.css"> + <script src="main.js"></script> +</head> +<body> + <p>test</p> +</body> +</html> \ No newline at end of file -- cgit v1.2.3-13-gbd6f From 6611db6472aa4efd406abe940b402d9416b86410 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Mon, 11 Feb 2019 15:43:54 +0000 Subject: Added tsconfig.json to compile typescript --- Server/wwwroot/tsconfig.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 Server/wwwroot/tsconfig.json (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/tsconfig.json b/Server/wwwroot/tsconfig.json new file mode 100644 index 0000000..89d01c4 --- /dev/null +++ b/Server/wwwroot/tsconfig.json @@ -0,0 +1,8 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "esnext", + "sourceMap": true, + "outDir": "js/" + } +} \ No newline at end of file -- cgit v1.2.3-13-gbd6f From 1e666ca1273a1c12bb15e4f5b0eda6c8b97cce43 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Mon, 11 Feb 2019 15:44:16 +0000 Subject: Made main files --- Server/wwwroot/css/main.css | 0 Server/wwwroot/scripts/main.ts | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 Server/wwwroot/css/main.css create mode 100644 Server/wwwroot/scripts/main.ts (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/css/main.css b/Server/wwwroot/css/main.css new file mode 100644 index 0000000..e69de29 diff --git a/Server/wwwroot/scripts/main.ts b/Server/wwwroot/scripts/main.ts new file mode 100644 index 0000000..e69de29 -- cgit v1.2.3-13-gbd6f From 9d0351289ba040ddb788c45a05089271bdf4524e Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Mon, 11 Feb 2019 15:45:18 +0000 Subject: Made div to hold main app, dynamic content will be placed in this --- Server/wwwroot/index.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/index.html b/Server/wwwroot/index.html index 8be3289..28d4f8c 100644 --- a/Server/wwwroot/index.html +++ b/Server/wwwroot/index.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <html> + <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> @@ -8,7 +9,10 @@ <link rel="stylesheet" type="text/css" media="screen" href="main.css"> <script src="main.js"></script> </head> + <body> - <p>test</p> + <div class="app"> + </div> </body> + </html> \ No newline at end of file -- cgit v1.2.3-13-gbd6f From 687b233da16ec91d275f60825530f4075859be45 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Mon, 11 Feb 2019 15:47:12 +0000 Subject: Setup proper links to scripts and css --- Server/wwwroot/index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/index.html b/Server/wwwroot/index.html index 28d4f8c..cd392d4 100644 --- a/Server/wwwroot/index.html +++ b/Server/wwwroot/index.html @@ -6,8 +6,8 @@ <meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>Page Title</title> <meta name="viewport" content="width=device-width, initial-scale=1"> - <link rel="stylesheet" type="text/css" media="screen" href="main.css"> - <script src="main.js"></script> + <link rel="stylesheet" type="text/css" media="screen" href="css/main.css"> + <script src="js/main.js"></script> </head> <body> -- cgit v1.2.3-13-gbd6f From c94ca254d8ed2a4f29f49f5de0a8e542c73230b7 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali <aryadevchavali1@gmail.com> Date: Mon, 11 Feb 2019 15:48:39 +0000 Subject: Created basic class to hold a single article --- Server/wwwroot/scripts/main.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Server/wwwroot') diff --git a/Server/wwwroot/scripts/main.ts b/Server/wwwroot/scripts/main.ts index e69de29..77a80d3 100644 --- a/Server/wwwroot/scripts/main.ts +++ b/Server/wwwroot/scripts/main.ts @@ -0,0 +1,8 @@ +var root = document.getElementsByClassName('app'); + +class Article { + Title: HTMLElement; + Description: string; + ArticleLink: string; + Image: HTMLElement; +} \ No newline at end of file -- cgit v1.2.3-13-gbd6f