1 parent
042dd589fa
commit
b61c4c9479
6 files changed
+47
-52
No files matched your search
@@ -75,14 +75,6 @@
|
||||
|
||||
<div v-else-if="!loading" class="config-page-body">
|
||||
<section class="editor-panel" :aria-busy="sectionLoading">
|
||||
<div class="panel-heading">
|
||||
<div>
|
||||
<h4>{{ canWrite ? '填写配置' : '查看配置' }}</h4>
|
||||
<p class="heading-note">{{ canWrite ? '按分组填写内容,验证并保存后再应用生效。' : '当前页面的脱敏配置内容。' }}</p>
|
||||
</div>
|
||||
<span class="selected-section-label">{{ currentSection.label }}</span>
|
||||
</div>
|
||||
|
||||
<p v-if="selectedSection === 'ssl' && status.tlsMode === 'proxy'" class="heading-note" role="note">
|
||||
当前由反向代理提供 HTTPS,Smail 不自动申请或续期 SSL 证书。下方配置仅用于本地邮件服务证书;外部续期后请重新导入并应用,不能仅更新反代服务器上的证书。
|
||||
</p>
|
||||
|
||||
@@ -1,42 +1,26 @@
|
||||
.config-form {
|
||||
display: grid;
|
||||
gap: 24px;
|
||||
margin-top: 22px;
|
||||
gap: 20px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.config-form:not(:first-child) {
|
||||
margin-top: 16px;
|
||||
}
|
||||
|
||||
.form-group {
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.form-group + .form-group {
|
||||
padding-top: 24px;
|
||||
padding-top: 20px;
|
||||
border-top: 1px solid var(--pm-border-color);
|
||||
}
|
||||
|
||||
.form-group-heading {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.form-group-heading h5 {
|
||||
margin: 0;
|
||||
color: var(--pm-text-primary);
|
||||
font-size: 15px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.credential-status {
|
||||
color: var(--pm-text-secondary);
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.form-group-description,
|
||||
.credential-status,
|
||||
.form-group-note,
|
||||
.form-empty {
|
||||
margin: 6px 0 18px;
|
||||
margin: 0 0 12px;
|
||||
color: var(--pm-text-secondary);
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
<template>
|
||||
<div class="config-form" :data-form-section="section">
|
||||
<p v-if="!groups.length" class="form-empty">当前没有可配置的插件。安装插件后可在这里管理启用状态与运行设置。</p>
|
||||
<section v-for="group in groups" :key="group.id" class="form-group" :aria-labelledby="`form-group-${group.id}`">
|
||||
<div class="form-group-heading">
|
||||
<h5 :id="`form-group-${group.id}`">{{ group.title }}</h5>
|
||||
<span v-if="section === 'plugins'" class="credential-status">{{ group.secretConfigured ? '凭据已配置' : '未配置凭据' }}</span>
|
||||
</div>
|
||||
<p class="form-group-description">{{ group.description }}</p>
|
||||
<p v-if="group.note" class="form-group-description">{{ group.note }}</p>
|
||||
<section v-for="group in groups" :key="group.id" class="form-group" :aria-label="group.title">
|
||||
<p v-if="section === 'plugins'" class="credential-status">{{ group.secretConfigured ? '凭据已配置' : '未配置凭据' }}</p>
|
||||
<p v-if="group.note" class="form-group-note" role="note">{{ group.note }}</p>
|
||||
<div class="form-grid">
|
||||
<ConfigField
|
||||
v-for="field in group.fields"
|
||||
|
||||
@@ -127,15 +127,6 @@
|
||||
.panel-heading {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.selected-section-label {
|
||||
padding: 4px 8px;
|
||||
border-radius: 6px;
|
||||
background: var(--pm-bg-primary);
|
||||
color: var(--pm-text-secondary);
|
||||
font-size: 11px;
|
||||
line-height: 1.5;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.editor-hint,
|
||||
.action-hint {
|
||||
margin: 8px 0 0;
|
||||
@@ -398,9 +389,6 @@
|
||||
"main";
|
||||
gap: 16px;
|
||||
}
|
||||
.selected-section-label {
|
||||
white-space: normal;
|
||||
}
|
||||
.config-navigation {
|
||||
gap: 12px;
|
||||
position: static;
|
||||
|
||||
Reference in new issue
Block a user