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

44 lines
753 B
Vue
Raw Normal View History

2021-08-07 17:55:16 +09:00
<template>
<div class="geegznzt">
<XAntenna :antenna="draft" @created="onAntennaCreated"/>
</div>
</template>
<script lang="ts" setup>
import { } from 'vue';
2021-08-07 17:55:16 +09:00
import XAntenna from './editor.vue';
2021-11-12 02:02:25 +09:00
import * as symbols from '@/symbols';
import { i18n } from '@/i18n';
import { router } from '@/router';
2021-08-07 17:55:16 +09: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 17:55:16 +09:00
function onAntennaCreated() {
router.push('/my/antennas');
}
2021-08-07 17:55:16 +09:00
defineExpose({
[symbols.PAGE_INFO]: {
title: i18n.ts.manageAntennas,
icon: 'fas fa-satellite',
bg: 'var(--bg)',
},
2021-08-07 17:55:16 +09:00
});
</script>
<style lang="scss" scoped>
</style>