TagSpaces is an offline, open source, document manager with tagging support
Added functionality for customizing of the default.setting with parametesr
uggrock89f6c6390253
diff --git a/build.number b/build.numberindex 48968adc6..8046b2a00 100644--- a/build.number+++ b/build.number@@ -1,4 +1,4 @@#Build Number for ANT. Do not edit!-#Tue Sep 17 15:18:56 CEST 2013-build.number=1530+#Sun Sep 22 17:10:22 CEST 2013+build.number=16003=diff --git a/build.properties b/build.propertiesindex 4dd2f26ac..7f7f604ea 100644--- a/build.properties+++ b/build.properties@@ -1,12 +1,18 @@+version = 1.6+package = tagspaces+appname = TagSpaces+# Chromestore accepts descriptions no longer than 132 characters+appdescription = An open and extensible platform for personal data management, with which you can manage and organize the files on your local drive.addonsdk.dir = ../addonsdk[1.14]backup.dir = ../backupsbuilds.dir = ../buildsbuildFirefoxExt.dir = ../builds/firefoxbuildChrome.dir = ../builds/chromebuildWin32.dir = ../builds/tagspaces-win32-buildLinux32.dir = ../builds/linux32-buildLinux64.dir = ../builds/linux64+buildLinux32.dir = ../builds/tagspaces-linux32+buildLinux64.dir = ../builds/tagspaces-linux64buildOSX.dir = ../builds/osxcordovaDev.dir = ../AndroidApp/wwwcordovaJSLib.file = ../AndroidApp/cordova.js-tagspaces.org.release.dir = ../website/webroot/releases\ No newline at end of file+tagspaces.org.release.dir = ../website/webroot/releases+default.locations.android = {"name": "Photos", "path": "DCIM"}, {"name": "Downloads", "path": "Download"}\ No newline at end of filediff --git a/build.xml b/build.xmlindex b46cd208d..52b6ce07a 100644--- a/build.xml+++ b/build.xml@@ -6,19 +6,25 @@ found in the LICENSE file.<project name="tagspaces" default="main"><property file="build.properties"/><property file="build.number"/>-- <property name="version" value="1.6"/>- <property name="package" value="tagspaces"/>- <property name="appname" value="TagSpaces"/>- <!-- Chromestore accepts descriptions no longer than 132 characters-->- <property name="appdescription" value="An open and extensible platform for personal data management, with which you can manage and organize the files on your local drive."/>- <property name="defaultSettings.file" value="settings.api.js"/>+ <buildnumber file="build.number"/>++ <property name="defaultSettings.file" value="settings.default.js"/><tstamp/><!--tstamp><format property="touch.time" pattern="MM/dd/yyyy hh:mm aa" /></tstamp-->+ <target name="_prepare-devenv" description="Prepares the development environment">+ <copy file="default.settings.tmpl.js" tofile="data/js/${defaultSettings.file}" />+ <replace file="data/js/${defaultSettings.file}" >+ <replacefilter token="@VERSION@" value="V${version}" />+ <replacefilter token="@APPNAME@" value="${appname}" />+ <replacefilter token="@BUILD@" value="${build.number}" />+ <replacefilter token="@DEFAULTLOCATIONS@" value="${default.locations}" />+ </replace>+ </target>+<target name="prepare-mozilla-extension" description="copy all files for the chrome app to the build directory">- <buildnumber file="build.number"/>- <echo>Mozilla directory: ${buildFirefoxExt.dir}</echo>++ <echo>Preparing Mozilla Addon [${build.number}] in: ${buildFirefoxExt.dir}</echo><delete dir="${buildFirefoxExt.dir}"/><mkdir dir="${buildFirefoxExt.dir}" /><copy file="mozilla.package.tmpl.json" overwrite="true" tofile="package.json" />@@ -77,17 +83,22 @@ found in the LICENSE file.<fileset dir="data/js" includes="**/*"><exclude name="ioapi.cordova.js" /><exclude name="ioapi.chrome.js" />- <exclude name="ioapi.node.js" />+ <exclude name="ioapi.node.js" />+ <exclude name="${defaultSettings.file}" /></fileset></copy><copy todir="${buildFirefoxExt.dir}/data/icons" ><fileset dir="data/icons" includes="**/*"/></copy>- <replace file="${buildFirefoxExt.dir}/data/js/${defaultSettings.file}" >++ <copy file="default.settings.tmpl.js" tofile="${buildFirefoxExt.dir}/data/js/${defaultSettings.file}" />+ <replace file="${buildFirefoxExt.dir}/data/js/${defaultSettings.file}" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" /><replacefilter token="@BUILD@" value="${build.number}" />- </replace>+ <replacefilter token="@DEFAULTLOCATIONS@" value="" />+ <replacefilter token="@PDFVIEWER@" value="viewerBrowser" />+ </replace><replace file="${buildFirefoxExt.dir}/data/about.html" ><replacefilter token="@VERSION@" value="${version}" />@@ -96,26 +107,8 @@ found in the LICENSE file.</replace></target>- <target name="build-mozilla-extension" depends="prepare-mozilla-extension" description="Creates a simple zip(not xpi) of the mozilla extension">- <zip destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} mozilla].zip">- <fileset dir="${buildFirefoxExt.dir}" includes="**/*" />- </zip>- </target>-- <target name="build-mozilla-full-extension" depends="prepare-mozilla-extension" description="Creates a simple zip(not xpi) of the mozilla extension">- <copy todir="${buildFirefoxExt.dir}/data/ext" >- <fileset dir="data/ext">- <include name="editorText/**/*"/>- </fileset>- </copy>- <zip destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} mozilla].zip">- <fileset dir="${buildFirefoxExt.dir}" includes="**/*" />- </zip>- </target>-<target name="prepare-chrome-extension" description="copy all files for the chrome app to the build directory">- <buildnumber file="build.number"/>- <echo>Chrome directory: ${buildChrome.dir}</echo>+ <echo>Preparing Chrome Extension [${build.number}] in: ${buildChrome.dir}</echo><delete dir="${buildChrome.dir}"/><mkdir dir="${buildChrome.dir}" /><copy file="chrome.manifest.tmpl.json" overwrite="true" tofile="data/manifest.json" />@@ -152,7 +145,6 @@ found in the LICENSE file.<copy todir="${buildChrome.dir}/libs" ><fileset dir="data/libs"><exclude name="less/*" />- <exclude name="linqjs/*" /></fileset></copy><copy todir="${buildChrome.dir}/css" >@@ -162,33 +154,30 @@ found in the LICENSE file.<fileset dir="data/js" includes="**/*"><exclude name="ioapi.cordova.js" /><exclude name="ioapi.mozilla.js" />- <exclude name="ioapi.node.js" />+ <exclude name="ioapi.node.js" />+ <exclude name="${defaultSettings.file}" /></fileset></copy><copy todir="${buildChrome.dir}/icons" ><fileset dir="data/icons" includes="**/*"/></copy>- <replace file="${buildChrome.dir}/js/${defaultSettings.file}" >+ <copy file="default.settings.tmpl.js" tofile="${buildChrome.dir}/js/${defaultSettings.file}" />+ <replace file="${buildChrome.dir}/js/${defaultSettings.file}" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" /><replacefilter token="@BUILD@" value="${build.number}" />- </replace>+ <replacefilter token="@DEFAULTLOCATIONS@" value="" />+ <replacefilter token="@PDFVIEWER@" value="viewerBrowser" />+ </replace><replace file="${buildChrome.dir}/about.html" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" /><replacefilter token="@BUILD@" value="${build.number}" /></replace></target>-- <target name="build-chrome-extension" depends="prepare-chrome-extension" description="Creates a simple zip(not crx) of the chrome exntension">- <zip destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} chrome].zip">- <fileset dir="${buildChrome.dir}" includes="**/*" />- </zip>- </target><target name="prepare-win32-package" description="copy all files for the chrome app to the build directory">- <buildnumber file="build.number"/>- <echo>Chrome directory: ${buildChrome.dir}</echo>+ <echo>Preparing Windows32bit[${build.number}] in: ${buildWin32.dir}</echo><delete dir="${buildWin32.dir}"/><mkdir dir="${buildWin32.dir}" /><copy file="node-webkit/package.tmpl.json" overwrite="true" tofile="${buildWin32.dir}/package.json" />@@ -225,7 +214,6 @@ found in the LICENSE file.<copy todir="${buildWin32.dir}/libs" ><fileset dir="data/libs"><exclude name="less/*" />- <exclude name="linqjs/*" /></fileset></copy><copy todir="${buildWin32.dir}/css" >@@ -235,17 +223,21 @@ found in the LICENSE file.<fileset dir="data/js" includes="**/*"><exclude name="ioapi.cordova.js" /><exclude name="ioapi.mozilla.js" />- <exclude name="ioapi.chrome.js" />+ <exclude name="ioapi.chrome.js" />+ <exclude name="${defaultSettings.file}" /></fileset></copy><copy todir="${buildWin32.dir}/icons" ><fileset dir="data/icons" includes="**/*"/>- </copy>- <replace file="${buildWin32.dir}/js/${defaultSettings.file}" >+ </copy>+ <copy file="default.settings.tmpl.js" tofile="${buildWin32.dir}/js/${defaultSettings.file}" />+ <replace file="${buildWin32.dir}/js/${defaultSettings.file}" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" /><replacefilter token="@BUILD@" value="${build.number}" />- </replace>+ <replacefilter token="@DEFAULTLOCATIONS@" value="" />+ <replacefilter token="@PDFVIEWER@" value="viewerPDF" />+ </replace><replace file="${buildWin32.dir}/about.html" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" />@@ -253,17 +245,87 @@ found in the LICENSE file.</replace></target>- <target name="build-win32-package" depends="prepare-win32-package" description="Builds win32bit package based on node-webkit">- <zip basedir="${builds.dir}" destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} win32].zip" includes="tagspaces-win32/**/*" />- </target>+ <target name="prepare-linux64-package" description="copy all files for the chrome app to the build directory">+ <echo>Preparing Linux64bit[${build.number}] in: ${buildChrome.dir}</echo>+ <delete dir="${buildLinux64.dir}"/>+ <mkdir dir="${buildLinux64.dir}" />+ <copy file="node-webkit/package.tmpl.json" overwrite="true" tofile="${buildLinux64.dir}/package.json" />+ <copy file="LICENSE" overwrite="true" tofile="data/LICENSE.txt" />+ <replace file="${buildLinux64.dir}/package.json" >+ <replacefilter token="@VERSION@" value="${version}" />+ <replacefilter token="@APPNAME@" value="${appname}" />+ <replacefilter token="@APPDESCRIPTION@" value="${appdescription}" />+ <replacefilter token="@BUILD@" value="${build.number}" />+ </replace>+ <copy file="data/LICENSE.txt" todir="${buildLinux64.dir}" />+ <copy file="data/index.html" todir="${buildLinux64.dir}" />+ <copy file="data/about.html" todir="${buildLinux64.dir}" />+ <copy file="data/loader.js" todir="${buildLinux64.dir}" />+ <replace file="${buildLinux64.dir}/loader.js" >+ <replacefilter token="@PRODUCTION@" value="true" />+ </replace>+ <copy file="node-webkit/credits.html" todir="${buildLinux64.dir}" />+ <copy file="node-webkit/nw.pak" todir="${buildLinux64.dir}" />+ <copy file="node-webkit/nw" tofile="${buildLinux64.dir}/tagspaces" />+ <copy todir="${buildLinux64.dir}/ext" >+ <fileset dir="data/ext">+ <include name="perspectiveList/**/*"/>+ <include name="perspectiveGrid/**/*"/>+ <include name="perspectiveGraph/**/*"/>+ <include name="editorHTML/**/*"/>+ <include name="editorText/**/*"/>+ <include name="viewerPDF/**/*"/>+ <include name="viewerImage/**/*"/>+ <include name="viewerMD/**/*"/>+ </fileset>+ </copy>+ <copy todir="${buildLinux64.dir}/libs" >+ <fileset dir="data/libs">+ <exclude name="less/*" />+ </fileset>+ </copy>+ <copy todir="${buildLinux64.dir}/css" >+ <fileset dir="data/css" includes="**/*"/>+ </copy>+ <copy todir="${buildLinux64.dir}/js" >+ <fileset dir="data/js" includes="**/*">+ <exclude name="ioapi.cordova.js" />+ <exclude name="ioapi.mozilla.js" />+ <exclude name="ioapi.chrome.js" />+ <exclude name="${defaultSettings.file}" />+ </fileset>+ </copy>+ <copy todir="${buildLinux64.dir}/icons" >+ <fileset dir="data/icons" includes="**/*"/>+ </copy>+ <copy file="default.settings.tmpl.js" tofile="${buildLinux64.dir}/js/${defaultSettings.file}" />+ <replace file="${buildLinux64.dir}/js/${defaultSettings.file}" >+ <replacefilter token="@VERSION@" value="${version}" />+ <replacefilter token="@APPNAME@" value="${appname}" />+ <replacefilter token="@BUILD@" value="${build.number}" />+ <replacefilter token="@DEFAULTLOCATIONS@" value="" />+ <replacefilter token="@PDFVIEWER@" value="viewerPDF" />+ </replace>+ <replace file="${buildLinux64.dir}/about.html" >+ <replacefilter token="@VERSION@" value="${version}" />+ <replacefilter token="@APPNAME@" value="${appname}" />+ <replacefilter token="@BUILD@" value="${build.number}" />+ </replace>+ </target>- <target name="prepare-cordova-application" description="copy all files the cordova dev directory">- <!--delete dir="${cordovaDev.dir}"/>+ <target name="prepare-cordova-app" description="copy all files the cordova dev directory">+ <echo>Preparing Cordova App[${build.number}] in: ${cordovaDev.dir}</echo>+ <delete dir="${cordovaDev.dir}"/><mkdir dir="${cordovaDev.dir}" />- <copy file="${cordovaJSLib.file}" todir="${cordovaDev.dir}" /--><copy file="LICENSE" tofile="${cordovaDev.dir}/LICENSE.txt" />- <copy file="data/manifest.json" todir="${cordovaDev.dir}" />- <copy file="data/index.html" todir="${cordovaDev.dir}" />+ <copy file="config.xml" tofile="${cordovaDev.dir}/config.xml" />+ <replace file="${cordovaDev.dir}/config.xml" >+ <replacefilter token="@VERSION@" value="${version}" />+ <replacefilter token="@APPNAME@" value="${appname}" />+ <replacefilter token="@BUILD@" value="${build.number}" />+ <replacefilter token="@DEFAULTLOCATIONS@" value="${appdescription}" />+ </replace>+ <copy file="data/index.html" todir="${cordovaDev.dir}" /><copy file="data/about.html" todir="${cordovaDev.dir}" /><copy file="data/loader.js" todir="${cordovaDev.dir}" /><copy todir="${cordovaDev.dir}/libs" >@@ -278,17 +340,24 @@ found in the LICENSE file.<fileset dir="data/css" includes="**/*"/></copy><copy todir="${cordovaDev.dir}/js" >- <fileset dir="data/js" includes="**/*"/>+ <fileset dir="data/js" includes="**/*">+ <exclude name="ioapi.node.js" />+ <exclude name="ioapi.mozilla.js" />+ <exclude name="ioapi.chrome.js" />+ <exclude name="${defaultSettings.file}" />+ </fileset></copy><copy todir="${cordovaDev.dir}/icons" ><fileset dir="data/icons" includes="**/*"/></copy>+ <copy file="default.settings.tmpl.js" tofile="${cordovaDev.dir}/js/${defaultSettings.file}" /><replace file="${cordovaDev.dir}/js/${defaultSettings.file}" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" /><replacefilter token="@BUILD@" value="${build.number}" />- </replace>-+ <replacefilter token="@DEFAULTLOCATIONS@" value="${default.locations.android}" />+ <replacefilter token="@PDFVIEWER@" value="viewerPDF" />+ </replace><replace file="${cordovaDev.dir}/about.html" ><replacefilter token="@VERSION@" value="${version}" /><replacefilter token="@APPNAME@" value="${appname}" />@@ -303,15 +372,33 @@ found in the LICENSE file.<target name="clean-all"><delete dir="${buildFirefoxExt.dir}"/><delete dir="${buildChrome.dir}"/>+ <delete dir="${buildWin32.dir}"/>+ <delete dir="${buildLinux32.dir}"/>+ <delete dir="${buildLinux64.dir}"/>+ <delete dir="${buildOSX.dir}"/></target>-- <target name="prepare-mozilla-addonsdk" description="copy 3th party libs to the mozilla addon sdk">- <copy todir="${addonsdk.dir}/packages" >- <fileset dir="./addonlibs" includes="**/*"/>- </copy>- </target>- <target name="main" depends="prepare-chrome-extension, prepare-mozilla-extension, prepare-cordova-application" description="prepare for all target platforms" />+ <target name="main" depends="_prepare-devenv, prepare-cordova-app, prepare-chrome-extension, prepare-mozilla-extension, prepare-win32-package, prepare-linux64-package" description="prepare for all target platforms" />- <target name="build-all" depends="build-chrome-extension, build-mozilla-extension" description="build for all target platforms" />+ <target name="build-all" depends="build-chrome-extension, build-mozilla-extension, build-win32-package, build-linux64-package" description="build for all target platforms" />++ <target name="build-win32-package" depends="prepare-win32-package" description="Builds win32bit package based on node-webkit">+ <zip basedir="${builds.dir}" destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} win32].zip" includes="tagspaces-win32/**/*" />+ </target>++ <target name="build-linux64-package" depends="prepare-linux64-package" description="Builds linux 64 bit package based on node-webkit">+ <zip basedir="${builds.dir}" destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} linux64].zip" includes="tagspaces-linux64/**/*" />+ </target>++ <target name="build-chrome-extension" depends="prepare-chrome-extension" description="Creates a simple zip(not crx) of the chrome exntension">+ <zip destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} chrome].zip">+ <fileset dir="${buildChrome.dir}" includes="**/*" />+ </zip>+ </target>++ <target name="build-mozilla-extension" depends="prepare-mozilla-extension" description="Creates a simple zip(not xpi) of the mozilla extension">+ <zip destfile="${builds.dir}/${appname} [v${version}.${build.number} ${DSTAMP}${TSTAMP} mozilla].zip">+ <fileset dir="${buildFirefoxExt.dir}" includes="**/*" />+ </zip>+ </target></project>diff --git a/config.xml b/config.xmlnew file mode 100644index 000000000..4677ce678--- /dev/null+++ b/config.xml@@ -0,0 +1,23 @@+<?xml version='1.0' encoding='utf-8'?>+<widget id="org.tagspaces.androidapp" version="@VERSION@.@BUILD@" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">+ <name>@APPNAME@</name>+ <description>@DEFAULTLOCATIONS@</description>+ <author email="[email protected]" href="http://tagspaces.org">+ TagSpaces Team+ </author>+ <content src="index.html" />+ <feature name="App">+ <param name="android-package" value="org.apache.cordova.App" />+ </feature>+ <feature name="Device">+ <param name="android-package" value="org.apache.cordova.device.Device" />+ </feature>+ <feature name="File">+ <param name="android-package" value="org.apache.cordova.file.FileUtils" />+ </feature>+ <access origin="*" />+ <preference name="useBrowserHistory" value="true" />+ <preference name="exit-on-suspend" value="false" />+ <preference name="fullscreen" value="true" />+ <preference name="webviewbounce" value="true" />+</widget>\ No newline at end of filediff --git a/data/about.html b/data/about.htmlindex ec8e99bef..e201b9eec 100644--- a/data/about.html+++ b/data/about.html@@ -38,6 +38,7 @@ TagSpaces thankfully relays on the followings javascript libraries:<li>DataTables - <a href="http://datatables.net/" target="_new">Homepage</a> <a href="libs/datatables/license-bsd.txt">License[BSD]</a></li><li>JSONEditor - <a href="http://jsoneditoronline.org/" target="_new">Homepage</a> <a href="libs/jsoneditor/LICENSE[Apache 2.0]">License[Apache2]</a></li><li>RequireJS - <a href="http://requirejs.org" target="_new">Homepage</a> <a href="libs/requirejs/MIT-LICENSE.txt">License[MIT]</a></li>+<li>UnderscoreJS - <a href="http://underscorejs.org" target="_new">Homepage</a> <a href="libs/underscore/LICENSE[MIT].txt">License[MIT]</a></li><!--li>Less - <a href="http://www.lesscss.de/" target="_new">Homepage</a> <a href="libs/less/APACHE2.0.txt">License[Apache2]</a></li--><li>Voldsoftware Libs (firefox only)- <a href="https://github.com/voldsoftware/" target="_new">Homepage</a> License[MPL/MIT]</li><li>node-webkit (standalone release only) - <a href="https://github.com/rogerwang/node-webkit" target="_new">Homepage</a> License[MIT]</li>diff --git a/data/js/core.api.js b/data/js/core.api.jsindex 36b95cb19..ca8c47304 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -13,7 +13,7 @@ define(function(require, exports, module) {var tsFileOpener = require("tsfileopener");var tsTagsUI = require("tstagsui");var tsDirectoriesUI = require("tsdirectoriesui");- var tsCoreUI = require("tscoreui")+ var tsCoreUI = require("tscoreui");var layoutContainer = undefined;var westLayout = undefined;diff --git a/data/js/settings.api.js b/data/js/settings.api.jsindex 5d23e13db..8439d4ed6 100644--- a/data/js/settings.api.js+++ b/data/js/settings.api.js@@ -9,6 +9,10 @@ define(function(require, exports, module) {var IOAPI = require("tsioapi");var TSCORE = require("tscore");+ exports.DefaultSettings = require("tssettingsdefault").defaultSettings;++ exports.Settings = undefined;+var tagTemplate = {"title" : undefined,"type" : "plain",@@ -39,185 +43,6 @@ define(function(require, exports, module) {"expanded": true,"children": []};-- exports.DefaultSettings = {- "appName": "@APPNAME@",- "appVersion": "@VERSION@",- "appBuild": "@BUILD@",- "settingsVersion": 2,- "newTextFileContent": "File created with TagSpaces!",- "newHTMLFileContent": "<html><head><title>Created with TagSpaces!</title></head><body>Feel free to change this text...</body></html>",- "newMDFileContent": '#Markdown file created with TagSpaces!',- "showUnixHiddenEntries": false,- "checkForUpdates": true,- "lastOpenedDirectory": "",- "tagspacesList": [],- "extensionsPath": "ext",- "ootbPerspectives": [ 'perspectiveList', 'perspectiveGrid', 'perspectiveGraph' ],- "ootbViewers": [ "viewerBrowser", "viewerMD", "viewerImage", "viewerPDF", "editorText" ],- "ootbEditors": [ "editorHTML", "editorText" ],- "perspectives": [- { "id": "perspectiveList" }, // ID should be equal to the directory name where the extension is located- { "id": "perspectiveGrid" }// ID should be equal to the directory name where the extension is located- ],- "supportedFileTypes": [- { "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": "viewerBrowser", "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": [- {- "title":"Common Tags",- "isFolder": "true",- "key":"OTB",- "expand": "true",- "children":[- {- "title":"book",- "type":"plain",- },- {- "title":"paper",- "type":"plain",- },- {- "title":"201XMMDD",- "type":"plain",- }- ]- },- {- "title":"GTD",- "isFolder": "true",- "key":"GTD",- "expand": "true",- "children":[- {- "title":"done",- "type":"plain"- },- {- "title":"next",- "type":"plain"- },- {- "title":"maybe",- "type":"plain"- },- {- "title":"waiting",- "type":"plain"- }- ]- },- {- "title": "Smart Tags",- "key": "SMR",- "expanded": true,- "children": [- {- "type": "smart",- "title": "now",- "functionality": "now",- "desciption": "Adds the current date and time as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- {- "type": "smart",- "title": "today",- "functionality": "today",- "desciption": "Adds the current date as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- {- "type": "smart",- "title": "tomorrow",- "functionality": "tomorrow",- "desciption": "Adds tomorrow's date as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- {- "type": "smart",- "title": "yesterday",- "functionality": "yesterday",- "desciption": "Adds the date of yesterday as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- {- "type": "smart",- "title": "month",- "functionality": "currentMonth",- "desciption": "Adds the current year and month as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- {- "type": "smart",- "title": "year",- "functionality": "currentYear",- "desciption": "Adds the current year as tag",- "color": "#4986e7",- "textcolor": "#ffffff"- },- /* {- "type": "smart",- "title": "here",- "functionality": "here",- "desciption": "Adds the current location as tag",- "color": "#ff7537",- "textcolor": "#ffffff"- },*/- ]- },- {- "expanded": true,- "children": [- {- "type": "plain",- "title": "high",- "color": "#ff7537",- "textcolor": "#ffffff"- },- {- "type": "plain",- "title": "medium",- "color": "#ffad46",- "textcolor": "#ffffff"- },- {- "type": "plain",- "title": "low",- "color": "#7bd148",- "textcolor": "#ffffff"- }- ],- "title": "Priorities",- "key": "PRI"- }- ]- };-- exports.Settings = undefined;var firstRun = false;diff --git a/data/js/settings.default.js b/data/js/settings.default.jsnew file mode 100644index 000000000..4b62d48c7--- /dev/null+++ b/data/js/settings.default.js@@ -0,0 +1,183 @@+/* 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. */+define(function(require, exports, module) {+"use strict";++exports.defaultSettings = {+ "appName": "TagSpaces",+ "appVersion": "V1.6",+ "appBuild": "1594",+ "settingsVersion": 2,+ "newTextFileContent": "File created with TagSpaces!",+ "newHTMLFileContent": "<html><head><title>Created with TagSpaces!</title></head><body>Feel free to change this text...</body></html>",+ "newMDFileContent": '#Markdown file created with TagSpaces!',+ "showUnixHiddenEntries": false,+ "checkForUpdates": true,+ "lastOpenedDirectory": "",+ "tagspacesList": [],+ "extensionsPath": "ext",+ "ootbPerspectives": [ 'perspectiveList', 'perspectiveGrid', 'perspectiveGraph' ],+ "ootbViewers": [ "viewerBrowser", "viewerMD", "viewerImage", "viewerPDF", "editorText" ],+ "ootbEditors": [ "editorHTML", "editorText" ],+ "perspectives": [+ { "id": "perspectiveList" }, // ID should be equal to the directory name where the extension is located+ { "id": "perspectiveGrid" }// ID should be equal to the directory name where the extension is located+ ],+ "supportedFileTypes": [+ { "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": "@PDFVIEWER@", "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": "txt", "viewer": "viewerBrowser", "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": [+ {+ "title":"Common Tags",+ "isFolder": "true",+ "key":"OTB",+ "expand": "true",+ "children":[+ {+ "title":"book",+ "type":"plain",+ },+ {+ "title":"paper",+ "type":"plain",+ },+ {+ "title":"201XMMDD",+ "type":"plain",+ }+ ]+ },+ {+ "title":"GTD",+ "isFolder": "true",+ "key":"GTD",+ "expand": "true",+ "children":[+ {+ "title":"done",+ "type":"plain"+ },+ {+ "title":"next",+ "type":"plain"+ },+ {+ "title":"maybe",+ "type":"plain"+ },+ {+ "title":"waiting",+ "type":"plain"+ }+ ]+ },+ {+ "title": "Smart Tags",+ "key": "SMR",+ "expanded": true,+ "children": [+ {+ "type": "smart",+ "title": "now",+ "functionality": "now",+ "desciption": "Adds the current date and time as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "today",+ "functionality": "today",+ "desciption": "Adds the current date as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "tomorrow",+ "functionality": "tomorrow",+ "desciption": "Adds tomorrow's date as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "yesterday",+ "functionality": "yesterday",+ "desciption": "Adds the date of yesterday as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "month",+ "functionality": "currentMonth",+ "desciption": "Adds the current year and month as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "year",+ "functionality": "currentYear",+ "desciption": "Adds the current year as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ /* {+ "type": "smart",+ "title": "here",+ "functionality": "here",+ "desciption": "Adds the current location as tag",+ "color": "#ff7537",+ "textcolor": "#ffffff"+ },*/+ ]+ },+ {+ "expanded": true,+ "children": [+ {+ "type": "plain",+ "title": "high",+ "color": "#ff7537",+ "textcolor": "#ffffff"+ },+ {+ "type": "plain",+ "title": "medium",+ "color": "#ffad46",+ "textcolor": "#ffffff"+ },+ {+ "type": "plain",+ "title": "low",+ "color": "#7bd148",+ "textcolor": "#ffffff"+ }+ ],+ "title": "Priorities",+ "key": "PRI"+ }+ ]+};++});\ No newline at end of filediff --git a/data/loader.js b/data/loader.jsindex add52b373..6de23df2d 100644--- a/data/loader.js+++ b/data/loader.js@@ -52,7 +52,7 @@ console.log("Loading Loader - Firefox: "+isFirefox+" | ChromeExt: "+isChrome+" |requirejs.config({map: {'*': {- 'css': 'libs/requirecss/css'+ 'css': 'libs/requirecss/css',}},paths: {@@ -83,9 +83,10 @@ requirejs.config({jqueryeditinplace: 'libs/jqueryeditinplace/jquery.editinplace',underscore: 'libs/underscore/underscore',d3: 'libs/d3/d3.v3',-+tscore: 'js/core.api',tssetting: 'js/settings.api',+ tssettingsdefault: 'js/settings.default',tsoptions: 'js/options.ui',tspersmanager: 'js/perspective.manager',tstagutils: 'js/tagutils',@@ -128,6 +129,7 @@ requirejs.config({'jquerysimplecolorpicker','jquerylayout','jquerydropdown',+ 'tssettingsdefault',] },}});diff --git a/data/manifest.json b/data/manifest.jsonindex ae9f5e387..dada5282c 100644--- a/data/manifest.json+++ b/data/manifest.json@@ -1,8 +1,8 @@{"name": "TagSpaces",- "version": "1.6.1528",+ "version": "1.6.1598","manifest_version": 2,- "description": "TagSpaces is an open, extensible, webbased platform for personal data management. With TagSpaces you can manage and organize the files on your local drive.",+ "description": "An open and extensible platform for personal data management, with which you can manage and organize the files on your local drive.","icons": {"16" : "icons/icon16.png","48" : "icons/icon48.png",diff --git a/default.settings.tmpl.js b/default.settings.tmpl.jsnew file mode 100644index 000000000..7ae0a3e38--- /dev/null+++ b/default.settings.tmpl.js@@ -0,0 +1,183 @@+/* 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. */+define(function(require, exports, module) {+"use strict";++exports.defaultSettings = {+ "appName": "@APPNAME@",+ "appVersion": "@VERSION@",+ "appBuild": "@BUILD@",+ "settingsVersion": 2,+ "newTextFileContent": "File created with TagSpaces!",+ "newHTMLFileContent": "<html><head><title>Created with TagSpaces!</title></head><body>Feel free to change this text...</body></html>",+ "newMDFileContent": '#Markdown file created with TagSpaces!',+ "showUnixHiddenEntries": false,+ "checkForUpdates": true,+ "lastOpenedDirectory": "",+ "tagspacesList": [@DEFAULTLOCATIONS@],+ "extensionsPath": "ext",+ "ootbPerspectives": [ 'perspectiveList', 'perspectiveGrid', 'perspectiveGraph' ],+ "ootbViewers": [ "viewerBrowser", "viewerMD", "viewerImage", "viewerPDF", "editorText" ],+ "ootbEditors": [ "editorHTML", "editorText" ],+ "perspectives": [+ { "id": "perspectiveList" }, // ID should be equal to the directory name where the extension is located+ { "id": "perspectiveGrid" }// ID should be equal to the directory name where the extension is located+ ],+ "supportedFileTypes": [+ { "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": "@PDFVIEWER@", "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": "txt", "viewer": "viewerBrowser", "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": [+ {+ "title":"Common Tags",+ "isFolder": "true",+ "key":"OTB",+ "expand": "true",+ "children":[+ {+ "title":"book",+ "type":"plain",+ },+ {+ "title":"paper",+ "type":"plain",+ },+ {+ "title":"201XMMDD",+ "type":"plain",+ }+ ]+ },+ {+ "title":"GTD",+ "isFolder": "true",+ "key":"GTD",+ "expand": "true",+ "children":[+ {+ "title":"done",+ "type":"plain"+ },+ {+ "title":"next",+ "type":"plain"+ },+ {+ "title":"maybe",+ "type":"plain"+ },+ {+ "title":"waiting",+ "type":"plain"+ }+ ]+ },+ {+ "title": "Smart Tags",+ "key": "SMR",+ "expanded": true,+ "children": [+ {+ "type": "smart",+ "title": "now",+ "functionality": "now",+ "desciption": "Adds the current date and time as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "today",+ "functionality": "today",+ "desciption": "Adds the current date as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "tomorrow",+ "functionality": "tomorrow",+ "desciption": "Adds tomorrow's date as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "yesterday",+ "functionality": "yesterday",+ "desciption": "Adds the date of yesterday as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "month",+ "functionality": "currentMonth",+ "desciption": "Adds the current year and month as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ {+ "type": "smart",+ "title": "year",+ "functionality": "currentYear",+ "desciption": "Adds the current year as tag",+ "color": "#4986e7",+ "textcolor": "#ffffff"+ },+ /* {+ "type": "smart",+ "title": "here",+ "functionality": "here",+ "desciption": "Adds the current location as tag",+ "color": "#ff7537",+ "textcolor": "#ffffff"+ },*/+ ]+ },+ {+ "expanded": true,+ "children": [+ {+ "type": "plain",+ "title": "high",+ "color": "#ff7537",+ "textcolor": "#ffffff"+ },+ {+ "type": "plain",+ "title": "medium",+ "color": "#ffad46",+ "textcolor": "#ffffff"+ },+ {+ "type": "plain",+ "title": "low",+ "color": "#7bd148",+ "textcolor": "#ffffff"+ }+ ],+ "title": "Priorities",+ "key": "PRI"+ }+ ]+};++});\ No newline at end of filediff --git a/package.json b/package.jsonindex 2dc383e8d..c6a207e43 100644--- a/package.json+++ b/package.json@@ -2,10 +2,10 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.6.1528",+ "version": "1.6.1598","fullName": "TagSpaces","id": "jid1-FBaMKxTifTSahQ",- "description": "TagSpaces is an open, extensible, webbased platform for personal data management. With TagSpaces you can manage and organize the files on your local drive.",+ "description": "An open and extensible platform for personal data management, with which you can manage and organize the files on your local drive.","icon": "data/icons/icon48.png","icon64": "data/icons/icon64.png","homepage": "http://tagspaces.org",diff --git a/update.rdf b/update.rdfindex b848beb16..65ac75c1f 100644--- a/update.rdf+++ b/update.rdf@@ -7,13 +7,13 @@<r:Seq><r:li><r:Description>- <version>1.6.1528</version>+ <version>1.6.1598</version><targetApplication><r:Description><id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id><minVersion>16.0</minVersion><maxVersion>*</maxVersion>- <updateLink>http://tagspaces.com/releases/1.6/tagspaces.1.6.1528.xpi</updateLink>+ <updateLink>http://tagspaces.com/releases/1.6/tagspaces.1.6.1598.xpi</updateLink><updateInfoURL>http://tagspaces.com/releases/1.6/updateInfo.xml</updateInfoURL></r:Description></targetApplication>