feat: nextcloud sync

This commit is contained in:
2026-01-20 18:39:07 +01:00
parent 16c277c50c
commit ff2a2fee48
18 changed files with 647 additions and 80 deletions
+16
View File
@@ -0,0 +1,16 @@
import { client } from "$lib/server/nextcloud";
import type { PageServerLoad } from "./$types";
export const load: PageServerLoad = async () => {
try {
const content = await client.getFileContents("/musig/Musig.md", { format: "text" });
return {
content: content as string
};
} catch (e) {
console.error("Error fetching Musig.md from Nextcloud", e);
return {
content: "Failed to load content from Nextcloud."
};
}
};