diff --git a/src/App.vue b/src/App.vue index b4f3189..94b33e3 100644 --- a/src/App.vue +++ b/src/App.vue @@ -21,6 +21,7 @@ const installDismissed = ref(false); const isCoarsePointer = ref(false); const isStandalone = ref(false); const themePreference = ref('system'); +const appVersion = __APP_VERSION__; let displayModeMedia = null; let prefersColorSchemeMedia = null; @@ -164,6 +165,10 @@ onUnmounted(() => { + + @@ -238,4 +243,12 @@ onUnmounted(() => { .fade-leave-to { opacity: 0; } + +.app-version { + margin-top: auto; + padding: 10px; + font-size: 0.8rem; + color: var(--text-muted); + opacity: 0.6; +} \ No newline at end of file diff --git a/vite.config.js b/vite.config.js index b48740a..f2ffabc 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,9 @@ import { VitePWA } from 'vite-plugin-pwa' import path from 'path' export default defineConfig({ + define: { + '__APP_VERSION__': JSON.stringify(process.env.npm_package_version) + }, plugins: [ vue(), VitePWA({