You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by il...@apache.org on 2018/09/11 09:22:39 UTC
[incubator-dubbo-ops] branch develop updated: add fake LoadBalance
page for comparasion purpose
This is an automated email from the ASF dual-hosted git repository.
iluo pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dubbo-ops.git
The following commit(s) were added to refs/heads/develop by this push:
new 6b1c955 add fake LoadBalance page for comparasion purpose
6b1c955 is described below
commit 6b1c955238fcf1cee9058f69f028cc4bb109e64b
Author: beiwei30 <ia...@gmail.com>
AuthorDate: Tue Sep 11 17:22:13 2018 +0800
add fake LoadBalance page for comparasion purpose
---
dubbo-admin-frontend/src/components/Drawer.vue | 8 ++++----
dubbo-admin-frontend/src/components/LoadBalance.vue | 15 +++++++++++++++
dubbo-admin-frontend/src/router/index.js | 6 ++++++
3 files changed, 25 insertions(+), 4 deletions(-)
diff --git a/dubbo-admin-frontend/src/components/Drawer.vue b/dubbo-admin-frontend/src/components/Drawer.vue
index 59a72f9..8c9728a 100644
--- a/dubbo-admin-frontend/src/components/Drawer.vue
+++ b/dubbo-admin-frontend/src/components/Drawer.vue
@@ -32,9 +32,9 @@
</v-toolbar-title>
</v-toolbar>
- <v-list>
+ <v-list expand>
<template v-for="(item, i) in menus">
- <v-list-group v-if="item.items" :key="i" :group="item.group" :prepend-icon="item.icon" no-action>
+ <v-list-group v-if="item.items" :group="item.group" :prepend-icon="item.icon" no-action>
<v-list-tile slot="activator" ripple>
<v-list-tile-content>
<v-list-tile-title>{{ item.title }}</v-list-tile-title>
@@ -42,7 +42,7 @@
</v-list-tile>
<template v-for="(subItem, i) in item.items">
- <v-list-tile :key="i" :to="subItem.path" ripple>
+ <v-list-tile :to="subItem.path" ripple>
<v-list-tile-content>
<v-list-tile-title>{{ subItem.title }}</v-list-tile-title>
</v-list-tile-content>
@@ -50,7 +50,7 @@
</template>
</v-list-group>
- <v-list-tile v-else :key="item.title" :to="item.path" ripple="ripple">
+ <v-list-tile v-else :key="item.title" :to="item.path" ripple>
<v-list-tile-action>
<v-icon>{{ item.icon }}</v-icon>
</v-list-tile-action>
diff --git a/dubbo-admin-frontend/src/components/LoadBalance.vue b/dubbo-admin-frontend/src/components/LoadBalance.vue
new file mode 100644
index 0000000..61d4aba
--- /dev/null
+++ b/dubbo-admin-frontend/src/components/LoadBalance.vue
@@ -0,0 +1,15 @@
+<template>
+ <v-container fluid>
+ <v-layout row wrap>
+ <v-flex xs12 class="text-xs-center" mt-5>
+ <h1>Load Balance</h1>
+ </v-flex>
+ </v-layout>
+
+ </v-container>
+
+</template>
+
+<script>
+ export default {}
+</script>
diff --git a/dubbo-admin-frontend/src/router/index.js b/dubbo-admin-frontend/src/router/index.js
index 4857114..490561b 100644
--- a/dubbo-admin-frontend/src/router/index.js
+++ b/dubbo-admin-frontend/src/router/index.js
@@ -20,6 +20,7 @@ import Router from 'vue-router'
import ServiceSearch from '@/components/ServiceSearch'
import ServiceDetail from '@/components/ServiceDetail'
import RoutingRule from '@/components/RoutingRule'
+import LoadBalance from '@/components/LoadBalance'
Vue.use(Router)
@@ -39,6 +40,11 @@ export default new Router({
path: '/routingRule',
name: 'RoutingRule',
component: RoutingRule
+ },
+ {
+ path: '/governance/loadbalance',
+ name: 'LoadBalance',
+ component: LoadBalance
}
]
})