chore: Schema: deduplicate impacts
keys.
Also: - move the `type` key before the `impacts` one. - avoid one-line objects
This commit is contained in:
parent
6841b5fc0f
commit
6e71009467
1 changed files with 29 additions and 10 deletions
|
@ -13,7 +13,6 @@ export const SCHEMA = {
|
||||||
impacts: ['ui'],
|
impacts: ['ui'],
|
||||||
label: translate('Do you want to display a caption bar?'),
|
label: translate('Do you want to display a caption bar?'),
|
||||||
default: false,
|
default: false,
|
||||||
impacts: [],
|
|
||||||
},
|
},
|
||||||
captionMenus: {
|
captionMenus: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
@ -81,7 +80,11 @@ export const SCHEMA = {
|
||||||
label: translate('Do you want to display popup footer?'),
|
label: translate('Do you want to display popup footer?'),
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
easing: { impacts: [], type: Boolean, default: false },
|
easing: {
|
||||||
|
type: Boolean,
|
||||||
|
impacts: [],
|
||||||
|
default: false
|
||||||
|
},
|
||||||
editinosmControl: {
|
editinosmControl: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
impacts: ['ui'],
|
impacts: ['ui'],
|
||||||
|
@ -96,7 +99,10 @@ export const SCHEMA = {
|
||||||
label: translate('Display the embed control'),
|
label: translate('Display the embed control'),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
facetKey: { impacts: ['ui'], type: String },
|
facetKey: {
|
||||||
|
type: String,
|
||||||
|
impacts: ['ui'],
|
||||||
|
},
|
||||||
fill: {
|
fill: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
impacts: ['data'],
|
impacts: ['data'],
|
||||||
|
@ -123,7 +129,10 @@ export const SCHEMA = {
|
||||||
inheritable: true,
|
inheritable: true,
|
||||||
default: 0.3,
|
default: 0.3,
|
||||||
},
|
},
|
||||||
filterKey: { impacts: [], type: String },
|
filterKey: {
|
||||||
|
type: String,
|
||||||
|
impacts: [],
|
||||||
|
},
|
||||||
fromZoom: {
|
fromZoom: {
|
||||||
type: Number,
|
type: Number,
|
||||||
impacts: [], // not needed
|
impacts: [], // not needed
|
||||||
|
@ -212,8 +221,15 @@ export const SCHEMA = {
|
||||||
label: translate('Label key'),
|
label: translate('Label key'),
|
||||||
inheritable: true,
|
inheritable: true,
|
||||||
},
|
},
|
||||||
licence: { impacts: ['ui'], type: String, label: translate('licence') },
|
licence: {
|
||||||
limitBounds: { impacts: ['limit-bounds'], type: Object },
|
type: String,
|
||||||
|
impacts: ['ui'],
|
||||||
|
label: translate('licence'),
|
||||||
|
},
|
||||||
|
limitBounds: {
|
||||||
|
type: Object,
|
||||||
|
impacts: ['limit-bounds'],
|
||||||
|
},
|
||||||
locateControl: {
|
locateControl: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
impacts: ['ui'],
|
impacts: ['ui'],
|
||||||
|
@ -233,8 +249,8 @@ export const SCHEMA = {
|
||||||
label: translate('Display the measure control'),
|
label: translate('Display the measure control'),
|
||||||
},
|
},
|
||||||
miniMap: {
|
miniMap: {
|
||||||
impacts: ['ui'],
|
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
impacts: ['ui'],
|
||||||
label: translate('Do you want to display a minimap?'),
|
label: translate('Do you want to display a minimap?'),
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
@ -250,8 +266,8 @@ export const SCHEMA = {
|
||||||
label: translate('name'),
|
label: translate('name'),
|
||||||
},
|
},
|
||||||
onLoadPanel: {
|
onLoadPanel: {
|
||||||
impacts: [], // This is what happens during the map instantiation
|
|
||||||
type: String,
|
type: String,
|
||||||
|
impacts: [], // This is what happens during the map instantiation
|
||||||
label: translate('Do you want to display a panel on load?'),
|
label: translate('Do you want to display a panel on load?'),
|
||||||
choices: [
|
choices: [
|
||||||
['none', translate('None')],
|
['none', translate('None')],
|
||||||
|
@ -290,7 +306,10 @@ export const SCHEMA = {
|
||||||
['parent', translate('parent window')],
|
['parent', translate('parent window')],
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
overlay: { impacts: ['background'], type: Object },
|
overlay: {
|
||||||
|
type: Object,
|
||||||
|
impacts: ['background'],
|
||||||
|
},
|
||||||
permanentCredit: {
|
permanentCredit: {
|
||||||
type: 'Text',
|
type: 'Text',
|
||||||
impacts: ['ui'],
|
impacts: ['ui'],
|
||||||
|
@ -343,8 +362,8 @@ export const SCHEMA = {
|
||||||
impacts: ['remote-data'],
|
impacts: ['remote-data'],
|
||||||
},
|
},
|
||||||
scaleControl: {
|
scaleControl: {
|
||||||
impacts: ['ui'],
|
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
|
impacts: ['ui'],
|
||||||
label: translate('Do you want to display the scale control?'),
|
label: translate('Do you want to display the scale control?'),
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue