TagSpaces is an offline, open source, document manager with tagging support
correcting jsdoc
uggrock573929ed89f6
diff --git a/data/js/ioutils.js b/data/js/ioutils.jsindex 2b8e3165d..b9b7ab00e 100644--- a/data/js/ioutils.js+++ b/data/js/ioutils.js@@ -2,6 +2,11 @@* Use of this source code is governed by a AGPL3 license that* can be found in the LICENSE file. *//* global define */++/**+ * Description+ * @class IOAPI+ */define(function(require, exports, module) {'use strict';console.log('Loading ioutils.js ...');diff --git a/data/node-webkit/node-webkit.api.js b/data/node-webkit/node-webkit.api.jsindex 9c941c758..9585e3894 100644--- a/data/node-webkit/node-webkit.api.js+++ b/data/node-webkit/node-webkit.api.js@@ -7,6 +7,11 @@ var pathUtils = require('path'); // jshint ignore:linevar gui = require('nw.gui'); // jshint ignore:linevar trash = require('trash'); // jshint ignore:line+/**+ * A implementation of the IOAPI for the nw.js platform+ * @class NWJS+ * @memberof IOAPI+ */define(function(require, exports, module) {"use strict";@@ -201,10 +206,10 @@ define(function(require, exports, module) {// IOAPI/**- * Check if new version is available+ * Checks if new version is available* @name checkNewVersion* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS*/function checkNewVersion() {console.log("Checking for new version...");@@ -222,10 +227,10 @@ define(function(require, exports, module) {}/**- * Create recursively a tree structure for a given directory path+ * Creates recursively a tree structure for a given directory path* @name createDirectoryTree* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} dirPath - the full path of the directory for which the tree will be generated*/function createDirectoryTree(dirPath) {@@ -273,7 +278,7 @@ define(function(require, exports, module) {* Creates a list with containing the files and the sub directories of a given directory* @name listDirectoryPromiseAsync* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} path - the directory path for which the list will be created* @returns {Promise.<Success, Error>}*/@@ -306,7 +311,7 @@ define(function(require, exports, module) {* Creates a list with containing the files and the sub directories of a given directory* @name listDirectoryPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} path - the directory path which is listed* @param {boolean} lite - if true the path to a file thumbnails will be not included in the results* This will increase the performance of the function.@@ -372,7 +377,7 @@ define(function(require, exports, module) {* Finds out the properties of a file or directory such last modification date or file size* @name getPropertiesPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} path - full path to the file or the directory, which will be analysed* @returns {Promise.<Success, Error>}*/@@ -416,10 +421,10 @@ define(function(require, exports, module) {}/**- * Create a directory+ * Creates a directory* @name createDirectoryPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} dirPath - the full path of the folder which will be created* @returns {Promise.<Success, Error>}*/@@ -435,10 +440,10 @@ define(function(require, exports, module) {}/**- * Copy file+ * Copies a given file to a specified location* @name copyFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} sourceFilePath - the full path of a file which will be copied* @param {string} targetFilePath - the full path destination of the copied file* @returns {Promise.<Success, Error>}@@ -479,10 +484,10 @@ define(function(require, exports, module) {}/**- * Rename file+ * Renames a given file* @name renameFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which will be renamed* @param {string} newFilePath - the desired full path after the file rename* @returns {Promise.<Success, Error>}@@ -512,7 +517,7 @@ define(function(require, exports, module) {* Rename a directory* @name renameDirectoryPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} dirPath - the full path of the directory which will be renamed* @param {string} newDirName - the desired full path after the directory rename* @returns {Promise.<Success, Error>}@@ -546,7 +551,7 @@ define(function(require, exports, module) {* Load the content of a text file* @name loadTextFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which will be loaded* @param {boolean} isPreview - loads only begin of a file (first 10000 bytes) usefull for previewing of the file* @returns {Promise.<Success, Error>}@@ -584,7 +589,7 @@ define(function(require, exports, module) {* Gets the content of file, useful for binary files* @name getFileContentPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} fullPath - the full path of the file which will be loaded* @param {string} type - the type of the XHR response, defaul is *arraybuffer** @returns {Promise.<Success, Error>}@@ -616,7 +621,7 @@ define(function(require, exports, module) {* Persists a given content(binary supported) to a specified filepath* @name saveFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which should be saved* @param {string} content - content that will be saved* @param {boolean} overwrite - if true existing file path will be overwritten@@ -650,7 +655,7 @@ define(function(require, exports, module) {* Persists a given text content to a specified filepath* @name saveTextFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which will be saved* @param {string} content - content that will be saved* @param {string} overwrite - if true existing file path will be overwritten@@ -675,7 +680,7 @@ define(function(require, exports, module) {* Persists a given binary content to a specified filepath* @name saveBinaryFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which will be saved* @param {string} content - content that will be saved* @param {string} overwrite - if true existing file path will be overwritten@@ -691,7 +696,7 @@ define(function(require, exports, module) {* Delete a specified file* @name deleteFilePromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} path - the full path of the file which will be deleted* @returns {Promise.<Success, Error>}*/@@ -722,7 +727,7 @@ define(function(require, exports, module) {* Delete a specified directory, the directory should be empty, if the trash can functionality is not enabled* @name deleteDirectoryPromise* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} path - the full path of the directory which will be deleted* @returns {Promise.<Success, Error>}*/@@ -746,7 +751,7 @@ define(function(require, exports, module) {* Selects a directory with the help of a directory chooser* @name selectDirectory* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS*/function selectDirectory() {if (document.getElementById('folderDialogNodeWebkit') === null) {@@ -765,7 +770,7 @@ define(function(require, exports, module) {* Selects a file with the help of a file chooser* @name selectFile* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS*/function selectFile() {if (document.getElementById('fileDialog') === null) {@@ -795,7 +800,7 @@ define(function(require, exports, module) {* Opens a file with the operating system's default program for the type of the file* @name openFile* @method- * @memberof nwjs.ioapi+ * @memberof IOAPI.NWJS* @param {string} filePath - the full path of the file which will be opened*/function openFile(filePath) {diff --git a/jsdoc.conf.json b/jsdoc.conf.jsonindex 7e7386055..5806f8562 100644--- a/jsdoc.conf.json+++ b/jsdoc.conf.json@@ -4,7 +4,10 @@},"plugins": ["node_modules/jsdoc/plugins/markdown"],"source": {- "include": [ "data/js" ],+ "include": [+ "data/js",+ "data/node-webkit"+ ],"exclude": ["data/testfiles","data/libs/",