2020-01-29 20:37:25 +01:00
|
|
|
<template>
|
2021-12-02 12:09:12 +01:00
|
|
|
<MkSpacer :content-max="700">
|
|
|
|
<div class="ieepwinx">
|
2022-05-17 18:30:35 +02:00
|
|
|
<MkButton :link="true" to="/my/antennas/create" primary class="add"><i class="fas fa-plus"></i> {{ i18n.ts.add }}</MkButton>
|
2020-01-29 20:37:25 +01:00
|
|
|
|
2021-12-02 12:09:12 +01:00
|
|
|
<div class="">
|
|
|
|
<MkPagination v-slot="{items}" ref="list" :pagination="pagination">
|
|
|
|
<MkA v-for="antenna in items" :key="antenna.id" class="ljoevbzj" :to="`/my/antennas/${antenna.id}`">
|
|
|
|
<div class="name">{{ antenna.name }}</div>
|
|
|
|
</MkA>
|
|
|
|
</MkPagination>
|
|
|
|
</div>
|
2020-10-17 13:12:00 +02:00
|
|
|
</div>
|
2021-12-02 12:09:12 +01:00
|
|
|
</MkSpacer>
|
2020-01-29 20:37:25 +01:00
|
|
|
</template>
|
|
|
|
|
2022-05-17 18:30:35 +02:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2021-11-11 18:02:25 +01:00
|
|
|
import MkPagination from '@/components/ui/pagination.vue';
|
|
|
|
import MkButton from '@/components/ui/button.vue';
|
|
|
|
import * as symbols from '@/symbols';
|
2022-05-17 18:30:35 +02:00
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
|
|
|
|
const pagination = {
|
|
|
|
endpoint: 'antennas/list' as const,
|
|
|
|
limit: 10,
|
|
|
|
};
|
|
|
|
|
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: {
|
|
|
|
title: i18n.ts.manageAntennas,
|
|
|
|
icon: 'fas fa-satellite',
|
|
|
|
bg: 'var(--bg)'
|
|
|
|
}
|
|
|
|
})
|
2020-01-29 20:37:25 +01:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.ieepwinx {
|
2021-08-07 10:55:16 +02:00
|
|
|
|
2020-01-29 20:37:25 +01:00
|
|
|
> .add {
|
|
|
|
margin: 0 auto 16px auto;
|
|
|
|
}
|
2021-08-07 10:55:16 +02:00
|
|
|
|
|
|
|
.ljoevbzj {
|
|
|
|
display: block;
|
|
|
|
padding: 16px;
|
|
|
|
margin-bottom: 8px;
|
|
|
|
border: solid 1px var(--divider);
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border: solid 1px var(--accent);
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
> .name {
|
|
|
|
font-weight: bold;
|
|
|
|
}
|
|
|
|
}
|
2020-01-29 20:37:25 +01:00
|
|
|
}
|
|
|
|
</style>
|