[Plugin] FolderView


Recommended Posts

3 minutes ago, Zerreth said:

(6.12.3) I've had it 3 times now that on 2 diffrent servers that it has been disabled and is listed under Plugin File Install Errors.

/boot/config/plugins-error/folder.view.plg

 

Tried to uninstall and reinstall it now on my server, the installation is successful, try looking in the logs for errors.

Link to comment

Yeah reinstalling the plugin fixes it. But my feeling is that i'm gonna be back here in a week. :)


debug-DOCKER.json

{"veriosn":"2023.08.11","folders":{"CyWcuHp71eIxPOEjvCnf0YBa8":{"name":"Smart Home","icon":"https://fonts.gstatic.com/s/i/materialicons/home/v16/24px.svg","regex":"","settings":{"preview":1,"preview_border":true,"preview_border_color":"#ff7ae7","preview_hover":false,"preview_vertical_bars":true,"preview_update":true,"preview_grayscale":true,"preview_webui":true,"preview_logs":true,"expand_tab":false,"expand_dashboard":false},"containers":["HomeAssistant","NodeRed","ESPHome","Mosquitto","Zigbee2MQTT"]},"Rlw7ityxszdiaBRLeBEWZ4m7Zo":{"name":"Network","icon":"https://fonts.gstatic.com/s/i/materialicons/wifi/v12/24px.svg","regex":"","settings":{"preview":1,"preview_border":true,"preview_border_color":"#05ffee","preview_hover":false,"preview_vertical_bars":true,"preview_update":true,"preview_grayscale":true,"preview_webui":true,"preview_logs":true,"expand_tab":false,"expand_dashboard":false},"containers":["IPerf3","Unifi","OpenSpeedTest"]}},"unraidOrder":[],"originalOrder":["ESPHome","HomeAssistant","IPerf3","Mosquitto","NodeRed","OpenSpeedTest","Unifi","Zigbee2MQTT"],"newOnes":["ESPHome","HomeAssistant","IPerf3","Mosquitto","NodeRed","OpenSpeedTest","Unifi","Zigbee2MQTT"],"order":["ESPHome","HomeAssistant","IPerf3","Mosquitto","NodeRed","OpenSpeedTest","Unifi","Zigbee2MQTT"],"containersInfo":{"ESPHome":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"http://10.0.0.3:6052/","icon":"/state/plugins/dynamix.docker.manager/images/ESPHome-icon.png","shell":"bash","registry":"https://hub.docker.com/r/esphome/esphome","Support":"https://forums.unraid.net/topic/72033-support-digiblurs-docker-template-repository/","Project":"https://esphome.io/","DonateLink":"https://www.paypal.me/digiblurDIY","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-ESPHome.xml"},"IPerf3":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"","icon":"/state/plugins/dynamix.docker.manager/images/IPerf3-icon.png","shell":"bash","registry":"https://hub.docker.com/r/networkstatic/iperf3","Support":"https://forums.unraid.net/topic/130827-support-kilrahiperf3/","Project":"https://iperf.fr/","DonateLink":"","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-IPerf3.xml"},"Mosquitto":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"","icon":"/state/plugins/dynamix.docker.manager/images/Mosquitto-icon.png","shell":"sh","registry":"https://hub.docker.com/_/eclipse-mosquitto","Support":"https://github.com/simonsickle/unraid-templates/discussions/categories/q-a-support","Project":"https://mosquitto.org","DonateLink":"https://cash.app/$ssickle","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-Mosquitto.xml"},"NodeRed":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"http://10.0.0.3:1880","icon":"/state/plugins/dynamix.docker.manager/images/NodeRed-icon.png","shell":"sh","registry":"https://hub.docker.com/r/nodered/node-red/","Support":"http://forums.unraid.net/index.php?topic=38486.0","Project":"https://nodered.org","DonateLink":"","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-NodeRed.xml"},"OpenSpeedTest":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"http://10.0.0.3:3000","icon":"/state/plugins/dynamix.docker.manager/images/OpenSpeedTest-icon.png","shell":"sh","registry":"https://hub.docker.com/repository/docker/openspeedtest/latest","Support":"http://openspeedtest.com/Contact-us.php","Project":"http://openspeedtest.com/","DonateLink":"https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=TY2D56BYPKEXU","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-OpenSpeedTest.xml"},"Unifi":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"https://10.0.0.3:10000","icon":"/state/plugins/dynamix.docker.manager/images/Unifi-icon.png","shell":"bash","registry":"https://github.com/orgs/linuxserver/packages/container/package/unifi-controller","Support":"https://github.com/linuxserver/docker-unifi-controller/issues/new/choose","Project":"https://www.ubnt.com/enterprise/#unifi","DonateLink":"https://www.linuxserver.io/donate","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-Unifi.xml"},"Zigbee2MQTT":{"running":false,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"http://[IP]:[PORT:9442]/","icon":"/state/plugins/dynamix.docker.manager/images/Zigbee2MQTT-icon.png","shell":false,"registry":"https://hub.docker.com/r/koenkk/zigbee2mqtt/","Support":"https://forums.unraid.net/topic/72033-support-digiblurs-docker-template-repository/","Project":"https://github.com/koenkk/zigbee2mqtt","DonateLink":"https://www.paypal.me/digiblurDIY","ReadMe":"","updated":"true","template":"/boot/config/plugins/dockerMan/templates-user/my-Zigbee2MQTT.xml"},"HomeAssistant":{"running":true,"paused":false,"autostart":true,"cpuset":"2,3,4,5,8,9,10,11","url":"http://10.0.0.3:8123","icon":"/state/plugins/dynamix.docker.manager/images/HomeAssistant-icon.png","shell":"bash","registry":"https://github.com/orgs/linuxserver/packages/container/package/homeassistant","Support":"https://github.com/linuxserver/docker-homeassistant/issues/new/choose","Project":"https://www.home-assistant.io/","DonateLink":"https://www.linuxserver.io/donate","ReadMe":"","updated":"false","template":"/boot/config/plugins/dockerMan/templates-user/my-HomeAssistant.xml"}}}

