less hacking way of pulling poe data

This commit is contained in:
2018-08-27 23:54:27 -05:00
parent 5423b81c95
commit 97acc0d4fa
34 changed files with 651 additions and 221 deletions

1
app/model/index.ts Normal file
View File

@@ -0,0 +1 @@
export * from './league';

21
app/model/item.ts Normal file
View File

@@ -0,0 +1,21 @@
export interface IItem {
category: any[];
descrText: string;
explicitMods: string[];
frameType: number;
h: number;
icon: string;
id: string;
identified: boolean;
ilvl: number;
inventoryId: string;
league: string;
name: string;
properties: any[];
stackSize?: number;
typeLine: string;
verified: boolean;
w: number;
x: number;
y: number;
}

6
app/model/league.ts Normal file
View File

@@ -0,0 +1,6 @@
export interface ILeague {
endAt?: string;
id: string;
startAt: string;
url: string;
}

View File

@@ -0,0 +1,6 @@
export const RarityColor: any = {
unique: '#af6025',
rare: '#a3a314',
magic: 'rgb(117, 117, 255)',
normal: '#eee',
};

18
app/model/stash-tab.ts Normal file
View File

@@ -0,0 +1,18 @@
interface IStashTabColor {
r: number;
g: number;
b: number;
}
export interface IStashTab {
colour: IStashTabColor;
hidden: boolean;
i: number;
id: string;
n: string;
selected: boolean;
srcC: string;
srcL: string;
srcR: string;
type: string;
}