From 6a9c89f92a3dbf6a32a3d408d1424d05d1640132 Mon Sep 17 00:00:00 2001 From: Blossomi Shymae <87099578+BlossomiShymae@users.noreply.github.com> Date: Thu, 2 May 2024 09:20:37 -0500 Subject: [PATCH] Add ward skins feat --- core/models.ts | 8 +++++ layouts/default.vue | 2 +- pages/ward-skins/index.vue | 53 ++++++++++++++++++++++++++++++ pages/ward-skins/overview/[id].vue | 33 +++++++++++++++++++ 4 files changed, 95 insertions(+), 1 deletion(-) create mode 100644 pages/ward-skins/index.vue create mode 100644 pages/ward-skins/overview/[id].vue diff --git a/core/models.ts b/core/models.ts index a8930b7..4357789 100644 --- a/core/models.ts +++ b/core/models.ts @@ -259,6 +259,14 @@ export class WardSkin extends CommunityDragonObject { this.regionDescriptions = json.regionalDescriptions.map((x: any) => new Description(x)); this.rarities = json.rarities.map((x: any) => new Rarity(x)); } + + getWardImage(version: string): string { + return this.resolveClientPath({path: this.wardImagePath, args: {locale: "default", version: version}}); + } + + getWardShadowImage(version: string): string { + return this.resolveClientPath({path: this.wardShadowImagePath, args: {locale: "default", version: version}}); + } } export class Description extends CommunityDragonObject { diff --git a/layouts/default.vue b/layouts/default.vue index 2bfec47..7fc6386 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -38,7 +38,7 @@
| Id | +Icon | +Name | +
|---|---|---|
|
+ |
+
+ |
+
+ |
+
{{ skin.regionDescriptions[0].description }}
+ +