From 352895925954b441f64cd47ba2c835f618f1f5eb Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Sun, 8 Dec 2024 16:34:41 +0800 Subject: [PATCH 1/3] chore: auto import components from the same directory --- .vitepress/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.vitepress/config.ts b/.vitepress/config.ts index c4063b4..0d2297b 100644 --- a/.vitepress/config.ts +++ b/.vitepress/config.ts @@ -14,7 +14,7 @@ export default defineConfig({ plugins: [ Components({ // Auto import components and icons in Vue and Markdown files - dirs: ['../components'], + dirs: ['../components', '.'], include: [/\.vue($|\?)/, /\.md($|\?)/], resolvers: [ IconsResolver({ From 7e6c715281e4fcc67792b1e0a14950d79e580dd1 Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Sun, 8 Dec 2024 16:36:07 +0800 Subject: [PATCH 2/3] refactor: migrate event page to SFC --- content/event.md | 154 --------------------------------------- content/event/index.md | 5 ++ content/event/index.vue | 155 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 160 insertions(+), 154 deletions(-) delete mode 100644 content/event.md create mode 100644 content/event/index.md create mode 100644 content/event/index.vue diff --git a/content/event.md b/content/event.md deleted file mode 100644 index b90663d..0000000 --- a/content/event.md +++ /dev/null @@ -1,154 +0,0 @@ - - -# 活動資訊 - -::: info 日期 - -## {{ start }} – {{ end }} - -
- - Google 日曆 - - - Outlook - - - Yahoo - - - ICS - -
- -::: - -::: info 位置 - -## 國立臺灣科技大學 - -{{ venueAddress }} - - - -
- - 開放街圖 - - - Google 地圖 - - - Apple 地圖 - -
-::: - -## 交通資訊 - - diff --git a/content/event/index.md b/content/event/index.md new file mode 100644 index 0000000..c363c5a --- /dev/null +++ b/content/event/index.md @@ -0,0 +1,5 @@ + + + diff --git a/content/event/index.vue b/content/event/index.vue new file mode 100644 index 0000000..faa2da9 --- /dev/null +++ b/content/event/index.vue @@ -0,0 +1,155 @@ + + + + + From 4af872657088d895304b67aa9ce4cc24adea0e61 Mon Sep 17 00:00:00 2001 From: Riley Ho Date: Sun, 8 Dec 2024 16:36:53 +0800 Subject: [PATCH 3/3] refactor: localize LeafletMap --- {components => content/event}/LeafletMap.vue | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename {components => content/event}/LeafletMap.vue (100%) diff --git a/components/LeafletMap.vue b/content/event/LeafletMap.vue similarity index 100% rename from components/LeafletMap.vue rename to content/event/LeafletMap.vue