1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| {% import ( "{{{ .Package }}}/app" "{{{ .Package }}}/app/controller/cutil" "{{{ .Package }}}/app/util" "{{{ .Package }}}/views/components" "{{{ .Package }}}/views/layout" "{{{ .Package }}}/views/vutil" ) %}
{% code type WASM struct { layout.Basic } %}
{% func (p *WASM) Body(as *app.State, ps *cutil.PageState) %} <div class="card"> <h3>{%= components.SVGRefIcon(`gift`, ps) %}{%s util.AppName %} WASM</h3> <em id="load-status">Loading...</em> </div> <div class="card"> <h3>Audits</h3> <ul id="audit-log"></ul> </div> <script> function wasmInit(ms) { document.getElementById("load-status").innerText = "Loaded in [" + ms + "ms]"; } </script> {%= vutil.WASMScript() %} {% endfunc %}
|