2023-05-19 14:52:15 +03:00
|
|
|
<template>
|
|
|
|
<MkStickyContainer>
|
2022-06-20 11:38:49 +03:00
|
|
|
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
|
2023-05-19 14:52:15 +03:00
|
|
|
<MkSpacer :contentMax="700">
|
|
|
|
<div class="ieepwinx">
|
|
|
|
<MkButton :link="true" to="/my/antennas/create" primary class="add"><i class="ti ti-plus"></i> {{ i18n.ts.add }}</MkButton>
|
2020-01-29 21:37:25 +02:00
|
|
|
|
2023-05-19 14:52:15 +03: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>
|
2021-12-02 13:09:12 +02:00
|
|
|
</div>
|
2023-05-19 14:52:15 +03:00
|
|
|
</MkSpacer>
|
|
|
|
</MkStickyContainer>
|
2020-01-29 21:37:25 +02:00
|
|
|
</template>
|
|
|
|
|
2022-05-17 19:30:35 +03:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2022-09-06 12:21:49 +03:00
|
|
|
import MkPagination from '@/components/MkPagination.vue';
|
|
|
|
import MkButton from '@/components/MkButton.vue';
|
2022-05-17 19:30:35 +03:00
|
|
|
import { i18n } from '@/i18n';
|
2022-06-20 11:38:49 +03:00
|
|
|
import { definePageMetadata } from '@/scripts/page-metadata';
|
2022-05-17 19:30:35 +03:00
|
|
|
|
|
|
|
const pagination = {
|
|
|
|
endpoint: 'antennas/list' as const,
|
2023-04-08 13:37:35 +03:00
|
|
|
noPaging: true,
|
2022-05-17 19:30:35 +03:00
|
|
|
limit: 10,
|
|
|
|
};
|
|
|
|
|
2022-06-20 11:38:49 +03:00
|
|
|
const headerActions = $computed(() => []);
|
|
|
|
|
|
|
|
const headerTabs = $computed(() => []);
|
|
|
|
|
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.manageAntennas,
|
2022-12-19 12:01:30 +02:00
|
|
|
icon: 'ti ti-antenna',
|
2022-06-10 08:36:55 +03:00
|
|
|
});
|
2020-01-29 21:37:25 +02:00
|
|
|
</script>
|
|
|
|
|
2022-12-27 11:29:39 +02:00
|
|
|
<style lang="scss" scoped>
|
2020-01-29 21:37:25 +02:00
|
|
|
.ieepwinx {
|
2021-08-07 11:55:16 +03:00
|
|
|
|
2020-01-29 21:37:25 +02:00
|
|
|
> .add {
|
|
|
|
margin: 0 auto 16px auto;
|
|
|
|
}
|
2021-08-07 11:55:16 +03: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 21:37:25 +02:00
|
|
|
}
|
|
|
|
</style>
|