From 975c55feb20b4f4496f1bca82a868d5325689473 Mon Sep 17 00:00:00 2001 From: toom1996 Date: Wed, 19 Aug 2026 20:42:42 +0800 Subject: [PATCH] update --- .workbuddy/memory/2026-08-19.md | 19 + src/components/Breadcrumb.astro | 11 +- src/components/RunwayLooks.astro | 63 +-- src/components/RunwayLooksDetail.astro | 518 +++++++++++++++++++++++++ src/components/pages/article.astro | 2 - src/i18n/dictionary.ts | 2 + src/i18n/utils.ts | 4 +- src/pages/en/runway-looks/[id].astro | 4 +- 8 files changed, 568 insertions(+), 55 deletions(-) create mode 100644 .workbuddy/memory/2026-08-19.md create mode 100644 src/components/RunwayLooksDetail.astro diff --git a/.workbuddy/memory/2026-08-19.md b/.workbuddy/memory/2026-08-19.md new file mode 100644 index 0000000..9dae02a --- /dev/null +++ b/.workbuddy/memory/2026-08-19.md @@ -0,0 +1,19 @@ +# 2026-08-19 + +## 修复 RunwayLooksDetail.astro 的红线(TS 严格模式报错) +- 文件:`src/components/RunwayLooksDetail.astro`(一个 Alpine 灯箱详情组件)。 +- 根因:项目 `tsconfig.json` 继承 `astro/tsconfigs/strict`(含 `noImplicitThis`)。该文件 ` + + \ No newline at end of file diff --git a/src/components/pages/article.astro b/src/components/pages/article.astro index c1c6cb3..86cc7e5 100644 --- a/src/components/pages/article.astro +++ b/src/components/pages/article.astro @@ -52,7 +52,6 @@ const backLabel = lbl.back.replace("← ", "") const homeHref = locale === "cn" ? "/cn" : "/en/" const archiveHref = locale === "cn" ? "/cn/shows" : "/en/shows" const crumbs: { label: string; href: string }[] = [ - { label: "Home", href: homeHref }, { label: "Runway Looks", href: archiveHref }, ] if (article?.brand_id) { @@ -196,7 +195,6 @@ if (article?.brand_id) {