style: 存储卡片改名存储配置,说明改为标题旁信息图标悬浮提示
- 系统设置「存储与 CDN」改为「存储配置」 - 移除常驻说明条,改为标题右侧信息图标 hover 弹出完整说明,节省空间
This commit is contained in:
@@ -509,7 +509,7 @@
|
||||
"carouselInterval": "Carousel Interval",
|
||||
"carouselIntervalHint": "Seconds each media stays; decimals allowed. 0 disables auto-advance (manual loop still works).",
|
||||
"clientBaseUrl": "Client URL",
|
||||
"storageSettings": "Storage & CDN",
|
||||
"storageSettings": "Storage Settings",
|
||||
"storageHint": "Storage settings are NOT applied by the Save button above. After editing, click Test to verify the target, Migrate to copy existing files, then Switch to activate.",
|
||||
"storageDriver": "Storage",
|
||||
"storageDriverLocal": "Local",
|
||||
|
||||
@@ -509,7 +509,7 @@
|
||||
"carouselInterval": "客户端轮播间隔",
|
||||
"carouselIntervalHint": "每张媒体停留秒数,支持小数;填 0 则不自动切换(仍可手动循环切换)",
|
||||
"clientBaseUrl": "客户端地址",
|
||||
"storageSettings": "存储与 CDN",
|
||||
"storageSettings": "存储配置",
|
||||
"storageHint": "存储配置不随上方「保存」生效:修改后请依次点「测试」验证目标可用、「迁移」把已有文件复制到目标,再点「切换」正式启用。",
|
||||
"storageDriver": "存储方式",
|
||||
"storageDriverLocal": "本地",
|
||||
|
||||
@@ -120,14 +120,21 @@
|
||||
|
||||
<section class="settings-card storage-card">
|
||||
<div class="card-title">
|
||||
<span>{{ t('pages.settings.storageSettings') }}</span>
|
||||
<span class="card-title-text">
|
||||
{{ t('pages.settings.storageSettings') }}
|
||||
<n-popover trigger="hover" placement="bottom-start" :style="{ maxWidth: '340px' }">
|
||||
<template #trigger>
|
||||
<n-icon class="hint-icon" :component="HelpCircleOutline" />
|
||||
</template>
|
||||
<span class="hint-popover">{{ t('pages.settings.storageHint') }}</span>
|
||||
</n-popover>
|
||||
</span>
|
||||
<div class="card-actions">
|
||||
<n-button size="small" :loading="testingStorage" @click="testStorage">{{ t('pages.settings.testStorage') }}</n-button>
|
||||
<n-button size="small" :loading="migratingStorage" @click="migrateStorage">{{ t('pages.settings.migrateStorage') }}</n-button>
|
||||
<n-button size="small" type="primary" :loading="confirmingStorage" @click="confirmStorage">{{ t('pages.settings.confirmStorage') }}</n-button>
|
||||
</div>
|
||||
</div>
|
||||
<n-alert type="info" :show-icon="false" class="storage-hint">{{ t('pages.settings.storageHint') }}</n-alert>
|
||||
<div class="setting-row">
|
||||
<n-form-item :label="t('pages.settings.storageDriver')">
|
||||
<n-select v-model:value="form.storageDriver" :options="storageDriverOptions" class="select-control" />
|
||||
@@ -187,6 +194,7 @@ import { computed, onMounted, reactive, ref } from 'vue';
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { settingsApi, storageApi } from '@/api';
|
||||
import { message } from '@/utils/feedback';
|
||||
import { HelpCircleOutline } from '@vicons/ionicons5';
|
||||
import BackupRestorePanel from '@/components/BackupRestorePanel.vue';
|
||||
import MediaUpload from '@/components/MediaUpload.vue';
|
||||
import { DEFAULT_APP_ICON_URL, resolveAppIcon, setFavicon } from '@/utils/appIcon';
|
||||
@@ -450,8 +458,23 @@ const currentIconUrl = computed(() => resolveAppIcon(form.appIconFiles[0]?.url |
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-end;
|
||||
}
|
||||
.storage-hint {
|
||||
margin: 0 12px 8px;
|
||||
.card-title-text {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.hint-icon {
|
||||
color: var(--n-text-color-3, #8a94a6);
|
||||
font-size: 16px;
|
||||
cursor: help;
|
||||
}
|
||||
.hint-icon:hover {
|
||||
color: var(--brand, #2f9e8f);
|
||||
}
|
||||
.hint-popover {
|
||||
display: block;
|
||||
font-size: 12px;
|
||||
line-height: 1.7;
|
||||
}
|
||||
.setting-row {
|
||||
padding: 8px 12px;
|
||||
|
||||
Reference in New Issue
Block a user