refactor(resource): drop aksrt_resource CPT residue, post+meta only

This commit is contained in:
2026-07-13 23:47:04 +08:00
parent 24c135aeec
commit 1af0e9b753
22 changed files with 362 additions and 986 deletions
+6 -6
View File
@@ -110,7 +110,7 @@ export const MODULE_LIBRARY = [
label: '排行榜',
icon: 'trophy',
desc: '按下载量 / 阅读量 / 评论数排序',
defaultConfig: { metric: 'downloads', count: 6, post_type: 'aksrt_resource', title: '' },
defaultConfig: { metric: 'downloads', count: 6, post_type: 'resource', title: '' },
fields: [
{ key: 'title', type: 'text', label: '标题' },
{
@@ -124,7 +124,7 @@ export const MODULE_LIBRARY = [
{
key: 'post_type', type: 'select', label: '内容类型',
options: [
{ label: '资源', value: 'aksrt_resource' },
{ label: '资源', value: 'resource' },
{ label: '文章', value: 'post' },
],
},
@@ -143,7 +143,7 @@ export const MODULE_LIBRARY = [
key: 'post_type', type: 'select', label: '内容类型',
options: [
{ label: '文章', value: 'post' },
{ label: '资源', value: 'aksrt_resource' },
{ label: '资源', value: 'resource' },
],
},
{ key: 'count', type: 'number', label: '数量', min: 1, max: 20 },
@@ -212,7 +212,7 @@ export const MODULE_LIBRARY = [
key: 'post_type', type: 'select', label: '内容类型',
options: [
{ label: '文章', value: 'post' },
{ label: '资源', value: 'aksrt_resource' },
{ label: '资源', value: 'resource' },
],
},
],
@@ -482,8 +482,8 @@ export const PRESET_TEMPLATES = [
modules: [
{ type: 'hero', config: {} },
{ type: 'tabs', config: { count: 8, layout: 'grid-cms' } },
{ type: 'recent', config: { post_type: 'aksrt_resource', count: 8, layout: 'grid-cms' } },
{ type: 'ranking', config: { metric: 'downloads', post_type: 'aksrt_resource', count: 6 } },
{ type: 'recent', config: { post_type: 'resource', count: 8, layout: 'grid-cms' } },
{ type: 'ranking', config: { metric: 'downloads', post_type: 'resource', count: 6 } },
],
},
{