1
0
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:
Aries
2024-11-08 15:31:48 +08:00
committed by GitHub
parent 51cfcee51d
commit 89760c7114
55 changed files with 3937 additions and 9 deletions

View File

@@ -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) {