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