feat: Introduce initial web frontend and backend services, and generalize directory configuration in docker-compose.

This commit is contained in:
2026-03-24 12:24:43 -04:00
parent 6b03709b30
commit d76ad89f09
4 changed files with 67 additions and 6 deletions
+3
View File
@@ -59,6 +59,7 @@ class VaultInfo(BaseModel):
name: str = Field(description="Display name of the vault")
file_count: int = Field(description="Number of indexed files")
tag_count: int = Field(description="Number of unique tags")
type: str = Field(default="VAULT", description="Type of the vault mapping (VAULT or DIR)")
class BrowseItem(BaseModel):
@@ -603,10 +604,12 @@ async def api_vaults(current_user=Depends(require_auth)):
result = []
for name, data in index.items():
if "*" in user_vaults or name in user_vaults:
v_type = vault_config.get(name, {}).get("type", "VAULT")
result.append({
"name": name,
"file_count": len(data["files"]),
"tag_count": len(data["tags"]),
"type": v_type,
})
return result