重构大量文件

This commit is contained in:
2026-02-24 10:50:11 +08:00
parent dd97cf6a2c
commit 9efdf060f5
29 changed files with 264 additions and 133 deletions
+2 -3
View File
@@ -1,7 +1,7 @@
"use client";
import { useState } from "react";
import { useSettingsStore, defaultPrompts, fontOptions, timezoneOptions } from "@/lib/settings-store";
import { useSettingsStore, fontOptions, timezoneOptions } from "@/lib/settings-store";
import { Lock, Type, Save, Sparkles } from "lucide-react";
import { ResizableSidebar } from "@/components/sidebar";
import { PromptManagement } from "@/components/settings/prompt-management";
@@ -16,7 +16,6 @@ export default function SettingsPage() {
tableLineHeight, setTableLineHeight,
timezone, setTimezone,
aiConfig, setAIConfig,
prompts, resetPrompts, updatePrompt, deletePrompt, addPrompt
} = useSettingsStore();
// Security
@@ -50,7 +49,7 @@ export default function SettingsPage() {
const data = await res.json();
setMsg({ type: 'error', text: data.error || "修改失败" });
}
} catch (e) {
} catch {
setMsg({ type: 'error', text: "系统错误,请重试" });
}
};