diff --git a/src/backend/Types/Items.ts b/src/backend/Types/Items.ts
index 49c7b67..1a40b6b 100644
--- a/src/backend/Types/Items.ts
+++ b/src/backend/Types/Items.ts
@@ -104,6 +104,7 @@ export const T2:string[] = [
"Chromatic Boots",
"Taut Dragonhide Gloves",
"Shimmering Geta",
+"Ring of Blackrock",
"Elementium Threaded Cloak",
"Angelista's Grasp",
"Girdle of the Fallen Crusader",
diff --git a/src/frontend/src/app/frontcraft/pages/character/character.component.html b/src/frontend/src/app/frontcraft/pages/character/character.component.html
index 7e0fe63..201a3d6 100644
--- a/src/frontend/src/app/frontcraft/pages/character/character.component.html
+++ b/src/frontend/src/app/frontcraft/pages/character/character.component.html
@@ -22,10 +22,29 @@ status="control">
Owned by {{char.username}} ({{char.rank}})
-
+
+
+
+
+
Tokens
[ {{token.level}} ]
-
+
+
+
+
+
+ Gear of the last two reported kills (data)
+
+ {{boss1.name}} {{boss1.date | date : 'MMM d @ HH : mm'}}
+
+
+
+
+ {{boss2.name}} {{boss2.date | date : 'MMM d @ HH : mm'}}
+
+
+
diff --git a/src/frontend/src/app/frontcraft/pages/character/character.component.ts b/src/frontend/src/app/frontcraft/pages/character/character.component.ts
index 4d32467..de8704a 100644
--- a/src/frontend/src/app/frontcraft/pages/character/character.component.ts
+++ b/src/frontend/src/app/frontcraft/pages/character/character.component.ts
@@ -1,7 +1,7 @@
import { Component, OnInit, Input } from '@angular/core';
import { ActivatedRoute, Router } from '@angular/router';
import { ApiService as ApiService } from '../../services/login-api';
-import { Spec, User, Character } from '../../../../../../backend/Types/Types';
+import { Spec, User, Character, Item } from '../../../../../../backend/Types/Types';
import { getClassColor } from '../../../../../../backend/Types/PlayerSpecs';
import { _Tiers } from '../../../../../../backend/Types/Items';
@@ -20,6 +20,12 @@ export class FrontcraftCharacterComponent implements OnInit{
} as any
color : string
tokens
+ dataLink = ""
+ boss1 = {}
+ gear1:string[] = []
+
+ boss2= {}
+ gear2:string[] = []
constructor(
private api: ApiService,
@@ -39,6 +45,41 @@ export class FrontcraftCharacterComponent implements OnInit{
this.api.get('ItemManager').getTokens(this.char, _Tiers, true).then(tokens => {
this.tokens = tokens
})
+
+ this.dataLink = 'https://classic.warcraftlogs.com/v1/rankings/character/'+this.char.charactername.replace(/^\w/, c => c.toUpperCase())+'/Gandling/EU?metric=dps&api_key=c698515ab4f592cdb848d80b3abe616c'
+
+
+ fetch(this.dataLink).then(raw => raw.json().then((json) => {
+ if(json.length-1 < 0) return
+ const data = json[json.length-1]
+
+ this.boss2 = {
+ name: data.encounterName,
+ date: data.startTime
+ }
+ this.gear1 = data.gear.map(item => {return - {
+ itemname: item.name,
+ iconname: item.icon.replace('.jpg', ''),
+ quality: item.quality.replace(/^\w/, c => c.toUpperCase()),
+ url: "https://classic.wowhead.com/item="+item.id
+ }})
+ }))
+
+ fetch(this.dataLink).then(raw => raw.json().then((json) => {
+ if(json.length-2 < 0) return
+ const data = json[json.length-2]
+
+ this.boss1 = {
+ name: data.encounterName,
+ date: data.startTime
+ }
+ this.gear2 = data.gear.map(item => {return
- {
+ itemname: item.name,
+ iconname: item.icon.replace('.jpg', ''),
+ quality: item.quality.replace(/^\w/, c => c.toUpperCase()),
+ url: "https://classic.wowhead.com/item="+item.id
+ }})
+ }))
}
})
}
diff --git a/src/frontend/src/app/frontcraft/pages/raid/raid.component.ts b/src/frontend/src/app/frontcraft/pages/raid/raid.component.ts
index 0b44473..fcfe70c 100644
--- a/src/frontend/src/app/frontcraft/pages/raid/raid.component.ts
+++ b/src/frontend/src/app/frontcraft/pages/raid/raid.component.ts
@@ -147,12 +147,12 @@ export class FrontcraftRaidComponent implements OnInit, OnDestroy{
this.toast.show('Signup', 'Success', { status: 'success' })
}
- adminUnsign = async() => {
+ adminUnsign = async(character:Character) => {
const manage = this.api.get('manageRaid')
if(!manage) return
await manage.adminUnsign({
- ...this.mySignup,
- id: this.mySignup.characterid,
+ ...character,
+ id: character['characterid']
}, this.raid)
}
diff --git a/src/frontend/src/app/frontcraft/pages/shop/item.component.ts b/src/frontend/src/app/frontcraft/pages/shop/item.component.ts
index 8d6939e..c7da5b5 100644
--- a/src/frontend/src/app/frontcraft/pages/shop/item.component.ts
+++ b/src/frontend/src/app/frontcraft/pages/shop/item.component.ts
@@ -9,7 +9,12 @@ import { _Tiers, allItems, Tiers } from '../../../../../../backend/Types/Items';
@Component({
selector: 'item',
template: `
-
+