前端: 添加前端配置文件
Some checks are pending
CI / test (push) Waiting to run

This commit is contained in:
Frontend Developer 2026-03-10 10:02:44 +00:00
parent 4153c7938c
commit 78b58c7547

13
frontend/src/config.js Normal file
View File

@ -0,0 +1,13 @@
// 前端配置
const config = {
apiBase: process.env.API_URL || 'http://localhost:3000/api',
uploadMaxSize: 100 * 1024 * 1024, // 100MB
allowedFileTypes: ['jpg', 'jpeg', 'png', 'gif', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'txt', 'md', 'zip', 'rar'],
theme: {
primaryColor: '#1890ff',
fontFamily: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto',
},
syncInterval: 5 * 60 * 1000, // 5分钟
};
window.CloudDiskConfig = config;