1.0.5 • Published 4 years ago

@osjs/webdav-adapter v1.0.5

Weekly downloads
1
License
MIT
Repository
github
Last release
4 years ago

OS.js is an open-source web desktop platform with a window manager, application APIs, GUI toolkit, filesystem abstractions and much more.

Support Support Donate Donate Community

OS.js WebDAV VFS Adapter

This is the WebDAV VFS (Server) Adapter for OS.js.

Installation

npm install @osjs/webdav-adapter

Usage

const webdavAdapter = require('@osjs/webdav-adapter');

osjs.register(VFSServiceProvider, {
  args: {
    adapters: {
      webdav: webdavAdapter
    }
  }
});

Then create a mountpoint. Example using ownCloud:

// src/server/config.js
{
  vfs: {
    mountpoints: [{
      name: 'owncloud',
      label: 'ownCloud',
      adapter: 'webdav',
      attributes: {
        connection: {
          uri: 'http://localhost:8002',
          username: 'osjs',
          password: 'osjs',
          access_token: null,
          prefix: '/remote.php/webdav'
        }
      }
     }]
   }
}

// src/client/config.js
{
  vfs: {
    mountpoints: [{
      name: 'owncloud',
      label: 'ownCloud'
     }]
   }
}

At some point users can create their own server mounts via the client.

Contribution

Documentation

See the Official Manuals for articles, tutorials and guides.

Links

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

5 years ago

1.0.0

5 years ago