Also an aside, "veriosn" should be "version", no ?

edit: ah this is an unraid thing, not a folder.view plugin thing.

Edited by Zerreth
Link to comment
3 minutes ago, Zerreth said:

Yeah reinstalling the plugin fixes it. But my feeling is that i'm gonne be back here in a week. :)

From what I have read yes, this is not something I can do, the installation script should work, you can try with this.

 

5 minutes ago, Zerreth said:

Also an aside, "veriosn" should be "version", no ?

Yes, I will fix it when I will push a new version.

Link to comment
8 hours ago, jbb said:

Feature request:
Similar to the regex option, add the ability to automatically add containers to folders based on docker labels.

whoami:
  image: containous/whoami
  labels:
    folderview.name: Downloaders


 

Containers labels aren't present in the function used to retrieve information about docker containers, so this is not possible, it will require to write code that will slow down the whole plugin, so not worth the effort.

Link to comment

I just want to say a big "Thank You" for your work on this ! It's appreciated by lot of people !

 

I was searching for how to reorganize my folder (not inside) and realize there is now a "lock" on the unraid display page to reorder items. In case someone is searching for it.

image.png.41528306fae9a85f3cebcd07f7d4781d.png

  • Upvote 3
Link to comment

What a shame that labels aren't returned in the unRAID API. That would make life so much easier :/.

 

But I have another feature request, if possible. I use Folderview (which is working great, thanks!) mostly for grouping my Compose applications that I've created outside of unRAID's DockerMan. However update reporting for those containers is wonky at best. And updates aren't working at all.

 

Would it be possible to hide the Update Available message for those containers, and perhaps expand the folder? Something like this:

 

image.thumb.png.6c222e483cd5aa608ff4e558af1fe86c.png

 

Here is an JSON API excerpt of two of those containers:

 

[
   {
      "running":true,
      "paused":false,
      "autostart":false,
      "cpuset":"16,17",
      "url":"http://[IP]:[PORT:8123]/",
      "icon":"/state/plugins/dynamix.docker.manager/images/homeassistant-icon.png",
      "shell":"/bin/sh",
      "registry":null,
      "Support":null,
      "Project":null,
      "DonateLink":null,
      "ReadMe":null,
      "updated":"false",
      "template":false
   },
   {
      "running":true,
      "paused":false,
      "autostart":true,
      "cpuset":"16,17,18,19",
      "url":"",
      "icon":"/state/plugins/dynamix.docker.manager/images/mosquitto-icon.png",
      "shell":"sh",
      "registry":"https://hub.docker.com/r/cmccambridge/mosquitto-unraid/",
      "Support":"https://github.com/cmccambridge/mosquitto-unraid/issues",
      "Project":"https://mosquitto.org",
      "DonateLink":"",
      "ReadMe":"",
      "updated":"true",
      "template":"/boot/config/plugins/dockerMan/templates-user/my-mosquitto.xml"
   }
]

 

Thanks again for all the effort <3

Link to comment
On 8/11/2023 at 4:49 PM, hernandito said:

Hi Guys,

 

Not sure if you have seen that one can customize the UI of the Docker page. @scolcipitato has been great in editing some of his code so that someone w/ some creative and CSS skills can do this. I cannot help myself, but I really enjoy tweaking these things.

