Alisa/web/src/components/ListViewElement.vue

83 lines
2.3 KiB
Vue
Raw Normal View History

<template>
<v-sheet
2024-07-09 13:07:33 +02:00
elevation="4"
width="93vw"
rounded="lg"
class="mt-3"
2024-07-09 17:51:16 +02:00
style="border-left: .5rem outset #0FA4AF"
>
<v-expansion-panels>
<v-expansion-panel>
<v-expansion-panel-title>
<div class="mr-3">
{{ props.licenseName }}
</div>
<div
class="mr-3 d-flex align-self-center" style="align-items:center">
<KeyRound class="mr-1"/>
{{ props.licenseKey }}
</div>
<div class="mr-3 d-flex align-self-center" style="align-items:center">
2024-07-09 18:35:47 +02:00
<CalendarCheck/>
<span v-if="props.startDate == null || props.startDate == undefined || props.startDate.length == 0">
Verfügbar
</span>
<span v-else>
{{ props.startDate }}
</span>
</div>
<div class="mr-3 d-flex align-self-center" style="align-items:center">
2024-07-09 18:35:47 +02:00
<CalendarX/>
<span v-if="props.endDate == null || props.endDate == undefined || props.endDate.length == 0">
Ewig Verfügbar
</span>
<span v-else>
{{ props.endDate }}
</span>
2024-07-09 17:51:16 +02:00
</div>
2024-07-09 17:51:16 +02:00
<div class="mr-3 d-flex align-self-center" style="align-items:center">
<img src="../assets/doublekey.svg" alt="logo" class="logo mr-1" width="24" />
<span v-if="props.amount == null || props.amount == undefined">
<Infinity />
</span>
<span v-else>
{{ props.amount }}
</span>
</div>
</v-expansion-panel-title>
<v-expansion-panel-text>
Notes: {{ props.notes }}
</v-expansion-panel-text>
</v-expansion-panel>
</v-expansion-panels>
</v-sheet>
</template>
<script setup lang="ts">
2024-07-09 18:35:47 +02:00
import { Infinity, KeyRound, Check, Skull, CalendarCheck, CalendarX } from 'lucide-vue-next';
const props = defineProps({
licenseName: String,
licenseKey: String,
startDate: String,
endDate: String,
amount: Number,
notes: String,
})
</script>
<style scoped>
2024-07-08 14:44:50 +02:00
.values {
display: flex;
align-items: center;
}
</style>