diff --git a/README.md b/README.md index e3908f5..51cbbcd 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,15 @@ This repository contains the API server, agent code and a Next.js-based UI. `dashboard/vendor/neurapress`, keeping attribution to [tianyaxiang](https://github.com/tianyaxiang/neurapress). +### NeuraPress integration · 集成说明 + +The `/editor` route ships the original NeuraPress online editing core vendored under +`dashboard/vendor/neurapress`. Routing, authentication, and storage selection are layered on +top inside XControl, while the editing experience stays aligned with the upstream project. + +上游 NeuraPress 由 tianyaxiang 以 MIT 协议发布。本项目在 `dashboard/vendor/neurapress` 中保留 +LICENSE 与 NOTICE 以持续标注版权与来源。 + All UI components provide both Chinese and English interfaces. diff --git a/dashboard/src/dashboard/apps/cms-editor/EditorShell.tsx b/dashboard/src/dashboard/apps/cms-editor/EditorShell.tsx index 17b8169..dce85ce 100644 --- a/dashboard/src/dashboard/apps/cms-editor/EditorShell.tsx +++ b/dashboard/src/dashboard/apps/cms-editor/EditorShell.tsx @@ -149,12 +149,12 @@ export default function EditorShell({ store, fallbackStore, mode }: EditorShellP setContent(defaultContent) } - const headline = isChinese ? '编辑器' : 'Editor' + const headline = isChinese ? '原版编辑器' : 'Original editor core' const subtitle = mode === 'public' ? isChinese - ? '无需登录 · 草稿仅存储在本地,未来支持云端同步' - : 'No sign-in required · Drafts stay in this browser; cloud sync is planned' + ? '沿用 NeuraPress 在线编辑核心 · 无需登录 · 草稿仅存储在本地' + : 'Powered by the vendored NeuraPress core · No sign-in required · Drafts stay local' : isChinese ? '登录后将开放云端保存,当前版本使用本地草稿箱' : 'Cloud save will be enabled for signed-in users; currently using local drafts' @@ -183,11 +183,12 @@ export default function EditorShell({ store, fallbackStore, mode }: EditorShellP

{headline}

-

NeuraPress · {isChinese ? '内容工作台' : 'Content Studio'}

+

NeuraPress · {isChinese ? '在线编辑核心' : 'Online editing core'}

{subtitle}

{status ?? storeNotice ?? (isChinese ? '仅本地保存 · 未来支持云端账号' : 'Local-only save · SaaS sync coming soon')}
+

{isChinese ? '左侧展示的是 vendor/neurapress 的原版在线编辑器内核,保持与上游一致的操作体验。' : 'The left pane runs the upstream NeuraPress online editor core from vendor/neurapress to mirror the original experience.'}

{mode === 'public' ? (isChinese ? '无需登录 · 本地存储' : 'No sign-in required · Local storage only') : isChinese ? '登录后将提供云端草稿' : 'Cloud drafts will be available after sign-in'} @@ -271,29 +272,6 @@ export default function EditorShell({ store, fallbackStore, mode }: EditorShellP
-
-
-

{isChinese ? '集成说明' : 'Integration notes'}

-

- {isChinese - ? 'NeuraPress 作为编辑器内核以 vendor 方式引入,路由、权限与存储策略由本站包装。' - : 'NeuraPress is vendored as the editor core; routing, permissions, and storage strategy are provided by this site.'} -

-

- {isChinese - ? '当前版本仅支持本地草稿。云端草稿与模板管理将于 SaaS 版本开放。' - : 'Local drafts only for now. Cloud drafts and template management will ship with the SaaS tier.'} -

-
-
-

{isChinese ? '版权声明' : 'Credit & license'}

-

- {isChinese - ? '上游 NeuraPress 由 tianyaxiang 基于 MIT 协议发布。本集成保留原作者署名,并在 vendor 目录存放 LICENSE 与 NOTICE。' - : 'Upstream NeuraPress is published by tianyaxiang under MIT. This integration preserves attribution with LICENSE and NOTICE under vendor.'} -

-
-
) }