Added ui with vote view interface
This commit is contained in:
parent
496b51646e
commit
bce6857b12
30 changed files with 6692 additions and 0 deletions
23
ui/src/components/PlanList.vue
Normal file
23
ui/src/components/PlanList.vue
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue