diff --git a/server/utils/getStripeDonations.ts b/server/utils/getStripeDonations.ts index 5727f15..10167d8 100644 --- a/server/utils/getStripeDonations.ts +++ b/server/utils/getStripeDonations.ts @@ -26,7 +26,8 @@ async function getStripeDonationData(stripe: Stripe): Promise /* eslint-disable vue/no-v-html -- we might wanna avoid this by rewriting the locales to use variables */ const { te, t, tm } = useI18n(); +const progress = await useFetch('/api/progress'); const nOfQAs = computed(() => tm('faq.QAs') as string[]).value.length - 1; const maxCoreStaffIndex = computed(() => tm('credits.people') as string[]).value.length - 1; @@ -137,9 +138,12 @@ function titleSuffixHandler(path: string) {

- {{ $t("progress.title") }} + {{ $t("progress.title") }} ({{ progress.data.value?.completion ?? 0 }}%)

- +
+

{{ project.title }} [{{ project.completion }}%]

+
+

No projects

diff --git a/src/pages/progress.vue b/src/pages/progress.vue new file mode 100644 index 0000000..ba1db15 --- /dev/null +++ b/src/pages/progress.vue @@ -0,0 +1,19 @@ + + +