diff --git a/Cargo.toml b/Cargo.toml index f73475a..6469f75 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,7 +49,7 @@ lib-package = "site-frontend" site-root = "target/site" site-pkg-dir = "pkg" -style-file = "crates/site-app/style/main.scss" +style-file = "crates/site-app/style/main.css" assets-dir = "crates/site-app/public" site-addr = "127.0.0.1:3000" @@ -57,7 +57,7 @@ reload-port = 3001 browserquery = "defaults" -tailwind-input-file = "crates/site-app/style/main.scss" +tailwind-input-file = "crates/site-app/style/main.css" tailwind-config-file = "crates/site-app/style/tailwind/tailwind.config.js" # set by cargo-leptos diff --git a/content/posts/a-new-rust-job-runner.md b/content/posts/a-new-rust-job-runner.md index 0ec6e20..e9af8b6 100644 --- a/content/posts/a-new-rust-job-runner.md +++ b/content/posts/a-new-rust-job-runner.md @@ -1,6 +1,6 @@ --- title: "A New Rust Job Runner" -written_on: "09/07/24" +written_on: "2024.09.07" public: false --- diff --git a/content/posts/building-this-blog.md b/content/posts/building-this-blog.md index 40774e8..f489871 100644 --- a/content/posts/building-this-blog.md +++ b/content/posts/building-this-blog.md @@ -1,6 +1,6 @@ --- title: "Building this blog: A Space Odyssey" -written_on: "28/01/24" +written_on: "2024.01.28" public: true --- diff --git a/content/posts/fully-procedural-interactions.md b/content/posts/fully-procedural-interactions.md index 93cf431..21d49d6 100644 --- a/content/posts/fully-procedural-interactions.md +++ b/content/posts/fully-procedural-interactions.md @@ -1,6 +1,6 @@ --- title: "Fully Procedural Interactions in Games" -written_on: "08/08/24" +written_on: "2024.08.08" public: true --- diff --git a/content/posts/jsonp-who-asked.md b/content/posts/jsonp-who-asked.md new file mode 100644 index 0000000..5d65d6a --- /dev/null +++ b/content/posts/jsonp-who-asked.md @@ -0,0 +1,51 @@ +--- +title: "jsonp - Who Asked?" +written_on: "2024.11.23" +public: true +--- + +Often I need to prettify JSON. +I probably don't need to justify that need to you. +For many years I have used the site [jsonprettify.com](https://jsonprettify.com), which does the job well. +It doesn't look quite how I would have it look, but it's fit for purpose and allows formatting at different levels of expansion. + +Recently, I (mistakenly) thought it had gone down. +This was most likely due to me misremembering the URL on a new machine that didn't remember it for me, but I'm in too deep now to back out anyways. + +Finding my favorite tool missing, there's only one real solution. +Build it myself. + +## Down the hole + +The construction started off pretty simple. +I have been using Rust for the web for the last couple years, and though it changes frequently, I have found that temporarily forsaking JS has made it impossible to pick up again, so here we are. +Leptos has been my tool of choice, and since I'm a Nix stan, I package it with Nix. +All this I have been able to borrow from previous projects of mine. + +The main functionality wasn't so difficult either. +The only hurdle is trying not to perform too many copies and not to skip frames when dealing with large payloads. +I found that the HTML `