mirror of
https://github.com/enso-org/enso.git
synced 2024-12-19 18:51:31 +03:00
2df2b50f4d
- Closes https://github.com/enso-org/cloud-v2/issues/697 - Adds infrastructure to support drag-and-drop - Implements drag-and-drop for deleting and undeleting assets - Implements drag-and-drop for moving assets to a new directory (or the root directory) - Also implements "cut" and "paste" context menu actions (and keyboard shortcuts) using the new endpoint for moving files - "Copy" and "duplicate" actions are *not* implemented, as I don't think there are backend endpoints for those yet. - Fades items out when cutting (Cmd+X), fades them back in when cancelling (Esc) - Fixes bug where keyboard shortcut handlers were not registered for table-wide shortcuts (delete all, restore all, cut all) # Important Notes Drag-and-drop for more situations are planned but intentionally not yet implemented: - Labels (backend is WIP, and blocked on the corresponding frontend PR) - Moving assets between folders (backend functionality does not yet exist)
7 lines
566 B
XML
7 lines
566 B
XML
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
<path fill-rule="evenodd" clip-rule="evenodd"
|
|
d="M6 1H3C1.89543 1 1 1.89543 1 3V6L3 6L3 3H6V1ZM10 3V1H13C14.1046 1 15 1.89543 15 3V6L13 6V3H10ZM10 13H13V10H15V13C15 14.1046 14.1046 15 13 15H10V13ZM3 10L3 13H6V15H3C1.89543 15 1 14.1046 1 13V10H3Z"
|
|
fill="black" />
|
|
<path d="M8 5.5C8.55228 5.5 9 5.94772 9 6.5L9 8.5L7 8.5L7 6.5C7 5.94772 7.44772 5.5 8 5.5V5.5Z" fill="black" />
|
|
<path d="M10.5 8.5L8 11.5L5.5 8.5L10.5 8.5Z" fill="black" />
|
|
</svg> |