Skip to content

Commit

Permalink
Merge branch '2.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
shirosaidev committed Sep 19, 2022
2 parents c049da8 + bdce115 commit 438737a
Show file tree
Hide file tree
Showing 46 changed files with 269 additions and 78 deletions.
7 changes: 7 additions & 0 deletions diskover-web/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Diskover-web v2 Community Edition Change Log

# [2.0.4] - 2022-09-19
### added
- all charts on search results page and dashboard are now clickable for searching results
### changed
- removed setting sort by size when clicking charts on search results and dashboard pages


# [2.0.3] - 2022-07-20
### fixed
- view file info page file and full path links not finding any search results when file name has double quote " in name
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/check_session.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
diskover-web
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/css/diskover-filetree-search.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ diskover-web community edition (ce)
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/css/diskover.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ diskover-web community edition (ce)
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_bar_mtime_dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_bar_mtime_searchresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_pie_ext_dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_pie_ext_searchresults.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_search.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_data_search_dirsizechart.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/d3_inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/dashboard.data.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/dashboard.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/error.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/help.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
71 changes: 67 additions & 4 deletions diskover-web/public/js/diskover-dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ diskover-web community edition (ce)
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down Expand Up @@ -118,6 +118,24 @@ $(function () {
title: {
display: true,
text: 'Top File Types by Size'
},
onClick: function(event, clickedElements) {
if (clickedElements.length === 0) return;
var e = clickedElements[0];
var ext = this.data.labels[e._index];
//var size = this.data.datasets[0].data[e._index];
if (ext == "NULL (no ext)") {
ext = "\"\"";
}
var pp = encodeURIComponent(escapeHTML(decodeURIComponent(path)));
window.location.href = "search.php?submitted=true&p=1&q=extension:" + ext + " AND parent_path:" + pp + "*&doctype=file";
return false;
},
onHover: function (event, legendItem, legend) {
$("#topFileTypesBySize-barChart").css("cursor", "pointer");
},
onLeave: function (event, legendItem, legend) {
$("#topFileTypesBySize-barChart").css("cursor", "default");
}
}

Expand Down Expand Up @@ -174,7 +192,7 @@ $(function () {
if (ext == "NULL (no ext)") {
ext = "\"\"";
}
window.location.href = "search.php?submitted=true&p=1&q=extension:" + ext + " AND parent_path:" + encodeURIComponent(escapeHTML(path)) +"*&sort=size&sortorder=desc&sort2=name&sortorder2=asc&doctype=file";
window.location.href = "search.php?submitted=true&p=1&q=extension:" + ext + " AND parent_path:" + encodeURIComponent(escapeHTML(path)) +"*&doctype=file";
return false;
},
onHover: function (event, legendItem, legend) {
Expand All @@ -201,6 +219,24 @@ $(function () {
title: {
display: true,
text: 'Top File Types by Count'
},
onClick: function(event, clickedElements) {
if (clickedElements.length === 0) return;
var e = clickedElements[0];
var ext = this.data.labels[e._index];
//var size = this.data.datasets[0].data[e._index];
if (ext == "NULL (no ext)") {
ext = "\"\"";
}
var pp = encodeURIComponent(escapeHTML(decodeURIComponent(path)));
window.location.href = "search.php?submitted=true&p=1&q=extension:" + ext + " AND parent_path:" + pp + "*&doctype=file";
return false;
},
onHover: function (event, legendItem, legend) {
$("#topFileTypesByCount-pieChart").css("cursor", "pointer");
},
onLeave: function (event, legendItem, legend) {
$("#topFileTypesByCount-pieChart").css("cursor", "default");
}
}

Expand Down Expand Up @@ -280,7 +316,7 @@ $(function () {
} else if (mtime == "> 2 years") {
mtime = "[* TO now/m-2y/d}"
}
window.location.href = "search.php?submitted=true&p=1&q=mtime:" + mtime + " AND parent_path:" + encodeURIComponent(escapeHTML(path)) +"*&sort=size&sortorder=desc&sort2=name&sortorder2=asc&doctype=file";
window.location.href = "search.php?submitted=true&p=1&q=mtime:" + mtime + " AND parent_path:" + encodeURIComponent(escapeHTML(path)) +"*&doctype=file";
return false;
},
onHover: function (event, legendItem, legend) {
Expand Down Expand Up @@ -324,7 +360,34 @@ $(function () {
}
}]
},
maintainAspectRatio: false
maintainAspectRatio: false,
onClick: function(event, clickedElements) {
if (clickedElements.length === 0) return;
var activeElement = mtimebarChart.getElementAtEvent(event);
var mtime = this.data.datasets[activeElement[0]._datasetIndex].label;
if (mtime == "0 - 30 days") {
mtime = "[now/m-1M/d TO now/m}"
} else if (mtime == "30 - 90 days") {
mtime = "[now/m-3M/d TO now/m-1M/d}"
} else if (mtime == "90 - 180 days") {
mtime = "[now/m-6M/d TO now/m-3M/d}"
} else if (mtime == "180 days - 1 year") {
mtime = "[now/m-1y/d TO now/m-6M/d}"
} else if (mtime == "1 - 2 years") {
mtime = "[now/m-2y/d TO now/m-1y/d}"
} else if (mtime == "> 2 years") {
mtime = "[* TO now/m-2y/d}"
}
var pp = encodeURIComponent(escapeHTML(decodeURIComponent(path)));
window.location.href = "search.php?submitted=true&p=1&q=mtime:" + mtime + " AND parent_path:" + pp + "*&doctype=file";
return false;
},
onHover: function (event, legendItem, legend) {
$("#mtime-barChart").css("cursor", "pointer");
},
onLeave: function (event, legendItem, legend) {
$("#mtime-barChart").css("cursor", "default");
}
}

var mtimebarChart = new Chart(mtimebarChartCanvas, {
Expand Down
2 changes: 1 addition & 1 deletion diskover-web/public/js/diskover.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ diskover-web community edition (ce)
https://github.com/diskoverdata/diskover-community/
https://diskoverdata.com
Copyright 2017-2021 Diskover Data, Inc.
Copyright 2017-2022 Diskover Data, Inc.
"Community" portion of Diskover made available under the Apache 2.0 License found here:
https://www.diskoverdata.com/apache-license/
Expand Down
Loading

0 comments on commit 438737a

Please sign in to comment.