馃搱 SPA for bank credit score analysis
lustre frontent oat-ui gleam
0

Configure Feed

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

vertis-climate / test / client_test.gleam
576 B 23 lines
1import client.{type Message, type Model} 2import client/route 3import gleam/uri 4import gleeunit 5import lustre/dev/simulate 6 7pub fn main() { 8 gleeunit.main() 9} 10 11pub fn simulation(init: client.Init) -> simulate.Simulation(Model, Message) { 12 simulate.application(client.init, client.update, client.view) 13 |> simulate.start(init) 14} 15 16/// Provides an initial uri for the Model to be initialized 17pub fn init(on route: route.Route) -> client.Init { 18 let assert Ok(uri) = uri.parse("https://localhost:1234") 19 let path = route.path(route) 20 21 uri.Uri(..uri, path:) 22 |> client.Init 23}