iceshrimp/packages/client/src/pages/my-antennas/create.vue

43 lines
823 B
Vue
Raw Normal View History

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>
<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";
const router = useRouter();
2021-08-07 17:55:16 +09:00
let draft = $ref({
2023-04-08 09:01:42 +09:00
name: "",
src: "all",
userListId: null,
userGroupId: null,
users: [],
instances: [],
keywords: [],
excludeKeywords: [],
withReplies: false,
caseSensitive: false,
withFile: false,
notify: false,
});
2021-08-07 17:55:16 +09:00
function onAntennaCreated() {
2023-04-08 09:01:42 +09:00
router.push("/my/antennas");
}
2021-08-07 17:55:16 +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>