Browse Source

Merge pull request #258 from Leizhengzi/main

wip: add dashboard relevant pages
pull/259/head
yedf2 4 years ago
committed by GitHub
parent
commit
f01aed92f2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5342
      dashboard/package-lock.json
  2. BIN
      dashboard/src/assets/logo.png
  3. 2
      dashboard/src/layout/components/header.vue
  4. 90
      dashboard/src/router/index.ts
  5. 9
      dashboard/src/views/Dashboard/DashboardPage1.vue
  6. 9
      dashboard/src/views/Dashboard/DashboardPage2.vue
  7. 5
      dashboard/src/views/Dashboard/GlobalTransactions/AllTransactions.vue
  8. 5
      dashboard/src/views/Dashboard/GlobalTransactions/UnfinishedTransactions.vue
  9. 6
      dashboard/src/views/Dashboard/Nodes/LivingNodes.vue
  10. 2
      dashboard/yarn.lock

5342
dashboard/package-lock.json

File diff suppressed because it is too large

BIN
dashboard/src/assets/logo.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

2
dashboard/src/layout/components/header.vue

@ -34,6 +34,6 @@ const onOpenChange = (d:any) => {
<style scoped>
.logo {
float: left;
margin: 16px 24px 16px 0;
margin: 16px 84px 16px 0;
}
</style>

90
dashboard/src/router/index.ts

@ -11,89 +11,39 @@ export const allowRouter: Array<IMenubarList> = [
{
name: 'Dashboard',
path: '/',
redirect: '/dashboard/sub1/1',
redirect: '/dashboard/nodes/living',
component: Components['LayoutHeader'],
meta: { title: '首页', activeMenu: '/dashboard' },
meta: { title: 'Dashboard', activeMenu: '/dashboard' },
children: [
{
name: 'SubNav1',
path: '/dashboard/sub1',
name: 'Nodes',
path: '/dashboard/nodes',
component: Components['LayoutMain'],
meta: { title: '子导航1' },
meta: { title: 'Nodes' },
children: [
{
name: 'Page1',
path: '/dashboard/sub1/1',
component: Components['DashboardPage1'],
meta: { title: '子页面1' },
}, {
name: 'Page2',
path: '/dashboard/sub1/2',
component: Components['DashboardPage2'],
meta: { title: '子页面2' },
}
]
}, {
name: 'SubNav2',
path: '/dashboard/sub2',
component: Components['LayoutMain'],
meta: { title: '子导航2' },
children: [
{
name: 'Page21',
path: '/dashboard/sub2/1',
component: Components['DashboardPage1'],
meta: { title: '子页面21' },
}, {
name: 'Page22',
path: '/dashboard/sub2/2',
component: Components['DashboardPage2'],
meta: { title: '子页面22' },
}
]
}
]
}, {
name: 'Nav2',
path: '/nav2',
redirect: '/nav2/sub2/1',
component: Components['LayoutHeader'],
meta: { title: '导航2', activeMenu: '/nav2' },
children: [
{
name: 'Nav2Sub1',
path: '/nav2/sub1',
component: Components['LayoutMain'],
meta: { title: '子导航1' },
children: [
{
name: 'Nav2Page1',
path: '/nav2/sub1/1',
component: Components['DashboardPage1'],
meta: { title: '子页面1' },
}, {
name: 'Nav2Page2',
path: '/nav2/sub1/2',
component: Components['DashboardPage2'],
meta: { title: '子页面2' },
name: 'LivingNodes',
path: '/dashboard/nodes/living',
component: Components['LivingNodes'],
meta: { title: 'Living Nodes' },
}
]
}, {
name: 'Nav2Sub2',
path: '/nav2/sub2',
name: 'GlobalTransactions',
path: '/dashboard/global-transactions',
component: Components['LayoutMain'],
meta: { title: '子导航2' },
meta: { title: 'Global Transactions' },
children: [
{
name: 'Nav2Page21',
path: '/nav2/sub2/1',
component: Components['DashboardPage1'],
meta: { title: '子页面21' },
name: 'AllTransactions',
path: '/dashboard/global-transactions/all',
component: Components['AllTransactions'],
meta: { title: 'All Transactions' },
}, {
name: 'Nav2Page22',
path: '/nav2/sub2/2',
component: Components['DashboardPage2'],
meta: { title: '子页面22' },
name: 'UnfinishedTransactions',
path: '/dashboard/global-transactions/unfinished',
component: Components['UnfinishedTransactions'],
meta: { title: 'Unfinished Transactions' },
}
]
}

9
dashboard/src/views/Dashboard/DashboardPage1.vue

@ -1,9 +0,0 @@
<script setup lang='ts'>
</script>
<template>
<div>
<h1>Page1</h1>
</div>
</template>

9
dashboard/src/views/Dashboard/DashboardPage2.vue

@ -1,9 +0,0 @@
<script setup lang='ts'>
</script>
<template>
<div>
<h1>Page2</h1>
</div>
</template>

5
dashboard/src/views/Dashboard/GlobalTransactions/AllTransactions.vue

@ -0,0 +1,5 @@
<template>
<h1>Coming Soon</h1>
</template>
<script setup lang="ts">
</script>

5
dashboard/src/views/Dashboard/GlobalTransactions/UnfinishedTransactions.vue

@ -0,0 +1,5 @@
<template>
<h1>Coming Soon</h1>
</template>
<script setup lang="ts">
</script>

6
dashboard/src/views/Dashboard/Nodes/LivingNodes.vue

@ -0,0 +1,6 @@
<template>
<h1>Coming Soon</h1>
</template>
<script setup lang="ts">
</script>

2
dashboard/yarn.lock

@ -2232,7 +2232,7 @@ postcss@^8.1.10:
postcss@^8.4.12:
version "8.4.12"
resolved "https://registry.npmmirror.com/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905"
resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.12.tgz#1e7de78733b28970fa4743f7da6f3763648b1905"
integrity sha512-lg6eITwYe9v6Hr5CncVbK70SoioNQIq81nsaG86ev5hAidQvmOeETBqs7jm43K2F5/Ley3ytDtriImV6TpNiSg==
dependencies:
nanoid "^3.3.1"

Loading…
Cancel
Save