From 740d47bbf63798454541bea6712e82ac980547c1 Mon Sep 17 00:00:00 2001 From: Sakurasan <26715255+Sakurasan@users.noreply.github.com> Date: Sun, 27 Sep 2026 23:41:34 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=AD=E6=96=87=E9=85=8D=E5=9B=BE=EF=BC=9A?= =?UTF-8?q?=E5=BF=AB=E5=8F=91=E7=9B=92=E4=B8=8A=E4=BC=A0=20+=20Twitter=20?= =?UTF-8?q?=E5=BC=8F=E7=BD=91=E6=A0=BC=20+=20=E5=85=A8=E7=AB=99=20lightbox?= =?UTF-8?q?=20=E9=A2=84=E8=A7=88=EF=BC=9B=E6=95=B4=E5=8D=A1=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E8=BF=9B=E8=AF=A6=E6=83=85=E3=80=81=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E7=BA=BF=E7=9F=AD=E6=96=87=E8=B1=81=E5=85=8D=E9=A6=96=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/App.vue | 3 + frontend/src/components/ImgLightbox.vue | 164 +++++++++++++++++++++++ frontend/src/components/PostCard.vue | 87 +++++++++++- frontend/src/components/QuickShort.vue | 142 +++++++++++++++++++- frontend/src/lightbox.js | 31 +++++ frontend/src/styles.css | 26 ++++ frontend/src/ui/yohaku/YohakuArticle.vue | 18 +++ frontend/src/ui/yohaku/YohakuFeed.vue | 17 +++ frontend/src/ui/yohaku/article.css | 5 + frontend/src/ui/yohaku/home.css | 13 ++ frontend/src/views/PostView.vue | 18 +++ 11 files changed, 519 insertions(+), 5 deletions(-) create mode 100644 frontend/src/components/ImgLightbox.vue create mode 100644 frontend/src/lightbox.js diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 234bb17..d47cf9f 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -3,6 +3,7 @@ import { computed, watch } from 'vue' import { useRoute } from 'vue-router' import TopBar from './components/TopBar.vue' import ThemeSwitcher from './components/ThemeSwitcher.vue' +import ImgLightbox from './components/ImgLightbox.vue' import YohakuTop from './ui/yohaku/YohakuTop.vue' import YohakuFoot from './ui/yohaku/YohakuFoot.vue' import { site, setAdminScope } from './site' @@ -36,6 +37,8 @@ watch( + + diff --git a/frontend/src/components/ImgLightbox.vue b/frontend/src/components/ImgLightbox.vue new file mode 100644 index 0000000..60b70ef --- /dev/null +++ b/frontend/src/components/ImgLightbox.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/frontend/src/components/PostCard.vue b/frontend/src/components/PostCard.vue index 82d7111..fa4e12b 100644 --- a/frontend/src/components/PostCard.vue +++ b/frontend/src/components/PostCard.vue @@ -1,14 +1,25 @@