diff --git a/bun.lock b/bun.lock index 100d541..09246c3 100644 --- a/bun.lock +++ b/bun.lock @@ -12,6 +12,7 @@ "add": "^2.0.6", "oxfmt": "^0.49.0", "oxlint": "^1.64.0", + "typescript": "^6.0.3", }, }, }, @@ -282,6 +283,8 @@ "typed-query-selector": ["typed-query-selector@2.12.2", "", {}, "sha512-EOPFbyIub4ngnEdqi2yOcNeDLaX/0jcE1JoAXQDDMIthap7FoN795lc/SHfIq2d416VufXpM8z/lD+WRm2gfOQ=="], + "typescript": ["typescript@6.0.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw=="], + "undici-types": ["undici-types@7.21.0", "", {}, "sha512-w9IMgQrz4O0YN1LtB7K5P63vhlIOvC7opSmouCJ+ZywlPAlO9gIkJ+otk6LvGpAs2wg4econaCz3TvQ9xPoyuQ=="], "webdriver-bidi-protocol": ["webdriver-bidi-protocol@0.4.1", "", {}, "sha512-ARrjNjtWRRs2w4Tk7nqrf2gBI0QXWuOmMCx2hU+1jUt6d00MjMxURrhxhGbrsoiZKJrhTSTzbIrc554iKI10qw=="], diff --git a/package.json b/package.json index c7ca70a..f34741d 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@types/bun": "^1.3.13", "add": "^2.0.6", "oxfmt": "^0.49.0", - "oxlint": "^1.64.0" + "oxlint": "^1.64.0", + "typescript": "^6.0.3" } } diff --git a/public/index.html b/public/index.html index 99cbda4..704b318 100644 --- a/public/index.html +++ b/public/index.html @@ -179,6 +179,10 @@ background: rgba(46, 204, 113, 0.1); color: var(--green); } + .badge-wait { + background: rgba(255, 152, 0, 0.15); + color: #ff9800; + } .card-url-preview { font-size: 13px; color: var(--muted); @@ -578,6 +582,7 @@ + @@ -782,13 +787,15 @@ .map((v) => { const viewUrl = origin + "/v/" + v.id; const urlPreview = v.urls.map((u, i) => - `${u.url} (${u.durationSec}s)${u.forceDarkMode ? " 🌙" : ""}${u.bakeStyles ? " 🍞" : ""}` + `${u.url} (${u.durationSec}s${u.waitBeforeCaptureMs ? ` +${u.waitBeforeCaptureMs}ms` : ""})${u.forceDarkMode ? " 🌙" : ""}${u.bakeStyles ? " 🍞" : ""}` ).join(" → "); const anyBake = v.urls.some((u) => u.bakeStyles); + const anyWait = v.urls.some((u) => u.waitBeforeCaptureMs > 0); const badges = [ `${v.method.toUpperCase()}`, v.metaRefreshEnabled ? 'META-REFRESH' : "", anyBake ? 'BAKE' : "", + anyWait ? 'WAIT' : "", ] .filter(Boolean) .join(" "); @@ -798,6 +805,7 @@