♻️ Migrate the exploring page

This commit is contained in:
2025-09-19 01:04:05 +08:00
parent 773cc220e0
commit 7904ce9ca7
13 changed files with 498 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ export function useCustomTheme(): {
valueLight: "light",
initialValue: "light",
onChanged: (dark: boolean) => {
$vuetify.theme.global.name.value = dark ? "dark" : "light"
$vuetify.theme.change(dark ? "dark" : "light")
}
})

View File

@@ -0,0 +1,10 @@
// Solar Network aka the api client
export const useSolarNetwork = () => {
const apiBase = useSolarNetworkUrl();
return $fetch.create({ baseURL: apiBase, credentials: 'include' })
}
export const useSolarNetworkUrl = () => {
const config = useRuntimeConfig()
return config.public.apiBase
}