From 5f60f027ce0229f47e1c57986578ad49bd4bc63a Mon Sep 17 00:00:00 2001 From: Frontend Developer Date: Tue, 10 Mar 2026 09:19:49 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF:=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=B8=B8=E9=87=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/renderer/constants/index.js | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 frontend/src/renderer/constants/index.js diff --git a/frontend/src/renderer/constants/index.js b/frontend/src/renderer/constants/index.js new file mode 100644 index 0000000..feea265 --- /dev/null +++ b/frontend/src/renderer/constants/index.js @@ -0,0 +1,32 @@ +export const FILE_TYPES = { + FOLDER: 'folder', + FILE: 'file', +}; + +export const FILE_ICONS = { + pdf: 'file-pdf', + doc: 'file-word', + docx: 'file-word', + xls: 'file-excel', + xlsx: 'file-excel', + jpg: 'file-image', + jpeg: 'file-image', + png: 'file-image', + gif: 'file-image', + mp4: 'video', + mp3: 'audio', + zip: 'file-zip', + default: 'file', +}; + +export const SYNC_STATUS = { + IDLE: 'idle', + SYNCING: 'syncing', + COMPLETED: 'completed', + ERROR: 'error', +}; + +export const STORAGE_LIMITS = { + FREE: 10 * 1024 * 1024 * 1024, // 10GB + PRO: 100 * 1024 * 1024 * 1024, // 100GB +};