@kalisio/kdk 2.4.1 → 2.5.1
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/core/api/application.js +12 -12
- package/core/api/authentication.js +51 -7
- package/core/api/hooks/hooks.authentication.js +1 -59
- package/core/api/hooks/hooks.authorisations.js +8 -102
- package/core/api/hooks/hooks.model.js +4 -0
- package/core/api/hooks/hooks.push.js +18 -14
- package/core/api/hooks/hooks.users.js +0 -91
- package/core/api/hooks/index.js +0 -2
- package/core/api/services/account/account.service.js +1 -1
- package/core/api/services/authorisations/authorisations.service.js +28 -29
- package/core/api/services/index.js +38 -50
- package/core/api/services/messages/messages.hooks.js +4 -3
- package/core/api/services/users/users.service.js +5 -0
- package/core/client/api.js +182 -71
- package/core/client/broadcaster.js +20 -0
- package/core/client/capabilities.js +17 -7
- package/core/client/components/KActivity.vue +29 -34
- package/core/client/components/KAvatar.vue +0 -6
- package/core/client/components/KChip.vue +142 -39
- package/core/client/components/KContent.vue +13 -32
- package/core/client/components/KDialog.vue +29 -8
- package/core/client/components/KEditor.vue +120 -0
- package/core/client/components/KFollower.vue +75 -0
- package/core/client/components/KLogo.vue +2 -3
- package/core/client/components/KModal.vue +30 -10
- package/core/client/components/KSponsor.vue +1 -1
- package/core/client/components/KTextArea.vue +2 -5
- package/core/client/components/account/KDeleteAccountManager.vue +1 -1
- package/core/client/components/account/KProfile.vue +52 -14
- package/core/client/components/account/KSubscription.vue +19 -9
- package/core/client/components/account/KSubscriptionsManager.vue +10 -11
- package/core/client/components/action/KAction.vue +44 -24
- package/core/client/components/action/KBugReportAction.vue +4 -5
- package/core/client/components/action/KToggleStickyVisibility.vue +41 -0
- package/core/client/components/action/KToggleWidgetVisibility.vue +41 -0
- package/core/client/components/app/KPlatform.vue +122 -35
- package/core/client/components/app/KRequestProgressBar.vue +59 -0
- package/core/client/components/app/KSettings.vue +13 -2
- package/core/client/components/app/KTour.vue +2 -2
- package/core/client/components/chart/KTimeSeriesChart.vue +11 -3
- package/core/client/components/collection/KCard.vue +27 -33
- package/core/client/components/collection/KCardSection.vue +3 -23
- package/core/client/components/collection/KColumn.vue +0 -5
- package/core/client/components/collection/KDescriptionCardSection.vue +10 -5
- package/core/client/components/collection/KFilterView.vue +15 -0
- package/core/client/components/collection/KGrid.vue +4 -9
- package/core/client/components/collection/KHistory.vue +0 -5
- package/core/client/components/collection/KHistoryEntry.vue +0 -2
- package/core/client/components/collection/KItem.vue +1 -2
- package/core/client/components/collection/KSearchFilterControl.vue +139 -0
- package/core/client/components/collection/KTable.vue +1 -4
- package/core/client/components/collection/KTagsFilterControl.vue +70 -0
- package/core/client/components/collection/KTagsFilterView.vue +61 -0
- package/core/client/components/collection/KTimeFilterControl.vue +40 -0
- package/core/client/components/collection/KTimeFilterView.vue +106 -0
- package/core/client/components/collection/KTimeLine.vue +18 -11
- package/core/client/components/document/KBrowser.vue +283 -0
- package/core/client/components/document/KCsv.vue +52 -0
- package/core/client/components/document/KDocument.vue +19 -5
- package/core/client/components/document/KImage.vue +50 -19
- package/core/client/components/document/KMarkdown.vue +10 -2
- package/core/client/components/document/KUploader.vue +126 -0
- package/core/client/components/document/KVideo.vue +39 -0
- package/core/client/components/form/KDateField.vue +70 -0
- package/core/client/components/form/KDateTimeRangeField.vue +6 -17
- package/core/client/components/form/KDatetimeField.vue +6 -13
- package/core/client/components/form/KForm.vue +8 -8
- package/core/client/components/form/KOptionsField.vue +2 -0
- package/core/client/components/form/KResolutionField.vue +54 -52
- package/core/client/components/form/KSelectField.vue +27 -13
- package/core/client/components/form/KTextareaField.vue +23 -5
- package/core/client/components/graphics/KIcon.vue +64 -0
- package/core/client/components/index.js +1 -3
- package/core/client/components/input/KColorPicker.vue +70 -0
- package/core/client/components/input/KIconPicker.vue +188 -0
- package/core/client/components/input/KShapePicker.vue +81 -0
- package/core/client/components/input/index.js +7 -1
- package/core/client/components/layout/KFab.vue +1 -1
- package/core/client/components/layout/KLayout.vue +14 -2
- package/core/client/components/layout/KOpener.vue +9 -11
- package/core/client/components/layout/KPage.vue +31 -17
- package/core/client/components/layout/KWindow.vue +34 -18
- package/core/client/components/menu/KMenu.vue +52 -36
- package/core/client/components/menu/KSubMenu.vue +105 -0
- package/core/client/components/messages/KMessageCard.vue +207 -0
- package/core/client/components/messages/KMessageComposer.vue +199 -0
- package/core/client/components/messages/KMessagesTimeLine.vue +137 -0
- package/core/client/components/messages/index.js +7 -0
- package/core/client/components/screen/KErrorScreen.vue +2 -3
- package/core/client/components/screen/KLogoutScreen.vue +3 -1
- package/core/client/components/screen/KOAuthLoginScreen.vue +15 -0
- package/core/client/components/screen/KOAuthLogoutScreen.vue +33 -0
- package/core/client/components/screen/KUnauthorizedScreen.vue +16 -0
- package/core/client/components/time/KAbsoluteTimeRange.vue +7 -14
- package/core/client/components/time/KDate.vue +55 -28
- package/core/client/components/time/KDateTime.vue +93 -37
- package/core/client/components/time/KDateTimeRange.vue +197 -52
- package/core/client/components/time/KTime.vue +55 -27
- package/core/client/composables/activity.js +40 -30
- package/core/client/composables/{counter.js → collection-counter.js} +2 -4
- package/core/client/composables/collection-filter.js +111 -0
- package/core/client/composables/collection-timerange.js +56 -0
- package/core/client/composables/collection.js +13 -11
- package/core/client/composables/context.js +92 -0
- package/core/client/composables/errors.js +83 -0
- package/core/client/composables/index.js +5 -1
- package/core/client/composables/layout.js +14 -11
- package/core/client/composables/messages.js +4 -4
- package/core/client/composables/pwa.js +20 -27
- package/core/client/composables/schema.js +1 -1
- package/core/client/composables/screen.js +21 -9
- package/core/client/composables/selection.js +16 -4
- package/core/client/composables/session.js +13 -7
- package/core/client/composables/store.js +2 -1
- package/core/client/context.js +38 -0
- package/core/client/directives/v-hover.js +7 -4
- package/core/client/document.js +43 -15
- package/core/client/events.js +2 -2
- package/core/client/exporter.js +5 -4
- package/core/client/filter.js +1 -8
- package/core/client/guards.js +3 -3
- package/core/client/hooks/hooks.logger.js +1 -1
- package/core/client/hooks/hooks.offline.js +32 -0
- package/core/client/hooks/index.js +2 -1
- package/core/client/i18n/core_en.json +95 -268
- package/core/client/i18n/core_fr.json +181 -353
- package/core/client/index.js +22 -8
- package/core/client/layout.js +64 -25
- package/core/client/local-cache.js +67 -0
- package/core/client/local-storage.js +6 -2
- package/core/client/mixins/index.js +0 -1
- package/core/client/mixins/mixin.base-activity.js +22 -10
- package/core/client/mixins/mixin.base-editor.js +1 -1
- package/core/client/mixins/mixin.base-field.js +10 -1
- package/core/client/mixins/mixin.base-item.js +14 -11
- package/core/client/mixins/mixin.service.js +1 -5
- package/core/client/platform.js +44 -0
- package/core/client/readers/reader.blob.js +3 -3
- package/core/client/readers/reader.csv.js +2 -2
- package/core/client/readers/reader.json.js +2 -2
- package/core/client/services/index.js +7 -11
- package/core/client/storage.js +43 -8
- package/core/client/template-context.js +14 -14
- package/core/client/time.js +2 -2
- package/core/client/units.js +7 -4
- package/core/client/utils/index.js +6 -5
- package/core/client/utils/utils.collection.js +71 -0
- package/core/client/utils/utils.colors.js +29 -8
- package/core/client/utils/utils.content.js +14 -14
- package/core/client/utils/utils.files.js +17 -0
- package/core/client/utils/utils.items.js +4 -0
- package/core/client/utils/utils.math.js +18 -1
- package/core/client/utils/utils.push.js +22 -13
- package/core/client/utils/utils.screen.js +6 -2
- package/core/client/utils/utils.services.js +42 -0
- package/core/client/utils/utils.session.js +48 -12
- package/core/client/utils/utils.shapes.js +15 -11
- package/core/common/permissions.js +3 -108
- package/core/common/schemas/messages.update.json +16 -0
- package/core/common/schemas/settings.update.json +27 -8
- package/core/common/utils.js +2 -0
- package/core/common/utils.offline.js +38 -0
- package/coverage/core/api/application.js.html +296 -296
- package/coverage/core/api/authentication.js.html +206 -74
- package/coverage/core/api/db.js.html +61 -61
- package/coverage/core/api/hooks/hooks.authentication.js.html +15 -189
- package/coverage/core/api/hooks/hooks.authorisations.js.html +180 -462
- package/coverage/core/api/hooks/hooks.groups.js.html +1 -1
- package/coverage/core/api/hooks/hooks.logger.js.html +16 -16
- package/coverage/core/api/hooks/hooks.model.js.html +69 -57
- package/coverage/core/api/hooks/hooks.organisations.js.html +1 -1
- package/coverage/core/api/hooks/hooks.push.js.html +58 -46
- package/coverage/core/api/hooks/hooks.query.js.html +142 -142
- package/coverage/core/api/hooks/hooks.schemas.js.html +1 -1
- package/coverage/core/api/hooks/hooks.service.js.html +1 -1
- package/coverage/core/api/hooks/hooks.storage.js.html +1 -1
- package/coverage/core/api/hooks/hooks.users.js.html +54 -327
- package/coverage/core/api/hooks/index.html +64 -94
- package/coverage/core/api/hooks/index.js.html +4 -10
- package/coverage/core/api/index.html +41 -56
- package/coverage/core/api/index.js.html +1 -1
- package/coverage/core/api/marshall.js.html +9 -9
- package/coverage/core/api/models/groups.model.mongodb.js.html +1 -1
- package/coverage/core/api/models/index.html +13 -58
- package/coverage/core/api/models/messages.model.mongodb.js.html +35 -35
- package/coverage/core/api/models/organisations.model.mongodb.js.html +3 -3
- package/coverage/core/api/models/tags.model.mongodb.js.html +1 -1
- package/coverage/core/api/models/users.model.mongodb.js.html +1 -1
- package/coverage/core/api/services/account/account.hooks.js.html +1 -1
- package/coverage/core/api/services/account/account.service.js.html +67 -67
- package/coverage/core/api/services/account/index.html +16 -16
- package/coverage/core/api/services/authorisations/authorisations.hooks.js.html +1 -1
- package/coverage/core/api/services/authorisations/authorisations.service.js.html +141 -144
- package/coverage/core/api/services/authorisations/index.html +19 -19
- package/coverage/core/api/services/databases/databases.hooks.js.html +82 -82
- package/coverage/core/api/services/databases/databases.service.js.html +20 -20
- package/coverage/core/api/services/databases/index.html +32 -32
- package/coverage/core/api/services/groups/groups.hooks.js.html +1 -1
- package/coverage/core/api/services/groups/index.html +1 -1
- package/coverage/core/api/services/import-export/import-export.hooks.js.html +1 -1
- package/coverage/core/api/services/import-export/import-export.service.js.html +1 -1
- package/coverage/core/api/services/import-export/index.html +1 -1
- package/coverage/core/api/services/index.html +21 -21
- package/coverage/core/api/services/index.js.html +118 -154
- package/coverage/core/api/services/mailer/index.html +1 -1
- package/coverage/core/api/services/mailer/mailer.hooks.js.html +1 -1
- package/coverage/core/api/services/mailer/mailer.service.js.html +1 -1
- package/coverage/core/api/services/messages/index.html +21 -21
- package/coverage/core/api/services/messages/messages.hooks.js.html +89 -86
- package/coverage/core/api/services/organisations/index.html +1 -1
- package/coverage/core/api/services/organisations/organisations.hooks.js.html +1 -1
- package/coverage/core/api/services/organisations/organisations.service.js.html +23 -23
- package/coverage/core/api/services/push/index.html +1 -1
- package/coverage/core/api/services/push/push.hooks.js.html +1 -1
- package/coverage/core/api/services/push/push.service.js.html +1 -1
- package/coverage/core/api/services/storage/index.html +5 -5
- package/coverage/core/api/services/storage/storage.hooks.js.html +1 -1
- package/coverage/core/api/services/storage/storage.service.js.html +27 -27
- package/coverage/core/api/services/tags/index.html +1 -1
- package/coverage/core/api/services/tags/tags.hooks.js.html +1 -1
- package/coverage/core/api/services/users/index.html +23 -8
- package/coverage/core/api/services/users/users.hooks.js.html +1 -1
- package/coverage/core/api/services/users/users.service.js.html +100 -0
- package/coverage/core/api/utils.js.html +1 -1
- package/coverage/core/common/errors.js.html +1 -1
- package/coverage/core/common/index.html +42 -27
- package/coverage/core/common/index.js.html +1 -1
- package/coverage/core/common/permissions.js.html +195 -510
- package/coverage/core/common/schema.js.html +1 -1
- package/coverage/core/common/utils.js.html +12 -6
- package/coverage/core/common/utils.offline.js.html +199 -0
- package/coverage/index.html +142 -172
- package/coverage/lcov-report/core/api/application.js.html +296 -296
- package/coverage/lcov-report/core/api/authentication.js.html +206 -74
- package/coverage/lcov-report/core/api/db.js.html +61 -61
- package/coverage/lcov-report/core/api/hooks/hooks.authentication.js.html +15 -189
- package/coverage/lcov-report/core/api/hooks/hooks.authorisations.js.html +180 -462
- package/coverage/lcov-report/core/api/hooks/hooks.groups.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.logger.js.html +16 -16
- package/coverage/lcov-report/core/api/hooks/hooks.model.js.html +69 -57
- package/coverage/lcov-report/core/api/hooks/hooks.organisations.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.push.js.html +58 -46
- package/coverage/lcov-report/core/api/hooks/hooks.query.js.html +142 -142
- package/coverage/lcov-report/core/api/hooks/hooks.schemas.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.service.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.storage.js.html +1 -1
- package/coverage/lcov-report/core/api/hooks/hooks.users.js.html +54 -327
- package/coverage/lcov-report/core/api/hooks/index.html +64 -94
- package/coverage/lcov-report/core/api/hooks/index.js.html +4 -10
- package/coverage/lcov-report/core/api/index.html +41 -56
- package/coverage/lcov-report/core/api/index.js.html +1 -1
- package/coverage/lcov-report/core/api/marshall.js.html +9 -9
- package/coverage/lcov-report/core/api/models/groups.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/models/index.html +13 -58
- package/coverage/lcov-report/core/api/models/messages.model.mongodb.js.html +35 -35
- package/coverage/lcov-report/core/api/models/organisations.model.mongodb.js.html +3 -3
- package/coverage/lcov-report/core/api/models/tags.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/models/users.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/core/api/services/account/account.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/account/account.service.js.html +67 -67
- package/coverage/lcov-report/core/api/services/account/index.html +16 -16
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/authorisations/authorisations.service.js.html +141 -144
- package/coverage/lcov-report/core/api/services/authorisations/index.html +19 -19
- package/coverage/lcov-report/core/api/services/databases/databases.hooks.js.html +82 -82
- package/coverage/lcov-report/core/api/services/databases/databases.service.js.html +20 -20
- package/coverage/lcov-report/core/api/services/databases/index.html +32 -32
- package/coverage/lcov-report/core/api/services/groups/groups.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/groups/index.html +1 -1
- package/coverage/lcov-report/core/api/services/import-export/import-export.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/import-export/import-export.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/import-export/index.html +1 -1
- package/coverage/lcov-report/core/api/services/index.html +21 -21
- package/coverage/lcov-report/core/api/services/index.js.html +118 -154
- package/coverage/lcov-report/core/api/services/mailer/index.html +1 -1
- package/coverage/lcov-report/core/api/services/mailer/mailer.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/mailer/mailer.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/messages/index.html +21 -21
- package/coverage/lcov-report/core/api/services/messages/messages.hooks.js.html +89 -86
- package/coverage/lcov-report/core/api/services/organisations/index.html +1 -1
- package/coverage/lcov-report/core/api/services/organisations/organisations.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/organisations/organisations.service.js.html +23 -23
- package/coverage/lcov-report/core/api/services/push/index.html +1 -1
- package/coverage/lcov-report/core/api/services/push/push.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/push/push.service.js.html +1 -1
- package/coverage/lcov-report/core/api/services/storage/index.html +5 -5
- package/coverage/lcov-report/core/api/services/storage/storage.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/storage/storage.service.js.html +27 -27
- package/coverage/lcov-report/core/api/services/tags/index.html +1 -1
- package/coverage/lcov-report/core/api/services/tags/tags.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/users/index.html +23 -8
- package/coverage/lcov-report/core/api/services/users/users.hooks.js.html +1 -1
- package/coverage/lcov-report/core/api/services/users/users.service.js.html +100 -0
- package/coverage/lcov-report/core/api/utils.js.html +1 -1
- package/coverage/lcov-report/core/common/errors.js.html +1 -1
- package/coverage/lcov-report/core/common/index.html +42 -27
- package/coverage/lcov-report/core/common/index.js.html +1 -1
- package/coverage/lcov-report/core/common/permissions.js.html +195 -510
- package/coverage/lcov-report/core/common/schema.js.html +1 -1
- package/coverage/lcov-report/core/common/utils.js.html +12 -6
- package/coverage/lcov-report/core/common/utils.offline.js.html +199 -0
- package/coverage/lcov-report/index.html +142 -172
- package/coverage/lcov-report/map/api/hooks/hooks.catalog.js.html +125 -29
- package/coverage/lcov-report/map/api/hooks/hooks.features.js.html +1 -1
- package/coverage/lcov-report/map/api/hooks/hooks.query.js.html +20 -44
- package/coverage/lcov-report/map/api/hooks/index.html +7 -7
- package/coverage/lcov-report/map/api/hooks/index.js.html +1 -1
- package/coverage/lcov-report/map/api/index.html +1 -1
- package/coverage/lcov-report/map/api/index.js.html +1 -1
- package/coverage/lcov-report/map/api/marshall.js.html +1 -1
- package/coverage/lcov-report/map/api/models/alerts.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/map/api/models/catalog.model.mongodb.js.html +49 -7
- package/coverage/lcov-report/map/api/models/features.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/map/api/models/index.html +22 -7
- package/coverage/lcov-report/map/api/models/projects.model.mongodb.js.html +1 -1
- package/coverage/lcov-report/map/api/models/styles.model.mongodb.js.html +112 -0
- package/coverage/lcov-report/map/api/services/alerts/alerts.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/alerts/alerts.service.js.html +1 -1
- package/coverage/lcov-report/map/api/services/alerts/index.html +1 -1
- package/coverage/lcov-report/map/api/services/catalog/catalog.hooks.js.html +29 -11
- package/coverage/lcov-report/map/api/services/catalog/index.html +5 -5
- package/coverage/lcov-report/map/api/services/daptiles/daptiles.service.js.html +1 -1
- package/coverage/lcov-report/map/api/services/daptiles/index.html +1 -1
- package/coverage/lcov-report/map/api/services/features/features.hooks.js.html +78 -9
- package/coverage/lcov-report/map/api/services/features/features.service.js.html +307 -4
- package/coverage/lcov-report/map/api/services/features/index.html +7 -7
- package/coverage/lcov-report/map/api/services/index.html +5 -5
- package/coverage/lcov-report/map/api/services/index.js.html +287 -50
- package/coverage/lcov-report/map/api/services/projects/index.html +1 -1
- package/coverage/lcov-report/map/api/services/projects/projects.hooks.js.html +1 -1
- package/coverage/lcov-report/map/api/services/styles/index.html +116 -0
- package/coverage/lcov-report/map/api/services/styles/styles.hooks.js.html +196 -0
- package/coverage/lcov-report/map/common/dynamic-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/errors.js.html +1 -1
- package/coverage/lcov-report/map/common/geotiff-grid-source.js.html +8 -5
- package/coverage/lcov-report/map/common/grid.js.html +1 -1
- package/coverage/lcov-report/map/common/index.html +7 -7
- package/coverage/lcov-report/map/common/index.js.html +1 -1
- package/coverage/lcov-report/map/common/meteo-model-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/moment-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/opendap-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/opendap-utils.js.html +1 -1
- package/coverage/lcov-report/map/common/permissions.js.html +10 -4
- package/coverage/lcov-report/map/common/time-based-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/tms-utils.js.html +6 -6
- package/coverage/lcov-report/map/common/wcs-grid-source.js.html +3 -3
- package/coverage/lcov-report/map/common/wcs-utils.js.html +9 -9
- package/coverage/lcov-report/map/common/weacast-grid-source.js.html +1 -1
- package/coverage/lcov-report/map/common/wfs-utils.js.html +11 -11
- package/coverage/lcov-report/map/common/wms-utils.js.html +8 -8
- package/coverage/lcov-report/map/common/wmts-utils.js.html +7 -7
- package/coverage/lcov.info +2581 -3278
- package/coverage/map/api/hooks/hooks.catalog.js.html +125 -29
- package/coverage/map/api/hooks/hooks.features.js.html +1 -1
- package/coverage/map/api/hooks/hooks.query.js.html +20 -44
- package/coverage/map/api/hooks/index.html +7 -7
- package/coverage/map/api/hooks/index.js.html +1 -1
- package/coverage/map/api/index.html +1 -1
- package/coverage/map/api/index.js.html +1 -1
- package/coverage/map/api/marshall.js.html +1 -1
- package/coverage/map/api/models/alerts.model.mongodb.js.html +1 -1
- package/coverage/map/api/models/catalog.model.mongodb.js.html +49 -7
- package/coverage/map/api/models/features.model.mongodb.js.html +1 -1
- package/coverage/map/api/models/index.html +22 -7
- package/coverage/map/api/models/projects.model.mongodb.js.html +1 -1
- package/coverage/map/api/models/styles.model.mongodb.js.html +112 -0
- package/coverage/map/api/services/alerts/alerts.hooks.js.html +1 -1
- package/coverage/map/api/services/alerts/alerts.service.js.html +1 -1
- package/coverage/map/api/services/alerts/index.html +1 -1
- package/coverage/map/api/services/catalog/catalog.hooks.js.html +29 -11
- package/coverage/map/api/services/catalog/index.html +5 -5
- package/coverage/map/api/services/daptiles/daptiles.service.js.html +1 -1
- package/coverage/map/api/services/daptiles/index.html +1 -1
- package/coverage/map/api/services/features/features.hooks.js.html +78 -9
- package/coverage/map/api/services/features/features.service.js.html +307 -4
- package/coverage/map/api/services/features/index.html +7 -7
- package/coverage/map/api/services/index.html +5 -5
- package/coverage/map/api/services/index.js.html +287 -50
- package/coverage/map/api/services/projects/index.html +1 -1
- package/coverage/map/api/services/projects/projects.hooks.js.html +1 -1
- package/coverage/map/api/services/styles/index.html +116 -0
- package/coverage/map/api/services/styles/styles.hooks.js.html +196 -0
- package/coverage/map/common/dynamic-grid-source.js.html +1 -1
- package/coverage/map/common/errors.js.html +1 -1
- package/coverage/map/common/geotiff-grid-source.js.html +8 -5
- package/coverage/map/common/grid.js.html +1 -1
- package/coverage/map/common/index.html +7 -7
- package/coverage/map/common/index.js.html +1 -1
- package/coverage/map/common/meteo-model-grid-source.js.html +1 -1
- package/coverage/map/common/moment-utils.js.html +1 -1
- package/coverage/map/common/opendap-grid-source.js.html +1 -1
- package/coverage/map/common/opendap-utils.js.html +1 -1
- package/coverage/map/common/permissions.js.html +10 -4
- package/coverage/map/common/time-based-grid-source.js.html +1 -1
- package/coverage/map/common/tms-utils.js.html +6 -6
- package/coverage/map/common/wcs-grid-source.js.html +3 -3
- package/coverage/map/common/wcs-utils.js.html +9 -9
- package/coverage/map/common/weacast-grid-source.js.html +1 -1
- package/coverage/map/common/wfs-utils.js.html +11 -11
- package/coverage/map/common/wms-utils.js.html +8 -8
- package/coverage/map/common/wmts-utils.js.html +7 -7
- package/coverage/tmp/coverage-323534-1747828879483-0.json +1 -0
- package/coverage/tmp/coverage-323546-1747828879453-0.json +1 -0
- package/coverage/tmp/coverage-323557-1747828879439-0.json +1 -0
- package/coverage/tmp/coverage-323569-1747828879416-0.json +1 -0
- package/coverage/tmp/coverage-323576-1747828879390-0.json +1 -0
- package/extras/configs/helpers.js +78 -0
- package/extras/configs/panes.left.js +118 -0
- package/extras/configs/panes.top.js +222 -0
- package/extras/configs/stickies.js +57 -0
- package/extras/configs/widgets.left.js +23 -0
- package/extras/configs/widgets.top.js +73 -0
- package/extras/css/core.variables.scss +8 -0
- package/extras/images/north.svg +3 -0
- package/extras/tours/map/side-nav.js +3 -3
- package/map/api/hooks/hooks.catalog.js +56 -23
- package/map/api/hooks/hooks.query.js +16 -24
- package/map/api/models/catalog.model.mongodb.js +16 -2
- package/{core/api/models/groups.model.mongodb.js → map/api/models/styles.model.mongodb.js} +2 -1
- package/map/api/services/catalog/catalog.hooks.js +13 -7
- package/map/api/services/features/features.hooks.js +28 -5
- package/map/api/services/features/features.service.js +101 -0
- package/map/api/services/index.js +125 -46
- package/map/api/services/styles/styles.hooks.js +37 -0
- package/map/client/cesium/utils/index.js +1 -0
- package/map/client/cesium/utils/utils.cesium.js +397 -0
- package/map/client/cesium/utils/utils.features.js +8 -0
- package/map/client/cesium/utils/utils.geojson.js +59 -0
- package/map/client/cesium/utils/utils.style.js +134 -17
- package/map/client/components/KEditLayerData.vue +17 -79
- package/map/client/components/KFeatureEditor.vue +2 -7
- package/map/client/components/KFeaturesChart.vue +2 -6
- package/map/client/components/KFeaturesFilterEditor.vue +300 -0
- package/map/client/components/KFeaturesFilterManager.vue +196 -0
- package/map/client/components/KFeaturesTable.vue +0 -5
- package/map/client/components/KFilterCondition.vue +303 -0
- package/map/client/components/KLayerEditionToolbar.vue +4 -3
- package/map/client/components/KLayerEditor.vue +451 -36
- package/map/client/components/KMeasureTool.vue +36 -9
- package/map/client/components/KProjectMenu.vue +14 -8
- package/map/client/components/catalog/KAddLayer.vue +0 -4
- package/map/client/components/catalog/KBaseLayersSelector.vue +42 -46
- package/map/client/components/catalog/KConnectLayer.vue +295 -291
- package/map/client/components/catalog/KCreateLayer.vue +141 -146
- package/map/client/components/catalog/KCreateOfflineView.vue +100 -0
- package/map/client/components/catalog/KCreateView.vue +2 -8
- package/map/client/components/catalog/KFilteredLayerItem.vue +72 -25
- package/map/client/components/catalog/KImportLayer.vue +121 -129
- package/map/client/components/catalog/KLayerItem.vue +44 -32
- package/map/client/components/catalog/KLayersPanel.vue +45 -17
- package/map/client/components/catalog/KLayersSelector.vue +51 -50
- package/map/client/components/catalog/KProjectManager.vue +4 -8
- package/map/client/components/catalog/KProjectSelector.vue +33 -2
- package/map/client/components/catalog/KProjectsPanel.vue +84 -106
- package/map/client/components/catalog/KSelectLayers.vue +56 -69
- package/map/client/components/catalog/KSelectViews.vue +56 -69
- package/map/client/components/catalog/KViewSelector.vue +32 -2
- package/map/client/components/catalog/KViewsPanel.vue +178 -110
- package/map/client/components/catalog/KWeatherLayersSelector.vue +77 -85
- package/map/client/components/form/KLocationField.vue +21 -2
- package/map/client/components/form/KOwsLayerField.vue +1 -1
- package/map/client/components/form/KOwsServiceField.vue +102 -63
- package/map/client/components/form/KSelectLayersField.vue +1 -1
- package/map/client/components/form/KSelectViewsField.vue +1 -1
- package/map/client/components/form/KTimezoneField.vue +0 -1
- package/map/client/components/legend/KLegend.vue +4 -4
- package/map/client/components/location/KLocationCardSection.vue +16 -0
- package/map/client/components/location/KLocationMap.vue +3 -2
- package/map/client/components/location/KLocationSearch.vue +46 -8
- package/map/client/components/location/KLocationTimeLineCard.vue +25 -3
- package/map/client/components/location/KLocationTip.vue +57 -10
- package/map/client/components/selection/KFeaturesSelection.vue +71 -0
- package/map/client/components/selection/KSelectedLayerFeatures.vue +343 -0
- package/map/client/components/{KAttribution.vue → stickies/KAttribution.vue} +39 -33
- package/map/client/components/stickies/KLevelSlider.vue +114 -0
- package/map/client/components/stickies/KNorthArrow.vue +26 -0
- package/map/client/components/stickies/KPosition.vue +103 -0
- package/map/client/components/stickies/KTarget.vue +34 -0
- package/map/client/components/styles/KLayerStyleAction.vue +58 -0
- package/map/client/components/styles/KStyleEditor.vue +273 -0
- package/map/client/components/styles/KStyleEditorSection.vue +79 -0
- package/map/client/components/styles/KStyleManager.vue +183 -0
- package/map/client/components/styles/KStylePreview.vue +64 -0
- package/map/client/components/styles/KStylePreviewItem.vue +68 -0
- package/map/client/components/styles/KStylePropertiesGroup.vue +76 -0
- package/map/client/components/styles/KStyleProperty.vue +136 -0
- package/map/client/components/styles/KStyleTip.vue +118 -0
- package/map/client/components/tools/KGeolocateTool.vue +3 -2
- package/map/client/components/tools/KSearchTool.vue +34 -6
- package/map/client/components/widget/KMapillaryViewer.vue +1 -1
- package/map/client/components/widget/KStackableTimeSeries.vue +8 -5
- package/map/client/composables/activity.js +29 -43
- package/map/client/composables/catalog.js +1 -1
- package/map/client/composables/highlight.js +117 -57
- package/map/client/composables/location.js +33 -14
- package/map/client/composables/project.js +9 -10
- package/map/client/composables/selection.js +136 -23
- package/map/client/geocoder.js +104 -0
- package/map/client/geolocation.js +1 -1
- package/map/client/globe.js +3 -0
- package/map/client/hooks/hooks.offline.js +95 -0
- package/map/client/hooks/index.js +1 -0
- package/map/client/i18n/map_en.json +159 -94
- package/map/client/i18n/map_fr.json +186 -127
- package/map/client/index.js +3 -0
- package/map/client/init.js +44 -8
- package/map/client/leaflet/BoxSelection.js +2 -2
- package/map/client/leaflet/GradientPath.js +84 -4
- package/map/client/leaflet/WindBarb.js +323 -0
- package/map/client/leaflet/utils/index.js +1 -0
- package/map/client/leaflet/utils/utils.events.js +8 -3
- package/map/client/leaflet/utils/utils.geojson.js +221 -0
- package/map/client/leaflet/utils/utils.style.js +10 -9
- package/map/client/map.js +3 -0
- package/map/client/mixins/globe/mixin.base-globe.js +151 -19
- package/map/client/mixins/globe/mixin.geojson-layers.js +208 -86
- package/map/client/mixins/globe/mixin.popup.js +3 -2
- package/map/client/mixins/globe/mixin.style.js +3 -1
- package/map/client/mixins/globe/mixin.tooltip.js +3 -2
- package/map/client/mixins/map/index.js +1 -3
- package/map/client/mixins/map/mixin.base-map.js +267 -79
- package/map/client/mixins/map/mixin.canvas-layers.js +44 -10
- package/map/client/mixins/map/mixin.edit-layers.js +142 -57
- package/map/client/mixins/map/mixin.geojson-layers.js +127 -204
- package/map/client/mixins/map/mixin.pmtiles-layers.js +24 -11
- package/map/client/mixins/map/mixin.tiled-mesh-layers.js +1 -2
- package/map/client/mixins/map/mixin.tiled-wind-layers.js +2 -1
- package/map/client/mixins/mixin.activity.js +61 -41
- package/map/client/mixins/mixin.context.js +19 -14
- package/map/client/mixins/mixin.feature-selection.js +0 -1
- package/map/client/mixins/mixin.feature-service.js +41 -59
- package/map/client/mixins/mixin.weacast.js +1 -1
- package/map/client/navigator.js +38 -0
- package/map/client/pixi-utils.js +1 -1
- package/map/client/planets.js +1 -1
- package/map/client/readers/reader.kml.js +57 -1
- package/map/client/utils/index.js +1 -0
- package/map/client/utils/utils.capture.js +10 -7
- package/map/client/utils/utils.catalog.js +2 -2
- package/map/client/utils/utils.features.js +193 -39
- package/map/client/utils/utils.js +0 -21
- package/map/client/utils/utils.layers.js +381 -4
- package/map/client/utils/utils.location.js +39 -74
- package/map/client/utils/utils.offline.js +89 -0
- package/map/client/utils/utils.style.js +133 -80
- package/map/common/geotiff-grid-source.js +2 -1
- package/map/common/permissions.js +2 -0
- package/map/common/schemas/capture.create.json +4 -4
- package/map/common/schemas/catalog.update.json +18 -2
- package/map/common/schemas/projects.create.json +2 -2
- package/map/common/schemas/projects.update.json +2 -2
- package/map/common/tms-utils.js +5 -5
- package/map/common/wcs-grid-source.js +2 -2
- package/map/common/wcs-utils.js +8 -8
- package/map/common/wfs-utils.js +10 -10
- package/map/common/wms-utils.js +7 -7
- package/map/common/wmts-utils.js +6 -6
- package/package.json +7 -4
- package/test/api/core/account.test.js +0 -72
- package/test/api/core/authentication.test.js +184 -0
- package/test/api/core/config/default.cjs +1 -3
- package/test/api/core/index.test.js +33 -96
- package/test/api/core/offline.test.js +55 -0
- package/test/api/core/push.test.js +3 -3
- package/test/api/core/{test-log-2024-06-06.log → test-log-2025-02-05.log} +3 -3
- package/test/api/core/{test-log-2024-11-15.log → test-log-2025-05-21.log} +1 -9
- package/test/api/map/alerts.test.js +1 -1
- package/test/api/map/config/default.cjs +2 -1
- package/test/api/map/data/vigicrues.observations.Q.json +47042 -0
- package/test/api/map/index.test.js +113 -9
- package/test/api/map/style.test.js +62 -0
- package/test/client/core/layout.js +2 -2
- package/test/client/core/runner.js +1 -1
- package/test/client/core/utils.js +52 -0
- package/test/client/map/catalog.js +1 -0
- package/core/api/hooks/hooks.groups.js +0 -48
- package/core/api/hooks/hooks.organisations.js +0 -152
- package/core/api/models/organisations.model.mongodb.js +0 -3
- package/core/api/models/tags.model.mongodb.js +0 -10
- package/core/api/services/groups/groups.hooks.js +0 -31
- package/core/api/services/organisations/organisations.hooks.js +0 -31
- package/core/api/services/organisations/organisations.service.js +0 -86
- package/core/api/services/tags/tags.hooks.js +0 -31
- package/core/api/utils.js +0 -11
- package/core/client/components/KChipsPane.vue +0 -103
- package/core/client/components/document/index.js +0 -9
- package/core/client/components/team/KAddMember.vue +0 -378
- package/core/client/components/team/KAddTag.vue +0 -121
- package/core/client/components/team/KChangeRole.vue +0 -118
- package/core/client/components/team/KGroupCard.vue +0 -110
- package/core/client/components/team/KGroupsActivity.vue +0 -78
- package/core/client/components/team/KJoinGroup.vue +0 -132
- package/core/client/components/team/KMemberCard.vue +0 -328
- package/core/client/components/team/KMemberFilter.vue +0 -49
- package/core/client/components/team/KMembersActivity.vue +0 -136
- package/core/client/components/team/KOrganisationsActivity.vue +0 -51
- package/core/client/components/team/KTagCard.vue +0 -72
- package/core/client/components/team/KTagsActivity.vue +0 -73
- package/core/client/components/team/index.js +0 -9
- package/core/client/mixins/mixin.base-context.js +0 -54
- package/core/client/utils/utils.platform.js +0 -12
- package/core/common/schemas/groups.create.json +0 -28
- package/core/common/schemas/groups.update.json +0 -28
- package/core/common/schemas/organisations.create.json +0 -28
- package/core/common/schemas/organisations.update.json +0 -49
- package/core/common/schemas/tags.create.json +0 -35
- package/core/common/schemas/tags.update.json +0 -35
- package/coverage/tmp/coverage-280506-1731704745613-0.json +0 -1
- package/coverage/tmp/coverage-280518-1731704745599-0.json +0 -1
- package/coverage/tmp/coverage-280529-1731704745588-0.json +0 -1
- package/coverage/tmp/coverage-280541-1731704745574-0.json +0 -1
- package/coverage/tmp/coverage-280548-1731704745545-0.json +0 -1
- package/map/client/components/KFeaturesFilter.vue +0 -259
- package/map/client/components/KLayerStyleEditor.vue +0 -118
- package/map/client/components/KLayerStyleForm.vue +0 -740
- package/map/client/components/KLevelSlider.vue +0 -100
- package/map/client/components/KNorth.vue +0 -31
- package/map/client/components/KPositionIndicator.vue +0 -83
- package/map/client/components/catalog/KCreateProject.vue +0 -100
- package/map/client/mixins/map/mixin.forecast-layers.js +0 -81
- package/map/client/mixins/map/mixin.georaster-layers.js +0 -107
- package/test/api/core/team.test.js +0 -670
- package/test/api/core/test-log-2023-12-19.log +0 -7
- package/test/api/core/test-log-2024-01-04.log +0 -14
- package/test/api/core/test-log-2024-05-14.log +0 -6
- package/test/api/core/test-log-2024-06-26.log +0 -25
- package/test/api/core/test-log-2024-06-28.log +0 -2
- package/test/api/core/test-log-2024-07-09.log +0 -0
- package/test/api/core/test-log-2024-08-13.log +0 -69
- package/test/api/core/test-log-2024-10-28.log +0 -53
- package/test/api/core/test-log-2024-11-05.log +0 -30
- package/test/api/core/test-log-2024-11-18.log +0 -0
- package/test/api/core/test-log-2024-12-03.log +0 -30
- package/test/api/map/test-log-2023-11-24.log +0 -121
- package/test/api/map/test-log-2023-12-12.log +0 -29
- package/test/api/map/test-log-2023-12-13.log +0 -5
- package/test/api/map/test-log-2024-01-04.log +0 -2
- package/test/api/map/test-log-2024-01-11.log +0 -1
- package/test/api/map/test-log-2024-01-25.log +0 -19
- package/test/api/map/test-log-2024-06-06.log +0 -39
- package/test/api/map/test-log-2024-08-13.log +0 -13
- package/test/api/map/test-log-2024-08-20.log +0 -55
- package/test/api/map/test-log-2024-09-09.log +0 -92
- package/test/api/map/test-log-2024-10-28.log +0 -11
- /package/extras/{logos → images}/kalisio.png +0 -0
- /package/extras/{icons → images}/target.svg +0 -0
- /package/test/api/map/data/{vigicrues.observations.json → vigicrues.observations.H.json} +0 -0
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<Teleport v-if="targetElement" :to="'#' + targetId">
|
|
3
|
+
<div :style="computedStyle">
|
|
4
|
+
<component
|
|
5
|
+
:is="loadComponent(follower.component)"
|
|
6
|
+
v-bind="computedProps"
|
|
7
|
+
/>
|
|
8
|
+
</div>
|
|
9
|
+
</Teleport>
|
|
10
|
+
</template>
|
|
11
|
+
|
|
12
|
+
<script setup>
|
|
13
|
+
import _ from 'lodash'
|
|
14
|
+
import { ref, computed, onMounted } from 'vue'
|
|
15
|
+
import { loadComponent } from '../utils'
|
|
16
|
+
|
|
17
|
+
// Props
|
|
18
|
+
const props = defineProps({
|
|
19
|
+
follower: {
|
|
20
|
+
type: Object,
|
|
21
|
+
required: true
|
|
22
|
+
},
|
|
23
|
+
targetId: {
|
|
24
|
+
type: String,
|
|
25
|
+
required: true
|
|
26
|
+
},
|
|
27
|
+
position: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: 'top-right'
|
|
30
|
+
},
|
|
31
|
+
offset: {
|
|
32
|
+
type: [Number, Array],
|
|
33
|
+
default: [0, 0]
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
|
|
37
|
+
// Data
|
|
38
|
+
const targetElement = ref(null)
|
|
39
|
+
|
|
40
|
+
// Computed
|
|
41
|
+
const computedProps = computed(() => {
|
|
42
|
+
return _.omit(props.follower, ['component'])
|
|
43
|
+
})
|
|
44
|
+
const computedStyle = computed(() => {
|
|
45
|
+
const hOffset = `${props.offset[0]}px`
|
|
46
|
+
const vOffset = `${props.offset[1]}px`
|
|
47
|
+
const style = {
|
|
48
|
+
position: 'fixed'
|
|
49
|
+
}
|
|
50
|
+
switch (props.position) {
|
|
51
|
+
case 'top-right':
|
|
52
|
+
style.top = vOffset
|
|
53
|
+
style.right = hOffset
|
|
54
|
+
break
|
|
55
|
+
case 'top-left':
|
|
56
|
+
style.top = vOffset
|
|
57
|
+
style.left = hOffset
|
|
58
|
+
break
|
|
59
|
+
case 'bottom-left':
|
|
60
|
+
style.bottom = vOffset
|
|
61
|
+
style.left = hOffset
|
|
62
|
+
break
|
|
63
|
+
default: // bottom-right
|
|
64
|
+
style.bottom = vOffset
|
|
65
|
+
style.right = hOffset
|
|
66
|
+
break
|
|
67
|
+
}
|
|
68
|
+
return style
|
|
69
|
+
})
|
|
70
|
+
|
|
71
|
+
// Hooks
|
|
72
|
+
onMounted(() => {
|
|
73
|
+
targetElement.value = document.getElementById(props.targetId)
|
|
74
|
+
})
|
|
75
|
+
</script>
|
|
@@ -12,11 +12,10 @@
|
|
|
12
12
|
<script setup>
|
|
13
13
|
import _ from 'lodash'
|
|
14
14
|
import config from 'config'
|
|
15
|
-
import { ref } from 'vue'
|
|
16
15
|
|
|
17
16
|
// Data
|
|
18
|
-
const
|
|
19
|
-
const logo =
|
|
17
|
+
const appSlug = _.get(config, 'appSlug', _.kebabCase(_.get(config, 'appName')))
|
|
18
|
+
const logo = _.get(config, 'appLogo', `${appSlug}-logo.png`)
|
|
20
19
|
|
|
21
20
|
// Props
|
|
22
21
|
defineProps({
|
|
@@ -6,11 +6,7 @@
|
|
|
6
6
|
>
|
|
7
7
|
<q-card
|
|
8
8
|
id="modal-card"
|
|
9
|
-
|
|
10
|
-
'column full-height': maximized,
|
|
11
|
-
'q-pa-sm': $q.screen.gt.xs,
|
|
12
|
-
'q-pa-xs': $q.screen.lt.sm
|
|
13
|
-
}"
|
|
9
|
+
:class="computedClass"
|
|
14
10
|
:style="computedStyle">
|
|
15
11
|
<!--
|
|
16
12
|
Header section
|
|
@@ -32,10 +28,15 @@
|
|
|
32
28
|
<!--
|
|
33
29
|
Content section
|
|
34
30
|
-->
|
|
35
|
-
<div id="modal-content" class="col">
|
|
36
|
-
<KScrollArea
|
|
31
|
+
<div id="modal-content" class="full-width col">
|
|
32
|
+
<KScrollArea
|
|
33
|
+
v-if="scrollable"
|
|
34
|
+
:maxHeight="scrollAreaMaxHeight"
|
|
35
|
+
class="q-pl-xs q-pr-md"
|
|
36
|
+
>
|
|
37
37
|
<slot />
|
|
38
38
|
</KScrollArea>
|
|
39
|
+
<slot v-else />
|
|
39
40
|
</div>
|
|
40
41
|
<!--
|
|
41
42
|
Footer section
|
|
@@ -64,6 +65,10 @@ import KPanel from './KPanel.vue'
|
|
|
64
65
|
|
|
65
66
|
// Props
|
|
66
67
|
const props = defineProps({
|
|
68
|
+
modelValue: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false
|
|
71
|
+
},
|
|
67
72
|
title: {
|
|
68
73
|
type: String,
|
|
69
74
|
default: ''
|
|
@@ -87,9 +92,17 @@ const props = defineProps({
|
|
|
87
92
|
type: Boolean,
|
|
88
93
|
default: false
|
|
89
94
|
},
|
|
90
|
-
|
|
95
|
+
scrollable: {
|
|
91
96
|
type: Boolean,
|
|
92
|
-
default:
|
|
97
|
+
default: true
|
|
98
|
+
},
|
|
99
|
+
backgroundColor: {
|
|
100
|
+
type: String,
|
|
101
|
+
default: 'white'
|
|
102
|
+
},
|
|
103
|
+
textColor: {
|
|
104
|
+
type: String,
|
|
105
|
+
default: 'black'
|
|
93
106
|
}
|
|
94
107
|
})
|
|
95
108
|
|
|
@@ -109,6 +122,13 @@ const lgMinWidths = { wide: 92, medium: 65, narrow: 35 }
|
|
|
109
122
|
const xlMinWidths = { wide: 90, medium: 55, narrow: 25 }
|
|
110
123
|
|
|
111
124
|
// Computed
|
|
125
|
+
const computedClass = computed(() => {
|
|
126
|
+
let result = `bg-${props.backgroundColor} text-${props.textColor}`
|
|
127
|
+
if (props.maximized) result += ' column full-height'
|
|
128
|
+
if ($q.screen.gt.xs) result += ' q-pa-sm'
|
|
129
|
+
if ($q.screen.lt.sm) result += ' q-pa-xs'
|
|
130
|
+
return result
|
|
131
|
+
})
|
|
112
132
|
const computedStyle = computed(() => {
|
|
113
133
|
// compute the modal max height
|
|
114
134
|
const screenHeight = $q.screen.height
|
|
@@ -133,7 +153,7 @@ const computedStyle = computed(() => {
|
|
|
133
153
|
if ($q.screen.lt.md) return `min-width: ${smMinWidths[props.widthPolicy]}vw; max-height: ${modalMaxHeight}px`
|
|
134
154
|
if ($q.screen.lt.lg) return `min-width: ${mdMinWidths[props.widthPolicy]}vw; max-height: ${modalMaxHeight}px`
|
|
135
155
|
if ($q.screen.lt.xl) return `min-width: ${lgMinWidths[props.widthPolicy]}vw; max-height: ${modalMaxHeight}px`
|
|
136
|
-
return `min-width: ${xlMinWidths[props.widthPolicy]}vw; max-height: ${modalMaxHeight}px
|
|
156
|
+
return `min-width: ${xlMinWidths[props.widthPolicy]}vw; max-height: ${modalMaxHeight}px;`
|
|
137
157
|
})
|
|
138
158
|
|
|
139
159
|
// Watch
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
<div
|
|
19
19
|
class="q-pr-lg"
|
|
20
20
|
:class="{ 'k-textarea-collapsed': !isExpanded, 'k-textarea-expanded': isExpanded }"
|
|
21
|
-
v-html="
|
|
21
|
+
v-html="Document.sanitizeHtml(props.text)"
|
|
22
22
|
/>
|
|
23
23
|
</KScrollArea>
|
|
24
24
|
<div class="k-expandable-action">
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
|
|
39
39
|
<script setup>
|
|
40
40
|
import { ref, computed, watch } from 'vue'
|
|
41
|
-
import
|
|
41
|
+
import { Document } from '../document.js'
|
|
42
42
|
import KExpandable from './KExpandable.vue'
|
|
43
43
|
import KScrollArea from './KScrollArea.vue'
|
|
44
44
|
|
|
@@ -78,9 +78,6 @@ const isExpanded = ref(props.isExpanded)
|
|
|
78
78
|
const isScrollable = ref(false)
|
|
79
79
|
|
|
80
80
|
// computed
|
|
81
|
-
const sanitizedText = computed(() => {
|
|
82
|
-
return sanitizeHtml(props.text)
|
|
83
|
-
})
|
|
84
81
|
const cssCursor = computed(() => {
|
|
85
82
|
return isExpandable.value ? 'pointer' : 'default'
|
|
86
83
|
})
|
|
@@ -48,7 +48,7 @@ async function onDelete () {
|
|
|
48
48
|
}).onOk(async (data) => {
|
|
49
49
|
try {
|
|
50
50
|
await api.getService('users').remove(User._id)
|
|
51
|
-
// Redirecting to
|
|
51
|
+
// Redirecting to logout will logout the user but logout an inexsiting user will raise an error
|
|
52
52
|
// We prefer to clean the token manually instead
|
|
53
53
|
// router.push({ name: 'logout' })
|
|
54
54
|
Store.set('user', null)
|
|
@@ -1,38 +1,49 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div v-if="User" class="
|
|
2
|
+
<div v-if="User" class="full-width column">
|
|
3
3
|
<!-- Header -->
|
|
4
4
|
<KPanel
|
|
5
5
|
id="profile-header"
|
|
6
6
|
:content="header"
|
|
7
7
|
:context="User"
|
|
8
|
-
class="full-width justify-end no-wrap"
|
|
8
|
+
class="q-py-sm full-width justify-end no-wrap"
|
|
9
9
|
@triggered="onTriggered"
|
|
10
10
|
/>
|
|
11
11
|
<!-- Avatar -->
|
|
12
|
-
<div class="
|
|
12
|
+
<div v-if="avatar && computedAvatar" class="q-py-sm column items-center">
|
|
13
13
|
<KAvatar
|
|
14
|
-
:subject="
|
|
15
|
-
size="
|
|
14
|
+
:subject="computedAvatar"
|
|
15
|
+
size="5rem"
|
|
16
16
|
/>
|
|
17
17
|
</div>
|
|
18
18
|
<!-- Information -->
|
|
19
|
-
<div class="column">
|
|
20
|
-
<div class="
|
|
21
|
-
{{
|
|
19
|
+
<div class="q-py-sm column items-center">
|
|
20
|
+
<div class="text-subtitle1 text-weight-medium">
|
|
21
|
+
{{ computedName }}
|
|
22
22
|
</div>
|
|
23
|
-
<div class="
|
|
24
|
-
{{
|
|
23
|
+
<div v-if="description && computedDescription" class="text-caption">
|
|
24
|
+
{{ computedDescription }}
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
|
+
<!-- Role -->
|
|
28
|
+
<div v-if="role && computedRole" class="q-py-sm column items-center">
|
|
29
|
+
<KChip
|
|
30
|
+
color="primary"
|
|
31
|
+
text-color="white"
|
|
32
|
+
square
|
|
33
|
+
size=".85rem"
|
|
34
|
+
:label="$t(`roles.${computedRole}`)"
|
|
35
|
+
/>
|
|
36
|
+
</div>
|
|
27
37
|
</div>
|
|
28
38
|
</template>
|
|
29
39
|
|
|
30
40
|
<script setup>
|
|
41
|
+
import _ from 'lodash'
|
|
31
42
|
import { computed } from 'vue'
|
|
32
43
|
import { Store } from '../../store.js'
|
|
33
44
|
import KAvatar from '../KAvatar.vue'
|
|
34
45
|
import KPanel from '../KPanel.vue'
|
|
35
|
-
import
|
|
46
|
+
import KChip from '../KChip.vue'
|
|
36
47
|
|
|
37
48
|
// Props
|
|
38
49
|
const props = defineProps({
|
|
@@ -43,6 +54,18 @@ const props = defineProps({
|
|
|
43
54
|
manageable: {
|
|
44
55
|
type: Boolean,
|
|
45
56
|
default: true
|
|
57
|
+
},
|
|
58
|
+
avatar: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
},
|
|
62
|
+
description: {
|
|
63
|
+
type: Boolean,
|
|
64
|
+
default: true
|
|
65
|
+
},
|
|
66
|
+
role: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: true
|
|
46
69
|
}
|
|
47
70
|
})
|
|
48
71
|
|
|
@@ -59,6 +82,7 @@ const header = computed(() => {
|
|
|
59
82
|
actions.push({
|
|
60
83
|
id: 'edit-profile',
|
|
61
84
|
icon: 'las la-edit',
|
|
85
|
+
size: '0.75rem',
|
|
62
86
|
tooltip: 'KProfile.EDIT_PROFILE',
|
|
63
87
|
dialog: {
|
|
64
88
|
component: 'editor/KEditor',
|
|
@@ -79,6 +103,7 @@ const header = computed(() => {
|
|
|
79
103
|
const manageAccountAction = {
|
|
80
104
|
id: 'manage-account',
|
|
81
105
|
icon: 'las la-cog',
|
|
106
|
+
size: '0.75rem',
|
|
82
107
|
tooltip: 'KProfile.MANAGE_ACCOUNT',
|
|
83
108
|
dialog: {
|
|
84
109
|
component: 'account/KAccount',
|
|
@@ -98,9 +123,22 @@ const header = computed(() => {
|
|
|
98
123
|
}
|
|
99
124
|
return actions
|
|
100
125
|
})
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
|
|
126
|
+
const computedName = computed(() => {
|
|
127
|
+
return _.get(User.value, 'profile.name', _.get(User.value, 'profile.username', _.get(User.value, 'email', '')))
|
|
128
|
+
})
|
|
129
|
+
const computedDescription = computed(() => {
|
|
130
|
+
return _.get(User.value, 'profile.description', '')
|
|
131
|
+
})
|
|
132
|
+
const computedAvatar = computed(() => {
|
|
133
|
+
return _.get(User.value, 'profile', {})
|
|
134
|
+
})
|
|
135
|
+
const computedRole = computed(() => {
|
|
136
|
+
const permissions = _.get(User.value, 'permissions')
|
|
137
|
+
if (permissions) {
|
|
138
|
+
if (_.isString(permissions)) return permissions
|
|
139
|
+
return permissions[0]
|
|
140
|
+
}
|
|
141
|
+
})
|
|
104
142
|
|
|
105
143
|
// Functions
|
|
106
144
|
function onTriggered (args) {
|
|
@@ -1,17 +1,21 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<q-item>
|
|
3
|
-
<!--
|
|
3
|
+
<!-- Fingerprint -->
|
|
4
4
|
<q-item-section avatar>
|
|
5
|
-
<q-icon
|
|
5
|
+
<q-icon
|
|
6
|
+
:name="icon"
|
|
7
|
+
size="2.5rem"
|
|
8
|
+
/>
|
|
6
9
|
</q-item-section>
|
|
7
10
|
<!-- Label -->
|
|
8
11
|
<q-item-section>
|
|
9
|
-
{{ label }}
|
|
12
|
+
<q-item-label class="text-subtitle2">{{ label }}</q-item-label>
|
|
13
|
+
<q-item-label caption>{{ lastActivity }}</q-item-label>
|
|
10
14
|
</q-item-section>
|
|
11
15
|
<!-- Actions -->
|
|
12
|
-
<
|
|
13
|
-
:content="bindedActions"
|
|
14
|
-
|
|
16
|
+
<q-item-section side>
|
|
17
|
+
<KPanel :content="bindedActions" />
|
|
18
|
+
</q-item-section>
|
|
15
19
|
</q-item>
|
|
16
20
|
</template>
|
|
17
21
|
|
|
@@ -20,7 +24,7 @@ import _ from 'lodash'
|
|
|
20
24
|
import { removeSubscription } from '@kalisio/feathers-webpush/client.js'
|
|
21
25
|
import { computed } from 'vue'
|
|
22
26
|
import { Dialog } from 'quasar'
|
|
23
|
-
import { Store, i18n, api, utils } from '../..'
|
|
27
|
+
import { Store, i18n, api, Time, utils } from '../..'
|
|
24
28
|
import KPanel from '../KPanel.vue'
|
|
25
29
|
|
|
26
30
|
// Props
|
|
@@ -37,10 +41,16 @@ const props = defineProps({
|
|
|
37
41
|
|
|
38
42
|
// Computed
|
|
39
43
|
const icon = computed(() => {
|
|
40
|
-
return
|
|
44
|
+
return `lab la-${_.lowerCase(_.get(props.subscription, 'browser.name'))}`
|
|
41
45
|
})
|
|
42
46
|
const label = computed(() => {
|
|
43
|
-
return _.capitalize(_.get(props.subscription, 'browser.name')) +
|
|
47
|
+
return _.capitalize(_.get(props.subscription, 'browser.name')) +
|
|
48
|
+
' (' + _.get(props.subscription, 'browser.version') + ') - ' +
|
|
49
|
+
_.capitalize(_.get(props.subscription, 'system.os'))
|
|
50
|
+
})
|
|
51
|
+
const lastActivity = computed(() => {
|
|
52
|
+
const timestamp = _.get(props.subscription, 'lastActivity')
|
|
53
|
+
return i18n.t('KSubscription.LAST_ACTIVITY', { date: Time.format(timestamp, 'date.short'), time: Time.format(timestamp, 'time.long') })
|
|
44
54
|
})
|
|
45
55
|
const bindedActions = computed(() => {
|
|
46
56
|
return utils.bindContent(_.cloneDeep(props.actions), { unsubscribe })
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="
|
|
2
|
+
<div class="column">
|
|
3
3
|
<div v-if="subscriptions.length > 0">
|
|
4
|
-
<q-list>
|
|
4
|
+
<q-list separator dense>
|
|
5
5
|
<template v-for="subscription in subscriptions" :key="subscription.endpoint">
|
|
6
6
|
<KSubscription
|
|
7
7
|
:subscription="subscription"
|
|
@@ -10,14 +10,13 @@
|
|
|
10
10
|
</template>
|
|
11
11
|
</q-list>
|
|
12
12
|
</div>
|
|
13
|
-
<
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
</div>
|
|
13
|
+
<KStamp v-else
|
|
14
|
+
icon="las la-exclamation-circle"
|
|
15
|
+
icon-size="1.6rem"
|
|
16
|
+
:text="$t('KSubscriptionsManager.EMPTY')"
|
|
17
|
+
direction="horizontal"
|
|
18
|
+
class="fixed-center"
|
|
19
|
+
/>
|
|
21
20
|
</div>
|
|
22
21
|
</template>
|
|
23
22
|
|
|
@@ -41,6 +40,6 @@ const User = Store.get('user')
|
|
|
41
40
|
|
|
42
41
|
// Computed
|
|
43
42
|
const subscriptions = computed(() => {
|
|
44
|
-
return _.get(User, 'subscriptions', [])
|
|
43
|
+
return _.orderBy(_.get(User, 'subscriptions', []), subscription => subscription.lastActivity)
|
|
45
44
|
})
|
|
46
45
|
</script>
|
|
@@ -7,8 +7,7 @@
|
|
|
7
7
|
no-caps
|
|
8
8
|
no-wrap
|
|
9
9
|
:color="computedColor"
|
|
10
|
-
:icon="
|
|
11
|
-
:icon-right="iconRight ? computedIcon : undefined"
|
|
10
|
+
:icon="undefined"
|
|
12
11
|
:size="size"
|
|
13
12
|
:flat="flat"
|
|
14
13
|
:outline="outline"
|
|
@@ -18,7 +17,11 @@
|
|
|
18
17
|
:dense="dense"
|
|
19
18
|
:disable="computedDisabled"
|
|
20
19
|
v-close-popup="closePopup"
|
|
21
|
-
@click="onClicked"
|
|
20
|
+
@click="onClicked"
|
|
21
|
+
:class="{ 'k-action-toggled': isToggled }"
|
|
22
|
+
>
|
|
23
|
+
<!-- icon -->
|
|
24
|
+
<KIcon v-if="!iconRight && computedIcon" :icon="computedIcon" />
|
|
22
25
|
<!-- label -->
|
|
23
26
|
<div v-if="computedLabel" :class="{ 'ellipsis q-pr-md': iconRight, 'ellipsis q-pl-md': !iconRight }">
|
|
24
27
|
{{ computedLabel }}
|
|
@@ -34,6 +37,8 @@
|
|
|
34
37
|
<!-- extra content -->
|
|
35
38
|
<slot>
|
|
36
39
|
</slot>
|
|
40
|
+
<!-- icon -->
|
|
41
|
+
<KIcon v-if="iconRight && computedIcon" :icon="computedIcon" />
|
|
37
42
|
</q-btn>
|
|
38
43
|
<!--
|
|
39
44
|
Form button renderer
|
|
@@ -47,7 +52,8 @@
|
|
|
47
52
|
:disable="computedDisabled"
|
|
48
53
|
:loading="loading"
|
|
49
54
|
v-close-popup="closePopup"
|
|
50
|
-
@click="onClicked"
|
|
55
|
+
@click="onClicked"
|
|
56
|
+
>
|
|
51
57
|
<div class="ellipsis">
|
|
52
58
|
{{ computedLabel }}
|
|
53
59
|
</div>
|
|
@@ -62,17 +68,22 @@
|
|
|
62
68
|
:dense="dense"
|
|
63
69
|
:disable="computedDisabled"
|
|
64
70
|
v-close-popup="closePopup"
|
|
65
|
-
@click="onClicked"
|
|
71
|
+
@click="onClicked"
|
|
72
|
+
>
|
|
66
73
|
<q-item-section v-if="computedIcon || badge" avatar>
|
|
67
|
-
|
|
74
|
+
<!-- icon -->
|
|
75
|
+
<KIcon v-if="computedIcon" :icon="computedIcon" />
|
|
68
76
|
<!-- badge -->
|
|
69
77
|
<q-badge v-if="badge" v-bind="badge" :label="computedBadgeLabel">
|
|
70
|
-
<
|
|
78
|
+
<KIcon v-if="badge.icon" v-bind="badge.icon" />
|
|
71
79
|
</q-badge>
|
|
72
80
|
</q-item-section>
|
|
73
81
|
<q-item-section :class="'text-' + computedColor" no-wrap>
|
|
74
82
|
<q-item-label :lines="1">{{ computedLabel }}</q-item-label>
|
|
75
83
|
</q-item-section>
|
|
84
|
+
<!-- extra content -->
|
|
85
|
+
<slot>
|
|
86
|
+
</slot>
|
|
76
87
|
</q-item>
|
|
77
88
|
<!--
|
|
78
89
|
Fab renderer
|
|
@@ -80,13 +91,15 @@
|
|
|
80
91
|
<q-btn v-else-if="renderer === 'fab'"
|
|
81
92
|
:id="id"
|
|
82
93
|
class="k-action-fab"
|
|
83
|
-
:icon="computedIcon"
|
|
84
94
|
:color="computedColor"
|
|
85
95
|
:size="size"
|
|
86
96
|
:round="true"
|
|
87
97
|
:dense="dense"
|
|
88
98
|
:disable="computedDisabled"
|
|
89
|
-
@click="onClicked"
|
|
99
|
+
@click="onClicked"
|
|
100
|
+
>
|
|
101
|
+
<!-- icon -->
|
|
102
|
+
<KIcon v-if="!iconRight && computedIcon" :icon="computedIcon" />
|
|
90
103
|
<!-- tooltip -->
|
|
91
104
|
<q-tooltip v-if="computedTooltip" anchor="top middle" self="bottom right">
|
|
92
105
|
{{ computedTooltip }}
|
|
@@ -111,14 +124,17 @@
|
|
|
111
124
|
:label-position="iconRight ? 'left' : 'right'"
|
|
112
125
|
label-class="bg-primary text-white text-caption k-fab-action"
|
|
113
126
|
:disable="computedDisabled"
|
|
114
|
-
@click="onClicked"
|
|
127
|
+
@click="onClicked"
|
|
128
|
+
>
|
|
129
|
+
<!-- icon -->
|
|
130
|
+
<KIcon v-if="!iconRight && computedIcon" :icon="computedIcon" />
|
|
115
131
|
<!-- tooltip -->
|
|
116
132
|
<q-tooltip v-if="computedTooltip" anchor="top middle" self="bottom right">
|
|
117
133
|
{{ computedTooltip }}
|
|
118
134
|
</q-tooltip>
|
|
119
135
|
<!-- badge -->
|
|
120
136
|
<q-badge v-if="badge" v-bind="badge">
|
|
121
|
-
<
|
|
137
|
+
<KIcon v-if="badge.icon" v-bind="badge.icon" />
|
|
122
138
|
</q-badge>
|
|
123
139
|
</q-fab-action>
|
|
124
140
|
<!--
|
|
@@ -136,14 +152,15 @@
|
|
|
136
152
|
square
|
|
137
153
|
:dense="dense"
|
|
138
154
|
:disable="computedDisabled"
|
|
139
|
-
@click="onClicked"
|
|
155
|
+
@click="onClicked"
|
|
156
|
+
>
|
|
140
157
|
<!-- tooltip -->
|
|
141
158
|
<q-tooltip v-if="computedTooltip">
|
|
142
159
|
{{ computedTooltip }}
|
|
143
160
|
</q-tooltip>
|
|
144
161
|
<!-- badge -->
|
|
145
162
|
<q-badge v-if="badge" v-bind="badge" :label="computedBadgeLabel">
|
|
146
|
-
<
|
|
163
|
+
<KIcon v-if="badge.icon" v-bind="badge.icon" />
|
|
147
164
|
</q-badge>
|
|
148
165
|
<!-- extra content -->
|
|
149
166
|
<slot>
|
|
@@ -166,7 +183,8 @@ import { useRoute, useRouter } from 'vue-router'
|
|
|
166
183
|
import { useQuasar, openURL } from 'quasar'
|
|
167
184
|
import { i18n } from '../../i18n.js'
|
|
168
185
|
import { actionProps } from '../../utils/utils.actions'
|
|
169
|
-
import { bindParams } from '../../utils/utils.content.js'
|
|
186
|
+
import { bindParams, bindProperties } from '../../utils/utils.content.js'
|
|
187
|
+
import KIcon from '../graphics/KIcon.vue'
|
|
170
188
|
|
|
171
189
|
// Props
|
|
172
190
|
const props = defineProps(actionProps)
|
|
@@ -191,14 +209,9 @@ const computedIcon = computed(() => {
|
|
|
191
209
|
return props.icon
|
|
192
210
|
})
|
|
193
211
|
const computedColor = computed(() => {
|
|
194
|
-
if (isToggled.value) return _.get(props.toggle, 'color', '
|
|
212
|
+
if (isToggled.value) return _.get(props.toggle, 'color', 'primary')
|
|
195
213
|
return props.color
|
|
196
214
|
})
|
|
197
|
-
const computedDisabled = computed(() => {
|
|
198
|
-
if (!props.disabled) return false
|
|
199
|
-
if (typeof props.disabled === 'function') return props.disabled()
|
|
200
|
-
return props.disabled
|
|
201
|
-
})
|
|
202
215
|
const computedTooltip = computed(() => {
|
|
203
216
|
if (computedDisabled.value) return
|
|
204
217
|
// Check also for translation key or already translated message
|
|
@@ -211,6 +224,11 @@ const computedBadgeLabel = computed(() => {
|
|
|
211
224
|
// Take care that changing this to null or '' breaks the display in Quasar
|
|
212
225
|
return undefined
|
|
213
226
|
})
|
|
227
|
+
const computedDisabled = computed(() => {
|
|
228
|
+
if (!props.disabled) return false
|
|
229
|
+
if (typeof props.disabled === 'function') return props.disabled()
|
|
230
|
+
return props.disabled
|
|
231
|
+
})
|
|
214
232
|
const dense = computed(() => {
|
|
215
233
|
return $q.screen.lt.sm
|
|
216
234
|
})
|
|
@@ -247,7 +265,6 @@ async function onClicked (event) {
|
|
|
247
265
|
if (props.toggle) toggle()
|
|
248
266
|
throw error
|
|
249
267
|
}
|
|
250
|
-
return
|
|
251
268
|
}
|
|
252
269
|
// handle the route case
|
|
253
270
|
if (props.route) {
|
|
@@ -261,7 +278,6 @@ async function onClicked (event) {
|
|
|
261
278
|
params: bindRouteParams('params')
|
|
262
279
|
}, _.omit(props.route, ['query', 'params']))).catch(() => {})
|
|
263
280
|
}
|
|
264
|
-
return
|
|
265
281
|
}
|
|
266
282
|
// handle the dialog case
|
|
267
283
|
if (props.dialog) {
|
|
@@ -270,7 +286,7 @@ async function onClicked (event) {
|
|
|
270
286
|
if (component) {
|
|
271
287
|
dialog = {
|
|
272
288
|
component: 'KDialog',
|
|
273
|
-
componentProps: _.
|
|
289
|
+
componentProps: bindProperties(_.cloneDeep(dialog), props.context)
|
|
274
290
|
}
|
|
275
291
|
}
|
|
276
292
|
$q.dialog(dialog)
|
|
@@ -299,9 +315,13 @@ defineExpose({
|
|
|
299
315
|
|
|
300
316
|
<style lang="scss" scoped>
|
|
301
317
|
.k-action-fab, .k-action-fab-action {
|
|
302
|
-
border: 2px solid
|
|
318
|
+
border: 2px solid;
|
|
319
|
+
border-color: v-bind(computedColor) - 75%;
|
|
303
320
|
}
|
|
304
321
|
.k-action-tab-active {
|
|
305
322
|
border-bottom: solid 2px;
|
|
306
323
|
}
|
|
324
|
+
.k-action-toggled {
|
|
325
|
+
background-color: #efefef !important;
|
|
326
|
+
}
|
|
307
327
|
</style>
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
import _ from 'lodash'
|
|
10
10
|
import config from 'config'
|
|
11
11
|
import { ref } from 'vue'
|
|
12
|
-
import { i18n } from '../../i18n'
|
|
13
|
-
import {
|
|
14
|
-
import { actionProps } from '../../utils/utils.actions'
|
|
12
|
+
import { i18n } from '../../i18n.js'
|
|
13
|
+
import { Platform } from '../../platform.js'
|
|
14
|
+
import { actionProps } from '../../utils/utils.actions.js'
|
|
15
15
|
import { useVersion } from '../../composables'
|
|
16
16
|
import KAction from './KAction.vue'
|
|
17
17
|
|
|
@@ -20,7 +20,6 @@ const props = defineProps(_.omit(actionProps, ['toggle', 'url', 'handler', 'rout
|
|
|
20
20
|
|
|
21
21
|
// Data
|
|
22
22
|
const { clientVersionName, apiVersionName } = useVersion()
|
|
23
|
-
const platform = getPlatform()
|
|
24
23
|
|
|
25
24
|
// Setup bug report info
|
|
26
25
|
const bugReport = {
|
|
@@ -32,8 +31,8 @@ const bugReport = {
|
|
|
32
31
|
}),
|
|
33
32
|
body: i18n.t('KAbout.BUG_REPORT_BODY')
|
|
34
33
|
}
|
|
35
|
-
_.forOwn(platform, (value, key) => { bugReport.body += `${key}: ${value}%0D%0A` })
|
|
36
34
|
bugReport.body += `domain: ${_.get(config, 'domain')}%0D%0A`
|
|
37
35
|
bugReport.body += `flavor: ${_.get(config, 'flavor')}%0D%0A`
|
|
36
|
+
bugReport.body += JSON.stringify(Platform.getData(), null, 2)
|
|
38
37
|
const url = ref(`mailto:${bugReport.address}?subject=${bugReport.subject}&body=${bugReport.body}`)
|
|
39
38
|
</script>
|