Added ui with vote view interface

This commit is contained in:
Manuel Forcén Muñoz 2025-01-14 19:28:48 +01:00
parent 496b51646e
commit bce6857b12
30 changed files with 6692 additions and 0 deletions

View file

@ -0,0 +1,23 @@
<script setup lang="ts">
import { ref } from 'vue';
const plans = ref([])
fetch('/api/plans', {
method: 'GET',
headers: {
'Authorization': 'Basic Zm9yY2VuOg=='
}
}).then(x => x.json())
.then(x => plans.value = x)
</script>
<template>
<div class="w-full">
Lista de planes
<div v-for="plan in plans">
Plan numero {{ plan.id }} {{ plan.name }}
<router-link :to="'/plan/' + plan.id">ir</router-link>
</div>
</div>
</template>