mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-15 22:51:37 -07:00
Refactor network tree data structure and improve device status handling
- Updated the network tree data structure to use consistent naming conventions for device properties (e.g., devName, devMac). - Enhanced the initTree function to utilize the new property names and improved the rendering of device nodes. - Refactored the getStatusBadgeParts function to include additional parameters for archived and new device statuses. - Introduced convenience functions (badgeFromDevice and badgeFromDataAttrs) to streamline badge generation from device objects and data attributes. - Updated various language files to include new status labels and ensure consistency across translations. - Modified the renderSmallBox function to allow for custom icon HTML, improving flexibility in UI components.
This commit is contained in:
@@ -316,6 +316,7 @@
|
||||
"Gen_AddDevice": "إضافة جهاز",
|
||||
"Gen_Add_All": "إضافة الكل",
|
||||
"Gen_All_Devices": "جميع الأجهزة",
|
||||
"Gen_Archived": "",
|
||||
"Gen_AreYouSure": "هل أنت متأكد؟",
|
||||
"Gen_Backup": "نسخة احتياطية",
|
||||
"Gen_Cancel": "إلغاء",
|
||||
@@ -326,8 +327,10 @@
|
||||
"Gen_Delete": "حذف",
|
||||
"Gen_DeleteAll": "حذف الكل",
|
||||
"Gen_Description": "الوصف",
|
||||
"Gen_Down": "",
|
||||
"Gen_Error": "خطأ",
|
||||
"Gen_Filter": "تصفية",
|
||||
"Gen_Flapping": "",
|
||||
"Gen_Generate": "إنشاء",
|
||||
"Gen_InvalidMac": "عنوان MAC غير صالح.",
|
||||
"Gen_Invalid_Value": "تم إدخال قيمة غير صالحة",
|
||||
@@ -350,6 +353,7 @@
|
||||
"Gen_SelectIcon": "اختيار أيقونة",
|
||||
"Gen_SelectToPreview": "اختر للمعاينة",
|
||||
"Gen_Selected_Devices": "الأجهزة المحددة",
|
||||
"Gen_Sleeping": "",
|
||||
"Gen_Subnet": "الشبكة الفرعية",
|
||||
"Gen_Switch": "تبديل",
|
||||
"Gen_Upd": "تحديث",
|
||||
|
||||
Reference in New Issue
Block a user