diff --git a/core/models.ts b/core/models.ts index e00f02b..a8930b7 100644 --- a/core/models.ts +++ b/core/models.ts @@ -231,6 +231,10 @@ export class SummonerIcon extends CommunityDragonObject { this.descriptions = json.descriptions.map((x: any) => new Description(x)); this.rarities = json.rarities.map((x: any) => new Rarity(x)); } + + getImage(version: string): string { + return this.resolveClientPath({path: this.imagePath ?? "", args: {version: version, locale: "default"}}); + } } export class WardSkin extends CommunityDragonObject { diff --git a/pages/summoner-icons/index.vue b/pages/summoner-icons/index.vue new file mode 100644 index 0000000..8c2f286 --- /dev/null +++ b/pages/summoner-icons/index.vue @@ -0,0 +1,52 @@ + + + \ No newline at end of file