From 5cca710ac6f2578ad2b3113ee260d4a0027b10e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20Kuna?=
<1282324+codecalm@users.noreply.github.com>
Date: Fri, 10 Jan 2025 22:31:03 +0100
Subject: [PATCH] Update illustrations and enhance SVG handling in HTML (#2051)
---
.build/import-illustrations.js | 1 -
.changeset/hot-vans-peel.md | 5 +++++
src/pages/_data/illustrations.json | 2 +-
src/pages/illustrations.html | 8 ++++----
src/static/illustrations/dark/boy-refresh.png | Bin 0 -> 98149 bytes
.../illustrations/dark/christmas-fireplace.png | Bin 0 -> 75472 bytes
.../illustrations/dark/christmas-gifts.png | Bin 0 -> 99720 bytes
.../illustrations/dark/christmas-tree.png | Bin 0 -> 73704 bytes
src/static/illustrations/dark/ghost.png | Bin 0 -> 96533 bytes
.../illustrations/dark/halloween-pumpkin.png | Bin 0 -> 102082 bytes
src/static/illustrations/dark/new-year-2.png | Bin 0 -> 187741 bytes
src/static/illustrations/dark/new-year.png | Bin 0 -> 202252 bytes
src/static/illustrations/dark/printer.png | Bin 0 -> 84735 bytes
src/static/illustrations/dark/tiredness.png | Bin 0 -> 63658 bytes
src/static/illustrations/light/boy-refresh.png | Bin 0 -> 107574 bytes
.../light/christmas-fireplace.png | Bin 0 -> 88617 bytes
.../illustrations/light/christmas-gifts.png | Bin 0 -> 111384 bytes
.../illustrations/light/christmas-tree.png | Bin 0 -> 84284 bytes
src/static/illustrations/light/ghost.png | Bin 0 -> 108179 bytes
.../illustrations/light/halloween-pumpkin.png | Bin 0 -> 118666 bytes
src/static/illustrations/light/new-year-2.png | Bin 0 -> 198264 bytes
src/static/illustrations/light/new-year.png | Bin 0 -> 212039 bytes
src/static/illustrations/light/printer.png | Bin 0 -> 96408 bytes
src/static/illustrations/light/tiredness.png | Bin 0 -> 74694 bytes
24 files changed, 10 insertions(+), 6 deletions(-)
create mode 100644 .changeset/hot-vans-peel.md
create mode 100644 src/static/illustrations/dark/boy-refresh.png
create mode 100644 src/static/illustrations/dark/christmas-fireplace.png
create mode 100644 src/static/illustrations/dark/christmas-gifts.png
create mode 100644 src/static/illustrations/dark/christmas-tree.png
create mode 100644 src/static/illustrations/dark/ghost.png
create mode 100644 src/static/illustrations/dark/halloween-pumpkin.png
create mode 100644 src/static/illustrations/dark/new-year-2.png
create mode 100644 src/static/illustrations/dark/new-year.png
create mode 100644 src/static/illustrations/dark/printer.png
create mode 100644 src/static/illustrations/dark/tiredness.png
create mode 100644 src/static/illustrations/light/boy-refresh.png
create mode 100644 src/static/illustrations/light/christmas-fireplace.png
create mode 100644 src/static/illustrations/light/christmas-gifts.png
create mode 100644 src/static/illustrations/light/christmas-tree.png
create mode 100644 src/static/illustrations/light/ghost.png
create mode 100644 src/static/illustrations/light/halloween-pumpkin.png
create mode 100644 src/static/illustrations/light/new-year-2.png
create mode 100644 src/static/illustrations/light/new-year.png
create mode 100644 src/static/illustrations/light/printer.png
create mode 100644 src/static/illustrations/light/tiredness.png
diff --git a/.build/import-illustrations.js b/.build/import-illustrations.js
index dd372deaa..625d9686c 100644
--- a/.build/import-illustrations.js
+++ b/.build/import-illustrations.js
@@ -12,7 +12,6 @@ const illustrations = glob
return path.basename(file, '.png')
})
-
fs.writeFileSync(
path.join(__dirname, `../src/pages/_data/illustrations.json`),
JSON.stringify(illustrations)
diff --git a/.changeset/hot-vans-peel.md b/.changeset/hot-vans-peel.md
new file mode 100644
index 000000000..c1e054fbf
--- /dev/null
+++ b/.changeset/hot-vans-peel.md
@@ -0,0 +1,5 @@
+---
+"@tabler/core": patch
+---
+
+Update illustrations and enhance SVG handling in HTML
diff --git a/src/pages/_data/illustrations.json b/src/pages/_data/illustrations.json
index 1f7b2520a..37a6f5a63 100644
--- a/src/pages/_data/illustrations.json
+++ b/src/pages/_data/illustrations.json
@@ -1 +1 @@
-["weightlifting","wait","video","to-do","telescope","snowman","shield","search","project","not-found","neutral-info","music","mobile-computer","message","map-destination","loading","kite","icons","icons-workshop","icons-production","icons-ladder","icons-drawing","icons-drawing-run","ice-skates","guitar","good-news","girl-refresh","girl-phone","gift","folders","flowers","fingerprint","exit","error","email","electric-scooter","dart","dance","conversation","computer-fix","clock-and-cat","chart","chart-circle","calendar","building","boy","boy-with-key","boy-gives-flowers","boy-girl","boy-and-laptop","boy-and-cat","bicycle","bad-news","archive","ai"]
\ No newline at end of file
+["weightlifting","wait","video","to-do","tiredness","telescope","snowman","shield","search","project","printer","not-found","new-year","new-year-2","neutral-info","music","mobile-computer","message","map-destination","loading","kite","icons","icons-workshop","icons-production","icons-ladder","icons-drawing","icons-drawing-run","ice-skates","halloween-pumpkin","guitar","good-news","girl-refresh","girl-phone","gift","ghost","folders","flowers","fingerprint","exit","error","email","electric-scooter","dart","dance","conversation","computer-fix","clock-and-cat","christmas-tree","christmas-gifts","christmas-fireplace","chart","chart-circle","calendar","building","boy","boy-with-key","boy-refresh","boy-gives-flowers","boy-girl","boy-and-laptop","boy-and-cat","bicycle","bad-news","archive","ai"]
\ No newline at end of file
diff --git a/src/pages/illustrations.html b/src/pages/illustrations.html
index 7936fb5b0..6451080e4 100644
--- a/src/pages/illustrations.html
+++ b/src/pages/illustrations.html
@@ -14,7 +14,7 @@ illustrations = illustrations | push: illustration %} {% endif %} {% endfor %} {
-
{{ first_illustration }}
+
{{ first_illustration | replace: '
@@ -55,7 +55,7 @@ illustrations = illustrations | push: illustration %} {% endif %} {% endfor %} {
@@ -73,7 +73,7 @@ illustrations = illustrations | push: illustration %} {% endif %} {% endfor %} {
- {{ site.illustrations.count | minus: 4 }} more SVG Illustrations
+ {{ site.data.illustrations | size | minus: 4 }} more SVG Illustrations
@@ -129,7 +129,7 @@ illustrations = illustrations | push: illustration %} {% endif %} {% endfor %} {
const illustrations = {
{% for illustration in illustrations %}
"{{ illustration.slug }}": {
- svg: '{{ illustration.content | quote | replace_regex: "\n", "\n" }}',
+ svg: '{{ illustration.content | replace: '