|
|
|
@ -28,7 +28,10 @@ enum ToggleBtnIcon
|
|
|
|
|
MOON = "moon",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//顶部标题栏. TODO:Ajax请求,获得登录状态
|
|
|
|
|
const MarginStyle: React.CSSProperties = {
|
|
|
|
|
marginRight: 5
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@inject("store")
|
|
|
|
|
@observer
|
|
|
|
|
export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
@ -82,7 +85,7 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
|
return (
|
|
|
|
|
<Navbar>
|
|
|
|
|
<Navbar.Group align={Alignment.LEFT}>
|
|
|
|
|
<InputGroup small={true} leftIcon="search" type="search" placeholder="搜索文件..." dir="auto" />
|
|
|
|
|
{/* <InputGroup small={true} leftIcon="search" type="search" placeholder="搜索文件..." dir="auto" /> */}
|
|
|
|
|
</Navbar.Group>
|
|
|
|
|
<Navbar.Group align={Alignment.RIGHT}>
|
|
|
|
|
<Button
|
|
|
|
@ -96,12 +99,23 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
style={MarginStyle}
|
|
|
|
|
small={true}
|
|
|
|
|
icon="people"
|
|
|
|
|
text="加入售后群"
|
|
|
|
|
intent={Intent.PRIMARY}
|
|
|
|
|
onClick={() => window.open("https://jq.qq.com/?_wv=1027&k=5o7IHKm")}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
style={MarginStyle}
|
|
|
|
|
small={true}
|
|
|
|
|
icon="home"
|
|
|
|
|
text="主页"
|
|
|
|
|
onClick={() =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.openMain = true;
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
small={true}
|
|
|
|
|
icon="fullscreen"
|
|
|
|
@ -115,15 +129,6 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
|
// document.body.requestFullscreen();
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
<Button
|
|
|
|
|
small={true}
|
|
|
|
|
icon="home"
|
|
|
|
|
text="主页"
|
|
|
|
|
onClick={() =>
|
|
|
|
|
{
|
|
|
|
|
this.props.store.openMain = true;
|
|
|
|
|
}}
|
|
|
|
|
/>
|
|
|
|
|
{this.props.store.isLogin && this.renderLogined()}
|
|
|
|
|
<Button
|
|
|
|
|
small={true}
|
|
|
|
@ -145,7 +150,7 @@ export class TopPanel extends React.Component<{ store?: TopPanelStore; }, {}>
|
|
|
|
|
return (
|
|
|
|
|
<div className="bp3-navbar-group bp3-align-right info" style={{ height: this.state.isCollapse ? "auto" : 0 }}>
|
|
|
|
|
{
|
|
|
|
|
!this.props.store.openMain && <Button small={true} intent={Intent.SUCCESS} icon="document" text="文件" onClick={this.openFileManage} />
|
|
|
|
|
!this.props.store.openMain && <Button style={MarginStyle} small={true} intent={Intent.SUCCESS} icon="document" text="文件" onClick={this.openFileManage} />
|
|
|
|
|
}
|
|
|
|
|
{/* <Button small={true} icon="annotation" /> */}
|
|
|
|
|
<Button
|
|
|
|
|