Giter Club home page Giter Club logo

js-webdav-client's Introduction

A webDAV client library

This is the repository for a general webDAV client library, written in JavaScript. The main purpose is to support the built-in client for BeeHub. However, we attempt to make it follow the webDAV RFC 4918 and any contributions that help implement features of this and other webDAV standards are welcome.

API reference can be found here: http://sara-nl.github.com/js-webdav-client/

Directory structure

  • ./COPYING.LESSER.txt contains the GNU LGPL
  • ./LICENSE.txt contains the GNU GPL
  • ./Makefile is the makefile to build the library into one single file
  • ./README.md contains this text
  • ./src/ contains all the source files for the basic library
  • ./src/plugins/ contains directories with plugins (such as the ACL plugin)

Development

If you want to develop on the library code itself, you'll want to link to the source files from within your HTML page. You should add all needed files manually to the header with the default script tag. For example:

<script type="text/javascript" src="/library_path/src/000_header.js"></script>

Make sure you link the source files in the same order as the Makefile will:

  • Files in ./src will be included in a sorted order first. This means:
    • ./src/000_header.js should be linked first
    • ./src/001_exception.js should be linked second
    • ./src/002_iehacks.js should be linked second
    • then the other files follow
  • Directories in ./src/plugins/ will be included in a sorted order next. Their files will also be included in a sorted order.

This way, the basic library will be linked before the plugins are loaded

Using the library in another script

To use the library from other scripts, create a single file containing the complete library:

make dist.js

Copy it to your webservers public folder and rename it for convenience:

cp dist.js /path_to_public_folder/webdavlib.js

Then link this file in your HTML file before your own scripts are linked.

<script type="text/javascript" src="/webdavlib.js"></script>

Of course you are free to rename the dist.js file any way you like and place it anywhere in your public folder. As long as you change the script tag correspondingly.

js-webdav-client's People

Contributors

albertogp avatar niekbosch avatar nros avatar pieterb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

js-webdav-client's Issues

Looks nice, an example maybe?

The code in this library looks nice, maybe you can add an example on the implemented functionality.

That would for example tell me, if I can use this library to connect it to for example on owncloud instance...

Thanks Barry

Return response body on non-207 responses

The callback function gets a Multistatus object in case of a 207 response, but no body content if the response is anything else. I should return the (raw) body content on all responses with response code !== 207

Be able to send with credentials

In some scenarios you would like to be able to pass credentials (cookies) though the XmlRequest (by setting withCredentials to true).

This could be made possible in two ways; first add it to options on the Client second add a parameter on each method withCredentials.

If this is accepted i would implement it ASAP (currently needing it for a project), so please comment on it.

API Doc is out of date

The API Doc doesn't correspond to the actual version on GitHub:

http://sara-nl.github.io/js-webdav-client/symbols/nl.sara.webdav.Client.html#lock

In the API there are 3 parameters for lock/unlock, but in the actual code, there are 4 parameters.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.