tangled
alpha
login
or
join now
kokirigla.de
/
nara
0
fork
atom
online Minecraft written book viewer
0
fork
atom
overview
issues
pulls
pipelines
chore: cargo fmt
kokirigla.de
3 weeks ago
02ff7447
b0a5c7d1
verified
This commit was signed with the committer's
known signature
.
kokirigla.de
SSH Key Fingerprint:
SHA256:BlSEtD3ZoKT3iKveofI8gba+lZ9CEolKRM1Pzy3pAwg=
+3
-2
1 changed file
expand all
collapse all
unified
split
src
web
assets.rs
+3
-2
src/web/assets.rs
···
19
19
include_bytes!("assets/font/bold_italic.woff2");
20
20
21
21
const CSS_STYLES_TEMPLATE: &str = include_str!("assets/stylesheet.css");
22
22
-
static CSS_STYLES: LazyLock<String> =
23
23
-
LazyLock::new(|| CSS_STYLES_TEMPLATE.replace("__NARA_ASSET_VERSION__", crate::VERSION));
22
22
+
static CSS_STYLES: LazyLock<String> = LazyLock::new(|| {
23
23
+
CSS_STYLES_TEMPLATE.replace("__NARA_ASSET_VERSION__", crate::VERSION)
24
24
+
});
24
25
25
26
const WEBP_MIME_TYPE: &str = "image/webp";
26
27
const WOFF2_MIME_TYPE: &str = "font/woff2";