You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2019/12/11 01:51:26 UTC

[incubator-shardingsphere-benchmark] branch master updated: feature[shadingsphere-benchmark-ui]: Front end engineering optimization #30

This is an automated email from the ASF dual-hosted git repository.

zhaoyanan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-shardingsphere-benchmark.git


The following commit(s) were added to refs/heads/master by this push:
     new cfe254f  feature[shadingsphere-benchmark-ui]: Front end engineering optimization #30
     new 1e553f7  Merge pull request #31 from wqzwh/master
cfe254f is described below

commit cfe254fb314fe79529898946426db8042e885e8c
Author: wqzwh <wa...@163.com>
AuthorDate: Tue Dec 10 20:23:32 2019 +0800

    feature[shadingsphere-benchmark-ui]: Front end engineering optimization #30
---
 shadingsphere-benchmark-ui/.eslintrc.js            | 17 +++++
 shadingsphere-benchmark-ui/src/App.vue             | 16 ++++
 shadingsphere-benchmark-ui/src/assets/css/css.css  | 17 +++++
 .../src/components/Container/index.vue             | 16 ++++
 .../src/components/Footer/index.vue                | 19 ++++-
 shadingsphere-benchmark-ui/src/main.js             | 17 +++++
 shadingsphere-benchmark-ui/src/router/index.js     | 17 +++++
 shadingsphere-benchmark-ui/src/store/actions.js    | 17 +++++
 shadingsphere-benchmark-ui/src/store/index.js      | 17 +++++
 .../src/store/modules/global.js                    | 17 +++++
 .../src/store/modules/index.js                     | 17 +++++
 .../src/store/mutation-types.js                    | 17 +++++
 shadingsphere-benchmark-ui/src/utils/api.js        | 17 +++++
 shadingsphere-benchmark-ui/src/utils/line.js       | 17 +++++
 shadingsphere-benchmark-ui/src/utils/mixin.js      | 17 +++++
 shadingsphere-benchmark-ui/src/utils/page-apis.js  | 26 ++++---
 .../src/views/encrypt_sharding_test/index.vue      | 87 ----------------------
 .../src/views/encrypt_test/index.vue               | 83 ---------------------
 .../src/views/loss_test/index.vue                  | 83 ---------------------
 .../src/views/master_slave_sharding_test/index.vue | 83 ---------------------
 .../src/views/master_slave_test/index.vue          | 87 ----------------------
 .../src/views/overview/index.vue                   | 16 ++++
 .../src/views/overview_detail/index.vue            | 16 ++++
 .../src/views/promotion_test/index.vue             | 87 ----------------------
 .../src/views/sharding_test/index.vue              | 87 ----------------------
 25 files changed, 302 insertions(+), 608 deletions(-)

