mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 05:30:46 +08:00
Expand WebCRT SFTP into a fuller file manager.
Add mkdir/rename/delete/chmod, multi-select batch ops, cancelable transfers with retries, per-tab paths, sorting, and safer listing limits. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
d10ffed277
commit
9674de221d
10 changed files with 1146 additions and 153 deletions
|
|
@ -3107,6 +3107,7 @@ pre {
|
|||
|
||||
.webcrt-sftp__bar {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 4px;
|
||||
padding: 5px 6px;
|
||||
|
|
@ -3159,6 +3160,10 @@ pre {
|
|||
}
|
||||
|
||||
.webcrt-sftp__status {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
padding: 3px 8px;
|
||||
font-size: 10px;
|
||||
color: #64748b;
|
||||
|
|
@ -3166,6 +3171,30 @@ pre {
|
|||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.webcrt-sftp__status--warn {
|
||||
color: #fbbf24;
|
||||
background: rgba(251, 191, 36, 0.08);
|
||||
}
|
||||
|
||||
.webcrt-sftp__cancel {
|
||||
flex-shrink: 0;
|
||||
height: 20px;
|
||||
padding: 0 8px;
|
||||
border: 1px solid #475569;
|
||||
border-radius: 4px;
|
||||
background: #1e293b;
|
||||
color: #f87171;
|
||||
font-size: 10px;
|
||||
font-weight: 600;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.webcrt-sftp__cancel:hover {
|
||||
background: #7f1d1d;
|
||||
border-color: #ef4444;
|
||||
color: #fecaca;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table-wrap {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
|
|
@ -3200,10 +3229,28 @@ pre {
|
|||
|
||||
.webcrt-sftp__th-label {
|
||||
display: block;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
padding-right: 4px;
|
||||
padding: 0 4px 0 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: inherit;
|
||||
font: inherit;
|
||||
text-align: inherit;
|
||||
text-transform: inherit;
|
||||
letter-spacing: inherit;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.webcrt-sftp__th-label:hover {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table thead th.is-sorted .webcrt-sftp__th-label {
|
||||
color: #94a3b8;
|
||||
}
|
||||
|
||||
.webcrt-sftp__col-resizer {
|
||||
|
|
@ -3240,11 +3287,26 @@ pre {
|
|||
background: #111827;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table tbody tr.is-selected {
|
||||
background: #1e3a5f;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table tbody tr.is-selected:hover {
|
||||
background: #234872;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table tbody tr.is-busy {
|
||||
opacity: 0.7;
|
||||
cursor: progress;
|
||||
}
|
||||
|
||||
.webcrt-sftp__empty-row td {
|
||||
color: #64748b;
|
||||
text-align: center;
|
||||
padding: 18px 8px;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table td {
|
||||
padding: 3px 6px;
|
||||
border-bottom: 1px solid #1e293b;
|
||||
|
|
@ -3264,7 +3326,8 @@ pre {
|
|||
color: #64748b;
|
||||
}
|
||||
|
||||
.webcrt-sftp__table thead th.webcrt-sftp__col-size {
|
||||
.webcrt-sftp__table thead th.webcrt-sftp__col-size,
|
||||
.webcrt-sftp__table thead th.webcrt-sftp__col-size .webcrt-sftp__th-label {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue