{"push_id":1782962874,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"1d3f6e8fab8e6b7de93f3ecc67c70e9a6a6e0e8e","before":"5eedabda3bd0bd0a0492d86a0d66d822ce57aebf","commits":[{"sha":"1d3f6e8fab8e6b7de93f3ecc67c70e9a6a6e0e8e","author":{"name":"Olufemi Adeyemi","email":"bea919f21816b1883cfb7a823042815199d9fa4b@desy.de"},"message":"dcache-view: upload files and directories using HTML5 drag&drop API\n\nMotivation:\n\nFile(s) upload using HTML drag and drop API is a desirable\nfeature in a web app like dcache-view. This will enable user\nto upload file by simply dragging the file (chrome & firefox\nsupport drag and drop for folder) into the current directory\nor a listed directory in the current view.\n\nModification:\n\n1. Prevent the generic drag and drop on the page.\n\n2. Allow and listen to the drop, dragenter, dragleave, dragend,\ndragexit events in the namespace section of the page.\n\n3. Attached the neccessary drag & drop events to the list-row\nand pagination-button element. This will enable file(s) to be\ndropped on a listed dir. Also, if the user dragged and stayed\non a listed directory for more than 2 seconds; this directory\nwill be open and the user drag operation will still continue.\n\n4. Create two new elements namely `drag-enter-toast` & `dnd-upload`.\nThe drag-enter-toast element notify the user when it enter\ninto a drop zone. While dnd-upload element upload the files\nwhen dropped.\n\n5. Add a cental function that can be use to check the broswer type\nand version.\n\nResult:\n\nUser can now drag and drop their files (and even folders if the\nbrowser support it) into dcache-view for uploading.\n\n**NB: drag and drop of folder is not supported in Safari yet.**\n\nTarget: master\nRequires-notes: no\nRequires-book: no\nAcked-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>\n\nReviewed at https://rb.dcache.org/r/10207/","distinct":true,"url":"https://api.github.com/repos/dCache/dcache-view/commits/1d3f6e8fab8e6b7de93f3ecc67c70e9a6a6e0e8e"}]}
{"actor":{"display_login":"femiadeyemi"}}