From cab1684b7ce1c0dc94d8c030b27a561145b4d1bb Mon Sep 17 00:00:00 2001
From: Blossomi Shymae <87099578+BlossomiShymae@users.noreply.github.com>
Date: Wed, 1 May 2024 21:28:14 -0500
Subject: [PATCH] Add summoner icons feat
---
core/models.ts | 4 +++
pages/summoner-icons/index.vue | 52 ++++++++++++++++++++++++++++++++++
2 files changed, 56 insertions(+)
create mode 100644 pages/summoner-icons/index.vue
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 @@
+
+
+
Summoner Icons
+
+
+
+
+
+
+
+
+
+
+ | Id |
+ Icon |
+ Title |
+
+
+
+
+ |
+
+ {{ icon.id }}
+
+ |
+
+
+
+
+ |
+
+
+ @icon.Title
+
+ |
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file