From 3b629924e73af65749d7b5a63b77e6c3a05012df Mon Sep 17 00:00:00 2001 From: Muthu Kumar Date: Wed, 21 Feb 2018 10:09:32 +0530 Subject: [PATCH] Moved static files to public --- public/css/dashboard.css | 28 ++++++++++++++++++++++++++++ public/js/dashboard.js | 17 +++++++++++++++++ views/css/dashboard.css | 28 ---------------------------- views/js/dashboard.js | 17 ----------------- 4 files changed, 45 insertions(+), 45 deletions(-) create mode 100644 public/css/dashboard.css create mode 100644 public/js/dashboard.js delete mode 100644 views/css/dashboard.css delete mode 100644 views/js/dashboard.js diff --git a/public/css/dashboard.css b/public/css/dashboard.css new file mode 100644 index 0000000..1acb38a --- /dev/null +++ b/public/css/dashboard.css @@ -0,0 +1,28 @@ +body { + background-color: #F2F2F0; + padding-top: 80px; +} + +.navbar { + background-color: #373737; + padding: 5px; +} + +.navbar a { + color: #8C8C8C; + font-size: 1.5em; +} + +.well { + text-align: center; + margin-top: 20px; +} + +.dash-red { + color: #DD6161; +} + +.sub-header { + color: #777779; + font-weight: 300; +} \ No newline at end of file diff --git a/public/js/dashboard.js b/public/js/dashboard.js new file mode 100644 index 0000000..6dc3899 --- /dev/null +++ b/public/js/dashboard.js @@ -0,0 +1,17 @@ +var socket = io(); + +var vm = new Vue({ + el: '#app', + data: { + pages: {}, + referrers: {}, + activeUsers: 0 + }, + created: function () { + socket.on('updated-stats', function (data) { + this.pages = data.pages; + this.referrers = data.referrers; + this.activeUsers = data.activeUsers; + }.bind(this)); + } +}); \ No newline at end of file diff --git a/views/css/dashboard.css b/views/css/dashboard.css deleted file mode 100644 index 1acb38a..0000000 --- a/views/css/dashboard.css +++ /dev/null @@ -1,28 +0,0 @@ -body { - background-color: #F2F2F0; - padding-top: 80px; -} - -.navbar { - background-color: #373737; - padding: 5px; -} - -.navbar a { - color: #8C8C8C; - font-size: 1.5em; -} - -.well { - text-align: center; - margin-top: 20px; -} - -.dash-red { - color: #DD6161; -} - -.sub-header { - color: #777779; - font-weight: 300; -} \ No newline at end of file diff --git a/views/js/dashboard.js b/views/js/dashboard.js deleted file mode 100644 index 6dc3899..0000000 --- a/views/js/dashboard.js +++ /dev/null @@ -1,17 +0,0 @@ -var socket = io(); - -var vm = new Vue({ - el: '#app', - data: { - pages: {}, - referrers: {}, - activeUsers: 0 - }, - created: function () { - socket.on('updated-stats', function (data) { - this.pages = data.pages; - this.referrers = data.referrers; - this.activeUsers = data.activeUsers; - }.bind(this)); - } -}); \ No newline at end of file