From 2bec253098468877d09e33b7f173fa8328f132fa Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Fri, 19 Apr 2024 15:25:43 +0100 Subject: [PATCH 01/67] Update Custom.form.php --- emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php index 9e04f95d8..32c109aec 100644 --- a/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php +++ b/emhttp/plugins/dynamix.vm.manager/templates/Custom.form.php @@ -1913,6 +1913,8 @@ $(function() { $('.advancedview').change(function () { if ($(this).is(':checked')) { setTimeout(function() { + var xmlPanelHeight = window.outerHeight - 550; + editor.setSize(null,xmlPanelHeight); editor.refresh(); }, 100); } From 511a8e47ac8a474e702634dcde7723e58a5d0c18 Mon Sep 17 00:00:00 2001 From: "Alimighty.Yantao" <34707560+almightyYantao@users.noreply.github.com> Date: Sat, 20 Apr 2024 17:22:12 +0800 Subject: [PATCH 02/67] Add Wxwork Notification Agent MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增企业微信消息通知,在国内还是这些用的较多。 The new enterprise wechat message notification is still more used in China. --- .../dynamix/include/NotificationAgents.xml | 50 +++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/emhttp/plugins/dynamix/include/NotificationAgents.xml b/emhttp/plugins/dynamix/include/NotificationAgents.xml index 3de746551..fecccdeb0 100644 --- a/emhttp/plugins/dynamix/include/NotificationAgents.xml +++ b/emhttp/plugins/dynamix/include/NotificationAgents.xml @@ -624,4 +624,54 @@ done ]]> + + Wxwork + + CropId + AgentId + Secret + ProxyUrl + TITLE + MESSAGE + + + From 2a6c09f9c99e067cc14b08e6d7da57754a3fd4c5 Mon Sep 17 00:00:00 2001 From: Tom Mortensen Date: Mon, 22 Apr 2024 11:51:07 -0700 Subject: [PATCH 03/67] better handling of marking form fields 'disabled' --- emhttp/plugins/dynamix/DeviceInfo.page | 38 +++++++++++++------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/emhttp/plugins/dynamix/DeviceInfo.page b/emhttp/plugins/dynamix/DeviceInfo.page index 5d0a43802..85c2cc576 100755 --- a/emhttp/plugins/dynamix/DeviceInfo.page +++ b/emhttp/plugins/dynamix/DeviceInfo.page @@ -45,6 +45,9 @@ $prev = $i>0 ? $sheets[$i-1] : $sheets[$end]; $next = $i<$end ? $sheets[$i+1] : $sheets[0]; $text = isPool($name) ? _('This will ERASE content of ALL devices in the pool') : _('This will ERASE ALL device content'); +function disabled_if($condition) { + if ($condition !== false) echo ' disabled'; +} function sanitize(&$val) { $data = explode('.',str_replace([' ',','],['','.'],$val)); $last = array_pop($data); @@ -610,10 +613,10 @@ _(Spin down delay)_: _(File system status)_: :   - + _(File system type)_: -: > @@ -629,14 +632,14 @@ _(File system type)_: 1):?> _(File system type)_: -: > - > =2) echo mk_option(_var($disk,'fsProfile'),"raid0", _('raid0'))?> =2) echo mk_option(_var($disk,'fsProfile'),"raid1", _('raid1'))?> @@ -646,7 +649,7 @@ _(File system type)_: =3) echo mk_option(_var($disk,'fsProfile'),"raid5", _('raid5'))?> =4) echo mk_option(_var($disk,'fsProfile'),"raid6", _('raid6'))?> - > =2) echo mk_option(_var($disk,'fsProfile'),"", _('raid0'))?> @@ -654,34 +657,34 @@ _(File system type)_: =3) echo mk_option(_var($disk,'fsProfile'),"raidz2", _('raidz2'))?> =4) echo mk_option(_var($disk,'fsProfile'),"raidz3", _('raidz3'))?> - > _(File system type)_: -: > - > =2) echo mk_option(_var($disk,'fsProfile'),"", _('raid0'))?> - > _(File system type)_: -: > - > =2) echo mk_option(_var($disk,'fsProfile'),"", _('raid0'))?> - > _(File system type)_: -: > @@ -689,8 +692,7 @@ _(File system type)_: _(Default appdata storage location)_: -: +: _(Modify with caution: unable to validate path until Array is Started)_ diff --git a/emhttp/plugins/dynamix.vm.manager/VMSettings.page b/emhttp/plugins/dynamix.vm.manager/VMSettings.page index ea87c12a5..44b21450a 100644 --- a/emhttp/plugins/dynamix.vm.manager/VMSettings.page +++ b/emhttp/plugins/dynamix.vm.manager/VMSettings.page @@ -115,7 +115,7 @@ _(Libvirt vdisk size)_: :vms_libvirt_vdisk_size_help: _(Libvirt storage location)_: -: +: _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ @@ -125,14 +125,14 @@ _(Libvirt storage location)_: _(Default VM storage path)_: -: +: _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ :vms_libvirt_storage_help: _(Default ISO storage path)_: -: +: _(Modify with caution: unable to validate path until Array is Started)_ _(Path does not exist)_ diff --git a/emhttp/plugins/dynamix/include/FileTree.php b/emhttp/plugins/dynamix/include/FileTree.php index bb2bedfc4..23835897d 100644 --- a/emhttp/plugins/dynamix/include/FileTree.php +++ b/emhttp/plugins/dynamix/include/FileTree.php @@ -9,6 +9,7 @@ * * History: * + * 1.2.1 - pass in a list of folders to exclude from the dropdown list * 1.2.0 - adapted by Bergware for use in Unraid - support UTF-8 encoding & hardening * 1.1.1 - SECURITY: forcing root to prevent users from determining system's file structure (per DaveBrad) * 1.1.0 - adding multiSelect (checkbox) support (08/22/2014) @@ -48,6 +49,9 @@ $filters = (array)$_POST['filter']; $match = $_POST['match']; $checkbox = $_POST['multiSelect']=='true' ? "" : ""; +/* Add the pickexclude functionality to exclude folders from the list. */ +$excludedFolders = explode(",", $_POST['pickexclude']); + echo "