mirror of
https://github.com/lingke-net/koring-space.git
synced 2026-09-12 05:45:17 +08:00
feat(发布说明): 新增结构化发布说明组件并更新相关页面
新建 `ReleaseNotes` 结构化发布说明组件,支持按提交类型分组展示并添加对应图标,同时兼容普通Markdown渲染 替换原有 `MarkdownLite` 组件至 `app/launcher/join-beta/page.tsx` 和 `app/download/page.tsx` 更新下载页面的发布说明标题为「此版本的变更」
This commit is contained in:
@@ -19,7 +19,7 @@ import {
|
||||
Inbox,
|
||||
} from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { MarkdownLite } from "@/components/markdown-lite";
|
||||
import { ReleaseNotes } from "@/components/release-notes";
|
||||
import {
|
||||
DOWNLOAD_SOURCES,
|
||||
resolveDownloadUrl,
|
||||
@@ -319,9 +319,9 @@ export default function DownloadPage() {
|
||||
<div className="border-t border-border/50 p-6 md:p-8">
|
||||
<div className="flex items-center gap-2 mb-3">
|
||||
<FileText className="size-5 text-primary" />
|
||||
<h3 className="text-lg font-semibold">版本更新内容</h3>
|
||||
<h3 className="text-lg font-semibold">此版本的变更</h3>
|
||||
</div>
|
||||
<MarkdownLite text={active.releaseNotes} />
|
||||
<ReleaseNotes text={active.releaseNotes} />
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
@@ -27,7 +27,7 @@ import {
|
||||
Download,
|
||||
} from "lucide-react";
|
||||
import { cn } from "@/lib/utils";
|
||||
import { MarkdownLite } from "@/components/markdown-lite";
|
||||
import { ReleaseNotes } from "@/components/release-notes";
|
||||
import {
|
||||
DOWNLOAD_SOURCES,
|
||||
resolveDownloadUrl,
|
||||
@@ -328,7 +328,7 @@ export default function JoinBetaPage() {
|
||||
</h2>
|
||||
</div>
|
||||
{data.releaseNotes ? (
|
||||
<MarkdownLite text={data.releaseNotes} />
|
||||
<ReleaseNotes text={data.releaseNotes} />
|
||||
) : data.aboutversion ? (
|
||||
<>
|
||||
<p className="text-muted-foreground leading-relaxed mb-4">
|
||||
|
||||
Reference in New Issue
Block a user