Skip to content

Commit

Permalink
feat(PageFooter): add app version info
Browse files Browse the repository at this point in the history
  • Loading branch information
rudnovd committed Apr 3, 2022
1 parent b94d107 commit f63b717
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/components/PageFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
{{ t('components.pageFooter.sourceCode') }}
</a>
</button>

<span>App version: {{ appVersion }}</span>
</div>

<BaseDialog v-if="showAboutModal" :show="showAboutModal" size="small" @close="showAboutModal = false">
Expand Down Expand Up @@ -121,6 +123,7 @@ export default defineComponent({
showLicenseModal,
showAboutModal,
foundErrorModal,
appVersion: import.meta.env.__APP_VERSION__,
changeLocale,
}
Expand Down Expand Up @@ -152,6 +155,11 @@ footer button {
}
}
footer span {
color: rgb(108, 117, 125);
text-align: end;
}
footer select {
padding: 0;
font: inherit;
Expand Down
3 changes: 3 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,7 @@ export default defineConfig({
},
},
},
define: {
'import.meta.env.__APP_VERSION__': JSON.stringify(process.env.npm_package_version),
},
})

0 comments on commit f63b717

Please sign in to comment.