2025-12-11 14:28:02 +09:00
|
|
|
// Centralized localStorage keys
|
|
|
|
|
// Consolidates all storage keys from chat-panel.tsx and settings-dialog.tsx
|
|
|
|
|
|
|
|
|
|
export const STORAGE_KEYS = {
|
|
|
|
|
// Chat data
|
|
|
|
|
messages: "next-ai-draw-io-messages",
|
|
|
|
|
xmlSnapshots: "next-ai-draw-io-xml-snapshots",
|
|
|
|
|
diagramXml: "next-ai-draw-io-diagram-xml",
|
|
|
|
|
sessionId: "next-ai-draw-io-session-id",
|
|
|
|
|
|
|
|
|
|
// Quota tracking
|
|
|
|
|
requestCount: "next-ai-draw-io-request-count",
|
|
|
|
|
requestDate: "next-ai-draw-io-request-date",
|
|
|
|
|
tokenCount: "next-ai-draw-io-token-count",
|
|
|
|
|
tokenDate: "next-ai-draw-io-token-date",
|
|
|
|
|
tpmCount: "next-ai-draw-io-tpm-count",
|
|
|
|
|
tpmMinute: "next-ai-draw-io-tpm-minute",
|
|
|
|
|
|
|
|
|
|
// Settings
|
|
|
|
|
accessCode: "next-ai-draw-io-access-code",
|
|
|
|
|
closeProtection: "next-ai-draw-io-close-protection",
|
|
|
|
|
accessCodeRequired: "next-ai-draw-io-access-code-required",
|
|
|
|
|
aiProvider: "next-ai-draw-io-ai-provider",
|
|
|
|
|
aiBaseUrl: "next-ai-draw-io-ai-base-url",
|
|
|
|
|
aiApiKey: "next-ai-draw-io-ai-api-key",
|
|
|
|
|
aiModel: "next-ai-draw-io-ai-model",
|
2025-12-22 17:58:05 +09:00
|
|
|
|
|
|
|
|
// Multi-model configuration
|
|
|
|
|
modelConfigs: "next-ai-draw-io-model-configs",
|
|
|
|
|
selectedModelId: "next-ai-draw-io-selected-model-id",
|
2025-12-11 14:28:02 +09:00
|
|
|
} as const
|