Skip to content

TagSpaces is an offline, open source, document manager with tagging support

Refactoring views to perspectives

uggrock79c3afd9dce1
diff --git a/build.number b/build.number
index 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=1252
diff --git a/build.xml b/build.xml
index 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.js
index 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 located
exports.Type = "view";
exports.Icon = "ui-icon-note";
diff --git a/data/ext/viewGraph/d3/LICENSE b/data/ext/perspectiveGraph/d3/LICENSE
similarity index 100%
rename from data/ext/viewGraph/d3/LICENSE
rename to data/ext/perspectiveGraph/d3/LICENSE
diff --git a/data/ext/viewGraph/d3/d3.js b/data/ext/perspectiveGraph/d3/d3.js
similarity index 100%
rename from data/ext/viewGraph/d3/d3.js
rename to data/ext/perspectiveGraph/d3/d3.js
diff --git a/data/ext/viewGraph/d3/d3.v3.min.js b/data/ext/perspectiveGraph/d3/d3.v3.min.js
similarity index 100%
rename from data/ext/viewGraph/d3/d3.v3.min.js
rename to data/ext/perspectiveGraph/d3/d3.v3.min.js
diff --git a/data/ext/viewGraph/extension.js b/data/ext/perspectiveGraph/extension.js
similarity index 99%
rename from data/ext/viewGraph/extension.js
rename to data/ext/perspectiveGraph/extension.js
index 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 located
exports.Type = "view";
exports.Icon = "ui-icon-search";
exports.Version = "1.0";
diff --git a/data/ext/viewGraph/styles.css b/data/ext/perspectiveGraph/styles.css
similarity index 100%
rename from data/ext/viewGraph/styles.css
rename to data/ext/perspectiveGraph/styles.css
diff --git a/data/ext/viewRiver/extension.js b/data/ext/perspectiveRiver/extension.js
similarity index 95%
rename from data/ext/viewRiver/extension.js
rename to data/ext/perspectiveRiver/extension.js
index 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 located
exports.Type = "view";
exports.Icon = "ui-icon-image";
diff --git a/data/ext/view.search.js b/data/ext/perspectiveSearch/extension.js
similarity index 98%
rename from data/ext/view.search.js
rename to data/ext/perspectiveSearch/extension.js
index 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 located
exports.Type = "view";
exports.Icon = "ui-icon-search";
exports.Version = "1.0";
diff --git a/data/ext/viewThumb/extension.js b/data/ext/perspectiveThumb/extension.js
similarity index 97%
rename from data/ext/viewThumb/extension.js
rename to data/ext/perspectiveThumb/extension.js
index 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 located
exports.Type = "view";
exports.Icon = "ui-icon-image";
diff --git a/data/js/main.js b/data/js/main.js
index 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.js
index 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.js
index 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.json
index 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.json
index 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.rdf
index 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>