diff --git a/web/storagenode/src/app/App.vue b/web/storagenode/src/app/App.vue index 2aea177f4..ab82a77d9 100644 --- a/web/storagenode/src/app/App.vue +++ b/web/storagenode/src/app/App.vue @@ -3,14 +3,26 @@ @@ -21,6 +33,14 @@ export default class App extends Vue {} font-family: 'font_regular', sans-serif; } + .container { + background-color: #f4f6f9; + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + } + @font-face { font-display: swap; font-family: 'font_regular'; diff --git a/web/storagenode/src/app/components/SNOHeader.vue b/web/storagenode/src/app/components/SNOHeader.vue index b663b22c9..683b84501 100644 --- a/web/storagenode/src/app/components/SNOHeader.vue +++ b/web/storagenode/src/app/components/SNOHeader.vue @@ -13,10 +13,21 @@ -
- Node ID: -

{{this.nodeId}}

+
+
+ Node ID: +

{{this.nodeId}}

+
+
+ + +
+
@@ -24,6 +35,9 @@ + + diff --git a/web/storagenode/src/app/components/notifications/SNONotification.vue b/web/storagenode/src/app/components/notifications/SNONotification.vue new file mode 100644 index 000000000..c386ec260 --- /dev/null +++ b/web/storagenode/src/app/components/notifications/SNONotification.vue @@ -0,0 +1,148 @@ +// Copyright (C) 2019 Storj Labs, Inc. +// See LICENSE for copying information. + + + + + + diff --git a/web/storagenode/src/app/router/index.ts b/web/storagenode/src/app/router/index.ts index c6dd52a38..8b6e5d16b 100644 --- a/web/storagenode/src/app/router/index.ts +++ b/web/storagenode/src/app/router/index.ts @@ -6,11 +6,13 @@ import Router from 'vue-router'; import { NavigationLink } from '@/app/types/navigation'; import DashboardArea from '@/app/views/DashboardArea.vue'; +import NotificationsArea from '@/app/views/NotificationsArea.vue'; Vue.use(Router); export abstract class RouteConfig { public static Root = new NavigationLink('', 'Root'); + public static Notifications = new NavigationLink('/notifications', 'Notifications'); } const router = new Router({ @@ -21,6 +23,11 @@ const router = new Router({ name: RouteConfig.Root.name, component: DashboardArea }, + { + path: RouteConfig.Notifications.path, + name: RouteConfig.Notifications.name, + component: NotificationsArea + }, ] }); diff --git a/web/storagenode/src/app/utils/notificationIcons.ts b/web/storagenode/src/app/utils/notificationIcons.ts new file mode 100644 index 000000000..661726768 --- /dev/null +++ b/web/storagenode/src/app/utils/notificationIcons.ts @@ -0,0 +1,20 @@ +// Copyright (C) 2019 Storj Labs, Inc. +// See LICENSE for copying information. + +export class NotificationIcon { + public static readonly SOFTWARE_UPDATE: string = ` + +`; + + public static readonly DISQUALIFIED: string = ` + +`; + public static readonly FAIL: string = ` + + +`; + + public static readonly INFO: string = ` + +`; +} diff --git a/web/storagenode/src/app/views/DashboardArea.vue b/web/storagenode/src/app/views/DashboardArea.vue index 1f03285c9..68f4d8d43 100644 --- a/web/storagenode/src/app/views/DashboardArea.vue +++ b/web/storagenode/src/app/views/DashboardArea.vue @@ -2,13 +2,9 @@ // See LICENSE for copying information. @@ -17,8 +13,6 @@ import { Component, Vue } from 'vue-property-decorator'; import SNOContentFilling from '@/app/components/SNOContentFilling.vue'; import SNOContentTitle from '@/app/components/SNOContentTitle.vue'; -import SNOFooter from '@/app/components/SNOFooter.vue'; -import SNOHeader from '@/app/components/SNOHeader.vue'; import { NODE_ACTIONS } from '@/app/store/modules/node'; @@ -29,10 +23,8 @@ const { @Component ({ components: { - SNOHeader, SNOContentTitle, SNOContentFilling, - SNOFooter, }, }) export default class Dashboard extends Vue { @@ -44,14 +36,6 @@ export default class Dashboard extends Vue { diff --git a/web/storagenode/static/images/notifications/EmptyState.png b/web/storagenode/static/images/notifications/EmptyState.png new file mode 100644 index 000000000..f4f79df7d Binary files /dev/null and b/web/storagenode/static/images/notifications/EmptyState.png differ diff --git a/web/storagenode/static/images/notifications/backArrow.svg b/web/storagenode/static/images/notifications/backArrow.svg new file mode 100644 index 000000000..ce064a1e1 --- /dev/null +++ b/web/storagenode/static/images/notifications/backArrow.svg @@ -0,0 +1,3 @@ + + + diff --git a/web/storagenode/static/images/notifications/bell.svg b/web/storagenode/static/images/notifications/bell.svg new file mode 100644 index 000000000..3ffa1156c --- /dev/null +++ b/web/storagenode/static/images/notifications/bell.svg @@ -0,0 +1,3 @@ + + +