Add home screen view options

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2023-07-11 17:08:43 +03:00
parent ca67493302
commit 2e147060c0
15 changed files with 2814 additions and 949 deletions

2
src/types/index.ts Normal file
View File

@@ -0,0 +1,2 @@
export { SORT, SORT_DIRECTION } from './sort';
export { VIEW } from './view';

15
src/types/sort.ts Normal file
View File

@@ -0,0 +1,15 @@
enum SORT {
TITLE = 'Title',
DATE_CREATED = 'Date Created',
DATE_MODIFIED = 'Date Modified',
DATE_USED = 'Last Used',
TIMES_USED = 'Times Used',
SIZE = 'Size',
}
enum SORT_DIRECTION {
ASCENDING = 'Ascending',
DESCENDING = 'Descending',
}
export { SORT, SORT_DIRECTION };

7
src/types/view.ts Normal file
View File

@@ -0,0 +1,7 @@
enum VIEW {
MASONRY = 'Masonry',
GRID = 'Grid',
LIST = 'List',
}
export { VIEW };