From e4e3198157ea7264abc0090dda6d07f545410806 Mon Sep 17 00:00:00 2001 From: cnouguier Date: Wed, 27 Nov 2024 20:33:52 +0100 Subject: [PATCH] chore: upgrade to latest KDK --- config/default.js | 156 +++++++++++----------- src/boot/kdk.js | 1 - src/components/ArchivedEventsActivity.vue | 132 +++++++++--------- src/components/ArchivedPlansActivity.vue | 56 ++++---- src/components/CatalogActivity.vue | 68 +++++----- src/components/EventActivity.vue | 14 +- src/components/EventActivityPanel.vue | 8 +- src/components/EventLogsList.vue | 7 +- src/components/EventTemplatesActivity.vue | 44 +++--- src/components/EventsActivity.vue | 68 +++++----- src/components/PlanObjectivesEditor.vue | 3 +- src/components/PlanTemplatesActivity.vue | 44 +++--- src/components/PlansActivity.vue | 44 +++--- 13 files changed, 317 insertions(+), 328 deletions(-) diff --git a/config/default.js b/config/default.js index 0b780b7f..911dd580 100644 --- a/config/default.js +++ b/config/default.js @@ -750,35 +750,37 @@ module.exports = { mode: 'default' }, rightPane: { - content: { - 'user-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'user-layers'), - { id: 'user-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } }, - { component: 'QSpace' }, - { id: 'catalog-footer', component: 'KPanel', content: [{ - id: 'manage-layer-categories', - icon: 'las la-cog', - label: 'KLayerCategories.LAYER_CATEGORIES_LABEL', - route: { name: 'manage-layer-categories' } - }], - class: 'justify-center' - } - ], - 'user-views': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'user-views'), - { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, - ], - 'catalog-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'catalog-layers'), - { id: 'catalog-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, - forecastModels: ':forecastModels' } - ] - }, - mode: 'user-layers' + content: [{ + component: 'KTab', + content: { + 'user-layers': [ + { id: 'user-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } }, + { component: 'QSpace' }, + { id: 'catalog-footer', component: 'KPanel', content: [{ + id: 'manage-layer-categories', + icon: 'las la-cog', + label: 'KLayerCategories.LAYER_CATEGORIES_LABEL', + route: { name: 'manage-layer-categories' } + }], + class: 'justify-center' + } + ], + 'user-views': [ + { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, + ], + 'catalog-layers': [ + { id: 'catalog-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, + forecastModels: ':forecastModels' } + ] + }, + labels: ['LAYERS_LABEL', 'VIEWS_LABEL', 'CATALOG_LABEL'], + mode: 'user-layers' + }], + state: 'responsive' }, bottomPane: { content: [ @@ -842,28 +844,31 @@ module.exports = { mode: 'history' }, rightPane: { - content: { - 'history': [], - 'user-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'user-layers'), - { id: 'user-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } } - ], - 'user-views': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'user-views'), - { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, - ], - 'catalog-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers'], 'catalog-layers'), - { id: 'catalog-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, - forecastModels: ':forecastModels' } - ], - 'chart': [] - }, - mode: 'history' + content: [{ + component: 'KTab', + content: { + 'history': [], + 'user-layers': [ + { id: 'user-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } } + ], + 'user-views': [ + { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, + ], + 'catalog-layers': [ + { id: 'catalog-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, + forecastModels: ':forecastModels' } + ], + 'chart': [] + }, + mode: 'history', + labels: ['HISTORY', 'LAYERS_LABEL', 'VIEWS_LABEL', 'CATALOG_LABEL', 'CHART'], + mode: 'history' + }], + state: 'responsive' }, bottomPane: { content: [ @@ -1190,30 +1195,31 @@ module.exports = { mode: 'default' }, rightPane: { - content: { - 'event-participants': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers', 'event-participants'], 'event-participants'), - { id: 'event-participants', component: 'EventActivityPanel', event: ':event', participants: ':participants' } - ], - 'user-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers', 'event-participants'], 'user-layers'), - { id: 'user-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } } - ], - 'user-views': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers', 'event-participants'], 'user-views'), - { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, - ], - 'catalog-layers': [ - catalogTabbar(['user-layers', 'user-views', 'catalog-layers', 'event-participants'], 'catalog-layers'), - { id: 'catalog-layers', component: 'catalog/KLayersPanel', - layers: ':layers', layerCategories: ':layerCategories', - layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, - forecastModels: ':forecastModels' } - ] - }, - mode: 'event-participants' + content: [{ + component: 'KTab', + content: { + 'event-participants': [ + { id: 'event-participants', component: 'EventActivityPanel', event: ':event', participants: ':participants' } + ], + 'user-layers': [ + { id: 'user-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $in: ['user', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: true } } } + ], + 'user-views': [ + { id: 'user-views', component: 'catalog/KViewsPanel', suspense: true }, + ], + 'catalog-layers': [ + { id: 'catalog-layers', component: 'catalog/KLayersPanel', + layers: ':layers', layerCategories: ':layerCategories', + layersFilter: { scope: { $nin: ['user', 'system', 'activity'] } }, layerCategoriesFilter: { _id: { $exists: false } }, + forecastModels: ':forecastModels' } + ], + mode: 'event-participants' + }, + labels: ['EventActivityPanel.PARTICIPANTS_LABEL', 'LAYERS_LABEL', 'VIEWS_LABEL', 'CATALOG_LABEL'], + }], + state: 'responsive' }, bottomPane: { content: [ diff --git a/src/boot/kdk.js b/src/boot/kdk.js index f7208012..e655f47f 100644 --- a/src/boot/kdk.js +++ b/src/boot/kdk.js @@ -72,7 +72,6 @@ export default async ({ app }) => { app.component('KDialog', await kdkCoreUtils.loadComponent('KDialog')) app.component('KMenu', await kdkCoreUtils.loadComponent('menu/KMenu')) app.component('KForm', await kdkCoreUtils.loadComponent('form/KForm')) - app.component('KList', await kdkCoreUtils.loadComponent('collection/KList')) app.component('KGrid', await kdkCoreUtils.loadComponent('collection/KGrid')) app.component('KBoard', await kdkCoreUtils.loadComponent('collection/KBoard')) app.component('KHistory', await kdkCoreUtils.loadComponent('collection/KHistory')) diff --git a/src/components/ArchivedEventsActivity.vue b/src/components/ArchivedEventsActivity.vue index 96451ad3..c32962cf 100644 --- a/src/components/ArchivedEventsActivity.vue +++ b/src/components/ArchivedEventsActivity.vue @@ -1,76 +1,74 @@ diff --git a/src/components/ArchivedPlansActivity.vue b/src/components/ArchivedPlansActivity.vue index a32beccb..4b9a6e80 100644 --- a/src/components/ArchivedPlansActivity.vue +++ b/src/components/ArchivedPlansActivity.vue @@ -1,35 +1,33 @@ diff --git a/src/components/CatalogActivity.vue b/src/components/CatalogActivity.vue index 54c437ca..aa87b8e2 100644 --- a/src/components/CatalogActivity.vue +++ b/src/components/CatalogActivity.vue @@ -1,41 +1,39 @@ diff --git a/src/components/EventActivity.vue b/src/components/EventActivity.vue index faeb3f95..6d666517 100644 --- a/src/components/EventActivity.vue +++ b/src/components/EventActivity.vue @@ -1,13 +1,11 @@ diff --git a/src/components/EventActivityPanel.vue b/src/components/EventActivityPanel.vue index 2087c40d..4e8b00b8 100644 --- a/src/components/EventActivityPanel.vue +++ b/src/components/EventActivityPanel.vue @@ -1,5 +1,5 @@