add svelte UI

This commit is contained in:
Nystik
2026-03-18 18:28:07 +01:00
parent 4cba51f562
commit 408eb7fb54
16 changed files with 1403 additions and 163 deletions

View File

@@ -23,6 +23,7 @@ if [ ! -f "$OBSIDIAN_DIR/index.html" ]; then
echo "[ignis] Patching..."
node /app/scripts/patch-obsidian.js "$OBSIDIAN_DIR"
cp /app/dist/ignis-ui.js "$OBSIDIAN_DIR/ignis-ui.js"
cp /app/dist/shim-loader.js "$OBSIDIAN_DIR/shim-loader.js"
cp /app/images/favicon.png "$OBSIDIAN_DIR/favicon.png"

View File

@@ -33,10 +33,11 @@ function patchHtml(filePath) {
' <link rel="icon" type="image/png" href="favicon.png">\n</head>',
);
// Inject shim-loader before the first <script> tag
// Inject ignis-ui and shim-loader before the first <script> tag
html = html.replace(
'<script type="text/javascript"',
'<script type="text/javascript" src="shim-loader.js"></script>\n' +
'<script type="text/javascript" src="ignis-ui.js"></script>\n' +
'<script type="text/javascript" src="shim-loader.js"></script>\n' +
'<script type="text/javascript"',
);