From 1f6ce48e409b3931ca5e0750e8d73ab5ce900f4a Mon Sep 17 00:00:00 2001 From: Soufiane Fariss Date: Thu, 8 Aug 2024 07:13:42 +0200 Subject: [PATCH] refactor RuleMatchesTable This commit: - add two new base CSS utility classes - stores the results of parsing in sessionStorage for reuse - add a new settings option `Show column filters` - replaces ../../../ with a path shortcut --- web/explorer/src/assets/main.css | 8 + .../src/components/RuleMatchesTable.vue | 354 +++++++++++------- web/explorer/src/components/SettingsPanel.vue | 25 +- .../src/components/columns/RuleColumn.vue | 20 +- web/explorer/src/views/ImportView.vue | 43 ++- 5 files changed, 284 insertions(+), 166 deletions(-) diff --git a/web/explorer/src/assets/main.css b/web/explorer/src/assets/main.css index c167535c..013fb590 100644 --- a/web/explorer/src/assets/main.css +++ b/web/explorer/src/assets/main.css @@ -14,6 +14,14 @@ a:hover { color: var(--primary-color); } +.font-monospace { + font-family: monospace; +} + +.cursor-default { + cursor: default; +} + /* remove the border from rows other than rule names */ .p-treetable-tbody > tr:not(:is([aria-level="1"])) > td { border: none !important; diff --git a/web/explorer/src/components/RuleMatchesTable.vue b/web/explorer/src/components/RuleMatchesTable.vue index d7dcee1b..0c8e8ad6 100644 --- a/web/explorer/src/components/RuleMatchesTable.vue +++ b/web/explorer/src/components/RuleMatchesTable.vue @@ -1,118 +1,171 @@