Skip to content

Commit

Permalink
Use the app version number as version in addon TOCs
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanzilla committed May 14, 2023
1 parent ffbbc8f commit 193875d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
11 changes: 5 additions & 6 deletions src/components/LandingPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,6 @@ export default defineComponent({
},
deep: true,
},
// eslint-disable-next-line func-names
"config.wowpath.value": function () {
this.validateWowpath();
},
Expand Down Expand Up @@ -1362,7 +1361,7 @@ export default defineComponent({
data: `## Interface: ${tocVersion}
## Title: WeakAuras Companion
## Author: The WeakAuras Team
## Version: 4.1.0
## Version: ${__APP_VERSION__}
## IconTexture: Interface\\AddOns\\WeakAuras\\Media\\Textures\\icon.blp
## Notes: Keep your WeakAuras updated!
## X-Category: Interface Enhancements
Expand All @@ -1378,7 +1377,7 @@ init.lua`,
data: `## Interface: ${tocVersion}
## Title: WeakAuras Companion
## Author: The WeakAuras Team
## Version: 4.1.0
## Version: ${__APP_VERSION__}
## Notes: Keep your WeakAuras updated!
## X-Category: Interface Enhancements
## DefaultState: Enabled
Expand All @@ -1393,7 +1392,7 @@ init.lua`,
data: `## Interface: ${tocVersion}
## Title: WeakAuras Companion
## Author: The WeakAuras Team
## Version: 4.1.0
## Version: ${__APP_VERSION__}
## Notes: Keep your WeakAuras updated!
## X-Category: Interface Enhancements
## DefaultState: Enabled
Expand All @@ -1408,7 +1407,7 @@ init.lua`,
data: `## Interface: ${tocVersion}
## Title: WeakAuras Companion
## Author: The WeakAuras Team
## Version: 4.1.0
## Version: ${__APP_VERSION__}
## IconTexture: Interface\\AddOns\\WeakAuras\\Media\\Textures\\icon.blp
## Notes: Keep your WeakAuras updated!
## X-Category: Interface Enhancements
Expand All @@ -1424,7 +1423,7 @@ init.lua`,
data: `## Interface: ${tocVersion}
## Title: WeakAuras Companion
## Author: The WeakAuras Team
## Version: 4.1.0
## Version: ${__APP_VERSION__}
## Notes: Keep your WeakAuras updated!
## X-Category: Interface Enhancements
## DefaultState: Enabled
Expand Down
16 changes: 14 additions & 2 deletions src/vite-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@

declare module "*.vue" {
import type { DefineComponent } from "vue";
// eslint-disable-next-line @typescript-eslint/ban-types
const component: DefineComponent<{}, {}, any>;
import type { ComponentOptions } from "vue";

const component: DefineComponent<Record<string, never>, Record<string, never>, Record<string, never>, ComponentOptions>;
export default component;
}

interface ImportMetaEnv {
readonly VITE_DEV_SERVER_URL: undefined | string;
readonly VITE_APP_VERSION: string;
}

interface ImportMeta {
readonly env: ImportMetaEnv;
}

declare const __APP_VERSION__: string;

0 comments on commit 193875d

Please sign in to comment.