diff --git a/public/static/css/white.css b/public/static/css/white.css index 830789e..3f6cb75 100644 --- a/public/static/css/white.css +++ b/public/static/css/white.css @@ -493,6 +493,7 @@ .theme-default .pane-title { color: black; font-size: 1.6rem; + line-height: 1.6rem; } .theme-default #pane-settings { diff --git a/src/client/web/src/components/panel_files.tsx b/src/client/web/src/components/panel_files.tsx index 843adf9..b419e41 100644 --- a/src/client/web/src/components/panel_files.tsx +++ b/src/client/web/src/components/panel_files.tsx @@ -755,6 +755,24 @@ export class FilesPanel extends React.Component { }; render() { + const showEndpoints = + this.props.login.userRole === roleAdmin ? "" : "hidden"; + const gotoRoot = () => this.chdir(List(["/"])); + const endPoints = ( +
+ +
{this.props.msg.pkg.get("endpoints")}
+
+ + + +
+
+ ); const shareModeClass = this.props.ui.control.controls.get(sharingCtrl) === ctrlOn ? "hidden" @@ -771,7 +789,9 @@ export class FilesPanel extends React.Component { } className="item clickable" > - {pathPart} + + {pathPart === "/" ? "~" : pathPart} + {"/"} @@ -851,8 +871,11 @@ export class FilesPanel extends React.Component { this.props.ui.control.controls.get(filesViewCtrl) === "table" ? "cyan1-font" : "black-font"; + const itemListPane = (
+ {endPoints} +
{ops}
diff --git a/src/client/web/src/i18n/en_US.ts b/src/client/web/src/i18n/en_US.ts index 11a495b..91a1e54 100644 --- a/src/client/web/src/i18n/en_US.ts +++ b/src/client/web/src/i18n/en_US.ts @@ -133,4 +133,7 @@ export const msgs: Map = Map({ "op.cancel": "Cancel", "term.time": "Time", "breadcrumb.loc": "Location", + "endpoints": "Endpoints", + "endpoints.root": "Root", + "endpoints.home": "Home", }); diff --git a/src/client/web/src/i18n/zh_CN.ts b/src/client/web/src/i18n/zh_CN.ts index b557c2c..aaf4b10 100644 --- a/src/client/web/src/i18n/zh_CN.ts +++ b/src/client/web/src/i18n/zh_CN.ts @@ -130,4 +130,7 @@ export const msgs: Map = Map({ "op.cancel": "取消", "term.time": "时间", "breadcrumb.loc": "位置", + "endpoints": "端点", + "endpoints.root": "根", + "endpoints.home": "家", });