Add uuid dependency and implement KV storage support in settings and data provider components. Enhance server settings with site key configuration and improve data handling for new KV providers.

This commit is contained in:
SunWuyuan
2025-05-10 17:48:18 +08:00
parent 00a693aeba
commit c0e33dcbf9
12 changed files with 1558 additions and 270 deletions
+6 -4
View File
@@ -35,7 +35,7 @@
@click="adjustValue(stepValue)" />
</div>
</div>
<v-menu location="bottom">
<template v-slot:activator="{ props }">
<v-btn icon="mdi-dots-vertical" size="small" variant="text" v-bind="props" class="ml-2"
@@ -170,7 +170,9 @@ export default {
},
'server.provider': {
'server': '远程服务器',
'indexedDB': '本地存储'
'indexedDB': '本地存储',
'kv-local': 'KV本地存储',
'kv-server': 'KV远程服务器'
}
},
// 默认图标映射,按设置类型
@@ -233,12 +235,12 @@ export default {
if (this.icon) {
return this.icon;
}
// 其次使用定义中的图标
if (this.definition && this.definition.icon) {
return this.definition.icon;
}
// 最后使用基于类型的默认图标
return this.defaultIcons[this.type] || 'mdi-cog-outline';
}