From 8d37c901068b79c53668d01146fac7c5081ec203 Mon Sep 17 00:00:00 2001 From: Maxime Cannoodt Date: Sun, 13 Nov 2022 16:13:28 +0100 Subject: [PATCH] fix: :bug: Fix md pages not rendering correctly --- plugin | 2 +- webapp/src/routes/changelog/+page.svelte | 3 ++- webapp/src/routes/changelog/+page.ts | 7 ------- webapp/src/routes/funding.md | 8 ++++---- webapp/src/routes/funding/+page.svelte | 3 ++- webapp/src/routes/funding/+page.ts | 7 ------- 6 files changed, 9 insertions(+), 21 deletions(-) diff --git a/plugin b/plugin index 3893a63..b04f948 160000 --- a/plugin +++ b/plugin @@ -1 +1 @@ -Subproject commit 3893a63831dd1be9b118e4f7e6a7af3e82d7870a +Subproject commit b04f948e199bbc418f7d44620ec7507ef2ca3795 diff --git a/webapp/src/routes/changelog/+page.svelte b/webapp/src/routes/changelog/+page.svelte index 713e023..b3e7877 100644 --- a/webapp/src/routes/changelog/+page.svelte +++ b/webapp/src/routes/changelog/+page.svelte @@ -1,5 +1,6 @@
diff --git a/webapp/src/routes/changelog/+page.ts b/webapp/src/routes/changelog/+page.ts index 4b63624..189f71e 100644 --- a/webapp/src/routes/changelog/+page.ts +++ b/webapp/src/routes/changelog/+page.ts @@ -1,8 +1 @@ export const prerender = true; - -// @ts-expect-error - Markdown files are not recognized by Vite -import { html } from '/CHANGELOG.md'; - -export function load() { - return { html }; -} diff --git a/webapp/src/routes/funding.md b/webapp/src/routes/funding.md index 84a04ef..69d6d78 100644 --- a/webapp/src/routes/funding.md +++ b/webapp/src/routes/funding.md @@ -2,9 +2,9 @@ ## Operational Expenses -I architected the serverside code to be as light and portable as possible. Currently, it runs on a VPS I rent for about **7$/month**. This is currently the only operational expense for Noteshare.space. +I architected the serverside code to be as light and portable as possible. Currently, it runs on a VPS I rent for about **7$/month**. This is currently the only operational expense for Noteshare.space. -The storage requirements for hosting encrypted text data are incredible small; at the time of writing (28 September, 2022), Noteshare is storing **700 notes in a little over 4MB**. +The storage requirements for hosting encrypted text data are incredible small; at the time of writing (28 September, 2022), Noteshare is storing **1,000 notes in a little over 7MB**. ### Future expenses: hosting file attachments @@ -16,10 +16,10 @@ As I develop this feature, I am still deciding on how I will fund this: communit I already rented this VPS for other purposes, so I haven no problem paying out of pocket for hosting and you can expect the service to be available -If you wish to financially support me and the development of this plugin and service, you can send donations via my [*Buy me a coffee*-profile](https://www.buymeacoffee.com/mcndt). +If you wish to financially support me and the development of this plugin and service, you can send donations via my [_Buy me a coffee_-profile](https://www.buymeacoffee.com/mcndt). ## Self-hosting If you are still worried about relying on me for keeping Noteshare up and running, it is an option to host your own instance of Noteshare. You can find the source code, as well as a `docker-compose.yml` file to get you up and running on the [Noteshare GitHub repo](https://github.com/mcndt/Noteshare.space). -*Last updated: 2022-09-28* +_Last updated: 2022-09-28_ diff --git a/webapp/src/routes/funding/+page.svelte b/webapp/src/routes/funding/+page.svelte index 713e023..fbdcd4a 100644 --- a/webapp/src/routes/funding/+page.svelte +++ b/webapp/src/routes/funding/+page.svelte @@ -1,5 +1,6 @@
diff --git a/webapp/src/routes/funding/+page.ts b/webapp/src/routes/funding/+page.ts index aa152c7..189f71e 100644 --- a/webapp/src/routes/funding/+page.ts +++ b/webapp/src/routes/funding/+page.ts @@ -1,8 +1 @@ export const prerender = true; - -// @ts-expect-error - Markdown files are not recognized by Svelte -import { html } from '../funding.md'; - -export function load() { - return { html }; -}