Allow exporting single notebooks and partial imports; Refactor main app structure; Add TypeScript config

This commit is contained in:
2025-05-30 21:00:27 +02:00
parent 09ff75ef6d
commit 3d78df31d6
16 changed files with 743 additions and 501 deletions

21
build.sh Normal file
View File

@@ -0,0 +1,21 @@
#!/bin/sh
set -e
cd ./src/app
echo 'window.SCHEMA=' > ./schema.json.js
cat ../schema.json >> ./schema.json.js
cp ../index.html ../service-worker.js ./
for lib in lib/*.js
do sed -i "s|</head>|<script src='./${lib}'></script></head>|" ./index.html
done
for mod in *.js
do sed -i "s|<body>|<body><script src='./${mod}'></script>|" ./index.html
done
for file in *.* lib/*.* lib/*/*.*
do sed -i "s|//files//|'/${file}', //files//|" ./service-worker.js
done