Introduce support for grouping multiple sequential file uploads into a single box using the `X-Warpbox-Batch` header. This is particularly useful for ShareX multi-file selections, which are sent as separate back-to-back requests.
Additionally, this change:
- Updates the ShareX configuration template to opt-in to batching by default.
- Switches ShareX configuration placeholders to the modern `{json:...}` format.
- Adds `thumbnailUrl` to the upload response schema and documents its usage.
121 lines
1.8 KiB
CSS
121 lines
1.8 KiB
CSS
.admin-view {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 2rem 0 3rem;
|
|
}
|
|
|
|
.docs-view {
|
|
width: min(72rem, calc(100% - 2rem));
|
|
margin: 0 auto;
|
|
padding: 2rem 0 3rem;
|
|
}
|
|
|
|
.docs-header {
|
|
max-width: 44rem;
|
|
}
|
|
|
|
.docs-header p {
|
|
margin: 0.55rem 0 0;
|
|
color: var(--muted-foreground);
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.docs-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
gap: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.docs-card {
|
|
box-shadow: none;
|
|
}
|
|
|
|
.docs-card h2 {
|
|
margin: 0;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.docs-card h3 {
|
|
margin: 1.35rem 0 0;
|
|
font-size: 0.9rem;
|
|
font-weight: 650;
|
|
color: var(--foreground);
|
|
}
|
|
|
|
/* Highlights where the API token goes in the ShareX config snippet. */
|
|
.sxcu-highlight {
|
|
background: #fde047;
|
|
color: #1a1a1a;
|
|
font-weight: 700;
|
|
padding: 0 0.2rem;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.docs-card p {
|
|
margin: 0.65rem 0 0;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.88rem;
|
|
line-height: 1.55;
|
|
}
|
|
|
|
.docs-card-wide {
|
|
grid-column: 1 / -1;
|
|
}
|
|
|
|
.endpoint-list,
|
|
.field-grid {
|
|
display: grid;
|
|
gap: 0.65rem;
|
|
margin: 1rem 0 0;
|
|
}
|
|
|
|
.endpoint-list div,
|
|
.field-grid {
|
|
min-width: 0;
|
|
}
|
|
|
|
.endpoint-list div {
|
|
display: grid;
|
|
grid-template-columns: 7rem minmax(0, 1fr);
|
|
gap: 0.75rem;
|
|
align-items: baseline;
|
|
}
|
|
|
|
.endpoint-list dt,
|
|
.endpoint-list dd {
|
|
margin: 0;
|
|
min-width: 0;
|
|
}
|
|
|
|
.endpoint-list dt,
|
|
.field-grid span {
|
|
color: var(--muted-foreground);
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.endpoint-list dd code {
|
|
display: block;
|
|
}
|
|
|
|
.docs-steps {
|
|
margin: 0.85rem 0 0;
|
|
padding-left: 1.1rem;
|
|
color: var(--muted-foreground);
|
|
font-size: 0.88rem;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.docs-steps li + li {
|
|
margin-top: 0.35rem;
|
|
}
|
|
|
|
.field-grid {
|
|
grid-template-columns: minmax(8rem, 0.35fr) minmax(0, 1fr);
|
|
}
|
|
|
|
.field-grid p {
|
|
margin: 0;
|
|
}
|