mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-04-20 06:55:06 -04:00
refactor(config): added config management with figue
This commit is contained in:
parent
5ce1262fb4
commit
6becdbb423
7 changed files with 82 additions and 12 deletions
|
@ -9,12 +9,13 @@ import { useStyleStore } from '@/stores/style.store';
|
|||
import HeroGradient from '../assets/hero-gradient.svg?component';
|
||||
import MenuLayout from '../components/MenuLayout.vue';
|
||||
import NavbarButtons from '../components/NavbarButtons.vue';
|
||||
import { config } from '@/config';
|
||||
|
||||
const themeVars = useThemeVars();
|
||||
const route = useRoute();
|
||||
const styleStore = useStyleStore();
|
||||
const version = import.meta.env.PACKAGE_VERSION;
|
||||
const commitSha = import.meta.env.GIT_SHORT_SHA;
|
||||
const version = config.app.version;
|
||||
const commitSha = config.app.lastCommitSha.slice(0, 7);
|
||||
|
||||
const makeLabel = (text: string, to: string) => () => h(RouterLink, { to }, { default: () => text });
|
||||
const makeIcon = (icon: Component) => () => h(NIcon, null, { default: () => h(icon) });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue