feat: Track storage usage
This commit is contained in:
@@ -15,7 +15,7 @@ const CARDS_LIMIT = 50;
|
||||
const COMMENTS_LIMIT = 50;
|
||||
const ACTIVITIES_LIMIT = 50;
|
||||
|
||||
const MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT = 256 * 1024;
|
||||
const MAX_SIZE_TO_DISPLAY_CONTENT = 256 * 1024;
|
||||
|
||||
const IS_MAC = navigator.platform.startsWith('Mac');
|
||||
|
||||
@@ -28,6 +28,6 @@ export default {
|
||||
CARDS_LIMIT,
|
||||
COMMENTS_LIMIT,
|
||||
ACTIVITIES_LIMIT,
|
||||
MAX_SIZE_IN_BYTES_TO_DISPLAY_CONTENT,
|
||||
MAX_SIZE_TO_DISPLAY_CONTENT,
|
||||
IS_MAC,
|
||||
};
|
||||
|
||||
@@ -3,8 +3,12 @@
|
||||
* Licensed under the Fair Use License: https://github.com/plankanban/planka/blob/master/LICENSE.md
|
||||
*/
|
||||
|
||||
const FILE_IS_TOO_BIG = 'FILE_IS_TOO_BIG';
|
||||
const NOT_ENOUGH_STORAGE = 'NOT_ENOUGH_STORAGE';
|
||||
const EMPTY_TRASH = 'EMPTY_TRASH';
|
||||
|
||||
export default {
|
||||
FILE_IS_TOO_BIG,
|
||||
NOT_ENOUGH_STORAGE,
|
||||
EMPTY_TRASH,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user