mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-14 09:24:23 +01:00
🚧 Work in progress
This commit is contained in:
7
src/services/Documentation.ts
Normal file
7
src/services/Documentation.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import axios from 'axios'
|
||||
import { markdownEndpoint } from '../utils/Navigation'
|
||||
|
||||
export default async function useDocumentation (url: markdownEndpoint): Promise<string> {
|
||||
const { data } = await axios.get(url)
|
||||
return data
|
||||
}
|
||||
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user