preview.thumb.png.8559c97f16f33696f265bb54922cf409.png

I have created a repo w/ some customizations (more than the image above).

https://github.com/hernandito/folder.view.custom

 

If you have any ideas or suggestions, please let me know here. If you make your own variations and feel like sharing, please post them.

 

Enjoy.

 

I have updated my "custom css" files to minimize the "Uptime" column that was taking up valuable horizontal space. I also stylized and made the CPU/Memory Usage column narrower when using "Advanced View".

preview1a.thumb.png.0146cdbc20dd8affd1b25f6a4eed50fa.png

 

preview2.thumb.png.e6c0da71e95088ef474c093bf81a6097.png

Link to comment
On 8/16/2023 at 11:04 AM, scolcipitato said:

If you want to hide it from every folder, you can do it with custom CSS.

custom-css.css 117 B · 0 downloads

I won't implement a feature to hide it in the folder settings because this will mess up with the table alignment.

Thanks for the quick reply, but I kindly disagree with you that it would mess up the table alignment. The difference is that your HTML would be adjusted from:

 

<tr>
  <td class="ct-name folder-name">...</td>
  <td class="updatecolumn folder-update">...</td>
  <td colspan="3">...</td>
  <td class="advanced folder-advanced">...</td>
  <td class="folder-autostart">...</td>
</tr>


to

 

<tr>
  <td class="ct-name folder-name">...</td>
  <td colspan="4">...</td>
  <td class="advanced folder-advanced">...</td>
  <td class="folder-autostart">...</td>
</tr>

 

Than you'll get the same alignment as I have in my screenshot, without breaking anything.
 

Therefore i would kindly ask you to reconsider or look into it ☺ Thanks!

 

Insta-edit: I would do this with Custom CSS myself, but since there is not CSS equivalent to colspan, this seems pretty impossible to do so.

Edited by alex3305
Link to comment
1 hour ago, alex3305 said:

Thanks for the quick reply, but I kindly disagree with you that it would mess up the table alignment. The difference is that your HTML would be adjusted from:

 

<tr>
  <td class="ct-name folder-name">...</td>
  <td class="updatecolumn folder-update">...</td>
  <td colspan="3">...</td>
  <td class="advanced folder-advanced">...</td>
  <td class="folder-autostart">...</td>
</tr>


to

 

<tr>
  <td class="ct-name folder-name">...</td>
  <td colspan="4">...</td>
  <td class="advanced folder-advanced">...</td>
  <td class="folder-autostart">...</td>
</tr>

 

Than you'll get the same alignment as I have in my screenshot, without breaking anything.
 

Therefore i would kindly ask you to reconsider or look into it ☺ Thanks!

 

Insta-edit: I would do this with Custom CSS myself, but since there is not CSS equivalent to colspan, this seems pretty impossible to do so.

I was having problems because I was using the dev version, and I was working on this update, I implemented it now.

  • Like 1
Link to comment
18 hours ago, scolcipitato said:

I was having problems because I was using the dev version, and I was working on this update, I implemented it now.

Thank you so much for implementing this feature and making it work. You have really made my day!

 

Edit: Whoops. It seems that collapsing folders when enabling this feature doesn't work anymore.

Edited by alex3305
Link to comment

Heya, thanks for making the plugin, its great!
I think i found a bug with starting with folders expanded in the Docker view. It does not show the combined resource, and i cannot collapse the folder again. I can expand other folders, but after they have been expanded, they cant be collapsed again.

I have attached a picture of the error, can i give you any debug logs and if yes, how?

2023-08-18 21_49_49-KBKUnraid_Docker — Mozilla Firefox.png

Link to comment
9 minutes ago, Kris6673 said:

Heya, thanks for making the plugin, its great!
I think i found a bug with starting with folders expanded in the Docker view. It does not show the combined resource, and i cannot collapse the folder again. I can expand other folders, but after they have been expanded, they cant be collapsed again.

I have attached a picture of the error, can i give you any debug logs and if yes, how?

2023-08-18 21_49_49-KBKUnraid_Docker — Mozilla Firefox.png

Made an update, now it should be fixed.

Link to comment

Love this plugin, I had few small visual requests that are all pretty related:

 

1. Currently when a folder is expanded any of the state altering commands (start, stop, restart, etc) cause the container preview to show the spinning loading icon, but not the container under the expanded folder. Could this be changed to either show on both, or just the one interacted with (i.e. if I restarted from the expanded container that should be the one showing the loading state if only one is going to show it)?

2. During the loading state from the above, the icons for WebUI and logs also spin too currently which looks odd, can we have them not be affected?

3. If a folder's state changes while a folder is expanded a little refresh happens and the folder is now closed, can we persist the open state of a folder?

 

Thanks!

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.