浏览代码

Hiding Dweeb Containers

* default images for dashCards.
* hiding DweebUI and DweebCache containers from displaying on dashboard.
lllllllillllllillll 1 年之前
父节点
当前提交
cf0c9dda4b
共有 2 个文件被更改,包括 5 次插入3 次删除
  1. 1 1
      components/dashCard.js
  2. 4 2
      functions/system_information.js

+ 1 - 1
components/dashCard.js

@@ -102,7 +102,7 @@ module.exports.dashCard = function dashCard(data) {
       <div class="card">
         <div class="card-body">
           <div class="card-stamp card-stamp-sm">
-            <img heigh="150px" width="150px" src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/${service}.png"></img>
+            <img heigh="150px" width="150px" src="https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/${service}.png" onerror="this.onerror=null;this.src='https://raw.githubusercontent.com/lllllllillllllillll/DweebUI-Icons/main/dweebui.png';"></img>
           </div>
           
           <div class="d-flex align-items-center">

+ 4 - 2
functions/system_information.js

@@ -78,8 +78,10 @@ module.exports.containerList = async function () {
         }
 
         let dockerCard = dashCard(container_info);
-        card_list += dockerCard;
-        
+
+        if ((container_info.name != 'DweebUI') && (container_info.name != 'DweebCache')) {
+            card_list += dockerCard;
+        }
     }
 
     return card_list;