Skip to content

Commit e92fe5b

Browse files
committed
feat: 更新ImportData组件以显示施工中状态;添加相关国际化文本
1 parent 21c9e9e commit e92fe5b

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
import { Divider } from '@/components/ui/divider';
22
import { useTranslation } from 'react-i18next';
3-
import { useEffect, useState } from 'react';
4-
import LoadingPlaceholder from '../others/LoadingPlaceholder';
53

64
export default function ImportData() {
75
const { t } = useTranslation('translation', {
86
keyPrefix: 'pages.experiment.importData',
97
});
10-
const [loading] = useState(false);
11-
12-
useEffect(() => {}, []);
138

149
return (
1510
<div className="noScrollBar relative aspect-square w-full overflow-x-hidden overflow-y-scroll p-4">
@@ -18,7 +13,10 @@ export default function ImportData() {
1813
<div className="text-info mt-2 text-sm font-normal">{t('description')}</div>
1914
</div>
2015
<Divider></Divider>
21-
{loading ? <LoadingPlaceholder className="py-8" size={6} /> : null}
16+
<div className="bg-background/90 absolute top-0 left-0 flex h-full w-full flex-col items-center justify-center gap-2 backdrop-blur-xl">
17+
<div className="text-2xl">🚧</div>
18+
<div>{t('notSupported')}</div>
19+
</div>
2220
</div>
2321
);
2422
}

web/src/locales/en.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,8 @@
219219
},
220220
"importData": {
221221
"title": "Data Import",
222-
"description": "Import data from other note platforms."
222+
"description": "Import data from other note platforms.",
223+
"notSupported": "Currently not supported."
223224
},
224225
"serviceWorker": {
225226
"title": "ServiceWorker Notification",

web/src/locales/zh.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,8 @@
223223
},
224224
"importData": {
225225
"title": "数据导入",
226-
"description": "导入来自其他笔记平台的数据。"
226+
"description": "导入来自其他笔记平台的数据。",
227+
"notSupported": "导入数据功能施工中"
227228
},
228229
"serviceWorker": {
229230
"title": "ServiceWoker通知",

web/src/pages/home/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function MainPageHeader({
3131
className="group bg-background sticky top-0 z-10 flex cursor-pointer items-center gap-2 p-4 py-4.5 font-light text-gray-600"
3232
onClick={refreshData}
3333
>
34-
<Logo className="h-6 w-fit" color="#07C160" />
34+
<Logo className="h-6 w-auto" color="#07C160" />
3535
<img
3636
className="text-theme mb-[2px] ml-2 h-4 opacity-0 duration-300 group-hover:opacity-100"
3737
src={slogenImg}

0 commit comments

Comments
 (0)