From 91a026e66a9689f7d1b174b2fffefbc5d48d185f Mon Sep 17 00:00:00 2001 From: Conor McNamara Date: Sun, 19 Mar 2023 13:40:44 +0000 Subject: [PATCH] Fix insights page refresh --- src/pages/InsightsPage.vue | 141 +++++++++++++++++++++++++++--- src/pages/MapPage.vue | 52 +++-------- src/store/new.js | 171 +++++++++++++++++++++++++++++++++++++ src/store/store.js | 15 ++-- 4 files changed, 318 insertions(+), 61 deletions(-) create mode 100644 src/store/new.js diff --git a/src/pages/InsightsPage.vue b/src/pages/InsightsPage.vue index 35e0035..af3c630 100644 --- a/src/pages/InsightsPage.vue +++ b/src/pages/InsightsPage.vue @@ -10,7 +10,7 @@
  • Darts: {{ this.insights["numDarts"] }}

  • -
    +
    @@ -19,13 +19,10 @@

    Number of actively running trains: {{ this.insights["numRunningTrains"] }}

    Percentage late: {{ this.insights["percentageLate"] }}%

    Percentage early or ontime: {{ this.insights["percentageNotLate"] }}%

    -
    +
    -

    Latest train: {{ this.latestTrain["TrainCode"][0] }}, {{ this.insights["latestTime"] }} mins late

    -

    Earliest train: {{ this.earliestTrain["TrainCode"][0] }}, {{ this.insights["earliestTime"] * -1 }} mins early

    -

    Station Insights

    @@ -36,7 +33,7 @@
    - +
    @@ -72,12 +69,15 @@