TagSpaces is an offline, open source, document manager with tagging support
Refactoring views to perspectives
uggrock79c3afd9dce1
diff --git a/build.number b/build.numberindex 1005497e6..6b7f82368 100644--- a/build.number+++ b/build.number@@ -1,3 +1,3 @@#Build Number for ANT. Do not edit!-#Thu Mar 07 10:18:02 CET 2013-build.number=1248+#Fri Mar 08 11:55:38 CET 2013+build.number=1252diff --git a/build.xml b/build.xmlindex 9c1390970..c52c78a1c 100644--- a/build.xml+++ b/build.xml@@ -50,11 +50,12 @@ found in the LICENSE file.</copy><copy todir="${buildFirefoxExt.dir}/data/ext" ><fileset dir="data/ext">+ <include name="perspectiveBasic/*"/>+ <include name="perspectiveSearch/*"/>+ <include name="perspectiveThumb/*"/><include name="editorHTML/*"/><include name="editorText/*"/>- <include name="viewerMD/*"/>- <include name="viewThumb/*"/>- <include name="*.js"/>+ <include name="viewerMD/*"/></fileset></copy><copy todir="${buildFirefoxExt.dir}/data/css" >@@ -105,11 +106,16 @@ found in the LICENSE file.<copy todir="${buildChrome.dir}/chrome" ><fileset dir="data/chrome" includes="**/*"/></copy>- <!--copy todir="${buildChrome.dir}/data/ext" >+ <copy todir="${buildFirefoxExt.dir}/data/ext" ><fileset dir="data/ext">- <include name="viewerImage/*"/>+ <include name="perspectiveBasic/*"/>+ <include name="perspectiveSearch/*"/>+ <include name="perspectiveThumb/*"/>+ <include name="editorHTML/*"/>+ <include name="editorText/*"/>+ <include name="viewerMD/*"/></fileset>- </copy-->+ </copy><copy todir="${buildChrome.dir}/libs" ><fileset dir="data/libs" includes="**/*"/></copy>diff --git a/data/ext/perspectiveBasic/extension.js b/data/ext/perspectiveBasic/extension.jsindex 41a729c21..423d16cde 100644--- a/data/ext/perspectiveBasic/extension.js+++ b/data/ext/perspectiveBasic/extension.js@@ -13,7 +13,7 @@ define(["use strict";exports.Title = "List"-exports.ID = "viewBasic"; // ID should be equal to the directory name where the ext. is located+exports.ID = "perspectiveBasic"; // ID should be equal to the directory name where the ext. is locatedexports.Type = "view";exports.Icon = "ui-icon-note";diff --git a/data/ext/viewGraph/d3/LICENSE b/data/ext/perspectiveGraph/d3/LICENSEsimilarity index 100%rename from data/ext/viewGraph/d3/LICENSErename to data/ext/perspectiveGraph/d3/LICENSEdiff --git a/data/ext/viewGraph/d3/d3.js b/data/ext/perspectiveGraph/d3/d3.jssimilarity index 100%rename from data/ext/viewGraph/d3/d3.jsrename to data/ext/perspectiveGraph/d3/d3.jsdiff --git a/data/ext/viewGraph/d3/d3.v3.min.js b/data/ext/perspectiveGraph/d3/d3.v3.min.jssimilarity index 100%rename from data/ext/viewGraph/d3/d3.v3.min.jsrename to data/ext/perspectiveGraph/d3/d3.v3.min.jsdiff --git a/data/ext/viewGraph/extension.js b/data/ext/perspectiveGraph/extension.jssimilarity index 99%rename from data/ext/viewGraph/extension.jsrename to data/ext/perspectiveGraph/extension.jsindex 309be2f11..f3086715d 100644--- a/data/ext/viewGraph/extension.js+++ b/data/ext/perspectiveGraph/extension.js@@ -10,7 +10,7 @@ define(["use strict";exports.Title = "Graph"-exports.ID = "viewGraph"; // ID should be equal to the directory name where the ext. is located+exports.ID = "perspectiveGraph"; // ID should be equal to the directory name where the ext. is locatedexports.Type = "view";exports.Icon = "ui-icon-search";exports.Version = "1.0";diff --git a/data/ext/viewGraph/styles.css b/data/ext/perspectiveGraph/styles.csssimilarity index 100%rename from data/ext/viewGraph/styles.cssrename to data/ext/perspectiveGraph/styles.cssdiff --git a/data/ext/viewRiver/extension.js b/data/ext/perspectiveRiver/extension.jssimilarity index 95%rename from data/ext/viewRiver/extension.jsrename to data/ext/perspectiveRiver/extension.jsindex 229e071c2..3fd4b67c6 100644--- a/data/ext/viewRiver/extension.js+++ b/data/ext/perspectiveRiver/extension.js@@ -12,7 +12,7 @@ define([console.debug("Loading: viewThumb/extension.js");exports.Title = "River View"-exports.ID = "viewRiver"; // ID should be equal to the directory name where the ext. is located+exports.ID = "perspectiveRiver"; // ID should be equal to the directory name where the ext. is locatedexports.Type = "view";exports.Icon = "ui-icon-image";diff --git a/data/ext/view.search.js b/data/ext/perspectiveSearch/extension.jssimilarity index 98%rename from data/ext/view.search.jsrename to data/ext/perspectiveSearch/extension.jsindex 8452512f4..218cfc372 100644--- a/data/ext/view.search.js+++ b/data/ext/perspectiveSearch/extension.js@@ -12,7 +12,7 @@ define(["use strict";exports.Title = "Search"-exports.ID = "viewSearch"; // ID should be equal to the directory name where the ext. is located+exports.ID = "perspectiveSearch"; // ID should be equal to the directory name where the ext. is locatedexports.Type = "view";exports.Icon = "ui-icon-search";exports.Version = "1.0";diff --git a/data/ext/viewThumb/extension.js b/data/ext/perspectiveThumb/extension.jssimilarity index 97%rename from data/ext/viewThumb/extension.jsrename to data/ext/perspectiveThumb/extension.jsindex f0e553c7f..4d5cdf268 100644--- a/data/ext/viewThumb/extension.js+++ b/data/ext/perspectiveThumb/extension.js@@ -12,7 +12,7 @@ define([console.debug("Loading: viewThumb/extension.js");exports.Title = "Thumbs"-exports.ID = "viewThumb"; // ID should be equal to the directory name where the ext. is located+exports.ID = "perspectiveThumb"; // ID should be equal to the directory name where the ext. is locatedexports.Type = "view";exports.Icon = "ui-icon-image";diff --git a/data/js/main.js b/data/js/main.jsindex 6c07ac155..9d6afe9fe 100644--- a/data/js/main.js+++ b/data/js/main.js@@ -38,7 +38,7 @@ var initApp = function(){require(["js/tagutils",- "js/view.manager",+ "js/perspective.manager","js/settings.api","js/fileopener","js/core.ui",diff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex 748e8581f..139e627d7 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -24,7 +24,7 @@ exports.initViews = function initViews() {var defaultViewLoaded = false;- require(["ext/view.basic.js"], function(viewer) {+ require(["ext/perspectiveBasic/extension.js"], function(viewer) {views.push(viewer);initViewsUI(viewer);viewer.init();@@ -38,7 +38,7 @@ exports.initViews = function initViews() {$( "#"+viewer.ID+"Toolbar" ).show();});- require(["ext/view.search.js"], function(viewer) {+ require(["ext/perspectiveSearch/extension.js"], function(viewer) {views.push(viewer);initViewsUI(viewer);viewer.init();@@ -48,8 +48,10 @@ exports.initViews = function initViews() {var extensions = TSSETTINGS.getExtensions();for (var i=0; i < extensions.length; i++) {if(extensions[i].enabled && (extensions[i].type == "view") ) {++ // TODO Some extension sucha ace editor are not working using paths like this "file:///C:/blabal/extension.js"var extPath = TSSETTINGS.getExtensionPath()+"/"+extensions[i].id+"/"+"extension.js";- // TODO remove extPath = "file:///Z:/TagSpaces/repository/data/ext/extension.js"+require([extPath], function(viewer) {views.push(viewer);initViewsUI(viewer);diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex 3ecf3dd37..4b33fa51b 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -64,12 +64,12 @@ TSSETTINGS.DefaultSettings = {"extensionsPath": "file:///C:/TagSpaces/extensions","extensions": [{- "id": "viewRiver", // ID should be equal to the directory name where the ext. is located+ "id": "perspectiveRiver", // ID should be equal to the directory name where the ext. is located"enabled": false,"type": "view",},{- "id": "viewThumb", // ID should be equal to the directory name where the ext. is located+ "id": "perspectiveThumb", // ID should be equal to the directory name where the ext. is located"enabled": true,"type": "view",},diff --git a/data/manifest.json b/data/manifest.jsonindex 51b773346..0e9fa45d2 100644--- a/data/manifest.json+++ b/data/manifest.json@@ -1,6 +1,6 @@{"name": "TagSpaces",- "version": "1.3.1246",+ "version": "1.3.1250","manifest_version": 2,"description": "TagSpaces Explorer","icons": {diff --git a/package.json b/package.jsonindex b8dcedbae..9693a4035 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.3.1246",+ "version": "1.3.1250","fullName": "TagSpaces","id": "jid1-FBaMKxTifTSahQ","description": "TagSpaces is a firefox addon, which allows you to browse your local file system and add tags to your files.",diff --git a/update.rdf b/update.rdfindex b7be6ffc1..479cb6585 100644--- a/update.rdf+++ b/update.rdf@@ -7,13 +7,13 @@<r:Seq><r:li><r:Description>- <version>1.3.1246</version>+ <version>1.3.1250</version><targetApplication><r:Description><id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id><minVersion>16.0</minVersion><maxVersion>*</maxVersion>- <updateLink>http://tagspaces.com/releases/1.3/tagspaces.1.3.1246.xpi</updateLink>+ <updateLink>http://tagspaces.com/releases/1.3/tagspaces.1.3.1250.xpi</updateLink><updateInfoURL>http://tagspaces.com/releases/1.3/updateInfo.xml</updateInfoURL></r:Description></targetApplication>