Merge pull request #15 from smthbh/Feature-WowheadLinks

change quest links to wowhead
This commit is contained in:
Brad 2025-04-28 21:51:26 -04:00 committed by GitHub
commit a987079366
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 7 additions and 3 deletions

View file

@ -1,4 +1,5 @@
ACORE_ARMORY_AOWOW_URL="https://wowgaming.altervista.org/aowow"
ACORE_ARMORY_WOWHEAD_URL="https://www.wowhead.com/wotlk"
ACORE_ARMORY_WEBSITE_URL="https://mywebsite.com"
ACORE_ARMORY_WEBSITE_NAME="My Website"
ACORE_ARMORY_WEBSITE_ROOT=""

View file

@ -1,5 +1,6 @@
{
"aowowUrl": "https://wowgaming.altervista.org/aowow",
"wowheadUrl": "https://www.wowhead.com/wotlk",
"websiteUrl": "https://mywebsite.com",
"websiteName": "My Website",
"websiteRoot": "",

View file

@ -81,6 +81,7 @@ export class Armory {
const locals = {
aowow: this.config.aowowUrl,
wowhead: this.config.wowheadUrl,
websiteUrl: this.config.websiteUrl,
websiteName: this.config.websiteName,
websiteRoot: this.config.websiteRoot,

View file

@ -25,6 +25,7 @@ export interface IIframeModeConfig {
export class Config {
public aowowUrl: string;
public wowheadUrl: string;
public websiteUrl: string;
public websiteName: string;
public websiteRoot: string;

View file

@ -84,7 +84,7 @@
{{#each this}}
<tr class="{{getDiffClass this}}">
<td class="quest-name">
<a href="{{@root.aowow}}/?quest={{this.id}}">{{this.title}}</a>
<a href="{{@root.wowhead}}/quest={{this.id}}">{{this.title}}</a>
</td>
<td class="quest-level">{{this.questLevel}}</td>
<td class="quest-status {{this.char1Status}}">{{this.char1Status}}</td>

View file

@ -67,7 +67,7 @@
{{#each quests}}
{{#if (eq this.status "In Progress")}}
<tr>
<td class="quest-name"><a href="{{@root.aowow}}/?quest={{this.id}}">{{this.title}}</a></td>
<td class="quest-name"><a href="{{@root.wowhead}}/quest={{this.id}}">{{this.title}}</a></td>
<td class="quest-level">{{this.questLevel}}</td>
<td class="quest-status {{this.status}}">{{this.status}}</td>
</tr>
@ -95,7 +95,7 @@
{{#each quests}}
{{#if (eq this.status "Completed")}}
<tr>
<td class="quest-name"><a href="{{@root.aowow}}/?quest={{this.id}}">{{this.title}}</a></td>
<td class="quest-name"><a href="{{@root.wowhead}}/quest={{this.id}}">{{this.title}}</a></td>
<td class="quest-level">{{this.questLevel}}</td>
<td class="quest-status {{this.status}}">{{this.status}}</td>
</tr>