From 1ac8f63288faa0c9f612a4f2981437556cd8401c Mon Sep 17 00:00:00 2001 From: ArienKN Date: Wed, 25 Sep 2024 15:54:00 +0200 Subject: [PATCH] chore:add sensor category --- api/config/categories/sensor.cjs | 19 +++++++++++++++++++ api/config/sublegends/sensor.cjs | 19 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 api/config/categories/sensor.cjs create mode 100644 api/config/sublegends/sensor.cjs diff --git a/api/config/categories/sensor.cjs b/api/config/categories/sensor.cjs new file mode 100644 index 00000000..0f607e30 --- /dev/null +++ b/api/config/categories/sensor.cjs @@ -0,0 +1,19 @@ +module.exports = function ({ domain }) { + return [{ + name: 'Categories.SENSOR_LAYERS', + i18n: { + fr: { + Categories: { + SENSOR_LAYERS: 'Capteurs' + } + }, + en: { + Categories: { + SENSOR_LAYERS: 'Sensors' + } + } + }, + icon: 'las la-satellite-dish', + options: { exclusive: false, filter: { type: 'OverlayLayer', tags: { $in: ['sensor'] } } } + }] + } \ No newline at end of file diff --git a/api/config/sublegends/sensor.cjs b/api/config/sublegends/sensor.cjs new file mode 100644 index 00000000..ad4a3093 --- /dev/null +++ b/api/config/sublegends/sensor.cjs @@ -0,0 +1,19 @@ +module.exports = function () { + return [{ + name: 'Sublegends.SENSOR', + i18n: { + fr: { + Sublegends: { + SENSOR: 'Capteurs' + } + }, + en: { + Sublegends: { + SENSOR: 'Sensors' + } + } + }, + headerClass: 'bg-grey-3 text-weight-regular', + options: { open: true, filter: { type: 'OverlayLayer' , tags: { $in: ['sensor'] } } } + }] + } \ No newline at end of file