feat(settings): add local storage tab to display IndexedDB usage and site quota

This commit is contained in:
HouYunFei
2026-08-06 15:30:46 +08:00
parent a4074f7413
commit c23942ddba
9 changed files with 229 additions and 5 deletions
+19 -2
View File
@@ -357,12 +357,29 @@ export default {
config: {
title: "Settings & Preferences",
invalidFile: "The settings file format is invalid",
description: "Provider aggregation, model selection, and sync preferences",
modalDescription: "Provider aggregation, default models, and sync preferences",
description: "Providers, model selection, sync, and local storage",
modalDescription: "Providers, default models, sync, and local storage",
tabs: {
channels: "Providers",
preferences: "Preferences",
promptSources: "Prompt sources",
localStorage: "Local storage",
},
localStorage: {
title: "IndexedDB storage usage",
description: "View browser data saved by Infinite Canvas, grouped by object store.",
indexedDbUsage: "IndexedDB usage",
siteUsage: "Total site usage",
quota: "Available quota",
contentEstimate: "Estimated from stored content",
siteUsageHint: "Includes IndexedDB and other site data",
quotaHint: "Allocated dynamically by the browser",
quotaProgress: "Site quota usage",
mainDatabase: "Infinite Canvas data",
records: "{{count}} records",
refresh: "Refresh usage",
readFailed: "Failed to read local storage",
stores: { appState: "App state", images: "Image files", media: "Audio and video files", imageLogs: "Image history", videoLogs: "Video history", agentMessages: "Agent messages", promptCache: "Prompt cache" },
},
promptSources: {
add: "Add source",