From 8ae0219a33b4031773f3efcb3366e405b4b446e3 Mon Sep 17 00:00:00 2001 From: Francesca Sperati <6431@ait.nsw.edu.au> Date: Sat, 12 Jan 2019 20:56:17 +1100 Subject: [PATCH 1/2] split the top and side bars into files (html _loadert), start ads.html template --- package.json | 4 +- src/_sidebar.html | 235 ++++++++++ src/_topbar.html | 367 +++++++++++++++ src/ads.html | 176 +++++++ src/charts.html | 561 ++++++++++++---------- src/charts_.html | 651 -------------------------- src/index.html | 855 +++++++++------------------------- webpack/plugins/htmlPlugin.js | 1 + 8 files changed, 1331 insertions(+), 1519 deletions(-) create mode 100644 src/_sidebar.html create mode 100644 src/_topbar.html create mode 100644 src/ads.html mode change 100644 => 100755 src/charts.html delete mode 100755 src/charts_.html diff --git a/package.json b/package.json index 4d67b95..2b9175d 100755 --- a/package.json +++ b/package.json @@ -34,6 +34,8 @@ "eslint-plugin-import": "2.7.0", "extract-text-webpack-plugin": "^3.0.1", "html-webpack-plugin": "^2.30.1", + "html-includes": "^4.0.0", + "html-loader": "^0.5.5", "imagemin-webpack-plugin": "^1.5.2", "node-sass": "^4.5.3", "postcss-cssnext": "^3.0.2", @@ -65,4 +67,4 @@ "popper.js": "^1.12.6", "skycons": "^1.0.0" } -} \ No newline at end of file +} diff --git a/src/_sidebar.html b/src/_sidebar.html new file mode 100644 index 0000000..13e6282 --- /dev/null +++ b/src/_sidebar.html @@ -0,0 +1,235 @@ + + diff --git a/src/_topbar.html b/src/_topbar.html new file mode 100644 index 0000000..a9d2899 --- /dev/null +++ b/src/_topbar.html @@ -0,0 +1,367 @@ + + \ No newline at end of file diff --git a/src/ads.html b/src/ads.html new file mode 100644 index 0000000..6c4df71 --- /dev/null +++ b/src/ads.html @@ -0,0 +1,176 @@ + + + + + + Dashboard + + + + + + + + + + + + + + + +
+
+
+ + + + + +
+ + ${require('html-loader!./_sidebar.html')} + +
+ + + ${require('html-loader!./_topbar.html')} + + + +
+
+
+
+ All Ads Published +
+
+
+
+ +
+
+ +
+
+ Card image cap +
+
Adv title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+ + +
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+ + +
+
+ Card image cap +
+
Card title
+

Some quick example text to build on the card title and make up the bulk of the card's content.

+ Go somewhere +
+
+
+ + + +
+
+ +
+
+
+
+
+ + + + + + + + + + + + diff --git a/src/charts.html b/src/charts.html old mode 100644 new mode 100755 index f9e74fa..2c3d30f --- a/src/charts.html +++ b/src/charts.html @@ -3,8 +3,7 @@ - Dashboard - + Charts - - - - - @@ -92,20 +88,7 @@
- - - - - - - - - - - - - - +
- - - - - - - +
-
-
-
-

Moo Doe

-
-
- 15 mins ago -
-
- - Want to create your own customized data generator for your app... + + Moo Doe + liked your cover image -
+ +

+ 7 mins ago +

@@ -319,19 +363,14 @@
-
-
-
-

Lee Doe

-
-
- 25 mins ago -
-
- - Want to create your own customized data generator for your app... + + Lee Doe + commented on your video -
+ +

+ 10 mins ago +

@@ -339,21 +378,21 @@
  • - View All Email + View All Notifications
  • -