From 907f3926ce8fcc4b999178e8baba1ca0a14eb982 Mon Sep 17 00:00:00 2001 From: Oliver Giles Date: Sat, 2 Jan 2021 21:26:13 +1300 Subject: [PATCH] remove dependency on vue-router only a small subset of vue-router is used, and integration is complicated by each route having its own EventSource request. Implementing the routing directly allows simplification of the EventSource logic. Another motivating factor is that the vue-router packages in debian have been unreliable, making the dependence on vue-router a hinderance for packaging laminar in debian. --- CMakeLists.txt | 2 - src/resources/index.html | 17 ++-- src/resources/js/app.js | 213 ++++++++++++++++++++++----------------- 3 files changed, 127 insertions(+), 105 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 19e5443..1735f8d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -85,8 +85,6 @@ add_custom_command(OUTPUT index_html_size.h # Download 3rd-party frontend JS libs... file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue/2.6.12/vue.min.js js/vue.min.js EXPECTED_MD5 fb192338844efe86ec759a40152fcb8e) -file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/vue-router/3.4.8/vue-router.min.js - js/vue-router.min.js EXPECTED_MD5 5f51d4dbbf68fd6725956a5a2b865f3b) file(DOWNLOAD https://raw.githubusercontent.com/drudru/ansi_up/v1.3.0/ansi_up.js js/ansi_up.js EXPECTED_MD5 158566dc1ff8f2804de972f7e841e2f6) file(DOWNLOAD https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.2/Chart.min.js diff --git a/src/resources/index.html b/src/resources/index.html index e2a6774..de52b23 100644 --- a/src/resources/index.html +++ b/src/resources/index.html @@ -11,7 +11,6 @@ Laminar - @@ -115,13 +114,13 @@