mirror of
https://github.com/BlossomiShymae/clean-cuts.git
synced 2025-12-06 10:10:47 +01:00
Bandaid fix TFT items for now
This commit is contained in:
@@ -1,8 +1,17 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
const { client } = useClient();
|
||||||
|
const { currentLocale } = useLocale();
|
||||||
|
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
|
||||||
|
|
||||||
|
const tftItems = ref(await getTftItems());
|
||||||
|
watch(currentLocale, async() => {
|
||||||
|
tftItems.value = await getTftItems();
|
||||||
|
});
|
||||||
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="d-flex flex-column gap-2">
|
<div class="d-flex flex-column gap-2">
|
||||||
<h1>TFT Items</h1>
|
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4 app-background">
|
||||||
|
|
||||||
<div class="overflow-hidden rounded border border-light border-opacity-25 p-4">
|
|
||||||
<table class="sortable table table-borderless">
|
<table class="sortable table table-borderless">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -32,17 +41,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
|
||||||
import useClient from '~/composables/useClient';
|
|
||||||
import useLocale from '~/composables/useLocale';
|
|
||||||
|
|
||||||
const { client } = useClient();
|
|
||||||
const { currentLocale } = useLocale();
|
|
||||||
const getTftItems = async() => await client.tftItems.listAsync({ locale: currentLocale.value, version: "latest"});
|
|
||||||
|
|
||||||
const tftItems = ref(await getTftItems());
|
|
||||||
watch(currentLocale, async() => {
|
|
||||||
tftItems.value = await getTftItems();
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
Reference in New Issue
Block a user