📜 ⬆️ ⬇️

File hosting from File Qube.

File Qube is another file hosting. Of course, such services exist just a cloud, but such beautiful and convenient ones are few. User friendly is our philosophy :) Website design, icons, interface - everything was done in such a way that it was pleasant to use the service.

Youth Technique

The most interesting part is the file manager. The file listing is transmitted as a JSON string, which is then processed and the listing is rendered directly based on the resulting object. Due to this, such operations as deleting elements, editing properties, sorting and changing views are done in real time without additional requests to the server.

In optimizing the speed of work, we went further. Initially, when the object was deleted, the entire listing was updated. Then it was decided to use small update-objects that contained data on which elements are updated and how.
For example, a request to delete a batch of files will return the following string:
{"Folders": [], "files": ["3993", "29434", "4874", "26822", "15173", "1", "12883", "25320"], "action": "Remove"}
All that remains is to go through the array and delete the objects from the DOM tree and the current file array.

')

Source: https://habr.com/ru/post/26171/


All Articles