rudeshark.net/packages/client/src/pages/my-antennas/index.vue

67 lines
1.5 KiB
Vue
Raw Normal View History

2022-11-04 00:05:22 +01:00
<template>
<MkStickyContainer>
<template #header><MkPageHeader :actions="headerActions" :tabs="headerTabs"/></template>
2022-11-04 00:05:22 +01:00
<MkSpacer :content-max="700">
<div class="ieepwinx">
2022-11-07 03:30:26 +01:00
<MkButton :link="true" to="/my/antennas/create" primary class="add"><i class="ph-plus-bold"></i> {{ i18n.ts.add }}</MkButton>
2022-11-04 00:05:22 +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>
2021-12-02 12:09:12 +01:00
</div>
2022-11-04 00:05:22 +01:00
</MkSpacer>
</MkStickyContainer>
</template>
<script lang="ts" setup>
import { } from 'vue';
import MkPagination from '@/components/MkPagination.vue';
import MkButton from '@/components/MkButton.vue';
import { i18n } from '@/i18n';
import { definePageMetadata } from '@/scripts/page-metadata';
const pagination = {
endpoint: 'antennas/list' as const,
limit: 10,
};
const headerActions = $computed(() => []);
const headerTabs = $computed(() => []);
definePageMetadata({
title: i18n.ts.manageAntennas,
2022-11-07 03:30:26 +01:00
icon: 'ph-flying-saucer-bold',
});
</script>
<style lang="scss" scoped>
.ieepwinx {
2021-08-07 10:55:16 +02: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;
}
}
}
</style>