前端: 添加常量定义

This commit is contained in:
Frontend Developer 2026-03-10 09:19:49 +00:00
parent 8a6fefe3b3
commit 5f60f027ce

View File

@ -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
};