feat: refresh content workflow and verification settings
All checks were successful
docker-images / build-and-push (admin, admin, termi-astro-admin, admin/Dockerfile) (push) Successful in 43s
docker-images / build-and-push (backend, backend, termi-astro-backend, backend/Dockerfile) (push) Successful in 25m9s
docker-images / build-and-push (frontend, frontend, termi-astro-frontend, frontend/Dockerfile) (push) Successful in 51s
All checks were successful
docker-images / build-and-push (admin, admin, termi-astro-admin, admin/Dockerfile) (push) Successful in 43s
docker-images / build-and-push (backend, backend, termi-astro-backend, backend/Dockerfile) (push) Successful in 25m9s
docker-images / build-and-push (frontend, frontend, termi-astro-frontend, frontend/Dockerfile) (push) Successful in 51s
This commit is contained in:
@@ -237,6 +237,11 @@ function formatWorkbenchStateLabel(
|
||||
.join(' / ')}`
|
||||
}
|
||||
|
||||
function buildVirtualPostPath(slug: string) {
|
||||
const normalizedSlug = slug.trim() || 'new-post'
|
||||
return `article://posts/${normalizedSlug}`
|
||||
}
|
||||
|
||||
function parseImageList(value: string) {
|
||||
return value
|
||||
.split('\n')
|
||||
@@ -1145,9 +1150,7 @@ export function PostsPage() {
|
||||
setMetadataDialog({
|
||||
target: 'create',
|
||||
title: createForm.title.trim() || createForm.slug.trim() || '新建草稿',
|
||||
path: createForm.slug.trim()
|
||||
? `backend/content/posts/${createForm.slug.trim()}.md`
|
||||
: 'backend/content/posts/new-post.md',
|
||||
path: buildVirtualPostPath(createForm.slug),
|
||||
proposal: nextProposal,
|
||||
})
|
||||
})
|
||||
@@ -2130,8 +2133,7 @@ export function PostsPage() {
|
||||
<Badge variant="outline">{editor.markdown.split(/\r?\n/).length} 行</Badge>
|
||||
</div>
|
||||
<div className="rounded-2xl border border-border/70 bg-background/70 p-4">
|
||||
<p className="break-all font-mono text-xs text-muted-foreground">{editor.path}</p>
|
||||
<p className="mt-2 text-sm text-muted-foreground">
|
||||
<p className="text-sm text-muted-foreground">
|
||||
创建于 {formatDateTime(editor.createdAt)} · 更新于 {formatDateTime(editor.updatedAt)}
|
||||
</p>
|
||||
</div>
|
||||
@@ -2945,11 +2947,7 @@ export function PostsPage() {
|
||||
value={createForm.markdown}
|
||||
originalValue={buildCreateMarkdownForWindow(defaultCreateForm)}
|
||||
diffValue={buildCreateMarkdownForWindow(createForm)}
|
||||
path={
|
||||
createForm.slug.trim()
|
||||
? `backend/content/posts/${createForm.slug.trim()}.md`
|
||||
: 'backend/content/posts/new-post.md'
|
||||
}
|
||||
path={buildVirtualPostPath(createForm.slug)}
|
||||
workspaceHeightClassName="h-[clamp(620px,74dvh,920px)]"
|
||||
mode={createMode}
|
||||
visiblePanels={createPanels}
|
||||
@@ -3047,9 +3045,6 @@ export function PostsPage() {
|
||||
<p className="mt-3 text-base font-semibold">
|
||||
{metadataDialog.title}
|
||||
</p>
|
||||
<p className="mt-2 break-all font-mono text-xs text-muted-foreground">
|
||||
{metadataDialog.path}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div className="grid gap-3 sm:grid-cols-3 xl:grid-cols-1">
|
||||
|
||||
Reference in New Issue
Block a user