Skip to content

Commit

Permalink
chore:add sensor category
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienKN committed Sep 25, 2024
1 parent 86e8403 commit 1ac8f63
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions api/config/categories/sensor.cjs
Original file line number Diff line number Diff line change
@@ -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'] } } }
}]
}
19 changes: 19 additions & 0 deletions api/config/sublegends/sensor.cjs
Original file line number Diff line number Diff line change
@@ -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'] } } }
}]
}

0 comments on commit 1ac8f63

Please sign in to comment.