diff --git a/dashboard/index.html b/dashboard/index.html index ae779dfd2..0e5bdba5f 100644 --- a/dashboard/index.html +++ b/dashboard/index.html @@ -3,7 +3,7 @@ - dashboard + CVPM Dashboard diff --git a/dashboard/src/assets/logo.png b/dashboard/src/assets/logo.png deleted file mode 100755 index a2ce2353f..000000000 Binary files a/dashboard/src/assets/logo.png and /dev/null differ diff --git a/dashboard/src/components/CVPM-Table.vue b/dashboard/src/components/CVPM-Table.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/pages/Login.vue b/dashboard/src/pages/Login.vue new file mode 100644 index 000000000..fba365043 --- /dev/null +++ b/dashboard/src/pages/Login.vue @@ -0,0 +1,52 @@ + + + + + \ No newline at end of file diff --git a/dashboard/src/pages/Main.vue b/dashboard/src/pages/Main.vue index d684fbb15..0c3843fae 100644 --- a/dashboard/src/pages/Main.vue +++ b/dashboard/src/pages/Main.vue @@ -3,6 +3,9 @@
CVPM
+

Dashboard

@@ -16,33 +19,33 @@
A
- + - pageTitle + CVPM Dashboard @@ -67,6 +70,7 @@ - diff --git a/dashboard/src/pages/Package.vue b/dashboard/src/pages/Package.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/pages/Pretrained.vue b/dashboard/src/pages/Pretrained.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/pages/Registry.vue b/dashboard/src/pages/Registry.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/pages/Stat.vue b/dashboard/src/pages/Stat.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/pages/System.vue b/dashboard/src/pages/System.vue new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/services/config.js b/dashboard/src/services/config.js new file mode 100644 index 000000000..1c32151d6 --- /dev/null +++ b/dashboard/src/services/config.js @@ -0,0 +1,7 @@ +const discovery_config = { + 'endpoint':'http://127.0.0.1:3000' +} + +export { + discovery_config +} \ No newline at end of file diff --git a/dashboard/src/services/discovery.js b/dashboard/src/services/discovery.js new file mode 100644 index 000000000..d48a2a2dd --- /dev/null +++ b/dashboard/src/services/discovery.js @@ -0,0 +1,14 @@ +import axios from 'axios' +import { discovery_config } from './config' + +class Discovery { + constructor(endpoint) { + self.endpoint = endpoint + } +} + +const discovery = Discovery(discovery_config.endpoint) + +export { + discovery +} \ No newline at end of file diff --git a/dashboard/src/services/mock.js b/dashboard/src/services/mock.js new file mode 100644 index 000000000..6fe826ebb --- /dev/null +++ b/dashboard/src/services/mock.js @@ -0,0 +1,21 @@ +import axios from 'axios' +import { discovery_config } from './config' + +class Discovery { + constructor(endpoint) { + self.endpoint = endpoint + } + getSystemStatus () { + return new Promise((resolve, reject) => { + resolve({ + 'status':'ok' + }) + }) + } +} + +const discovery = Discovery(discovery_config.endpoint) + +export { + discovery +} \ No newline at end of file diff --git a/dashboard/src/services/system.js b/dashboard/src/services/system.js new file mode 100644 index 000000000..e69de29bb diff --git a/dashboard/src/services/web.js b/dashboard/src/services/web.js new file mode 100644 index 000000000..ee6b57be5 --- /dev/null +++ b/dashboard/src/services/web.js @@ -0,0 +1,15 @@ +function getMenus () { + return [ + { 'header': 'Admin' }, + { 'href': '/', 'title': 'Home', 'icon': 'home' }, + { 'href': '/local/package', 'title': 'Packages', 'icon': 'view_list' }, + { 'href': '/local/pretrained', 'title': 'Pre-trained', 'icon': 'view_list' }, + { 'header': 'System' }, + { 'href': '/settings', 'title': 'Settings', 'icon': 'settings' }, + { 'href': '/login', 'icon': 'lock', 'title': 'Logout' } + ] +} + +export { + getMenus +}