Browse Source

Migrate images for new widgets

pull/9542/head
ViacheslavKlimov 3 years ago
parent
commit
e1ceacedca
  1. 2
      application/src/main/data/images/names.json
  2. BIN
      application/src/main/data/images/widgets/doughnut.png
  3. BIN
      application/src/main/data/images/widgets/horizontal_doughnut.png
  4. 2
      application/src/main/data/json/system/widget_types/doughnut.json
  5. 2
      application/src/main/data/json/system/widget_types/doughnut_deprecated.json
  6. 2
      application/src/main/data/json/system/widget_types/horizontal_doughnut.json
  7. 2
      application/src/main/java/org/thingsboard/server/service/install/update/SystemImagesMigrator.java

2
application/src/main/data/images/names.json

@ -76,6 +76,7 @@
"digital_gauges.simple_gauge_justgage.png" : "Simple gauge - image",
"digital_gauges.simple_neon_gauge_justgage.png" : "Simple neon gauge - image",
"digital_gauges.vertical_bar_justgage.png" : "Vertical bar - image",
"doughnut.png" : "Doughnut - image",
"edge_widgets.edges_overview.png" : "Edge Quick Overview - image",
"edge_widgets.png" : "Edge widgets - image",
"entity_admin_widgets.asset_admin_table.png" : "Asset admin table - image",
@ -129,6 +130,7 @@
"horizontal_co2_card_with_background.png" : "Horizontal CO2 card with background - image",
"horizontal_cylinder_tank.png" : "Horizontal cylinder tank - image",
"horizontal_dish_ends_tank.png" : "Horizontal dish ends tank - image",
"horizontal_doughnut.png" : "Horizontal doughnut - image",
"horizontal_ellipse_tank.png" : "Horizontal ellipse tank - image",
"horizontal_flooding_level_card.png" : "Horizontal flooding level card - image",
"horizontal_flooding_level_card_with_background#background_image.png" : "Horizontal flooding level card with background - background image",

BIN
application/src/main/data/images/widgets/doughnut.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

BIN
application/src/main/data/images/widgets/horizontal_doughnut.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

2
application/src/main/data/json/system/widget_types/doughnut.json

File diff suppressed because one or more lines are too long

2
application/src/main/data/json/system/widget_types/doughnut_deprecated.json

File diff suppressed because one or more lines are too long

2
application/src/main/data/json/system/widget_types/horizontal_doughnut.json

File diff suppressed because one or more lines are too long

2
application/src/main/java/org/thingsboard/server/service/install/update/SystemImagesMigrator.java

@ -19,14 +19,12 @@ import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.ObjectNode;
import com.google.common.hash.Hashing;
import lombok.SneakyThrows;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.thingsboard.common.util.JacksonUtil;
import org.thingsboard.server.common.data.util.MediaTypeUtils;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

Loading…
Cancel
Save