feat(control-plane): add libSQL Turso backend

This commit is contained in:
Agent Board
2026-07-03 13:24:20 +08:00
parent ee6612028d
commit a75b3d11f9
44 changed files with 11070 additions and 666 deletions
+3 -3
View File
@@ -1,5 +1,6 @@
//! MNOTE 文件夹授权管理组件
use crate::routes::control_plane_status_display;
use leptos::prelude::*;
#[component]
@@ -13,8 +14,7 @@ pub fn AdminAccessPolicyPanel(
.unwrap_or_else(|| "开发用户 的空间".to_string())
.trim()
.to_string();
let share_grants_path = share_grants_path
.unwrap_or_else(|| "/mnt/Data1T/Mnote_data/control-plane/control-plane.db".to_string());
let share_grants_path = share_grants_path.unwrap_or_else(control_plane_status_display);
let scope_text = if is_admin {
"管理员可以授权任意本地文件夹。"
} else {
@@ -40,7 +40,7 @@ pub fn AdminAccessPolicyPanel(
<strong data-testid="mnote-admin-workspace-name">{workspace_name.clone()}</strong>
</div>
<div class="mnote-admin-policy-summary-item">
<span class="mnote-admin-policy-summary-label">"授权记录"</span>
<span class="mnote-admin-policy-summary-label">"控制面"</span>
<code data-testid="mnote-admin-share-grants-path">{share_grants_path.clone()}</code>
</div>
</section>