diff --git a/shadingsphere-benchmark-ui/src/router/index.js b/shadingsphere-benchmark-ui/src/router/index.js index f0dce310..d810cb5e 100644 --- a/shadingsphere-benchmark-ui/src/router/index.js +++ b/shadingsphere-benchmark-ui/src/router/index.js @@ -33,6 +33,18 @@ export const constantRouterMap = [ component: () => import('@/views/sharding-proxy-single-database-single-table/index'), hidden: true + }, + { + path: '/shardingjdbc-vs-shardingproxy-encrypt', + component: () => + import('@/views/shardingjdbc-vs-shardingproxy-encrypt/index'), + hidden: true + }, + { + path: '/shardingjdbc-vs-shardingproxy-sharding-encrypt', + component: () => + import('@/views/shardingjdbc-vs-shardingproxy-sharding-encrypt/index'), + hidden: true } ] diff --git a/shadingsphere-benchmark-ui/src/utils/api.js b/shadingsphere-benchmark-ui/src/utils/api.js index a9bf7b6e..865365f7 100644 --- a/shadingsphere-benchmark-ui/src/utils/api.js +++ b/shadingsphere-benchmark-ui/src/utils/api.js @@ -1,7 +1,7 @@ import $ from 'jquery' const HOST = - 'https://raw.githubusercontent.com/wqzwh/incubator-shardingsphere-benchmark/master/report' + 'https://raw.githubusercontent.com/apache/incubator-shardingsphere-benchmark/master/report/' function ajax(url, type) { return new Promise((resolve, reject) => { diff --git a/shadingsphere-benchmark-ui/src/utils/mixin.js b/shadingsphere-benchmark-ui/src/utils/mixin.js index 3dd295ab..3cce6d92 100644 --- a/shadingsphere-benchmark-ui/src/utils/mixin.js +++ b/shadingsphere-benchmark-ui/src/utils/mixin.js @@ -33,7 +33,7 @@ const mountedMixin = { legend[m].push(mm.type) const data = [] for (const mmm of Object.keys(mm.data)) { - if (xAxis[m].length !== mm.data.length) { + if (xAxis[m].length < mm.data.length) { xAxis[m].push(mmm) } data.push({ diff --git a/shadingsphere-benchmark-ui/src/utils/utils.js b/shadingsphere-benchmark-ui/src/utils/utils.js index a0b606b9..9e859d82 100644 --- a/shadingsphere-benchmark-ui/src/utils/utils.js +++ b/shadingsphere-benchmark-ui/src/utils/utils.js @@ -8,5 +8,9 @@ export default { getShardingProxyMasterSlaveData: () => API.get(`/data_json/sharding_proxy_master_slave.json`), getShardingProxySingleDatabaseSingleTableData: () => - API.get(`/data_json/sharding_proxy_single_database_single_table.json`) + API.get(`/data_json/sharding_proxy_single_database_single_table.json`), + getShardingjdbcVsShardingproxyEncrypt: () => + API.get(`/data_json/shardingjdbc_vs_shardingproxy_encrypt.json`), + getShardingjdbcVsShardingproxyShardingEncrypt: () => + API.get(`/data_json/shardingjdbc_vs_shardingproxy_sharding_encrypt.json`) } diff --git a/shadingsphere-benchmark-ui/src/views/mysql-vs-sharding/index.vue b/shadingsphere-benchmark-ui/src/views/mysql-vs-sharding/index.vue index b0bd2a57..8542708c 100644 --- a/shadingsphere-benchmark-ui/src/views/mysql-vs-sharding/index.vue +++ b/shadingsphere-benchmark-ui/src/views/mysql-vs-sharding/index.vue @@ -43,7 +43,7 @@ import { mountedMixin } from '../../utils/mixin' import { getLineOptions } from '../../utils/line' export default { - name: 'Home', + name: 'MysqlVsSharding', components: { 'v-chart': ECharts }, diff --git a/shadingsphere-benchmark-ui/src/views/overview/index.vue b/shadingsphere-benchmark-ui/src/views/overview/index.vue index 7c060f24..77da3b22 100644 --- a/shadingsphere-benchmark-ui/src/views/overview/index.vue +++ b/shadingsphere-benchmark-ui/src/views/overview/index.vue @@ -36,6 +36,22 @@ +
{{ name.toLowerCase() }}
+{{ name.toLowerCase() }}
+