diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9ce6bd3cc..ca54fca2c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,7 +15,7 @@
### Website
- Complete redesign of the website
-- Ditched the whole `node` ecosystem in favor for pure `HTML`/`CSS`/`Javacript`
+- Rewrote the whole application and removed `node`/`npm`/`pnpm` dependencies in favor for pure `HTML`/`CSS`/`Javascript`
- Website is now served by the server
- Added Trading View attribution link to the settings frame and file in the lightweight charts folder
- Many other changes
diff --git a/README.md b/README.md
index cb5939e2a..4794d1ed0 100644
--- a/README.md
+++ b/README.md
@@ -155,7 +155,7 @@ It uses 2 servers, a full and a light one without the parser running but with st
Cloudflare is used for their tunnel + CDN services.
-> Though it's recommended to change to default **Browser Cache TTL** configuration from `4 Hours` to `Respect Existing Headers` (in `Websites / YOUR_DOMAIN / Caching / Configuration / Browser Cache TTL`)
+Though it's recommended to change to default **Browser Cache TTL** configuration from `4 Hours` to `Respect Existing Headers` (in `Websites / YOUR_DOMAIN / Caching / Configuration / Browser Cache TTL`) and activate `Always use https`.
diff --git a/server/src/api/handlers/dataset.rs b/server/src/api/handlers/dataset.rs
index d6f0c9d59..0c0b382f7 100644
--- a/server/src/api/handlers/dataset.rs
+++ b/server/src/api/handlers/dataset.rs
@@ -49,10 +49,6 @@ fn _dataset_handler(
query: Query,
AppState { routes }: AppState,
) -> color_eyre::Result {
- if path.contains("favicon") {
- return Err(eyre!("Don't support favicon"));
- }
-
log(&format!(
"{}{}",
path,
@@ -98,11 +94,13 @@ fn _dataset_handler(
match kind {
Kind::Date => {
let datasets = DateMap::::_read_dir(&route.file_path, &route.serialization);
+
process_datasets(headers, kind, &mut chunk, &mut route, query, datasets)?;
}
Kind::Height => {
let datasets =
HeightMap::::_read_dir(&route.file_path, &route.serialization);
+
process_datasets(headers, kind, &mut chunk, &mut route, query, datasets)?;
}
_ => panic!(),
@@ -159,7 +157,9 @@ where
return Err(eyre!("Couldn't find chunk"));
}
- route.file_path = path.unwrap().to_str().unwrap().to_string();
+ let path = path.unwrap();
+
+ route.file_path = path.to_str().unwrap().to_string();
let offset = match kind {
Kind::Date => 1,
diff --git a/server/src/api/handlers/response.rs b/server/src/api/handlers/response.rs
index f279fb6d9..108d79e30 100644
--- a/server/src/api/handlers/response.rs
+++ b/server/src/api/handlers/response.rs
@@ -54,14 +54,14 @@ fn value_to_response(value: T) -> Response
where
T: Serialize,
{
- generic_to_reponse(value, None, 5)
+ generic_to_reponse(value, None, 1)
}
fn dataset_to_response(dataset: T, chunk: Chunk) -> Response
where
T: Serialize,
{
- generic_to_reponse(dataset, Some(chunk), 60)
+ generic_to_reponse(dataset, Some(chunk), 5)
}
pub fn generic_to_reponse(generic: T, chunk: Option, cache_time: u64) -> Response
@@ -71,7 +71,7 @@ where
let mut response = {
if let Some(chunk) = chunk {
Json(WrappedDataset {
- source: "https://satonomics.xyz",
+ source: "https://kibo.money",
chunk,
dataset: generic,
})
diff --git a/server/src/header_map.rs b/server/src/header_map.rs
index dbfc09ddd..f73dd18bb 100644
--- a/server/src/header_map.rs
+++ b/server/src/header_map.rs
@@ -1,11 +1,19 @@
use std::path::Path;
-use axum::http::{header, HeaderMap};
-use chrono::{DateTime, Utc};
+use axum::{
+ body::Body,
+ http::{header, HeaderMap, Response},
+ response::IntoResponse,
+};
+use chrono::{DateTime, Timelike, Utc};
use parser::log;
-use reqwest::header::HOST;
+use reqwest::{
+ header::{HOST, IF_MODIFIED_SINCE},
+ StatusCode,
+};
const STALE_IF_ERROR: u64 = 30_000_000; // 1 Year ish
+const MODIFIED_SINCE_FORMAT: &str = "%a, %d %b %Y %H:%M:%S GMT";
pub trait HeaderMapUtils {
fn get_scheme(&self) -> &str;
@@ -16,6 +24,12 @@ pub trait HeaderMapUtils {
fn insert_cors(&mut self);
+ fn get_if_modified_since(&self) -> Option>;
+ fn check_if_modified_since(
+ &self,
+ path: &Path,
+ ) -> color_eyre::Result<(DateTime, Option>)>;
+
fn insert_cache_control_immutable(&mut self);
fn insert_cache_control_revalidate(&mut self, max_age: u64, stale_while_revalidate: u64);
fn insert_last_modified(&mut self, date: DateTime);
@@ -83,11 +97,49 @@ impl HeaderMapUtils for HeaderMap {
}
fn insert_last_modified(&mut self, date: DateTime) {
- let formatted = date.format("%a, %d %b %Y %H:%M:%S GMT").to_string();
+ let formatted = date.format(MODIFIED_SINCE_FORMAT).to_string();
self.insert(header::LAST_MODIFIED, formatted.parse().unwrap());
}
+ fn check_if_modified_since(
+ &self,
+ path: &Path,
+ ) -> color_eyre::Result<(DateTime, Option>)> {
+ let time = path.metadata()?.modified()?;
+ let date: DateTime = time.into();
+ let date = date.with_nanosecond(0).unwrap();
+ let mut response_opt = None;
+
+ if let Some(if_modified_since) = self.get_if_modified_since() {
+ if if_modified_since == date {
+ let mut response = (StatusCode::NOT_MODIFIED, "").into_response();
+ let headers = response.headers_mut();
+ headers.insert_cors();
+ response_opt.replace(response);
+ }
+ }
+
+ Ok((date, response_opt))
+ }
+
+ fn get_if_modified_since(&self) -> Option> {
+ if let Some(modified_since) = self.get(IF_MODIFIED_SINCE) {
+ if let Ok(modified_since) = modified_since.to_str() {
+ let date = DateTime::parse_from_str(
+ &format!("{modified_since} +00:00"),
+ &format!("{MODIFIED_SINCE_FORMAT} %z"),
+ );
+
+ if let Ok(x) = date {
+ return Some(x.to_utc());
+ }
+ }
+ }
+
+ None
+ }
+
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
fn insert_content_type(&mut self, path: &Path) {
match path.extension().unwrap().to_str().unwrap() {
diff --git a/server/src/website/handlers/file.rs b/server/src/website/handlers/file.rs
index 5ca53dce5..c04617f3b 100644
--- a/server/src/website/handlers/file.rs
+++ b/server/src/website/handlers/file.rs
@@ -9,7 +9,6 @@ use axum::{
http::HeaderMap,
response::{IntoResponse, Response},
};
-use chrono::{DateTime, Utc};
use parser::log;
use reqwest::StatusCode;
@@ -47,10 +46,13 @@ pub async fn index_handler(headers: HeaderMap) -> Response {
}
fn path_to_response(headers: HeaderMap, path: &Path) -> Response {
- let mut response;
+ let (date, response) = headers.check_if_modified_since(path).unwrap();
- let time = path.metadata().unwrap().modified().unwrap();
- let date: DateTime = time.into();
+ if let Some(response) = response {
+ return response;
+ }
+
+ let mut response;
let is_localhost = headers.check_if_host_is_localhost();
@@ -76,7 +78,10 @@ fn path_to_response(headers: HeaderMap, path: &Path) -> Response {
if !is_localhost {
let serialized_path = path.to_str().unwrap();
- if serialized_path.contains("fonts/") || serialized_path.contains("assets/pwa/") || serialized_path.contains("packages/") {
+ if serialized_path.contains("fonts/")
+ || serialized_path.contains("assets/pwa/")
+ || serialized_path.contains("packages/")
+ {
headers.insert_cache_control_immutable();
} else {
headers.insert_cache_control_revalidate(10, 50);
diff --git a/website/assets/pwa/2024-09-16_10:57:54/favicon-196.png b/website/assets/pwa/2024-09-16_10:57:54/favicon-196.png
deleted file mode 100644
index 3c787c8bf..000000000
Binary files a/website/assets/pwa/2024-09-16_10:57:54/favicon-196.png and /dev/null differ
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-icon-180.png b/website/assets/pwa/2024-09-17_09-06-03/apple-icon-180.png
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-icon-180.png
rename to website/assets/pwa/2024-09-17_09-06-03/apple-icon-180.png
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1125-2436.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1125-2436.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1125-2436.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1125-2436.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1136-640.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1136-640.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1136-640.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1136-640.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1170-2532.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1170-2532.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1170-2532.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1170-2532.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1179-2556.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1179-2556.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1179-2556.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1179-2556.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1242-2208.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1242-2208.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1242-2208.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1242-2208.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1242-2688.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1242-2688.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1242-2688.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1242-2688.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1284-2778.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1284-2778.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1284-2778.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1284-2778.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1290-2796.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1290-2796.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1290-2796.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1290-2796.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1334-750.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1334-750.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1334-750.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1334-750.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1488-2266.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1488-2266.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1488-2266.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1488-2266.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1536-2048.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1536-2048.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1536-2048.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1536-2048.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1620-2160.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1620-2160.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1620-2160.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1620-2160.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1640-2360.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1640-2360.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1640-2360.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1640-2360.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1668-2224.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1668-2224.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1668-2224.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1668-2224.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1668-2388.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1668-2388.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1668-2388.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1668-2388.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-1792-828.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-1792-828.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-1792-828.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-1792-828.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2048-1536.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2048-1536.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2048-1536.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2048-1536.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2048-2732.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2048-2732.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2048-2732.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2048-2732.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2160-1620.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2160-1620.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2160-1620.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2160-1620.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2208-1242.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2208-1242.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2208-1242.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2208-1242.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2224-1668.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2224-1668.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2224-1668.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2224-1668.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2266-1488.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2266-1488.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2266-1488.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2266-1488.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2360-1640.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2360-1640.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2360-1640.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2360-1640.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2388-1668.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2388-1668.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2388-1668.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2388-1668.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2436-1125.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2436-1125.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2436-1125.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2436-1125.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2532-1170.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2532-1170.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2532-1170.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2532-1170.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2556-1179.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2556-1179.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2556-1179.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2556-1179.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2688-1242.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2688-1242.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2688-1242.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2688-1242.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2732-2048.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2732-2048.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2732-2048.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2732-2048.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2778-1284.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2778-1284.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2778-1284.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2778-1284.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-2796-1290.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-2796-1290.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-2796-1290.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-2796-1290.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-640-1136.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-640-1136.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-640-1136.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-640-1136.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-750-1334.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-750-1334.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-750-1334.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-750-1334.jpg
diff --git a/website/assets/pwa/2024-09-16_10:57:54/apple-splash-828-1792.jpg b/website/assets/pwa/2024-09-17_09-06-03/apple-splash-828-1792.jpg
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/apple-splash-828-1792.jpg
rename to website/assets/pwa/2024-09-17_09-06-03/apple-splash-828-1792.jpg
diff --git a/website/assets/pwa/2024-09-17_09-06-03/favicon-196.png b/website/assets/pwa/2024-09-17_09-06-03/favicon-196.png
new file mode 100644
index 000000000..85826d936
Binary files /dev/null and b/website/assets/pwa/2024-09-17_09-06-03/favicon-196.png differ
diff --git a/website/assets/pwa/2024-09-16_10:57:54/index.html b/website/assets/pwa/2024-09-17_09-06-03/index.html
similarity index 71%
rename from website/assets/pwa/2024-09-16_10:57:54/index.html
rename to website/assets/pwa/2024-09-17_09-06-03/index.html
index 3fcd37551..81a4eb713 100644
--- a/website/assets/pwa/2024-09-16_10:57:54/index.html
+++ b/website/assets/pwa/2024-09-17_09-06-03/index.html
@@ -1,43 +1,43 @@
-
-
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/website/assets/pwa/2024-09-16_10:57:54/manifest-icon-192.maskable.png b/website/assets/pwa/2024-09-17_09-06-03/manifest-icon-192.maskable.png
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/manifest-icon-192.maskable.png
rename to website/assets/pwa/2024-09-17_09-06-03/manifest-icon-192.maskable.png
diff --git a/website/assets/pwa/2024-09-16_10:57:54/manifest-icon-512.maskable.png b/website/assets/pwa/2024-09-17_09-06-03/manifest-icon-512.maskable.png
similarity index 100%
rename from website/assets/pwa/2024-09-16_10:57:54/manifest-icon-512.maskable.png
rename to website/assets/pwa/2024-09-17_09-06-03/manifest-icon-512.maskable.png
diff --git a/website/generate-icons.sh b/website/generate-icons.sh
index 20f397c7c..148b8481a 100755
--- a/website/generate-icons.sh
+++ b/website/generate-icons.sh
@@ -1,12 +1,12 @@
#!/usr/bin/env bash
-DATE=$(date -u '+%Y-%m-%d_%H:%M:%S')
+DATE=$(date -u '+%Y-%m-%d_%H-%M-%S')
OUTPUT="/assets/pwa/${DATE}"
mkdir ".${OUTPUT}"
cp "./assets/pwa/index.html" ".${OUTPUT}/"
-pwa-asset-generator "../assets/logo-dove-orange.svg" ".${OUTPUT}" \
+pwa-asset-generator "../assets/logo-icon.svg" ".${OUTPUT}" \
--index ".${OUTPUT}/index.html" \
--manifest "./manifest.webmanifest" \
--favicon \
@@ -31,20 +31,3 @@ pwa-asset-generator "../assets/logo-dove-light.svg" ".${OUTPUT}" \
--padding "min(35vh, 35vw)" \
--path-override "${OUTPUT}" \
--quality "100"
-
-# pwa-asset-generator "../assets/logo-icon.svg" "./assets" \
-# --index "./assets/index.html" \
-# --splash-only \
-# --background "#fffaf6" \
-# --padding "min(40vh, 40vw)" \
-# --path-override "/assets" \
-# --quality "100"
-
-# pwa-asset-generator "../assets/logo-icon.svg" "./assets" \
-# --index "./assets/index.html" \
-# --splash-only \
-# --dark-mode \
-# --background "#12100f" \
-# --padding "min(40vh, 40vw)" \
-# --path-override "/assets" \
-# --quality "100"
diff --git a/website/index.html b/website/index.html
index 68e022d86..ae7859986 100644
--- a/website/index.html
+++ b/website/index.html
@@ -1,4 +1,4 @@
-
+
@@ -1014,6 +1014,7 @@
margin: -1rem -1.5rem;
padding: 1rem 1.5rem;
overflow-x: auto;
+ min-width: 0;
> div {
flex: 0;
@@ -1284,11 +1285,10 @@
}
-
+