From b8cb46cb287b9407157e610c45e5133efe3c2304 Mon Sep 17 00:00:00 2001 From: Zack Spear Date: Thu, 22 May 2025 16:59:33 -0700 Subject: [PATCH] feat: remove NotificationsArchive page and related files - Deleted the NotificationsArchive.page, NotificationsArchive.php, and associated CSS file as they are no longer needed. - This change helps streamline the codebase and remove obsolete components. - Notifications replaced via unraid-api inclusion --- .../plugins/dynamix/NotificationsArchive.page | 124 ------------------ .../DefaultPageLayout/BodyInlineJS.php | 7 - .../DefaultPageLayout/HeadInlineJS.php | 4 - .../DefaultPageLayout/Navigation/Main.php | 6 - .../dynamix/include/NotificationsArchive.php | 55 -------- .../dynamix/sheets/NotificationsArchive.css | 11 -- 6 files changed, 207 deletions(-) delete mode 100644 emhttp/plugins/dynamix/NotificationsArchive.page delete mode 100644 emhttp/plugins/dynamix/include/NotificationsArchive.php delete mode 100644 emhttp/plugins/dynamix/sheets/NotificationsArchive.css diff --git a/emhttp/plugins/dynamix/NotificationsArchive.page b/emhttp/plugins/dynamix/NotificationsArchive.page deleted file mode 100644 index 0ca457c94..000000000 --- a/emhttp/plugins/dynamix/NotificationsArchive.page +++ /dev/null @@ -1,124 +0,0 @@ -Menu="UNRAID-OS" -Title="Archived Notifications" -Icon="icon-archive" -Tag="archive" ---- - - - - -
- - - - - - - - - - - - - - - - -
_(Time)__(Event)__(Subject)__(Description)__(Importance)_
-
- diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php index ba4135640..e3fdf0fc3 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/BodyInlineJS.php @@ -271,13 +271,6 @@ $(function() { addBannerWarning(" . .",true,true); - var opts = []; - context.settings({above:false}); - opts.push({header:""}); - opts.push({text:"",icon:'fa-folder-open-o',action:function(e){e.preventDefault();openNotifier();}}); - opts.push({text:"",icon:'fa-file-text-o',action:function(e){e.preventDefault();viewHistory();}}); - opts.push({text:"",icon:'fa-check-square-o',action:function(e){e.preventDefault();closeNotifier();}}); - context.attach('#board',opts); if (location.pathname.search(/\/(AddVM|UpdateVM|AddContainer|UpdateContainer)/)==-1) { $('blockquote.inline_help').each(function(i) { $(this).attr('id','helpinfo'+i); diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/HeadInlineJS.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/HeadInlineJS.php index f4f0b117c..725f7a559 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/HeadInlineJS.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/HeadInlineJS.php @@ -477,10 +477,6 @@ function digits(number) { return 'three'; } -function viewHistory() { - location.replace('/Tools/NotificationsArchive'); -} - function flashReport() { $.post('/webGui/include/Report.php',{cmd:'config'},function(check){ if (check>0) addBannerWarning(" "); diff --git a/emhttp/plugins/dynamix/include/DefaultPageLayout/Navigation/Main.php b/emhttp/plugins/dynamix/include/DefaultPageLayout/Navigation/Main.php index 2b248b534..3d4b5a0e0 100644 --- a/emhttp/plugins/dynamix/include/DefaultPageLayout/Navigation/Main.php +++ b/emhttp/plugins/dynamix/include/DefaultPageLayout/Navigation/Main.php @@ -71,12 +71,6 @@ - - isSidebarTheme()): ?> diff --git a/emhttp/plugins/dynamix/include/NotificationsArchive.php b/emhttp/plugins/dynamix/include/NotificationsArchive.php deleted file mode 100644 index 209531a70..000000000 --- a/emhttp/plugins/dynamix/include/NotificationsArchive.php +++ /dev/null @@ -1,55 +0,0 @@ - -5) { - $td_ = ""; $_td = ""; - } else { - $td_ = ""; $_td = ""; - } - $c = 0; - foreach ($fields as $field) { - if ($c==5) break; - $text = $field ? (explode('=',$field,2)[1]??"") : "-"; - $tag = ($c<4) ? "" : " data='".str_replace(['alert','warning','normal'],['0','1','2'],$text)."'"; - echo (!$c++) ? "".str_replace('*',$text,$td_).date($dynamix['notify']['date'].' '.$dynamix['notify']['time'],$text)."$_td" : ""._($text).""; - } - echo ""; - if ($extra) { - $text = explode('=',$field,2)[1]??""; - echo "$text"; - $row++; - } -} -if ($rows==0) echo "
"._("No notifications present")."
"; -echo "\0$rows"; -?> diff --git a/emhttp/plugins/dynamix/sheets/NotificationsArchive.css b/emhttp/plugins/dynamix/sheets/NotificationsArchive.css deleted file mode 100644 index be54762c9..000000000 --- a/emhttp/plugins/dynamix/sheets/NotificationsArchive.css +++ /dev/null @@ -1,11 +0,0 @@ -select.filter { - margin: 0; -} -span.right { - margin-top: -6px; - font-size: 1.3rem !important; - padding: 0 !important; -} -i.red-text { - font-size: 1.6rem; -}