Extract memind_adm admin server, add local dev tooling, and remove image-generation.
Split platform admin and ops APIs into standalone admin-server.mjs with network guards; simplify billing to RMB token pricing, refactor user auth, and add rsync deploy plus local-test scripts and docs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+1
-6
@@ -10,7 +10,6 @@ import {
|
||||
pageThumbnailKey,
|
||||
writeThumbnail,
|
||||
bufferToImageDataUri,
|
||||
resolveWorkspaceHtmlContentBaseDir,
|
||||
} from './mindspace-thumbnails.mjs';
|
||||
import { resolvePublishDir } from './user-publish.mjs';
|
||||
import { ensureWorkspaceHtmlThumbnail, workspaceThumbnailRelativePath } from './mindspace-workspace-thumbnails.mjs';
|
||||
@@ -441,7 +440,7 @@ export function createPageService(pool, options = {}) {
|
||||
? await resolveWorkspacePublishDir(userId)
|
||||
: null;
|
||||
if (workspacePublishDir && workspaceHtmlRelativePath) {
|
||||
void ensureWorkspaceHtmlThumbnail(
|
||||
await ensureWorkspaceHtmlThumbnail(
|
||||
workspacePublishDir,
|
||||
workspaceHtmlRelativePath,
|
||||
normalized.content,
|
||||
@@ -952,10 +951,6 @@ export function createPageService(pool, options = {}) {
|
||||
title,
|
||||
subtitle: summary || `草稿 v${asNumber(ctx.row.version_no)}`,
|
||||
contentStorageKey: ctx.row.storage_key,
|
||||
contentBaseDir: resolveWorkspaceHtmlContentBaseDir(
|
||||
ctx.workspacePublishDir,
|
||||
ctx.workspaceHtmlRelativePath,
|
||||
),
|
||||
force: true,
|
||||
...metaOverrides,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user