|
@@ -133,6 +133,12 @@
|
|
margin-top: -6px;
|
|
margin-top: -6px;
|
|
font-size: 110%;
|
|
font-size: 110%;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ .launchIconText.longTextSplit{
|
|
|
|
+ white-space: nowrap;
|
|
|
|
+ overflow: hidden;
|
|
|
|
+ text-overflow: ellipsis;
|
|
|
|
+ }
|
|
|
|
|
|
.navimenu {
|
|
.navimenu {
|
|
position: fixed;
|
|
position: fixed;
|
|
@@ -766,13 +772,31 @@
|
|
animation: blink normal 2s infinite ease-in-out; /* Opera and prob css3 final iteration */
|
|
animation: blink normal 2s infinite ease-in-out; /* Opera and prob css3 final iteration */
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /*
|
|
|
|
+ Hover file decriptor UI
|
|
|
|
+ */
|
|
|
|
+ .fileDescription {
|
|
|
|
+ width:200px;
|
|
|
|
+ position:fixed;
|
|
|
|
+ z-index:10;
|
|
|
|
+ background:white;
|
|
|
|
+ padding: 10px;
|
|
|
|
+ border: 1px solid #2c2c2c;
|
|
|
|
+ -webkit-box-shadow: 6px 5px 10px -3px rgba(0,0,0,0.75);
|
|
|
|
+ -moz-box-shadow: 6px 5px 10px -3px rgba(0,0,0,0.75);
|
|
|
|
+ box-shadow: 6px 5px 10px -3px rgba(0,0,0,0.75);
|
|
|
|
+ padding:2px;
|
|
|
|
+ word-wrap: break-word;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
|
|
/*
|
|
/*
|
|
Z-index layering
|
|
Z-index layering
|
|
Layer -1 : Background Images
|
|
Layer -1 : Background Images
|
|
Layer 0 - 99: Not focused tab
|
|
Layer 0 - 99: Not focused tab
|
|
Layer 100: Focused tab drag drop layer
|
|
Layer 100: Focused tab drag drop layer
|
|
- Layer 101: Focused Tab
|
|
|
|
|
|
+ Layer 101: Focused Tab / File Descriptor Tag
|
|
...
|
|
...
|
|
Layer 400 - 499: Non-focused top most FloatWindows
|
|
Layer 400 - 499: Non-focused top most FloatWindows
|
|
Layer 500: Top Mot FloatWindow drag drop layer
|
|
Layer 500: Top Mot FloatWindow drag drop layer
|
|
@@ -843,7 +867,10 @@
|
|
<div id="iconwrapper">
|
|
<div id="iconwrapper">
|
|
|
|
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+ <!-- File Descriptors -->
|
|
|
|
+ <div id="fileDescriptor" class="fileDescription" style="font-size: 80%;display:none;z-index:101;">No Information</div>
|
|
|
|
+
|
|
<!-- Navigation Menu-->
|
|
<!-- Navigation Menu-->
|
|
<div id="navimenu" class="navimenu themeColor">
|
|
<div id="navimenu" class="navimenu themeColor">
|
|
<div class="item clickable system" onclick="toggleListMenu();" ontouchstart="toggleListMenu();" >
|
|
<div class="item clickable system" onclick="toggleListMenu();" ontouchstart="toggleListMenu();" >
|
|
@@ -917,7 +944,7 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div id="quickAccessPanel" class="" style="display:none;">
|
|
<div id="quickAccessPanel" class="" style="display:none;">
|
|
@@ -966,7 +993,6 @@
|
|
<i class="power icon"></i> <span locale="quickAccess/poweroff">Power Off</span>
|
|
<i class="power icon"></i> <span locale="quickAccess/poweroff">Power Off</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
-
|
|
|
|
<script>
|
|
<script>
|
|
|
|
|
|
/*
|
|
/*
|
|
@@ -1012,6 +1038,7 @@
|
|
var clickDownOffset = [-1, -1];
|
|
var clickDownOffset = [-1, -1];
|
|
var renameMode = false;
|
|
var renameMode = false;
|
|
var operationTargetLaunchIcon;
|
|
var operationTargetLaunchIcon;
|
|
|
|
+ var currentMousePosition = [-1, -1];
|
|
|
|
|
|
//Document key bindings
|
|
//Document key bindings
|
|
var ctrlHold = false;
|
|
var ctrlHold = false;
|
|
@@ -3119,7 +3146,7 @@
|
|
style="width:${properties.iwidth}px; height:${properties.iheight}px;left:${properties.screenX}px; top:${properties.screenY}px;">
|
|
style="width:${properties.iwidth}px; height:${properties.iheight}px;left:${properties.screenX}px; top:${properties.screenY}px;">
|
|
<span class="launchIconWrapper">
|
|
<span class="launchIconWrapper">
|
|
<img class="launchIconImage ${properties.size}" src="${properties.imagePath}" draggable="false"></img>
|
|
<img class="launchIconImage ${properties.size}" src="${properties.imagePath}" draggable="false"></img>
|
|
- <p class="launchIconText ${properties.size} ">${properties.shortenedName}</p>
|
|
|
|
|
|
+ <p class="launchIconText ${properties.size}">${properties.shortenedName}</p>
|
|
</span>
|
|
</span>
|
|
</${htmlType}>`);
|
|
</${htmlType}>`);
|
|
|
|
|
|
@@ -3154,6 +3181,50 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //Folder description box
|
|
|
|
+ var timeoutId;
|
|
|
|
+ function attachDescriptionBoxEvents(){
|
|
|
|
+ $(".launchIcon").off("hover").hover(function(event) {
|
|
|
|
+ let modulePath = $(this).attr("filepath");
|
|
|
|
+ let filename = $(this).attr("filename");
|
|
|
|
+ let filedata = JSON.parse( decodeURIComponent($(this).attr("filedata")));
|
|
|
|
+
|
|
|
|
+ if (!timeoutId) {
|
|
|
|
+ timeoutId = window.setTimeout(function() {
|
|
|
|
+ let position = [currentMousePosition[0] + 10, currentMousePosition[1] + 10];
|
|
|
|
+ timeoutId = null;
|
|
|
|
+ console.log(filedata, position);
|
|
|
|
+ $('#fileDescriptor').css('left',position[0] + "px");
|
|
|
|
+ $('#fileDescriptor').css('top',position[1] + "px");
|
|
|
|
+ if (filedata.IsShortcut){
|
|
|
|
+ $('#fileDescriptor').html(`<p><i class="linkify icon"></i> ${filedata.ShortcutName}<br><i class="folder icon"></i> ${filedata.ShortcutPath}</p>`);
|
|
|
|
+ $('#fileDescriptor').show();
|
|
|
|
+ }else{
|
|
|
|
+ $.ajax({
|
|
|
|
+ url: "system/file_system/getProperties",
|
|
|
|
+ data: {path: filedata.Filepath},
|
|
|
|
+ success: function(data){
|
|
|
|
+ $('#fileDescriptor').html(`<p>${filedata.Filename}<br><i class="file outline icon"></i> ${formatBytes(data.Filesize)} (${data.MimeType})<br><i class="time icon"></i> ${data.LastModTime}</p>`);
|
|
|
|
+ $('#fileDescriptor').show();
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ }, 1500);
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ function () {
|
|
|
|
+ if (timeoutId) {
|
|
|
|
+ window.clearTimeout(timeoutId);
|
|
|
|
+ timeoutId = null;
|
|
|
|
+ }else {
|
|
|
|
+ $('#fileDescriptor').hide();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+
|
|
/*
|
|
/*
|
|
Share indicator settings
|
|
Share indicator settings
|
|
This append or remove share from a particular file
|
|
This append or remove share from a particular file
|
|
@@ -3944,6 +4015,7 @@
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
//Clicked on a launch icon.
|
|
//Clicked on a launch icon.
|
|
var alreadyHighlighted = $(object).find(".launchIconWrapper").hasClass("selected");
|
|
var alreadyHighlighted = $(object).find(".launchIconWrapper").hasClass("selected");
|
|
if (alreadyHighlighted){
|
|
if (alreadyHighlighted){
|
|
@@ -3962,8 +4034,6 @@
|
|
$(".launchIconWrapper.selected").removeClass("selected");
|
|
$(".launchIconWrapper.selected").removeClass("selected");
|
|
$(object).find(".launchIconWrapper").addClass("selected");
|
|
$(object).find(".launchIconWrapper").addClass("selected");
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -4166,6 +4236,10 @@
|
|
//console.log(event.which);
|
|
//console.log(event.which);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+
|
|
|
|
+ $(document).on("mousemove", function(event){
|
|
|
|
+ currentMousePosition = [event.clientX, event.clientY];
|
|
|
|
+ });
|
|
|
|
|
|
$(document).keyup(function(event) {
|
|
$(document).keyup(function(event) {
|
|
let keycode = event.which || event.keyCode;
|
|
let keycode = event.which || event.keyCode;
|
|
@@ -5317,10 +5391,12 @@
|
|
if (callback == undefined) {
|
|
if (callback == undefined) {
|
|
initDesktopFiles(launchOption, function(){
|
|
initDesktopFiles(launchOption, function(){
|
|
startThumbnailLoader();
|
|
startThumbnailLoader();
|
|
|
|
+ attachDescriptionBoxEvents();
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
initDesktopFiles(launchOption, function(){
|
|
initDesktopFiles(launchOption, function(){
|
|
startThumbnailLoader();
|
|
startThumbnailLoader();
|
|
|
|
+ attachDescriptionBoxEvents();
|
|
callback()
|
|
callback()
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -5995,7 +6071,8 @@
|
|
hideAllContextMenus();
|
|
hideAllContextMenus();
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
|
|
+ //Function for converting bytes to human readable sizes
|
|
|
|
+ function formatBytes(a,b=2){if(0===a)return"0 Bytes";const c=0>b?0:b,d=Math.floor(Math.log(a)/Math.log(1024));return parseFloat((a/Math.pow(1024,d)).toFixed(c))+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][d]}
|
|
|
|
|
|
/*
|
|
/*
|
|
Background services for keeping desktop files updated
|
|
Background services for keeping desktop files updated
|