Skip to content

Commit 6247e4f

Browse files
authored
feat(portal,ai): 删除文件管理下的前进和后退按钮 (#1491)
1 parent 0a8e628 commit 6247e4f

File tree

3 files changed

+10
-29
lines changed

3 files changed

+10
-29
lines changed

.changeset/strong-tips-smell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"@scow/portal-web": patch
3+
"@scow/ai": patch
4+
---
5+
6+
删除了文件管理下的前进和后退按钮

apps/ai/src/app/(auth)/files/FileManager.tsx

100644100755
Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
*/
1212

1313
import { CopyOutlined, DatabaseOutlined, DeleteOutlined, EyeInvisibleOutlined, EyeOutlined,
14-
FileAddOutlined, FolderAddOutlined, HomeOutlined, LeftOutlined, MacCommandOutlined,
15-
RightOutlined, ScissorOutlined, SnippetsOutlined, UploadOutlined,
16-
UpOutlined } from "@ant-design/icons";
14+
FileAddOutlined, FolderAddOutlined, HomeOutlined, MacCommandOutlined,
15+
ScissorOutlined, SnippetsOutlined, UploadOutlined, UpOutlined } from "@ant-design/icons";
1716
import { getI18nConfigCurrentText } from "@scow/lib-web/build/utils/systemLanguage";
1817
import type { inferRouterOutputs } from "@trpc/server";
1918
import { App, Button, Divider, Modal, Space } from "antd";
@@ -113,14 +112,6 @@ export const FileManager: React.FC<Props> = ({ cluster, loginNodes, path, urlPre
113112
router.push(fullUrl("~"));
114113
};
115114

116-
const back = () => {
117-
router.back();
118-
};
119-
120-
const forward = () => {
121-
history.forward();
122-
};
123-
124115
useEffect(() => {
125116
if (path === "~") {
126117
return;
@@ -273,8 +264,6 @@ export const FileManager: React.FC<Props> = ({ cluster, loginNodes, path, urlPre
273264
</span>
274265
</TitleText>
275266
<TopBar>
276-
<Button onClick={back} icon={<LeftOutlined />} shape="circle" />
277-
<Button onClick={forward} icon={<RightOutlined />} shape="circle" />
278267
<Button onClick={toHome} icon={<HomeOutlined />} shape="circle" />
279268
<Button onClick={up} icon={<UpOutlined />} shape="circle" />
280269
<PathBar

apps/portal-web/src/pageComponents/filemanager/FileManager.tsx

100644100755
Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,8 @@
1111
*/
1212

1313
import {
14-
CopyOutlined,
15-
DatabaseOutlined,
16-
DeleteOutlined, EyeInvisibleOutlined,
17-
EyeOutlined, FileAddOutlined, FolderAddOutlined,
18-
HomeOutlined, LeftOutlined, MacCommandOutlined, RightOutlined,
14+
CopyOutlined, DatabaseOutlined, DeleteOutlined, EyeInvisibleOutlined,
15+
EyeOutlined, FileAddOutlined, FolderAddOutlined, HomeOutlined, MacCommandOutlined,
1916
ScissorOutlined, SnippetsOutlined, UploadOutlined, UpOutlined,
2017
} from "@ant-design/icons";
2118
import { DEFAULT_PAGE_SIZE } from "@scow/lib-web/build/utils/pagination";
@@ -160,15 +157,6 @@ export const FileManager: React.FC<Props> = ({ cluster, path, urlPrefix, scowdEn
160157
router.push(fullUrl("~"));
161158
};
162159

163-
const back = () => {
164-
router.back();
165-
};
166-
167-
const forward = () => {
168-
history.forward();
169-
};
170-
171-
172160
useEffect(() => {
173161
if (path === "~") {
174162
return;
@@ -374,8 +362,6 @@ export const FileManager: React.FC<Props> = ({ cluster, path, urlPrefix, scowdEn
374362
</span>
375363
</TitleText>
376364
<TopBar>
377-
<Button onClick={back} icon={<LeftOutlined />} shape="circle" />
378-
<Button onClick={forward} icon={<RightOutlined />} shape="circle" />
379365
<Button onClick={toHome} icon={<HomeOutlined />} shape="circle" />
380366
<Button onClick={up} icon={<UpOutlined />} shape="circle" />
381367
<PathBar

0 commit comments

Comments
 (0)