2021-08-07 17:55:16 +09:00
|
|
|
<template>
|
2023-05-29 22:11:42 +09:00
|
|
|
<MkSpacer :content-max="700">
|
|
|
|
<div class="geegznzt">
|
|
|
|
<XAntenna :antenna="draft" @created="onAntennaCreated" />
|
|
|
|
</div>
|
|
|
|
</MkSpacer>
|
2021-08-07 17:55:16 +09:00
|
|
|
</template>
|
|
|
|
|
2022-01-15 16:40:15 +09:00
|
|
|
<script lang="ts" setup>
|
2023-04-08 09:01:42 +09:00
|
|
|
import XAntenna from "./editor.vue";
|
|
|
|
import { i18n } from "@/i18n";
|
|
|
|
import { definePageMetadata } from "@/scripts/page-metadata";
|
|
|
|
import { useRouter } from "@/router";
|
2022-06-20 17:38:49 +09:00
|
|
|
|
|
|
|
const router = useRouter();
|
2021-08-07 17:55:16 +09:00
|
|
|
|
2022-01-15 16:40:15 +09:00
|
|
|
let draft = $ref({
|
2023-04-08 09:01:42 +09:00
|
|
|
name: "",
|
|
|
|
src: "all",
|
2022-01-15 16:40:15 +09:00
|
|
|
userListId: null,
|
|
|
|
userGroupId: null,
|
|
|
|
users: [],
|
2023-02-12 10:20:17 +09:00
|
|
|
instances: [],
|
2022-01-15 16:40:15 +09:00
|
|
|
keywords: [],
|
|
|
|
excludeKeywords: [],
|
|
|
|
withReplies: false,
|
|
|
|
caseSensitive: false,
|
|
|
|
withFile: false,
|
2022-06-20 17:38:49 +09:00
|
|
|
notify: false,
|
2022-01-15 16:40:15 +09:00
|
|
|
});
|
2021-08-07 17:55:16 +09:00
|
|
|
|
2022-01-15 16:40:15 +09:00
|
|
|
function onAntennaCreated() {
|
2023-04-08 09:01:42 +09:00
|
|
|
router.push("/my/antennas");
|
2022-01-15 16:40:15 +09:00
|
|
|
}
|
2021-08-07 17:55:16 +09:00
|
|
|
|
2022-06-20 17:38:49 +09:00
|
|
|
definePageMetadata({
|
|
|
|
title: i18n.ts.manageAntennas,
|
2023-04-08 09:01:42 +09:00
|
|
|
icon: "ph-flying-saucer ph-bold ph-lg",
|
2021-08-07 17:55:16 +09:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
2023-04-08 09:01:42 +09:00
|
|
|
<style lang="scss" scoped></style>
|