diff options
Diffstat (limited to 'core/src/OC/backbone-webdav.js')
-rw-r--r-- | core/src/OC/backbone-webdav.js | 56 |
1 files changed, 3 insertions, 53 deletions
diff --git a/core/src/OC/backbone-webdav.js b/core/src/OC/backbone-webdav.js index 4175b386b21..318c50e8ee5 100644 --- a/core/src/OC/backbone-webdav.js +++ b/core/src/OC/backbone-webdav.js @@ -1,59 +1,9 @@ -/* eslint-disable */ -/* - * Copyright (c) 2015 - * - * This file is licensed under the Affero General Public License version 3 - * or later. - * - * See the COPYING-README file. - * - */ - /** - * Webdav transport for Backbone. - * - * This makes it possible to use Webdav endpoints when - * working with Backbone models and collections. - * - * Requires the davclient.js library. - * - * Usage example: - * - * var PersonModel = OC.Backbone.Model.extend({ - * // make it use the DAV transport - * sync: OC.Backbone.davSync, - * - * // DAV properties mapping - * davProperties: { - * 'id': '{http://example.com/ns}id', - * 'firstName': '{http://example.com/ns}first-name', - * 'lastName': '{http://example.com/ns}last-name', - * 'age': '{http://example.com/ns}age' - * }, - * - * // additional parsing, if needed - * parse: function(props) { - * // additional parsing (DAV property values are always strings) - * props.age = parseInt(props.age, 10); - * return props; - * } - * }); - * - * var PersonCollection = OC.Backbone.Collection.extend({ - * // make it use the DAV transport - * sync: OC.Backbone.davSync, - * - * // use person model - * // note that davProperties will be inherited - * model: PersonModel, - * - * // DAV collection URL - * url: function() { - * return OC.linkToRemote('dav') + '/person/'; - * }, - * }); + * SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors + * SPDX-License-Identifier: AGPL-3.0-or-later */ +/* eslint-disable */ import _ from 'underscore' import { dav } from 'davclient.js' |