diff --git a/frontend/src/config.js b/frontend/src/config.js new file mode 100644 index 0000000..ee6e4f8 --- /dev/null +++ b/frontend/src/config.js @@ -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;