前端: 添加常量定义
This commit is contained in:
parent
8a6fefe3b3
commit
5f60f027ce
32
frontend/src/renderer/constants/index.js
Normal file
32
frontend/src/renderer/constants/index.js
Normal 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
|
||||||
|
};
|
||||||
Loading…
Reference in New Issue
Block a user