From 74c53128c8fbd016a72a1d03930b31c541e714cf Mon Sep 17 00:00:00 2001 From: xiaoshi <115949669+xiaoshi930@users.noreply.github.com> Date: Sat, 6 Dec 2025 19:43:41 +0800 Subject: [PATCH] Update xiaoshi-pad-card.js --- xiaoshi-pad-card.js | 47 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 36 insertions(+), 11 deletions(-) diff --git a/xiaoshi-pad-card.js b/xiaoshi-pad-card.js index 1ba5849..4b07c88 100644 --- a/xiaoshi-pad-card.js +++ b/xiaoshi-pad-card.js @@ -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 () => { await import('./xiaoshi-pad-grid-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-button.js'); await import('./xiaoshi-device-consumables-card.js'); await import('./xiaoshi-device-consumables-button.js'); await import('./xiaoshi-device-ha-info-card.js'); - await import('./xiaoshi-device-update-card.js'); - await import('./xiaoshi-device-offline-card.js'); + await import('./xiaoshi-device-ha-info-button.js'); window.customCards = window.customCards || []; window.customCards.push(...cardConfigs); @@ -22,26 +23,50 @@ const cardConfigs = [ }, { type: 'xiaoshi-ha-info-card', - name: '消逝卡HA信息卡片', - description: '消逝卡HA信息卡片', + name: '消逝HA信息卡片', + description: '消逝HA信息卡片', + preview: true + }, + { + type: 'xiaoshi-ha-info-button', + name: '消逝HA信息按钮', + description: '消逝HA信息按钮', preview: true }, { type: 'xiaoshi-balance-card', - name: '消逝电话余额卡', - description: '消逝电话余额卡', + name: '消逝余额信息卡片', + description: '消逝余额信息卡片', + preview: true + }, + { + type: 'xiaoshi-balance-button', + name: '消逝余额信息按钮', + description: '消逝余额信息按钮', preview: true }, { type: 'xiaoshi-todo-card', - name: '消逝待办事项', - description: '消逝待办事项', + name: '消逝待办信息卡片', + description: '消逝待办信息卡片', + preview: true + }, + { + type: 'xiaoshi-todo-button', + name: '消逝待办信息按钮', + description: '消逝待办信息按钮', preview: true }, { type: 'xiaoshi-consumables-card', - name: '消逝耗材统计', - description: '消逝耗材统计', + name: '消逝耗材信息卡片', + description: '消逝耗材信息卡片', + preview: true + }, + { + type: 'xiaoshi-consumables-button', + name: '消逝耗材信息按钮', + description: '消逝耗材信息按钮', preview: true } ];