From bd55fc0c451c84412c1600004c3ae9153267d0bb Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Sun, 3 Sep 2023 14:24:29 +0800 Subject: [PATCH] docs: add release note link in homepage --- website/i18n/zh-Hans/code.json | 6 ++++++ .../2022-09-06-v1.0.0.md | 2 +- .../2023-01-07-v1.4.0.md | 2 +- .../2023-03-14-v1.6.7.md | 2 +- .../2023-04-02-v1.6.8.md | 2 +- .../2023-04-24-v1.7.0.md | 2 +- .../2023-05-24-v1.7.4.md | 2 +- .../2023-05-28-v1.7.5.md | 2 +- .../2023-06-07-v1.7.6.md | 2 +- .../2023-06-21-v1.8.0.md | 2 +- .../2023-07-03-v1.8.1.md | 2 +- .../2023-07-05-v1.8.2.md | 2 +- .../2023-07-10-v1.8.3.md | 2 +- .../2023-07-14-v1.8.4.md | 2 +- .../2023-07-19-v1.8.5.md | 2 +- .../2023-07-24-v1.8.6.md | 2 +- .../2023-07-30-v1.8.7.md | 2 +- .../2023-08-06-v1.8.8.md | 2 +- .../2023-08-13-v1.8.9.md | 2 +- .../2023-08-21-v1.8.10.md | 2 +- .../2023-08-28-v1.8.11.md | 2 +- website/src/components/HomepageHeader.less | 5 +++++ website/src/components/HomepageHeader.tsx | 10 +++++++++- website/src/utils/consts.ts | 2 ++ 24 files changed, 42 insertions(+), 21 deletions(-) diff --git a/website/i18n/zh-Hans/code.json b/website/i18n/zh-Hans/code.json index 5d306c4fbb0..950d65addb4 100644 --- a/website/i18n/zh-Hans/code.json +++ b/website/i18n/zh-Hans/code.json @@ -413,5 +413,11 @@ }, "Design with electron": { "message": "使用 electron 技术开发" + }, + "Current version": { + "message": "当前版本" + }, + "release note": { + "message": "版本更新日志" } } diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-09-06-v1.0.0.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-09-06-v1.0.0.md index 1da2411a832..3f8f48b6ee9 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-09-06-v1.0.0.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2022-09-06-v1.0.0.md @@ -8,7 +8,7 @@ keywords: - tailchat - 开源 - 开源聊天工具 -tags: [版本发布] +tags: [Release Note] --- `Tailchat` 是一款开源的,面向私域用户打造的即时通讯应用。在经历超过一年的开发之后,她终于迎来了第一个 `v1.0.0` 版本。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-01-07-v1.4.0.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-01-07-v1.4.0.md index 764b94143b9..d52452b2cae 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-01-07-v1.4.0.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-01-07-v1.4.0.md @@ -8,7 +8,7 @@ keywords: - tailchat - 开源 - 开源聊天工具 -tags: [版本发布] +tags: [Release Note] --- 经过几个月的努力,`Tailchat` 终于迎来了他的 `1.4.0` 版本。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-03-14-v1.6.7.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-03-14-v1.6.7.md index bee58f622af..4db8a017669 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-03-14-v1.6.7.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-03-14-v1.6.7.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.6.7 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增强个人品牌定制,允许自定义服务器登录入口的名称与背景图(图片没有文件上传限制) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-02-v1.6.8.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-02-v1.6.8.md index 41ca48cb023..f9d60f69bed 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-02-v1.6.8.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-02-v1.6.8.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.6.8 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 优化表情面板性能,重构单个表情的渲染方式。 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-24-v1.7.0.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-24-v1.7.0.md index f9087b47772..2f264e19f6c 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-24-v1.7.0.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-04-24-v1.7.0.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.7.0 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增加了wxpusher插件用于消息通知 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-24-v1.7.4.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-24-v1.7.4.md index ee1f30b852d..2b06c828411 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-24-v1.7.4.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-24-v1.7.4.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.7.4 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 新版admin已发布,可以通过[部署文档](/docs/deployment/admin)抢先体验 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-28-v1.7.5.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-28-v1.7.5.md index 85f3ccbde80..0d78ec1497a 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-28-v1.7.5.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-05-28-v1.7.5.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.7.5 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 修复权限逻辑检测,修复身份组设定后权限不生效的bug diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-07-v1.7.6.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-07-v1.7.6.md index d7ee23468ef..8efd71ce6be 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-07-v1.7.6.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-07-v1.7.6.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.7.6 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增加了封禁/解除封禁用户功能 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-21-v1.8.0.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-21-v1.8.0.md index 28267f378b5..b76b0660ee4 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-21-v1.8.0.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-06-21-v1.8.0.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.0 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 新版admin已经正式上线替换旧版admin系统 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-03-v1.8.1.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-03-v1.8.1.md index 930dda141ac..ee609ded963 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-03-v1.8.1.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-03-v1.8.1.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.1 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增加第三方登录插件(com.msgbyte.iam),目前支持`github`登录, 相关部署文档见 [iam - Third party login](https://tailchat.msgbyte.com/docs/advanced-usage/plugins/com.msgbyte.iam) diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-05-v1.8.2.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-05-v1.8.2.md index 680a2f7758b..20c803ffc6d 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-05-v1.8.2.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-05-v1.8.2.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.2 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- :::info diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-10-v1.8.3.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-10-v1.8.3.md index 780c5507861..f64675d8d1a 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-10-v1.8.3.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-10-v1.8.3.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.3 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增加了离线图标插件并作为默认内置插件,现在在全内网环境下也可以正常使用tailchat了 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-14-v1.8.4.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-14-v1.8.4.md index 4954786dcc0..8d432974ccc 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-14-v1.8.4.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-14-v1.8.4.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.4 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-19-v1.8.5.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-19-v1.8.5.md index cedde8311fd..256f0329fcd 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-19-v1.8.5.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-19-v1.8.5.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.5 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-24-v1.8.6.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-24-v1.8.6.md index c47d4ddd163..446b53a1c8d 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-24-v1.8.6.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-24-v1.8.6.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.6 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- - 增加了桌面端接收到消息后会闪烁提示 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-30-v1.8.7.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-30-v1.8.7.md index 2eb78ed1d68..293a8071039 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-30-v1.8.7.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-07-30-v1.8.7.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.7 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-06-v1.8.8.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-06-v1.8.8.md index a6200f24f61..2910a9de635 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-06-v1.8.8.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-06-v1.8.8.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.8 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-13-v1.8.9.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-13-v1.8.9.md index 9b24ece65ed..4d39a9efa91 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-13-v1.8.9.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-13-v1.8.9.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.9 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-21-v1.8.10.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-21-v1.8.10.md index 2d33795f22a..b48b1d94811 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-21-v1.8.10.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-21-v1.8.10.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.10 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-28-v1.8.11.md b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-28-v1.8.11.md index 2eb9467bb48..126629ec27e 100644 --- a/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-28-v1.8.11.md +++ b/website/i18n/zh-Hans/docusaurus-plugin-content-blog/2023-08-28-v1.8.11.md @@ -5,7 +5,7 @@ image: /img/logo.svg slug: release-1.8.11 keywords: - tailchat -tags: [版本发布] +tags: [Release Note] --- ### 特性更新 diff --git a/website/src/components/HomepageHeader.less b/website/src/components/HomepageHeader.less index 3787385a84b..818e1aca263 100644 --- a/website/src/components/HomepageHeader.less +++ b/website/src/components/HomepageHeader.less @@ -93,6 +93,11 @@ .link { font-size: 1rem; + margin-bottom: 0.75rem;; + } + + .version { + font-size: 0.8rem; } } diff --git a/website/src/components/HomepageHeader.tsx b/website/src/components/HomepageHeader.tsx index cec2e6cef9a..592760faa8c 100644 --- a/website/src/components/HomepageHeader.tsx +++ b/website/src/components/HomepageHeader.tsx @@ -4,7 +4,8 @@ import Head from '@docusaurus/Head'; import useDocusaurusContext from '@docusaurus/useDocusaurusContext'; import Translate from '@docusaurus/Translate'; import { useColorMode } from '@docusaurus/theme-common'; -import { inviteLink, nightlyUrl } from '../utils/consts'; +import { inviteLink, nightlyUrl, releaseNoteUrl } from '../utils/consts'; +import packageJson from '../../../package.json'; import './HomepageHeader.less'; const alternative = [ @@ -82,6 +83,13 @@ export const HomepageHeader: React.FC = React.memo(() => { Or direct visit Tailchat nightly version + +
+ Current version: v{packageJson.version},{' '} + + release note + +
); diff --git a/website/src/utils/consts.ts b/website/src/utils/consts.ts index cfe3f4c47ca..f5f914eda3f 100644 --- a/website/src/utils/consts.ts +++ b/website/src/utils/consts.ts @@ -1,3 +1,5 @@ export const nightlyUrl = 'https://nightly.paw.msgbyte.com/'; export const inviteLink = 'https://nightly.paw.msgbyte.com/invite/8Jfm1dWb'; + +export const releaseNoteUrl = '/blog/tags/release-note';