diff --git a/src/client/web/src/components/browser.tsx b/src/client/web/src/components/browser.tsx index c0500d1..3622534 100644 --- a/src/client/web/src/components/browser.tsx +++ b/src/client/web/src/components/browser.tsx @@ -9,6 +9,7 @@ import { RiShareBoxLine } from "@react-icons/all-files/ri/RiShareBoxLine"; import { RiShareForwardBoxFill } from "@react-icons/all-files/ri/RiShareForwardBoxFill"; import { RiUploadCloudFill } from "@react-icons/all-files/ri/RiUploadCloudFill"; import { RiUploadCloudLine } from "@react-icons/all-files/ri/RiUploadCloudLine"; +import { RiEmotionSadLine } from "@react-icons/all-files/ri/RiEmotionSadLine"; import { alertMsg, comfirmMsg } from "../common/env"; import { updater } from "./state_updater"; @@ -341,17 +342,12 @@ export class Browser extends React.Component { className="black0-font margin-r-m" placeholder={this.props.msg.pkg.get("browser.folder.name")} /> - - { const uploadingListPane = this.props.browser.tab === "uploading" ? ( this.props.browser.uploadings.size === 0 ? ( -
No uploading found
+
+ , + +

+ {this.props.msg.pkg.get("upload.404.title")} +

+ + {this.props.msg.pkg.get("upload.404.desc")} + +
, + ])} + childrenStyles={List([ + { flex: "auto", justifyContent: "flex-end" }, + { flex: "auto" }, + ])} + className="padding-l" + /> +
) : (
{ />, - + {this.props.msg.pkg.get("browser.upload.title")} - - All files in uploading + + {this.props.msg.pkg.get("browser.upload.desc")} , ])} @@ -685,10 +703,32 @@ export class Browser extends React.Component { ); }); - const sharingingListPane = + const sharingListPane = this.props.browser.tab === "sharing" ? ( this.props.browser.sharings.size === 0 ? ( -
No sharing found
+
+ , + +

+ {this.props.msg.pkg.get("share.404.title")} +

+ + {this.props.msg.pkg.get("share.404.desc")} + +
, + ])} + childrenStyles={List([ + { flex: "auto", justifyContent: "flex-end" }, + { flex: "auto" }, + ])} + className="padding-l" + /> +
) : (
{ />, - + {this.props.msg.pkg.get("browser.share.title")} - - Sharing Folders + + {this.props.msg.pkg.get("browser.share.desc")} , ])} @@ -784,7 +824,7 @@ export class Browser extends React.Component {
- {sharingingListPane} + {sharingListPane} {uploadingListPane} {itemListPane} diff --git a/src/client/web/src/components/layout/flexbox.tsx b/src/client/web/src/components/layout/flexbox.tsx index 959efce..8c339cb 100644 --- a/src/client/web/src/components/layout/flexbox.tsx +++ b/src/client/web/src/components/layout/flexbox.tsx @@ -43,5 +43,12 @@ export const Flexbox = (props: Props) => { } ); - return
{children}
; + return ( +
+ {children} +
+ ); }; diff --git a/src/client/web/src/i18n/en_US.ts b/src/client/web/src/i18n/en_US.ts index 7acdcff..f3891cd 100644 --- a/src/client/web/src/i18n/en_US.ts +++ b/src/client/web/src/i18n/en_US.ts @@ -11,7 +11,9 @@ export const msgs: Map = Map({ "browser.share.del": "Stop sharing", "browser.share.add": "Share it", "browser.share.title": "Sharings", + "browser.share.desc": "All folders which are shared", "browser.upload.title": "Uploadings", + "browser.upload.desc": "All files which are in uploading", "browser.folder.name": "Folder name", "browser.folder.add": "Add Folder", "browser.upload": "Upload", @@ -67,4 +69,8 @@ export const msgs: Map = Map({ zhCN: "Chinese (simplified)", enUS: "English (USA)", "move.fail": "Failed to move", + "share.404.title": "No folder is in sharing", + "share.404.desc": "You can share a folder in the items tab", + "upload.404.title": "No uploading is in the progress", + "upload.404.desc": "You can upload a file in the items tab", }); diff --git a/src/client/web/src/i18n/zh_CN.ts b/src/client/web/src/i18n/zh_CN.ts index 7a489ae..dc62886 100644 --- a/src/client/web/src/i18n/zh_CN.ts +++ b/src/client/web/src/i18n/zh_CN.ts @@ -11,7 +11,9 @@ export const msgs: Map = Map({ "browser.share.del": "停止共享", "browser.share.add": "开始共享", "browser.share.title": "共享列表", + "browser.share.desc": "所有正在共享的路径", "browser.upload.title": "上传列表", + "browser.upload.desc": "正在上传的文件列表", "browser.folder.name": "文件夹名", "browser.folder.add": "添加文件夹", "browser.upload": "上传", @@ -62,7 +64,11 @@ export const msgs: Map = Map({ "role.add": "新增角色", "role.name": "角色名字", "admin.roles": "角色列表", - "zhCN": "中文简体", - "enUS": "英语美国", + zhCN: "中文简体", + enUS: "英语美国", "move.fail": "移动失败", + "share.404.title": "没有找到正在共享的文件夹", + "share.404.desc": "在列表面板可以共享文件夹", + "upload.404.title": "没有正在上传的文件", + "upload.404.desc": "在列表面板可以上传文件", });