mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-08-18 02:21:51 +08:00
feat(workspace): add debug clear button
This commit is contained in:
@@ -40,3 +40,12 @@ export const exportMarkdown = async ({
|
||||
const htmlContent = await clipboardParse.page2html();
|
||||
fileExporter.exportMarkdown(title, htmlContent);
|
||||
};
|
||||
|
||||
export const clearWorkspace = async ({
|
||||
workspaceId,
|
||||
rootBlockId,
|
||||
title,
|
||||
}: ExportHandlerProps) => {
|
||||
//@ts-ignore
|
||||
client.inspector().clear();
|
||||
};
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
export { duplicatePage } from './duplicate-page';
|
||||
export { exportHtml, exportMarkdown } from './handle-export';
|
||||
export { getPageTitle, usePageLastUpdated } from './get-page-info';
|
||||
export { importWorkspace, exportWorkspace } from './inspector-workspace';
|
||||
export {
|
||||
importWorkspace,
|
||||
exportWorkspace,
|
||||
clearWorkspace,
|
||||
} from './inspector-workspace';
|
||||
export { useWorkspaceAndPageId } from './use-workspace-page';
|
||||
export { useReadingMode } from './use-reading-mode';
|
||||
|
||||
Reference in New Issue
Block a user