mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-30 16:39:33 +01:00
feat(files): delete a file from the Files panel
A delete button on each file row of the Files panel (tree and search results) and a DELETE /api/sessions/:id/files?path= route that removes one regular file from the session workspace, refused for remote (SSH) sessions and behind the same sensitive-path, attachment-guard and .git checks as the edit route. Salvaged from #529.
This commit is contained in:
1 parent
f62c1f7e2f
commit
dfe1af2e5f
3 files changed
+86
No files matched your search
@@ -12386,6 +12386,24 @@ html:is([data-skin="paper-gray"], [data-skin="solarized-light"], [data-skin="cat
|
||||
.file-tree-download:hover {
|
||||
color: #4fc3f7;
|
||||
}
|
||||
.file-tree-delete {
|
||||
display: none;
|
||||
margin-left: 2px;
|
||||
padding: 0 4px;
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: #888;
|
||||
font-size: 14px;
|
||||
line-height: 1;
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
.file-tree-item:hover .file-tree-delete {
|
||||
display: inline;
|
||||
}
|
||||
.file-tree-delete:hover {
|
||||
color: #ef5350;
|
||||
}
|
||||
|
||||
/* File tree indent levels */
|
||||
.file-tree-item[data-depth="0"] { padding-left: 0.5rem; }
|
||||
|
||||
Reference in new issue
Block a user