feat : numéro de version et config CI/CD
Some checks failed
Auto Tag Develop / tag (push) Failing after 4s

This commit is contained in:
2026-02-09 15:40:14 +01:00
parent c1025d6066
commit 31c0ae15f4
14 changed files with 295 additions and 51 deletions

View File

@@ -0,0 +1,17 @@
export const useAppVersion = () => {
const api = useApi()
const version = useState<string | null>('app-version', () => null)
const load = async () => {
if (version.value) {
return version.value
}
const response = await api.get<{ version: string }>('version', {}, {
toast: false
})
version.value = response.version
return version.value
}
return { version, load }
}