TagSpaces is an offline, open source, document manager with tagging support
Some styles updated
uggrock5610beabcddc
diff --git a/data/css/tagspaces.css b/data/css/tagspaces.cssindex 0ccada8f6..d81f37331 100644--- a/data/css/tagspaces.css+++ b/data/css/tagspaces.css@@ -156,12 +156,6 @@ html, body {font-size: 1.5em;color: #333333;}-/*-.contextMenu {- display: none;- width: 150px;- z-index: 1000;-}*/li hr {height: 0px;@@ -327,24 +321,50 @@ li hr {overflow-y: auto;}-/* Tag Groups css */+.tagGroupIcon {+ text-align: left;+ width: 12%;+ padding-left: 1px;+ color: #333 !important;+}.tagGroupTitle {- padding-left: 5px;- text-decoration: none;- color: gray;- font-size: 12px;- font-family: Geneva, Arial, Helvetica, sans-serif;+ text-align: left;+ padding-left: 2px;+ font-size: 13px !important;+ width:68%;+ color: #333 !important;}-.tagGroupTitle:hover, .tagGroupTitle:active, .tagGroupTitle:focus {- text-decoration: none;- color: gray;+.tagGroupActions {+ width:20%;+ padding-right: 7px;+ color: #333 !important;+ text-align: right;}-/*-#tagGroups {- overflow: auto;-} */++.directoryIcon {+ text-align: left;+ width: 12%;+ padding-left: 1px;+ color: #333 !important;+}++.directoryTitle {+ text-align: left;+ padding-left: 2px;+ font-size: 13px !important;+ width:68%;+ color: #333 !important;+}++.directoryActions {+ text-align: right;+ width:20%;+ padding-right: 7px;+ color: #333 !important;+}+/* JSON Editor */div.jsoneditor-menu {diff --git a/data/index.html b/data/index.htmlindex 565534bc2..4888b552c 100644--- a/data/index.html+++ b/data/index.html@@ -15,7 +15,6 @@<link rel="stylesheet" type="text/css" href="libs/jsoneditor/jsoneditor.css"><link rel="stylesheet" type="text/css" href="libs/jquerydropdown/jquery.dropdown.css"><link rel="stylesheet" type="text/css" href="libs/bootstrap/css/bootstrap.css">- <link rel="stylesheet" type="text/css" href="libs/jquerynanoscroller/nanoscroller.css"><link rel="stylesheet" type="text/css" href="css/tagspaces.css"></head><body style="background-color: lightgray;">@@ -44,11 +43,11 @@<button id="selectTagSpace" style="width: 15%;" class="btn"><span class="caret"></span></button></div></div>- <div id="location" class="nano">+ <div id="location" style="padding: 1px 1px 1px 3px"><div id="locationContent" class="content"></div></div></div>- <div id="tagGroups" class="west-south nano">+ <div id="tagGroups" class="west-south" style="padding: 1px 1px 1px 3px"><div id="tagGroupsContent" class="content"></div></div></div>diff --git a/data/js/directories.ui.js b/data/js/directories.ui.jsindex 17fc4a3c6..b9f1a85e4 100644--- a/data/js/directories.ui.js+++ b/data/js/directories.ui.js@@ -56,34 +56,32 @@ define(function(require, exports, module) {for(var i=0; i < directoryHistory.length; i++) {$("#locationContent").append($("<div>", {"class": "accordion-group",- "style": "width: 100%; border: 0px;",+ "style": "width: 99%; border: 0px #aaa solid;",}).append($("<div>", {"class": "accordion-heading btn-group","key": directoryHistory[i].key,- "style": "width:99%; margin: 2px; ", // background: url('css/arrow-down.png') no-repeat center bottom; padding-bottom: 5px;+ "style": "width:100%; margin: 0px; ",}).append($("<button>", { // Dir toggle button- "class": "btn btn-link",+ "class": "btn btn-link directoryIcon","data-toggle": "collapse","data-target": "#dirButtons"+i,"key": directoryHistory[i].key,"title": "Toggle Directory",- "style": "width: 15%;",})- .html("<i class='icon-folder-open-alt'></i>")+ .html("<i class='icon-folder-open'></i>"))// End dir toggle button.append($("<button>", { // Dir main button- "class": "btn btn-link btn-small",+ "class": "btn btn-link btn-small directoryTitle","key": directoryHistory[i].key,"title": "Change Direoctory to: "+directoryHistory[i].key,"text": directoryHistory[i].title,- "style": "text-align: left; width:65%;",}).click(function() {@@ -107,10 +105,9 @@ define(function(require, exports, module) {)// End dir main button.append($("<button>", {- "class": "btn btn-link",+ "class": "btn btn-link directoryActions","key": directoryHistory[i].key,"title": "Directory Options",- "style": "width:20%",}).dropdown( 'attach' , '#directoryMenu' ).append("<b class='icon-ellipsis-vertical'>")@@ -121,14 +118,14 @@ define(function(require, exports, module) {) // end heading.append($("<div>", {- "class": "accordion-body collapse in",- "id": "dirButtons"+i,- "style": "margin: 0px 3px 3px 3px; border: 0px;"+ "class": "accordion-body collapse in",+ "id": "dirButtons"+i,+ "style": "margin: 0px 0px 0px 3px; border: 0px;"}).append($("<div>", {- "class": "accordion-inner",- "id": "dirButtonsContent"+i,- "style": "padding: 2px; border: 0px;",+ "class": "accordion-inner",+ "id": "dirButtonsContent"+i,+ "style": "padding: 2px; border: 0px;",})) // end accordion-inner) // end accordion button@@ -146,7 +143,7 @@ define(function(require, exports, module) {"class": "btn btn-warning btn-small","key": directoryHistory[i]["children"][j].key,"title": directoryHistory[i]["children"][j].key,- "style": "margin: 1px",+ "style": "margin: 1px;","text": " "+directoryHistory[i]["children"][j].title}).droppable({@@ -174,9 +171,6 @@ define(function(require, exports, module) {}}}- // Activating nano scroller- //$("#location").nanoScroller();-}function handleDirCollapsion() {@@ -184,13 +178,13 @@ define(function(require, exports, module) {var key = $(this).attr("key");console.log("Entered Header for: "+key);if(getDirectoryCollapsed(key)) {- $(this).find("i").removeClass("icon-folder-open-alt");- $(this).find("i").addClass("icon-folder-close-alt");+ $(this).find("i").removeClass("icon-folder-open");+ $(this).find("i").addClass("icon-folder-close");$(this).next().removeClass("in");$(this).next().addClass("out");} else {- $(this).find("i").removeClass("icon-folder-close-alt");- $(this).find("i").addClass("icon-folder-open-alt");+ $(this).find("i").removeClass("icon-folder-close");+ $(this).find("i").addClass("icon-folder-open");$(this).next().removeClass("out");$(this).next().addClass("in");}diff --git a/data/js/tags.ui.js b/data/js/tags.ui.jsindex 0b2beb7e3..92c734c0b 100644--- a/data/js/tags.ui.js+++ b/data/js/tags.ui.js@@ -132,30 +132,28 @@ define(function(require, exports, module) {for(var i=0; i < TSCORE.Config.Settings["tagGroups"].length; i++) {$("#tagGroupsContent").append($("<div>", {"class": "accordion-group",- "style": "width: 99%; border: 0px;",+ "style": "width: 99%; border: 0px #aaa solid;",}).append($("<div>", {"class": "accordion-heading btn-group",- "style": "width:99%; margin: 2px;",+ "style": "width:100%; margin: 0px;","key": TSCORE.Config.Settings["tagGroups"][i].key,}).append($("<button>", { // Taggroup toggle button- "class": "btn btn-link",- "data-toggle": "collapse",- "data-target": "#tagButtons"+i,+ "class": "btn btn-link tagGroupIcon",+ "data-toggle": "collapse",+ "data-target": "#tagButtons"+i,"title": "Toggle TagGroup",- "style": "width: 15%;",}).html("<i class='icon-tags'></i>"))// End taggroup toggle button.append($("<button>", {- "class": "btn btn-link btn-small",+ "class": "btn btn-link btn-small tagGroupTitle","text": TSCORE.Config.Settings["tagGroups"][i].title,"key": TSCORE.Config.Settings["tagGroups"][i].key,- "style": "text-align: left; width:65%;",})).droppable({@@ -173,8 +171,7 @@ define(function(require, exports, module) {}).append($("<button>", {- "class": "btn btn-link",- "style": "width:20%",+ "class": "btn btn-link tagGroupActions","tag": TSCORE.Config.Settings["tagGroups"][i].title,"key": TSCORE.Config.Settings["tagGroups"][i].key,"title": "Taggroup options",@@ -194,12 +191,12 @@ define(function(require, exports, module) {.append($("<div>", {"class": "accordion-body collapse in","id": "tagButtons"+i,- "style": "border: 0px;",+ "style": "margin: 0px 0px 0px 3px; border: 0px;",}).append($("<div>", {"class": "accordion-inner","id": "tagButtonsContent"+i,- "style": "border: 0px; padding: 3px",+ "style": "padding: 2px; border: 0px;",})) // end accordion-inner) // end accordion button@@ -239,26 +236,14 @@ define(function(require, exports, module) {TSCORE.selectedTag = tag;}- // Helper function user by basic and search views- function generateTagButtons(commaSeparatedTags, fileExtension, fileName, filePath) {- console.log("Creating tags...");+ // Helper function generating tag buttons+ function generateTagButtons(commaSeparatedTags, fileName, filePath) {+ //console.log("Creating tags...");var tagString = ""+commaSeparatedTags;var wrapper = $('<span>');if(filePath == undefined) {filePath = TSCORE.currentPath+TSCORE.TagUtils.DIR_SEPARATOR+fileName;}- if(fileExtension.length > 0) {- wrapper.append($('<button>', {- title: "Opens context menu for "+fileExtension,- tag: fileExtension,- filename: fileName,- filepath: filePath,- "class": "btn btn-small btn-info extTagButton",- text: fileExtension+" "- })- .append("<span class='caret'/>")- );- }if(tagString.length > 0) {var tags = tagString.split(",");for (var i=0; i < tags.length; i++) {@@ -276,6 +261,28 @@ define(function(require, exports, module) {}return wrapper.html();}++ // Helper function generating file extension button+ function generateExtButton(fileExtension, fileName, filePath) {+ //console.log("Creating ext button...");+ var wrapper = $('<span>');+ if(filePath == undefined) {+ filePath = TSCORE.currentPath+TSCORE.TagUtils.DIR_SEPARATOR+fileName;+ }+ if(fileExtension.length > 0) {+ wrapper.append($('<button>', {+ title: "Opens context menu for "+fileExtension,+ tag: fileExtension,+ filename: fileName,+ filepath: filePath,+ "class": "btn btn-small btn-info extTagButton",+ text: fileExtension+" "+ })+ .append("<span class='caret'/>")+ );+ }+ return wrapper.html();+ }function showDialogTagCreate() {$( "#newTagTitle" ).val("");@@ -352,6 +359,7 @@ define(function(require, exports, module) {exports.generateTagGroups = generateTagGroups;exports.openTagMenu = openTagMenu;exports.generateTagButtons = generateTagButtons;+ exports.generateExtButton = generateExtButton;exports.showAddTagsDialog = showAddTagsDialog;exports.showTagEditInTreeDialog = showTagEditInTreeDialog;exports.showDialogTagCreate = showDialogTagCreate;