enhance(frontend): tweak ui
This commit is contained in:
		| @@ -139,21 +139,11 @@ const menuDef = computed(() => [{ | ||||
| 		text: i18n.ts.roles, | ||||
| 		to: '/settings/roles', | ||||
| 		active: currentPage?.route.name === 'roles', | ||||
| 	}, { | ||||
| 		icon: 'ti ti-planet-off', | ||||
| 		text: i18n.ts.instanceMute, | ||||
| 		to: '/settings/instance-mute', | ||||
| 		active: currentPage?.route.name === 'instance-mute', | ||||
| 	}, { | ||||
| 		icon: 'ti ti-ban', | ||||
| 		text: i18n.ts.muteAndBlock, | ||||
| 		to: '/settings/mute-block', | ||||
| 		active: currentPage?.route.name === 'mute-block', | ||||
| 	}, { | ||||
| 		icon: 'ti ti-message-off', | ||||
| 		text: i18n.ts.wordMute, | ||||
| 		to: '/settings/word-mute', | ||||
| 		active: currentPage?.route.name === 'word-mute', | ||||
| 	}, { | ||||
| 		icon: 'ti ti-api', | ||||
| 		text: 'API', | ||||
|   | ||||
| @@ -22,7 +22,6 @@ import MkButton from '@/components/MkButton.vue'; | ||||
| import * as os from '@/os.js'; | ||||
| import { $i } from '@/account.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
| import { definePageMetadata } from '@/scripts/page-metadata.js'; | ||||
| 
 | ||||
| const instanceMutes = ref($i!.mutedInstances.join('\n')); | ||||
| const changed = ref(false); | ||||
| @@ -46,13 +45,4 @@ async function save() { | ||||
| watch(instanceMutes, () => { | ||||
| 	changed.value = true; | ||||
| }); | ||||
| 
 | ||||
| const headerActions = $computed(() => []); | ||||
| 
 | ||||
| const headerTabs = $computed(() => []); | ||||
| 
 | ||||
| definePageMetadata({ | ||||
| 	title: i18n.ts.instanceMute, | ||||
| 	icon: 'ti ti-planet-off', | ||||
| }); | ||||
| </script> | ||||
| @@ -5,6 +5,20 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <template> | ||||
| <div class="_gaps_m"> | ||||
| 	<MkFolder> | ||||
| 		<template #icon><i class="ti ti-message-off"></i></template> | ||||
| 		<template #label>{{ i18n.ts.wordMute }}</template> | ||||
|  | ||||
| 		<XWordMute/> | ||||
| 	</MkFolder> | ||||
|  | ||||
| 	<MkFolder> | ||||
| 		<template #icon><i class="ti ti-planet-off"></i></template> | ||||
| 		<template #label>{{ i18n.ts.instanceMute }}</template> | ||||
|  | ||||
| 		<XInstanceMute/> | ||||
| 	</MkFolder> | ||||
|  | ||||
| 	<MkFolder> | ||||
| 		<template #icon><i class="ti ti-repeat-off"></i></template> | ||||
| 		<template #label>{{ i18n.ts.mutedUsers }} ({{ i18n.ts.renote }})</template> | ||||
| @@ -106,6 +120,8 @@ SPDX-License-Identifier: AGPL-3.0-only | ||||
|  | ||||
| <script lang="ts" setup> | ||||
| import { } from 'vue'; | ||||
| import XInstanceMute from './mute-block.instance-mute.vue'; | ||||
| import XWordMute from './mute-block.word-mute.vue'; | ||||
| import MkPagination from '@/components/MkPagination.vue'; | ||||
| import { userPage } from '@/filters/user.js'; | ||||
| import { i18n } from '@/i18n.js'; | ||||
|   | ||||
| @@ -91,13 +91,4 @@ async function save() { | ||||
| 
 | ||||
| 	changed.value = false; | ||||
| } | ||||
| 
 | ||||
| const headerActions = $computed(() => []); | ||||
| 
 | ||||
| const headerTabs = $computed(() => []); | ||||
| 
 | ||||
| definePageMetadata({ | ||||
| 	title: i18n.ts.wordMute, | ||||
| 	icon: 'ti ti-message-off', | ||||
| }); | ||||
| </script> | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo