mirror of https://github.com/openspug/spug
U 优化文件管理器样式
parent
56b7a3e46d
commit
96521a5ef1
|
@ -28,6 +28,8 @@ class SSH:
|
||||||
'password': password,
|
'password': password,
|
||||||
'pkey': RSAKey.from_private_key(StringIO(pkey)) if isinstance(pkey, str) else pkey,
|
'pkey': RSAKey.from_private_key(StringIO(pkey)) if isinstance(pkey, str) else pkey,
|
||||||
'timeout': connect_timeout,
|
'timeout': connect_timeout,
|
||||||
|
'allow_agent': False,
|
||||||
|
'look_for_keys': False,
|
||||||
'banner_timeout': 30
|
'banner_timeout': 30
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -70,8 +70,9 @@ class FileManager extends React.Component {
|
||||||
key: 'action',
|
key: 'action',
|
||||||
render: info => info.kind === '-' ? (
|
render: info => info.kind === '-' ? (
|
||||||
<Action>
|
<Action>
|
||||||
<Action.Button icon={<DownloadOutlined/>} onClick={() => this.handleDownload(info.name)}/>
|
<Action.Button className={styles.drawerBtn} icon={<DownloadOutlined/>}
|
||||||
<Action.Button auth="host.console.del" danger icon={<DeleteOutlined/>}
|
onClick={() => this.handleDownload(info.name)}/>
|
||||||
|
<Action.Button danger auth="host.console.del" className={styles.drawerBtn} icon={<DeleteOutlined/>}
|
||||||
onClick={() => this.handleDelete(info.name)}/>
|
onClick={() => this.handleDelete(info.name)}/>
|
||||||
</Action>
|
</Action>
|
||||||
) : null
|
) : null
|
||||||
|
|
|
@ -1,105 +1,114 @@
|
||||||
.container {
|
.container {
|
||||||
|
display: flex;
|
||||||
|
min-height: 100vh;
|
||||||
|
|
||||||
|
.sider {
|
||||||
display: flex;
|
display: flex;
|
||||||
min-height: 100vh;
|
flex-direction: column;
|
||||||
|
width: 280px;
|
||||||
|
background-color: #fafafa;
|
||||||
|
position: relative;
|
||||||
|
|
||||||
.sider {
|
.split {
|
||||||
display: flex;
|
position: absolute;
|
||||||
flex-direction: column;
|
width: 6px;
|
||||||
width: 280px;
|
height: 100vh;
|
||||||
|
right: -3px;
|
||||||
|
cursor: ew-resize;
|
||||||
|
}
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
height: 42px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #f0f0f0;
|
||||||
|
|
||||||
|
img {
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.hosts {
|
||||||
|
:global(.ant-tree-node-content-wrapper) {
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.ant-tree) {
|
||||||
background-color: #fafafa;
|
background-color: #fafafa;
|
||||||
position: relative;
|
height: calc(100vh - 98px);
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
|
||||||
.split {
|
.search {
|
||||||
position: absolute;
|
margin: 12px 10px;
|
||||||
width: 6px;
|
width: calc(100% - 60px);
|
||||||
height: 100vh;
|
}
|
||||||
right: -3px;
|
|
||||||
cursor: ew-resize;
|
|
||||||
}
|
|
||||||
|
|
||||||
.logo {
|
|
||||||
height: 42px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
background-color: #f0f0f0;
|
|
||||||
img {
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.hosts {
|
|
||||||
:global(.ant-tree-node-content-wrapper) {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
white-space: nowrap;
|
|
||||||
}
|
|
||||||
:global(.ant-tree) {
|
|
||||||
background-color: #fafafa;
|
|
||||||
height: calc(100vh - 98px);
|
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.search {
|
|
||||||
margin: 12px 10px;
|
|
||||||
width: calc(100% - 60px);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
.content {
|
}
|
||||||
flex: 1;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
|
|
||||||
.tips {
|
.content {
|
||||||
position: absolute;
|
flex: 1;
|
||||||
top: 12px;
|
display: flex;
|
||||||
left: 12px;
|
flex-direction: column;
|
||||||
font-size: 12px;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
|
|
||||||
:global(.ant-tabs-nav) {
|
.tips {
|
||||||
height: 42px;
|
position: absolute;
|
||||||
margin: 0;
|
top: 12px;
|
||||||
}
|
left: 12px;
|
||||||
|
font-size: 12px;
|
||||||
:global(.ant-tabs-tab-active) {
|
color: #666;
|
||||||
border-bottom: 2px solid #1890ff !important;
|
|
||||||
transition: unset;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tabRender {
|
||||||
|
user-select: none;
|
||||||
|
padding: 8px 8px 8px 16px;
|
||||||
|
margin: 0 -8px 0 -16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.ant-tabs-nav) {
|
||||||
|
height: 42px;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
:global(.ant-tabs-tab-active) {
|
||||||
|
border-bottom: 2px solid #1890ff !important;
|
||||||
|
transition: unset;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal {
|
.terminal {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
background-color: #2b2b2b;
|
background-color: #2b2b2b;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
height: calc(100vh - 42px);
|
height: calc(100vh - 42px);
|
||||||
}
|
}
|
||||||
|
|
||||||
.fig {
|
.fig {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
background-color: #2b2b2b;
|
background-color: #2b2b2b;
|
||||||
color: #A9B7C6;
|
color: #A9B7C6;
|
||||||
padding-top: 200px;
|
padding-top: 200px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.fileSize {
|
.fileSize {
|
||||||
padding-right: 24px !important;
|
padding-right: 24px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.drawerHeader {
|
.drawerHeader {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabRender {
|
.drawerBtn {
|
||||||
user-select: none;
|
height: 22px;
|
||||||
padding: 8px 8px 8px 16px;
|
width: 22px;
|
||||||
margin: 0 -8px 0 -16px;
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue