This commit is contained in:
syuilo 2021-10-12 21:46:18 +09:00
parent 7310e1e50e
commit 48cc814bdb

View file

@ -1,10 +1,10 @@
<template> <template>
<div class="shaynizk"> <div class="shaynizk">
<div class="form"> <div class="form">
<MkInput v-model="name" class=""> <MkInput v-model="name" class="_formBlock">
<template #label>{{ $ts.name }}</template> <template #label>{{ $ts.name }}</template>
</MkInput> </MkInput>
<MkSelect v-model="src"> <MkSelect v-model="src" class="_formBlock">
<template #label>{{ $ts.antennaSource }}</template> <template #label>{{ $ts.antennaSource }}</template>
<option value="all">{{ $ts._antennaSources.all }}</option> <option value="all">{{ $ts._antennaSources.all }}</option>
<option value="home">{{ $ts._antennaSources.homeTimeline }}</option> <option value="home">{{ $ts._antennaSources.homeTimeline }}</option>
@ -12,30 +12,30 @@
<option value="list">{{ $ts._antennaSources.userList }}</option> <option value="list">{{ $ts._antennaSources.userList }}</option>
<option value="group">{{ $ts._antennaSources.userGroup }}</option> <option value="group">{{ $ts._antennaSources.userGroup }}</option>
</MkSelect> </MkSelect>
<MkSelect v-model="userListId" v-if="src === 'list'"> <MkSelect v-model="userListId" v-if="src === 'list'" class="_formBlock">
<template #label>{{ $ts.userList }}</template> <template #label>{{ $ts.userList }}</template>
<option v-for="list in userLists" :value="list.id" :key="list.id">{{ list.name }}</option> <option v-for="list in userLists" :value="list.id" :key="list.id">{{ list.name }}</option>
</MkSelect> </MkSelect>
<MkSelect v-model="userGroupId" v-else-if="src === 'group'"> <MkSelect v-model="userGroupId" v-else-if="src === 'group'" class="_formBlock">
<template #label>{{ $ts.userGroup }}</template> <template #label>{{ $ts.userGroup }}</template>
<option v-for="group in userGroups" :value="group.id" :key="group.id">{{ group.name }}</option> <option v-for="group in userGroups" :value="group.id" :key="group.id">{{ group.name }}</option>
</MkSelect> </MkSelect>
<MkTextarea v-model="users" v-else-if="src === 'users'"> <MkTextarea v-model="users" v-else-if="src === 'users'" class="_formBlock">
<template #label>{{ $ts.users }}</template> <template #label>{{ $ts.users }}</template>
<template #caption>{{ $ts.antennaUsersDescription }} <button class="_textButton" @click="addUser">{{ $ts.addUser }}</button></template> <template #caption>{{ $ts.antennaUsersDescription }} <button class="_textButton" @click="addUser">{{ $ts.addUser }}</button></template>
</MkTextarea> </MkTextarea>
<MkSwitch v-model="withReplies">{{ $ts.withReplies }}</MkSwitch> <MkSwitch v-model="withReplies" class="_formBlock">{{ $ts.withReplies }}</MkSwitch>
<MkTextarea v-model="keywords"> <MkTextarea v-model="keywords" class="_formBlock">
<template #label>{{ $ts.antennaKeywords }}</template> <template #label>{{ $ts.antennaKeywords }}</template>
<template #caption>{{ $ts.antennaKeywordsDescription }}</template> <template #caption>{{ $ts.antennaKeywordsDescription }}</template>
</MkTextarea> </MkTextarea>
<MkTextarea v-model="excludeKeywords"> <MkTextarea v-model="excludeKeywords" class="_formBlock">
<template #label>{{ $ts.antennaExcludeKeywords }}</template> <template #label>{{ $ts.antennaExcludeKeywords }}</template>
<template #caption>{{ $ts.antennaKeywordsDescription }}</template> <template #caption>{{ $ts.antennaKeywordsDescription }}</template>
</MkTextarea> </MkTextarea>
<MkSwitch v-model="caseSensitive">{{ $ts.caseSensitive }}</MkSwitch> <MkSwitch v-model="caseSensitive" class="_formBlock">{{ $ts.caseSensitive }}</MkSwitch>
<MkSwitch v-model="withFile">{{ $ts.withFileAntenna }}</MkSwitch> <MkSwitch v-model="withFile" class="_formBlock">{{ $ts.withFileAntenna }}</MkSwitch>
<MkSwitch v-model="notify">{{ $ts.notifyAntenna }}</MkSwitch> <MkSwitch v-model="notify" class="_formBlock">{{ $ts.notifyAntenna }}</MkSwitch>
</div> </div>
<div class="actions"> <div class="actions">
<MkButton inline @click="saveAntenna()" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton> <MkButton inline @click="saveAntenna()" primary><i class="fas fa-save"></i> {{ $ts.save }}</MkButton>