You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
825 B

BASE_HOSTS = [
'drop.bakatrouble.pw',
'drop.bakatrouble.me',
'127.0.0.1.xip.io:8080',
'localhost:8080',
]
SORT_KEYS = {
'name': lambda item: (not item.is_dir, item.name.lower()),
'-name': lambda item: (item.is_dir, item.name.lower()),
'size': lambda item: (not item.is_dir, item.size),
'-size': lambda item: (item.is_dir, item.size),
'created': lambda item: (not item.is_dir, item.created),
'-created': lambda item: (item.is_dir, item.created),
}
ICONS = {
'sort_asc': 'icon-up-dir',
'sort_desc': 'icon-down-dir',
'types': {
'parent': 'icon-level-up',
'dir': 'icon-folder',
'file': 'icon-doc',
'text': 'icon-doc-text',
'image': 'icon-picture-outline',
'music': 'icon-music-outline',
'video': 'icon-video',
},
}