OS.js
OS.js copied to clipboard
VFS Capability detection, other extensions
VFS could benefit from capability detection so that clients is aware of what a filesystem source is capable of.
This would allow for adding extensions on the client that are context aware, like pagination and archives.
Split out from discussions in:
- https://github.com/os-js/osjs-client/pull/165
- https://github.com/os-js/osjs-server/pull/56
Work done on this:
- https://github.com/os-js/osjs-client/pull/164
- https://github.com/os-js/osjs-client/pull/182
- https://github.com/os-js/osjs-client/pull/186
- https://github.com/os-js/osjs-client/pull/188
- https://github.com/os-js/osjs-client/pull/189
- https://github.com/os-js/osjs-client/pull/190
- https://github.com/os-js/osjs-server/pull/63
- https://github.com/os-js/osjs-server/pull/65
- https://github.com/os-js/osjs-server/pull/66
- https://github.com/os-js/osjs-server/pull/67
- https://github.com/os-js/osjs-filemanager-application/pull/37
Pending:
- https://github.com/os-js/osjs-server/issues/64
- https://github.com/os-js/osjs-client/issues/184
- https://github.com/os-js/osjs-filemanager-application/issues/39
Relevant:
- https://github.com/os-js/OS.js/issues/788
- https://github.com/os-js/osjs-client/issues/163
- https://github.com/os-js/osjs-client/issues/166
As discussed, @mahsashadi will do some work related to this in the following stages:
- ~~URL serialization~~ (done)
- Client option filtering
- ~~Capability detection~~ (done)
- Other improvements
Massive thanks!
I continue with capability detection of VFS: https://github.com/os-js/osjs-client/pull/186 https://github.com/os-js/osjs-server/pull/65
These changes are considered added method has some argument. If you still have the idea of capability caching, maybe we should create another PR that changes the api to support methods without arguments. I remember I worked on this issue but did not come up with solution.
@mahsashadi Yeah, let's tackle the caching in a separate PR. It needs further discussion. I have some ideas about this already, but let's take it when the time is right.
I continue with adding total values to VFS stat api (needed for pagination in file manager): https://github.com/os-js/osjs-server/pull/66
I also make another pull request for capability-caching: https://github.com/os-js/osjs-client/pull/188
I made another PR for VFS context-aware sorting in client-side. https://github.com/os-js/osjs-client/pull/189