nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
30 stars 9 forks source link

[FR] Log a version info in a browser's console #12

Closed ildar170975 closed 6 months ago

ildar170975 commented 6 months ago

Sorry if I named it in a wrong way - I mean these messages:

изображение

Custom cards usually post their version info. It helps users to see which version was loaded (also to avoid loading an old cached version).

nathan-gs commented 6 months ago

Resolved in v0.5.0: https://github.com/nathan-gs/ha-map-card/releases/tag/v0.5.0

ildar170975 commented 6 months ago

@nathan-gs Thanks a lot for a quick patch! But is it possible to make it a bit more vivid? Currently it is displayed very "discrete" :

изображение

All other custom cards are presented with vivid toxic colors, like shouting "yes, we a here!!!!!".

Smth like

console.info(
  `%c nathan-gs/ha-map-card: ${CARD_VERSION}`,
  'color: orange; font-weight: bold; background: black'
)

(untested, just took an example from another card)

nathan-gs commented 6 months ago

Good idea, updated in v0.5.1

ildar170975 commented 6 months ago

Much better!

изображение