Skip to content

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

adding welcome dialog

Ilianf0dbc58095bb
diff --git a/data/assets/tagspaces.css b/data/assets/tagspaces.css
index f497d60f1..01ff68021 100644
--- a/data/assets/tagspaces.css
+++ b/data/assets/tagspaces.css
@@ -114,8 +114,6 @@ user-select: none;
display: inline-block;
width: 30px;
height: 30px;
- /* background: url("loading2.gif") no-repeat center;
- vertical-align: middle; */
}
#statusBar {
diff --git a/data/assets/welcome-logo.svg b/data/assets/welcome-logo.svg
new file mode 100644
index 000000000..9371aa70d
--- /dev/null
+++ b/data/assets/welcome-logo.svg
@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
+ xmlns:cc="http://creativecommons.org/ns#"
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+ xmlns:svg="http://www.w3.org/2000/svg"
+ xmlns="http://www.w3.org/2000/svg"
+ version="1.1"
+ width="300"
+ height="200"
+ id="svg3459">
+ <defs
+ id="defs3461">
+ <clipPath
+ id="clipPath3786-5">
+ <rect
+ width="1287.6915"
+ height="817.55725"
+ x="-1290.3347"
+ y="81.433693"
+ id="rect3788-3"
+ style="fill:#808080;stroke:none" />
+ </clipPath>
+ </defs>
+ <metadata
+ id="metadata3464">
+ <rdf:RDF>
+ <cc:Work
+ rdf:about="">
+ <dc:format>image/svg+xml</dc:format>
+ <dc:type
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+ <dc:title></dc:title>
+ </cc:Work>
+ </rdf:RDF>
+ </metadata>
+ <g
+ transform="translate(0,-852.36218)"
+ id="layer1">
+ <rect
+ width="920"
+ height="680"
+ x="65.714302"
+ y="346.64789"
+ id="rect3044-8-7-0-6"
+ style="fill:none;stroke:none" />
+ <text
+ x="46.751038"
+ y="929.42932"
+ id="text3822-1-6-5-4-7"
+ xml:space="preserve"
+ style="font-size:40px;font-style:normal;font-weight:normal;text-align:start;line-height:121.00000381%;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#cccccc;fill-opacity:1;stroke:none;font-family:Sans"><tspan
+ x="46.751038"
+ y="929.42932"
+ id="tspan3954-4-6-8"
+ style="font-size:28px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:121.00000381%;writing-mode:lr-tb;text-anchor:start;fill:#cccccc;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu Medium">ORGANIZE</tspan><tspan
+ x="46.751038"
+ y="963.30933"
+ id="tspan3758"
+ style="font-size:28px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:121.00000381%;writing-mode:lr-tb;text-anchor:start;fill:#cccccc;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu Medium">YOUR</tspan><tspan
+ x="46.751038"
+ y="997.18933"
+ id="tspan3766"
+ style="font-size:28px;font-style:normal;font-variant:normal;font-weight:500;font-stretch:normal;text-align:start;line-height:121.00000381%;writing-mode:lr-tb;text-anchor:start;fill:#cccccc;fill-opacity:1;font-family:Ubuntu;-inkscape-font-specification:Ubuntu Medium">FILES</tspan></text>
+ <path
+ 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"
+ transform="matrix(1.5935856,0,0,1.6535653,-327.10623,359.51517)"
+ id="path4875-4-7-5"
+ style="fill:#cccccc;fill-opacity:1;stroke:none" />
+ <path
+ d="m 213.58183,977.07459 -9.42604,-8.71773"
+ id="path3108-5"
+ style="fill:none;stroke:#cccccc;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="M 230.44946,956.85431 211.5974,939.90318"
+ id="path3108-9-1"
+ style="fill:#f7901e;fill-opacity:1;stroke:#cccccc;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="M 222.2637,967.26715 207.87659,954.43272"
+ id="path3108-0-7"
+ style="fill:#616577;fill-opacity:1;stroke:#cccccc;stroke-width:10.29371548;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ <path
+ d="m 215.30593,915.62796 31.07089,0 0,29.59872 -41.34434,42.44115 -30.69502,-28.37564 z"
+ id="path3923-1-1"
+ style="fill:none;stroke:#cccccc;stroke-width:11.96031666;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
+ </g>
+</svg>
diff --git a/data/assets/welcome-screen-1.png b/data/assets/welcome-screen-1.png
index 1c8582e31..888278862 100644
Binary files a/data/assets/welcome-screen-1.png and b/data/assets/welcome-screen-1.png differ
diff --git a/data/assets/welcome-screen-2.png b/data/assets/welcome-screen-2.png
new file mode 100644
index 000000000..7cf50873e
Binary files /dev/null and b/data/assets/welcome-screen-2.png differ
diff --git a/data/index.html b/data/index.html
index 1c600ef16..e3151d375 100644
--- a/data/index.html
+++ b/data/index.html
@@ -237,7 +237,10 @@ can be found in the LICENSE file.
</div>
<div id="tagsContainer" class="ui-droppable">
<button type="button" title="Add tags" style="height: 22px; width: 35px" class="btn btn-small extTagButton dropdown-toggle" data-toggle="dropdown">
- &nbsp;&nbsp;+<!--i class="fa fa-plus-square"></i-->&nbsp;&nbsp;
+ <!--span class="fa-stack"-->
+ <!--i class="fa fa-tag fa-inverse"></i-->
+ <i class="fa fa-plus-square"></i>
+ <!--/span-->
</button>
<ul class="dropdown-menu" id="tagSuggestionsMenu"></ul>
<span id="fileTags"></span>
@@ -254,17 +257,17 @@ can be found in the LICENSE file.
<div class="modal" id="dialogAboutTS" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
- <div class="modal-header">
+ <!--div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h4 class="modal-title" id="myModalLabel1">About TagSpaces</h4>
- </div>
+ </div-->
<div class="modal-body">
<iframe id="aboutIframe" style="width: 100%; height: 350px; border: 0px;" src="about.html"></iframe>
</div>
<div class="modal-footer">
<!--div class="btn-group"></div-->
- <button class="btn" id="aboutDialogBack"><i class="fa fa-arrow-circle-left"></i></button>
- <button class="btn btn-primary" data-dismiss="modal" aria-hidden="true">Ok</button>
+ <button class="btn" id="aboutDialogBack" title="Back"><i class="fa fa-arrow-circle-left"></i></button>
+ <button class="btn btn-primary" data-dismiss="modal" title="Close" aria-hidden="true"><i class="fa fa-times-circle"></i></button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
@@ -613,6 +616,7 @@ can be found in the LICENSE file.
<div id="contactUsContent" style="visibility: hidden">
<a class="btn btn-default btn-block" title="About TagSpaces" data-toggle="modal" data-target="#dialogAboutTS"><i class="fa fa-comment-o"></i> About TagSpaces</a>
+ <a class="btn btn-default btn-block" id="openHints" title="Show hints"><i class="fa fa-video-camera"></i> Hints</a>
<a class="btn btn-default btn-block" url="https://tagspaces.uservoice.com/forums/213931-general" id="openUservoice" title="Suggest or vote for a feature">&nbsp;<i class="fa fa-bullhorn"></i> Suggest New Features&nbsp;</a>
<a class="btn btn-default btn-block" url="https://github.com/uggrock/tagspaces/issues/" target="_system" id="openGitHubIssues" title="Report an issue"><i class="fa fa-flag"></i> Report Issue</a>
<a class="btn btn-default btn-block" url="https://twitter.com/intent/tweet?original_referer=http%3A%2F%2Ftagspaces.org%2F&text=Organize%20your%20files%20with%20@tagspaces" target="_system" id="openTwitter" title="Tweet about @tagspaces"><i class="fa fa-twitter"></i> Tweet About Us</a>
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index b67706158..d358b0243 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -137,10 +137,23 @@ define(function(require, exports, module) {
}
controller.reInitUI();
});
- };
+ };
+
+ var showWelcomeDialog = function() {
+ require([
+ "text!templates/WelcomeDialog.html",
+ ], function(uiTPL) {
+ if($("#dialogWelcome").length < 1) {
+ var uiTemplate = Handlebars.compile( uiTPL );
+ $('body').append(uiTemplate());
+ $('#welcomeCarosel').carousel();
+ }
+ $("#dialogWelcome").modal("show");
+ });
+ };
var initUI = function() {
- $("#appVersion").text(TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"]+"beta");
+ $("#appVersion").text(TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"]);
$("#appVersion").attr("title","BuildID: "+TSCORE.Config.DefaultSettings["appVersion"]+"."+TSCORE.Config.DefaultSettings["appBuild"]+"."+TSCORE.Config.DefaultSettings["appBuildID"]);
platformTuning();
@@ -403,6 +416,12 @@ define(function(require, exports, module) {
html: true
});
+
+
+ $("#sideBarButtunGroup").on('click',"#openHints", function () {
+ showWelcomeDialog();
+ });
+
// Handle external links _system is important in cordova
$("#sideBarButtunGroup").on('click',"#openUservoice", function () {
window.open($(this).attr("url"),"_system");
diff --git a/data/templates/WelcomeDialog.html b/data/templates/WelcomeDialog.html
new file mode 100644
index 000000000..536c58c29
--- /dev/null
+++ b/data/templates/WelcomeDialog.html
@@ -0,0 +1,41 @@
+<div id="dialogWelcome" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
+ <div class="modal-dialog">
+ <div class="modal-content">
+ <div class="modal-header">
+ <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
+ &times;
+ </button>
+ <h4>Welcome to TagSpaces</h4>
+ </div>
+ <div class="modal-body">
+ <div id="welcomeCarosel" class="carousel slide" data-ride="carousel" style="width: 100%; height: 100%">
+ <ol class="carousel-indicators">
+ <li data-target="#welcomeScreen" style="background-color: gray" data-slide-to="0" class="active"></li>
+ <li data-target="#welcomeScreen" style="background-color: gray" data-slide-to="1"></li>
+ </ol>
+ <div class="carousel-inner">
+ <div class="item active">
+ <img src="assets/welcome-screen-1.png" style="margin: 0 auto; max-width: 100%; max-height: 100%">
+ <div class="carousel-caption"></div>
+ </div>
+ <div class="item">
+ <img src="assets/welcome-screen-2.png" style="margin: 0 auto; max-width: 100%; max-height: 100%">
+ <div class="carousel-caption"></div>
+ </div>
+ </div>
+ <a class="left carousel-control" style="background-image: none;" href="#welcomeScreen" data-slide="prev">
+ <span class="glyphicon glyphicon-chevron-left"></span>
+ </a>
+ <a class="right carousel-control" style="background-image: none;" href="#welcomeScreen" data-slide="next">
+ <span class="glyphicon glyphicon-chevron-right"></span>
+ </a>
+ </div>
+ </div>
+ <!--div class="modal-footer">
+ <button class="btn" data-dismiss="modal" aria-hidden="true">
+ Close
+ </button>
+ </div-->
+ </div><!-- /.modal-content -->
+ </div><!-- /.modal-dialog -->
+</div><!-- /.modal -->
\ No newline at end of file
diff --git a/data/templates/WelcomeScreen.html b/data/templates/WelcomeScreen.html
index ceff2e5a5..0d9041261 100644
--- a/data/templates/WelcomeScreen.html
+++ b/data/templates/WelcomeScreen.html
@@ -1,30 +1,25 @@
-<div id="welcomeScreen" class="carousel slide" data-ride="carousel" style="width: 100%; height: 100%">
- <!-- Indicators -->
+<div id="welcomeScreen" style="width: 100%; height: 100%;">
+ <img src="assets/welcome-logo.svg" style="overflow: auto; margin: auto; position: absolute; top: 0; left: 0; bottom: 0; right: 0;">
+</div>
+<!--div id="welcomeScreen" class="carousel slide" data-ride="carousel" style="width: 100%; height: 100%">
<ol class="carousel-indicators">
<li data-target="#welcomeScreen" style="background-color: gray" data-slide-to="0" class="active"></li>
<li data-target="#welcomeScreen" style="background-color: gray" data-slide-to="1"></li>
- <!--li data-target="#welcomeScreen" style="background-color: gray" data-slide-to="2"></li-->
</ol>
- <!-- Wrapper for slides -->
<div class="carousel-inner">
<div class="item active">
<img src="assets/welcome-screen-1.png" style="margin: 0 auto; max-width: 100%; max-height: 100%">
<div class="carousel-caption"></div>
</div>
- <div class="item" style="text-align: center">
+ <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 file
+</div-->
\ No newline at end of file