ZH
测试版翻译

@core / kit-cms

1.0.3 ▾
已验证MIT
GitHub

Next.js 自助管理网站套件:在 /admin 编辑区块页面、媒体、菜单、设置、表单和用户

代码39 个文件上下文约 2005 个 token扫描通过

应用 .genpmignore 后将被注入的确切目录树。固定于

src/app/(cms)/_templates/genpm/search.ts只读 · e44820b
// Qué se indexa en la búsqueda del sitio.
import { blocksToText } from '@/lib/blocks';
import { contentSearchSource } from '@/lib/content';
import type { BlockInstance } from '@/lib/blocks';
import { toPlainText } from '@/lib/rich-text';
import { registerSearchSource } from '@/lib/search';
import { blocks } from './blocks';
import { pagePath } from './content';

registerSearchSource(
  contentSearchSource('pages', {
    path: pagePath,
    text: (d) => blocksToText(d.blocks as BlockInstance[], blocks, (doc) => toPlainText(doc as never)),
  }),
);

举报 @core/kit-cms

使用 GitHub 登录后才能举报包。