From 7a19c9331f24a0b9e4127f35f664a42f6b66e6c7 Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Tue, 11 Feb 2025 14:47:34 -0500 Subject: [PATCH] feat: fix docusaurus build + update snapshot --- .github/workflows/create-docusaurus-pr.yml | 2 - .../downloaded/.login.php.last-download-time | 2 +- .../downloaded/DefaultPageLayout.php | 116 ++++++++++-------- .../DefaultPageLayout.php.last-download-time | 2 +- .../Notifications.page.last-download-time | 2 +- .../auth-request.php.last-download-time | 2 +- ...efaultPageLayout.php.modified.snapshot.php | 116 ++++++++++-------- .../patches/default-page-layout.patch | 10 +- 8 files changed, 137 insertions(+), 115 deletions(-) diff --git a/.github/workflows/create-docusaurus-pr.yml b/.github/workflows/create-docusaurus-pr.yml index 241567cf7..f6e9baf43 100644 --- a/.github/workflows/create-docusaurus-pr.yml +++ b/.github/workflows/create-docusaurus-pr.yml @@ -1,5 +1,3 @@ -name: Update API Documentation - name: Update API Documentation on: push: diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time index ebf6dfc81..e93c4431c 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/.login.php.last-download-time @@ -1 +1 @@ -1738683073575 \ No newline at end of file +1739303188175 \ No newline at end of file diff --git a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php index 6cb750a5c..b8f39ce4a 100644 --- a/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php +++ b/api/src/unraid-api/unraid-file-modifier/modifications/__test__/__fixtures__/downloaded/DefaultPageLayout.php @@ -20,6 +20,7 @@ $themes2 = in_array($theme,['gray','azure']); $config = "/boot/config"; $entity = $notify['entity'] & 1 == 1; $alerts = '/tmp/plugins/my_alerts.txt'; +$wlan0 = file_exists('/sys/class/net/wlan0'); // adjust the text color in docker log window $fgcolor = in_array($theme,['white','azure']) ? '#1c1c1c' : '#f2f2f2'; @@ -77,6 +78,7 @@ html{font-size:%} _(Please try a different browser)_",type:'error',html:true,confirmButtonText:"_(Ok)_"}); + swal({title:"_(Unsupported Feature)_",text:"_(Sorry, this feature is not supported by MSIE/Edge)_.
_(Please try a different browser)_",type:'error',html:true,animation:'none',confirmButtonText:"_(Ok)_"}); return; } // open terminal window (run in background) @@ -409,7 +411,7 @@ function openDone(data) { if (data == '_DONE_') { $('div.spinner.fixed').hide(); $('button.confirm').text("").prop('disabled',false).show(); - if ( typeof ca_done_override !== 'undefined' ) { + if (typeof ca_done_override !== 'undefined') { if (ca_done_override == true) { $("button.confirm").trigger("click"); ca_done_override = false; @@ -529,7 +531,7 @@ function hideUpgrade(set) { /** @note can likely be removed, not used in webgui } function confirmUpgrade(confirm) { if (confirm) { - swal({title:" Unraid OS",text:"?",type:'warning',html:true,showCancelButton:true,closeOnConfirm:false,confirmButtonText:"",cancelButtonText:""},function(){ + swal({title:" Unraid OS",text:"?",type:'warning',html:true,animation:'none',showCancelButton:true,closeOnConfirm:false,confirmButtonText:"",cancelButtonText:""},function(){ openPlugin("plugin update unRAIDServer.plg"," Unraid OS"); }); } else { @@ -654,6 +656,7 @@ $.ajaxPrefilter(function(s, orig, xhr){ + 0) echo "\n