2021-08-07 10:55:16 +02:00
|
|
|
<template>
|
|
|
|
<div class="geegznzt">
|
|
|
|
<XAntenna :antenna="draft" @created="onAntennaCreated"/>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2022-01-15 08:40:15 +01:00
|
|
|
<script lang="ts" setup>
|
|
|
|
import { } from 'vue';
|
2021-08-07 10:55:16 +02:00
|
|
|
import XAntenna from './editor.vue';
|
2021-11-11 18:02:25 +01:00
|
|
|
import * as symbols from '@/symbols';
|
2022-01-15 08:40:15 +01:00
|
|
|
import { i18n } from '@/i18n';
|
|
|
|
import { router } from '@/router';
|
2021-08-07 10:55:16 +02:00
|
|
|
|
2022-01-15 08:40:15 +01:00
|
|
|
let draft = $ref({
|
|
|
|
name: '',
|
|
|
|
src: 'all',
|
|
|
|
userListId: null,
|
|
|
|
userGroupId: null,
|
|
|
|
users: [],
|
|
|
|
keywords: [],
|
|
|
|
excludeKeywords: [],
|
|
|
|
withReplies: false,
|
|
|
|
caseSensitive: false,
|
|
|
|
withFile: false,
|
|
|
|
notify: false
|
|
|
|
});
|
2021-08-07 10:55:16 +02:00
|
|
|
|
2022-01-15 08:40:15 +01:00
|
|
|
function onAntennaCreated() {
|
|
|
|
router.push('/my/antennas');
|
|
|
|
}
|
2021-08-07 10:55:16 +02:00
|
|
|
|
2022-01-15 08:40:15 +01:00
|
|
|
defineExpose({
|
|
|
|
[symbols.PAGE_INFO]: {
|
2022-01-28 03:39:49 +01:00
|
|
|
title: i18n.ts.manageAntennas,
|
2022-01-15 08:40:15 +01:00
|
|
|
icon: 'fas fa-satellite',
|
|
|
|
bg: 'var(--bg)',
|
|
|
|
},
|
2021-08-07 10:55:16 +02:00
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
|
|
|
</style>
|