diff --git a/shadingsphere-benchmark-ui/.eslintrc.js b/shadingsphere-benchmark-ui/.eslintrc.js
index a588840..92fdfc9 100644
--- a/shadingsphere-benchmark-ui/.eslintrc.js
+++ b/shadingsphere-benchmark-ui/.eslintrc.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 module.exports = {
   root: true,
   parserOptions: {
diff --git a/shadingsphere-benchmark-ui/src/App.vue b/shadingsphere-benchmark-ui/src/App.vue
index 28de323..8effef7 100644
--- a/shadingsphere-benchmark-ui/src/App.vue
+++ b/shadingsphere-benchmark-ui/src/App.vue
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 <template>
   <div id="app">
     <Container>
diff --git a/shadingsphere-benchmark-ui/src/assets/css/css.css b/shadingsphere-benchmark-ui/src/assets/css/css.css
index 6bd6ed3..2679987 100644
--- a/shadingsphere-benchmark-ui/src/assets/css/css.css
+++ b/shadingsphere-benchmark-ui/src/assets/css/css.css
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+ 
 .spin-container {
   display: inline-block;
   width: 100%;
diff --git a/shadingsphere-benchmark-ui/src/components/Container/index.vue b/shadingsphere-benchmark-ui/src/components/Container/index.vue
index 32f7512..6552560 100644
--- a/shadingsphere-benchmark-ui/src/components/Container/index.vue
+++ b/shadingsphere-benchmark-ui/src/components/Container/index.vue
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 <template>
   <div class="layout">
     <Layout>
diff --git a/shadingsphere-benchmark-ui/src/components/Footer/index.vue b/shadingsphere-benchmark-ui/src/components/Footer/index.vue
index 8a9e2be..7718bb2 100644
--- a/shadingsphere-benchmark-ui/src/components/Footer/index.vue
+++ b/shadingsphere-benchmark-ui/src/components/Footer/index.vue
@@ -1,7 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 <template>
   <div class="footer-wrapper">
-    Copyright
-    <i class="icon-copyright iconfont" /> The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
+    Copyright © The Apache Software Foundation, Licensed under the Apache License, Version 2.0.
   </div>
 </template>
 <script>
diff --git a/shadingsphere-benchmark-ui/src/main.js b/shadingsphere-benchmark-ui/src/main.js
index e9da8a6..55c59cf 100644
--- a/shadingsphere-benchmark-ui/src/main.js
+++ b/shadingsphere-benchmark-ui/src/main.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import Vue from 'vue'
 import App from './App'
 import store from './store'
diff --git a/shadingsphere-benchmark-ui/src/router/index.js b/shadingsphere-benchmark-ui/src/router/index.js
index 9b32387..1ee9871 100644
--- a/shadingsphere-benchmark-ui/src/router/index.js
+++ b/shadingsphere-benchmark-ui/src/router/index.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import Vue from 'vue'
 import Router from 'vue-router'
 Vue.use(Router)
diff --git a/shadingsphere-benchmark-ui/src/store/actions.js b/shadingsphere-benchmark-ui/src/store/actions.js
index d70e2f0..2380fdb 100644
--- a/shadingsphere-benchmark-ui/src/store/actions.js
+++ b/shadingsphere-benchmark-ui/src/store/actions.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import * as types from './mutation-types'
 
 const makeAction = type => {
diff --git a/shadingsphere-benchmark-ui/src/store/index.js b/shadingsphere-benchmark-ui/src/store/index.js
index 5ffb020..04e5f9a 100644
--- a/shadingsphere-benchmark-ui/src/store/index.js
+++ b/shadingsphere-benchmark-ui/src/store/index.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import Vue from 'vue'
 import Vuex from 'vuex'
 
diff --git a/shadingsphere-benchmark-ui/src/store/modules/global.js b/shadingsphere-benchmark-ui/src/store/modules/global.js
index 8ffb7f1..6d349a8 100644
--- a/shadingsphere-benchmark-ui/src/store/modules/global.js
+++ b/shadingsphere-benchmark-ui/src/store/modules/global.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import clone from 'lodash/clone'
 import * as types from '../mutation-types'
 
diff --git a/shadingsphere-benchmark-ui/src/store/modules/index.js b/shadingsphere-benchmark-ui/src/store/modules/index.js
index bf52cc1..aaddee3 100644
--- a/shadingsphere-benchmark-ui/src/store/modules/index.js
+++ b/shadingsphere-benchmark-ui/src/store/modules/index.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 const files = require.context('.', false, /\.js$/)
 const modules = {}
 
diff --git a/shadingsphere-benchmark-ui/src/store/mutation-types.js b/shadingsphere-benchmark-ui/src/store/mutation-types.js
index 0c91bdb..5d92c2e 100644
--- a/shadingsphere-benchmark-ui/src/store/mutation-types.js
+++ b/shadingsphere-benchmark-ui/src/store/mutation-types.js
@@ -1,2 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 export const SET_MENU = 'SET_MENU'
 export const SET_FILE_DATA = 'SET_FILE_DATA'
diff --git a/shadingsphere-benchmark-ui/src/utils/api.js b/shadingsphere-benchmark-ui/src/utils/api.js
index 1e51b6c..80a8340 100644
--- a/shadingsphere-benchmark-ui/src/utils/api.js
+++ b/shadingsphere-benchmark-ui/src/utils/api.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import axios from 'axios'
 import { Notice } from 'iview'
 const HOST =
diff --git a/shadingsphere-benchmark-ui/src/utils/line.js b/shadingsphere-benchmark-ui/src/utils/line.js
index 968df85..6166a08 100644
--- a/shadingsphere-benchmark-ui/src/utils/line.js
+++ b/shadingsphere-benchmark-ui/src/utils/line.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 const color = ['#2D8CF0', '#9A66E4', '#19BE6B', '#FF9900', '#E46CBB']
 const getLineOptions = (name, xAxis, legend, series) => {
   let _xAxis = xAxis[name]
diff --git a/shadingsphere-benchmark-ui/src/utils/mixin.js b/shadingsphere-benchmark-ui/src/utils/mixin.js
index 4826d96..0585e5e 100644
--- a/shadingsphere-benchmark-ui/src/utils/mixin.js
+++ b/shadingsphere-benchmark-ui/src/utils/mixin.js
@@ -1,3 +1,20 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import moment from 'moment'
 const mountedMixin = {
   data() {
diff --git a/shadingsphere-benchmark-ui/src/utils/page-apis.js b/shadingsphere-benchmark-ui/src/utils/page-apis.js
index 94bca4e..b00d052 100644
--- a/shadingsphere-benchmark-ui/src/utils/page-apis.js
+++ b/shadingsphere-benchmark-ui/src/utils/page-apis.js
@@ -1,15 +1,23 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 import API from './api'
 
 export default {
   getFileList: () => API.get(`/jtl_json/file_list.json`),
-  getEncryptShardingTestData: () =>
-    API.get(`/jtl_json/encrypt_sharding_test.json`),
-  getLossTestData: () => API.get(`/jtl_json/loss_test.json`),
-  getEncryptTestData: () => API.get(`/jtl_json/encrypt_test.json`),
-  getMasterSlaveShardingTestData: () =>
-    API.get(`/jtl_json/master_slave_sharding_test.json`),
-  getMasterSlaveTest: () => API.get(`/jtl_json/master_slave_test.json`),
-  getShardingTest: () => API.get(`/jtl_json/sharding_test.json`),
-  getPromotionTest: () => API.get(`/jtl_json/promotion_test.json`),
   getOverviewDetail: (fileName = '') => API.get(`/jtl_json/${fileName}.json`)
 }
diff --git a/shadingsphere-benchmark-ui/src/views/encrypt_sharding_test/index.vue b/shadingsphere-benchmark-ui/src/views/encrypt_sharding_test/index.vue
deleted file mode 100644
index 4b402db..0000000
--- a/shadingsphere-benchmark-ui/src/views/encrypt_sharding_test/index.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'EncryptShardingTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  data() {
-    return {
-      data: []
-    }
-  },
-  mounted() {
-    this.loading = true
-    apis.getEncryptShardingTestData().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/encrypt_test/index.vue b/shadingsphere-benchmark-ui/src/views/encrypt_test/index.vue
deleted file mode 100644
index 86a4bbd..0000000
--- a/shadingsphere-benchmark-ui/src/views/encrypt_test/index.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-      span="24"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'EncryptTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  mounted() {
-    this.loading = true
-    apis.getEncryptTestData().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/loss_test/index.vue b/shadingsphere-benchmark-ui/src/views/loss_test/index.vue
deleted file mode 100644
index d7a7884..0000000
--- a/shadingsphere-benchmark-ui/src/views/loss_test/index.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-      span="24"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'LossTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  mounted() {
-    this.loading = true
-    apis.getLossTestData().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/master_slave_sharding_test/index.vue b/shadingsphere-benchmark-ui/src/views/master_slave_sharding_test/index.vue
deleted file mode 100644
index 313a54d..0000000
--- a/shadingsphere-benchmark-ui/src/views/master_slave_sharding_test/index.vue
+++ /dev/null
@@ -1,83 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-      span="24"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'MasterSlaveShardingTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  mounted() {
-    this.loading = true
-    apis.getMasterSlaveShardingTestData().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/master_slave_test/index.vue b/shadingsphere-benchmark-ui/src/views/master_slave_test/index.vue
deleted file mode 100644
index 118ce55..0000000
--- a/shadingsphere-benchmark-ui/src/views/master_slave_test/index.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'MasterSlaveTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  data() {
-    return {
-      data: []
-    }
-  },
-  mounted() {
-    this.loading = true
-    apis.getMasterSlaveTest().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/overview/index.vue b/shadingsphere-benchmark-ui/src/views/overview/index.vue
index 239cf26..f09ab48 100644
--- a/shadingsphere-benchmark-ui/src/views/overview/index.vue
+++ b/shadingsphere-benchmark-ui/src/views/overview/index.vue
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 <template>
   <Card class="card-wrap">
     <p slot="title">
diff --git a/shadingsphere-benchmark-ui/src/views/overview_detail/index.vue b/shadingsphere-benchmark-ui/src/views/overview_detail/index.vue
index 9bda889..f1cbe35 100644
--- a/shadingsphere-benchmark-ui/src/views/overview_detail/index.vue
+++ b/shadingsphere-benchmark-ui/src/views/overview_detail/index.vue
@@ -1,3 +1,19 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 <template>
   <Row :gutter="16" style="background:#eee; padding:20px">
     <Col
diff --git a/shadingsphere-benchmark-ui/src/views/promotion_test/index.vue b/shadingsphere-benchmark-ui/src/views/promotion_test/index.vue
deleted file mode 100644
index 4b8fdb3..0000000
--- a/shadingsphere-benchmark-ui/src/views/promotion_test/index.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'PromotionTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  data() {
-    return {
-      data: []
-    }
-  },
-  mounted() {
-    this.loading = true
-    apis.getPromotionTest().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>
diff --git a/shadingsphere-benchmark-ui/src/views/sharding_test/index.vue b/shadingsphere-benchmark-ui/src/views/sharding_test/index.vue
deleted file mode 100644
index 8aef0cf..0000000
--- a/shadingsphere-benchmark-ui/src/views/sharding_test/index.vue
+++ /dev/null
@@ -1,87 +0,0 @@
-<template>
-  <Row :gutter="16" style="background:#eee; padding:20px">
-    <Col
-      v-for="(value, name, index) in series"
-      :key="index"
-      :xs="24"
-      :sm="24"
-      :md="24"
-      :lg="24"
-      :xl="24"
-      :xxl="12"
-      class="col-item"
-    >
-      <Card :bordered="false">
-        <p slot="title" style="font-size: 18px">{{ name.toLowerCase() }}</p>
-        <v-chart :options="getOptions(name)" />
-        <Table
-          :columns="columns"
-          :data="[desc[name]]"
-          size="large"
-          style="margin-top: 20px;"
-          border
-        />
-      </Card>
-    </Col>
-    <div v-show="loading" class="spin-container">
-      <Spin fix>
-        <Icon type="ios-loading" size="18" class="spin-icon-load" />
-        <div>Loading</div>
-      </Spin>
-    </div>
-  </Row>
-</template>
-
-<script>
-import ECharts from 'vue-echarts'
-import 'echarts/lib/chart/line'
-import 'echarts/lib/component/tooltip'
-import 'echarts/lib/component/legend'
-import 'echarts/lib/component/title'
-import apis from '../../utils/page-apis'
-import { mountedMixin } from '../../utils/mixin'
-import { getLineOptions } from '../../utils/line'
-
-export default {
-  name: 'ShardingTest',
-  components: {
-    'v-chart': ECharts
-  },
-  mixins: [mountedMixin],
-  data() {
-    return {
-      data: []
-    }
-  },
-  mounted() {
-    this.loading = true
-    apis.getShardingTest().then(res => {
-      this.formatData(res)
-      this.loading = false
-    })
-  },
-  methods: {
-    getOptions(name) {
-      return getLineOptions(name, this.xAxis, this.legend, this.series)
-    }
-  }
-}
-</script>
-<style>
-.echarts {
-  width: 100%;
-  height: 400px;
-}
-.col-item {
-  margin-bottom: 16px;
-}
-.ivu-form-item {
-  margin-bottom: 10px !important;
-}
-.ivu-form-item-label {
-  font-size: 15px !important;
-}
-.ivu-form-item-content {
-  font-size: 14px !important;
-}
-</style>