mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 18:20:47 +01:00
Add runes feat
This commit is contained in:
41
pages/runes/index.vue
Normal file
41
pages/runes/index.vue
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
<template>
|
||||||
|
<div class="d-flex flex-column gap-2">
|
||||||
|
<h1>Runes</h1>
|
||||||
|
|
||||||
|
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4">
|
||||||
|
<table class="sortable table table-borderless">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th scope="col">Id</th>
|
||||||
|
<th scope="col">Icon</th>
|
||||||
|
<th scope="col">Name</th>
|
||||||
|
<th scope="col">Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr v-for="rune in runes" :key="rune.id">
|
||||||
|
<th scope="row">
|
||||||
|
{{ rune.id }}
|
||||||
|
</th>
|
||||||
|
<td>
|
||||||
|
<img :src="rune.getIcon('latest')" width="32" height="32" loading="lazy" onerror="this.onerror = null; this.src = '/img/error.png';"/>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
{{ rune.name }}
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<span v-html="rune.shortDesc"></span>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts">
|
||||||
|
import useClient from '../../composables/useClient';
|
||||||
|
|
||||||
|
const { client } = useClient();
|
||||||
|
const runes = await client.perks.listAsync({locale: "default", version: "latest"});
|
||||||
|
</script>
|
||||||
Reference in New Issue
Block a user