diff --git a/.gitignore b/.gitignore index 05fe5de31..4652da58c 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,6 @@ snapshots*/ # Docker docker/kibo + +# Types +website/scripts/types/paths.d.ts diff --git a/CHANGELOG.md b/CHANGELOG.md index 60ef8f069..df3dda348 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -43,7 +43,7 @@ - Added handling of SIGINT and SIGTERM terminal signals which menas you can now safely CTRL+C or kill the parser while it's exporting - Added config print at the start of the program - Compressed `empty_address_data` struct to save space (should shave of between up to 50% of the `address_index_to_empty_address_data` database) -- Doubled the number of `txid_to_tx_data` databases from 4096 to 8192 +- ~Doubled the number of `txid_to_tx_data` databases from 4096 to 8192~ If you ran with this you need to delete that database - Added `--recompute_computed true` argument, to allow recomputation of computed datasets in case of a bug - Fixed not saved arguments, not being processed properly - Fixed bug in `generic_map.multi_insert_simple_average` diff --git a/parser/src/databases/txid_to_tx_data.rs b/parser/src/databases/txid_to_tx_data.rs index 43c611815..696516a22 100644 --- a/parser/src/databases/txid_to_tx_data.rs +++ b/parser/src/databases/txid_to_tx_data.rs @@ -114,7 +114,7 @@ impl TxidToTxData { } fn db_index(txid: &Txid) -> u16 { - ((txid[0] as u16) << 5) + ((txid[1] as u16) >> 3) + ((txid[0] as u16) << 4) + ((txid[1] as u16) >> 4) } } diff --git a/server/src/api/handlers/response.rs b/server/src/api/handlers/response.rs index db330f482..24e045739 100644 --- a/server/src/api/handlers/response.rs +++ b/server/src/api/handlers/response.rs @@ -144,7 +144,7 @@ pub fn update_reponse_headers( let headers = response.headers_mut(); let max_age = cache_time; - let stale_while_revalidate = 2 * max_age; + let stale_while_revalidate = max_age; headers.insert_cors(); headers.insert_cache_control_revalidate(max_age, stale_while_revalidate); diff --git a/server/src/website/handlers/file.rs b/server/src/website/handlers/file.rs index 23d7aad2b..6f1e4f636 100644 --- a/server/src/website/handlers/file.rs +++ b/server/src/website/handlers/file.rs @@ -102,7 +102,7 @@ fn path_to_response(headers: HeaderMap, path: &Path) -> Response { { headers.insert_cache_control_immutable(); } else { - headers.insert_cache_control_revalidate(10, 50); + headers.insert_cache_control_revalidate(1, 1); } } diff --git a/website/index.html b/website/index.html index 71a89fcd4..908673216 100644 --- a/website/index.html +++ b/website/index.html @@ -489,7 +489,7 @@ header { flex-shrink: 0; display: flex; - padding-top: 0.25rem /* 4px */; + white-space: nowrap; overflow-x: auto; padding-bottom: 1.5rem; @@ -499,6 +499,10 @@ padding-right: 1.5rem; margin-right: -1.5rem; + @media (min-width: 768px) { + padding-top: 0.25rem /* 4px */; + } + & > * { flex: 1; } @@ -579,6 +583,13 @@ } } + > a { + flex: 1; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } + > span.emoji { filter: grayscale(100%) brightness(66%) opacity(66%); } @@ -630,10 +641,6 @@ > *:not(input) + * { margin-top: -0.5rem /* -8px */; } - - .list & { - color: var(--color); - } } &:has(input:checked) { @@ -849,6 +856,12 @@ } } + @media (min-width: 768px) { + .md\:hidden { + display: none !important; + } + } + /* * --- */ @@ -891,7 +904,7 @@ > details > summary { &, * { - color: var(--color) !important; + color: var(--color); } } @@ -906,55 +919,18 @@ } } - &:hover { - &::before, - > details > summary > span.marker { - border-color: var(--orange) !important; - z-index: 20; - } - - > details:not([open]) > summary > span.marker { - background-color: var(--orange) !important; - } - } - &:has(*[data-highlight]) { > details > summary::after { - color: var(--color) !important; border-color: var(--color) !important; } } - &:has(*:hover) { - > details > summary { - &, - * { - color: var(--orange) !important; - } - - &:not(:hover)::after { - border-color: var(--orange) !important; - } - } - } - &:has(~ *[data-highlight]) { border-color: var(--color) !important; } - &:has(~ *:hover) { - border-color: var(--orange) !important; - } - - &:has(~ *[data-highlight]), - &:has(~ *:hover) { - &::before { - z-index: -10 !important; - } - } - - &:has(*:hover)::before { - z-index: 10 !important; + &:has(~ *[data-highlight])::before { + z-index: -10 !important; } > details > summary { @@ -1209,187 +1185,6 @@ display: none; } } - - @media (min-width: 768px) { - .md\:hidden { - display: none !important; - } - } - - - - @@ -2188,90 +1983,137 @@
+
- -
+ + - + +
- +