2025-11-25 13:34:07 +08:00
|
|
|
console.info("%c 消逝卡-平板端 \n%c v 0.0.8 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
2025-11-11 22:58:58 +08:00
|
|
|
|
|
|
|
|
const loadCards = async () => {
|
|
|
|
|
await import('./xiaoshi-pad-grid-card.js');
|
2025-11-23 22:49:10 +08:00
|
|
|
await import('./xiaoshi-device-update-card.js');
|
|
|
|
|
await import('./xiaoshi-device-offline-card.js');
|
2025-11-24 13:25:31 +08:00
|
|
|
await import('./xiaoshi-device-balance-card.js');
|
2025-11-25 13:34:07 +08:00
|
|
|
await import('./xiaoshi-device-todo-card.js');
|
2025-11-25 19:22:55 +08:00
|
|
|
await import('./xiaoshi-device-consumables-card.js');
|
2025-11-11 22:58:58 +08:00
|
|
|
|
|
|
|
|
window.customCards = window.customCards || [];
|
|
|
|
|
window.customCards.push(...cardConfigs);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const cardConfigs = [
|
|
|
|
|
{
|
|
|
|
|
type: 'xiaoshi-pad-grid-card',
|
|
|
|
|
name: '消逝卡(平板端)-分布卡',
|
|
|
|
|
description: '温度分布、湿度分布'
|
|
|
|
|
},
|
|
|
|
|
{
|
2025-11-23 22:49:10 +08:00
|
|
|
type: 'xiaoshi-update-card',
|
|
|
|
|
name: '消逝卡HA更新监控卡片',
|
|
|
|
|
description: '显示需要更新的组件和版本',
|
|
|
|
|
preview: true
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'xiaoshi-offline-card',
|
|
|
|
|
name: '消逝卡HA离线设备卡片',
|
|
|
|
|
description: '显示所有离线的设备和实体',
|
|
|
|
|
preview: true
|
2025-11-24 13:25:31 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'xiaoshi-balance-card',
|
|
|
|
|
name: '消逝电话余额卡',
|
|
|
|
|
description: '消逝电话余额卡',
|
|
|
|
|
preview: true
|
2025-11-25 13:34:07 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'xiaoshi-todo-card',
|
|
|
|
|
name: '消逝待办事项',
|
|
|
|
|
description: '消逝待办事项',
|
|
|
|
|
preview: true
|
2025-11-25 19:22:55 +08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
type: 'xiaoshi-consumables-card',
|
|
|
|
|
name: '消逝耗材统计',
|
|
|
|
|
description: '消逝耗材统计',
|
|
|
|
|
preview: true
|
2025-11-11 22:58:58 +08:00
|
|
|
}
|
|
|
|
|
];
|
|
|
|
|
|
2025-11-23 22:49:10 +08:00
|
|
|
loadCards();
|