diff --git a/src/components/Dash.vue b/src/components/Dash.vue
index f195b972..aa775e1c 100644
--- a/src/components/Dash.vue
+++ b/src/components/Dash.vue
@@ -1,132 +1,12 @@
-
-
-
-
-
-
-
+
+
+
-
-
+
+
@@ -147,56 +27,44 @@
-
-
-
+
+
+
-
diff --git a/src/components/layout/DashFooter.vue b/src/components/layout/DashFooter.vue
new file mode 100644
index 00000000..cb45f9a1
--- /dev/null
+++ b/src/components/layout/DashFooter.vue
@@ -0,0 +1,17 @@
+
+
+
+
+
diff --git a/src/components/layout/DashHeader.vue b/src/components/layout/DashHeader.vue
new file mode 100644
index 00000000..8915bb94
--- /dev/null
+++ b/src/components/layout/DashHeader.vue
@@ -0,0 +1,48 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/components/layout/MessageItem.vue b/src/components/layout/MessageItem.vue
new file mode 100644
index 00000000..790c7c00
--- /dev/null
+++ b/src/components/layout/MessageItem.vue
@@ -0,0 +1,28 @@
+
+
+
+
+ {{message.title}}
+
+
+ {{message.createdAt}}
+
+
+ {{message.body}}
+
+
+
+
+
+
+
diff --git a/src/components/layout/MessagesMenu.vue b/src/components/layout/MessagesMenu.vue
new file mode 100644
index 00000000..b41c9d6a
--- /dev/null
+++ b/src/components/layout/MessagesMenu.vue
@@ -0,0 +1,40 @@
+
+
+
+
+
diff --git a/src/components/layout/NotificationItem.vue b/src/components/layout/NotificationItem.vue
new file mode 100644
index 00000000..4546bdd4
--- /dev/null
+++ b/src/components/layout/NotificationItem.vue
@@ -0,0 +1,48 @@
+
+
+
+
+ {{ notification.title }}
+
+
+ {{ notification.createdAt }}
+
+
+ {{ notification.body }}
+
+
+
+
+
+
+
diff --git a/src/components/layout/NotificationsMenu.vue b/src/components/layout/NotificationsMenu.vue
new file mode 100644
index 00000000..0f7e80d6
--- /dev/null
+++ b/src/components/layout/NotificationsMenu.vue
@@ -0,0 +1,115 @@
+
+
+
+
+
+
+
diff --git a/src/components/Sidebar.vue b/src/components/layout/Sidebar.vue
similarity index 93%
rename from src/components/Sidebar.vue
rename to src/components/layout/Sidebar.vue
index 1b7c7a16..d6829475 100644
--- a/src/components/Sidebar.vue
+++ b/src/components/layout/Sidebar.vue
@@ -7,11 +7,11 @@
-
![]()
+
-
{{ displayName }}
+
{{user.displayName}}
Online
@@ -50,7 +50,7 @@ import SidebarMenu from './SidebarMenu'
export default {
name: 'Sidebar',
- props: ['displayName', 'pictureUrl'],
+ props: ['user'],
components: { SidebarMenu },
mounted: function() {
window
diff --git a/src/components/SidebarMenu.vue b/src/components/layout/SidebarMenu.vue
similarity index 100%
rename from src/components/SidebarMenu.vue
rename to src/components/layout/SidebarMenu.vue
diff --git a/src/components/layout/TasksMenu.vue b/src/components/layout/TasksMenu.vue
new file mode 100644
index 00000000..c49564f5
--- /dev/null
+++ b/src/components/layout/TasksMenu.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
diff --git a/src/components/layout/UserMenu.vue b/src/components/layout/UserMenu.vue
new file mode 100644
index 00000000..8961e72a
--- /dev/null
+++ b/src/components/layout/UserMenu.vue
@@ -0,0 +1,32 @@
+
+
+
+
+
diff --git a/src/components/views/Dashboard.vue b/src/components/views/Dashboard.vue
index b2b14410..fb5b24ab 100644
--- a/src/components/views/Dashboard.vue
+++ b/src/components/views/Dashboard.vue
@@ -1,67 +1,51 @@
-
+
-
-
-
CoPilot is open source!
- Click on icon to check it out on github.
+
+
+ Click on icon to check it out on github.
+
+
+
+
-
-
-
-
- CPU Traffic
- 90%
-
-
-
-
+
+
+
-
-
-
-
- Likes
- 41,410
-
-
-
-
+
-
+
-
-
-
-
- Sales
- 760
-
-
-
-
+
-
-
-
-
- New Members
- 2,000
-
-
-
-
+
@@ -87,7 +71,9 @@
-
Pro Tip Don"t forget to star us on github!
+
+ Pro Tip Don't forget to star us on github!
+
@@ -95,77 +81,41 @@
-
-
-
-
-
Inventory
-
5,200
-
-
-
- 50% Increase
-
-
-
-
+
+
-
-
-
-
-
Mentions
-
92,050
-
-
-
- 20% Increase
-
-
-
-
+
+
-
-
-
-
-
Downloads
-
114,381
-
-
-
- 70% Increase
-
-
-
-
+
+
-
-
-
-
-
Direct Messages
-
163,921
-
-
-
- 40% Increase
-
-
-
-
+
+
@@ -174,8 +124,17 @@
diff --git a/src/components/widgets/InfoBox.vue b/src/components/widgets/InfoBox.vue
new file mode 100644
index 00000000..0c8c7f29
--- /dev/null
+++ b/src/components/widgets/InfoBox.vue
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+ {{text}}
+ {{number}}
+
+
+
+
+
diff --git a/src/components/widgets/ProcessInfoBox.vue b/src/components/widgets/ProcessInfoBox.vue
new file mode 100644
index 00000000..342ecf2f
--- /dev/null
+++ b/src/components/widgets/ProcessInfoBox.vue
@@ -0,0 +1,50 @@
+
+
+
+
+
+
+
{{text}}
+
{{number}}
+
+
{{description}}
+
+
+
+
+
diff --git a/src/store/state.js b/src/store/state.js
index a9f1170f..317896da 100644
--- a/src/store/state.js
+++ b/src/store/state.js
@@ -5,8 +5,51 @@ export default {
user: null,
token: null,
userInfo: {
- messages: [{1: 'test', 2: 'test'}],
- notifications: [],
+ messages: [
+ {
+ id: 1,
+ title: 'Support Team',
+ body: 'Why not consider this a test message?',
+ createdAt: '17 min ago'
+ }
+ ],
+ notifications: [
+ {
+ id: 1,
+ title: 'Birthday Reminder',
+ body: 'Today is Brians birthday.',
+ createdAt: 'just now',
+ readAt: null
+ },
+ {
+ id: 2,
+ title: 'Bank Holiday in London',
+ body: 'Our office in London has a bank holiday today. Do not expect them to answer the phone.',
+ createdAt: '4 hours ago',
+ readAt: null
+ },
+ {
+ id: 3,
+ title: 'Birthday Reminder',
+ body: 'Today is Christians birthday.',
+ createdAt: '27 days ago',
+ readAt: '2018-08-12 00:00:00'
+ },
+ {
+ id: 4,
+ title: 'Birthday Reminder',
+ body: 'Today is Tanjas birthday.',
+ createdAt: '29 days ago',
+ readAt: '2018-08-12 00:00:00'
+ },
+ {
+ id: 5,
+ title: 'Sales Bonus received',
+ body: 'You received your monthly sales bonus of 3%. This month you made $2,700 extra!',
+ createdAt: '7 hours ago',
+ readAt: null
+ }
+ ],
tasks: []
}
}