Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: support import notion (#6549)

Kilu.He073e8b897b44
diff --git a/frontend/appflowy_web_app/deploy/server.ts b/frontend/appflowy_web_app/deploy/server.ts
index 8f41fc6f2d..46d81102ba 100644
--- a/frontend/appflowy_web_app/deploy/server.ts
+++ b/frontend/appflowy_web_app/deploy/server.ts
@@ -78,7 +78,7 @@ const createServer = async (req: Request) => {
});
}
- if (['/after-payment', '/login', '/as-template', '/app', '/accept-invitation'].some(item => reqUrl.pathname.startsWith(item))) {
+ if (['/after-payment', '/login', '/as-template', '/app', '/accept-invitation', '/import'].some(item => reqUrl.pathname.startsWith(item))) {
timer();
const htmlData = fs.readFileSync(indexPath, 'utf8');
const $ = load(htmlData);
diff --git a/frontend/appflowy_web_app/src/application/services/js-services/http/http_api.ts b/frontend/appflowy_web_app/src/application/services/js-services/http/http_api.ts
index b2f358365f..2d3ee687d9 100644
--- a/frontend/appflowy_web_app/src/application/services/js-services/http/http_api.ts
+++ b/frontend/appflowy_web_app/src/application/services/js-services/http/http_api.ts
@@ -1198,24 +1198,22 @@ export async function importFile (file: File, onProgress: (progress: number) =>
formData.append(fileName, file, file.name);
- try {
- const response = await axios.post(url, formData, {
- headers: {
- 'Content-Type': 'multipart/form-data',
- 'X-Content-Length': fileSize.toString(),
- },
- onUploadProgress: (progressEvent) => {
- const { progress = 0 } = progressEvent;
+ const response = await axiosInstance?.post(url, formData, {
+ headers: {
+ 'Content-Type': 'multipart/form-data',
+ 'X-Content-Length': fileSize.toString(),
+ },
+ onUploadProgress: (progressEvent) => {
+ const { progress = 0 } = progressEvent;
- console.log(`Upload progress: ${progress * 100}%`);
- onProgress(progress);
- },
- });
+ console.log(`Upload progress: ${progress * 100}%`);
+ onProgress(progress);
+ },
+ });
- console.log('Import successful:', response.data);
- return response.data;
- } catch (error) {
- console.error('Error importing file:', error);
- throw error;
+ if (response?.data.code === 0) {
+ return;
}
+
+ return Promise.reject(response?.data);
}
\ No newline at end of file
diff --git a/frontend/appflowy_web_app/src/components/_shared/file-dropzone/FileDropzone.tsx b/frontend/appflowy_web_app/src/components/_shared/file-dropzone/FileDropzone.tsx
index 8bbf938a2b..5775fcd119 100644
--- a/frontend/appflowy_web_app/src/components/_shared/file-dropzone/FileDropzone.tsx
+++ b/frontend/appflowy_web_app/src/components/_shared/file-dropzone/FileDropzone.tsx
@@ -9,6 +9,7 @@ interface FileDropzoneProps {
accept?: string;
multiple?: boolean;
disabled?: boolean;
+ placeholder?: string;
}
function FileDropzone ({
@@ -16,6 +17,7 @@ function FileDropzone ({
accept,
multiple,
disabled,
+ placeholder,
}: FileDropzoneProps) {
const { t } = useTranslation();
const [dragging, setDragging] = useState(false);
@@ -70,7 +72,7 @@ function FileDropzone ({
return (
<div
- className={'w-full cursor-pointer hover:border-fill-active hover:border-2 hover:bg-bg-body h-[160px] rounded-xl border border-dashed border-line-border flex flex-col bg-bg-base'}
+ className={'w-full cursor-pointer hover:border-fill-active px-4 hover:bg-bg-body h-[160px] rounded-xl border border-dashed border-line-border flex flex-col bg-bg-base'}
onDrop={handleDrop}
onDragOver={handleDragOver}
onDragLeave={handleDragLeave}
@@ -82,10 +84,10 @@ function FileDropzone ({
cursor: disabled ? 'not-allowed' : undefined,
}}
>
- <div className={'flex flex-col items-center justify-center gap-4 h-full'}>
+ <div className={'flex flex-col items-center w-full overflow-hidden justify-center gap-4 h-full'}>
<Inbox className={'w-12 h-12 text-fill-default'} />
- <div className={'text-base text-text-title'}>
- {t('fileDropzone.dropFile')}
+ <div className={'text-base text-center text-text-title break-words whitespace-pre-wrap'}>
+ {placeholder || t('fileDropzone.dropFile')}
</div>
</div>
<input
diff --git a/frontend/appflowy_web_app/src/components/_shared/more-actions/MoreActions.tsx b/frontend/appflowy_web_app/src/components/_shared/more-actions/MoreActions.tsx
index 8e504e9981..39f6d8de65 100644
--- a/frontend/appflowy_web_app/src/components/_shared/more-actions/MoreActions.tsx
+++ b/frontend/appflowy_web_app/src/components/_shared/more-actions/MoreActions.tsx
@@ -1,6 +1,5 @@
import { invalidToken } from '@/application/session/token';
import CacheClearingDialog from '@/components/_shared/modal/CacheClearingDialog';
-import Import from '@/components/_shared/more-actions/importer/Import';
import { Popover } from '@/components/_shared/popover';
import { AFConfigContext } from '@/components/main/app.hooks';
import { ThemeModeContext } from '@/components/main/useAppThemeMode';
@@ -13,9 +12,8 @@ import { ReactComponent as SunIcon } from '@/assets/sun.svg';
import { ReactComponent as LoginIcon } from '@/assets/login.svg';
import { ReactComponent as ReportIcon } from '@/assets/report.svg';
import { ReactComponent as TrashIcon } from '@/assets/trash.svg';
-import { ReactComponent as ImportIcon } from '@/assets/import.svg';
import { useTranslation } from 'react-i18next';
-import { useNavigate, useSearchParams } from 'react-router-dom';
+import { useNavigate } from 'react-router-dom';
function MoreActions () {
const { isDark, setDark } = useContext(ThemeModeContext) || {};
@@ -37,7 +35,6 @@ function MoreActions () {
const navigate = useNavigate();
const isAuthenticated = useContext(AFConfigContext)?.isAuthenticated || false;
- const [, setSearch] = useSearchParams();
const handleLogin = useCallback(() => {
invalidToken();
@@ -83,24 +80,8 @@ function MoreActions () {
},
];
- const importShow = false;
-
- if (importShow) {
- items.unshift({
- Icon: ImportIcon,
- label: t('web.import'),
- onClick: () => {
- setSearch(prev => {
- prev.set('action', 'import');
- prev.set('source', 'notion');
- return prev;
- });
- },
- });
- }
-
return items;
- }, [t, isAuthenticated, handleLogin, isDark, setSearch, setDark]);
+ }, [t, isAuthenticated, handleLogin, isDark, setDark]);
return (
<>
@@ -146,7 +127,6 @@ function MoreActions () {
open={openConfirm}
onClose={() => setOpenConfirm(false)}
/>
- <Import />
</>
);
}
diff --git a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/Import.tsx b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/Import.tsx
index 7f7d4f6747..6fc667ee9d 100644
--- a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/Import.tsx
+++ b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/Import.tsx
@@ -2,12 +2,17 @@ import { NormalModal } from '@/components/_shared/modal';
import ImporterModal from '@/components/_shared/more-actions/importer/ImporterModal';
import { useImport } from '@/components/_shared/more-actions/importer/useImport.hook';
import { LoginModal } from '@/components/login';
-import { getPlatform } from '@/utils/platform';
-import React, { useMemo } from 'react';
+import React from 'react';
import { useTranslation } from 'react-i18next';
import { ReactComponent as CheckedIcon } from '@/assets/check_circle.svg';
-function Import () {
+function Import ({
+ disableClose,
+ onSuccessfulImport,
+}: {
+ disableClose: boolean;
+ onSuccessfulImport?: () => void;
+}) {
const {
open,
handleImportClose,
@@ -18,15 +23,11 @@ function Import () {
} = useImport();
const [openSuccess, setOpenSuccess] = React.useState(false);
const { t } = useTranslation();
- const isMobile = useMemo(() => {
- return getPlatform().isMobile;
- }, []);
const handleSuccess = React.useCallback(() => {
setOpenSuccess(true);
}, []);
- if (isMobile) return null;
return (
<>
<LoginModal
@@ -36,9 +37,10 @@ function Import () {
/>
{open && <ImporterModal
open={open}
+ disableClose={disableClose}
source={source || undefined}
onClose={handleImportClose}
- onSuccess={handleSuccess}
+ onSuccess={onSuccessfulImport || handleSuccess}
/>}
{openSuccess && (<NormalModal
classes={{ container: 'items-start max-md:mt-auto max-md:items-center mt-[20%] ' }}
@@ -51,10 +53,14 @@ function Import () {
</div>
}
open={openSuccess}
- onOk={() => setOpenSuccess(false)}
+ onOk={() => {
+ setOpenSuccess(false);
+ handleImportClose();
+ }}
cancelButtonProps={{
className: 'hidden',
}}
+ closable={false}
onClose={() => setOpenSuccess(false)}
>
<div className="text-text-caption">{t('web.importSuccessMessage')}</div>
diff --git a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterDialogContent.tsx b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterDialogContent.tsx
new file mode 100644
index 0000000000..7ace275f77
--- /dev/null
+++ b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterDialogContent.tsx
@@ -0,0 +1,76 @@
+import FileDropzone from '@/components/_shared/file-dropzone/FileDropzone';
+import { notify } from '@/components/_shared/notify';
+import { TabPanel, ViewTab, ViewTabs } from '@/components/_shared/tabs/ViewTabs';
+import { AFConfigContext } from '@/components/main/app.hooks';
+import LinearProgress from '@mui/material/LinearProgress';
+import React, { useCallback, useContext } from 'react';
+import { useTranslation } from 'react-i18next';
+import { ReactComponent as NotionIcon } from '@/assets/notion.svg';
+
+function ImporterDialogContent ({
+ source,
+ onSuccess,
+}: {
+ source?: string,
+ onSuccess: () => void,
+}) {
+ const { t } = useTranslation();
+ const service = useContext(AFConfigContext)?.service;
+ const [value, setValue] = React.useState<string>(source || 'notion');
+ const [progress, setProgress] = React.useState<number>(0);
+ const [isError, setIsError] = React.useState<boolean>(false);
+
+ const handleUpload = useCallback(async (file: File) => {
+ setIsError(false);
+ try {
+ await service?.importFile(file, setProgress);
+ onSuccess();
+ } catch (e) {
+ notify.error(t('web.importFailed'));
+ setIsError(true);
+ }
+ }, [onSuccess, service, t]);
+
+ return (
+ <div className={'flex flex-col gap-8'}>
+ <ViewTabs
+ className={'border-b border-line-divider'}
+ onChange={(_e, newValue) => setValue(newValue)}
+ value={value}
+ >
+ <ViewTab
+ className={'flex items-center flex-row justify-center gap-1.5'}
+ value={'notion'}
+ label={t('web.importNotion')}
+ icon={<NotionIcon className={'w-4 h-4 mb-0'} />}
+ />
+
+ </ViewTabs>
+ <div className={'p-2 pb-0'}>
+ <TabPanel
+ className={'min-w-[480px] max-w-full overflow-hidden max-sm:w-full flex flex-col gap-2 max-sm:min-w-[80vw]'}
+ index={'notion'}
+ value={value}
+ >
+ <FileDropzone
+ accept={'.zip,application/zip,application/x-zip,application/x-zip-compressed'}
+ multiple={false}
+ onChange={files => {
+ if (!files.length) return;
+ void handleUpload(files[0]);
+ }}
+ disabled={!isError && progress < 1 && progress > 0}
+ placeholder={t('web.dropNotionFile')}
+ />
+ {progress > 0 && <LinearProgress
+ variant="determinate"
+ color={isError ? 'error' : progress === 1 ? 'success' : 'primary'}
+ value={progress * 100}
+ />}
+ </TabPanel>
+ </div>
+ </div>
+ );
+}
+
+export default ImporterDialogContent;
\ No newline at end of file
diff --git a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterModal.tsx b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterModal.tsx
index eeb3688ea8..90a7f1544c 100644
--- a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterModal.tsx
+++ b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/ImporterModal.tsx
@@ -1,11 +1,7 @@
-import FileDropzone from '@/components/_shared/file-dropzone/FileDropzone';
-import { notify } from '@/components/_shared/notify';
-import { ViewTab, ViewTabs, TabPanel } from '@/components/_shared/tabs/ViewTabs';
-import { AFConfigContext } from '@/components/main/app.hooks';
-import LinearProgress from '@mui/material/LinearProgress';
-import React, { useCallback, useContext } from 'react';
+import ImporterDialogContent from '@/components/_shared/more-actions/importer/ImporterDialogContent';
+
+import React from 'react';
import { useTranslation } from 'react-i18next';
-import { ReactComponent as NotionIcon } from '@/assets/notion.svg';
import { NormalModal } from '@/components/_shared/modal';
import { ReactComponent as ImportIcon } from '@/assets/import.svg';
@@ -14,28 +10,15 @@ export function ImporterModal ({
onClose,
source,
onSuccess,
+ disableClose,
}: {
open: boolean,
onClose: () => void,
source?: string,
onSuccess: () => void,
+ disableClose: boolean
}) {
const { t } = useTranslation();
- const service = useContext(AFConfigContext)?.service;
- const [value, setValue] = React.useState<string>(source || 'notion');
- const [progress, setProgress] = React.useState<number>(0);
- const [isError, setIsError] = React.useState<boolean>(false);
-
- const handleUpload = useCallback(async (file: File) => {
- setIsError(false);
- try {
- await service?.importFile(file, setProgress);
- onSuccess();
- } catch (e) {
- notify.error(t('web.importFailed'));
- setIsError(true);
- }
- }, [onSuccess, service, t]);
return (
<NormalModal
@@ -55,42 +38,12 @@ export function ImporterModal ({
cancelButtonProps={{
className: 'hidden',
}}
+ closable={!disableClose}
>
- <ViewTabs
- className={'border-b border-line-divider'}
- onChange={(_e, newValue) => setValue(newValue)}
- value={value}
- >
- <ViewTab
- className={'flex items-center flex-row justify-center gap-1.5'}
- value={'notion'}
- label={t('web.importNotion')}
- icon={<NotionIcon className={'w-4 h-4 mb-0'} />}
- />
-
- </ViewTabs>
- <div className={'p-2 pt-8 pb-0'}>
- <TabPanel
- className={'min-w-[480px] flex flex-col gap-2 max-sm:min-w-[80vw]'}
- index={'notion'}
- value={value}
- >
- <FileDropzone
- accept={'.zip,application/zip,application/x-zip,application/x-zip-compressed'}
- multiple={false}
- onChange={files => {
- if (!files.length) return;
- void handleUpload(files[0]);
- }}
- disabled={!isError && progress < 1 && progress > 0}
- />
- {progress > 0 && <LinearProgress
- variant="determinate"
- color={isError ? 'error' : progress === 1 ? 'success' : 'primary'}
- value={progress * 100}
- />}
- </TabPanel>
- </div>
+ <ImporterDialogContent
+ onSuccess={onSuccess}
+ source={source}
+ />
</NormalModal>
);
}
diff --git a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/useImport.hook.ts b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/useImport.hook.ts
index f01b5d9d45..6889675c8f 100644
--- a/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/useImport.hook.ts
+++ b/frontend/appflowy_web_app/src/components/_shared/more-actions/importer/useImport.hook.ts
@@ -2,7 +2,7 @@ import { AFConfigContext } from '@/components/main/app.hooks';
import React, { useCallback, useContext, useEffect } from 'react';
import { useSearchParams } from 'react-router-dom';
-export function useImport () {
+export function useImport (force?: boolean) {
const isAuthenticated = useContext(AFConfigContext)?.isAuthenticated || false;
const [search, setSearch] = useSearchParams();
const [loginOpen, setLoginOpen] = React.useState(false);
@@ -14,10 +14,9 @@ export function useImport () {
const isImport = search.get('action') === 'import';
if (!isImport) return;
-
setLoginOpen(!isAuthenticated);
setOpen(isAuthenticated);
- }, [isAuthenticated, search, setSearch]);
+ }, [force, isAuthenticated, search, setSearch]);
const handleLoginClose = useCallback(() => {
setLoginOpen(false);
diff --git a/frontend/appflowy_web_app/src/components/app/app.hooks.tsx b/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
index 36d1c0976f..0de618f491 100644
--- a/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
+++ b/frontend/appflowy_web_app/src/components/app/app.hooks.tsx
@@ -80,7 +80,7 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
}, []);
const logout = useCallback(() => {
invalidToken();
- navigate(`/login?redirectTo=${encodeURIComponent(window.location.pathname)}`);
+ navigate(`/login?redirectTo=${encodeURIComponent(window.location.href)}`);
}, [navigate]);
// If the user is not authenticated, log out the user
@@ -263,11 +263,19 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
}
setOutline(res);
+
+ const firstView = findViewByLayout(res, [ViewLayout.Document, ViewLayout.Board, ViewLayout.Grid, ViewLayout.Calendar]);
+
+ if (!firstView) {
+ setRendered(true);
+ }
+
try {
await service.openWorkspace(workspaceId);
const wId = window.location.pathname.split('/')[2];
const pageId = window.location.pathname.split('/')[3];
+ const search = window.location.search;
// skip /app/trash and /app/*other-pages
if (wId && !uuidValidate(wId)) {
@@ -282,14 +290,10 @@ export const AppProvider = ({ children }: { children: React.ReactNode }) => {
const lastViewId = localStorage.getItem('last_view_id');
if (lastViewId && findView(res, lastViewId)) {
- navigate(`/app/${workspaceId}/${lastViewId}`);
-
- } else {
- const firstView = findViewByLayout(res, [ViewLayout.Document, ViewLayout.Board, ViewLayout.Grid, ViewLayout.Calendar]);
+ navigate(`/app/${workspaceId}/${lastViewId}${search}`);
- if (firstView) {
- navigate(`/app/${workspaceId}/${firstView.view_id}`);
- }
+ } else if (firstView) {
+ navigate(`/app/${workspaceId}/${firstView.view_id}${search}`);
}
} catch (e) {
diff --git a/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/carousel.scss b/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/carousel.scss
index fd71ed0d94..53f8697f56 100644
--- a/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/carousel.scss
+++ b/frontend/appflowy_web_app/src/components/editor/components/blocks/gallery/carousel.scss
@@ -16,12 +16,9 @@
background: var(--bg-body);
}
- .lg-outer .lg-thumb-outer {
- max-height: 100px;
- }
.lg-outer.lg-animate-thumb .lg-thumb {
- @apply max-sm:top-[-46px] top-[-50px];
+ @apply max-sm:top-0 top-0;
}
.lg-outer .lg-thumb-item {
diff --git a/frontend/appflowy_web_app/src/components/main/App.tsx b/frontend/appflowy_web_app/src/components/main/App.tsx
index b5654e66ec..ed97d085f5 100644
--- a/frontend/appflowy_web_app/src/components/main/App.tsx
+++ b/frontend/appflowy_web_app/src/components/main/App.tsx
@@ -11,20 +11,52 @@ const AppRouter = lazy(() => import('@/components/app/AppRouter'));
const AsTemplatePage = lazy(() => import('@/pages/AsTemplatePage'));
const AcceptInvitationPage = lazy(() => import('@/pages/AcceptInvitationPage'));
const AfterPaymentPage = lazy(() => import('@/pages/AfterPaymentPage'));
+const ImportPage = lazy(() => import('@/pages/ImportPage'));
import '@/styles/app.scss';
const AppMain = withAppWrapper(() => {
return (
<Routes>
- <Route path={'/:namespace/:publishName'} element={<PublishPage />} />
- <Route path={'/login'} element={<Suspense><LoginPage /></Suspense>} />
- <Route path={AUTH_CALLBACK_PATH} element={<LoginAuth />} />
- <Route path="/404" element={<NotFound />} />
- <Route path="/after-payment" element={<Suspense><AfterPaymentPage /></Suspense>} />
- <Route path="/as-template" element={<Suspense><AsTemplatePage /></Suspense>} />
- <Route path="/accept-invitation" element={<Suspense><AcceptInvitationPage /></Suspense>} />
- <Route path="/" element={<Navigate to="/app" replace />} />
+ <Route
+ path={'/:namespace/:publishName'}
+ element={<PublishPage />}
+ />
+ <Route
+ path={'/login'}
+ element={<Suspense><LoginPage /></Suspense>}
+ />
+ <Route
+ path={AUTH_CALLBACK_PATH}
+ element={<LoginAuth />}
+ />
+ <Route
+ path="/404"
+ element={<NotFound />}
+ />
+ <Route
+ path="/after-payment"
+ element={<Suspense><AfterPaymentPage /></Suspense>}
+ />
+ <Route
+ path="/as-template"
+ element={<Suspense><AsTemplatePage /></Suspense>}
+ />
+ <Route
+ path="/accept-invitation"
+ element={<Suspense><AcceptInvitationPage /></Suspense>}
+ />
+ <Route
+ path={'/import'}
+ element={<Suspense><ImportPage /></Suspense>}
+ />
+ <Route
+ path="/"
+ element={<Navigate
+ to="/app"
+ replace
+ />}
+ />
<Route
path="/app/*"
element={
@@ -33,7 +65,10 @@ const AppMain = withAppWrapper(() => {
</Suspense>
}
/>
- <Route path="*" element={<NotFound />} />
+ <Route
+ path="*"
+ element={<NotFound />}
+ />
</Routes>
);
});
diff --git a/frontend/appflowy_web_app/src/pages/ImportPage.tsx b/frontend/appflowy_web_app/src/pages/ImportPage.tsx
new file mode 100644
index 0000000000..3ba875715f
--- /dev/null
+++ b/frontend/appflowy_web_app/src/pages/ImportPage.tsx
@@ -0,0 +1,37 @@
+import Import from '@/components/_shared/more-actions/importer/Import';
+import { Typography } from '@mui/material';
+import React from 'react';
+import { ReactComponent as AppflowyLogo } from '@/assets/appflowy.svg';
+import { useSearchParams } from 'react-router-dom';
+
+function ImportPage () {
+ const [search] = useSearchParams();
+ const redirectTo = search.get('redirectToImport');
+ const onSuccess = React.useCallback(() => {
+ if (redirectTo) {
+ window.location.href = redirectTo;
+ }
+ }, [redirectTo]);
+
+ return (
+ <div className={'w-screen h-screen flex bg-[#EEEEFD] flex-col'}>
+ <div className={'w-full h-[64px] py-4 px-6'}>
+ <Typography
+ variant="h3"
+ className={'mb-[27px] flex items-center gap-4 text-text-title'}
+ gutterBottom
+ >
+ <>
+ <AppflowyLogo className={'w-32'} />
+ </>
+ </Typography>
+ </div>
+ <Import
+ onSuccessfulImport={onSuccess}
+ disableClose={true}
+ />
+ </div>
+ );
+}
+
+export default ImportPage;
\ No newline at end of file
diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json
index f94524be85..1a94dad7d2 100644
--- a/frontend/resources/translations/en.json
+++ b/frontend/resources/translations/en.json
@@ -2510,7 +2510,8 @@
"import": "Import",
"importSuccess": "Uploaded successfully",
"importSuccessMessage": "We'll notify you when the import is complete. After that, you can view your imported pages in the sidebar.",
- "importFailed": "Import failed, please check the file format"
+ "importFailed": "Import failed, please check the file format",
+ "dropNotionFile": "Drop your Notion zip file here to upload, or click to browse"
},
"globalComment": {
"comments": "Comments",