mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix: remove the feature of exporting pdf/png (#2619)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
@@ -54,12 +54,12 @@
|
||||
"rxjs": "^7.8.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@blocksuite/blocks": "0.0.0-20230531040027-44cd9d8e-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230531040027-44cd9d8e-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230531040027-44cd9d8e-nightly",
|
||||
"@blocksuite/blocks": "0.0.0-20230531074909-e951a818-nightly",
|
||||
"@blocksuite/editor": "0.0.0-20230531074909-e951a818-nightly",
|
||||
"@blocksuite/global": "0.0.0-20230531074909-e951a818-nightly",
|
||||
"@blocksuite/icons": "^2.1.19",
|
||||
"@blocksuite/lit": "0.0.0-20230531040027-44cd9d8e-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230531040027-44cd9d8e-nightly",
|
||||
"@blocksuite/lit": "0.0.0-20230531074909-e951a818-nightly",
|
||||
"@blocksuite/store": "0.0.0-20230531074909-e951a818-nightly",
|
||||
"@storybook/addon-actions": "^7.0.18",
|
||||
"@storybook/addon-coverage": "^0.0.8",
|
||||
"@storybook/addon-essentials": "^7.0.18",
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import { useAFFiNEI18N } from '@affine/i18n/hooks';
|
||||
import type { PageBlockModel } from '@blocksuite/blocks';
|
||||
import { ContentParser } from '@blocksuite/blocks/content-parser';
|
||||
import {
|
||||
ArrowRightSmallIcon,
|
||||
ExportIcon,
|
||||
ExportToHtmlIcon,
|
||||
ExportToMarkdownIcon,
|
||||
ExportToPdfIcon,
|
||||
ExportToPngIcon,
|
||||
} from '@blocksuite/icons';
|
||||
import { useRef } from 'react';
|
||||
|
||||
@@ -27,7 +24,7 @@ export const Export = ({
|
||||
trigger="click"
|
||||
content={
|
||||
<>
|
||||
<MenuItem
|
||||
{/* <MenuItem
|
||||
data-testid="export-to-pdf"
|
||||
onClick={async () => {
|
||||
if (!contentParserRef.current) {
|
||||
@@ -49,7 +46,7 @@ export const Export = ({
|
||||
icon={<ExportToPdfIcon />}
|
||||
>
|
||||
{t['Export to PDF']()}
|
||||
</MenuItem>
|
||||
</MenuItem> */}
|
||||
<MenuItem
|
||||
data-testid="export-to-html"
|
||||
onClick={() => {
|
||||
@@ -65,7 +62,7 @@ export const Export = ({
|
||||
>
|
||||
{t['Export to HTML']()}
|
||||
</MenuItem>
|
||||
<MenuItem
|
||||
{/* <MenuItem
|
||||
data-testid="export-to-png"
|
||||
onClick={() => {
|
||||
if (!contentParserRef.current) {
|
||||
@@ -79,7 +76,7 @@ export const Export = ({
|
||||
icon={<ExportToPngIcon />}
|
||||
>
|
||||
{t['Export to PNG']()}
|
||||
</MenuItem>
|
||||
</MenuItem> */}
|
||||
<MenuItem
|
||||
data-testid="export-to-markdown"
|
||||
onClick={() => {
|
||||
|
||||
Reference in New Issue
Block a user