TagSpaces is an offline, open source, document manager with tagging support
Adding welcome screen to the application
Ilian1ef199ebdfde
diff --git a/build.number b/build.numberindex d0ec1fe4e..e83b49e30 100644--- a/build.number+++ b/build.number@@ -1,4 +1,4 @@#Build Number for ANT. Do not edit!-#Tue Jan 14 13:04:08 CET 2014-build.number=1802+#Wed Jan 15 13:43:07 CET 2014+build.number=18193=diff --git a/data/assets/tagspaces.css b/data/assets/tagspaces.cssindex 390d85914..55b307408 100644--- a/data/assets/tagspaces.css+++ b/data/assets/tagspaces.css@@ -584,6 +584,12 @@ input a.resetFilter {text-shadow: none;}+.carousel-inner > .item > img {+ margin: 0 auto;+ max-height: 100%;+ max-width: 100%;+}+.icon-leaf:hover {color: green;}diff --git a/data/js/core.ui.js b/data/js/core.ui.jsindex 2df0f0b46..7f276841a 100644--- a/data/js/core.ui.js+++ b/data/js/core.ui.js@@ -548,8 +548,8 @@ define(function(require, exports, module) {exports.showFileDeleteDialog = showFileDeleteDialog;exports.showTagEditDialog = showTagEditDialog;exports.showLocationsPanel = showLocationsPanel;- exports.showDirectoryBrowserDialog = showDirectoryBrowserDialog;exports.showTagsPanel = showTagsPanel;+ exports.showDirectoryBrowserDialog = showDirectoryBrowserDialog;exports.hideAllDropDownMenus = hideAllDropDownMenus;});\ No newline at end of filediff --git a/data/js/perspective.manager.js b/data/js/perspective.manager.jsindex 18f06782a..e6cde62ac 100644--- a/data/js/perspective.manager.js+++ b/data/js/perspective.manager.js@@ -11,6 +11,7 @@ var perspectives = undefined;var TSCORE = require("tscore");var initPerspectives = function () {+perspectives = [];$("#viewSwitcher").empty();@@ -18,6 +19,8 @@ var initPerspectives = function () {$("#viewContainers").empty();$("#viewFooters").empty();+ initWelcomeScreen();+var defaultViewLoaded = false;var extensions = TSCORE.Config.getPerspectives();@@ -63,6 +66,20 @@ var initPerspectives = function () {}};+var initWelcomeScreen = function() {+ require([+ "text!templates/WelcomeScreen.html",+ ], function(uiTPL) {+ // Check if dialog already created+ if($("#dialogLocationEdit").length < 1) {+ var uiTemplate = Handlebars.compile( uiTPL );+ $("#viewContainers").append(uiTemplate());+++ }+ });+};+var initPerspectiveSwitcher = function() {var extensions = TSCORE.Config.getPerspectives();$("#viewSwitcher").empty();@@ -204,6 +221,7 @@ var refreshFileListContainer = function() {};var hideAllPerspectives = function() {+ $( "#welcomeScreen" ).hide();for (var i=0; i < perspectives.length; i++) {$( "#"+perspectives[i].ID+"Container" ).hide();$( "#"+perspectives[i].ID+"Toolbar" ).hide();diff --git a/data/loader.js b/data/loader.jsindex 7215ea432..c154d4b8d 100644--- a/data/loader.js+++ b/data/loader.js@@ -13,16 +13,15 @@ if (PRODUCTION == "true") {console.log = function(){};}-var isFirefox = document.URL.indexOf( 'resource://' ) >= 0;+var isFirefox = document.URL.indexOf( 'resource://' ) == 0;//var isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;-var isChrome = document.URL.indexOf( 'chrome-extension://' ) >= 0;+var isChrome = document.URL.indexOf( 'chrome-extension://' ) == 0;var isNode = undefined;-var isCordova = document.URL.indexOf( 'file:///android_asset' ) >= 0;-var isWeb = undefined;+var isCordova = document.URL.indexOf( 'file:///android_asset' ) == 0;+var isWeb = document.URL.indexOf( 'http' ) == 0;var isOSX = navigator.appVersion.indexOf("Mac")!=-1;var isWin = navigator.appVersion.indexOf("Win")!=-1;-// Check for running in node-webkittry {var fs = require('fs');diff --git a/data/templates/WelcomeScreen.html b/data/templates/WelcomeScreen.htmlnew file mode 100644index 000000000..d24dd08be--- /dev/null+++ b/data/templates/WelcomeScreen.html@@ -0,0 +1,30 @@+<div id="welcomeScreen" class="carousel slide" data-ride="carousel" style="width: 100%; height: 100%">+ <!-- Indicators -->+ <ol class="carousel-indicators">+ <li data-target="#welcomeScreen" data-slide-to="0" class="active"></li>+ <li data-target="#welcomeScreen" data-slide-to="1"></li>+ <li data-target="#welcomeScreen" data-slide-to="2"></li>+ </ol>+ <!-- Wrapper for slides -->+ <div class="carousel-inner">+ <div class="item active">+ <img src="" style="margin: 0 auto; max-width: 100%; max-height: 100%">+ <div class="carousel-caption"></div>+ </div>+ <div class="item">+ <img src="" style="max-width: 100%; max-height: 100%">+ <div class="carousel-caption"></div>+ </div>+ <div class="item">+ <img src="" style="max-width: 100%; max-height: 100%">+ <div class="carousel-caption"></div>+ </div>+ </div>+ <!-- Controls -->+ <a class="left carousel-control" href="#welcomeScreen" data-slide="prev">+ <span class="glyphicon glyphicon-chevron-left"></span>+ </a>+ <a class="right carousel-control" href="#welcomeScreen" data-slide="next">+ <span class="glyphicon glyphicon-chevron-right"></span>+ </a>+</div>\ No newline at end of filediff --git a/package.json b/package.jsonindex 0a6b98407..2a8482595 100644--- a/package.json+++ b/package.json@@ -2,7 +2,7 @@"name": "tagspaces","license": "AGPL 3.0","author": "Ugg Rock",- "version": "1.7.1727",+ "version": "1.7.1803","fullName": "TagSpaces","id": "jid1-FBaMKxTifTSahQ","description": "An offline file browser/manager for your local files, with support of tagging and editing.",diff --git a/update.rdf b/update.rdfindex 8fcf25211..368ac7aac 100644--- a/update.rdf+++ b/update.rdf@@ -7,13 +7,13 @@<r:Seq><r:li><r:Description>- <version>1.7.1727</version>+ <version>1.7.1803</version><targetApplication><r:Description><id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</id><minVersion>16.0</minVersion><maxVersion>*</maxVersion>- <updateLink>http://tagspaces.com/releases/1.7/tagspaces.1.7.1727.xpi</updateLink>+ <updateLink>http://tagspaces.com/releases/1.7/tagspaces.1.7.1803.xpi</updateLink><updateInfoURL>http://tagspaces.com/releases/1.7/updateInfo.xml</updateInfoURL></r:Description></targetApplication>