From 6bbdec49bf84fb3b86c7c4e87555a1df584b8029 Mon Sep 17 00:00:00 2001 From: David Larlet Date: Sat, 8 Jun 2024 09:16:56 -0400 Subject: [PATCH] chore: refactor web components with templates --- .../umap/js/components/alerts/alert.html | 27 +++-- .../static/umap/js/components/alerts/alert.js | 113 ++++++++---------- umap/static/umap/js/components/base.js | 54 +++++++++ umap/static/umap/js/umap.layer.js | 2 +- 4 files changed, 119 insertions(+), 77 deletions(-) create mode 100644 umap/static/umap/js/components/base.js diff --git a/umap/static/umap/js/components/alerts/alert.html b/umap/static/umap/js/components/alerts/alert.html index cea8e628..553abb03 100644 --- a/umap/static/umap/js/components/alerts/alert.html +++ b/umap/static/umap/js/components/alerts/alert.html @@ -4,7 +4,7 @@ @import "{% static 'umap/js/components/alerts/alert.css' %}"; -