@kalisio/kdk 2.5.3 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/main.yaml +35 -6
- package/client.globe.js +8 -0
- package/client.js +8 -0
- package/client.map.js +8 -0
- package/core/api/hooks/hooks.push.js +3 -2
- package/core/api/hooks/hooks.tags.js +56 -0
- package/core/api/models/tags.model.mongodb.js +8 -0
- package/core/api/services/index.js +33 -2
- package/core/api/services/tags/tags.hooks.js +47 -0
- package/core/client/api.js +5 -5
- package/core/client/components/KActivity.vue +3 -2
- package/core/client/components/KChip.vue +2 -2
- package/core/client/components/KEditor.vue +3 -1
- package/core/client/components/KFollower.vue +4 -4
- package/core/client/components/KStore.vue +1 -1
- package/core/client/components/KTab.vue +20 -7
- package/core/client/components/account/KProfile.vue +9 -25
- package/core/client/components/action/KAction.vue +10 -10
- package/core/client/components/action/KToggleFullscreenAction.vue +2 -11
- package/core/client/components/app/KHome.vue +3 -2
- package/core/client/components/collection/KFilter.vue +5 -4
- package/core/client/components/collection/KGrid.vue +5 -1
- package/core/client/components/collection/KItemsFilter.vue +47 -0
- package/core/client/components/collection/KItemsSorter.vue +42 -0
- package/core/client/components/collection/KScrollDown.vue +2 -2
- package/core/client/components/collection/KSearchFilterControl.vue +3 -2
- package/core/client/components/collection/KSorter.vue +33 -37
- package/core/client/components/collection/KTagsFilterControl.vue +14 -40
- package/core/client/components/collection/KTagsFilterView.vue +10 -45
- package/core/client/components/collection/KTimeFilterControl.vue +6 -7
- package/core/client/components/collection/KTimeFilterView.vue +13 -22
- package/core/client/components/collection/KTimeLine.vue +18 -9
- package/core/client/components/form/KColorField.vue +13 -6
- package/core/client/components/form/KColorScaleField.vue +7 -12
- package/core/client/components/form/KFileField.vue +118 -89
- package/core/client/components/form/KForm.vue +30 -18
- package/core/client/components/form/KIconField.vue +4 -1
- package/core/client/components/form/KNumberField.vue +9 -2
- package/core/client/components/form/KSelectField.vue +1 -4
- package/core/client/components/form/KTagField.vue +229 -0
- package/core/client/components/form/KTextField.vue +4 -0
- package/core/client/components/form/KTextareaField.vue +3 -1
- package/core/client/components/input/KShapePicker.vue +3 -3
- package/core/client/components/layout/KFab.vue +32 -20
- package/core/client/components/layout/KPage.vue +11 -6
- package/core/client/components/layout/KWindow.vue +5 -0
- package/core/client/components/media/index.js +2 -6
- package/core/client/components/menu/KMenu.vue +12 -10
- package/core/client/components/menu/KSubMenu.vue +12 -12
- package/core/client/components/messages/KMessageCard.vue +13 -12
- package/core/client/components/messages/KMessageComposer.vue +13 -9
- package/core/client/components/messages/KMessagesTimeLine.vue +16 -8
- package/core/client/components/tags/KTagFilter.vue +99 -0
- package/core/client/components/tags/KTagItem.vue +65 -0
- package/core/client/components/tags/KTagManager.vue +198 -0
- package/core/client/components/tags/KTagSelection.vue +82 -0
- package/core/client/components/time/KDate.vue +3 -17
- package/core/client/components/time/KDateTime.vue +1 -1
- package/core/client/components/time/KTime.vue +0 -4
- package/core/client/composables/collection-filter.js +41 -2
- package/core/client/composables/collection.js +3 -3
- package/core/client/composables/index.js +1 -0
- package/core/client/composables/pwa.js +13 -0
- package/core/client/composables/session.js +7 -8
- package/core/client/composables/user.js +36 -0
- package/core/client/directives/index.js +1 -0
- package/core/client/directives/v-drop-file.js +174 -0
- package/core/client/document.js +2 -1
- package/core/client/exporter.js +17 -3
- package/core/client/i18n/core_en.json +34 -7
- package/core/client/i18n/core_fr.json +36 -9
- package/core/client/i18n.js +26 -11
- package/core/client/layout.js +5 -5
- package/core/client/mixins/mixin.base-activity.js +8 -5
- package/core/client/mixins/mixin.base-editor.js +2 -1
- package/core/client/mixins/mixin.base-field.js +3 -2
- package/core/client/mixins/mixin.base-item.js +12 -10
- package/core/client/mixins/mixin.service.js +3 -1
- package/core/client/platform.js +0 -3
- package/core/client/readers/reader.json.js +2 -2
- package/core/client/utils/index.js +2 -0
- package/core/client/utils/utils.collection.js +6 -6
- package/core/client/utils/utils.colors.js +46 -19
- package/core/client/utils/utils.files.js +19 -0
- package/core/client/utils/utils.locale.js +13 -17
- package/core/client/utils/utils.services.js +27 -0
- package/core/client/utils/utils.shapes.js +2 -2
- package/core/client/utils/utils.tags.js +17 -0
- package/core/client/utils/utils.tours.js +31 -0
- package/core/common/permissions.js +3 -0
- package/core/common/schemas/tags.update.json +35 -0
- package/core/common/schemas/users.update-profile.json +1 -1
- package/core/common/utils.js +5 -5
- package/extras/configs/panes.top.js +11 -0
- package/extras/configs/stickies.js +1 -1
- package/extras/configs/widgets.left.js +13 -1
- package/extras/libs/jsts.min.js +8 -0
- package/{test/client/core/account.js → extras/tests/core/account.mjs} +4 -4
- package/extras/tests/core/api.mjs +114 -0
- package/{test/client/core/collection.js → extras/tests/core/collection.mjs} +8 -8
- package/{test/client/core/dialogs.js → extras/tests/core/dialogs.mjs} +1 -1
- package/extras/tests/core/index.mjs +9 -0
- package/{test/client/core/layout.js → extras/tests/core/layout.mjs} +7 -3
- package/{test/client/core/runner.js → extras/tests/core/runner.mjs} +3 -3
- package/{test/client/core/screens.js → extras/tests/core/screens.mjs} +1 -1
- package/{test/client/core/utils.js → extras/tests/core/utils.mjs} +79 -26
- package/extras/tests/index.mjs +4 -0
- package/{test/client/map/api.js → extras/tests/map/api.mjs} +1 -1
- package/{test/client/map/catalog.js → extras/tests/map/catalog.mjs} +18 -18
- package/{test/client/map/controls.js → extras/tests/map/controls.mjs} +3 -3
- package/extras/tests/map/index.mjs +5 -0
- package/{test/client/map/time.js → extras/tests/map/time.mjs} +3 -3
- package/{test/client/map/utils.js → extras/tests/map/utils.mjs} +6 -5
- package/extras/tours/fab.js +36 -0
- package/extras/tours/layout.js +49 -0
- package/extras/tours/pane.left.js +78 -0
- package/extras/tours/pane.right.js +145 -0
- package/extras/tours/pane.top.js +239 -0
- package/map/api/config/layers.cjs +28 -13
- package/map/api/hooks/hooks.query.js +12 -7
- package/map/api/models/catalog.model.mongodb.js +17 -6
- package/map/api/services/catalog/catalog.hooks.js +1 -1
- package/map/api/services/index.js +18 -1
- package/map/client/cesium/utils/utils.cesium.js +25 -65
- package/map/client/cesium/utils/utils.features.js +1 -0
- package/map/client/cesium/utils/utils.geojson.js +1 -0
- package/map/client/cesium/utils/utils.style.js +7 -6
- package/map/client/components/KFeatureEditor.vue +3 -3
- package/map/client/components/KFeaturesChart.vue +4 -4
- package/map/client/components/KFeaturesFilterEditor.vue +19 -13
- package/map/client/components/KFeaturesFilterManager.vue +7 -4
- package/map/client/components/KFeaturesTable.vue +2 -2
- package/map/client/components/KLayerEditor.vue +6 -6
- package/map/client/components/KMeasureTool.vue +2 -1
- package/map/client/components/catalog/KBaseLayersSelector.vue +1 -1
- package/map/client/components/catalog/KCategoryItem.vue +15 -1
- package/map/client/components/catalog/KConnectLayer.vue +2 -2
- package/map/client/components/catalog/KCreateView.vue +3 -2
- package/map/client/components/catalog/KFilteredLayerItem.vue +26 -6
- package/map/client/components/catalog/KImportLayer.vue +6 -3
- package/map/client/components/catalog/KLayerCategories.vue +6 -6
- package/map/client/components/catalog/KLayerItem.vue +12 -2
- package/map/client/components/catalog/KLayersList.vue +180 -0
- package/map/client/components/catalog/KLayersPanel.vue +146 -36
- package/map/client/components/catalog/KLayersSelector.vue +96 -48
- package/map/client/components/catalog/KProjectEditor.vue +0 -9
- package/map/client/components/catalog/KProjectSelector.vue +3 -2
- package/map/client/components/catalog/KProjectsPanel.vue +23 -8
- package/map/client/components/catalog/KViewsPanel.vue +18 -8
- package/map/client/components/catalog/KWeatherLayersSelector.vue +3 -3
- package/map/client/components/form/KDirectionField.vue +3 -6
- package/map/client/components/form/KLayerCategoryField.vue +2 -2
- package/map/client/components/form/KOwsServiceField.vue +25 -24
- package/map/client/components/form/KSelectLayersField.vue +4 -4
- package/map/client/components/form/KSelectViewsField.vue +4 -4
- package/map/client/components/legend/KLayerLegend.vue +11 -2
- package/map/client/components/legend/KLegend.vue +44 -51
- package/map/client/components/location/KLocationCardSection.vue +6 -7
- package/map/client/components/location/KLocationMap.vue +23 -13
- package/map/client/components/stickies/KPosition.vue +5 -0
- package/map/client/components/styles/KLayerStyleAction.vue +59 -12
- package/map/client/components/styles/KStyleEditor.vue +71 -8
- package/map/client/components/styles/KStyleEditorSection.vue +82 -33
- package/map/client/components/styles/KStyleManager.vue +119 -59
- package/map/client/components/styles/KStylePreview.vue +9 -25
- package/map/client/components/styles/KStylePreviewItem.vue +22 -1
- package/map/client/components/tools/KSearchTool.vue +1 -1
- package/map/client/components/widget/KElevationProfile.vue +20 -17
- package/map/client/components/widget/KInformationBox.vue +5 -5
- package/map/client/components/widget/KMapillaryViewer.vue +2 -1
- package/map/client/components/widget/KTimeSeries.vue +11 -9
- package/map/client/globe.js +2 -0
- package/map/client/i18n/map_en.json +29 -7
- package/map/client/i18n/map_fr.json +29 -7
- package/map/client/leaflet/GradientPath.js +61 -24
- package/map/client/leaflet/ShapeMarker.js +12 -5
- package/map/client/leaflet/TiledMeshLayer.js +3 -3
- package/map/client/leaflet/utils/utils.geojson.js +66 -8
- package/map/client/leaflet/utils/utils.style.js +14 -15
- package/map/client/mixins/globe/mixin.base-globe.js +181 -34
- package/map/client/mixins/globe/mixin.file-layers.js +3 -0
- package/map/client/mixins/globe/mixin.geojson-layers.js +179 -31
- package/map/client/mixins/globe/mixin.opendap-layers.js +2 -1
- package/map/client/mixins/globe/mixin.style.js +23 -1
- package/map/client/mixins/globe/mixin.tooltip.js +14 -2
- package/map/client/mixins/map/mixin.base-map.js +146 -58
- package/map/client/mixins/map/mixin.edit-layers.js +18 -15
- package/map/client/mixins/map/mixin.geojson-layers.js +181 -106
- package/map/client/mixins/map/mixin.heatmap-layers.js +3 -2
- package/map/client/mixins/map/mixin.map-activity.js +6 -1
- package/map/client/mixins/map/mixin.mapillary-layers.js +2 -1
- package/map/client/mixins/map/mixin.pmtiles-layers.js +3 -3
- package/map/client/mixins/map/mixin.tiled-mesh-layers.js +3 -2
- package/map/client/mixins/map/mixin.tiled-wind-layers.js +3 -2
- package/map/client/mixins/mixin.activity.js +197 -51
- package/map/client/mixins/mixin.context.js +11 -11
- package/map/client/mixins/mixin.feature-service.js +11 -9
- package/map/client/mixins/mixin.weacast.js +5 -3
- package/map/client/readers/reader.geojson.js +3 -1
- package/map/client/utils/utils.capture.js +3 -3
- package/map/client/utils/utils.catalog.js +9 -5
- package/map/client/utils/utils.features.js +120 -54
- package/map/client/utils/utils.js +25 -10
- package/map/client/utils/utils.layers.js +148 -24
- package/map/client/utils/utils.location.js +26 -9
- package/map/client/utils/utils.schema.js +2 -1
- package/map/client/utils/utils.style.js +53 -9
- package/map/common/geotiff-grid-source.js +1 -3
- package/map/common/opendap-utils.js +0 -1
- package/map/common/tms-utils.js +0 -1
- package/map/common/wcs-utils.js +0 -1
- package/map/common/wfs-utils.js +0 -1
- package/map/common/wms-utils.js +7 -1
- package/map/common/wmts-utils.js +0 -1
- package/package.json +12 -12
- package/scripts/init_runner.sh +3 -3
- package/scripts/kash/CHANGELOG.md +27 -0
- package/scripts/kash/kash.sh +556 -237
- package/scripts/kash/scripts/run_tests.sh +44 -5
- package/scripts/setup_workspace.sh +23 -13
- package/test/api/core/config/default.cjs +2 -1
- package/test/api/core/tags.test.js +62 -0
- package/test/api/map/config/default.cjs +2 -1
- package/test/api/map/config/layers.json +9 -0
- package/test/api/map/data/openradiation.json +13811 -0
- package/test/api/map/grid-sources.test.js +1 -3
- package/test/api/map/index.test.js +60 -1
- package/test/api/map/style.test.js +30 -1
- package/test.api.js +1 -1
- package/vite/App.vue +18 -0
- package/vite/AppWithGlobe.vue +84 -0
- package/vite/GlobeActivity.vue +58 -0
- package/vite/MapActivity.vue +63 -0
- package/vite/MapActivityWithGlobe.vue +63 -0
- package/vite/README.md +169 -0
- package/vite/config.js +221 -0
- package/vite/index_with_globe.html +50 -0
- package/vite/index_with_map.html +50 -0
- package/vite/package.json +173 -0
- package/vite/quasar.variables.scss +17 -0
- package/vite/vite.config.js +166 -0
- package/vite/yarn.lock +11641 -0
- package/core/client/components/media/KImageViewer.vue +0 -68
- package/core/client/components/media/KMarkdownViewer.vue +0 -55
- package/core/client/components/media/KMediaBrowser.vue +0 -301
- package/coverage/base.css +0 -224
- package/coverage/block-navigation.js +0 -87
- package/coverage/core/api/application.js.html +0 -1870
- package/coverage/core/api/authentication.js.html +0 -874
- package/coverage/core/api/db.js.html +0 -793
- package/coverage/core/api/hooks/hooks.authentication.js.html +0 -139
- package/coverage/core/api/hooks/hooks.authorisations.js.html +0 -958
- package/coverage/core/api/hooks/hooks.groups.js.html +0 -229
- package/coverage/core/api/hooks/hooks.logger.js.html +0 -163
- package/coverage/core/api/hooks/hooks.model.js.html +0 -967
- package/coverage/core/api/hooks/hooks.organisations.js.html +0 -541
- package/coverage/core/api/hooks/hooks.push.js.html +0 -265
- package/coverage/core/api/hooks/hooks.query.js.html +0 -862
- package/coverage/core/api/hooks/hooks.schemas.js.html +0 -298
- package/coverage/core/api/hooks/hooks.service.js.html +0 -319
- package/coverage/core/api/hooks/hooks.storage.js.html +0 -193
- package/coverage/core/api/hooks/hooks.users.js.html +0 -595
- package/coverage/core/api/hooks/index.html +0 -266
- package/coverage/core/api/hooks/index.js.html +0 -115
- package/coverage/core/api/index.html +0 -176
- package/coverage/core/api/index.js.html +0 -148
- package/coverage/core/api/marshall.js.html +0 -448
- package/coverage/core/api/models/groups.model.mongodb.js.html +0 -109
- package/coverage/core/api/models/index.html +0 -131
- package/coverage/core/api/models/messages.model.mongodb.js.html +0 -121
- package/coverage/core/api/models/organisations.model.mongodb.js.html +0 -94
- package/coverage/core/api/models/tags.model.mongodb.js.html +0 -115
- package/coverage/core/api/models/users.model.mongodb.js.html +0 -115
- package/coverage/core/api/services/account/account.hooks.js.html +0 -208
- package/coverage/core/api/services/account/account.service.js.html +0 -436
- package/coverage/core/api/services/account/index.html +0 -131
- package/coverage/core/api/services/authorisations/authorisations.hooks.js.html +0 -184
- package/coverage/core/api/services/authorisations/authorisations.service.js.html +0 -520
- package/coverage/core/api/services/authorisations/index.html +0 -131
- package/coverage/core/api/services/databases/databases.hooks.js.html +0 -193
- package/coverage/core/api/services/databases/databases.service.js.html +0 -100
- package/coverage/core/api/services/databases/index.html +0 -131
- package/coverage/core/api/services/groups/groups.hooks.js.html +0 -178
- package/coverage/core/api/services/groups/index.html +0 -116
- package/coverage/core/api/services/import-export/import-export.hooks.js.html +0 -184
- package/coverage/core/api/services/import-export/import-export.service.js.html +0 -118
- package/coverage/core/api/services/import-export/index.html +0 -131
- package/coverage/core/api/services/index.html +0 -116
- package/coverage/core/api/services/index.js.html +0 -532
- package/coverage/core/api/services/mailer/index.html +0 -131
- package/coverage/core/api/services/mailer/mailer.hooks.js.html +0 -190
- package/coverage/core/api/services/mailer/mailer.service.js.html +0 -118
- package/coverage/core/api/services/messages/index.html +0 -116
- package/coverage/core/api/services/messages/messages.hooks.js.html +0 -202
- package/coverage/core/api/services/organisations/index.html +0 -131
- package/coverage/core/api/services/organisations/organisations.hooks.js.html +0 -178
- package/coverage/core/api/services/organisations/organisations.service.js.html +0 -343
- package/coverage/core/api/services/push/index.html +0 -131
- package/coverage/core/api/services/push/push.hooks.js.html +0 -190
- package/coverage/core/api/services/push/push.service.js.html +0 -121
- package/coverage/core/api/services/storage/index.html +0 -131
- package/coverage/core/api/services/storage/storage.hooks.js.html +0 -190
- package/coverage/core/api/services/storage/storage.service.js.html +0 -172
- package/coverage/core/api/services/tags/index.html +0 -116
- package/coverage/core/api/services/tags/tags.hooks.js.html +0 -178
- package/coverage/core/api/services/users/index.html +0 -131
- package/coverage/core/api/services/users/users.hooks.js.html +0 -310
- package/coverage/core/api/services/users/users.service.js.html +0 -100
- package/coverage/core/api/utils.js.html +0 -118
- package/coverage/core/common/errors.js.html +0 -88
- package/coverage/core/common/index.html +0 -191
- package/coverage/core/common/index.js.html +0 -115
- package/coverage/core/common/permissions.js.html +0 -733
- package/coverage/core/common/schema.js.html +0 -190
- package/coverage/core/common/utils.js.html +0 -226
- package/coverage/core/common/utils.offline.js.html +0 -199
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +0 -476
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/core/api/application.js.html +0 -1870
- package/coverage/lcov-report/core/api/authentication.js.html +0 -874
- package/coverage/lcov-report/core/api/db.js.html +0 -793
- package/coverage/lcov-report/core/api/hooks/hooks.authentication.js.html +0 -139
- package/coverage/lcov-report/core/api/hooks/hooks.authorisations.js.html +0 -958
- package/coverage/lcov-report/core/api/hooks/hooks.groups.js.html +0 -229
- package/coverage/lcov-report/core/api/hooks/hooks.logger.js.html +0 -163
- package/coverage/lcov-report/core/api/hooks/hooks.model.js.html +0 -967
- package/coverage/lcov-report/core/api/hooks/hooks.organisations.js.html +0 -541
- package/coverage/lcov-report/core/api/hooks/hooks.push.js.html +0 -265
- package/coverage/lcov-report/core/api/hooks/hooks.query.js.html +0 -862
- package/coverage/lcov-report/core/api/hooks/hooks.schemas.js.html +0 -298
- package/coverage/lcov-report/core/api/hooks/hooks.service.js.html +0 -319
- package/coverage/lcov-report/core/api/hooks/hooks.storage.js.html +0 -193
- package/coverage/lcov-report/core/api/hooks/hooks.users.js.html +0 -595
- package/coverage/lcov-report/core/api/hooks/index.html +0 -266
- package/coverage/lcov-report/core/api/hooks/index.js.html +0 -115
- package/coverage/lcov-report/core/api/index.html +0 -176
- package/coverage/lcov-report/core/api/index.js.html +0 -148
- package/coverage/lcov-report/core/api/marshall.js.html +0 -448
- package/coverage/lcov-report/core/api/models/groups.model.mongodb.js.html +0 -109
- package/coverage/lcov-report/core/api/models/index.html +0 -131
- package/coverage/lcov-report/core/api/models/messages.model.mongodb.js.html +0 -121
- package/coverage/lcov-report/core/api/models/organisations.model.mongodb.js.html +0 -94
- package/coverage/lcov-report/core/api/models/tags.model.mongodb.js.html +0 -115
- package/coverage/lcov-report/core/api/models/users.model.mongodb.js.html +0 -115
- package/coverage/lcov-report/core/api/services/account/account.hooks.js.html +0 -208
- package/coverage/lcov-report/core/api/services/account/account.service.js.html +0 -436
- package/coverage/lcov-report/core/api/services/account/index.html +0 -131
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.hooks.js.html +0 -184
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.service.js.html +0 -520
- package/coverage/lcov-report/core/api/services/authorisations/index.html +0 -131
- package/coverage/lcov-report/core/api/services/databases/databases.hooks.js.html +0 -193
- package/coverage/lcov-report/core/api/services/databases/databases.service.js.html +0 -100
- package/coverage/lcov-report/core/api/services/databases/index.html +0 -131
- package/coverage/lcov-report/core/api/services/groups/groups.hooks.js.html +0 -178
- package/coverage/lcov-report/core/api/services/groups/index.html +0 -116
- package/coverage/lcov-report/core/api/services/import-export/import-export.hooks.js.html +0 -184
- package/coverage/lcov-report/core/api/services/import-export/import-export.service.js.html +0 -118
- package/coverage/lcov-report/core/api/services/import-export/index.html +0 -131
- package/coverage/lcov-report/core/api/services/index.html +0 -116
- package/coverage/lcov-report/core/api/services/index.js.html +0 -532
- package/coverage/lcov-report/core/api/services/mailer/index.html +0 -131
- package/coverage/lcov-report/core/api/services/mailer/mailer.hooks.js.html +0 -190
- package/coverage/lcov-report/core/api/services/mailer/mailer.service.js.html +0 -118
- package/coverage/lcov-report/core/api/services/messages/index.html +0 -116
- package/coverage/lcov-report/core/api/services/messages/messages.hooks.js.html +0 -202
- package/coverage/lcov-report/core/api/services/organisations/index.html +0 -131
- package/coverage/lcov-report/core/api/services/organisations/organisations.hooks.js.html +0 -178
- package/coverage/lcov-report/core/api/services/organisations/organisations.service.js.html +0 -343
- package/coverage/lcov-report/core/api/services/push/index.html +0 -131
- package/coverage/lcov-report/core/api/services/push/push.hooks.js.html +0 -190
- package/coverage/lcov-report/core/api/services/push/push.service.js.html +0 -121
- package/coverage/lcov-report/core/api/services/storage/index.html +0 -131
- package/coverage/lcov-report/core/api/services/storage/storage.hooks.js.html +0 -190
- package/coverage/lcov-report/core/api/services/storage/storage.service.js.html +0 -172
- package/coverage/lcov-report/core/api/services/tags/index.html +0 -116
- package/coverage/lcov-report/core/api/services/tags/tags.hooks.js.html +0 -178
- package/coverage/lcov-report/core/api/services/users/index.html +0 -131
- package/coverage/lcov-report/core/api/services/users/users.hooks.js.html +0 -310
- package/coverage/lcov-report/core/api/services/users/users.service.js.html +0 -100
- package/coverage/lcov-report/core/api/utils.js.html +0 -118
- package/coverage/lcov-report/core/common/errors.js.html +0 -88
- package/coverage/lcov-report/core/common/index.html +0 -191
- package/coverage/lcov-report/core/common/index.js.html +0 -115
- package/coverage/lcov-report/core/common/permissions.js.html +0 -733
- package/coverage/lcov-report/core/common/schema.js.html +0 -190
- package/coverage/lcov-report/core/common/utils.js.html +0 -226
- package/coverage/lcov-report/core/common/utils.offline.js.html +0 -199
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -476
- package/coverage/lcov-report/map/api/hooks/hooks.catalog.js.html +0 -553
- package/coverage/lcov-report/map/api/hooks/hooks.features.js.html +0 -397
- package/coverage/lcov-report/map/api/hooks/hooks.query.js.html +0 -1294
- package/coverage/lcov-report/map/api/hooks/index.html +0 -161
- package/coverage/lcov-report/map/api/hooks/index.js.html +0 -94
- package/coverage/lcov-report/map/api/index.html +0 -131
- package/coverage/lcov-report/map/api/index.js.html +0 -139
- package/coverage/lcov-report/map/api/marshall.js.html +0 -178
- package/coverage/lcov-report/map/api/models/alerts.model.mongodb.js.html +0 -106
- package/coverage/lcov-report/map/api/models/catalog.model.mongodb.js.html +0 -169
- package/coverage/lcov-report/map/api/models/features.model.mongodb.js.html +0 -196
- package/coverage/lcov-report/map/api/models/index.html +0 -176
- package/coverage/lcov-report/map/api/models/projects.model.mongodb.js.html +0 -109
- package/coverage/lcov-report/map/api/models/styles.model.mongodb.js.html +0 -112
- package/coverage/lcov-report/map/api/services/alerts/alerts.hooks.js.html +0 -274
- package/coverage/lcov-report/map/api/services/alerts/alerts.service.js.html +0 -610
- package/coverage/lcov-report/map/api/services/alerts/index.html +0 -131
- package/coverage/lcov-report/map/api/services/catalog/catalog.hooks.js.html +0 -328
- package/coverage/lcov-report/map/api/services/catalog/index.html +0 -116
- package/coverage/lcov-report/map/api/services/daptiles/daptiles.service.js.html +0 -1510
- package/coverage/lcov-report/map/api/services/daptiles/index.html +0 -116
- package/coverage/lcov-report/map/api/services/features/features.hooks.js.html +0 -310
- package/coverage/lcov-report/map/api/services/features/features.service.js.html +0 -544
- package/coverage/lcov-report/map/api/services/features/index.html +0 -131
- package/coverage/lcov-report/map/api/services/index.html +0 -116
- package/coverage/lcov-report/map/api/services/index.js.html +0 -1054
- package/coverage/lcov-report/map/api/services/projects/index.html +0 -116
- package/coverage/lcov-report/map/api/services/projects/projects.hooks.js.html +0 -439
- package/coverage/lcov-report/map/api/services/styles/index.html +0 -116
- package/coverage/lcov-report/map/api/services/styles/styles.hooks.js.html +0 -196
- package/coverage/lcov-report/map/common/dynamic-grid-source.js.html +0 -466
- package/coverage/lcov-report/map/common/errors.js.html +0 -94
- package/coverage/lcov-report/map/common/geotiff-grid-source.js.html +0 -544
- package/coverage/lcov-report/map/common/grid.js.html +0 -1612
- package/coverage/lcov-report/map/common/index.html +0 -371
- package/coverage/lcov-report/map/common/index.js.html +0 -172
- package/coverage/lcov-report/map/common/meteo-model-grid-source.js.html +0 -556
- package/coverage/lcov-report/map/common/moment-utils.js.html +0 -157
- package/coverage/lcov-report/map/common/opendap-grid-source.js.html +0 -868
- package/coverage/lcov-report/map/common/opendap-utils.js.html +0 -826
- package/coverage/lcov-report/map/common/permissions.js.html +0 -130
- package/coverage/lcov-report/map/common/time-based-grid-source.js.html +0 -418
- package/coverage/lcov-report/map/common/tms-utils.js.html +0 -274
- package/coverage/lcov-report/map/common/wcs-grid-source.js.html +0 -364
- package/coverage/lcov-report/map/common/wcs-utils.js.html +0 -586
- package/coverage/lcov-report/map/common/weacast-grid-source.js.html +0 -1033
- package/coverage/lcov-report/map/common/wfs-utils.js.html +0 -574
- package/coverage/lcov-report/map/common/wms-utils.js.html +0 -451
- package/coverage/lcov-report/map/common/wmts-utils.js.html +0 -547
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -11520
- package/coverage/map/api/hooks/hooks.catalog.js.html +0 -553
- package/coverage/map/api/hooks/hooks.features.js.html +0 -397
- package/coverage/map/api/hooks/hooks.query.js.html +0 -1294
- package/coverage/map/api/hooks/index.html +0 -161
- package/coverage/map/api/hooks/index.js.html +0 -94
- package/coverage/map/api/index.html +0 -131
- package/coverage/map/api/index.js.html +0 -139
- package/coverage/map/api/marshall.js.html +0 -178
- package/coverage/map/api/models/alerts.model.mongodb.js.html +0 -106
- package/coverage/map/api/models/catalog.model.mongodb.js.html +0 -169
- package/coverage/map/api/models/features.model.mongodb.js.html +0 -196
- package/coverage/map/api/models/index.html +0 -176
- package/coverage/map/api/models/projects.model.mongodb.js.html +0 -109
- package/coverage/map/api/models/styles.model.mongodb.js.html +0 -112
- package/coverage/map/api/services/alerts/alerts.hooks.js.html +0 -274
- package/coverage/map/api/services/alerts/alerts.service.js.html +0 -610
- package/coverage/map/api/services/alerts/index.html +0 -131
- package/coverage/map/api/services/catalog/catalog.hooks.js.html +0 -328
- package/coverage/map/api/services/catalog/index.html +0 -116
- package/coverage/map/api/services/daptiles/daptiles.service.js.html +0 -1510
- package/coverage/map/api/services/daptiles/index.html +0 -116
- package/coverage/map/api/services/features/features.hooks.js.html +0 -310
- package/coverage/map/api/services/features/features.service.js.html +0 -544
- package/coverage/map/api/services/features/index.html +0 -131
- package/coverage/map/api/services/index.html +0 -116
- package/coverage/map/api/services/index.js.html +0 -1054
- package/coverage/map/api/services/projects/index.html +0 -116
- package/coverage/map/api/services/projects/projects.hooks.js.html +0 -439
- package/coverage/map/api/services/styles/index.html +0 -116
- package/coverage/map/api/services/styles/styles.hooks.js.html +0 -196
- package/coverage/map/common/dynamic-grid-source.js.html +0 -466
- package/coverage/map/common/errors.js.html +0 -94
- package/coverage/map/common/geotiff-grid-source.js.html +0 -544
- package/coverage/map/common/grid.js.html +0 -1612
- package/coverage/map/common/index.html +0 -371
- package/coverage/map/common/index.js.html +0 -172
- package/coverage/map/common/meteo-model-grid-source.js.html +0 -556
- package/coverage/map/common/moment-utils.js.html +0 -157
- package/coverage/map/common/opendap-grid-source.js.html +0 -868
- package/coverage/map/common/opendap-utils.js.html +0 -826
- package/coverage/map/common/permissions.js.html +0 -130
- package/coverage/map/common/time-based-grid-source.js.html +0 -418
- package/coverage/map/common/tms-utils.js.html +0 -274
- package/coverage/map/common/wcs-grid-source.js.html +0 -364
- package/coverage/map/common/wcs-utils.js.html +0 -586
- package/coverage/map/common/weacast-grid-source.js.html +0 -1033
- package/coverage/map/common/wfs-utils.js.html +0 -574
- package/coverage/map/common/wms-utils.js.html +0 -451
- package/coverage/map/common/wmts-utils.js.html +0 -547
- package/coverage/prettify.css +0 -1
- package/coverage/prettify.js +0 -2
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +0 -196
- package/coverage/tmp/coverage-151198-1753351220086-0.json +0 -1
- package/coverage/tmp/coverage-151210-1753351220070-0.json +0 -1
- package/coverage/tmp/coverage-151221-1753351129816-0.json +0 -1
- package/coverage/tmp/coverage-151233-1753351129803-0.json +0 -1
- package/coverage/tmp/coverage-151240-1753351129770-0.json +0 -1
- package/coverage/tmp/coverage-151307-1753351220058-0.json +0 -1
- package/coverage/tmp/coverage-151319-1753351220044-0.json +0 -1
- package/coverage/tmp/coverage-151326-1753351220010-0.json +0 -1
- package/extras/tours/core/account-profile.js +0 -32
- package/extras/tours/core/account.js +0 -143
- package/extras/tours/core/add-member.js +0 -75
- package/extras/tours/core/add-tag.js +0 -13
- package/extras/tours/core/create-group.js +0 -19
- package/extras/tours/core/create-organisation.js +0 -19
- package/extras/tours/core/create-tag.js +0 -26
- package/extras/tours/core/edit-member-role.js +0 -13
- package/extras/tours/core/groups.js +0 -65
- package/extras/tours/core/join-group.js +0 -13
- package/extras/tours/core/login.js +0 -41
- package/extras/tours/core/members.js +0 -108
- package/extras/tours/core/register.js +0 -61
- package/extras/tours/core/send-reset-password.js +0 -14
- package/extras/tours/core/tags.js +0 -65
- package/extras/tours/map/catalog-panel.js +0 -112
- package/extras/tours/map/fab.js +0 -26
- package/extras/tours/map/navigation-bar.js +0 -187
- package/extras/tours/map/side-nav.js +0 -36
- package/test/api/core/test-log-2025-02-05.log +0 -23
- package/test/api/core/test-log-2025-05-21.log +0 -15
- package/test/api/core/test-log-2025-06-25.log +0 -9
- package/test/api/core/test-log-2025-07-24.log +0 -44
- package/test/api/map/test-log-2025-05-27.log +0 -13
- package/test/api/map/test-log-2025-06-23.log +0 -7
- package/test/api/map/test-log-2025-07-24.log +0 -11
- package/test/client/core/api.js +0 -361
- package/test/client/core/index.js +0 -9
- package/test/client/index.js +0 -4
- package/test/client/map/index.js +0 -5
- package/test.client.js +0 -1
- /package/{test/client/core/time.js → extras/tests/core/time.mjs} +0 -0
- /package/extras/tours/{map/add-layer.js → add-layer.js} +0 -0
- /package/extras/tours/{map/catalog-categories.js → catalog-categories.js} +0 -0
- /package/extras/tours/{map/connect-layer.js → connect-layer.js} +0 -0
- /package/extras/tours/{map/create-layer.js → create-layer.js} +0 -0
- /package/extras/tours/{map/create-view.js → create-view.js} +0 -0
- /package/extras/tours/{map/import-layer.js → import-layer.js} +0 -0
- /package/extras/tours/{map/timeline.js → pane.bottom.js} +0 -0
package/vite/config.js
ADDED
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
const KANO_API_PREFIX = '/api'
|
|
2
|
+
const KANO_DOMAIN = 'http://localhost:8086' // 'https://kano.dev.kalisio.xyz'
|
|
3
|
+
|
|
4
|
+
// Map engine configuration
|
|
5
|
+
const mapEngine = {
|
|
6
|
+
viewer: {
|
|
7
|
+
minZoom: 3,
|
|
8
|
+
maxZoom: 21,
|
|
9
|
+
center: [47, 3],
|
|
10
|
+
zoom: 6,
|
|
11
|
+
maxBounds: [[-90, -180], [90, 180]],
|
|
12
|
+
maxBoundsViscosity: 0.25,
|
|
13
|
+
timeDimension: true,
|
|
14
|
+
rotateControl: false,
|
|
15
|
+
attributionControl: false
|
|
16
|
+
},
|
|
17
|
+
// COLORS USED IN STYLES SHOULD BE PART OF THE QUASAR PALETTE NOT RANDOM RGB COLORS
|
|
18
|
+
// THIS IS DUE TO KDK EDITING COMPONENTS ONLY SUPPORTING COLORS FROM PALETTE NOW
|
|
19
|
+
// Default GeoJSON layer style for polygons/lines
|
|
20
|
+
style: {
|
|
21
|
+
point: {
|
|
22
|
+
shape: 'circle', color: 'red', opacity: 0.5, stroke: { color: 'red' }
|
|
23
|
+
},
|
|
24
|
+
line: {
|
|
25
|
+
color: 'red', width: 3
|
|
26
|
+
},
|
|
27
|
+
polygon: {
|
|
28
|
+
color: 'red', opacity: 0.5, stroke: { color: 'red' }
|
|
29
|
+
},
|
|
30
|
+
location: {
|
|
31
|
+
point: {
|
|
32
|
+
shape: 'marker-pin',
|
|
33
|
+
color: 'primary',
|
|
34
|
+
opacity: 1,
|
|
35
|
+
size: [20, 30],
|
|
36
|
+
stroke: { color: 'primary' },
|
|
37
|
+
icon: { classes: 'fas fa-circle', color: 'white', size: 12, translation: ['-50%', '-90%'] }
|
|
38
|
+
},
|
|
39
|
+
line: { color: 'primary', width: 3 },
|
|
40
|
+
polygon: {
|
|
41
|
+
color: 'primary',
|
|
42
|
+
opacity: 0.5,
|
|
43
|
+
stroke: { color: 'primary' }
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
edition: {
|
|
47
|
+
point: {
|
|
48
|
+
shape: 'circle', color: 'yellow', stroke: { color: 'red', width: 3, dashArray: '0 5 0' }
|
|
49
|
+
},
|
|
50
|
+
line: {
|
|
51
|
+
color: 'red', width: 3, dashArray: '0 5 0'
|
|
52
|
+
},
|
|
53
|
+
polygon: {
|
|
54
|
+
color: 'yellow', opacity: 0.5, stroke: { color: 'red', width: 3, dashArray: '0 5 0' }
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
selection: {
|
|
58
|
+
point: {
|
|
59
|
+
shape: 'circle',
|
|
60
|
+
color: 'primary',
|
|
61
|
+
opacity: 0.25,
|
|
62
|
+
radius: 12,
|
|
63
|
+
stroke: { color: 'primary', opacity: 0.25, width: 3 }
|
|
64
|
+
},
|
|
65
|
+
line: {
|
|
66
|
+
color: 'primary', opacity: 0.25, width: 10
|
|
67
|
+
},
|
|
68
|
+
polygon: {
|
|
69
|
+
color: 'primary', opacity: 0.25, stroke: { color: 'primary', opacity: 0.25, width: 10 }
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
// Default GeoJSON infobox will display all properties
|
|
74
|
+
popup: { pick: [] },
|
|
75
|
+
infobox: {},
|
|
76
|
+
cluster: { disableClusteringAtZoom: 18 },
|
|
77
|
+
fileLayers: {
|
|
78
|
+
fileSizeLimit: 1024 * 1024, // 1GB
|
|
79
|
+
formats: ['.geojson', '.kml', '.gpx']
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Globe engine configuration
|
|
84
|
+
const globeEngine = {
|
|
85
|
+
viewer: {
|
|
86
|
+
sceneMode: 3, // SceneMode.COLUMBUS_VIEW = 1, SceneMode.SCENE3D = 3,
|
|
87
|
+
sceneModePicker: false,
|
|
88
|
+
infoBox: false,
|
|
89
|
+
scene3DOnly: true,
|
|
90
|
+
homeButton: false,
|
|
91
|
+
geocoder: false,
|
|
92
|
+
navigationHelpButton: false,
|
|
93
|
+
baseLayerPicker: false,
|
|
94
|
+
vrButton: false,
|
|
95
|
+
fullscreenButton: false,
|
|
96
|
+
animation: false,
|
|
97
|
+
timeline: false,
|
|
98
|
+
creditContainer: 'globe-credit',
|
|
99
|
+
depthTestAgainstTerrain: true,
|
|
100
|
+
cameraChangedEventPercentage: 0.2
|
|
101
|
+
},
|
|
102
|
+
fileLayers: {
|
|
103
|
+
clearOnDrop: false,
|
|
104
|
+
flyToOnDrop: true,
|
|
105
|
+
clampToGround: true
|
|
106
|
+
},
|
|
107
|
+
// Default GeoJSON layer style for points/polygons/lines
|
|
108
|
+
// SHOULD NOT COVER MORE THAN SIMPLE STYLE SPEC AND MAKI ICONS
|
|
109
|
+
style: {
|
|
110
|
+
point: {
|
|
111
|
+
shape: 'marker', color: 'red'
|
|
112
|
+
},
|
|
113
|
+
line: {
|
|
114
|
+
color: 'red', width: 3
|
|
115
|
+
},
|
|
116
|
+
polygon: {
|
|
117
|
+
color: 'red', opacity: 0.5, stroke: { color: 'red' }
|
|
118
|
+
},
|
|
119
|
+
selection: {
|
|
120
|
+
point: {
|
|
121
|
+
shape: 'marker', color: 'primary', opacity: 0.25
|
|
122
|
+
},
|
|
123
|
+
line: {
|
|
124
|
+
color: 'primary', opacity: 0.25, width: 10
|
|
125
|
+
},
|
|
126
|
+
polygon: {
|
|
127
|
+
color: 'primary', opacity: 0.25, stroke: { color: 'primary', opacity: 0.25, width: 10 }
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
entityStyle: {
|
|
132
|
+
billboard: {
|
|
133
|
+
heightReference: 'Cesium.HeightReference.CLAMP_TO_GROUND'
|
|
134
|
+
},
|
|
135
|
+
label: {
|
|
136
|
+
heightReference: 'Cesium.HeightReference.CLAMP_TO_GROUND',
|
|
137
|
+
verticalOrigin: 'Cesium.VerticalOrigin.BASELINE'
|
|
138
|
+
},
|
|
139
|
+
polyline: {
|
|
140
|
+
clampToGround: true
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
tooltip: {
|
|
144
|
+
options: {
|
|
145
|
+
showBackground: true,
|
|
146
|
+
backgroundColor: 'Cesium.Color.WHITE',
|
|
147
|
+
font: '14px monospace',
|
|
148
|
+
fillColor: 'Cesium.Color.BLACK',
|
|
149
|
+
outlineColor: 'Cesium.Color.BLACK',
|
|
150
|
+
horizontalOrigin: 'Cesium.HorizontalOrigin.LEFT',
|
|
151
|
+
verticalOrigin: 'Cesium.VerticalOrigin.CENTER',
|
|
152
|
+
pixelOffset: {
|
|
153
|
+
type: 'Cesium.Cartesian2',
|
|
154
|
+
options: [32, -32]
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
// Default GeoJSON infobox will display all properties
|
|
159
|
+
popup: {
|
|
160
|
+
pick: [],
|
|
161
|
+
options: {
|
|
162
|
+
showBackground: true,
|
|
163
|
+
backgroundColor: 'Cesium.Color.WHITE',
|
|
164
|
+
font: '14px monospace',
|
|
165
|
+
fillColor: 'Cesium.Color.BLACK',
|
|
166
|
+
outlineColor: 'Cesium.Color.BLACK',
|
|
167
|
+
horizontalOrigin: 'Cesium.HorizontalOrigin.CENTER',
|
|
168
|
+
verticalOrigin: 'Cesium.VerticalOrigin.BOTTOM',
|
|
169
|
+
pixelOffset: {
|
|
170
|
+
type: 'Cesium.Cartesian2',
|
|
171
|
+
options: [0, -64]
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
infobox: {},
|
|
176
|
+
clusterStyle: {
|
|
177
|
+
label: {
|
|
178
|
+
show: true,
|
|
179
|
+
text: '<%= entities.length.toLocaleString() %>'
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export default {
|
|
185
|
+
domain: KANO_DOMAIN,
|
|
186
|
+
apiPath: KANO_API_PREFIX,
|
|
187
|
+
apiJwt: 'kano-jwt',
|
|
188
|
+
apiTimeout: 30000,
|
|
189
|
+
transport: 'websocket', // Could be 'http' or 'websocket',
|
|
190
|
+
gatewayJwtField: 'jwt',
|
|
191
|
+
gatewayJwt: 'kano-gateway-jwt',
|
|
192
|
+
appName: 'Kano',
|
|
193
|
+
locale: {
|
|
194
|
+
// If you'd like to force locale otherwise it is retrieved from browser
|
|
195
|
+
// default: 'en',
|
|
196
|
+
fallback: 'en'
|
|
197
|
+
},
|
|
198
|
+
logs: {
|
|
199
|
+
level: (((process.env.NODE_ENV === 'development') || process.env.DEBUG) ? 'debug' : 'info')
|
|
200
|
+
},
|
|
201
|
+
layout: {
|
|
202
|
+
page: { visible: true },
|
|
203
|
+
panes: {
|
|
204
|
+
left: { opener: true },
|
|
205
|
+
top: { opener: true, visible: true },
|
|
206
|
+
right: { opener: true },
|
|
207
|
+
bottom: { opener: true }
|
|
208
|
+
},
|
|
209
|
+
fab: { visible: true }
|
|
210
|
+
},
|
|
211
|
+
engines: {
|
|
212
|
+
leaflet: mapEngine,
|
|
213
|
+
cesium: globeEngine
|
|
214
|
+
},
|
|
215
|
+
mapActivity: {
|
|
216
|
+
padding: false
|
|
217
|
+
},
|
|
218
|
+
globeActivity: {
|
|
219
|
+
padding: false
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" dir="ltr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>KDK test app (2D/3D)</title>
|
|
6
|
+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
|
|
7
|
+
<meta name="format-detection" content="telephone=no" />
|
|
8
|
+
<meta name="msapplication-tap-highlight" content="no" />
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="app"></div>
|
|
12
|
+
<script type="module">
|
|
13
|
+
import { createApp } from 'vue'
|
|
14
|
+
import { Quasar } from 'quasar'
|
|
15
|
+
import '@quasar/extras/material-icons/material-icons.css'
|
|
16
|
+
import 'quasar/src/css/index.sass'
|
|
17
|
+
import config from 'config'
|
|
18
|
+
// For debug purpose with src hot reload
|
|
19
|
+
//import kdk, { kdkCore, kdkMap } from '../client.js'
|
|
20
|
+
// To test library build
|
|
21
|
+
import kdk, { kdkCore, kdkMap } from '../client/kdk.client.js'
|
|
22
|
+
import App from './AppWithGlobe.vue'
|
|
23
|
+
|
|
24
|
+
localStorage.setItem('kano-jwt', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJrYWxpc2lvIiwiaXNzIjoia2FsaXNpbyJ9.qwOZjkIcAqo6HPGESu0_5-f6g9VkN6y6pN1HJKJF6Sg')
|
|
25
|
+
|
|
26
|
+
const app = createApp(App)
|
|
27
|
+
app.use(Quasar, {
|
|
28
|
+
plugins: {}, // import Quasar plugins and add here
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
// Initializes i18n first to avoid any browser translation
|
|
32
|
+
await kdkCore.i18n.initialize(app, ['core', 'map'])
|
|
33
|
+
// Initiate the client
|
|
34
|
+
const api = await kdkCore.initializeApi(kdkMap.setupApi)
|
|
35
|
+
// Then all services
|
|
36
|
+
await api.configure(kdk.core)
|
|
37
|
+
await api.configure(kdk.map)
|
|
38
|
+
api.on('login', (data) => {
|
|
39
|
+
// Store API gateway token if any
|
|
40
|
+
if (data.gatewayToken) api.get('storage').setItem(config.gatewayJwt, data.gatewayToken)
|
|
41
|
+
})
|
|
42
|
+
api.on('logout', (data) => {
|
|
43
|
+
// Remove API gateway token if any
|
|
44
|
+
api.get('storage').removeItem(config.gatewayJwt)
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
app.mount('#app')
|
|
48
|
+
</script>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en" dir="ltr">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<title>KDK test app (2D)</title>
|
|
6
|
+
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
|
|
7
|
+
<meta name="format-detection" content="telephone=no" />
|
|
8
|
+
<meta name="msapplication-tap-highlight" content="no" />
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="app"></div>
|
|
12
|
+
<script type="module">
|
|
13
|
+
import { createApp } from 'vue'
|
|
14
|
+
import { Quasar } from 'quasar'
|
|
15
|
+
import '@quasar/extras/material-icons/material-icons.css'
|
|
16
|
+
import 'quasar/src/css/index.sass'
|
|
17
|
+
import config from 'config'
|
|
18
|
+
// For debug purpose with src hot reload
|
|
19
|
+
//import kdk, { kdkCore, kdkMap } from '../client.map.js'
|
|
20
|
+
// To test library build
|
|
21
|
+
import kdk, { kdkCore, kdkMap } from '../client/kdk.client.map.js'
|
|
22
|
+
import App from './App.vue'
|
|
23
|
+
|
|
24
|
+
localStorage.setItem('kano-jwt', 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJrYWxpc2lvIiwiaXNzIjoia2FsaXNpbyJ9.qwOZjkIcAqo6HPGESu0_5-f6g9VkN6y6pN1HJKJF6Sg')
|
|
25
|
+
|
|
26
|
+
const app = createApp(App)
|
|
27
|
+
app.use(Quasar, {
|
|
28
|
+
plugins: {}, // import Quasar plugins and add here
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
// Initializes i18n first to avoid any browser translation
|
|
32
|
+
await kdkCore.i18n.initialize(app, ['core', 'map'])
|
|
33
|
+
// Initiate the client
|
|
34
|
+
const api = await kdkCore.initializeApi(kdkMap.setupApi)
|
|
35
|
+
// Then all services
|
|
36
|
+
await api.configure(kdk.core)
|
|
37
|
+
await api.configure(kdk.map)
|
|
38
|
+
api.on('login', (data) => {
|
|
39
|
+
// Store API gateway token if any
|
|
40
|
+
if (data.gatewayToken) api.get('storage').setItem(config.gatewayJwt, data.gatewayToken)
|
|
41
|
+
})
|
|
42
|
+
api.on('logout', (data) => {
|
|
43
|
+
// Remove API gateway token if any
|
|
44
|
+
api.get('storage').removeItem(config.gatewayJwt)
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
app.mount('#app')
|
|
48
|
+
</script>
|
|
49
|
+
</body>
|
|
50
|
+
</html>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@kalisio/kdk.client",
|
|
3
|
+
"description": "Kalisio Development Kit Client Library",
|
|
4
|
+
"version": "2.3.2",
|
|
5
|
+
"homepage": "https://github.com/kalisio/kdk",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"client"
|
|
9
|
+
],
|
|
10
|
+
"main": "./client/kdk.client.umd.cjs",
|
|
11
|
+
"module": "./client/kdk.client.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./client/kdk.client.js",
|
|
15
|
+
"require": "./client/kdk.client.umd.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./client/kdk.client.css"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"Kalisio",
|
|
21
|
+
"KDK"
|
|
22
|
+
],
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git://github.com/kalisio/kdk.git"
|
|
27
|
+
},
|
|
28
|
+
"author": {
|
|
29
|
+
"name": "Kalisio contributors",
|
|
30
|
+
"url": "https://github.com/kalisio/kdk"
|
|
31
|
+
},
|
|
32
|
+
"contributors": [],
|
|
33
|
+
"bugs": {
|
|
34
|
+
"url": "https://github.com/kalisio/kdk/issues"
|
|
35
|
+
},
|
|
36
|
+
"engines": {
|
|
37
|
+
"node": ">= 16.0.0"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build:app": "cross-env BUILD_MODE=app vite build",
|
|
41
|
+
"build:app:globe": "cross-env BUILD_MODE=app GLOBE=1 vite build",
|
|
42
|
+
"extras:css": "shx mkdir -p ../client/css && shx cp -R ../extras/css/* ../client/css",
|
|
43
|
+
"extras:i18n": "shx mkdir -p ../client/i18n && shx cp -R ../core/client/i18n/* ../client/i18n && shx cp -R ../map/client/i18n/* ../client/i18n",
|
|
44
|
+
"extras:schemas": "shx mkdir -p ../client/schemas && shx cp -R ../core/common/schemas/* ../client/schemas && shx cp -R ../map/common/schemas/* ../client/schemas",
|
|
45
|
+
"build:lib:extras": "npm run extras:css && npm run extras:i18n && npm run extras:schemas",
|
|
46
|
+
"build:lib:debug": "cross-env BUILD_MODE=lib DEBUG=1 vite build",
|
|
47
|
+
"build:lib:globe:debug": "cross-env BUILD_MODE=lib GLOBE=1 DEBUG=1 vite build",
|
|
48
|
+
"build:lib": "cross-env BUILD_MODE=lib vite build",
|
|
49
|
+
"build:lib:globe": "cross-env BUILD_MODE=lib GLOBE=1 vite build",
|
|
50
|
+
"build:libs": "npm run build:lib:extras && npm run build:lib:debug && npm run build:lib:globe:debug && npm run build:lib && npm run build:lib:globe",
|
|
51
|
+
"dev": "vite dev",
|
|
52
|
+
"dev:globe": "cross-env GLOBE=1 vite dev"
|
|
53
|
+
},
|
|
54
|
+
"dependencies": {},
|
|
55
|
+
"resolutions": {
|
|
56
|
+
"@zip.js/zip.js": "2.7.70",
|
|
57
|
+
"@cesium/engine": "9.1.0",
|
|
58
|
+
"leaflet": "1.6.0",
|
|
59
|
+
"protobufjs": "7.1.0"
|
|
60
|
+
},
|
|
61
|
+
"devDependencies": {
|
|
62
|
+
"@casl/ability": "^6.1.1",
|
|
63
|
+
"@casl/mongoose": "^7.1.0",
|
|
64
|
+
"@feathersjs/client": "^5.0.8",
|
|
65
|
+
"@feathersjs/commons": "^5.0.8",
|
|
66
|
+
"@feathersjs/memory": "^5.0.8",
|
|
67
|
+
"@geoman-io/leaflet-geoman-free": "2.18.3",
|
|
68
|
+
"@intlify/vue-i18n-loader": "^4.2.0",
|
|
69
|
+
"@kalisio/feathers-localforage": "^1.2.0",
|
|
70
|
+
"@kalisio/feathers-s3": "^1.5.0",
|
|
71
|
+
"@kalisio/feathers-webpush": "^1.0.1",
|
|
72
|
+
"@kalisio/leaflet-graphicscale": "^1.0.0",
|
|
73
|
+
"@kalisio/leaflet-pmtiles": "https://github.com/kalisio/leaflet-pmtiles",
|
|
74
|
+
"@kalisio/leaflet.donutcluster": "^1.1.0",
|
|
75
|
+
"@mapbox/geojsonhint": "^3.0.1",
|
|
76
|
+
"@mapbox/sphericalmercator": "^1.2.0",
|
|
77
|
+
"@pdfme/common": "^4.1.0",
|
|
78
|
+
"@pdfme/generator": "^4.1.0",
|
|
79
|
+
"@pdfme/schemas": "^4.1.0",
|
|
80
|
+
"@pdfme/ui": "^4.1.0",
|
|
81
|
+
"@quasar/extras": "1.16.3",
|
|
82
|
+
"@quasar/vite-plugin": "^1.10.0",
|
|
83
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
84
|
+
"@thumbmarkjs/thumbmarkjs": "^0.16.1",
|
|
85
|
+
"@tmcw/togeojson": "^4.5.0",
|
|
86
|
+
"@turf/turf": "^6.5.0",
|
|
87
|
+
"@weacast/core": "^2.2.1",
|
|
88
|
+
"@vitejs/plugin-vue": "^6.0.0",
|
|
89
|
+
"abort-controller": "^3.0.0",
|
|
90
|
+
"ajv": "^8.12.0",
|
|
91
|
+
"ajv-formats": "^2.1.1",
|
|
92
|
+
"ajv-i18n": "^3.6.0",
|
|
93
|
+
"ajv-keywords": "^5.1.0",
|
|
94
|
+
"assert": "^2.0.0",
|
|
95
|
+
"browserify-zlib": "^0.2.0",
|
|
96
|
+
"cesium": "1.117.0",
|
|
97
|
+
"chart.js": "^3.7.1",
|
|
98
|
+
"chartjs-adapter-moment": "^1.0.0",
|
|
99
|
+
"chartjs-chart-matrix": "^1.1.1",
|
|
100
|
+
"chartjs-plugin-annotation": "^1.4.0",
|
|
101
|
+
"chartjs-plugin-datalabels": "^2.0.0",
|
|
102
|
+
"chartjs-plugin-zoom": "^2.0.0",
|
|
103
|
+
"chroma-js": "^2.4.2",
|
|
104
|
+
"cross-env": "^5.2.0",
|
|
105
|
+
"crypto-browserify": "^3.12.0",
|
|
106
|
+
"d3": "^4.9.1",
|
|
107
|
+
"debug": "^4.1.0",
|
|
108
|
+
"email-validator": "^2.0.4",
|
|
109
|
+
"feathers-reactive": "^0.11.0",
|
|
110
|
+
"formatcoords": "^1.1.3",
|
|
111
|
+
"fs-extra": "^8.1.0",
|
|
112
|
+
"geotiff": "^2.1.3",
|
|
113
|
+
"https-browserify": "^1.0.0",
|
|
114
|
+
"i18next": "^21.6.16",
|
|
115
|
+
"iso8601-js-period": "^0.2.1",
|
|
116
|
+
"jquery": "^3.2.1",
|
|
117
|
+
"js-yaml": "^3.13.1",
|
|
118
|
+
"jsts": "^2.12.1",
|
|
119
|
+
"jwt-decode": "^3.1.2",
|
|
120
|
+
"leaflet": "1.6.0",
|
|
121
|
+
"leaflet-arrowheads": "^1.4.0",
|
|
122
|
+
"leaflet-fullscreen": "^1.0.2",
|
|
123
|
+
"leaflet-heatmap": "^1.0.0",
|
|
124
|
+
"leaflet-pixi-overlay": "1.9.3",
|
|
125
|
+
"leaflet-realtime": "^2.2.0",
|
|
126
|
+
"leaflet-rotate": "https://github.com/kalisio/leaflet-rotate",
|
|
127
|
+
"leaflet-timedimension": "^1.1.0",
|
|
128
|
+
"leaflet-velocity": "^1.7.0",
|
|
129
|
+
"leaflet-wms-header": "^1.0.2",
|
|
130
|
+
"leaflet.geodesic": "^2.6.1",
|
|
131
|
+
"leaflet.locatecontrol": "^0.69.0",
|
|
132
|
+
"leaflet.markercluster": "1.1.0",
|
|
133
|
+
"leaflet.vectorgrid": "^1.3.0",
|
|
134
|
+
"localforage": "^1.10.0",
|
|
135
|
+
"lodash": "^4.17.21",
|
|
136
|
+
"loglevel": "^1.8.0",
|
|
137
|
+
"mapillary-js": "^4.0.0",
|
|
138
|
+
"mathjs": "^14.6.0",
|
|
139
|
+
"mime": "^3.0.0",
|
|
140
|
+
"moment": "^2.29.3",
|
|
141
|
+
"moment-timezone": "^0.5.35",
|
|
142
|
+
"node-fetch": "^2.6.7",
|
|
143
|
+
"papaparse": "^5.3.2",
|
|
144
|
+
"path-browserify": "^1.0.1",
|
|
145
|
+
"pinch-zoom-element": "^1.1.1",
|
|
146
|
+
"pixi.js": "7.4.2",
|
|
147
|
+
"pmtiles": "^3.0.7",
|
|
148
|
+
"post-robot": "10.0.42",
|
|
149
|
+
"protomaps-leaflet": "^3.1.2",
|
|
150
|
+
"quasar": "2.12.0",
|
|
151
|
+
"sanitize-html": "^2.7.0",
|
|
152
|
+
"showdown": "^2.1.0",
|
|
153
|
+
"shpjs": "^4.0.2",
|
|
154
|
+
"shx": "^0.3.4",
|
|
155
|
+
"sift": "^16.0.0",
|
|
156
|
+
"socket.io-client": "^4.4.1",
|
|
157
|
+
"stream-browserify": "^3.0.0",
|
|
158
|
+
"stream-http": "^3.2.0",
|
|
159
|
+
"timers-browserify": "^2.0.12",
|
|
160
|
+
"tween.js": "^16.6.0",
|
|
161
|
+
"unplugin-vue-components": "^28.8.0",
|
|
162
|
+
"vite": "^7.0.6",
|
|
163
|
+
"vite-plugin-node-polyfills": "^0.24.0",
|
|
164
|
+
"vite-plugin-static-copy": "^3.1.1",
|
|
165
|
+
"vue": "3.2.45",
|
|
166
|
+
"vue-i18n": "^9.2.0-beta.35",
|
|
167
|
+
"vue-router": "4.1.3",
|
|
168
|
+
"vue3-tour": "^0.3.3",
|
|
169
|
+
"whatwg-fetch": "^2.0.3",
|
|
170
|
+
"xml2js": "^0.4.23",
|
|
171
|
+
"yallist": "^4.0.0"
|
|
172
|
+
}
|
|
173
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Sass/SCSS variables customization
|
|
2
|
+
// https://quasar.dev/style/sass-scss-variables#variables-list
|
|
3
|
+
|
|
4
|
+
//@use "sass:color";
|
|
5
|
+
|
|
6
|
+
// Theme
|
|
7
|
+
$primary: #72448b;
|
|
8
|
+
$secondary: lighten($primary, 50%);
|
|
9
|
+
$accent: lighten($primary, 25%);
|
|
10
|
+
$dark: darken($primary, 25%);
|
|
11
|
+
//$secondary: color.adjust($primary, $lightness: 75%, $space: hsl);
|
|
12
|
+
//$accent: color.adjust($primary, $lightness: 25%, $space: hsl);
|
|
13
|
+
//$dark: color.adjust($primary, $lightness: -25%, $space: hsl);
|
|
14
|
+
$info: $accent;
|
|
15
|
+
|
|
16
|
+
// Default KDK SCSS variables
|
|
17
|
+
@import 'kdk/core.variables';
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { dirname, resolve } from 'node:path'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
import fs from 'fs-extra'
|
|
4
|
+
import { fileURLToPath } from 'node:url'
|
|
5
|
+
import { defineConfig } from 'vite'
|
|
6
|
+
import { nodePolyfills } from 'vite-plugin-node-polyfills'
|
|
7
|
+
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
8
|
+
import Components from 'unplugin-vue-components/vite'
|
|
9
|
+
import vue from '@vitejs/plugin-vue'
|
|
10
|
+
import { viteStaticCopy } from 'vite-plugin-static-copy'
|
|
11
|
+
import { quasar, transformAssetUrls } from '@quasar/vite-plugin'
|
|
12
|
+
|
|
13
|
+
const __dirname = dirname(fileURLToPath(import.meta.url))
|
|
14
|
+
const cesiumSource = './node_modules/cesium/Build/Cesium'
|
|
15
|
+
// This is the base url for static files that CesiumJS needs to load.
|
|
16
|
+
// Set to an empty string to place the files at the site's root path
|
|
17
|
+
const cesiumBaseUrl = 'Cesium'
|
|
18
|
+
|
|
19
|
+
const plugins = [
|
|
20
|
+
nodePolyfills({}),
|
|
21
|
+
nodeResolve({
|
|
22
|
+
rootDir: path.join(process.cwd(), '.'),
|
|
23
|
+
modulePaths: [path.join(process.cwd(), 'node_modules')]
|
|
24
|
+
}),
|
|
25
|
+
Components({
|
|
26
|
+
// relative paths to the directory to search for components.
|
|
27
|
+
dirs: ['../core/client/components', '../map/client/components'],
|
|
28
|
+
// valid file extensions for components.
|
|
29
|
+
extensions: ['vue'],
|
|
30
|
+
// search for subdirectories
|
|
31
|
+
deep: true
|
|
32
|
+
}),
|
|
33
|
+
vue({
|
|
34
|
+
template: { transformAssetUrls }
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
const alias = {}
|
|
38
|
+
|
|
39
|
+
// Use the right index and embed Cesium resources if required
|
|
40
|
+
if (process.env.GLOBE) {
|
|
41
|
+
if (process.env.BUILD_MODE !== 'lib') {
|
|
42
|
+
plugins.push(viteStaticCopy({
|
|
43
|
+
targets: [
|
|
44
|
+
{ src: `${cesiumSource}/ThirdParty`, dest: cesiumBaseUrl },
|
|
45
|
+
{ src: `${cesiumSource}/Workers`, dest: cesiumBaseUrl },
|
|
46
|
+
{ src: `${cesiumSource}/Assets`, dest: cesiumBaseUrl },
|
|
47
|
+
{ src: `${cesiumSource}/Widgets`, dest: cesiumBaseUrl },
|
|
48
|
+
],
|
|
49
|
+
}))
|
|
50
|
+
}
|
|
51
|
+
const html = fs.readFileSync('./index_with_globe.html', 'utf8')
|
|
52
|
+
fs.writeFileSync('./index.html', html, { encoding: 'utf8' })
|
|
53
|
+
} else {
|
|
54
|
+
const html = fs.readFileSync('./index_with_map.html', 'utf8')
|
|
55
|
+
fs.writeFileSync('./index.html', html, { encoding: 'utf8' })
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const build = {
|
|
59
|
+
outDir: './dist',
|
|
60
|
+
minify: !process.env.DEBUG,
|
|
61
|
+
emptyOutDir: (process.env.BUILD_MODE === 'app'),
|
|
62
|
+
rollupOptions: {
|
|
63
|
+
// Make sure to externalize deps that shouldn't be bundled into your library
|
|
64
|
+
external: [],
|
|
65
|
+
output: {}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
if (process.env.BUILD_MODE) {
|
|
70
|
+
// @quasar/plugin-vite options list:
|
|
71
|
+
// https://github.com/quasarframework/quasar/blob/dev/vite-plugin/index.d.ts
|
|
72
|
+
// FIXME: generate errors on quasar import
|
|
73
|
+
plugins.push(quasar({
|
|
74
|
+
sassVariables: fileURLToPath(new URL('./quasar.variables.scss', import.meta.url))
|
|
75
|
+
}))
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (process.env.BUILD_MODE === 'lib') {
|
|
79
|
+
const suffix = (process.env.DEBUG ? '' : '.min')
|
|
80
|
+
build.lib = {
|
|
81
|
+
entry: (process.env.GLOBE ? resolve(__dirname, '../client.js') : resolve(__dirname, '../client.map.js')),
|
|
82
|
+
name: 'KDK',
|
|
83
|
+
// the proper extensions will be added
|
|
84
|
+
fileName: (process.env.GLOBE ? 'kdk.client' : 'kdk.client.map') + suffix,
|
|
85
|
+
}
|
|
86
|
+
// Generate kdk cliet distribution files
|
|
87
|
+
build.outDir = '../client'
|
|
88
|
+
// Do not package all dependencies, should be done by embedding app
|
|
89
|
+
const packageInfo = fs.readJsonSync(path.join(__dirname, 'package.json'))
|
|
90
|
+
let dependencies = Object.keys(packageInfo.devDependencies)
|
|
91
|
+
// We need to manually add some dependencies that are included in a "non-standard" way
|
|
92
|
+
dependencies = dependencies.concat([
|
|
93
|
+
'config',
|
|
94
|
+
'@kalisio/feathers-s3/client.js',
|
|
95
|
+
'moment-timezone/builds/moment-timezone-with-data-10-year-range.js',
|
|
96
|
+
'jsdap/src/parser.js',
|
|
97
|
+
'jsdap/src/xdr.js',
|
|
98
|
+
'cesium/Source/Widgets/widgets.css',
|
|
99
|
+
'leaflet/dist/leaflet.css',
|
|
100
|
+
'leaflet-fullscreen/dist/leaflet.fullscreen.css',
|
|
101
|
+
'leaflet.markercluster/dist/MarkerCluster.css',
|
|
102
|
+
'leaflet.markercluster/dist/MarkerCluster.Default.css',
|
|
103
|
+
'@kalisio/leaflet.donutcluster/src/Leaflet.DonutCluster.css',
|
|
104
|
+
'@kalisio/leaflet-graphicscale/dist/Leaflet.GraphicScale.min.css',
|
|
105
|
+
'leaflet.locatecontrol/dist/L.Control.Locate.css',
|
|
106
|
+
'leaflet-timedimension/dist/leaflet.timedimension.control.css',
|
|
107
|
+
'@geoman-io/leaflet-geoman-free/dist/leaflet-geoman.css'
|
|
108
|
+
])
|
|
109
|
+
build.rollupOptions.external = dependencies
|
|
110
|
+
// Single file
|
|
111
|
+
build.lib.formats = ['es']
|
|
112
|
+
build.rollupOptions.output.manualChunks = (id) => 'kdk'
|
|
113
|
+
Object.assign(alias, {
|
|
114
|
+
// This library does not seem to have a valid configuration in package.json
|
|
115
|
+
jsts: path.resolve(__dirname, './node_modules/jsts/dist/jsts.min.js')
|
|
116
|
+
})
|
|
117
|
+
} else {
|
|
118
|
+
Object.assign(alias, {
|
|
119
|
+
// FIXME: why do we need this to avoid import error on this file ?
|
|
120
|
+
'quasar/src/css/variables.sass': './node_modules/quasar/src/css/variables.sass',
|
|
121
|
+
// This library does not seem to have a valid configuration in package.json
|
|
122
|
+
jsts: path.resolve(__dirname, './node_modules/jsts/dist/jsts.min.js'),
|
|
123
|
+
// FIXME: How to include Quasar language packs ?
|
|
124
|
+
//'quasar/lang': fileURLToPath(new URL('../node_modules/quasar/lang', import.meta.url)),
|
|
125
|
+
// Here are specific required KDK aliases
|
|
126
|
+
'config': fileURLToPath(new URL('./config.js', import.meta.url)), // Alias for client config
|
|
127
|
+
// FIXME: It does not seem that alias can target multiple directories unlike with Webpack.
|
|
128
|
+
// However we should also provide alias for files located in the map part
|
|
129
|
+
// This requires to rewrite some code in loadComponent utility function.
|
|
130
|
+
// FIXME: For library we should directly integrate the components in the JS build
|
|
131
|
+
'@components': fileURLToPath(new URL('../core/client/components', import.meta.url)),
|
|
132
|
+
'@schemas': fileURLToPath(new URL('../client/schemas', import.meta.url)),
|
|
133
|
+
'@i18n': fileURLToPath(new URL('../client/i18n', import.meta.url)),
|
|
134
|
+
'kdk/core.variables': fileURLToPath(new URL('../client/css/core.variables.scss', import.meta.url))
|
|
135
|
+
})
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
// List of warnings to hide because we use newer Vite preprocessor with an old Quasar version
|
|
139
|
+
const silenceDeprecations = ['import', 'slash-div', 'global-builtin', 'mixed-decls', 'color-functions']
|
|
140
|
+
|
|
141
|
+
export default defineConfig({
|
|
142
|
+
plugins,
|
|
143
|
+
build,
|
|
144
|
+
define: {
|
|
145
|
+
CESIUM_BASE_URL: JSON.stringify(`/${cesiumBaseUrl}`)
|
|
146
|
+
},
|
|
147
|
+
css: {
|
|
148
|
+
preprocessorOptions: {
|
|
149
|
+
scss: {
|
|
150
|
+
silenceDeprecations,
|
|
151
|
+
quietDeps: true
|
|
152
|
+
},
|
|
153
|
+
sass: {
|
|
154
|
+
silenceDeprecations,
|
|
155
|
+
quietDeps: true
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
resolve: {
|
|
160
|
+
alias
|
|
161
|
+
},
|
|
162
|
+
optimizeDeps: {
|
|
163
|
+
include: [],
|
|
164
|
+
exclude: []
|
|
165
|
+
}
|
|
166
|
+
})
|