增加前端格式检查配置

This commit is contained in:
yml2213
2026-06-08 06:40:33 +08:00
parent 79ea3a476c
commit 500f511185
150 changed files with 7254 additions and 4013 deletions
@@ -22,7 +22,7 @@ const homeAnnouncementLines = ref('')
watch(
() => props.modelValue,
(val) => {
val => {
if (val) {
homeAnnouncementLines.value = itemsToLines(parseHomeAnnouncements(props.config.value))
description.value = props.config.description || ''
@@ -39,7 +39,7 @@ function parseHomeAnnouncements(raw: string) {
function linesToItems(value: string) {
return value
.split('\n')
.map((item) => item.trim())
.map(item => item.trim())
.filter(Boolean)
}
@@ -86,7 +86,9 @@ function readError(error: unknown, fallback: string) {
@update:model-value="emit('update:modelValue', $event)"
>
<div class="dialog-body">
<p class="config-key-label"><strong>{{ config.key }}</strong></p>
<p class="config-key-label">
<strong>{{ config.key }}</strong>
</p>
<div class="home-config-editor">
<div class="editor-toolbar">