diff --git a/app/build.sh b/app/build.sh new file mode 100755 index 0000000..ab5f515 --- /dev/null +++ b/app/build.sh @@ -0,0 +1,5 @@ +#! /bin/sh + +cd $(dirname $0) +wasm-pack build --target web +rollup ./main.js --format iife --file ./pkg/bundle.js diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..4fb4979 --- /dev/null +++ b/app/index.html @@ -0,0 +1,13 @@ + + + + + + LLDAP Administration + + + + + + + diff --git a/app/main.js b/app/main.js new file mode 100644 index 0000000..8ab5e77 --- /dev/null +++ b/app/main.js @@ -0,0 +1,6 @@ +import init, { run_app } from './pkg/lldap_app.js'; +async function main() { + await init('/pkg/lldap_app_bg.wasm'); + run_app(); +} +main()