Skip to content

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

Some extension packaging changes

uggrocke78fd3b2e304
diff --git a/build.number b/build.number
index ba3bb853f..b79bebb91 100644
--- a/build.number
+++ b/build.number
@@ -1,4 +1,4 @@
#Build Number for ANT. Do not edit!
-#Fri Jul 12 14:19:09 CEST 2013
-build.number=1398
+#Sun Aug 11 12:44:27 CEST 2013
+build.number=1446
3=
diff --git a/build.xml b/build.xml
index 6e98eb6fe..6a88b1eb6 100644
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,7 @@ found in the LICENSE file.
<copy todir="${buildFirefoxExt.dir}/data/libs" >
<fileset dir="data/libs">
<exclude name="less/*" />
+ <exclude name="linqjs/*" />
</fileset>
</copy>
<copy todir="${buildFirefoxExt.dir}/data/ext" >
@@ -61,6 +62,8 @@ found in the LICENSE file.
<include name="perspectiveThumb/**/*"/>
<include name="perspectiveGraph/**/*"/>
<include name="editorHTML/**/*"/>
+ <include name="editorText/**/*"/>
+ <include name="viewerImage/**/*"/>
<include name="viewerMD/**/*"/>
</fileset>
</copy>
@@ -68,7 +71,11 @@ found in the LICENSE file.
<fileset dir="data/css" includes="**/*"/>
</copy>
<copy todir="${buildFirefoxExt.dir}/data/js" >
- <fileset dir="data/js" includes="**/*"/>
+ <fileset dir="data/js" includes="**/*">
+ <exclude name="ioapi.cordova.js" />
+ <exclude name="ioapi.chrome.js" />
+ <exclude name="ioapi.node.js" />
+ </fileset>
</copy>
<copy todir="${buildFirefoxExt.dir}/data/icons" >
<fileset dir="data/icons" includes="**/*"/>
@@ -132,18 +139,27 @@ found in the LICENSE file.
<include name="perspectiveThumb/**/*"/>
<include name="perspectiveGraph/**/*"/>
<include name="editorHTML/**/*"/>
- <include name="editorMirror/**/*"/>
+ <include name="editorText/**/*"/>
+ <include name="viewerPDF/**/*"/>
+ <include name="viewerImage/**/*"/>
<include name="viewerMD/**/*"/>
</fileset>
</copy>
<copy todir="${buildChrome.dir}/libs" >
- <fileset dir="data/libs" includes="**/*"/>
+ <fileset dir="data/libs">
+ <exclude name="less/*" />
+ <exclude name="linqjs/*" />
+ </fileset>
</copy>
<copy todir="${buildChrome.dir}/css" >
<fileset dir="data/css" includes="**/*"/>
</copy>
<copy todir="${buildChrome.dir}/js" >
- <fileset dir="data/js" includes="**/*"/>
+ <fileset dir="data/js" includes="**/*">
+ <exclude name="ioapi.cordova.js" />
+ <exclude name="ioapi.mozilla.js" />
+ <exclude name="ioapi.node.js" />
+ </fileset>
</copy>
<copy todir="${buildChrome.dir}/icons" >
<fileset dir="data/icons" includes="**/*"/>
diff --git a/chrome.manifest.tmpl.json b/chrome.manifest.tmpl.json
index ab0446a74..010cf94e6 100644
--- a/chrome.manifest.tmpl.json
+++ b/chrome.manifest.tmpl.json
@@ -9,11 +9,13 @@
"64" : "icons/icon64.png",
"128": "icons/icon128.png"
},
- "app": {
- "launch": {
- "local_path": "index.html"
- }
+ "background": {
+ "scripts": ["chrome/background.js"]
},
+ "browser_action": {
+ "default_icon": "icons/icon19.png",
+ "default_title": "Launch TagSpaces"
+ },
"options_page": "index.html",
"plugins": [
{"path": "chrome/NPAPI-chrome-file-api/NPAPIFileIOforChrome.plugin", "public": false},
diff --git a/data/chrome/background.js b/data/chrome/background.js
index 01f94f8f2..669764855 100644
--- a/data/chrome/background.js
+++ b/data/chrome/background.js
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012 The Tagspaces Authors. All rights reserved.
+/* Copyright (c) 2012-2013 The TagSpaces Authors. All rights reserved.
* Use of this source code is governed by a AGPL3 license that
* can be found in the LICENSE file. */
chrome.browserAction.onClicked.addListener(function() {
diff --git a/data/js/settings.api.js b/data/js/settings.api.js
index 2f3caf2d4..5132f72ac 100644
--- a/data/js/settings.api.js
+++ b/data/js/settings.api.js
@@ -54,31 +54,33 @@ define(function(require, exports, module) {
"tagspacesList": [],
"extensionsPath": "ext",
"ootbPerspectives": [ 'perspectiveThumb', 'perspectiveGraph' ],
- "ootbViewers": [ "viewerBrowser", "viewerMD" ],
- "ootbEditors": [ "editorHTML" ],
+ "ootbViewers": [ "viewerBrowser", "viewerMD", "viewerImage", "viewerPDF" ],
+ "ootbEditors": [ "editorHTML", "editorText" ],
"perspectives": [
{
"id": "perspectiveThumb", // ID should be equal to the directory name where the extension is located
},
],
"supportedFileTypes": [
- { "type": "jpg", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "jpeg", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "gif", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "png", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "svg", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "pdf", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "html", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "htm", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "mht", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "mhtml", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "maff", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "txt", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "xml", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "js", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "css", "viewer": "viewerBrowser", "editor": "false" },
- { "type": "mdown", "viewer": "viewerMD", "editor": "false" },
- { "type": "md", "viewer": "viewerMD", "editor": "false" }
+ { "type": "jpg", "viewer": "viewerImage", "editor": "false" },
+ { "type": "jpeg", "viewer": "viewerImage", "editor": "false" },
+ { "type": "gif", "viewer": "viewerImage", "editor": "false" },
+ { "type": "png", "viewer": "viewerImage", "editor": "false" },
+ { "type": "svg", "viewer": "viewerBrowser", "editor": "editorText" },
+ { "type": "pdf", "viewer": "viewerBrowser", "editor": "false" },
+ { "type": "html", "viewer": "viewerBrowser", "editor": "editorHTML" },
+ { "type": "htm", "viewer": "viewerBrowser", "editor": "editorHTML" },
+ { "type": "mht", "viewer": "viewerBrowser", "editor": "false" },
+ { "type": "mhtml", "viewer": "viewerBrowser", "editor": "false" },
+ { "type": "maff", "viewer": "viewerBrowser", "editor": "false" },
+ { "type": "txt", "viewer": "editorText", "editor": "editorText" },
+ { "type": "xml", "viewer": "editorText", "editor": "editorText" },
+ { "type": "js", "viewer": "editorText", "editor": "editorText" },
+ { "type": "json", "viewer": "editorText", "editor": "editorText" },
+ { "type": "url", "viewer": "editorText", "editor": "editorText" },
+ { "type": "css", "viewer": "editorText", "editor": "editorText" },
+ { "type": "mdown", "viewer": "viewerMD", "editor": "editorText" },
+ { "type": "md", "viewer": "viewerMD", "editor": "editorText" }
],
"tagGroups": [
{
@@ -90,17 +92,11 @@ define(function(require, exports, module) {
{
"title":"book",
"type":"plain",
- "color":"#F00",
- "textcolor":"#0F0",
},
{
"title":"paper",
"type":"plain",
},
- {
- "title":"XEUR",
- "type":"plain",
- },
{
"title":"201XMMDD",
"type":"plain",
@@ -130,7 +126,35 @@ define(function(require, exports, module) {
"type":"plain"
}
]
- }
+ },
+ {
+ "expanded": true,
+ "children": [
+ {
+ "type": "plain",
+ "title": "high",
+ "parentKey": "49138",
+ "color": "#ff7537",
+ "textcolor": "#ffffff"
+ },
+ {
+ "type": "plain",
+ "title": "medium",
+ "parentKey": "49138",
+ "color": "#ffad46",
+ "textcolor": "#ffffff"
+ },
+ {
+ "type": "plain",
+ "title": "low",
+ "parentKey": "49138",
+ "color": "#7bd148",
+ "textcolor": "#ffffff"
+ }
+ ],
+ "title": "Priorities",
+ "key": "PRI"
+ }
]
}
@@ -362,15 +386,17 @@ define(function(require, exports, module) {
var moveTag = function(tagData, targetTagGroupKey) {
var targetTagGroupData = getTagGroupData(targetTagGroupKey);
- if(createTag(targetTagGroupData, tagData.title)) {
+ if(createTag(targetTagGroupData, tagData.title, tagData.color, tagData.textcolor)) {
deleteTag(tagData);
saveSettings();
}
}
- var createTag = function(tagData, newTagName) {
+ var createTag = function(tagData, newTagName, newTagColor, newTagTextColor) {
var newTagModel = JSON.parse( JSON.stringify(tagTemplate) );
newTagModel.title = newTagName;
+ newTagModel.color = newTagColor;
+ newTagModel.textcolor = newTagTextColor;
exports.Settings["tagGroups"].forEach(function (value, index) {
if(value.key == tagData.key) {
console.log("Creating tag: "+JSON.stringify(newTagModel)+" with parent: "+tagData.key);
diff --git a/data/manifest.json b/data/manifest.json
index 368b452ff..a14c8017e 100644
--- a/data/manifest.json
+++ b/data/manifest.json
@@ -1,19 +1,21 @@
{
"name": "TagSpaces",
- "version": "1.4.1396",
+ "version": "1.5.1444",
"manifest_version": 2,
- "description": "TagSpaces Explorer",
+ "description": "A extensible platfrom, providing web based user interface for your local files.",
"icons": {
"16" : "icons/icon16.png",
"48" : "icons/icon48.png",
"64" : "icons/icon64.png",
"128": "icons/icon128.png"
},
- "app": {
- "launch": {
- "local_path": "index.html"
- }
- },
+ "background": {
+ "scripts": ["chrome/background.js"]
+ },
+ "browser_action": {
+ "default_icon": "icons/icon19.png",
+ "default_title": "Launch TagSpaces"
+ },
"options_page": "index.html",
"plugins": [
{"path": "chrome/NPAPI-chrome-file-api/NPAPIFileIOforChrome.plugin", "public": false},
diff --git a/icon.svg b/icon.svg
index c6d035fcf..08074136d 100644
--- a/icon.svg
+++ b/icon.svg
@@ -13,7 +13,7 @@
height="1052.3622047"
id="svg3041"
version="1.1"
- inkscape:version="0.48.2 r9819"
+ inkscape:version="0.48.4 r9939"
sodipodi:docname="icon.svg">
<defs
id="defs3043" />
@@ -32,10 +32,10 @@
showgrid="false"
showguides="true"
inkscape:guide-bbox="true"
- inkscape:window-width="1858"
- inkscape:window-height="1058"
- inkscape:window-x="54"
- inkscape:window-y="-8"
+ inkscape:window-width="1615"
+ inkscape:window-height="1026"
+ inkscape:window-x="65"
+ inkscape:window-y="24"
inkscape:window-maximized="1">
<sodipodi:guide
orientation="0,1"
@@ -59,16 +59,16 @@
inkscape:groupmode="layer"
id="layer1">
<path
- style="fill:none;stroke:#616577;stroke-width:12.19999981;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 191.66235,53.819244 31.31473,0 0,30.55711 -41.6688,43.815366 -30.93591,-29.294416 z"
+ style="fill:none;stroke:#616577;stroke-width:11.96032715;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="m 191.22118,56.271882 31.07103,0 0,29.598641 -41.34452,42.441037 -30.69516,-28.375557 z"
id="path3923"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc"
- inkscape:export-filename="Z:\Dev\tagspaces\data\img\icon.png"
- inkscape:export-xdpi="16.504297"
- inkscape:export-ydpi="16.504297" />
+ inkscape:export-filename="/media/z/TagSpaces/repository/data/icons/icon128bw.png"
+ inkscape:export-xdpi="133.17999"
+ inkscape:export-ydpi="133.17999" />
<path
- transform="matrix(1.6060915,0,0,1.7071068,-355.00649,-520.30017)"
+ transform="matrix(1.5935923,0,0,1.6535609,-351.19328,-499.83944)"
sodipodi:type="arc"
style="fill:#616577;fill-opacity:1;stroke:none"
id="path4875-4"
@@ -77,9 +77,9 @@
sodipodi:rx="3.75"
sodipodi:ry="3.5714285"
d="m 350.71429,347.71933 a 3.75,3.5714285 0 1 1 -7.5,0 3.75,3.5714285 0 1 1 7.5,0 z"
- inkscape:export-xdpi="16.504297"
- inkscape:export-ydpi="16.504297"
- inkscape:export-filename="Z:\Dev\tagspaces\data\img\icon.png" />
+ inkscape:export-xdpi="133.17999"
+ inkscape:export-ydpi="133.17999"
+ inkscape:export-filename="/media/z/TagSpaces/repository/data/icons/icon128bw.png" />
<path
transform="matrix(1.6060915,0,0,1.7071068,-75.034503,-521.24704)"
sodipodi:type="arc"
@@ -170,7 +170,7 @@
inkscape:export-xdpi="64.650002"
inkscape:export-ydpi="64.650002" />
<path
- transform="matrix(1.6060915,0,0,1.7071068,-239.35593,-520.03275)"
+ transform="matrix(1.5935856,0,0,1.6535653,-235.53304,-499.56631)"
sodipodi:type="arc"
style="fill:#616577;fill-opacity:1;stroke:none"
id="path4875-4-7-5"
@@ -183,8 +183,8 @@
inkscape:export-ydpi="48.488251"
inkscape:export-filename="Z:\Dev\tagspaces\data\icon48.png" />
<path
- style="fill:none;stroke:#a466aa;stroke-width:10.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 305.57528,117.5229 -9.5,-9"
+ style="fill:none;stroke:#a466aa;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="m 305.15503,117.99311 -9.42604,-8.71773"
id="path3108-5"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
@@ -192,8 +192,8 @@
inkscape:export-xdpi="48.488251"
inkscape:export-ydpi="48.488251" />
<path
- style="fill:#f7901e;fill-opacity:1;stroke:#33b5be;stroke-width:10.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 322.57528,96.647904 -19,-17.5"
+ style="fill:#f7901e;fill-opacity:1;stroke:#33b5be;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="M 322.02266,97.772832 303.1706,80.821701"
id="path3108-9-1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
@@ -201,8 +201,8 @@
inkscape:export-xdpi="48.488251"
inkscape:export-ydpi="48.488251" />
<path
- style="fill:#616577;fill-opacity:1;stroke:#f7901e;stroke-width:10.5;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 314.32528,107.3979 -14.5,-13.249996"
+ style="fill:#616577;fill-opacity:1;stroke:#f7901e;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="M 313.8369,108.18567 299.44979,95.351241"
id="path3108-0-7"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cc"
@@ -210,8 +210,8 @@
inkscape:export-xdpi="48.488251"
inkscape:export-ydpi="48.488251" />
<path
- style="fill:none;stroke:#616577;stroke-width:12.19999981;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 307.31291,54.086664 31.31473,0 0,30.55711 -41.6688,43.815366 -30.93592,-29.294416 z"
+ style="fill:none;stroke:#616577;stroke-width:11.96031666;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="m 306.87913,56.54648 31.07089,0 0,29.598718 -41.34434,42.441152 -30.69503,-28.37564 z"
id="path3923-1-1"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc"
@@ -226,8 +226,8 @@
x="125.71429"
y="177.36218" />
<path
- style="fill:none;stroke:#fbfcff;stroke-width:12.19999981000000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
- d="m 189.27334,210.89023 31.31473,0 0,30.55711 -41.6688,43.81537 -30.93591,-29.29442 z"
+ style="fill:none;stroke:#fbfcff;stroke-width:11.96032619;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
+ d="m 188.83217,213.34287 31.07103,0 0,29.59864 -41.34452,42.44104 -30.69516,-28.37556 z"
id="path3923-17"
inkscape:connector-curvature="0"
sodipodi:nodetypes="cccccc"
@@ -235,7 +235,7 @@
inkscape:export-xdpi="16.504297"
inkscape:export-ydpi="16.504297" />
<path
- transform="matrix(1.6060915,0,0,1.7071068,-357.3955,-363.22918)"
+ transform="matrix(1.5935923,0,0,1.6535609,-353.58229,-342.76843)"
sodipodi:type="arc"
style="fill:#f2f4ff;fill-opacity:1;stroke:none"
id="path4875-4-4"
diff --git a/node-webkit/package.json b/node-webkit/package.json
index 265229296..e89e02995 100644
--- a/node-webkit/package.json
+++ b/node-webkit/package.json
@@ -5,7 +5,7 @@
"main": "../data/index.html",
"window": {
"icon": "icon128.png",
- "toolbar": true,
+ "toolbar": false,
"width": 1024,
"height": 800
},
diff --git a/package.json b/package.json
index 81c6529db..3774084b3 100644
--- a/package.json
+++ b/package.json
@@ -2,7 +2,7 @@
"name": "tagspaces",
"license": "AGPL 3.0",
"author": "Ugg Rock",
- "version": "1.4.1396",
+ "version": "1.5.1444",
"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 d3f806f13..e3e88e87f 100644
--- a/update.rdf
+++ b/update.rdf
@@ -7,14 +7,14 @@
<r:Seq>
<r:li>
<r:Description>
- <version>1.4.1396</version>
+ <version>1.5.1444</version>
<targetApplication>
<r:Description>
<id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id>
<minVersion>16.0</minVersion>
<maxVersion>*</maxVersion>
- <updateLink>http://tagspaces.com/releases/1.4/tagspaces.1.4.1396.xpi</updateLink>
- <updateInfoURL>http://tagspaces.com/releases/1.4/updateInfo.xml</updateInfoURL>
+ <updateLink>http://tagspaces.com/releases/1.5/tagspaces.1.5.1444.xpi</updateLink>
+ <updateInfoURL>http://tagspaces.com/releases/1.5/updateInfo.xml</updateInfoURL>
</r:Description>
</targetApplication>
</r:Description>