feat(M2): FR-E6 链接气泡+图片入库——LinkBubbleMenu(编辑/移除href);ImageView 节点视图(相对路径转 vaultasset:// 协议展示);assetPickImage/assetWrite IPC + .attachments 入库;剪贴板粘贴图片入库;工具栏 链接/图片/网图 按钮;CSP 放行 vaultasset:;editor-link-image E2E 3 项
This commit is contained in:
@@ -17,6 +17,8 @@ export const IPC = {
|
||||
fileMove: 'file:move',
|
||||
fileDelete: 'file:delete',
|
||||
fileImport: 'file:import',
|
||||
assetPickImage: 'asset:pick-image',
|
||||
assetWrite: 'asset:write',
|
||||
docRead: 'doc:read',
|
||||
docWrite: 'doc:write',
|
||||
docReveal: 'doc:reveal',
|
||||
@@ -49,6 +51,8 @@ export interface IpcMap {
|
||||
[IPC.fileMove]: { args: { src: string; destDir: string }; result: { path: string } };
|
||||
[IPC.fileDelete]: { args: { path: string; recursive: boolean }; result: void };
|
||||
[IPC.fileImport]: { args: { sources: string[]; destDir: string }; result: { ok: string[]; failed: { path: string; reason: string }[] } };
|
||||
[IPC.assetPickImage]: { args: void; result: string | null };
|
||||
[IPC.assetWrite]: { args: { name: string; dataBase64: string }; result: string };
|
||||
[IPC.docRead]: { args: { path: string }; result: ReadDocResult };
|
||||
[IPC.docWrite]: { args: WriteDocPayload; result: void };
|
||||
[IPC.docReveal]: { args: { path: string }; result: void };
|
||||
|
||||
Reference in New Issue
Block a user