From ee06546c204572e24a006c33167bcde4cd75ce8a Mon Sep 17 00:00:00 2001 From: Fine0830 Date: Wed, 30 Mar 2022 21:19:06 +0800 Subject: [PATCH] fix: add tooltips for list graphs (#47) --- src/assets/icons/arrow-down.svg | 16 -------- src/assets/icons/arrow_drop_down.svg | 17 --------- src/assets/icons/bar_chart.svg | 19 ---------- src/assets/icons/clearclose.svg | 17 --------- src/assets/icons/health.svg | 15 -------- src/assets/icons/keyboard_control.svg | 18 --------- src/assets/icons/library_add.svg | 18 --------- src/assets/icons/notification_important.svg | 18 --------- src/assets/icons/save_alt.svg | 17 --------- .../icons/{insert_image.svg => storage.svg} | 2 +- src/components/Graph.vue | 17 ++++----- src/hooks/data.ts | 4 +- src/layout/components/SideBar.vue | 2 +- src/locales/lang/en.ts | 2 +- src/locales/lang/zh.ts | 6 +-- src/router/database.ts | 2 +- src/styles/reset.scss | 2 +- src/types/dashboard.ts | 1 + src/views/dashboard/configuration/Text.vue | 2 +- .../widget/graph-styles/Area.vue | 8 ++-- .../configuration/widget/graph-styles/Bar.vue | 8 ++-- .../widget/graph-styles/Card.vue | 6 +-- .../widget/graph-styles/EndpointList.vue | 8 ++-- .../widget/graph-styles/InstanceList.vue | 8 ++-- .../widget/graph-styles/Line.vue | 22 +++++------ .../widget/graph-styles/ServiceList.vue | 10 ++--- .../widget/graph-styles/Table.vue | 12 +++--- .../widget/graph-styles/TopList.vue | 4 +- .../configuration/widget/metric/Index.vue | 3 ++ src/views/dashboard/controls/Tab.vue | 6 +-- src/views/dashboard/controls/Text.vue | 22 +++++------ src/views/dashboard/graphs/EndpointList.vue | 9 ++++- src/views/dashboard/graphs/HeatMap.vue | 7 +++- src/views/dashboard/graphs/InstanceList.vue | 9 ++++- src/views/dashboard/graphs/Line.vue | 38 ++++++++++++------- src/views/dashboard/graphs/ServiceList.vue | 9 ++++- src/views/dashboard/panel/Layout.vue | 6 +-- .../topology/components/PodTopology.vue | 8 +++- 38 files changed, 138 insertions(+), 260 deletions(-) delete mode 100755 src/assets/icons/arrow-down.svg delete mode 100644 src/assets/icons/arrow_drop_down.svg delete mode 100644 src/assets/icons/bar_chart.svg delete mode 100644 src/assets/icons/clearclose.svg delete mode 100644 src/assets/icons/health.svg delete mode 100644 src/assets/icons/keyboard_control.svg delete mode 100644 src/assets/icons/library_add.svg delete mode 100644 src/assets/icons/notification_important.svg delete mode 100644 src/assets/icons/save_alt.svg rename src/assets/icons/{insert_image.svg => storage.svg} (77%) diff --git a/src/assets/icons/arrow-down.svg b/src/assets/icons/arrow-down.svg deleted file mode 100755 index f85e0b06..00000000 --- a/src/assets/icons/arrow-down.svg +++ /dev/null @@ -1,16 +0,0 @@ - - - \ No newline at end of file diff --git a/src/assets/icons/arrow_drop_down.svg b/src/assets/icons/arrow_drop_down.svg deleted file mode 100644 index 63151de2..00000000 --- a/src/assets/icons/arrow_drop_down.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/assets/icons/bar_chart.svg b/src/assets/icons/bar_chart.svg deleted file mode 100644 index e8745222..00000000 --- a/src/assets/icons/bar_chart.svg +++ /dev/null @@ -1,19 +0,0 @@ - - - -bar_chart - - diff --git a/src/assets/icons/clearclose.svg b/src/assets/icons/clearclose.svg deleted file mode 100644 index ddc35190..00000000 --- a/src/assets/icons/clearclose.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/assets/icons/health.svg b/src/assets/icons/health.svg deleted file mode 100644 index 56f20622..00000000 --- a/src/assets/icons/health.svg +++ /dev/null @@ -1,15 +0,0 @@ - - \ No newline at end of file diff --git a/src/assets/icons/keyboard_control.svg b/src/assets/icons/keyboard_control.svg deleted file mode 100644 index cf8d477c..00000000 --- a/src/assets/icons/keyboard_control.svg +++ /dev/null @@ -1,18 +0,0 @@ - - -keyboard_control - - diff --git a/src/assets/icons/library_add.svg b/src/assets/icons/library_add.svg deleted file mode 100644 index 382303c4..00000000 --- a/src/assets/icons/library_add.svg +++ /dev/null @@ -1,18 +0,0 @@ - - -library_add - - diff --git a/src/assets/icons/notification_important.svg b/src/assets/icons/notification_important.svg deleted file mode 100644 index 8a806114..00000000 --- a/src/assets/icons/notification_important.svg +++ /dev/null @@ -1,18 +0,0 @@ - - -notification_important - - diff --git a/src/assets/icons/save_alt.svg b/src/assets/icons/save_alt.svg deleted file mode 100644 index 59d6e879..00000000 --- a/src/assets/icons/save_alt.svg +++ /dev/null @@ -1,17 +0,0 @@ - - - - diff --git a/src/assets/icons/insert_image.svg b/src/assets/icons/storage.svg similarity index 77% rename from src/assets/icons/insert_image.svg rename to src/assets/icons/storage.svg index 5aea97ca..73d66841 100644 --- a/src/assets/icons/insert_image.svg +++ b/src/assets/icons/storage.svg @@ -13,5 +13,5 @@ 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. --> - + diff --git a/src/components/Graph.vue b/src/components/Graph.vue index c83f9db3..217831b7 100644 --- a/src/components/Graph.vue +++ b/src/components/Graph.vue @@ -13,12 +13,9 @@ 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. -->