feat(server): add box file listing and download routes
Introduce `/box/:id` to render a box page with file metadata, plus endpoints to download individual files and a “download all” ZIP. Add helpers to safely list box contents, stream files into a ZIP response, and infer MIME types/icons for better UI and correct downloads.feat(server): add box file listing and download routes Introduce `/box/:id` to render a box page with file metadata, plus endpoints to download individual files and a “download all” ZIP. Add helpers to safely list box contents, stream files into a ZIP response, and infer MIME types/icons for better UI and correct downloads.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
.upload-window {
|
||||
width: 520px;
|
||||
height: 420px;
|
||||
height: 456px;
|
||||
}
|
||||
|
||||
.upload-form {
|
||||
@@ -126,6 +126,55 @@
|
||||
border-bottom: 2px solid #ffffff;
|
||||
}
|
||||
|
||||
.upload-result {
|
||||
flex: 0 0 auto;
|
||||
display: grid;
|
||||
grid-template-columns: 72px minmax(0, 1fr) 72px;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
height: 36px;
|
||||
box-sizing: border-box;
|
||||
margin-top: 8px;
|
||||
padding: 4px 6px;
|
||||
background: #dfdfdf;
|
||||
border-top: 1px solid #808080;
|
||||
border-left: 1px solid #808080;
|
||||
border-right: 1px solid #ffffff;
|
||||
border-bottom: 1px solid #ffffff;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.upload-result-label {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.upload-result-link {
|
||||
min-width: 0;
|
||||
overflow: hidden;
|
||||
color: #000078;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.upload-result-link.is-empty {
|
||||
color: #555555;
|
||||
pointer-events: none;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.upload-share-button {
|
||||
width: 72px;
|
||||
height: 24px;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.upload-share-button:disabled {
|
||||
color: #808080;
|
||||
text-shadow: 1px 1px 0 #ffffff;
|
||||
}
|
||||
|
||||
.upload-empty-state {
|
||||
margin: 0;
|
||||
padding: 9px 8px;
|
||||
@@ -264,4 +313,8 @@
|
||||
.upload-file-list {
|
||||
min-height: 160px;
|
||||
}
|
||||
|
||||
.upload-result {
|
||||
grid-template-columns: 64px minmax(0, 1fr) 68px;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user