mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
add kanban view (#6951)
* add kanban view * optimize code * update setting panel and favicon * fix drag and drop bug * update empty tips * add card placeholder * update card drag and drop * update list drag and drop * optimize code * fix drop bug * fix syntax error * feat: optimize code * feat: add op * feat: optimize ui * format code * feat: optimize ui * feat: optimize code * optimize code --------- Co-authored-by: zhouwenxuan <aries@Mac.local> Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
@@ -438,6 +438,13 @@ export const Utils = {
|
||||
return `${mediaUrl}img/folder${readonly ? '-read-only' : ''}${sharedOut ? '-shared-out' : ''}-${size}.png`;
|
||||
},
|
||||
|
||||
getFileIconName: function (fileName) {
|
||||
if (fileName.lastIndexOf('.') == -1) return Utils.FILEEXT_ICON_MAP['default'];
|
||||
const file_ext = fileName.substr(fileName.lastIndexOf('.') + 1).toLowerCase();
|
||||
if (Utils.FILEEXT_ICON_MAP[file_ext]) return Utils.FILEEXT_ICON_MAP[file_ext];
|
||||
return Utils.FILEEXT_ICON_MAP['default'];
|
||||
},
|
||||
|
||||
getFileIconUrl: function (filename) {
|
||||
let file_ext = '';
|
||||
if (filename.lastIndexOf('.') == -1) {
|
||||
|
Reference in New Issue
Block a user