My personal website, in gleam+lustre!
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Can't even keep up frfr


Signed-off-by: MLC Bloeiman <mar@strawmelonjuice.com>

+9 -23
-12
dev/homepage/prepare.gleam
··· 72 72 } 73 73 } 74 74 75 - @deprecated("Why not just assert instead babe") 76 - fn try_annot( 77 - result: Result(a, e), 78 - otherwise msg: String, 79 - apply fun: fn(a) -> Result(b, String), 80 - ) -> Result(b, String) { 81 - case result { 82 - Ok(x) -> fun(x) 83 - Error(e) -> Error(msg <> "\n\n\n(" <> string.inspect(e) <> ")") 84 - } 85 - } 86 - 87 75 /// I used to just replace with self+new but this seems more neat 88 76 /// need to see what is actually more efficient, I doubt it makes much difference though. 89 77 ///
+3 -3
flake.lock
··· 2 2 "nodes": { 3 3 "nixpkgs": { 4 4 "locked": { 5 - "lastModified": 1776548001, 6 - "narHash": "sha256-ZSK0NL4a1BwVbbTBoSnWgbJy9HeZFXLYQizjb2DPF24=", 5 + "lastModified": 1776877367, 6 + "narHash": "sha256-EHq1/OX139R1RvBzOJ0aMRT3xnWyqtHBRUBuO1gFzjI=", 7 7 "owner": "NixOS", 8 8 "repo": "nixpkgs", 9 - "rev": "b12141ef619e0a9c1c84dc8c684040326f27cdcc", 9 + "rev": "0726a0ecb6d4e08f6adced58726b95db924cef57", 10 10 "type": "github" 11 11 }, 12 12 "original": {
+1 -1
gleam.toml
··· 6 6 lustre = ">= 5.6.0 and < 6.0.0" 7 7 modem = ">= 2.1.2 and < 3.0.0" 8 8 jot = ">= 10.1.1 and < 11.0.0" 9 - chilp = ">= 2.0.1-rc and < 3.0.0" 9 + chilp = ">= 2.0.1-rc1 and < 3.0.0" 10 10 # chilp = { git = "https://tangled.org/strawmelonjuice.com/chilp", ref = "main" } 11 11 # chilp = { path = "../../../tangled.sh/strawmelonjuice.com/chilp/" } 12 12 gleam_time = ">= 1.7.0 and < 2.0.0"
+2 -2
manifest.toml
··· 4 4 packages = [ 5 5 { name = "argv", version = "1.0.2", build_tools = ["gleam"], requirements = [], otp_app = "argv", source = "hex", outer_checksum = "BA1FF0929525DEBA1CE67256E5ADF77A7CDDFE729E3E3F57A5BDCAA031DED09D" }, 6 6 { name = "booklet", version = "1.1.0", build_tools = ["gleam"], requirements = [], otp_app = "booklet", source = "hex", outer_checksum = "08E0FDB78DC4D8A5D3C80295B021505C7D2A2E7B6C6D5EAB7286C36F4A53C851" }, 7 - { name = "chilp", version = "2.0.1-rc", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib", "gleam_time", "html_parser", "lustre", "rsvp"], otp_app = "chilp", source = "hex", outer_checksum = "42D6A3D9765FA0E1E44436B7E951E725959E385B31B7CB677514837B22FDBDA6" }, 7 + { name = "chilp", version = "2.0.1-rc1", build_tools = ["gleam"], requirements = ["gleam_json", "gleam_stdlib", "gleam_time", "html_parser", "lustre", "rsvp"], otp_app = "chilp", source = "hex", outer_checksum = "B2A2DDD1F1A4329823FCC98484224973ABA1D482D743655E62F7A0D286C20A7D" }, 8 8 { name = "directories", version = "1.2.0", build_tools = ["gleam"], requirements = ["envoy", "gleam_stdlib", "platform", "simplifile"], otp_app = "directories", source = "hex", outer_checksum = "D13090CFCDF6759B87217E8DDD73A75903A700148A82C1D33799F333E249BF9E" }, 9 9 { name = "envoy", version = "1.2.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "envoy", source = "hex", outer_checksum = "9C6FBB6BFA02A52798BEEC5977A738CAD6E4A057F4B67FD0C8061AD2502C191A" }, 10 10 { name = "exception", version = "2.1.0", build_tools = ["gleam"], requirements = ["gleam_stdlib"], otp_app = "exception", source = "hex", outer_checksum = "329D269D5C2A314F7364BD2711372B6F2C58FA6F39981572E5CA68624D291F8C" }, ··· 53 53 54 54 [requirements] 55 55 argv = { version = ">= 1.0.2 and < 2.0.0" } 56 - chilp = { version = ">= 2.0.1-rc and < 3.0.0" } 56 + chilp = { version = ">= 2.0.1-rc1 and < 3.0.0" } 57 57 gleam_erlang = { version = ">= 1.3.0 and < 2.0.0" } 58 58 gleam_json = { version = ">= 3.1.0 and < 4.0.0" } 59 59 gleam_regexp = { version = ">= 1.1.1 and < 2.0.0" }
+1 -3
src/homepage.gleam
··· 1 - import chilp/widget 2 - 3 1 const highlighted_posts = [4] 4 2 5 3 /// Post data ------------------------------------------------------------------- ··· 846 844 pub const address = data.address 847 845 848 846 pub fn main() { 849 - let assert Ok(_) = widget.register() 847 + let assert Ok(_) = chilp.register() 850 848 let app = lustre.application(app_init, update, view) 851 849 let assert Ok(_) = lustre.start(app, "#app", Nil) 852 850
+2 -2
src/homepage/chilp_only.gleam
··· 1 - import chilp/widget 1 + import chilp 2 2 3 3 pub fn main() { 4 - widget.register() 4 + chilp.register() 5 5 }