Introduced a new third-party dependency (i.e. an NPM package called vite-plugin-package-version) which reads the version property from the package.json file and makes it available via import.meta.env.PACKAGE_VERSION
Added a config property that consumes import.meta.env.PACKAGE_VERSION and exposes it to the rest of the code base as config.APP_VERSION
Replaced the placeholder "Settings" page with one that has a list-based layout
The "Settings" page shows the app version number
Other changes
Added developer instructions on introducing new environment variables
Added TypeScript type information for the properties of import.meta.env
Screenshots
Light theme:
Dark theme:
Notes
This PR is about displaying the app version. It is not about maintaining/managing/defining the app version.
Summary of changes
Main feature
version
property from thepackage.json
file and makes it available viaimport.meta.env.PACKAGE_VERSION
config
property that consumesimport.meta.env.PACKAGE_VERSION
and exposes it to the rest of the code base asconfig.APP_VERSION
Other changes
import.meta.env
Screenshots
Light theme:
Dark theme:
Notes
This PR is about displaying the app version. It is not about maintaining/managing/defining the app version.