From 0b075834030f92d0d6b545c0c9cf290ab263c379 Mon Sep 17 00:00:00 2001 From: Younes Barrad Date: Wed, 27 Dec 2023 22:14:04 +0100 Subject: [PATCH 1/5] chore: Create FUNDING.yml --- .github/FUNDING.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..be1ed037 --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +github: vue-email From 8e2b5439cf768bdfd367729132ea91f84c35367e Mon Sep 17 00:00:00 2001 From: Younes Barrad Date: Sun, 21 Jan 2024 12:26:18 +0100 Subject: [PATCH 2/5] feat: code block components --- package.json | 1 + playground/src/App.vue | 13 +++++- playground/src/components/Test.vue | 10 +++- pnpm-lock.yaml | 13 ++++++ src/components/ECodeBlock.ts | 73 ++++++++++++++++++++++++++++++ src/components/ETailwind.ts | 2 +- src/components/index.ts | 1 + src/utils/cleanup.ts | 6 +-- tests/CodeBlock.spec.ts | 25 ++++++++++ 9 files changed, 138 insertions(+), 6 deletions(-) create mode 100644 src/components/ECodeBlock.ts create mode 100644 tests/CodeBlock.spec.ts diff --git a/package.json b/package.json index 602ffa1c..a82ef620 100644 --- a/package.json +++ b/package.json @@ -77,6 +77,7 @@ "@vue-email/cli": "latest", "@vue-email/tailwind": "^0.0.6", "isomorphic-dompurify": "^1.12.0", + "shikiji": "0.10.0-beta.9", "ufo": "^1.3.2", "vue": "^3.3.8", "vue-i18n": "^9.8.0" diff --git a/playground/src/App.vue b/playground/src/App.vue index 8276d217..679e8bbf 100644 --- a/playground/src/App.vue +++ b/playground/src/App.vue @@ -1,6 +1,6 @@