mirror of
https://github.com/xiaoshi930/xiaoshi-pad-card.git
synced 2025-11-28 16:49:42 +00:00
Add files via upload
This commit is contained in:
24
xiaoshi-pad-card.js
Normal file
24
xiaoshi-pad-card.js
Normal file
@@ -0,0 +1,24 @@
|
||||
console.info("%c 消逝卡-平板端 \n%c v 0.0.0 ", "color: red; font-weight: bold; background: black", "color: white; font-weight: bold; background: black");
|
||||
|
||||
const loadCards = async () => {
|
||||
await import('./xiaoshi-pad-grid-card.js');
|
||||
await import('./xiaoshi-pad-slider-card.js');
|
||||
|
||||
window.customCards = window.customCards || [];
|
||||
window.customCards.push(...cardConfigs);
|
||||
};
|
||||
|
||||
const cardConfigs = [
|
||||
{
|
||||
type: 'xiaoshi-pad-grid-card',
|
||||
name: '消逝卡(平板端)-分布卡',
|
||||
description: '温度分布、湿度分布'
|
||||
},
|
||||
{
|
||||
type: 'xiaoshi-pad-slider-card',
|
||||
name: '消逝卡(平板端)-进度条',
|
||||
description: '进度条'
|
||||
}
|
||||
];
|
||||
|
||||
loadCards();
|
||||
Reference in New Issue
Block a user