Compare commits

..

2 Commits

Author SHA1 Message Date
4a075b6488 added download for calchat in devops 2026-01-11 20:13:18 +01:00
632b9889f7 added typescript-svelte-plugin to project 2026-01-11 20:12:59 +01:00
3 changed files with 68 additions and 1 deletions

41
package-lock.json generated
View File

@@ -32,6 +32,7 @@
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1",
"typescript-svelte-plugin": "^0.3.50",
"vite": "^7.2.6"
}
},
@@ -2172,6 +2173,13 @@
}
}
},
"node_modules/dedent-js": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dedent-js/-/dedent-js-1.0.1.tgz",
"integrity": "sha512-OUepMozQULMLUmhxS95Vudo0jb0UchLimi3+pQ2plj61Fcy8axbP9hbiD4Sz6DPqn6XG3kfmziVfQ1rSys5AJQ==",
"dev": true,
"license": "MIT"
},
"node_modules/deep-is": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",
@@ -3784,6 +3792,13 @@
],
"license": "MIT"
},
"node_modules/scule": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/scule/-/scule-1.3.0.tgz",
"integrity": "sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==",
"dev": true,
"license": "MIT"
},
"node_modules/semver": {
"version": "7.7.3",
"resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",
@@ -3972,6 +3987,21 @@
}
}
},
"node_modules/svelte2tsx": {
"version": "0.7.46",
"resolved": "https://registry.npmjs.org/svelte2tsx/-/svelte2tsx-0.7.46.tgz",
"integrity": "sha512-S++Vw3w47a8rBuhbz4JK0fcGea8tOoX1boT53Aib8+oUO2EKeOG+geXprJVTDfBlvR+IJdf3jIpR2RGwT6paQA==",
"dev": true,
"license": "MIT",
"dependencies": {
"dedent-js": "^1.0.1",
"scule": "^1.3.0"
},
"peerDependencies": {
"svelte": "^3.55 || ^4.0.0-next.0 || ^4.0 || ^5.0.0-next.0",
"typescript": "^4.9.4 || ^5.0.0"
}
},
"node_modules/tailwindcss": {
"version": "4.1.18",
"resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.1.18.tgz",
@@ -4096,6 +4126,17 @@
"typescript": ">=4.8.4 <6.0.0"
}
},
"node_modules/typescript-svelte-plugin": {
"version": "0.3.50",
"resolved": "https://registry.npmjs.org/typescript-svelte-plugin/-/typescript-svelte-plugin-0.3.50.tgz",
"integrity": "sha512-CD6jMNAYJwqCyQ5zZBDRuveeJvAgIogLwXMf5eXAl4K36wD8W+Npw49h6j5fXnpd7SKcG3uptGpeCGETED6WSA==",
"dev": true,
"license": "MIT",
"dependencies": {
"@jridgewell/sourcemap-codec": "^1.5.0",
"svelte2tsx": "~0.7.35"
}
},
"node_modules/undici-types": {
"version": "7.16.0",
"resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.16.0.tgz",

View File

@@ -35,6 +35,7 @@
"tailwindcss": "^4.1.17",
"typescript": "^5.9.3",
"typescript-eslint": "^8.48.1",
"typescript-svelte-plugin": "^0.3.50",
"vite": "^7.2.6"
},
"dependencies": {

View File

@@ -1 +1,26 @@
<h1 class="text-4xl font-bold">This is where CalDav builds will be downloadable from</h1>
<script lang="ts">
async function downloadAPK() {
try {
const response = await fetch("https://pub-7bffd5f7a2874c54bc70ce78955004de.r2.dev/calchat.apk");
const blob = await response.blob();
const objectUrl = URL.createObjectURL(blob);
const a = document.createElement("a");
a.style.display = "none";
a.href = objectUrl;
a.download = "calchat.apk";
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
URL.revokeObjectURL(objectUrl);
} catch (error) {
console.error(`coudn't download calchat apk: ${error}`);
}
}
</script>
<h1 class="text-4xl font-bold">This is where CalChat builds can be downloaded from.</h1>
<h3 class="text-xl font-bold">Currently only available for Android arm64</h3>
<button on:click={downloadAPK}>Download APK here!</button>