feat(ui): add clear queue flow and expose ISO expiry
- Add `formatBrowserTime()` and include ISO-8601 `expires_at` in box status JSON and `ExpiresAtISO` in the box view for browser-friendly rendering. - Refresh UI styling (switch to MonoCraft/PixelOperatorMono, tweak base font size) and treat `aria-disabled="true"` like `disabled` for consistent button states. - Introduce a clear-queue action with confirmation to reset upload state, unlock controls, and provide user feedback.feat(ui): add clear queue flow and expose ISO expiry - Add `formatBrowserTime()` and include ISO-8601 `expires_at` in box status JSON and `ExpiresAtISO` in the box view for browser-friendly rendering. - Refresh UI styling (switch to MonoCraft/PixelOperatorMono, tweak base font size) and treat `aria-disabled="true"` like `disabled` for consistent button states. - Introduce a clear-queue action with confirmation to reset upload state, unlock controls, and provide user feedback.
This commit is contained in:
@@ -20,14 +20,14 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
font-family: 'PixelOperator', 'MS Sans Serif', Arial, sans-serif;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-smooth: never;
|
||||
-webkit-font-smoothing: none;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-rendering: geometricPrecision;
|
||||
image-rendering: pixelated;
|
||||
|
||||
--base-font-size: 14px;
|
||||
--base-font-size: 13px;
|
||||
--ui-scale: 1;
|
||||
--w98-blue: #000078;
|
||||
--w98-blue-gradient: linear-gradient(90deg, #000078 0%, #000078 28%, #0f80cd 50%, #000078 72%, #000078 100%);
|
||||
@@ -64,7 +64,7 @@ body {
|
||||
background-image: url('/static/img/bg/stars1.gif');
|
||||
background-repeat: repeat;
|
||||
background-size: auto;
|
||||
font-family: 'PixelOperator', 'MS Sans Serif', Arial, sans-serif;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
}
|
||||
|
||||
main {
|
||||
@@ -152,19 +152,22 @@ textarea {
|
||||
}
|
||||
|
||||
.win98-button:disabled,
|
||||
.win98-button[aria-disabled="true"],
|
||||
button:disabled,
|
||||
button[aria-disabled="true"],
|
||||
input:disabled,
|
||||
select:disabled,
|
||||
textarea:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.win98-button:disabled {
|
||||
.win98-button:disabled,
|
||||
.win98-button[aria-disabled="true"] {
|
||||
color: #808080;
|
||||
text-shadow: 1px 1px 0 #ffffff;
|
||||
}
|
||||
|
||||
.win98-button:active:not(:disabled),
|
||||
.win98-button:active:not(:disabled):not([aria-disabled="true"]),
|
||||
.win98-control:active,
|
||||
.menu-button[aria-expanded="true"] {
|
||||
border-top-color: #000000;
|
||||
@@ -175,20 +178,155 @@ textarea:disabled {
|
||||
padding-top: 1px;
|
||||
}
|
||||
|
||||
.modal-backdrop {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
display: none;
|
||||
background: rgba(128, 128, 128, .42);
|
||||
z-index: 70;
|
||||
}
|
||||
|
||||
.modal-backdrop.is-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.popup-window {
|
||||
position: fixed;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
width: min(780px, calc(100vw - 24px));
|
||||
max-height: min(760px, calc(100vh - 24px));
|
||||
display: none;
|
||||
z-index: 80;
|
||||
zoom: var(--ui-scale);
|
||||
}
|
||||
|
||||
.popup-window.is-visible {
|
||||
display: flex;
|
||||
animation: popup-open-v10 180ms steps(5, end);
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
max-height: calc(100vh - 90px);
|
||||
margin: 0 6px 6px;
|
||||
padding: 12px;
|
||||
overflow: auto;
|
||||
color: #000000;
|
||||
background-color: #ffffff;
|
||||
background-image:
|
||||
linear-gradient(180deg, rgba(255,255,255,.9), rgba(238,238,238,.58)),
|
||||
repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 1px, transparent 1px 6px);
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
}
|
||||
|
||||
.popup-body h3 { margin: 0 0 8px; font-size: 16px; line-height: 18px; }
|
||||
.popup-body h4 { margin: 14px 0 6px; font-size: 14px; line-height: 16px; }
|
||||
.popup-body p { margin: 0 0 8px; }
|
||||
.popup-body ul,
|
||||
.popup-body ol { margin: 0 0 8px 18px; padding: 0; }
|
||||
.popup-body li { margin: 0 0 4px; }
|
||||
.popup-body .code-block {
|
||||
margin: 6px 0 10px;
|
||||
padding: 8px 8px 22px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
overflow: auto;
|
||||
color: #00ff66;
|
||||
background: #000000;
|
||||
border: 0;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
white-space: pre;
|
||||
user-select: text;
|
||||
cursor: text;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.popup-body .code-block::after {
|
||||
content: "\A";
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.copy-fallback-text {
|
||||
width: 100%;
|
||||
min-height: 58px;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', monospace;
|
||||
}
|
||||
|
||||
.popup-window.is-properties-popup {
|
||||
width: min(520px, calc(100vw - 24px));
|
||||
}
|
||||
|
||||
.popup-window.is-preview-popup {
|
||||
width: min(760px, calc(100vw - 24px));
|
||||
}
|
||||
|
||||
.toast {
|
||||
position: fixed;
|
||||
right: 12px;
|
||||
bottom: 52px;
|
||||
max-width: min(360px, calc(100vw - 24px));
|
||||
display: none;
|
||||
padding: 8px 10px;
|
||||
color: #000000;
|
||||
background: #ffffcc;
|
||||
border-top: 2px solid #ffffff;
|
||||
border-left: 2px solid #ffffff;
|
||||
border-right: 2px solid #000000;
|
||||
border-bottom: 2px solid #000000;
|
||||
z-index: 90;
|
||||
font-size: 12px;
|
||||
line-height: 14px;
|
||||
box-shadow: 4px 4px 0 rgba(0,0,0,.45);
|
||||
zoom: var(--ui-scale);
|
||||
}
|
||||
|
||||
.toast.is-visible {
|
||||
display: block;
|
||||
animation: toast-in 180ms steps(3, end), toast-buzz 700ms steps(2, end) 180ms;
|
||||
}
|
||||
|
||||
.toast.toast-warning {
|
||||
color: #000000;
|
||||
background: #ffffcc;
|
||||
border: 4px solid transparent;
|
||||
border-image: repeating-linear-gradient(45deg, #111111 0 8px, #ffcc00 8px 16px) 4;
|
||||
}
|
||||
|
||||
.toast.toast-error {
|
||||
color: #ffffff;
|
||||
background: #b00000;
|
||||
text-shadow: 1px 1px 0 #000000;
|
||||
border-color: #ffb0b0 #330000 #330000 #ffb0b0;
|
||||
}
|
||||
|
||||
@keyframes popup-open-v10 {
|
||||
from { transform: translate(-50%, -48%) scale(.97); opacity: .35; }
|
||||
to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
|
||||
@keyframes toast-buzz { 0%, 100% { margin-right: 0; } 25% { margin-right: 2px; } 50% { margin-right: -2px; } }
|
||||
|
||||
@media (min-width: 1800px) {
|
||||
:root { --base-font-size: 15px; --ui-scale: 1.2; }
|
||||
:root { --base-font-size: 14px; --ui-scale: 1.2; }
|
||||
}
|
||||
|
||||
@media (min-width: 2048px) {
|
||||
:root { --base-font-size: 16px; --ui-scale: 1.36; }
|
||||
:root { --base-font-size: 15px; --ui-scale: 1.36; }
|
||||
}
|
||||
|
||||
@media (min-width: 2560px) {
|
||||
:root { --base-font-size: 18px; --ui-scale: 1.58; }
|
||||
:root { --base-font-size: 16px; --ui-scale: 1.58; }
|
||||
}
|
||||
|
||||
@media (min-width: 3200px) {
|
||||
:root { --base-font-size: 20px; --ui-scale: 1.88; }
|
||||
:root { --base-font-size: 18px; --ui-scale: 1.88; }
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
|
||||
@@ -1,52 +1,48 @@
|
||||
.box-window {
|
||||
width: min(760px, calc(100vw - 36px));
|
||||
width: min(860px, calc(100vw - 36px));
|
||||
height: min(560px, calc(100vh - 36px));
|
||||
zoom: var(--ui-scale);
|
||||
}
|
||||
|
||||
.box-toolbar {
|
||||
display: flex;
|
||||
body.fit-window .box-window {
|
||||
width: min(980px, calc(100vw / var(--ui-scale) - 20px));
|
||||
height: min(720px, calc(100vh / var(--ui-scale) - 20px));
|
||||
}
|
||||
|
||||
.box-command-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(0, 1fr) auto auto;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
height: 40px;
|
||||
min-height: 40px;
|
||||
padding: 6px 8px;
|
||||
}
|
||||
|
||||
.box-toolbar-button {
|
||||
width: 116px;
|
||||
width: auto;
|
||||
min-width: 158px;
|
||||
display: inline-flex;
|
||||
gap: 6px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.box-toolbar-button img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.box-address {
|
||||
display: grid;
|
||||
grid-template-columns: 58px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
height: 28px;
|
||||
padding: 0 8px 6px;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
line-height: 13px;
|
||||
}
|
||||
|
||||
.box-meta {
|
||||
display: grid;
|
||||
grid-template-columns: 58px minmax(0, 1fr);
|
||||
align-items: center;
|
||||
height: 24px;
|
||||
padding: 0 8px 6px;
|
||||
gap: 6px;
|
||||
color: #333333;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.box-address code {
|
||||
grid-column: 1;
|
||||
min-width: 0;
|
||||
height: 22px;
|
||||
width: 100%;
|
||||
height: 24px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding: 0 6px;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
color: #000000;
|
||||
background: #ffffff;
|
||||
border-top: 1px solid #808080;
|
||||
@@ -54,6 +50,33 @@
|
||||
border-right: 1px solid #dfdfdf;
|
||||
border-bottom: 1px solid #dfdfdf;
|
||||
font-family: inherit;
|
||||
font-size: 13px;
|
||||
line-height: 13px;
|
||||
text-align: left;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.win98-window.popup-window {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.win98-window.popup-window.is-visible {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.box-meta {
|
||||
min-height: 24px;
|
||||
padding: 0 8px 6px;
|
||||
color: #333333;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
.box-meta span {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
min-height: 18px;
|
||||
}
|
||||
|
||||
.box-panel {
|
||||
@@ -169,6 +192,98 @@
|
||||
color: #ffffff;
|
||||
}
|
||||
|
||||
.box-context-menu {
|
||||
position: fixed;
|
||||
min-width: 168px;
|
||||
display: none;
|
||||
padding: 2px;
|
||||
background: var(--w98-gray);
|
||||
border-top: 2px solid #ffffff;
|
||||
border-left: 2px solid #ffffff;
|
||||
border-right: 2px solid #000000;
|
||||
border-bottom: 2px solid #000000;
|
||||
box-shadow: 3px 3px 0 rgba(0,0,0,.35);
|
||||
z-index: 95;
|
||||
}
|
||||
|
||||
.box-context-menu.is-visible {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.box-context-menu button {
|
||||
width: 100%;
|
||||
min-height: 24px;
|
||||
display: grid;
|
||||
grid-template-columns: 20px minmax(0, 1fr);
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 2px 7px;
|
||||
color: #000000;
|
||||
background: transparent;
|
||||
border: 0;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
line-height: 13px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.box-context-menu button:hover,
|
||||
.box-context-menu button:focus-visible {
|
||||
color: #ffffff;
|
||||
background: #000078;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.box-context-menu img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
object-fit: contain;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.properties-grid {
|
||||
display: grid;
|
||||
grid-template-columns: 92px minmax(0, 1fr);
|
||||
gap: 7px 10px;
|
||||
padding: 10px;
|
||||
background: #dfdfdf;
|
||||
border-top: 1px solid #808080;
|
||||
border-left: 1px solid #808080;
|
||||
border-right: 1px solid #ffffff;
|
||||
border-bottom: 1px solid #ffffff;
|
||||
}
|
||||
|
||||
.properties-grid dt {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.properties-grid dd {
|
||||
min-width: 0;
|
||||
margin: 0;
|
||||
overflow-wrap: anywhere;
|
||||
}
|
||||
|
||||
.preview-frame {
|
||||
width: min(680px, 100%);
|
||||
min-height: 260px;
|
||||
max-height: min(520px, calc(100vh - 160px));
|
||||
display: block;
|
||||
margin: 0 auto;
|
||||
background: #000000;
|
||||
border: 1px solid #808080;
|
||||
}
|
||||
|
||||
.preview-frame.is-text {
|
||||
min-height: 240px;
|
||||
padding: 10px;
|
||||
overflow: auto;
|
||||
color: #00ff66;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.box-empty {
|
||||
margin: 0;
|
||||
padding: 12px;
|
||||
@@ -205,6 +320,15 @@
|
||||
height: 26px;
|
||||
}
|
||||
|
||||
.box-command-row {
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
|
||||
.box-address {
|
||||
grid-column: 1 / -1;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.box-panel {
|
||||
margin: 0 6px 8px;
|
||||
}
|
||||
|
||||
@@ -114,6 +114,22 @@ body.fit-window .desktop-wrap {
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.menu-action[aria-disabled="true"] {
|
||||
color: #808080;
|
||||
text-shadow: 1px 1px 0 #ffffff;
|
||||
}
|
||||
|
||||
.menu-action[aria-disabled="true"] img {
|
||||
opacity: .55;
|
||||
filter: grayscale(1);
|
||||
}
|
||||
|
||||
.menu-action[aria-disabled="true"]:hover,
|
||||
.menu-action[aria-disabled="true"]:focus-visible {
|
||||
color: #808080;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.menu-action img {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
@@ -672,15 +688,21 @@ body.fit-window .desktop-wrap {
|
||||
}
|
||||
|
||||
.option-check input[type="checkbox"]:checked + span::after {
|
||||
content: "✓";
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 2px;
|
||||
top: -3px;
|
||||
left: 4px;
|
||||
top: 6px;
|
||||
width: 2px;
|
||||
height: 2px;
|
||||
color: #000000;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-size: 18px;
|
||||
line-height: 18px;
|
||||
font-weight: bold;
|
||||
background: #000000;
|
||||
box-shadow:
|
||||
2px 2px 0 #000000,
|
||||
4px 4px 0 #000000,
|
||||
6px 2px 0 #000000,
|
||||
8px 0 0 #000000,
|
||||
10px -2px 0 #000000;
|
||||
image-rendering: pixelated;
|
||||
}
|
||||
|
||||
.upload-select,
|
||||
@@ -753,7 +775,7 @@ body.fit-window .desktop-wrap {
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-size: 13px;
|
||||
line-height: 16px;
|
||||
white-space: pre-wrap;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
.terminal-box::after {
|
||||
@@ -871,6 +893,8 @@ body.fit-window .desktop-wrap {
|
||||
}
|
||||
|
||||
.popup-body {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
max-height: calc(100vh - 90px);
|
||||
padding: 12px;
|
||||
overflow: auto;
|
||||
@@ -884,17 +908,40 @@ body.fit-window .desktop-wrap {
|
||||
.popup-body ul,
|
||||
.popup-body ol { margin: 0 0 8px 18px; padding: 0; }
|
||||
.popup-body li { margin: 0 0 4px; }
|
||||
.popup-body pre {
|
||||
.popup-body .code-block {
|
||||
margin: 6px 0 10px;
|
||||
padding: 8px;
|
||||
width: 100%;
|
||||
display: block;
|
||||
overflow: auto;
|
||||
color: #00ff66;
|
||||
background: #000000;
|
||||
border: 0;
|
||||
font-family: 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', 'Courier New', monospace;
|
||||
font-size: 12px;
|
||||
line-height: 15px;
|
||||
white-space: pre-wrap;
|
||||
white-space: pre;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.popup-window.is-about-popup .popup-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: stretch;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.about-popup-content {
|
||||
flex: 1 1 auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.about-popup-content p:last-child {
|
||||
margin-top: auto;
|
||||
margin-bottom: 0;
|
||||
padding-top: 10px;
|
||||
}
|
||||
|
||||
.popup-close {
|
||||
@@ -1012,16 +1059,16 @@ body.fit-window .desktop-wrap {
|
||||
.copy-fallback-text {
|
||||
width: 100%;
|
||||
min-height: 58px;
|
||||
font-family: 'PixelOperatorMono', monospace;
|
||||
font-family: 'MonoCraft', 'PixelOperatorMono', monospace;
|
||||
}
|
||||
|
||||
.popup-body pre {
|
||||
.popup-body .code-block {
|
||||
user-select: text;
|
||||
cursor: text;
|
||||
padding-bottom: 22px;
|
||||
}
|
||||
|
||||
.popup-body pre::after {
|
||||
.popup-body .code-block::after {
|
||||
content: "\A";
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
@@ -3,9 +3,7 @@
|
||||
flex-direction: column;
|
||||
color: #000000;
|
||||
background-color: #c0c0c0;
|
||||
background-image:
|
||||
linear-gradient(180deg, rgba(255,255,255,.34), rgba(0,0,0,.06)),
|
||||
repeating-linear-gradient(45deg, rgba(255,255,255,.12) 0 1px, transparent 1px 5px);
|
||||
background-image: linear-gradient(180deg, rgba(255,255,255,.24), rgba(0,0,0,.06));
|
||||
border-top: 1px solid #ffffff;
|
||||
border-left: 1px solid #ffffff;
|
||||
border-right: 1px solid #000000;
|
||||
@@ -79,7 +77,7 @@
|
||||
border-right: 1px solid #000000;
|
||||
border-bottom: 1px solid #000000;
|
||||
box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-family: inherit;
|
||||
font-size: 12px;
|
||||
line-height: 12px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user