From b8b0a43df119370fd9b9eb5fea32f5c764e5bbcc Mon Sep 17 00:00:00 2001 From: Daniel Ceregatti Date: Fri, 3 Nov 2023 16:13:14 -0700 Subject: [PATCH] WIP on web UI: Make selected items show as selected. Break out XML file handling so the tree component could just handle elements and leave the XML parsing to the parent. Sort mods by name, not id. --- web/docroot/src/components/Modinfo.vue | 8 +- web/docroot/src/components/Mods.vue | 9 +- web/docroot/src/components/XmlFile.vue | 28 +++++ web/docroot/src/components/XmlTree.vue | 135 +++++++------------------ web/docroot/src/css/index.css | 6 +- 5 files changed, 79 insertions(+), 107 deletions(-) create mode 100644 web/docroot/src/components/XmlFile.vue diff --git a/web/docroot/src/components/Modinfo.vue b/web/docroot/src/components/Modinfo.vue index d0ef060..61843c3 100644 --- a/web/docroot/src/components/Modinfo.vue +++ b/web/docroot/src/components/Modinfo.vue @@ -1,6 +1,6 @@ + + diff --git a/web/docroot/src/components/XmlTree.vue b/web/docroot/src/components/XmlTree.vue index aaa4d91..23a11da 100644 --- a/web/docroot/src/components/XmlTree.vue +++ b/web/docroot/src/components/XmlTree.vue @@ -1,114 +1,49 @@ + + - - diff --git a/web/docroot/src/css/index.css b/web/docroot/src/css/index.css index 21fdb4a..e3c12f7 100644 --- a/web/docroot/src/css/index.css +++ b/web/docroot/src/css/index.css @@ -7,11 +7,15 @@ th, td { padding-right: 10px } +.active { + background-color: cyan; +} + .simulink { cursor: pointer; text-underline: blue; } .simulink:hover { - background-color: cyan; + background-color: green; }