diff --git a/.env b/.env index 0d914e4..9ca2644 100644 --- a/.env +++ b/.env @@ -2,7 +2,10 @@ VITE_GAME_NAME='Diablo II Resurrected' # version of the vanilla/modded Diablo II that Runewizard is compatible with -VITE_GAME_VERSION='Patch 2.4' +VITE_GAME_VERSION='2.6' + +# url to the official update notes +VITE_URL_PATCH_NOTES='https://news.blizzard.com/en-us/diablo2/23899624/diablo-ii-resurrected-ladder-season-three-now-live' # set 'false' to turn off the header, to eg. include within an existing layout VITE_LAYOUT_HEADER=true diff --git a/src/assets/sass/main.scss b/src/assets/sass/main.scss index fa537d6..b2cd395 100644 --- a/src/assets/sass/main.scss +++ b/src/assets/sass/main.scss @@ -290,9 +290,12 @@ object { &Patch { @apply rounded-sm text-xs leading-1 ml-1; padding: 2px 4px 2px; - background-color: #71B643; + background-color: #444; color: #000; } + &Patch.is-new { + background-color: #71b643; + } } // pin icon next to runeword title diff --git a/src/components/AppHeader.vue b/src/components/AppHeader.vue index e5ef721..069c5b5 100644 --- a/src/components/AppHeader.vue +++ b/src/components/AppHeader.vue @@ -20,7 +20,16 @@
for {{ envGameName }} - {{ envGameVersion }} + Patch {{ envGameVersion }} + + + Update Notes +
@@ -77,10 +86,10 @@ export default defineComponent({ return { isHelpVisible: false, - envGameName: /**@type {string}*/ (import.meta.env.VITE_GAME_NAME), - envGameVersion: /**@type {string}*/ (import.meta.env.VITE_GAME_VERSION), - envGithubRepoUrl: /**@type {string}*/ (import.meta.env - .VITE_URL_GITHUB_REPO), + envGameName: import.meta.env.VITE_GAME_NAME as string, + envGameVersion: import.meta.env.VITE_GAME_VERSION as string, + envGithubRepoUrl: import.meta.env.VITE_URL_GITHUB_REPO as string, + envPatchNotesUrl: import.meta.env.VITE_URL_PATCH_NOTES as string, }; }, }); diff --git a/src/components/RunewordsTable.vue b/src/components/RunewordsTable.vue index 66124c7..d0ebf5b 100644 --- a/src/components/RunewordsTable.vue +++ b/src/components/RunewordsTable.vue @@ -62,7 +62,11 @@ @click="onEnterRuneword($event, item)" >{{ item.title }} L - {{ item.version }} + {{ item.version }}