Skip to content

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

changs for the new UI

uggrockb56374015903
diff --git a/data/css/tagspaces.css b/data/css/tagspaces.css
index 75652693e..c07496edf 100644
--- a/data/css/tagspaces.css
+++ b/data/css/tagspaces.css
@@ -26,6 +26,12 @@ user-select: none;
/* { outline:none; } */
+@media screen and (-webkit-device-pixel-ratio: 2) {
+ #logo {
+ background: url("../icons/icon48.png") no-repeat left center;
+ }
+}
+
#logo {
padding: 0px;
font-size: 1.5em;
@@ -34,7 +40,7 @@ user-select: none;
font-weight: bold;
padding-left: 32px;
padding-top: 4px;
- background: url("logo28.png") no-repeat left center ;
+ background: url("../icons/icon28.png") no-repeat left center;
background-position: 0px 0px;
height: 31px;
display: inline-block;
@@ -148,7 +154,8 @@ user-select: none;
text-align: center;
width: 25px;
color: white ;
- z-index: 99;
+ z-index: 99;
+ text-transform:uppercase;
}
.fileTagsTile {
@@ -219,7 +226,7 @@ li hr {
}
.tagButton {
- padding: 2px 4px 2px 4px;
+ padding: 2px 4px 2px 4px !important;
background: #008000 !important;
color: white !important;
margin: 1px;
@@ -236,7 +243,6 @@ li hr {
color: white !important;
margin: 1px;
border: 0px;
- z-index: 9999;
border-radius: 5px !important;
text-decoration: none;
text-shadow: 0px 0px !important;
@@ -258,18 +264,7 @@ li hr {
/*.roundedTagCorners; */
}
-.fileTitleButton {
- margin: 0px;
- z-index: 9999;
- text-align: left;
- cursor: move;
-/* border-color: #eee;*/
- background-image: none;
-}
-.fileTitleButton:hover {
- border-color: #ddd;
-}
#container {
height: 100%;
@@ -374,14 +369,14 @@ li hr {
.dirButton {
font-size: 13px;
- background-color: #f5f5f5;
+ background-color: #E5E5E5;
color: #444444;
background-image: none;
/* border-color: transparent; */
}
.dirButton:hover, .dirButton:active, .dirButton:focus {
- background-color: #dddddd;
+ background-color: #ddd;
}
.dropOnFolder {
@@ -652,8 +647,26 @@ input a.resetFilter {
color: white;
}
+.fileTitleButton {
+/* margin: 0px;
+ z-index: 9999;
+ text-align: left;
+ cursor: move;
+ border-color: #eee;
+ background-image: none; */
+}
+
+.fileTitleButton:hover {
+/* border-color: #ddd; */
+}
+
.dropdown {
position: absolute;
display:none;
z-index: 88888;
}
+
+.white-caret {
+ border-top-color: white;
+ border-bottom-color: white;
+}
\ No newline at end of file
diff --git a/data/ext/perspectiveGraph/extension.js b/data/ext/perspectiveGraph/extension.js
index c03762231..536e69ef4 100644
--- a/data/ext/perspectiveGraph/extension.js
+++ b/data/ext/perspectiveGraph/extension.js
@@ -7,7 +7,7 @@ define(function(require, exports, module) {
console.log("Loading perspectiveGraph");
- var extensionTitle = "DirectoryViz"
+ var extensionTitle = "DirectoryViz";
var extensionID = "perspectiveGraph"; // ID should be equal to the directory name where the ext. is located
var extensionType = "perspective";
var extensionIcon = "fa fa-sitemap";
@@ -23,7 +23,7 @@ define(function(require, exports, module) {
var extensionDirectory = TSCORE.Config.getExtensionPath()+"/"+extensionID;
- var graphMode = "mindmap"
+ var graphMode = "mindmap";
var treeData = undefined;
@@ -35,12 +35,12 @@ define(function(require, exports, module) {
viewFooter = $("#"+extensionID+"Footer").empty();
initUI();
- }
+ };
exports.load = function load() {
console.log("Loading View "+extensionID);
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
- }
+ };
var reDraw = function() {
switch (graphMode) {
@@ -53,7 +53,7 @@ define(function(require, exports, module) {
var svg = d3.select("#"+extensionID+"Container")
.append("svg")
.attr("width", viewContainer.width())
- .attr("height", viewContainer.height())
+ .attr("height", viewContainer.height());
viz.drawTreeMap(svg, treeData);
TSCORE.hideLoadingAnimation();
});
@@ -67,7 +67,7 @@ define(function(require, exports, module) {
var svg = d3.select("#"+extensionID+"Container")
.append("svg")
.attr("width", viewContainer.width())
- .attr("height", viewContainer.height())
+ .attr("height", viewContainer.height());
viz.drawZoomableTreeMap(svg, treeData);
TSCORE.hideLoadingAnimation();
});
@@ -81,7 +81,7 @@ define(function(require, exports, module) {
var svg = d3.select("#"+extensionID+"Container")
.append("svg")
.attr("width", viewContainer.width())
- .attr("height", viewContainer.height())
+ .attr("height", viewContainer.height());
viz.drawTree(svg, treeData);
TSCORE.hideLoadingAnimation();
});
@@ -96,7 +96,7 @@ define(function(require, exports, module) {
.append("svg")
.attr("id", "tagspacesMindmap")
.attr("width", viewContainer.width())
- .attr("height", viewContainer.height())
+ .attr("height", viewContainer.height());
viz.drawMindMap(svg, treeData);
TSCORE.hideLoadingAnimation();
});
@@ -110,7 +110,7 @@ define(function(require, exports, module) {
var svg = d3.select("#"+extensionID+"Container")
.append("svg")
.attr("width", viewContainer.width())
- .attr("height", viewContainer.height())
+ .attr("height", viewContainer.height());
viz.drawPartition(svg, treeData);
TSCORE.hideLoadingAnimation();
});
@@ -118,7 +118,7 @@ define(function(require, exports, module) {
default:
break;
}
- }
+ };
exports.updateTreeData = function updateIndexData(fsTreeData) {
console.log("Updating tree data, Rendering graph...");
@@ -128,38 +128,38 @@ define(function(require, exports, module) {
reDraw();
TSCORE.hideLoadingAnimation();
- }
+ };
exports.setFileFilter = function setFileFilter(filter) {
- }
+ };
exports.clearSelectedFiles = function() {
- }
+ };
var initUI = function() {
viewToolbar.append($("<div >", {
class: "btn-group",
- "data-toggle": "buttons-radio",
+ "data-toggle": "buttons",
})
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default active",
title: "Activate Mindmap Visualization",
text: " Mindmap"
- })
- .button('toggle')
+ })
.click(function() {
graphMode = "mindmap";
TSCORE.showLoadingAnimation();
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
})
- .prepend( "<i class='icon-sitemap' />")
+ .append( "<input type='radio' name='options'>")
+ .prepend( "<i class='fa fa-sitemap' />")
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Activate Treemap Mode",
text: " TreeMap"
})
@@ -168,11 +168,12 @@ define(function(require, exports, module) {
TSCORE.showLoadingAnimation();
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
})
- .prepend( "<i class='icon-th-large' />")
+ .append( "<input type='radio' name='options'>")
+ .prepend( "<i class='fa fa-th-large' />")
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Activate Tree Map Navi",
text: " TreeMap Navi"
})
@@ -181,11 +182,12 @@ define(function(require, exports, module) {
TSCORE.showLoadingAnimation();
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
})
- .prepend( "<i class='icon-th-large' />")
+ .append( "<input type='radio' name='options'>")
+ .prepend( "<i class='fa fa-th-large' />")
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Activate Tree Mode",
text: " Tree"
})
@@ -194,11 +196,12 @@ define(function(require, exports, module) {
TSCORE.showLoadingAnimation();
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
})
- .prepend( "<i class='icon-sitemap' />")
+ .append( "<input type='radio' name='options'>")
+ .prepend( "<i class='fa fa-sitemap' />")
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Activate Bilevel Partition",
text: " Bilevel Partition"
})
@@ -207,12 +210,13 @@ define(function(require, exports, module) {
TSCORE.showLoadingAnimation();
TSCORE.IO.createDirectoryTree(TSCORE.currentPath);
})
- .prepend( "<i class='icon-adjust' />")
+ .append( "<input type='radio' name='options'>")
+ .prepend( "<i class='fa fa-adjust' />")
)
- ) // end button group
+ ); // end button group
- }
+ };
// Vars
exports.Title = extensionTitle;
diff --git a/data/ext/perspectiveGrid/perspectiveUI.js b/data/ext/perspectiveGrid/perspectiveUI.js
index 0a08260ac..bbe57cf31 100644
--- a/data/ext/perspectiveGrid/perspectiveUI.js
+++ b/data/ext/perspectiveGrid/perspectiveUI.js
@@ -97,7 +97,7 @@ console.log("Loading UI for perspectiveDefault");
TSCORE.openTagMenu(this, $(this).attr("tag"), $(this).attr("filepath"));
} )
.append("<span class='caret'/>")
- .dropdown( 'attach' , '#tagMenu' )
+ //.dropdown( 'attach' , '#tagMenu' )
/* .draggable({
"cancel": false,
"appendTo": "body",
@@ -154,28 +154,22 @@ console.log("Loading UI for perspectiveDefault");
ExtUI.prototype.initFileGroupingMenu = function () {
var self = this;
- $("#helpers").append($('<ul>', {
- id: self.extensionID+"GroupingMenu",
- class: "dropdown-menu has-tip anchor-right"
- }
- ));
-
var suggMenu = $("#"+self.extensionID+"GroupingMenu");
suggMenu.append($('<li>').append($('<a>', {
title: "Ungroup all elementes",
text: " Ungroup",
})
- .prepend("<i class='icon-remove-circle'></i>")
+ .prepend("<i class='fa fa-times-circle'></i>")
.click(function() {
$("#"+self.extensionID+"GroupingButton")
.text(" Group ")
- .prepend( "<i class='icon-group' />" )
+ .prepend( "<i class='fa fa-group' />" )
.append( "<span class='caret'></span>" );
self.switchGrouping("");
})
));
- suggMenu.append($('<li>', {class: "divider"}));
+ suggMenu.append('<li class="divider"></li>');
// Adding context menu entries according to the taggroups
for (var i=0; i < self.supportedGroupings.length; i++) {
@@ -185,11 +179,11 @@ console.log("Loading UI for perspectiveDefault");
key: self.supportedGroupings[i].key,
group: self.supportedGroupings[i].title,
})
- .prepend( "<i class='icon-group' />" )
+ .prepend( "<i class='fa fa-group' />" )
.click(function() {
$("#"+self.extensionID+"GroupingButton")
.text(" Grouped by "+$(this).attr("group")+" ")
- .prepend( "<i class='icon-group' />" )
+ .prepend( "<i class='fa fa-group' />" )
.append( "<span class='caret'></span>" );
self.switchGrouping($(this).attr("key"));
})
@@ -210,27 +204,27 @@ console.log("Loading UI for perspectiveDefault");
})
.append($("<button>", {
- class: "btn ",
+ class: "btn btn-default",
title: "Toggle Select All Files",
id: this.extensionID+"ToogleSelectAll",
})
.click(function(e) {
var checkIcon = $(this).find("i");
- if(checkIcon.hasClass("icon-check-empty")) {
+ if(checkIcon.hasClass("fa-square-o")) {
TSCORE.selectedFiles = [];
$(self.viewContainer).find('.fileTileSelector').each(function(){
$(this).parent().parent().addClass("ui-selected");
- $(this).find("i").addClass("icon-check").removeClass("icon-check-empty");
+ $(this).find("i").addClass("fa-check-square-o").removeClass("fa-square-o");
TSCORE.selectedFiles.push($(this).attr("filepath"));
});
} else {
TSCORE.PerspectiveManager.clearSelectedFiles();
}
self.handleElementActivation();
- checkIcon.toggleClass("icon-check");
- checkIcon.toggleClass("icon-check-empty");
+ checkIcon.toggleClass("fa-check-square-o");
+ checkIcon.toggleClass("fa fa-square-o");
})
- .append( "<i class='icon-check-empty'>" )
+ .append( "<i class='fa fa-square-o'>" )
)
);
@@ -240,18 +234,18 @@ console.log("Loading UI for perspectiveDefault");
})
.append($("<button>", {
- class: "btn ",
+ class: "btn btn-default",
title: "Create new file",
id: this.extensionID+"CreateFileButton",
})
.click(function() {
TSCORE.showFileCreateDialog();
})
- .append( "<i class='icon-plus'>" )
+ .append( "<i class='fa fa-plus'>" )
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Show subfolders content. \nOn subfolder with many files, this step can take some time!",
id: this.extensionID+"IncludeSubDirsButton",
})
@@ -261,11 +255,11 @@ console.log("Loading UI for perspectiveDefault");
//TSCORE.startTime = new Date().getTime();
TSCORE.IO.createDirectoryIndex(TSCORE.currentPath);
})
- .append( $("<i>", { class: "icon-retweet", }) )
+ .append( $("<i>", { class: "glyphicon glyphicon-retweet" }) )
)
.append($("<button>", {
- class: "btn",
+ class: "btn btn-default",
title: "Tag Selected Files",
id: this.extensionID+"TagButton",
})
@@ -273,11 +267,11 @@ console.log("Loading UI for perspectiveDefault");
.click(function() {
TSCORE.showAddTagsDialog();
})
- .append( $("<i>", { class: "icon-tag", }) )
+ .append( $("<i>", { class: "fa fa-tag", }) )
)
.append($("<button>", {
- class: "btn ",
+ class: "btn btn-default",
"data-toggle": "button",
title: "Toggle file thumbnails",
id: this.extensionID+"ShowTmbButton",
@@ -285,51 +279,58 @@ console.log("Loading UI for perspectiveDefault");
.click(function() {
self.toggleThumbnails();
})
- .append( $("<i>", { class: "icon-picture", }) )
+ .append( $("<i>", { class: "fa fa-picture-o", }) )
)
.append($("<button>", {
- class: "btn ",
+ class: "btn btn-default",
title: "Increase Thumbnails Size",
id: this.extensionID+"IncreaseThumbsButton",
})
.click(function() {
self.switchThumbnailSize();
})
- .append( $("<i>", { class: "icon-zoom-in", }) )
+ .append( $("<i>", { class: "fa fa-search-plus", }) )
.prop('disabled', true)
)
); // end toolbar
- this.initFileGroupingMenu();
this.viewToolbar.append($("<div>", {
"class" : "btn-group",
})
.append($("<button>", {
- class: "btn ",
+ class: "btn btn-default",
type: "button",
title: "Group",
text: " Group ",
id: this.extensionID+"GroupingButton",
- "data-dropdown": "#"+this.extensionID+"GroupingMenu"
+ "data-toggle": "dropdown"
})
- .prepend( "<i class='icon-group' />" )
+ .prepend( "<i class='fa fa-group' />" )
.append( "<span class='caret'></span>" )
- )
+ )
+
+ .append($('<ul>', {
+ id: self.extensionID+"GroupingMenu",
+ class: "dropdown-menu "
+ }
+ ))
); // end toolbar
+ this.initFileGroupingMenu();
+
this.viewToolbar.append($("<div >", {
- class: "input-append",
- style: "position:absolute; top:1px; right:1px;"
+ class: "input-group pull-right",
+ style: "width: 180px; padding-right: 4px;"
})
// Filter
.append($("<input>", {
type: "text",
- class: "input-medium",
+ class: "form-control",
id: this.extensionID+"FilterBox",
placeholder: "Search",
title: "Search hints:\n"+
@@ -339,10 +340,10 @@ console.log("Loading UI for perspectiveDefault");
"+tagname: file should be tagged with this tag \n"+
"-tagname: file should not be tagged with this tag",
})
- .focus(function(e) {
+ /*.focus(function(e) {
$(this).removeClass("input-medium");
$(this).addClass("input-large");
- })
+ })*/
.keyup(function(e) {
// On enter fire the search
if (e.keyCode == 13) {
@@ -359,8 +360,8 @@ console.log("Loading UI for perspectiveDefault");
}
})
.blur(function() {
- $(this).addClass("input-medium");
- $(this).removeClass("input-large");
+ //$(this).addClass("input-medium");
+ //$(this).removeClass("input-large");
if (this.value.length == 0) {
$( "#"+self.extensionID+"ClearFilterButton").removeClass("filterOn");
//TSCORE.startTime = new Date().getTime();
@@ -368,38 +369,56 @@ console.log("Loading UI for perspectiveDefault");
}
})
)
-
- .append($("<button>", {
- class: "btn",
- title: "Search",
- })
- .append( $("<i>", { class: "icon-filter", }) )
- .click(function(evt) {
- evt.preventDefault();
- $( "#"+self.extensionID+"ClearFilterButton").addClass("filterOn");
- //TSCORE.startTime = new Date().getTime();
- self.reInit();
- })
- )
- .append($("<button>", {
- class: "btn",
- title: "Clear Filter",
- id: self.extensionID+"ClearFilterButton"
- })
- .append( $("<i>", { class: "icon-remove", }) )
- .click(function(evt) {
- evt.preventDefault();
- $( "#"+self.extensionID+"ClearFilterButton").removeClass("filterOn");
- $("#"+self.extensionID+"FilterBox").val("");
- $("#"+self.extensionID+"FilterBox").val("").addClass("input-medium");
- $("#"+self.extensionID+"FilterBox").val("").removeClass("input-large");
- self.setFilter("");
- //TSCORE.startTime = new Date().getTime();
- self.reInit();
- })
- )
- ); // End Filter
+ .append($("<span>", {
+ class: "input-group-btn",
+ })
+ .append($("<button>", {
+ class: "btn btn-default",
+ title: "Search",
+ })
+ .append( $("<i>", { class: "fa fa-search", }) )
+ .click(function(evt) {
+ evt.preventDefault();
+ $( "#"+self.extensionID+"ClearFilterButton").addClass("filterOn");
+ //TSCORE.startTime = new Date().getTime();
+ self.reInit();
+ })
+ )
+
+ .append($("<button>", {
+ class: "btn btn-default",
+ title: "Clear Filter",
+ id: self.extensionID+"ClearFilterButton"
+ })
+ .append( $("<i>", { class: "fa fa-times", }) )
+ .click(function(evt) {
+ evt.preventDefault();
+ $( "#"+self.extensionID+"ClearFilterButton").removeClass("filterOn");
+ $("#"+self.extensionID+"FilterBox").val("");
+ //$("#"+self.extensionID+"FilterBox").val("").addClass("input-medium");
+ //$("#"+self.extensionID+"FilterBox").val("").removeClass("input-large");
+ self.setFilter("");
+ //TSCORE.startTime = new Date().getTime();
+ self.reInit();
+ })
+ )
+ )
+ ); // End Filter
+
+ // Init Tag Context Menus
+ this.viewContainer.on("contextmenu click", ".tagButton", function (e) {
+ TSCORE.hideAllDropDownMenus();
+
+ TSCORE.openTagMenu(this, $(this).attr("tag"), $(this).attr("filepath"));
+
+ $("#tagMenu").css({
+ display: "block",
+ left: e.pageX,
+ top: e.pageY
+ });
+ return false;
+ });
};
ExtUI.prototype.setFilter = function(filterValue) {
diff --git a/data/ext/perspectiveList/perspectiveUI.js b/data/ext/perspectiveList/perspectiveUI.js
index 88827751d..a9375c060 100644
--- a/data/ext/perspectiveList/perspectiveUI.js
+++ b/data/ext/perspectiveList/perspectiveUI.js
@@ -52,30 +52,36 @@ console.log("Loading UI for perspectiveDefault");
style: "width: 0px; height: 0px; border: 0px"
})).html();
thumbHTML = "<br>" + thumbHTML;
- }
+ }
- var checkboxHTML = $('<legend>', {
- class: "checkbox",
- }).append($('<input>', {
+ var checkboxHTML = $('<input>', {
type: "checkbox",
class: "fileSelection",
- })).html();
+ });
- var titleHTML = $('<p>').append($('<span>', {
+ var titleHTML = $('<span>', {
text: fileName,
class: "fileTitle"
- })).html();
+ });
- var buttonHTML = $('<span>').append($('<button>', {
- title: "Options for "+fileName,
- filepath: filePath,
- class: 'btn btn-default fileTitleButton',
+ var buttonHTML = $('<button>', {
+ title: "Options for "+fileName,
+ filepath: filePath,
+ class: 'btn btn-link fileTitleButton',
+ }).append($('<span>', {
+ id: "fileExt"
})
- .append(fileExt)
- .append(" <span class='caret'/>")
- ).html();
+ .append($("<span>", { text: fileExt }))
+ .append("&nbsp;<span class='caret white-caret'></span>")
+ );
+
+ var fileHTML = $('<p>', {})
+ .append(checkboxHTML)
+ .append(buttonHTML)
+ .append(titleHTML)
+ .append(thumbHTML);
- return checkboxHTML+" "+buttonHTML +" " + titleHTML + thumbHTML;
+ return fileHTML.html();
}
ExtUI.prototype.buildUI = function() {
@@ -83,18 +89,14 @@ console.log("Loading UI for perspectiveDefault");
var self = this;
- // Init Context Menus
+ // Init File Context Menus
this.viewContainer.on("contextmenu click", ".fileTitleButton", function (e) {
TSCORE.hideAllDropDownMenus();
e.preventDefault();
- self.selectFile(this, $(this).attr("filepath"));
-
- $("#fileMenu").css({
- display: "block",
- left: e.pageX,
- top: e.pageY
- });
+ self.selectFile(this, $(this).attr("filepath"));
+
+ TSCORE.showContextMenu("#fileMenu", $(this));
return false;
});
@@ -106,11 +108,8 @@ console.log("Loading UI for perspectiveDefault");
self.selectFile(this, $(this).attr("filepath"));
TSCORE.openTagMenu(this, $(this).attr("tag"), $(this).attr("filepath"));
- $("#tagMenu").css({
- display: "block",
- left: e.pageX,
- top: e.pageY
- });
+ TSCORE.showContextMenu("#tagMenu", $(this));
+
return false;
});
@@ -408,14 +407,14 @@ console.log("Loading UI for perspectiveDefault");
$(ui.helper).remove();
}
})
- .click( function() {
+ .dblclick( function() {
console.log("Opening file...");
var rowData = self.fileTable.fnGetData( this );
TSCORE.FileOpener.openFile(rowData[TSCORE.fileListFILEPATH]);
var titleBut = $(this).find(".fileTitleButton");
self.selectFile(titleBut, $(titleBut).attr("filepath"));
- } );
+ } );
this.fileTable.$('.fileTitleButton')
.draggable({
@@ -424,7 +423,11 @@ console.log("Loading UI for perspectiveDefault");
"helper": "clone",
"revert": true,
"start": function() { self.selectFile(this, $(this).attr("filepath")); }
- });
+ })
+ .dblclick( function() {
+ console.log("Opening file...");
+ TSCORE.FileOpener.openFile($(this).attr("filepath"));
+ });
this.fileTable.$('.fileSelection')
.click( function() {
diff --git a/data/icons/icon28.png b/data/icons/icon28.png
new file mode 100644
index 000000000..e7a58dfa2
Binary files /dev/null and b/data/icons/icon28.png differ
diff --git a/data/icons/icon32.png b/data/icons/icon32.png
index 6771fd727..8039514b6 100644
Binary files a/data/icons/icon32.png and b/data/icons/icon32.png differ
diff --git a/data/index.html b/data/index.html
index 6e07c4cf0..9e86c2f51 100644
--- a/data/index.html
+++ b/data/index.html
@@ -26,15 +26,18 @@ can be found in the LICENSE file.
font-size: 1.4em;
position:absolute;
z-index: 999999;
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA2CAYAAACSjFpuAAAABHNCSVQICAgIfAhkiAAADMFJREFUaIGNWtmO4zgSDEqqslu33NV/NoNeTAP7sOgZ9GAxX162DlKiyy4d+yAmK0nLrvUbQZpHnp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4muaSBtdehz2cnOt/Lm36e3JvOlu/DwVZ9xyXBUXprevKadXJ9bHqoKtsv5D41eoiEX56fR/Uj359bVrLxXc71csHb5eJ8YwCsAep/CyuR75P/ACEAAAAASUVORK5CYII=');
+*/
}
</style>
<script type="text/javascript" data-main="loader" src="libs/requirejs/require.js"></script>
-<link rel="stylesheet" type="text/css" href="libs/bootstrap/css/bootstrap3.css">
-<link rel="stylesheet" type="text/css" href="devlibs/select2/select2.css">
-<link rel="stylesheet" type="text/css" href="devlibs/select2/select2-bootstrap.css">
-<link rel="stylesheet" type="text/css" href="devlibs/font-awesome-4.0.3/css/font-awesome.css">
-<link rel="stylesheet" type="text/css" href="devlibs/bootstrap3xeditable/css/bootstrap-editable.css">
+<link rel="stylesheet" type="text/css" href="libs/bootstrap/css/bootstrap.css">
+<link rel="stylesheet" type="text/css" href="libs/select2/select2.css">
+<link rel="stylesheet" type="text/css" href="libs/select2/select2-bootstrap.css">
+<link rel="stylesheet" type="text/css" href="libs/jquery-simplecolorpicker/jquery.simplecolorpicker.css">
+<link rel="stylesheet" type="text/css" href="libs/font-awesome/css/font-awesome.css">
+<!--link rel="stylesheet" type="text/css" href="devlibs/bootstrap3xeditable/css/bootstrap-editable.css"-->
<link rel="stylesheet" type="text/css" href="css/tagspaces.css">
</head>
@@ -54,9 +57,11 @@ can be found in the LICENSE file.
</div>
<div class="btn-toolbar" style="width: 100%">
<div class="btn-group" style="width: 99%">
- <button type="button" class="btn btn-default" style="width: 15%" id="createNewLocation"><i class="fa fa-plus"></i></button>
+ <button type="button" class="btn btn-default" style="width: 16%; text-align: center; min-width: 40px;" id="createNewLocation">
+ <i class="glyphicon glyphicon-plus-sign"></i>
+ </button>
<button type="button" class="btn btn-default" style="width: 70%" id="locationName" data-toggle="dropdown">Choose Location</button>
- <button type="button" class="btn btn-default dropdown-toggle" id="selectLocation" style="width: 15%" data-toggle="dropdown">
+ <button type="button" class="btn btn-default dropdown-toggle" id="selectLocation" style="width: 14%" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" id="connectionsList">
@@ -67,7 +72,7 @@ can be found in the LICENSE file.
</div>
</nav>
<div class="ts-container">
- <div id="locationContent"><button class="btn btn-link pull-right" id="switchLang" data-i18n="[title]app.switchLanguageTooltip;">&nbsp;<i class="fa fa-asterisk"></i>&nbsp;</button></div>
+ <div id="locationContent"></div>
<div id="tagGroupsContent"></div>
</div>
</div>
@@ -83,7 +88,7 @@ can be found in the LICENSE file.
<div class="btn-group">
<button class="btn btn-default" data-i18n="[title]app.?;" id="startNewInstanceBack">
&nbsp;<i class="fa fa-external-link-square"></i>&nbsp;</button>
- <button class="btn btn-default" data-i18n="[title]app.?;" data-toggle="modal" data-target="#dialogOptions">
+ <button class="btn btn-default" data-i18n="[title]app.?;" id="openOptions">
&nbsp;<i class="fa fa-wrench"></i>&nbsp;</button>
<button class="btn btn-default" data-i18n="[title]app.?;" data-toggle="modal" data-target="#dialogAboutTS">
&nbsp;<i class="fa fa-comment"></i>&nbsp;</button>
@@ -120,27 +125,32 @@ can be found in the LICENSE file.
<nav class="navbar navbar-default" role="navigation">
<div class="btn-toolbar" style="width: 100%">
<div class="btn-group">
- <button type="button" style="padding-left: 0px;" class="btn btn-link dropdown-toggle" data-toggle="dropdown">
- <span id="fileExt"></span>&nbsp;<span class="caret"></span>
+ <button type="button" style="padding-left: 0px;" title="File Actions" class="btn btn-link dropdown-toggle" data-toggle="dropdown">
+ <span id="fileExt"><span id="fileExtText"></span>&nbsp;<span class="caret white-caret"></span></span>
</button>
<ul class="dropdown-menu">
- <li><a href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span>&nbsp;</a></li>
- <li><a href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span>&nbsp;</a></li>
- <li><a href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span>&nbsp;</a></li>
- <li><a href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span>&nbsp;</a></li>
- <li><a href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span>&nbsp;</a></li>
+ <li><a id="editDocument" href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Edit</span></a></li>
+ <li><a id="openFileInNewWindow" href="#"><i class="fa fa-external-link-square"></i>&nbsp;<span data-i18n="app.?;">Open in New Window</span></a></li>
+ <!--li><a id="printFile" href="#"><i class="fa fa-edit"></i>&nbsp;<span data-i18n="app.?;">Print</span></a></li-->
+ <li><a id="fullscreenFile" href="#"><i class="glyphicon glyphicon-fullscreen"></i>&nbsp;<span data-i18n="app.?;">Fullscreen</span></a></li>
+ <li><a id="reloadFile" href="#"><i class="fa fa-refresh"></i>&nbsp;<span data-i18n="app.?;">Reload</span></a></li>
+ <li><a id="renameFile" title=""><i class="fa fa-pencil"></i> Raname File</a></li>
+ <li><a id="deleteFile" title=""><i class="fa fa-trash-o"></i> Delete File</a></li>
+ <li><a id="openDirectory" title=""><i class="fa fa-folder-open"></i> Show Containing Folder</a></li>
</ul>
</div>
<input id="fileTitle" type="text" value="">
<div style="position: fixed; right: 0px; top: 0px" class="btn-group">
- <button class="btn btn-link" id="prevFileButton" id="">&nbsp;<i class="fa fa-chevron-left"></i>&nbsp;</button>
- <button class="btn btn-link" id="nextFileButton" id="">&nbsp;<i class="fa fa-chevron-right"></i>&nbsp;</button>
- <button class="btn btn-link" id="toggleFullWidthButton">&nbsp;<i class="fa fa-arrows-alt"></i>&nbsp;</button>
- <button class="btn btn-link" id="closeOpenedFile">&nbsp;<i class="fa fa-times"></i>&nbsp;</button>
+ <button class="btn btn-link" id="toggleFullWidthButton">&nbsp;<i class="fa fa-desktop"></i>&nbsp;</button>
+ <button class="btn btn-link" id="prevFileButton" id="">&nbsp;<i class="glyphicon glyphicon-chevron-left"></i>&nbsp;</button>
+ <button class="btn btn-link" id="nextFileButton" id="">&nbsp;<i class="glyphicon glyphicon-chevron-right"></i>&nbsp;</button>
+ <button class="btn btn-link" id="closeOpenedFile">&nbsp;<i class="glyphicon glyphicon-remove"></i>&nbsp;</button>
</div>
</div>
<div id="tagsContainer" class="btn-group ui-droppable">
- <button type="button" title="Add tags" class="btn btn-small extTagButton dropdown-toggle" data-toggle="dropdown">&nbsp;&nbsp;+&nbsp;&nbsp;</button>
+ <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;
+ </button>
<ul class="dropdown-menu" id="tagSuggestionsMenu"></ul>
<span id="fileTags"></span>
</div>
@@ -176,15 +186,43 @@ can be found in the LICENSE file.
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
-<div class="modal fade" id="dialogOptions" tabindex="-1" role="dialog" aria-hidden="true">
+<div id="dialogOptions" class="modal fade" 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">×</button>
<h4>Options</h4>
</div>
- <div class="modal-body"><form class="form-horizontal"></form></div>
+ <div class="modal-body form" style="max-height: 420px; overflow-y: auto;">
+ <h5 style="text-transform: uppercase; font-weight: bold; color: gray;">General</h5>
+ <!--div class='form-group'>
+ <label for='extensionsPathInput' data-i18n="app.extensionsFolder">Extensions folder</label>
+ <input type='text' class='form-control' id='extensionsPathInput'
+ data-i18n="[placeholder]app" placeholder='file:///c:\\tagspaces-extensions'
+ data-i18n="[title]app" title='Path to your tagspaces extensions'>
+ </div-->
+ <button class="btn btn-default" style="margin-bottom: 10px" id="switchLang" data-i18n="[title]app.switchLanguageTooltip;">
+ <i class="fa fa-asterisk"> Test Change Language</i>
+ </button>
+ <div class='form-group'>
+ <label><input type='checkbox' id='showHiddenFilesCheckbox' /> Show files/directories with a dot(.) in front of the name</label>
+ </div>
+ <div class='form-group'>
+ <label><input type='checkbox' id='checkforUpdatesCheckbox' /> Check for new version on startup</label>
+ </div><hr />
+ <h5 style="text-transform: uppercase; font-weight: bold; color: gray;">Perspectives</h5>
+ <div id='perspectiveList' class='sortable' ></div>
+ <button class='btn btn-default' style="margin-top: 10px" id='addPerspectiveButton'>
+ <i class='fa fa-plus' data-i18n="app.addNewPerspective"> Add new perspective</i>
+ </button><hr />
+ <h5 style="text-transform: uppercase; font-weight: bold; color: gray;">File Types</h5>
+ <div id='fileTypesList'></div>
+ <button class='btn btn-default' style="margin-top: 10px" id='addFileTypeButton'>
+ <i class='fa fa-plus' data-i18n="app.addNewFileExtension"> Add new file extension</i>
+ </button>
+ </div>
<div class="modal-footer">
+ <h6>Some of the changes will not take effect until restarting the application.</h6>
<button class="btn" data-dismiss="modal" id="aboutDialogSettings">Advanced Settings</button>
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button class="btn btn-primary" id="saveSettingsCloseButton">Save</button>
@@ -193,7 +231,7 @@ can be found in the LICENSE file.
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
-<div class="modal fade" id="dialogAdvancedSetting" tabindex="-1" role="dialog" aria-hidden="true">
+<div id="dialogAdvancedSetting" style="max-height: 420px; overflow-y: auto;" class="modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
@@ -220,24 +258,24 @@ can be found in the LICENSE file.
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
- <h4>Connect Folder</h4>
+ <h4>Create New Connection</h4>
</div>
- <div class="modal-body">
- <form class="form-horizontal" onsubmit="return false;">
+ <div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="folderLocation">Folder Location</label>
- <div class="controls">
- <input type="text" name="folderLocation" id="folderLocation" placeholder="Example: c:\users\ugg\documents" />
- <button id="selectLocalDirectory" class="btn" title="Select local folder"><i class="fa fa-folder-open"></i></button>
+ <label class="col-xs-3 control-label" for="folderLocation">Folder Location</label>
+ <div class="col-xs-7">
+ <input class="form-control" type="text" name="folderLocation" id="folderLocation" placeholder="Example: c:\users\johnsmith\documents" />
</div>
+ <div class="col-xs-2">
+ <button class="btn btn-default btn-block" id="selectLocalDirectory" title="Select local folder"><i class="fa fa-folder-open"></i></button>
+ </div>
</div>
<div class="form-group">
- <label class="control-label" for="connectionName">Connection Name</label>
- <div class="controls">
- <input type="text" name="connectionName" id="connectionName" placeholder="Example: My Documents" />
+ <label class="col-sm-3 control-label" for="connectionName">Connection Name</label>
+ <div class="col-sm-9">
+ <input class="form-control" type="text" name="connectionName" id="connectionName" placeholder="Example: My Documents" />
</div>
</div>
- </form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
@@ -256,41 +294,40 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="fileTypeChooser">Type</label>
- <div class="controls">
- <div class="btn-group" data-toggle="buttons-radio" name="fileTypeChooser">
- <button id="txtFileTypeButton" title="Create a TXT File" class="btn">Plain Text</button>
- <button id="htmlFileTypeButton" title="Create a HTML File" class="btn">Rich Text</button>
- <button id="mdFileTypeButton" title="Create a MarkDown File" class="btn">MarkDown</button>
+ <label class="col-xs-3 control-label" for="fileTypeChooser">Type</label>
+ <div class="col-xs-9 controls">
+ <div class="btn-group" data-toggle="buttons" name="fileTypeChooser">
+ <label class="btn btn-default" title="Create a TXT File">
+ <input type="radio" name="options" id="txtFileTypeButton"> Plain Text
+ </label>
+ <label class="btn btn-default" title="Create a HTML File">
+ <input type="radio" name="options" id="htmlFileTypeButton"> Rich Text
+ </label>
+ <label class="btn btn-default" title="Create a MarkDown File">
+ <input type="radio" name="options" id="mdFileTypeButton"> MarkDown
+ </label>
</div>
</div>
</div>
<div class="form-group">
- <label class="control-label" for="newFileName">Title</label>
- <div class="controls">
- <input type="text" id="newFileName" class="input-xlarge" placeholder="Title of the file">
+ <label class="col-xs-3 control-label" for="newFileName">Title</label>
+ <div class="col-xs-9 controls">
+ <input type="text" id="newFileName" class="form-control" placeholder="Title of the file">
</div>
</div>
<div class="form-group">
- <label class="control-label" for="newFileNameTags">Tags</label>
- <div class="controls">
- <input type="text" id="newFileNameTags" name="newFileNameTags" autocomplete="off" class="input-xlarge" placeholder="Comma separated list of tags">
+ <label class="col-xs-3 control-label" for="newFileNameTags">Tags</label>
+ <div class="col-xs-9 controls">
+ <input type="text" id="newFileNameTags" name="newFileNameTags" autocomplete="off" class="form-control" placeholder="Comma separated list of tags">
</div>
</div>
<div class="form-group">
- <div class="controls">
+ <div class="col-xs-9 col-md-offset-3 controls">
<label class="checkbox">
<input type="checkbox" id="tagWithCurrentDate"> Tag with current date (e.g. 20131210 for 10th of December, 2013)
</label>
</div>
</div>
- <!--div class="form-group">
- <div class="controls">
- <label class="checkbox">
- <input type="checkbox"> Creates the file in YYYYMM (e.g. 201312) subdirectory.
- </label>
- </div>
- </div-->
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
@@ -309,9 +346,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="newDirectoryName">New Directory Name</label>
- <div class="controls">
- <input type="text" name="newDirectoryName" id="newDirectoryName" />
+ <label class="col-xs-3 control-label" for="newDirectoryName">New Directory Name</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="newDirectoryName" id="newDirectoryName" />
</div>
</div>
</div>
@@ -332,9 +369,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="renamedFileName">New Filename</label>
- <div class="controls">
- <input type="text" name="renamedFileName" id="renamedFileName" />
+ <label class="col-xs-3 control-label" for="renamedFileName">New Filename</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="renamedFileName" id="renamedFileName" />
</div>
</div>
</div>
@@ -354,20 +391,20 @@ can be found in the LICENSE file.
<h4>Edit Tag</h4>
</div>
<div class="modal-body form-horizontal">
- <div class="form-group">
- <label class="control-label" for="tagTypeChooser">Tagtype</label>
- <div class="controls">
+ <!--div class="form-group">
+ <label class="col-xs-3 control-label" for="tagTypeChooser">Tagtype</label>
+ <div class="col-xs-9 controls">
<div class="btn-group" data-toggle="buttons-radio" name="tagTypeChooser">
- <button id="plainTagTypeButton" title="Create a plain text file" class="btn">Plain</button>
- <button id="dateTagTypeButton" title="Create a MarkDown file" class="btn">Date</button>
- <button id="currencyTagTypeButton" title="Create a HTML file" class="btn">Currency</button>
+ <button id="plainTagTypeButton" title="Create a plain text file" class="btn btn-default">Plain</button>
+ <button id="dateTagTypeButton" title="Create a MarkDown file" class="btn btn-default">Date</button>
+ <button id="currencyTagTypeButton" title="Create a HTML file" class="btn btn-default">Currency</button>
</div>
</div>
- </div>
+ </div-->
<div class="form-group">
- <label class="control-label" for="newTagName">Tag Name</label>
- <div class="controls">
- <input type="text" id="newTagName" id="newTagName">
+ <label class="col-xs-3 control-label" for="newTagName">Tag Name</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" id="newTagName" id="newTagName">
</div>
</div>
</div>
@@ -388,9 +425,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal" style="height: 200px">
<div class="form-group">
- <label class="control-label" for="tags">Comma separated list of the tags</label>
- <div class="controls">
- <input type="text" name="tags" id="tags" autocomplete="off"/>
+ <label class="col-xs-3 control-label" for="tags">Comma separated list of the tags</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="tags" id="tags" autocomplete="off"/>
</div>
</div>
</div>
@@ -411,14 +448,14 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="tagInTreeName">Name</label>
- <div class="controls">
- <input type="text" name="tagInTreeName" id="tagInTreeName" />
+ <label class="col-xs-3 control-label" for="tagInTreeName">Name</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="tagInTreeName" id="tagInTreeName" />
</div>
</div>
<div class="form-group">
- <label class="control-label" for="tagColor">Color</label>
- <div class="controls">
+ <label class="col-xs-3 control-label" for="tagColor">Color</label>
+ <div class="col-xs-9 controls">
<select id="tagColor" >
<option value="#ac725e">#ac725e</option>
<option value="#d06b64">#d06b64</option>
@@ -448,8 +485,8 @@ can be found in the LICENSE file.
</div>
</div>
<div class="form-group">
- <label class="control-label" for="tagTextColor">Text Color</label>
- <div class="controls">
+ <label class="col-xs-3 control-label" for="tagTextColor">Text Color</label>
+ <div class="col-xs-9 controls">
<select id="tagTextColor">
<option value="#ffffff">#ffffff</option>
<option value="#cccccc">#cccccc</option>
@@ -476,9 +513,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="newTagTitle">Comma separted list<br> of tags</label>
- <div class="controls">
- <input type="text" name="newTagTitle" id="newTagTitle" />
+ <label class="col-xs-3 control-label" for="newTagTitle">Comma separted list<br> of tags</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="newTagTitle" id="newTagTitle" />
</div>
</div>
</div>
@@ -499,9 +536,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="tagGroupName">TagGroup Name</label>
- <div class="controls">
- <input type="text" name="tagGroupName" id="tagGroupName" />
+ <label class="col-xs-3 control-label" for="tagGroupName">TagGroup Name</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="tagGroupName" id="tagGroupName" />
</div>
</div>
</div>
@@ -522,9 +559,9 @@ can be found in the LICENSE file.
</div>
<div class="modal-body form-horizontal">
<div class="form-group">
- <label class="control-label" for="newTagGroupName">TagGroup Name</label>
- <div class="controls">
- <input type="text" name="newTagGroupName" id="newTagGroupName" />
+ <label class="col-xs-3 control-label" for="newTagGroupName">TagGroup Name</label>
+ <div class="col-xs-9 controls">
+ <input class="form-control" type="text" name="newTagGroupName" id="newTagGroupName" />
</div>
</div>
</div>
@@ -537,7 +574,9 @@ can be found in the LICENSE file.
</div><!-- /.modal -->
<div id="fileMenu" class="dropdown clearfix">
- <ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <li class="dropdown-header"><span id="">File Operations</span><button type="button" class="close">×</button></li>
+ <li class="divider"></li>
<li><a id="fileMenuOpenFile" title=""><i class="fa fa-share"></i> Open File</a></li>
<li><a id="fileMenuAddTag" title="Tag current file"><i class="fa fa-tag"></i> Add Tags</a></li>
<li><a id="fileMenuRenameFile" title=""><i class="fa fa-pencil"></i> Raname File</a></li>
@@ -548,6 +587,8 @@ can be found in the LICENSE file.
<div id="tagMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <li class="dropdown-header"><span id="">Tag Operations</span><button type="button" class="close">×</button></li>
+ <li class="divider"></li>
<li><a id="tagMenuAddTagAsFilter" title="Search for the selected tag"><i class="fa fa-filter"></i> Search for This Tag</a></li>
<li><a id="tagMenuEditTag" title=""><i class="fa fa-pencil"></i> Edit Tag</a></li>
<li><a id="tagMenuMoveTagFirst" title=""><i class="fa fa-fast-backward"></i> Move Tag to First Position</a></li>
@@ -559,6 +600,8 @@ can be found in the LICENSE file.
<div id="tagTreeMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <li class="dropdown-header"><span id="">Tag Operations</span><button type="button" class="close">×</button></li>
+ <li class="divider"></li>
<li><a id="tagTreeMenuAddTagToFile" title="Add current tag to the selected files"><i class="fa fa-tag"></i> Tag Selected Files</a></li>
<li><a id="tagTreeMenuAddTagAsFilter" title="Set current tag as a filter criteria"><i class="fa fa-filter"></i> Set as Filter</a></li>
<li><a id="tagTreeMenuEditTag" title="Edit current tag"><i class="fa fa-pencil"></i> Edit</a></li>
@@ -568,6 +611,8 @@ can be found in the LICENSE file.
<div id="tagGroupMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <li class="dropdown-header"><span id="">Taggroup Operations</span><button type="button" class="close">×</button></li>
+ <li class="divider"></li>
<li><a id="tagGroupMenuCreateNewTag" title="Add tags to tag group"><i class="fa fa-tag"></i> Add Tags</a></li>
<li><a id="tagGroupMenuCreateTagGroup" title="Create new a tag group"><i class="fa fa-tags"></i> Create Tag Group</a></li>
<li><a id="tagGroupMenuMoveUp" title="Move current TagGroup one position up"><i class="fa fa-arrow-up"></i> Move Tag Group Up</a></li>
@@ -579,6 +624,8 @@ can be found in the LICENSE file.
<div id="directoryMenu" class="dropdown clearfix">
<ul class="dropdown-menu" role="menu" style="display:block;position:static;">
+ <li class="dropdown-header"><span id="">Directory Operations</span><button type="button" class="close">×</button></li>
+ <li class="divider"></li>
<li><a id="directoryMenuReloadDirectory" title="Reload directory"><i class="fa fa-refresh"></i> Reload Directory</a></li>
<li><a id="directoryMenuCreateDirectory" title="Creates a new subdirectory"><i class="fa fa-folder"></i> New Subdirectory</a></li>
<li><a id="directoryMenuOpenDirectory" title="Opens the directory in the default file manager"><i class="fa fa-folder-open"></i> Show in File Manager</a></li>
diff --git a/data/js/core.api.js b/data/js/core.api.js
index 806c09efa..053a4b978 100644
--- a/data/js/core.api.js
+++ b/data/js/core.api.js
@@ -120,7 +120,7 @@ define(function(require, exports, module) {
function initKeyBindings() {
// TODO handle documents opened for editing
- $(document).bind('keyup', 'esc', closeFileViewer);
+ // $(document).bind('keyup', 'esc', closeFileViewer);
}
function checkForNewVersion() {
@@ -303,7 +303,7 @@ define(function(require, exports, module) {
, center__paneSelector: '.col2'
, east__paneSelector: '.col3'
, west__size: 250 // percentage size expresses as a decimal
- , east__size: 0.4
+ , east__size: 0.5
, west__spacing_open: 1
, east__spacing_open: 1
, center_minWidth: 200
@@ -432,6 +432,9 @@ define(function(require, exports, module) {
exports.hideAllDropDownMenus = tsCoreUI.hideAllDropDownMenus;
exports.showFileCreateDialog = tsCoreUI.showFileCreateDialog;
exports.showFileRenameDialog = tsCoreUI.showFileRenameDialog;
+ exports.showLocationsPanel = tsCoreUI.showLocationsPanel;
+ exports.showTagsPanel = tsCoreUI.showTagsPanel;
+ exports.showContextMenu = tsCoreUI.showContextMenu;
// Proxying functions from tsTagsUI
exports.generateTagButtons = tsTagsUI.generateTagButtons;
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index 159884b42..fbdfbe774 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -12,8 +12,7 @@ define(function(require, exports, module) {
var formatter = undefined;
var fileContent = undefined;
- var fileType = undefined;
-
+ var fileType = undefined;
var showAlertDialog = function(message, title) {
if (!title) { title = 'Alert'; }
@@ -72,10 +71,13 @@ define(function(require, exports, module) {
fileContent = TSCORE.Config.getNewTextFileContent(); // Default new file in text file
fileType = "txt";
- $( "#newFileNameTags" ).typeahead( {
- "source": TSCORE.Config.getAllTags()
- });
- $("#newFileNameTags").val("");
+ $('#newFileNameTags').select2('data', null);
+ $("#newFileNameTags").select2({
+ //minimumInputLength: 1,
+ multiple: true,
+ tags: TSCORE.Config.getAllTags(),
+ });
+
$("#newFileName").val("");
$("#tagWithCurrentDate").prop('checked', false);
@@ -302,13 +304,12 @@ define(function(require, exports, module) {
"These items will be permanently deleted and cannot be recovered. Are you sure?",
function() {
TSCORE.IO.deleteElement(TSCORE.selectedFiles[0]);
- TSCORE.startTime = new Date().getTime();
TSCORE.IO.listDirectory(TSCORE.currentPath);
}
);
});
// End File Menu
-
+
$('#switchLang').click(function(e) {
$.i18n.setLng('de', function(t) {
$('[data-i18n]').i18n();
@@ -316,14 +317,12 @@ define(function(require, exports, module) {
});
$('#showLocations').click(function(e) {
- $('#tagGroupsContent').hide();
- $('#locationContent').show();
+ showLocationsPanel();
console.log("Show Directories");
});
$('#showTagGroups').click(function(e) {
- $('#locationContent').hide();
- $('#tagGroupsContent').show();
+ showTagsPanel();
console.log("Show Tags");
});
@@ -342,6 +341,21 @@ define(function(require, exports, module) {
};
+ var showContextMenu = function(menuId, sourceObject) {
+ var leftPos = sourceObject.offset().left;
+ var topPos = sourceObject.offset().top+sourceObject.height()+5;
+ if (sourceObject.offset().top+sourceObject.height()+$(menuId).height() > window.innerHeight) {
+ topPos = window.innerHeight-$("#tagMenu").height();
+ leftPos = leftPos+15;
+ }
+
+ $(menuId).css({
+ display: "block",
+ left: leftPos,
+ top: topPos
+ });
+ };
+
var hideAllDropDownMenus = function() {
$('#tagGroupMenu').hide();
$('#tagTreeMenu').hide();
@@ -349,14 +363,31 @@ define(function(require, exports, module) {
$('#tagMenu').hide();
$('#fileMenu').hide();
};
+
+ var showLocationsPanel = function() {
+ $('#tagGroupsContent').hide();
+ $('#locationContent').show();
+ $('#showLocations').addClass("active");
+ $('#showTagGroups').removeClass("active");
+ };
+
+ var showTagsPanel = function() {
+ $('#locationContent').hide();
+ $('#tagGroupsContent').show();
+ $('#showLocations').removeClass("active");
+ $('#showTagGroups').addClass("active");
+ };
// Public API definition
+ exports.showContextMenu = showContextMenu;
exports.initUI = initUI;
exports.showAlertDialog = showAlertDialog;
exports.showConfirmDialog = showConfirmDialog;
exports.showFileRenameDialog = showFileRenameDialog;
exports.showFileCreateDialog = showFileCreateDialog;
exports.showTagEditDialog = showTagEditDialog;
+ exports.showLocationsPanel = showLocationsPanel;
+ exports.showTagsPanel = showTagsPanel;
exports.hideAllDropDownMenus = hideAllDropDownMenus;
});
\ No newline at end of file
diff --git a/data/js/directories.ui.js b/data/js/directories.ui.js
index a7693af99..0dc8a2280 100644
--- a/data/js/directories.ui.js
+++ b/data/js/directories.ui.js
@@ -211,6 +211,9 @@ define(function(require, exports, module) {
function navigateToDirectory(directoryPath) {
console.log("Navigating to directory: "+directoryPath);
+
+ // Open the directory locations panel
+ TSCORE.showLocationsPanel();
// Cleaning the directory path from \\ \ and /
if( (directoryPath.lastIndexOf('/')+1 == directoryPath.length) || (directoryPath.lastIndexOf('\\')+1 == directoryPath.length)) {
@@ -283,11 +286,9 @@ define(function(require, exports, module) {
$("body").on("contextmenu click", ".directoryActions", function (e) {
TSCORE.hideAllDropDownMenus();
dir4ContextMenu = $(this).attr("key");
- $("#directoryMenu").css({
- display: "block",
- left: e.pageX,
- top: e.pageY
- });
+
+ TSCORE.showContextMenu("#directoryMenu", $(this));
+
return false;
});
diff --git a/data/js/fileopener.js b/data/js/fileopener.js
index 470f31a44..225cea39d 100644
--- a/data/js/fileopener.js
+++ b/data/js/fileopener.js
@@ -62,8 +62,7 @@ define(function(require, exports, module) {
TSCORE.IO.checkAccessFileURLAllowed();
if(!viewerExt) {
- $( "#viewer" ).html("<div class='alert alert-info'><strong>Info</strong> File type not supported for viewing."+
- "<button type='button' class='close' data-dismiss='alert'>×</button></div>");
+ $( "#viewer" ).html("<div class='alert alert-info'><strong>Info</strong> File type not supported for viewing.</div>");
} else if (viewerExt == "viewerBrowser") {
var filePathURI = undefined;
@@ -142,7 +141,7 @@ define(function(require, exports, module) {
var title = TSCORE.TagUtils.extractTitle(filePath);
var fileExtension = TSCORE.TagUtils.extractFileExtension(filePath);
- $( "#fileExt" ).text(fileExtension);
+ $( "#fileExtText" ).text(fileExtension);
$( "#fileTitle" ).val(title);
@@ -176,7 +175,7 @@ define(function(require, exports, module) {
}
});
- // Init Context Menus
+ // Init Tag Context Menus
$('#fileTags').on("contextmenu click", ".tagButton", function (e) {
TSCORE.hideAllDropDownMenus();
@@ -190,27 +189,9 @@ define(function(require, exports, module) {
return false;
});
- $( "#selectedFilePath" ).click(function() {
+/* $( "#selectedFilePath" ).click(function() {
this.select();
- });
-
- $("#actionToolbar").append('<button id="editDocument" class="btn" title="Edit File"><i class="icon-pencil"></i></button>');
- //$("#actionToolbar").append('<button id="openInNewWindow" class="btn" title="Go to the previous file"><i class="icon-circle-arrow-left"></i></button>');
- $("#actionToolbar").append('<button id="openTagSuggestionMenu" class="btn" title="Tag File"><i class="icon-tags"></i> <b class="caret"></b></button>');
- //$("#actionToolbar").append('<button id="startFullscreen" class="btn" title="Open file in full screen"><i class="icon-fullscreen"></i></b></button>');
- $("#actionToolbar").append('<button id="openFileActionsMenu" data-dropdown="#fileActionsMenu" class="btn" title="Additional File Actions"><i class="icon-th-list"></i> <b class="caret"></b></button>');
-
- $("#navigationToolbar").append('<button id="prevFileButton" class="btn" title="Go to Previous File"><i class="icon-circle-arrow-left"></i></button>');
- $("#navigationToolbar").append('<button id="nextFileButton" class="btn" title="Go to Next File"><i class="icon-circle-arrow-right"></i></button>');
- $("#navigationToolbar").append('<button id="closeOpenedFile" class="btn" title="Close file"><i class="icon-remove-sign"></i></button>');
-
- $("#fileActionsMenu").empty();
- //$("#fileActionsMenu").append('<li><a id="editDocument" title="Edit file"><i class="icon-pencil"></i> Edit File</a></li>');
- $("#fileActionsMenu").append('<li><a id="reloadFile" title="Reloads Current File"><i class="icon-refresh"></i> Reload File</a></li>');
- $("#fileActionsMenu").append('<li><a id="showFullDetails" title="Show Additional File Details"><i class="icon-list-alt"></i> Show File Details</a></li>');
- $("#fileActionsMenu").append('<li><a id="openInNewWindow" title="Open File in a New Tab"><i class="icon-share"></i> Open in New Tab</a></li>');
- $("#fileActionsMenu").append('<li><a id="startFullscreen" title="Open File in Fullscreen"><i class="icon-fullscreen"></i> Open in Fullscreen</a></li>');
- //$("#fileActionsMenu").append('<li><a id="printButton" title="Print Content from File Viewer"><i class="icon-print"></i> Print</a></li>');
+ });*/
initFileActions("#filetoolbox", filePath);
}
@@ -224,8 +205,8 @@ define(function(require, exports, module) {
$( "#tagSuggestionsMenu" ).empty();
-// var suggestionMenuEmpty = true;
+ $( "#tagSuggestionsMenu" ).append($('<li class="dropdown-header">Tagging Actions<button type="button" class="close">×</button></li>'));
$( "#tagSuggestionsMenu" ).append($('<li>', {name: suggTags[i]}).append($('<a>', {
title: "Add a tag to the current file",
filepath: filePath,
@@ -238,8 +219,8 @@ define(function(require, exports, module) {
TSCORE.showAddTagsDialog();
})
));
- $( "#tagSuggestionsMenu" ).append($('<li class="divider"></li>'));
- $( "#tagSuggestionsMenu" ).append($('<li class="dropdown-header"><span id="">Tag Suggestions</span><button type="button" class="close">×</button></li>'));
+ //$( "#tagSuggestionsMenu" ).append($('<li class="divider"></li>'));
+ $( "#tagSuggestionsMenu" ).append($('<li class="dropdown-header"><span id="">Suggested Tags:</span></li>'));
// Adding context menu entries for creating tags according to the suggested tags
for (var i=0; i < suggTags.length; i++) {
@@ -278,7 +259,7 @@ define(function(require, exports, module) {
}
var options;
-
+ $( "#editDocument" ).off('click');
$( "#editDocument" ).focus(function() {
this.blur();
})
@@ -291,49 +272,80 @@ define(function(require, exports, module) {
if ( !_isEditMode ) {
$( this )
- .attr("title","Save & Close")
- .html("<i class='icon-save'></i>");
+ // .attr("title","Save & Close")
+ .html("<i class='fa fa-edit'></i>&nbsp;<span data-i18n='app.?;'>Save</span>");
editFile(filePath);
} else {
TSCORE.showConfirmDialog("Confirm","Do you really want to overwrite the current file?", function() {
$( "#editDocument" )
- .attr("title", "Edit File")
- .html("<i class='icon-pencil'></i>");
+ // .attr("title", "Edit File")
+ .html("<i class='fa fa-edit'></i>&nbsp;<span data-i18n='app.?;'>Edit</span>");
_isEditMode = false;
saveFile(filePath);
});
}
});
+ $( "#nextFileButton" ).off('click');
$( "#nextFileButton" ).click(function() {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getNextFile(_openedFilePath));
});
+ $( "#prevFileButton" ).off('click');
$( "#prevFileButton" ).click(function() {
TSCORE.FileOpener.openFile(TSCORE.PerspectiveManager.getPrevFile(_openedFilePath));
});
- $( "#toggleFullWidthButton" ).click(function() {
- TSCORE.toggleFullWidth();
- });
-
+ $( "#reloadFile" ).off('click');
$( "#reloadFile" ).click(function() {
TSCORE.FileOpener.openFile(_openedFilePath);
});
+ $( "#showFullDetails" ).off('click');
$( "#showFullDetails" ).click(function() {
TSCORE.toggleFileDetails();
});
- $( "#openInNewWindow" ).click(function() {
+ $( "#openFileInNewWindow" ).off('click');
+ $( "#openFileInNewWindow" ).click(function() {
window.open("file:///"+filePath);
});
- $( "#printButton" ).click(function() {
+ $( "#printFile" ).off('click');
+ $( "#printFile" ).click(function() {
$('iframe').get(0).contentWindow.print();
- });
+ });
+
+ $( "#openDirectory" ).off('click');
+ $( "#openDirectory" ).click( function() {
+ TSCORE.IO.openDirectory(TSCORE.currentPath);
+ });
+
+ $( "#renameFile" ).off('click');
+ $( "#renameFile" ).click( function() {
+ TSCORE.showFileRenameDialog();
+ });
+
+ $( "#toggleFullWidthButton" ).off('click');
+ $( "#toggleFullWidthButton" ).click(function() {
+ TSCORE.toggleFullWidth();
+ });
+
+ $( "#deleteFile" ).off('click');
+ $( "#deleteFile" ).click( function() {
+ console.log("Deleting file...");
+ TSCORE.showConfirmDialog(
+ "Delete File",
+ "This item will be permanently deleted and cannot be recovered. Are you sure?",
+ function() {
+ TSCORE.IO.deleteElement(TSCORE.currentPath);
+ }
+ );
+ });
+ $( "#closeOpenedFile" ).off('click');
$( "#closeOpenedFile" ).click(function() {
+ // TODO Extract as function for the API
if(_isEditMode) {
TSCORE.showConfirmDialog("Confirm","If you confirm, all made changes will be lost.", function() {
// Cleaning the viewer/editor
@@ -351,7 +363,8 @@ define(function(require, exports, module) {
}
});
- $( "#startFullscreen" ).click(function() {
+ $( "#fullscreenFile" ).off('click');
+ $( "#fullscreenFile" ).click(function() {
var docElm = $("#viewer")[0];
if (docElm.requestFullscreen) {
docElm.requestFullscreen();
@@ -364,6 +377,7 @@ define(function(require, exports, module) {
}
});
}
+
// Methods
exports.openFile = openFile;
diff --git a/data/js/tags.ui.js b/data/js/tags.ui.js
index 0472b0b31..2f852ed4e 100644
--- a/data/js/tags.ui.js
+++ b/data/js/tags.ui.js
@@ -16,11 +16,8 @@ define(function(require, exports, module) {
TSCORE.selectedTagData = TSCORE.Config.getTagGroupData($(this).attr("key"));
TSCORE.selectedTagData.parentKey = undefined;
- $("#tagGroupMenu").css({
- display: "block",
- left: e.pageX,
- top: e.pageY
- });
+ TSCORE.showContextMenu("#tagGroupMenu", $(this));
+
return false;
});
@@ -30,11 +27,8 @@ define(function(require, exports, module) {
TSCORE.selectedTag = generateTagValue(TSCORE.selectedTagData);
TSCORE.selectedTagData.parentKey = $(this).attr("parentKey");
- $("#tagTreeMenu").css({
- display: "block",
- left: e.pageX,
- top: e.pageY
- });
+ TSCORE.showContextMenu("#tagTreeMenu", $(this));
+
return false;
});
@@ -420,13 +414,16 @@ define(function(require, exports, module) {
function showTagEditInTreeDialog() {
$( "#tagInTreeName" ).val(TSCORE.selectedTagData.title);
- $( "#tagColor" ).simplecolorpicker({picker: true});
+ $( "#tagColor" ).simplecolorpicker({picker: true, theme: 'glyphicons'});
+
if(TSCORE.selectedTagData.color == undefined || TSCORE.selectedTagData.color.length < 1) {
$( "#tagColor" ).simplecolorpicker('selectColor', '#008000');
} else {
$( "#tagColor" ).simplecolorpicker('selectColor', TSCORE.selectedTagData.color);
}
- $( "#tagTextColor" ).simplecolorpicker({picker: true});
+
+ $( "#tagTextColor" ).simplecolorpicker({picker: true, theme: 'glyphicons'});
+
if(TSCORE.selectedTagData.textcolor == undefined || TSCORE.selectedTagData.textcolor.length < 1) {
$( "#tagTextColor" ).simplecolorpicker('selectColor', '#ffffff');
} else {
@@ -444,12 +441,13 @@ define(function(require, exports, module) {
return split( term ).pop();
}
- // TODO reactive comma separated autocomplete
- $( "#tags" ).typeahead( {
- "source": TSCORE.Config.getAllTags()
- });
+ $('#tags').select2('data', null);
+ $("#tags").select2({
+ //minimumInputLength: 1,
+ multiple: true,
+ tags: TSCORE.Config.getAllTags(),
+ });
- $("#tags").val("");
$( '#dialogAddTags' ).modal({show: true});
}