From bc7a685e7473a921043aa04af7f151f16faf971f Mon Sep 17 00:00:00 2001 From: Freeze455 Date: Wed, 6 Oct 2021 18:04:10 +0200 Subject: [PATCH] :construction: Work in progress --- src/services/Documentation.ts | 7 +++++++ src/templates/layouts/Base.vue | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100644 src/services/Documentation.ts diff --git a/src/services/Documentation.ts b/src/services/Documentation.ts new file mode 100644 index 0000000..ac47fc5 --- /dev/null +++ b/src/services/Documentation.ts @@ -0,0 +1,7 @@ +import axios from 'axios' +import { markdownEndpoint } from '../utils/Navigation' + +export default async function useDocumentation (url: markdownEndpoint): Promise { + const { data } = await axios.get(url) + return data +} \ No newline at end of file diff --git a/src/templates/layouts/Base.vue b/src/templates/layouts/Base.vue index 9e89d45..5641940 100644 --- a/src/templates/layouts/Base.vue +++ b/src/templates/layouts/Base.vue @@ -30,11 +30,6 @@ onMounted(() => { htmlStatut.value = document.documentElement.classList.contains('dark') }) -const route = useRoute() -onMounted(() => $route.path, () => { - console.log('test') -}) - function toggle () { const htmlRoot = document.documentElement as HTMLElement htmlRoot.classList.contains('dark')