Skip to content

Commit

Permalink
Update DataTables package in preparation of dark theme
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Smith <espadav8@gmail.com>
  • Loading branch information
EspadaV8 committed Jan 15, 2024
1 parent 8e59e6d commit b19e1a4
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 50 deletions.
2 changes: 2 additions & 0 deletions source/file_size_metrics/changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
**<span style="color:#56adda">0.0.9</span>**
- Update DataTables plugin in preparation of supporting dark mode

**<span style="color:#56adda">0.0.8</span>**
- Update Plugin for Unmanic v2 PluginHandler compatibility
Expand Down
33 changes: 14 additions & 19 deletions source/file_size_metrics/info.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
{
"author": "Josh.5",
"compatibility": [
1,
2
],
"description": "Aggregate changes in file size metrics for processed files and add a data panel for displaying the results.",
"icon": "https://raw.githubusercontent.com/Josh5/unmanic.plugin.file_size_metrics/master/icon.png",
"id": "file_size_metrics",
"name": "File Size Metrics Data Panel",
"platform": [
"all"
],
"priorities": {
"on_worker_process": 1,
"on_postprocessor_task_results": 0
},
"tags": "data panel",
"version": "0.0.8"
}
"author": "Josh.5, EspadaV8",
"compatibility": [1, 2],
"description": "Aggregate changes in file size metrics for processed files and add a data panel for displaying the results.",
"icon": "https://raw.githubusercontent.com/Josh5/unmanic.plugin.file_size_metrics/master/icon.png",
"id": "file_size_metrics",
"name": "File Size Metrics Data Panel",
"platform": ["all"],
"priorities": {
"on_worker_process": 1,
"on_postprocessor_task_results": 0
},
"tags": "data panel",
"version": "0.0.9"
}
62 changes: 41 additions & 21 deletions source/file_size_metrics/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 9 additions & 5 deletions source/file_size_metrics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,19 @@
"build": "vendor-copy"
},
"dependencies": {
"datatables": "^1.10.18",
"highcharts": "^9.2.2",
"jquery": "^3.6.0",
"datatables.net-dt": "^1.13.8",
"highcharts": "^11.3.0",
"jquery": "^3.7.1",
"vendor-copy": "^3.0.1"
},
"vendorCopy": [
{
"from": "node_modules/datatables",
"to": "static/vendor/datatables"
"from": "node_modules/datatables.net",
"to": "static/vendor/datatables.net"
},
{
"from": "node_modules/datatables.net-dt",
"to": "static/vendor/datatables.net-dt"
},
{
"from": "node_modules/jquery",
Expand Down
13 changes: 8 additions & 5 deletions source/file_size_metrics/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,21 @@
<link rel="shortcut icon" href="static/favicon.ico">

<link rel="stylesheet" type="text/css"
href="./static/vendor/datatables/media/css/jquery.dataTables.min.css?{cache_buster}">
href="./static/vendor/datatables.net-dt/css/jquery.dataTables.min.css?{cache_buster}">

<style>
.hidden {
display: none;
}

table.dataTable {
background-color: #ffffff;
}

table.dataTable td {
word-break: break-word;
}


* {
box-sizing: border-box;
}
Expand Down Expand Up @@ -219,7 +222,7 @@

<hr>

<table id="history_completed_tasks_table" class="dataTable" style="width:100%">
<table id="history_completed_tasks_table" class="dataTable display" style="width:100%">
<thead>
<tr>
<!--Headers are overwritten in JS datatable config-->
Expand Down Expand Up @@ -260,7 +263,7 @@

<!--DATATABLE-->
<script type="text/javascript"
src="./static/vendor/datatables/media/js/jquery.dataTables.min.js?{cache_buster}"></script>
src="./static/vendor/datatables.net/js/jquery.dataTables.min.js?{cache_buster}"></script>

<!--CHARTS-->
<script type="text/javascript" src="./static/vendor/highcharts/highcharts.js?{cache_buster}"></script>
Expand Down Expand Up @@ -298,4 +301,4 @@
<!-- ######## END SCRIPTS -->

</body>
</html>
</html>

0 comments on commit b19e1a4

Please sign in to comment.