增加网站配置

This commit is contained in:
qaq
2025-07-24 17:21:09 +08:00
parent ecda75bf08
commit 31e9ee621f
4 changed files with 20 additions and 3 deletions
+1 -1
View File
@@ -1 +1 @@
VITE_API_BASE=http://127.0.0.1:6365
VITE_API_BASE=https://1f.ink
+1 -1
View File
@@ -85,7 +85,7 @@ export const getCachedConfig = async (key: string): Promise<string | null> => {
// 获取所有配置(优先从缓存)
export const getCachedConfigs = async (): Promise<Record<string, string>> => {
// 尝试从缓存获取所有配置
const configKeys = ['app_name', 'site_title', 'site_description', 'contact_email', 'footer_text', 'logo_url'];
const configKeys = ['app_name'];
const cachedConfigs: Record<string, string> = {};
let hasCachedData = false;
+17
View File
@@ -304,6 +304,23 @@ export default function AdminLayout({
})}
</ul>
</nav>
{/* 底部版权信息 */}
<div className="px-4 py-2 pb-4 mt-auto">
<div className="text-center">
<p className="text-xs text-gray-400 dark:text-gray-500">
Powered by{' '}
<a
href="https://github.com/bqlpfy/forward-panel"
target="_blank"
rel="noopener noreferrer"
className="text-gray-500 dark:text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors"
>
哆啦A梦
</a>
</p>
</div>
</div>
</aside>
{/* 主内容区域 */}
+1 -1
View File
@@ -49,7 +49,7 @@ const CONFIG_ITEMS: ConfigItem[] = [
const getInitialConfigs = (): Record<string, string> => {
if (typeof window === 'undefined') return {};
const configKeys = ['app_name', 'site_title', 'site_description', 'contact_email', 'footer_text', 'logo_url'];
const configKeys = ['app_name'];
const initialConfigs: Record<string, string> = {};
try {