From 0b433ec96b92fd23ca834ebe9406df816bf398d7 Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Mon, 29 Apr 2024 17:29:04 +0100 Subject: [PATCH 1/3] feat: add zeek easter egg --- components/content/ZeekEasterEgg.vue | 118 +++++++++++++++ public/images/zeek/zeek-astronaut.svg | 173 ++++++++++++++++++++++ public/images/zeek/zeek-banker.svg | 1 + public/images/zeek/zeek-champion.svg | 1 + public/images/zeek/zeek-coffee.svg | 1 + public/images/zeek/zeek-davinci.svg | 1 + public/images/zeek/zeek-dj.svg | 1 + public/images/zeek/zeek-firstmate.svg | 1 + public/images/zeek/zeek-foundry.svg | 1 + public/images/zeek/zeek-ice-cream.svg | 1 + public/images/zeek/zeek-indiana-jones.svg | 1 + public/images/zeek/zeek-matrix.svg | 1 + public/images/zeek/zeek-passport.svg | 1 + public/images/zeek/zeek-pirate.svg | 1 + server/plugins/parse-zk-tags.ts | 3 + 15 files changed, 306 insertions(+) create mode 100644 components/content/ZeekEasterEgg.vue create mode 100644 public/images/zeek/zeek-astronaut.svg create mode 100644 public/images/zeek/zeek-banker.svg create mode 100644 public/images/zeek/zeek-champion.svg create mode 100644 public/images/zeek/zeek-coffee.svg create mode 100644 public/images/zeek/zeek-davinci.svg create mode 100644 public/images/zeek/zeek-dj.svg create mode 100644 public/images/zeek/zeek-firstmate.svg create mode 100644 public/images/zeek/zeek-foundry.svg create mode 100644 public/images/zeek/zeek-ice-cream.svg create mode 100644 public/images/zeek/zeek-indiana-jones.svg create mode 100644 public/images/zeek/zeek-matrix.svg create mode 100644 public/images/zeek/zeek-passport.svg create mode 100644 public/images/zeek/zeek-pirate.svg diff --git a/components/content/ZeekEasterEgg.vue b/components/content/ZeekEasterEgg.vue new file mode 100644 index 00000000..408fb73a --- /dev/null +++ b/components/content/ZeekEasterEgg.vue @@ -0,0 +1,118 @@ + + + \ No newline at end of file diff --git a/public/images/zeek/zeek-astronaut.svg b/public/images/zeek/zeek-astronaut.svg new file mode 100644 index 00000000..a321c2ed --- /dev/null +++ b/public/images/zeek/zeek-astronaut.svg @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/public/images/zeek/zeek-banker.svg b/public/images/zeek/zeek-banker.svg new file mode 100644 index 00000000..9f1ab1a3 --- /dev/null +++ b/public/images/zeek/zeek-banker.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-champion.svg b/public/images/zeek/zeek-champion.svg new file mode 100644 index 00000000..6550bce7 --- /dev/null +++ b/public/images/zeek/zeek-champion.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-coffee.svg b/public/images/zeek/zeek-coffee.svg new file mode 100644 index 00000000..458b32fd --- /dev/null +++ b/public/images/zeek/zeek-coffee.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-davinci.svg b/public/images/zeek/zeek-davinci.svg new file mode 100644 index 00000000..e72738d6 --- /dev/null +++ b/public/images/zeek/zeek-davinci.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-dj.svg b/public/images/zeek/zeek-dj.svg new file mode 100644 index 00000000..b0895a6e --- /dev/null +++ b/public/images/zeek/zeek-dj.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-firstmate.svg b/public/images/zeek/zeek-firstmate.svg new file mode 100644 index 00000000..eeaca928 --- /dev/null +++ b/public/images/zeek/zeek-firstmate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-foundry.svg b/public/images/zeek/zeek-foundry.svg new file mode 100644 index 00000000..131a899b --- /dev/null +++ b/public/images/zeek/zeek-foundry.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-ice-cream.svg b/public/images/zeek/zeek-ice-cream.svg new file mode 100644 index 00000000..dd090536 --- /dev/null +++ b/public/images/zeek/zeek-ice-cream.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-indiana-jones.svg b/public/images/zeek/zeek-indiana-jones.svg new file mode 100644 index 00000000..7ba965c7 --- /dev/null +++ b/public/images/zeek/zeek-indiana-jones.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-matrix.svg b/public/images/zeek/zeek-matrix.svg new file mode 100644 index 00000000..4d10fc8d --- /dev/null +++ b/public/images/zeek/zeek-matrix.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-passport.svg b/public/images/zeek/zeek-passport.svg new file mode 100644 index 00000000..53e3031d --- /dev/null +++ b/public/images/zeek/zeek-passport.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/public/images/zeek/zeek-pirate.svg b/public/images/zeek/zeek-pirate.svg new file mode 100644 index 00000000..7daf485d --- /dev/null +++ b/public/images/zeek/zeek-pirate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/server/plugins/parse-zk-tags.ts b/server/plugins/parse-zk-tags.ts index c5f39638..e8e823ce 100644 --- a/server/plugins/parse-zk-tags.ts +++ b/server/plugins/parse-zk-tags.ts @@ -9,7 +9,10 @@ export default defineNitroPlugin((nitroApp) => { if (file._id.endsWith('.md')) { Object.keys(tags).forEach((key) => { file.body = file.body.replace(new RegExp(`%%${key}%%`, 'g'), tags[key]); + // replace all "zeek" or "Zeek" with "" + // make sure it case-insensitive and actually new word }); + file.body = file.body.replace(/zeek/gi, ''); } }); }); From 363ea8bff54e41059461e46c5a862ff2bbcfb3f1 Mon Sep 17 00:00:00 2001 From: Jack Hamer Date: Mon, 29 Apr 2024 17:31:36 +0100 Subject: [PATCH 2/3] fix: prettier --- components/content/ZeekEasterEgg.vue | 36 +++++++++++++++++++++------- 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/components/content/ZeekEasterEgg.vue b/components/content/ZeekEasterEgg.vue index 408fb73a..5528c24d 100644 --- a/components/content/ZeekEasterEgg.vue +++ b/components/content/ZeekEasterEgg.vue @@ -1,10 +1,16 @@