2024-07-08 13:18:54 +02:00
|
|
|
<template>
|
|
|
|
<v-sheet
|
2024-07-11 10:50:44 +02:00
|
|
|
elevation="4"
|
|
|
|
width="96vw"
|
|
|
|
rounded="lg"
|
|
|
|
class="mt-3"
|
2024-07-11 13:10:04 +02:00
|
|
|
style="border-left: 0.5rem outset #0fa4af"
|
2024-07-08 13:18:54 +02:00
|
|
|
>
|
2024-07-09 16:35:30 +02:00
|
|
|
<v-expansion-panels>
|
|
|
|
<v-expansion-panel>
|
|
|
|
<v-expansion-panel-title>
|
2024-07-11 10:50:44 +02:00
|
|
|
<div class="mr-3">
|
|
|
|
{{ props.licenseName }}
|
|
|
|
</div>
|
2024-07-09 16:35:30 +02:00
|
|
|
|
2024-07-11 10:50:44 +02:00
|
|
|
<div
|
|
|
|
class="mr-3 d-flex align-self-center"
|
|
|
|
style="align-items: center"
|
|
|
|
>
|
|
|
|
<KeyRound class="mr-1" />
|
|
|
|
{{ props.licenseKey }}
|
|
|
|
</div>
|
2024-07-09 16:35:30 +02:00
|
|
|
|
2024-07-11 10:50:44 +02:00
|
|
|
<div
|
|
|
|
class="mr-3 d-flex align-self-center"
|
|
|
|
style="align-items: center"
|
|
|
|
>
|
|
|
|
<CalendarCheck />
|
|
|
|
<span
|
|
|
|
v-if="
|
|
|
|
props.startDate == null ||
|
|
|
|
props.startDate == undefined ||
|
|
|
|
props.startDate.length == 0
|
|
|
|
"
|
|
|
|
>
|
|
|
|
Verfügbar
|
|
|
|
</span>
|
|
|
|
<span v-else>
|
|
|
|
{{ props.startDate }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2024-07-09 16:35:30 +02:00
|
|
|
|
2024-07-11 10:50:44 +02:00
|
|
|
<div
|
|
|
|
class="mr-3 d-flex align-self-center"
|
|
|
|
style="align-items: center"
|
|
|
|
>
|
|
|
|
<CalendarX />
|
|
|
|
<span
|
|
|
|
v-if="
|
|
|
|
props.endDate == null ||
|
|
|
|
props.endDate == undefined ||
|
|
|
|
props.endDate.length == 0
|
|
|
|
"
|
|
|
|
>
|
|
|
|
Ewig Verfügbar
|
|
|
|
</span>
|
|
|
|
<span v-else>
|
|
|
|
{{ props.endDate }}
|
|
|
|
</span>
|
|
|
|
</div>
|
2024-07-09 16:35:30 +02:00
|
|
|
|
2024-07-11 10:50:44 +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>
|
2024-07-09 16:35:30 +02:00
|
|
|
</v-expansion-panel-title>
|
|
|
|
<v-expansion-panel-text>
|
2024-07-11 10:59:22 +02:00
|
|
|
<v-row
|
2024-07-11 13:10:04 +02:00
|
|
|
class="flex-nowrap bg-surface-variant"
|
2024-07-11 10:59:22 +02:00
|
|
|
no-gutters
|
|
|
|
>
|
|
|
|
<v-col
|
2024-07-11 13:10:04 +02:00
|
|
|
class="flex-grow-0 flex-shrink-0"
|
|
|
|
cols="7"
|
2024-07-11 10:59:22 +02:00
|
|
|
>
|
2024-07-11 13:10:04 +02:00
|
|
|
Notes: {{ props.notes }}
|
2024-07-11 10:59:22 +02:00
|
|
|
</v-col>
|
|
|
|
|
2024-07-11 13:10:04 +02:00
|
|
|
|
2024-07-11 10:59:22 +02:00
|
|
|
<v-col
|
2024-07-11 13:10:04 +02:00
|
|
|
class="flex-grow-0 flex-shrink-1"
|
|
|
|
cols="5"
|
2024-07-11 10:59:22 +02:00
|
|
|
>
|
2024-07-11 13:10:04 +02:00
|
|
|
I'm 5 column wide and I shrink if there's not enough space
|
2024-07-11 10:59:22 +02:00
|
|
|
</v-col>
|
|
|
|
</v-row>
|
|
|
|
|
2024-07-11 13:10:04 +02:00
|
|
|
|
|
|
|
|
2024-07-09 16:35:30 +02:00
|
|
|
</v-expansion-panel-text>
|
|
|
|
</v-expansion-panel>
|
|
|
|
</v-expansion-panels>
|
2024-07-08 13:18:54 +02:00
|
|
|
</v-sheet>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
2024-07-11 13:10:04 +02:00
|
|
|
import { Infinity, KeyRound, CalendarCheck, CalendarX } from "lucide-vue-next";
|
2024-07-08 13:18:54 +02:00
|
|
|
|
2024-07-11 10:50:44 +02:00
|
|
|
const props = defineProps({
|
|
|
|
licenseName: String,
|
|
|
|
licenseKey: String,
|
|
|
|
startDate: String,
|
|
|
|
endDate: String,
|
|
|
|
amount: Number,
|
|
|
|
notes: String,
|
|
|
|
});
|
2024-07-08 13:18:54 +02:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2024-07-11 10:50:44 +02:00
|
|
|
.values {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
2024-07-08 13:18:54 +02:00
|
|
|
</style>
|