From 1191d87f9357a6e5ccba3861c441627a8d224e3d Mon Sep 17 00:00:00 2001 From: Cindy Chang Date: Mon, 19 Aug 2024 13:32:50 +0800 Subject: [PATCH] WIP: insight path tabs --- src/components/Discover/Map/SidebarState.vue | 96 +++++++++++--------- 1 file changed, 53 insertions(+), 43 deletions(-) diff --git a/src/components/Discover/Map/SidebarState.vue b/src/components/Discover/Map/SidebarState.vue index 12e1210..b4ae4cf 100644 --- a/src/components/Discover/Map/SidebarState.vue +++ b/src/components/Discover/Map/SidebarState.vue @@ -119,30 +119,39 @@

Most Frequent

-
    -
  • Activity:  - {{ value }} +
      +
    • Activity:  + {{ value }} +
    • +
    • Inbound connections:  + {{ value }}
    • -
    • Inbound connections:  - {{ value }} - -
    • -
    • Outbound connections:  - {{ value }} +
    • Outbound connections:  + {{ value }}

    Most Time-Consuming

    -
      -
    • Activity:  - {{ value }} +
        +
      • Activity:  + {{ value }}
      • -
      • Connection:  - - {{ value }} arrow_forward  - +
      • Connection:  + + + {{ value }} +   + arrow_forward +   + +
      @@ -159,7 +168,7 @@

      No data

      -
        +
        • {{ value }}
        • @@ -167,38 +176,29 @@

          No data

          -
            +
            • - {{ value }} sync_alt  + + {{ value }} +   + sync_alt +  
            - -

            No data

            -
              -
            • - {{ value }} arrow_forward  + +

              No data

              +
                +
              • + + {{ value }} + +   + arrow_forward +   -
              • -
              -
              - -

              No data

              -
                -
              • - {{ value }} arrow_forward  - -
              • -
              -
              - -
                -
              • No data
              • -
              -
                -
              • - {{ value }} arrow_forward 
              @@ -217,6 +217,15 @@ import { getTimeLabel } from '@/module/timeLabel.js'; import getMoment from 'moment'; import i18next from '@/i18n/i18n'; +const fieldNamesAndLabelNames = [ +['self_loops', 'Self-Loop'], +['short_loops', 'Short-Loop'], +['shortest_traces', 'Shortest Trace'], +['longest_traces', 'Longest Trace'], +['most_freq_traces', 'Most Frequent Trace'], +]; +// 刪除第一個和第二個元素 +fieldNamesAndLabelNames.splice(0, 2); export default { props:{ sidebarState: { @@ -240,6 +249,7 @@ export default { return { currentMapFile, i18next, + fieldNamesAndLabelNames, }; }, data() {