TagSpaces is an offline, open source, document manager with tagging support
replacing tabs with spaces
Ilian135ba31a9857
diff --git a/data/cordova/cordova.api.js b/data/cordova/cordova.api.jsindex 602a4847b..6f2d3af61 100644--- a/data/cordova/cordova.api.js+++ b/data/cordova/cordova.api.js@@ -57,7 +57,7 @@ define(function (require, exports, module) {pendingRecursions--;console.log("Pending recursions: " + pendingRecursions);if(pendingRecursions <= 0) {- TSPOSTIO.createDirectoryIndex(anotatedDirListing);+ TSPOSTIO.createDirectoryIndex(anotatedDirListing);}}@@ -76,8 +76,8 @@ define(function (require, exports, module) {// Get a list of all the entries in the directorypendingRecursions++;directoryReader.readEntries(- scanDirectory,- function (error) { // error get file system+ scanDirectory,+ function (error) { // error get file systemconsole.log("Dir List Error: " + error.code);});@@ -200,8 +200,8 @@ define(function (require, exports, module) {fsRoot.getDirectory(dirPath, {create: false, exclusive: false},function (dirEntry) {var directoryReader = dirEntry.createReader();- var anotatedDirList = [];- var pendingCallbacks = 0;+ var anotatedDirList = [];+ var pendingCallbacks = 0;// Get a list of all the entries in the directorydirectoryReader.readEntries(function (entries) {@@ -209,43 +209,43 @@ define(function (require, exports, module) {var normalizedPath;for (i = 0; i < entries.length; i++) {if(entries[i].isFile) {- pendingCallbacks++;- entries[i].file(- function(entry) {- anotatedDirList.push({- "name": entry.name,- "isFile": true,- "size": entry.size,- "lmdt": entry.lastModifiedDate,- "path": entry.fullPath- });- pendingCallbacks--;- console.log("File: "+entry.name+" Size: "+entry.size+ " i:"+i+" Callb: "+pendingCallbacks);- if(pendingCallbacks == 0 && i == entries.length) {- TSPOSTIO.listDirectory(anotatedDirList);- }- }, function (error) { // error get file system- console.log("Getting file meta error: " + error.code);- }- );+ pendingCallbacks++;+ entries[i].file(+ function(entry) {+ anotatedDirList.push({+ "name": entry.name,+ "isFile": true,+ "size": entry.size,+ "lmdt": entry.lastModifiedDate,+ "path": entry.fullPath+ });+ pendingCallbacks--;+ console.log("File: "+entry.name+" Size: "+entry.size+ " i:"+i+" Callb: "+pendingCallbacks);+ if(pendingCallbacks == 0 && i == entries.length) {+ TSPOSTIO.listDirectory(anotatedDirList);+ }+ }, function (error) { // error get file system+ console.log("Getting file meta error: " + error.code);+ }+ );} else {normalizedPath = normalizePath(entries[i].fullPath);- anotatedDirList.push({- "name": entries[i].name,- "isFile": false,- "size": "",- "lmdt": "",- "path": normalizedPath- });- console.log("Dir: "+entries[i].name+ " I:"+i+" Callb: "+pendingCallbacks);- if((pendingCallbacks == 0) && ((i+1) == entries.length)) {- TSPOSTIO.listDirectory(anotatedDirList);- }+ anotatedDirList.push({+ "name": entries[i].name,+ "isFile": false,+ "size": "",+ "lmdt": "",+ "path": normalizedPath+ });+ console.log("Dir: "+entries[i].name+ " I:"+i+" Callb: "+pendingCallbacks);+ if((pendingCallbacks == 0) && ((i+1) == entries.length)) {+ TSPOSTIO.listDirectory(anotatedDirList);+ }}}if(pendingCallbacks == 0) {- TSPOSTIO.listDirectory(anotatedDirList);+ TSPOSTIO.listDirectory(anotatedDirList);}//console.log("Dir content: " + JSON.stringify(entries));@@ -299,11 +299,11 @@ define(function (require, exports, module) {reader.onloadend = function(evt) {TSPOSTIO.loadTextFile(evt.target.result);};- reader.readAsText(file);+ reader.readAsText(file);},function() {console.log("error getting file: "+filePath);- }+ });},function() {@@ -459,23 +459,23 @@ define(function (require, exports, module) {);};- exports.createDirectory = createDirectory;- exports.renameFile = renameFile;- exports.loadTextFile = loadTextFile;- exports.saveTextFile = saveTextFile;- exports.listDirectory = listDirectory;+ exports.createDirectory = createDirectory;+ exports.renameFile = renameFile;+ exports.loadTextFile = loadTextFile;+ exports.saveTextFile = saveTextFile;+ exports.listDirectory = listDirectory;exports.listSubDirectories = listSubDirectories;- exports.deleteElement = deleteElement;- exports.createDirectoryIndex = createDirectoryIndex;- exports.createDirectoryTree = createDirectoryTree;- exports.selectDirectory = selectDirectory;- exports.openDirectory = openDirectory;- exports.openFile = openFile;- exports.sendFile = sendFile;- exports.selectFile = selectFile;- exports.openExtensionsDirectory = openExtensionsDirectory;- exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;- exports.checkNewVersion = checkNewVersion;- exports.getFileProperties = getFileProperties;-+ exports.deleteElement = deleteElement;+ exports.createDirectoryIndex = createDirectoryIndex;+ exports.createDirectoryTree = createDirectoryTree;+ exports.selectDirectory = selectDirectory;+ exports.openDirectory = openDirectory;+ exports.openFile = openFile;+ exports.sendFile = sendFile;+ exports.selectFile = selectFile;+ exports.openExtensionsDirectory = openExtensionsDirectory;+ exports.checkAccessFileURLAllowed = checkAccessFileURLAllowed;+ exports.checkNewVersion = checkNewVersion;+ exports.getFileProperties = getFileProperties;+});\ No newline at end of filediff --git a/data/ext/perspectiveGraph/extension.js b/data/ext/perspectiveGraph/extension.jsindex c18048275..a1b59161a 100644--- a/data/ext/perspectiveGraph/extension.js+++ b/data/ext/perspectiveGraph/extension.js@@ -130,9 +130,25 @@ define(function(require, exports, module) {TSCORE.hideLoadingAnimation();};- exports.clearSelectedFiles = function() {-+ var clearSelectedFiles = function() {+ console.log("clearSelectedFiles not implemented in "+extensionID);+ };++ var removeFileUI = function(filePath) {+ console.log("removeFileUI not implemented in "+extensionID);+ };++ var updateFileUI = function(oldFilePath, newFilePath) {+ console.log("updateFileUI not implemented in "+extensionID);+ };++ var getNextFile = function (filePath) {+ console.log("getNextFile not implemented in "+extensionID);};++ var getPrevFile = function (filePath) {+ console.log("getPrevFile not implemented in "+extensionID);+ };var initUI = function() {@@ -226,7 +242,9 @@ define(function(require, exports, module) {// Methods// exports.init = init;// exports.load = load;-// exports.clearSelectedFiles = clearSelectedFiles;-// exports.getNextFile = getNextFile;-// exports.getPrevFile = getPrevFile;+ exports.clearSelectedFiles = clearSelectedFiles;+ exports.getNextFile = getNextFile;+ exports.getPrevFile = getPrevFile;+ exports.removeFileUI = removeFileUI;+ exports.updateFileUI = updateFileUI;});\ No newline at end of filediff --git a/data/loader.js b/data/loader.jsindex cfbee3f26..4c94f464a 100644--- a/data/loader.js+++ b/data/loader.js@@ -39,9 +39,9 @@ var IO_JS = undefined;if( isFirefox ) {IO_JS = "mozilla/mozilla.api";} else if ( isFirefoxOS ) {- IO_JS = "mozilla/firefoxos.api";+ IO_JS = "mozilla/firefoxos.api";} else if ( isChrome ) {- IO_JS = "chrome/chrome.api";+ IO_JS = "chrome/chrome.api";} else if (isNode){IO_JS = "node-webkit/node-webkit.api";} else if (isCordova){@@ -49,10 +49,10 @@ if( isFirefox ) {} else if (isWeb){IO_JS = "web/web.api";} else {- IO_JS = "web/web.api";+ IO_JS = "web/web.api";}-//IO_JS = "js/ioapi.dropbox";+//IO_JS = "js/ioapi.dropbox";console.log("Loading Loader - Firefox: "+isFirefox+" | ChromeExt: "+isChrome+" | Node: "+isNode+" | Cordova: "+isCordova);@@ -120,9 +120,9 @@ requirejs.config({'jqueryuisortable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },'jqueryuidatepicker': { deps: ['jqueryui'] },'jqueryuidroppable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse','jqueryuidraggable'] },- 'jqueryuidraggable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },- 'jqueryuiresizable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },- 'jquerylayout': { deps: ['jquery','jqueryuidraggable' ] },+ 'jqueryuidraggable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jqueryuiresizable': { deps: ['jqueryui','jqueryuiwidget','jqueryuimouse'] },+ 'jquerylayout': { deps: ['jquery','jqueryuidraggable' ] },'jquerydropdown': { deps: ['jquery','bootstrap'] },'bootstrap3xeditable': { deps: ['jquery','jqueryui','bootstrap'] },'jquerynanoscroller': { deps: ['jquery'] },@@ -147,7 +147,7 @@ requirejs.config({'select2','handlebarsjs','tssettingsdefault',- ] },+ ] },}});