mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
Add index and main
This commit is contained in:
parent
c58459547b
commit
f8951d3b82
5
app/build.sh
Executable file
5
app/build.sh
Executable file
@ -0,0 +1,5 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
|
||||||
|
cd $(dirname $0)
|
||||||
|
wasm-pack build --target web
|
||||||
|
rollup ./main.js --format iife --file ./pkg/bundle.js
|
13
app/index.html
Normal file
13
app/index.html
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<title>LLDAP Administration</title>
|
||||||
|
<script src="/pkg/bundle.js" defer></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
6
app/main.js
Normal file
6
app/main.js
Normal file
@ -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()
|
Loading…
Reference in New Issue
Block a user