Symfony 8 + API Platform 4 + Nuxt 4 monorepo. Backend: User entity, JWT auth, fixtures. Frontend: login, dashboard, auth middleware, i18n, @malio/layer-ui. Docker: dev (ports 8083/3003/5436) + prod multi-stage. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
16 lines
367 B
TypeScript
16 lines
367 B
TypeScript
const version = ref('')
|
|
|
|
export function useAppVersion() {
|
|
async function load() {
|
|
try {
|
|
const api = useApi()
|
|
const data = await api.get<{ version: string }>('/version', {}, { toast: false })
|
|
version.value = data.version
|
|
} catch {
|
|
version.value = '?'
|
|
}
|
|
}
|
|
|
|
return { version, load }
|
|
}
|