-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
container: add file manager feature, thanks to luci-app-filebrowser
- Loading branch information
Showing
5 changed files
with
420 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+1.07 KB
...cations/luci-app-dockerman/htdocs/luci-static/resources/dockerman/file-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions
91
applications/luci-app-dockerman/htdocs/luci-static/resources/dockerman/file-manager.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
.fb-container { | ||
margin-top: 1rem; | ||
} | ||
.fb-container .cbi-button { | ||
height: 1.8rem; | ||
} | ||
.fb-container .cbi-input-text { | ||
margin-bottom: 1rem; | ||
width: 100%; | ||
} | ||
.fb-container .panel-title { | ||
padding-bottom: 0; | ||
width: 50%; | ||
border-bottom: none; | ||
} | ||
.fb-container .panel-container { | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
padding-bottom: 1rem; | ||
border-bottom: 1px solid #eee; | ||
} | ||
.fb-container .upload-container { | ||
display: none; | ||
margin: 1rem 0; | ||
} | ||
.fb-container .upload-file { | ||
margin-right: 2rem; | ||
} | ||
.fb-container .cbi-value-field { | ||
text-align: left; | ||
} | ||
.fb-container .parent-icon strong { | ||
margin-left: 1rem; | ||
} | ||
.fb-container td[class$="-icon"] { | ||
cursor: pointer; | ||
} | ||
.fb-container .file-icon, .fb-container .folder-icon, .fb-container .link-icon { | ||
position: relative; | ||
} | ||
.fb-container .file-icon:before, .fb-container .folder-icon:before, .fb-container .link-icon:before { | ||
display: inline-block; | ||
width: 1.5rem; | ||
height: 1.5rem; | ||
content: ''; | ||
background-size: contain; | ||
margin: 0 0.5rem 0 1rem; | ||
vertical-align: middle; | ||
} | ||
.fb-container .file-icon:before { | ||
background-image: url(file-icon.png); | ||
} | ||
.fb-container .folder-icon:before { | ||
background-image: url(folder-icon.png); | ||
} | ||
.fb-container .link-icon:before { | ||
background-image: url(link-icon.png); | ||
} | ||
@media screen and (max-width: 480px) { | ||
.fb-container .upload-file { | ||
width: 14.6rem; | ||
} | ||
.fb-container .cbi-value-owner, | ||
.fb-container .cbi-value-perm { | ||
display: none; | ||
} | ||
} | ||
|
||
.cbi-section-table { | ||
width: 100%; | ||
} | ||
|
||
.cbi-section-table-cell { | ||
text-align: right; | ||
} | ||
|
||
.cbi-button-install { | ||
border-color: #c44; | ||
color: #c44; | ||
margin-left: 3px; | ||
} | ||
|
||
.cbi-value-field { | ||
padding: 10px 0; | ||
} | ||
|
||
.parent-icon { | ||
height: 1.8rem; | ||
padding: 10px 0; | ||
} |
Binary file added
BIN
+1.26 KB
...tions/luci-app-dockerman/htdocs/luci-static/resources/dockerman/folder-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.58 KB
...cations/luci-app-dockerman/htdocs/luci-static/resources/dockerman/link-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
0dd9558
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个文件浏览器具体在那?咋没看到的。
0dd9558
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@flyhong666 点按容器名称进入 容器详情页面 - 文件选项卡
0dd9558
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
看到了,谢谢。。。