From 3ce182635527d6f8d8c57ec559583e38b46995de Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Fri, 28 Feb 2025 14:43:07 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A(frontend)=20toolbar=20components?= =?UTF-8?q?=20in=20BlockNoteToolBar=20folder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We moved the toolbar components in BlockNoteToolBar folder. --- .../features/docs/doc-editor/components/BlockNoteEditor.tsx | 2 +- .../doc-editor/components/{ => BlockNoteToolBar}/AIButton.tsx | 2 +- .../components/{ => BlockNoteToolBar}/BlockNoteToolbar.tsx | 3 ++- .../components/{ => BlockNoteToolBar}/FileDownloadButton.tsx | 0 .../components/{ => BlockNoteToolBar}/MarkdownButton.tsx | 0 .../{ => BlockNoteToolBar}/ModalConfirmDownloadUnsafe.tsx | 0 6 files changed, 4 insertions(+), 3 deletions(-) rename src/frontend/apps/impress/src/features/docs/doc-editor/components/{ => BlockNoteToolBar}/AIButton.tsx (99%) rename src/frontend/apps/impress/src/features/docs/doc-editor/components/{ => BlockNoteToolBar}/BlockNoteToolbar.tsx (96%) rename src/frontend/apps/impress/src/features/docs/doc-editor/components/{ => BlockNoteToolBar}/FileDownloadButton.tsx (100%) rename src/frontend/apps/impress/src/features/docs/doc-editor/components/{ => BlockNoteToolBar}/MarkdownButton.tsx (100%) rename src/frontend/apps/impress/src/features/docs/doc-editor/components/{ => BlockNoteToolBar}/ModalConfirmDownloadUnsafe.tsx (100%) diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx index 8168b25d..6c346cad 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteEditor.tsx @@ -26,7 +26,7 @@ import { cssEditor } from '../styles'; import { randomColor } from '../utils'; import { BlockNoteSuggestionMenu } from './BlockNoteSuggestionMenu'; -import { BlockNoteToolbar } from './BlockNoteToolbar'; +import { BlockNoteToolbar } from './BlockNoteToolBar/BlockNoteToolbar'; import { QuoteBlock } from './custom-blocks'; export const blockNoteSchema = withPageBreak( diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/AIButton.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/AIButton.tsx similarity index 99% rename from src/frontend/apps/impress/src/features/docs/doc-editor/components/AIButton.tsx rename to src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/AIButton.tsx index f30ccc5b..4758976e 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/AIButton.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/AIButton.tsx @@ -20,7 +20,7 @@ import { AITransformActions, useDocAITransform, useDocAITranslate, -} from '../api/'; +} from '../../api'; type LanguageTranslate = { value: string; diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolbar.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/BlockNoteToolbar.tsx similarity index 96% rename from src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolbar.tsx rename to src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/BlockNoteToolbar.tsx index c1f106d9..08f83bf2 100644 --- a/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolbar.tsx +++ b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/BlockNoteToolbar.tsx @@ -9,11 +9,12 @@ import { import React, { useCallback, useMemo, useState } from 'react'; import { useTranslation } from 'react-i18next'; +import { getQuoteFormattingToolbarItems } from '../custom-blocks'; + import { AIGroupButton } from './AIButton'; import { FileDownloadButton } from './FileDownloadButton'; import { MarkdownButton } from './MarkdownButton'; import { ModalConfirmDownloadUnsafe } from './ModalConfirmDownloadUnsafe'; -import { getQuoteFormattingToolbarItems } from './custom-blocks'; export const BlockNoteToolbar = () => { const dict = useDictionary(); diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/FileDownloadButton.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/FileDownloadButton.tsx similarity index 100% rename from src/frontend/apps/impress/src/features/docs/doc-editor/components/FileDownloadButton.tsx rename to src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/FileDownloadButton.tsx diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/MarkdownButton.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/MarkdownButton.tsx similarity index 100% rename from src/frontend/apps/impress/src/features/docs/doc-editor/components/MarkdownButton.tsx rename to src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/MarkdownButton.tsx diff --git a/src/frontend/apps/impress/src/features/docs/doc-editor/components/ModalConfirmDownloadUnsafe.tsx b/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/ModalConfirmDownloadUnsafe.tsx similarity index 100% rename from src/frontend/apps/impress/src/features/docs/doc-editor/components/ModalConfirmDownloadUnsafe.tsx rename to src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolBar/ModalConfirmDownloadUnsafe.tsx