mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2026-01-13 07:04:59 +00:00
Update xiaoshi-pad-card.js
This commit is contained in:
@@ -1,14 +1,15 @@
|
|||||||
console.info("%c 消逝卡-平板端 \n%c v 0.1.7 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
console.info("%c 消逝卡-平板端 \n%c v 0.1.8 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||||
|
|
||||||
const loadCards = async () => {
|
const loadCards = async () => {
|
||||||
await import('./xiaoshi-pad-grid-card.js');
|
await import('./xiaoshi-pad-grid-card.js');
|
||||||
await import('./xiaoshi-device-balance-card.js');
|
await import('./xiaoshi-device-balance-card.js');
|
||||||
|
await import('./xiaoshi-device-balance-button.js');
|
||||||
await import('./xiaoshi-device-todo-card.js');
|
await import('./xiaoshi-device-todo-card.js');
|
||||||
|
await import('./xiaoshi-device-todo-button.js');
|
||||||
await import('./xiaoshi-device-consumables-card.js');
|
await import('./xiaoshi-device-consumables-card.js');
|
||||||
await import('./xiaoshi-device-consumables-button.js');
|
await import('./xiaoshi-device-consumables-button.js');
|
||||||
await import('./xiaoshi-device-ha-info-card.js');
|
await import('./xiaoshi-device-ha-info-card.js');
|
||||||
await import('./xiaoshi-device-update-card.js');
|
await import('./xiaoshi-device-ha-info-button.js');
|
||||||
await import('./xiaoshi-device-offline-card.js');
|
|
||||||
|
|
||||||
window.customCards = window.customCards || [];
|
window.customCards = window.customCards || [];
|
||||||
window.customCards.push(...cardConfigs);
|
window.customCards.push(...cardConfigs);
|
||||||
@@ -22,26 +23,50 @@ const cardConfigs = [
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'xiaoshi-ha-info-card',
|
type: 'xiaoshi-ha-info-card',
|
||||||
name: '消逝卡HA信息卡片',
|
name: '消逝HA信息卡片',
|
||||||
description: '消逝卡HA信息卡片',
|
description: '消逝HA信息卡片',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-ha-info-button',
|
||||||
|
name: '消逝HA信息按钮',
|
||||||
|
description: '消逝HA信息按钮',
|
||||||
preview: true
|
preview: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'xiaoshi-balance-card',
|
type: 'xiaoshi-balance-card',
|
||||||
name: '消逝电话余额卡',
|
name: '消逝余额信息卡片',
|
||||||
description: '消逝电话余额卡',
|
description: '消逝余额信息卡片',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-balance-button',
|
||||||
|
name: '消逝余额信息按钮',
|
||||||
|
description: '消逝余额信息按钮',
|
||||||
preview: true
|
preview: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'xiaoshi-todo-card',
|
type: 'xiaoshi-todo-card',
|
||||||
name: '消逝待办事项',
|
name: '消逝待办信息卡片',
|
||||||
description: '消逝待办事项',
|
description: '消逝待办信息卡片',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-todo-button',
|
||||||
|
name: '消逝待办信息按钮',
|
||||||
|
description: '消逝待办信息按钮',
|
||||||
preview: true
|
preview: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: 'xiaoshi-consumables-card',
|
type: 'xiaoshi-consumables-card',
|
||||||
name: '消逝耗材统计',
|
name: '消逝耗材信息卡片',
|
||||||
description: '消逝耗材统计',
|
description: '消逝耗材信息卡片',
|
||||||
|
preview: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
type: 'xiaoshi-consumables-button',
|
||||||
|
name: '消逝耗材信息按钮',
|
||||||
|
description: '消逝耗材信息按钮',
|
||||||
preview: true
|
preview: true
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user