os-js / OS.js

OS.js - JavaScript Web Desktop Platform
https://www.os-js.org/
Other
6.87k stars 816 forks source link

VFS Capability detection, other extensions #804

Open andersevenrud opened 2 years ago

andersevenrud commented 2 years ago

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:

Work done on this:

Pending:

Relevant:

andersevenrud commented 2 years ago

As discussed, @mahsashadi will do some work related to this in the following stages:

  1. URL serialization (done)
  2. Client option filtering
  3. Capability detection (done)
  4. Other improvements

Massive thanks!

andersevenrud commented 2 years ago

Also, @ajmeese7 wanted to have a look at archive extensions.

Thanks a bunch!

mahsashadi commented 2 years ago

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.

andersevenrud commented 2 years ago

@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.

mahsashadi commented 2 years ago

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

mahsashadi commented 2 years ago

I made another PR for VFS context-aware sorting in client-side. https://github.com/os-js/osjs-client/pull/189