From 01ddfadea2c3f0f7218248f7abb39e738d109269 Mon Sep 17 00:00:00 2001
From: Xeu
Date: Thu, 11 Jul 2024 18:54:22 +0800
Subject: [PATCH 01/12] fix: feed_card x space for attrs
---
client/src/components/feed_card.tsx | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/client/src/components/feed_card.tsx b/client/src/components/feed_card.tsx
index 5ad8a911..bb3691d4 100644
--- a/client/src/components/feed_card.tsx
+++ b/client/src/components/feed_card.tsx
@@ -22,7 +22,7 @@ export function FeedCard({ id, title, avatar, draft, listed, top, summary, hasht
{createdAt === updatedAt ? timeago(createdAt) : t('feed_card.published$time', { time: timeago(createdAt) })}
@@ -31,14 +31,14 @@ export function FeedCard({ id, title, avatar, draft, listed, top, summary, hasht
{t('feed_card.updated$time', { time: timeago(updatedAt) })}
}
-
- {draft === 1 && 草稿}
- {listed === 0 && 未列出}
- {top === 1 &&
- 置顶
- }
-
{title}
-
+ {draft === 1 && 草稿} + {listed === 0 && 未列出} + {top === 1 && + 置顶 + } +
{summary}
From 14923290d3a783b99d13629b61a8aca30acfb37b Mon Sep 17 00:00:00 2001 From: Xeu Date: Thu, 11 Jul 2024 19:55:03 +0800 Subject: [PATCH 02/12] feat: add deploy error tips --- client/public/locales/en/translation.json | 10 ++++- client/public/locales/ja/translation.json | 12 +++++- client/public/locales/zh/translation.json | 10 ++++- client/src/App.tsx | 27 ++++++++++++ client/src/base.css | 4 +- client/src/components/button.tsx | 4 +- client/src/components/header.tsx | 2 +- client/src/components/tips.tsx | 52 +++++++++++++++++++++++ client/src/page/feed.tsx | 21 +++++---- client/tailwind.config.ts | 2 + 10 files changed, 126 insertions(+), 18 deletions(-) create mode 100644 client/src/components/tips.tsx diff --git a/client/public/locales/en/translation.json b/client/public/locales/en/translation.json index d9dc107a..d28a7ea2 100644 --- a/client/public/locales/en/translation.json +++ b/client/public/locales/en/translation.json @@ -1,5 +1,8 @@ { - "about": "About", + "about": { + "notfound": "Set the article alias to `about` to create an about page", + "title": "About" + }, "alert": "Alert", "alias": "Alias", "article": { @@ -70,6 +73,11 @@ "draft": "Draft", "draft_bin": "Draft Bin", "edit": "Edit", + "error": { + "api_url": "API_URL in Pages environment variables should be the Worker address. Please check if API_URL in Pages environment variables is correct.", + "api_url_slash": "API_URL in Pages environment variables should be the Worker address. Please check if API_URL in Pages environment variables is correct and ensure API_URL does not end with a slash (/).", + "github_callback": "GitHub OAuth callback URL should be `https://