Skip to content

Latest commit

 

History

60 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

app-demo

WebTyp demo app — the platformd shell wired with three CRUD modules, served from this dedicated repo so the demo never weighs on library go.mods.

The reference demo used by github.com/webtyp/layout (platformd): a playground to import ANY webtyp package freely and test it in a running app.

Modules

  • modules/devices — full CRUD (form + list) over an in-memory storage/mem store via layout/crudview.
  • modules/medicalhistory — CRUD with a selectsearch/targetdate list.
  • modules/about — static module.
  • web/client.go — the composition root: platformd.Platform + hiddenModule (exercises CanView), mock brand/identity, themetoggle user action, and the fieldset global form skin.

Translations

config/lang.go is the demo's one dictionary: it registers the English→Spanish words the framework's own chrome needs (layout/crudview's confirm dialog, components/calendarslider's month/weekday names, …) via webtyp.com/fmt/lang, and activates Spanish (lang.OutLang(lang.ES)). Libraries never hardcode a language themselves — they render an English key through lang.Translate(...); this file is what turns that into Spanish for the demo. web/client.go blank-imports config so the registration actually runs. Adding a module whose framework component has its own translatable chrome? Add its words to this same file.

Run

webtyp            # from this repo; dev server :8080, MCP :6060

Layout dependency

The demo consumes the shell via a local replace while layout is in monorepo development:

replace webtyp.com/layout => ../layout

With no replace, resolution falls back to the published webtyp.com/layout module. (A clone outside this workspace needs either the published version or the ../layout checkout next to it.)

About

TinyWasm demo app — platformd shell + CRUD modules. Free playground for every tinywasm package.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages