@tak-ps/cloudtak 12.54.0 → 12.94.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/package.json +26 -17
- package/dist/types/plugin.d.ts +0 -99
- package/dist/types/src/App.vue.d.ts +0 -5
- package/dist/types/src/base/chatroom-chats.d.ts +0 -17
- package/dist/types/src/base/chatroom.d.ts +0 -47
- package/dist/types/src/base/cot.d.ts +0 -94
- package/dist/types/src/base/database.d.ts +0 -115
- package/dist/types/src/base/events.d.ts +0 -30
- package/dist/types/src/base/filter.d.ts +0 -41
- package/dist/types/src/base/handler.d.ts +0 -11
- package/dist/types/src/base/icon.d.ts +0 -4
- package/dist/types/src/base/notification.d.ts +0 -37
- package/dist/types/src/base/overlay.d.ts +0 -94
- package/dist/types/src/base/subscription-feature.d.ts +0 -49
- package/dist/types/src/base/subscription-log.d.ts +0 -32
- package/dist/types/src/base/subscription.d.ts +0 -115
- package/dist/types/src/base/utils/styles.d.ts +0 -11
- package/dist/types/src/base/validators.d.ts +0 -9
- package/dist/types/src/components/Admin/AdminImports.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminLayers.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminMissionTemplate.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminMissionTemplateLog.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminMissionTemplates.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminOverlays.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminPalette.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminPaletteFeature.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminPalettes.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminServer.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminTasks.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminUser.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminUsers.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/AdminVideos.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Server/ServerConnection.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Server/ServerInjectorModal.vue.d.ts +0 -11
- package/dist/types/src/components/Admin/Server/ServerInjectors.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Server/ServerPackages.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Server/ServerRepeaters.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Server/ServerVideos.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Tasks/AdminRawTasks.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Videos/AdminVideoLeases.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Videos/AdminVideoService.vue.d.ts +0 -3
- package/dist/types/src/components/Admin/Videos/VideoConfig.vue.d.ts +0 -7
- package/dist/types/src/components/Admin/Videos/VideoConfigPort.vue.d.ts +0 -8
- package/dist/types/src/components/CloudTAK/CoTView.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/CoordInput.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/DrawTools.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/FeatView.vue.d.ts +0 -8
- package/dist/types/src/components/CloudTAK/GeoJSONInput.vue.d.ts +0 -24
- package/dist/types/src/components/CloudTAK/MainMenu.vue.d.ts +0 -9
- package/dist/types/src/components/CloudTAK/MainMenuContents.vue.d.ts +0 -16
- package/dist/types/src/components/CloudTAK/Map.vue.d.ts +0 -8
- package/dist/types/src/components/CloudTAK/MapLoading.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/Debugger.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuBasemaps.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuChannels.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuChats.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuConnections.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuContacts.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuFeatures.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuFeaturesDeleted.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuFiles.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuImport.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuImports.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuItemCard.vue.d.ts +0 -101
- package/dist/types/src/components/CloudTAK/Menu/MenuMission.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuMissions.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuOverlayExplorer.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuOverlays.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuPackage.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuPackages.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuRoutes.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuRoutesNew.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuSettings.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuSettingsCallsign.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuSettingsDisplay.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuVideos.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/MenuVideosRemote.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionContents.vue.d.ts +0 -11
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionCreate.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionInfo.vue.d.ts +0 -11
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionInviteModal.vue.d.ts +0 -17
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerCreate.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerEdit.vue.d.ts +0 -15
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerTree.vue.d.ts +0 -15
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayers.vue.d.ts +0 -8
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLog.vue.d.ts +0 -9
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLogs.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionTimeline.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionUsers.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Menu/Mission/PendingInvites.vue.d.ts +0 -11
- package/dist/types/src/components/CloudTAK/Menu/Overlays/TreeMission.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Menu/Overlays/TreeVector.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/Menu/Videos/VideoLeaseModal.vue.d.ts +0 -16
- package/dist/types/src/components/CloudTAK/Menu/Videos/VideosRemoteFeed.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/Notifications.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/Query/Magnetic.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Query/Reverse.vue.d.ts +0 -8
- package/dist/types/src/components/CloudTAK/Query/Sun.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/Query/Weather.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/QueryView.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/RangeInput.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/RangeRingsInput.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/Breadcrumb.vue.d.ts +0 -6
- package/dist/types/src/components/CloudTAK/util/ChannelInfo.vue.d.ts +0 -15
- package/dist/types/src/components/CloudTAK/util/ContactPuck.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/Coordinate.vue.d.ts +0 -67
- package/dist/types/src/components/CloudTAK/util/CoordinateType.vue.d.ts +0 -27
- package/dist/types/src/components/CloudTAK/util/CopyButton.vue.d.ts +0 -32
- package/dist/types/src/components/CloudTAK/util/CopyField.vue.d.ts +0 -122
- package/dist/types/src/components/CloudTAK/util/DrawOverlay.vue.d.ts +0 -3
- package/dist/types/src/components/CloudTAK/util/EmptyInfo.vue.d.ts +0 -24
- package/dist/types/src/components/CloudTAK/util/FeatureIcon.vue.d.ts +0 -23
- package/dist/types/src/components/CloudTAK/util/FeatureRow.vue.d.ts +0 -81
- package/dist/types/src/components/CloudTAK/util/FloatingAttachment.vue.d.ts +0 -17
- package/dist/types/src/components/CloudTAK/util/FloatingVideo.vue.d.ts +0 -27
- package/dist/types/src/components/CloudTAK/util/GroupSelect.vue.d.ts +0 -14
- package/dist/types/src/components/CloudTAK/util/JSONModal.vue.d.ts +0 -27
- package/dist/types/src/components/CloudTAK/util/Keywords.vue.d.ts +0 -6
- package/dist/types/src/components/CloudTAK/util/LineLength.vue.d.ts +0 -24
- package/dist/types/src/components/CloudTAK/util/MenuTemplate.vue.d.ts +0 -71
- package/dist/types/src/components/CloudTAK/util/MultipleSelect.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/NotificationIcon.vue.d.ts +0 -10
- package/dist/types/src/components/CloudTAK/util/NotificationToast.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/util/PolygonArea.vue.d.ts +0 -24
- package/dist/types/src/components/CloudTAK/util/PropertyBattery.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/util/PropertyBearing.vue.d.ts +0 -58
- package/dist/types/src/components/CloudTAK/util/PropertyCreator.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/PropertyDistance.vue.d.ts +0 -54
- package/dist/types/src/components/CloudTAK/util/PropertyElevation.vue.d.ts +0 -32
- package/dist/types/src/components/CloudTAK/util/PropertyEmail.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/util/PropertyLinks.vue.d.ts +0 -14
- package/dist/types/src/components/CloudTAK/util/PropertyMetadata.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/PropertyMilSym.vue.d.ts +0 -25
- package/dist/types/src/components/CloudTAK/util/PropertyPhone.vue.d.ts +0 -13
- package/dist/types/src/components/CloudTAK/util/PropertySpeed.vue.d.ts +0 -23
- package/dist/types/src/components/CloudTAK/util/PropertyStyle.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/PropertyTimes.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/PropertyType.vue.d.ts +0 -27
- package/dist/types/src/components/CloudTAK/util/SearchBox.vue.d.ts +0 -37
- package/dist/types/src/components/CloudTAK/util/SelectFeats.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/SettingsCallsign.vue.d.ts +0 -28
- package/dist/types/src/components/CloudTAK/util/Share.vue.d.ts +0 -14
- package/dist/types/src/components/CloudTAK/util/ShareToMission.vue.d.ts +0 -53
- package/dist/types/src/components/CloudTAK/util/ShareToPackage.vue.d.ts +0 -62
- package/dist/types/src/components/CloudTAK/util/SlideDownHeader.vue.d.ts +0 -41
- package/dist/types/src/components/CloudTAK/util/StandardItem.vue.d.ts +0 -18
- package/dist/types/src/components/CloudTAK/util/Subscriptions.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/VideoLeaseSourceType.vue.d.ts +0 -6
- package/dist/types/src/components/CloudTAK/util/WarnChannels.vue.d.ts +0 -7
- package/dist/types/src/components/CloudTAK/util/WarnConfiguration.vue.d.ts +0 -7
- package/dist/types/src/components/Configure.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Connection/AgencyBadge.vue.d.ts +0 -8
- package/dist/types/src/components/ETL/Connection/ConnectionFiles.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Connection/ConnectionTokens.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Connection/ConnectionVideos.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Connection/StatusDot.vue.d.ts +0 -13
- package/dist/types/src/components/ETL/Connection/TokenModal.vue.d.ts +0 -16
- package/dist/types/src/components/ETL/Connection.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/ConnectionCard.vue.d.ts +0 -16
- package/dist/types/src/components/ETL/Connections.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Data.vue.d.ts +0 -3
- package/dist/types/src/components/ETL/Layer/LayerIncomingConfig.vue.d.ts +0 -27
- package/dist/types/src/components/ETL/Layer/LayerOutgoingConfig.vue.d.ts +0 -27
- package/dist/types/src/components/ETL/Layer/utils/QueryInput.vue.d.ts +0 -56
- package/dist/types/src/components/ETL/Layer/utils/StatusDot.vue.d.ts +0 -7
- package/dist/types/src/components/ETL/Layer.vue.d.ts +0 -3
- package/dist/types/src/components/Home.vue.d.ts +0 -13
- package/dist/types/src/components/Loading.vue.d.ts +0 -3
- package/dist/types/src/components/Login.vue.d.ts +0 -7
- package/dist/types/src/components/LostUser.vue.d.ts +0 -3
- package/dist/types/src/components/PageFooter.vue.d.ts +0 -3
- package/dist/types/src/components/ServerAdmin.vue.d.ts +0 -3
- package/dist/types/src/components/VideoWall/Main.vue.d.ts +0 -3
- package/dist/types/src/components/VideoWall.vue.d.ts +0 -13
- package/dist/types/src/components/util/GroupSelect.vue.d.ts +0 -14
- package/dist/types/src/components/util/InitialAuthor.vue.d.ts +0 -6
- package/dist/types/src/components/util/StatusDot.vue.d.ts +0 -8
- package/dist/types/src/components/util/Upload.vue.d.ts +0 -46
- package/dist/types/src/components/util/UploadLogo.vue.d.ts +0 -14
- package/dist/types/src/main.d.ts +0 -1
- package/dist/types/src/pages/admin/main.d.ts +0 -1
- package/dist/types/src/pages/connection/main.d.ts +0 -1
- package/dist/types/src/pages/docs/App.vue.d.ts +0 -4
- package/dist/types/src/pages/docs/main.d.ts +0 -1
- package/dist/types/src/pages/video/main.d.ts +0 -1
- package/dist/types/src/std.d.ts +0 -19
- package/dist/types/src/stores/brand.d.ts +0 -7
- package/dist/types/src/stores/float.d.ts +0 -42
- package/dist/types/src/stores/map.d.ts +0 -115
- package/dist/types/src/stores/modules/draw.d.ts +0 -35
- package/dist/types/src/stores/modules/icons.d.ts +0 -38
- package/dist/types/src/stores/modules/menu.d.ts +0 -34
- package/dist/types/src/test/setup.d.ts +0 -1
- package/dist/types/src/timediff.d.ts +0 -1
- package/dist/types/src/types.d.ts +0 -158
- package/dist/types/src/video.d.ts +0 -1
- package/dist/types/src/workers/atlas-connection.d.ts +0 -12
- package/dist/types/src/workers/atlas-database.d.ts +0 -134
- package/dist/types/src/workers/atlas-profile.d.ts +0 -39
- package/dist/types/src/workers/atlas-team.d.ts +0 -13
- package/dist/types/src/workers/atlas.d.ts +0 -19
- package/src/App.vue +0 -341
- package/src/base/chatroom-chats.ts +0 -124
- package/src/base/chatroom.ts +0 -202
- package/src/base/cot.ts +0 -625
- package/src/base/database.ts +0 -150
- package/src/base/events.ts +0 -43
- package/src/base/filter.ts +0 -163
- package/src/base/handler.ts +0 -67
- package/src/base/icon.ts +0 -16
- package/src/base/notification.ts +0 -163
- package/src/base/overlay.ts +0 -558
- package/src/base/subscription-feature.ts +0 -224
- package/src/base/subscription-log.ts +0 -174
- package/src/base/subscription.ts +0 -489
- package/src/base/utils/styles.ts +0 -430
- package/src/base/validators.ts +0 -66
- package/src/components/Admin/AdminConfig.vue +0 -487
- package/src/components/Admin/AdminConnections.vue +0 -195
- package/src/components/Admin/AdminDatas.vue +0 -165
- package/src/components/Admin/AdminExport.vue +0 -121
- package/src/components/Admin/AdminImports.vue +0 -222
- package/src/components/Admin/AdminLayerTemplate.vue +0 -91
- package/src/components/Admin/AdminLayers.vue +0 -301
- package/src/components/Admin/AdminMissionTemplate.vue +0 -259
- package/src/components/Admin/AdminMissionTemplateLog.vue +0 -273
- package/src/components/Admin/AdminMissionTemplates.vue +0 -189
- package/src/components/Admin/AdminOverlays.vue +0 -232
- package/src/components/Admin/AdminOverlaysEdit.vue +0 -355
- package/src/components/Admin/AdminPalette.vue +0 -214
- package/src/components/Admin/AdminPaletteFeature.vue +0 -208
- package/src/components/Admin/AdminPalettes.vue +0 -189
- package/src/components/Admin/AdminServer.vue +0 -143
- package/src/components/Admin/AdminTasks.vue +0 -60
- package/src/components/Admin/AdminUser.vue +0 -263
- package/src/components/Admin/AdminUsers.vue +0 -183
- package/src/components/Admin/AdminVideos.vue +0 -60
- package/src/components/Admin/Server/ServerConnection.vue +0 -322
- package/src/components/Admin/Server/ServerInjectorModal.vue +0 -125
- package/src/components/Admin/Server/ServerInjectors.vue +0 -104
- package/src/components/Admin/Server/ServerPackages.vue +0 -159
- package/src/components/Admin/Server/ServerRepeaters.vue +0 -105
- package/src/components/Admin/Server/ServerVideos.vue +0 -83
- package/src/components/Admin/Tasks/AdminRawTasks.vue +0 -148
- package/src/components/Admin/Tasks/AdminTasks.vue +0 -286
- package/src/components/Admin/Videos/AdminVideoLeases.vue +0 -198
- package/src/components/Admin/Videos/AdminVideoService.vue +0 -67
- package/src/components/Admin/Videos/VideoConfig.vue +0 -132
- package/src/components/Admin/Videos/VideoConfigPath.vue +0 -58
- package/src/components/Admin/Videos/VideoConfigPort.vue +0 -40
- package/src/components/CloudTAK/CoTView.vue +0 -915
- package/src/components/CloudTAK/CoordInput.vue +0 -110
- package/src/components/CloudTAK/DrawTools.vue +0 -200
- package/src/components/CloudTAK/FeatView.vue +0 -242
- package/src/components/CloudTAK/GeoJSONInput.vue +0 -226
- package/src/components/CloudTAK/MainMenu.vue +0 -190
- package/src/components/CloudTAK/MainMenuContents.vue +0 -360
- package/src/components/CloudTAK/Map.vue +0 -972
- package/src/components/CloudTAK/MapLoading.vue +0 -31
- package/src/components/CloudTAK/Menu/Basemaps/EditModal.vue +0 -427
- package/src/components/CloudTAK/Menu/Debugger.vue +0 -118
- package/src/components/CloudTAK/Menu/Iconset/EditModal.vue +0 -118
- package/src/components/CloudTAK/Menu/MenuBasemaps.vue +0 -410
- package/src/components/CloudTAK/Menu/MenuChannels.vue +0 -206
- package/src/components/CloudTAK/Menu/MenuChat.vue +0 -222
- package/src/components/CloudTAK/Menu/MenuChats.vue +0 -167
- package/src/components/CloudTAK/Menu/MenuConnections.vue +0 -166
- package/src/components/CloudTAK/Menu/MenuContacts.vue +0 -245
- package/src/components/CloudTAK/Menu/MenuFeatures.vue +0 -718
- package/src/components/CloudTAK/Menu/MenuFeaturesDeleted.vue +0 -217
- package/src/components/CloudTAK/Menu/MenuFiles.vue +0 -433
- package/src/components/CloudTAK/Menu/MenuIcon.vue +0 -236
- package/src/components/CloudTAK/Menu/MenuIconset.vue +0 -128
- package/src/components/CloudTAK/Menu/MenuIconsets.vue +0 -266
- package/src/components/CloudTAK/Menu/MenuImport.vue +0 -198
- package/src/components/CloudTAK/Menu/MenuImports.vue +0 -199
- package/src/components/CloudTAK/Menu/MenuItemCard.vue +0 -240
- package/src/components/CloudTAK/Menu/MenuMission.vue +0 -324
- package/src/components/CloudTAK/Menu/MenuMissions.vue +0 -334
- package/src/components/CloudTAK/Menu/MenuOverlayExplorer.vue +0 -434
- package/src/components/CloudTAK/Menu/MenuOverlays.vue +0 -560
- package/src/components/CloudTAK/Menu/MenuPackage.vue +0 -340
- package/src/components/CloudTAK/Menu/MenuPackages.vue +0 -193
- package/src/components/CloudTAK/Menu/MenuRoutes.vue +0 -186
- package/src/components/CloudTAK/Menu/MenuRoutesNew.vue +0 -193
- package/src/components/CloudTAK/Menu/MenuSettings.vue +0 -95
- package/src/components/CloudTAK/Menu/MenuSettingsCallsign.vue +0 -12
- package/src/components/CloudTAK/Menu/MenuSettingsDisplay.vue +0 -144
- package/src/components/CloudTAK/Menu/MenuSettingsTokens.vue +0 -83
- package/src/components/CloudTAK/Menu/MenuVideos.vue +0 -436
- package/src/components/CloudTAK/Menu/MenuVideosRemote.vue +0 -203
- package/src/components/CloudTAK/Menu/Mission/MissionContents.vue +0 -211
- package/src/components/CloudTAK/Menu/Mission/MissionCreate.vue +0 -372
- package/src/components/CloudTAK/Menu/Mission/MissionInfo.vue +0 -331
- package/src/components/CloudTAK/Menu/Mission/MissionInviteModal.vue +0 -107
- package/src/components/CloudTAK/Menu/Mission/MissionLayerCreate.vue +0 -77
- package/src/components/CloudTAK/Menu/Mission/MissionLayerEdit.vue +0 -77
- package/src/components/CloudTAK/Menu/Mission/MissionLayerTree.vue +0 -194
- package/src/components/CloudTAK/Menu/Mission/MissionLayers.vue +0 -157
- package/src/components/CloudTAK/Menu/Mission/MissionLog.vue +0 -170
- package/src/components/CloudTAK/Menu/Mission/MissionLogs.vue +0 -194
- package/src/components/CloudTAK/Menu/Mission/MissionTimeline.vue +0 -142
- package/src/components/CloudTAK/Menu/Mission/MissionUsers.vue +0 -74
- package/src/components/CloudTAK/Menu/Mission/PendingInvites.vue +0 -130
- package/src/components/CloudTAK/Menu/Overlays/DeleteModal.vue +0 -57
- package/src/components/CloudTAK/Menu/Overlays/TreeCots.vue +0 -497
- package/src/components/CloudTAK/Menu/Overlays/TreeMission.vue +0 -32
- package/src/components/CloudTAK/Menu/Overlays/TreeVector.vue +0 -113
- package/src/components/CloudTAK/Menu/Settings/TokenModal.vue +0 -110
- package/src/components/CloudTAK/Menu/Videos/VideoLeaseModal.vue +0 -753
- package/src/components/CloudTAK/Menu/Videos/VideosRemoteFeed.vue +0 -75
- package/src/components/CloudTAK/Notifications.vue +0 -195
- package/src/components/CloudTAK/Query/Magnetic.vue +0 -80
- package/src/components/CloudTAK/Query/Reverse.vue +0 -65
- package/src/components/CloudTAK/Query/Sun.vue +0 -178
- package/src/components/CloudTAK/Query/Weather.vue +0 -195
- package/src/components/CloudTAK/QueryView.vue +0 -134
- package/src/components/CloudTAK/RadialMenu/LICENSE +0 -21
- package/src/components/CloudTAK/RadialMenu/README.md +0 -63
- package/src/components/CloudTAK/RadialMenu/RadialMenu.css +0 -85
- package/src/components/CloudTAK/RadialMenu/RadialMenu.js +0 -534
- package/src/components/CloudTAK/RadialMenu/RadialMenu.vue +0 -257
- package/src/components/CloudTAK/RangeInput.vue +0 -155
- package/src/components/CloudTAK/RangeRingsInput.vue +0 -269
- package/src/components/CloudTAK/util/Breadcrumb.vue +0 -85
- package/src/components/CloudTAK/util/ChannelInfo.vue +0 -25
- package/src/components/CloudTAK/util/Contact.vue +0 -131
- package/src/components/CloudTAK/util/ContactPuck.vue +0 -40
- package/src/components/CloudTAK/util/Coordinate.vue +0 -313
- package/src/components/CloudTAK/util/CoordinateType.vue +0 -134
- package/src/components/CloudTAK/util/CopyButton.vue +0 -67
- package/src/components/CloudTAK/util/CopyField.vue +0 -286
- package/src/components/CloudTAK/util/DrawOverlay.vue +0 -254
- package/src/components/CloudTAK/util/EmptyInfo.vue +0 -71
- package/src/components/CloudTAK/util/FeatureIcon.vue +0 -134
- package/src/components/CloudTAK/util/FeatureRow.vue +0 -206
- package/src/components/CloudTAK/util/FloatingAttachment.vue +0 -191
- package/src/components/CloudTAK/util/FloatingVideo.vue +0 -654
- package/src/components/CloudTAK/util/GenericSelect.vue +0 -125
- package/src/components/CloudTAK/util/GroupSelect.vue +0 -129
- package/src/components/CloudTAK/util/Icons.vue +0 -146
- package/src/components/CloudTAK/util/JSONModal.vue +0 -57
- package/src/components/CloudTAK/util/Keywords.vue +0 -31
- package/src/components/CloudTAK/util/LineLength.vue +0 -121
- package/src/components/CloudTAK/util/MenuItem.vue +0 -21
- package/src/components/CloudTAK/util/MenuTemplate.vue +0 -137
- package/src/components/CloudTAK/util/MultipleSelect.vue +0 -103
- package/src/components/CloudTAK/util/NotificationIcon.vue +0 -50
- package/src/components/CloudTAK/util/NotificationToast.vue +0 -125
- package/src/components/CloudTAK/util/PolygonArea.vue +0 -109
- package/src/components/CloudTAK/util/PropertyAttachments.vue +0 -224
- package/src/components/CloudTAK/util/PropertyBattery.vue +0 -44
- package/src/components/CloudTAK/util/PropertyBearing.vue +0 -148
- package/src/components/CloudTAK/util/PropertyCreator.vue +0 -61
- package/src/components/CloudTAK/util/PropertyDistance.vue +0 -182
- package/src/components/CloudTAK/util/PropertyElevation.vue +0 -84
- package/src/components/CloudTAK/util/PropertyEmail.vue +0 -44
- package/src/components/CloudTAK/util/PropertyLinks.vue +0 -148
- package/src/components/CloudTAK/util/PropertyMetadata.vue +0 -53
- package/src/components/CloudTAK/util/PropertyMilSym.vue +0 -62
- package/src/components/CloudTAK/util/PropertyPhone.vue +0 -61
- package/src/components/CloudTAK/util/PropertySensor.vue +0 -129
- package/src/components/CloudTAK/util/PropertySpeed.vue +0 -91
- package/src/components/CloudTAK/util/PropertyStyle.vue +0 -202
- package/src/components/CloudTAK/util/PropertyTimes.vue +0 -95
- package/src/components/CloudTAK/util/PropertyType.vue +0 -274
- package/src/components/CloudTAK/util/SearchBox.vue +0 -314
- package/src/components/CloudTAK/util/SelectFeats.vue +0 -190
- package/src/components/CloudTAK/util/SettingsCallsign.vue +0 -151
- package/src/components/CloudTAK/util/Share.vue +0 -496
- package/src/components/CloudTAK/util/ShareToMission.vue +0 -223
- package/src/components/CloudTAK/util/ShareToPackage.vue +0 -250
- package/src/components/CloudTAK/util/SlideDownHeader.vue +0 -92
- package/src/components/CloudTAK/util/StandardItem.vue +0 -42
- package/src/components/CloudTAK/util/Subscriptions.vue +0 -151
- package/src/components/CloudTAK/util/TagEntry.vue +0 -301
- package/src/components/CloudTAK/util/UploadImport.vue +0 -195
- package/src/components/CloudTAK/util/VideoLeaseSourceType.vue +0 -66
- package/src/components/CloudTAK/util/WarnChannels.vue +0 -56
- package/src/components/CloudTAK/util/WarnConfiguration.vue +0 -34
- package/src/components/Configure.vue +0 -259
- package/src/components/ETL/Connection/AgencyBadge.vue +0 -102
- package/src/components/ETL/Connection/AgencySelect.vue +0 -185
- package/src/components/ETL/Connection/CertificateLogin.vue +0 -75
- package/src/components/ETL/Connection/CertificateMachineUser.vue +0 -228
- package/src/components/ETL/Connection/CertificateP12.vue +0 -104
- package/src/components/ETL/Connection/CertificateRaw.vue +0 -50
- package/src/components/ETL/Connection/ConnectionData.vue +0 -174
- package/src/components/ETL/Connection/ConnectionFiles.vue +0 -182
- package/src/components/ETL/Connection/ConnectionGroups.vue +0 -181
- package/src/components/ETL/Connection/ConnectionLayer.vue +0 -180
- package/src/components/ETL/Connection/ConnectionTokens.vue +0 -147
- package/src/components/ETL/Connection/ConnectionVideos.vue +0 -151
- package/src/components/ETL/Connection/Events.vue +0 -88
- package/src/components/ETL/Connection/StatusDot.vue +0 -48
- package/src/components/ETL/Connection/TokenModal.vue +0 -136
- package/src/components/ETL/Connection.vue +0 -194
- package/src/components/ETL/ConnectionCard.vue +0 -265
- package/src/components/ETL/ConnectionEdit.vue +0 -448
- package/src/components/ETL/Connections.vue +0 -148
- package/src/components/ETL/Data/DataFiles.vue +0 -245
- package/src/components/ETL/Data/DataGroups.vue +0 -45
- package/src/components/ETL/Data/DataLayer.vue +0 -144
- package/src/components/ETL/Data/Location.vue +0 -238
- package/src/components/ETL/Data.vue +0 -259
- package/src/components/ETL/DataEdit.vue +0 -212
- package/src/components/ETL/Layer/LayerAlarm.vue +0 -307
- package/src/components/ETL/Layer/LayerDeployment.vue +0 -388
- package/src/components/ETL/Layer/LayerEnvironment.vue +0 -259
- package/src/components/ETL/Layer/LayerIncomingConfig.vue +0 -401
- package/src/components/ETL/Layer/LayerIncomingEnvironmentArcGIS.vue +0 -354
- package/src/components/ETL/Layer/LayerIncomingSchema.vue +0 -138
- package/src/components/ETL/Layer/LayerIncomingStyles.vue +0 -349
- package/src/components/ETL/Layer/LayerOutgoingConfig.vue +0 -204
- package/src/components/ETL/Layer/LayerOutgoingEnvironmentArcGIS.vue +0 -279
- package/src/components/ETL/Layer/utils/QueryInput.vue +0 -52
- package/src/components/ETL/Layer/utils/Schema.vue +0 -322
- package/src/components/ETL/Layer/utils/SchemaModal.vue +0 -77
- package/src/components/ETL/Layer/utils/StatusDot.vue +0 -38
- package/src/components/ETL/Layer/utils/StyleLinkModal.vue +0 -83
- package/src/components/ETL/Layer/utils/StyleLinks.vue +0 -139
- package/src/components/ETL/Layer/utils/StyleSingle.vue +0 -885
- package/src/components/ETL/Layer/utils/StyleTemplate.vue +0 -97
- package/src/components/ETL/Layer/utils/TaskModal.vue +0 -217
- package/src/components/ETL/Layer.vue +0 -560
- package/src/components/ETL/LayerEdit.vue +0 -276
- package/src/components/ETL/Styling/Layer.vue +0 -311
- package/src/components/ETL/Styling/ObjectInput.vue +0 -46
- package/src/components/ETL/Styling/Style.vue +0 -233
- package/src/components/Home.vue +0 -17
- package/src/components/Loading.vue +0 -42
- package/src/components/Login.vue +0 -198
- package/src/components/LostUser.vue +0 -31
- package/src/components/PageFooter.vue +0 -41
- package/src/components/ServerAdmin.vue +0 -408
- package/src/components/VideoWall/Main.vue +0 -79
- package/src/components/VideoWall.vue +0 -17
- package/src/components/util/DataSelect.vue +0 -148
- package/src/components/util/EsriFilter.vue +0 -140
- package/src/components/util/EsriPortal.vue +0 -422
- package/src/components/util/EsriPortalCreate.vue +0 -72
- package/src/components/util/EsriServer.vue +0 -368
- package/src/components/util/GroupSelect.vue +0 -166
- package/src/components/util/IconSelect.vue +0 -302
- package/src/components/util/InitialAuthor.vue +0 -28
- package/src/components/util/LayerSelect.vue +0 -162
- package/src/components/util/LayerTaskSelect.vue +0 -311
- package/src/components/util/LayerTemplateSelect.vue +0 -173
- package/src/components/util/LoginModal.vue +0 -110
- package/src/components/util/PublicTilesSelect.vue +0 -171
- package/src/components/util/StatusDot.vue +0 -31
- package/src/components/util/TableFooter.vue +0 -64
- package/src/components/util/TableHeader.vue +0 -127
- package/src/components/util/Upload.vue +0 -220
- package/src/components/util/UploadCSV.vue +0 -46
- package/src/components/util/UploadLogo.vue +0 -83
- package/src/components/util/UploadP12.vue +0 -93
- package/src/components/util/UserSelect.vue +0 -151
- package/src/derived-types.d.ts +0 -35243
- package/src/main.ts +0 -264
- package/src/pages/admin/main.ts +0 -208
- package/src/pages/connection/main.ts +0 -158
- package/src/pages/docs/App.vue +0 -19
- package/src/pages/docs/main.ts +0 -6
- package/src/pages/video/main.ts +0 -27
- package/src/std.ts +0 -152
- package/src/stores/brand.ts +0 -28
- package/src/stores/float.ts +0 -113
- package/src/stores/map.ts +0 -931
- package/src/stores/modules/draw.ts +0 -413
- package/src/stores/modules/icons.ts +0 -185
- package/src/stores/modules/menu.ts +0 -281
- package/src/test/setup.ts +0 -43
- package/src/timediff.ts +0 -33
- package/src/types.ts +0 -226
- package/src/video.ts +0 -27
- package/src/vite-env.d.ts +0 -9
- package/src/workers/atlas-connection.ts +0 -236
- package/src/workers/atlas-database.ts +0 -764
- package/src/workers/atlas-profile.ts +0 -374
- package/src/workers/atlas-team.ts +0 -90
- package/src/workers/atlas.ts +0 -81
|
@@ -1,374 +0,0 @@
|
|
|
1
|
-
import { toRaw } from 'vue';
|
|
2
|
-
import type Atlas from './atlas.ts';
|
|
3
|
-
import { std, stdurl } from '../std.ts';
|
|
4
|
-
import { WorkerMessageType, LocationState } from '../base/events.ts'
|
|
5
|
-
import type { Feature, Group, Server, Profile, Profile_Update, FeaturePropertyCreator } from '../types.ts';
|
|
6
|
-
|
|
7
|
-
export type ProfileLocation = {
|
|
8
|
-
source: LocationState
|
|
9
|
-
accuracy: number | undefined
|
|
10
|
-
altitude: number | null | undefined
|
|
11
|
-
coordinates: number[]
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export default class AtlasProfile {
|
|
15
|
-
atlas: Atlas;
|
|
16
|
-
|
|
17
|
-
// Interval for reporting location to TAK Server
|
|
18
|
-
timerSelf: ReturnType<typeof setInterval> | undefined;
|
|
19
|
-
|
|
20
|
-
location: ProfileLocation;
|
|
21
|
-
|
|
22
|
-
channels: Array<Group>;
|
|
23
|
-
profile: Profile | null;
|
|
24
|
-
server: Server | null;
|
|
25
|
-
|
|
26
|
-
constructor(atlas: Atlas) {
|
|
27
|
-
this.atlas = atlas;
|
|
28
|
-
|
|
29
|
-
this.timerSelf = undefined;
|
|
30
|
-
|
|
31
|
-
this.location = {
|
|
32
|
-
source: LocationState.Disabled,
|
|
33
|
-
accuracy: undefined,
|
|
34
|
-
altitude: undefined,
|
|
35
|
-
coordinates: [0, 0]
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
this.channels = [];
|
|
39
|
-
this.profile = null;
|
|
40
|
-
this.server = null;
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
async init(): Promise<string> {
|
|
45
|
-
this.setupTimer();
|
|
46
|
-
|
|
47
|
-
await Promise.all([
|
|
48
|
-
this.load(),
|
|
49
|
-
this.loadServer(),
|
|
50
|
-
this.loadChannels()
|
|
51
|
-
])
|
|
52
|
-
|
|
53
|
-
if (!this.profile) {
|
|
54
|
-
throw new Error('Failed loading profile');
|
|
55
|
-
} else {
|
|
56
|
-
return this.profile.username;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
async username(): Promise<string> {
|
|
61
|
-
const profile = await this.load();
|
|
62
|
-
return profile.username;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
async creator(): Promise<FeaturePropertyCreator> {
|
|
66
|
-
return {
|
|
67
|
-
uid: this.uid(),
|
|
68
|
-
type: 'a-f-G-E-V-C',
|
|
69
|
-
callsign: await this.callsign(),
|
|
70
|
-
time: new Date().toISOString(),
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
async callsign(): Promise<string> {
|
|
75
|
-
const profile = await this.load();
|
|
76
|
-
return profile.tak_callsign;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
async isSystemAdmin(): Promise<boolean> {
|
|
80
|
-
const profile = await this.load();
|
|
81
|
-
return profile.system_admin;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
async isAgencyAdmin(): Promise<boolean> {
|
|
85
|
-
const profile = await this.load();
|
|
86
|
-
return profile.agency_admin.length > 0;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
hasNoConfiguration(): boolean {
|
|
90
|
-
if (!this.profile) return false;
|
|
91
|
-
return this.profile.created === this.profile.updated;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
hasNoChannels(): boolean {
|
|
95
|
-
for (const ch of this.channels) {
|
|
96
|
-
if (ch.active) return false
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
return true;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
destroy(): void {
|
|
104
|
-
if (this.timerSelf) {
|
|
105
|
-
clearInterval(this.timerSelf);
|
|
106
|
-
this.timerSelf = undefined;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
setupTimer() {
|
|
111
|
-
if (this.timerSelf) {
|
|
112
|
-
clearInterval(this.timerSelf);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
this.timerSelf = setInterval(async () => {
|
|
116
|
-
// Always send CoT - use GPS coordinates if available, manual location if set, otherwise default to 0,0
|
|
117
|
-
if (this.location.accuracy) {
|
|
118
|
-
await this.CoT(this.location.coordinates, this.location.accuracy, this.location.altitude);
|
|
119
|
-
} else if (this.profile && this.profile.tak_loc) {
|
|
120
|
-
await this.CoT();
|
|
121
|
-
} else {
|
|
122
|
-
// Send 0,0 location when no valid location is available
|
|
123
|
-
await this.CoT([0, 0]);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
const me = await this.atlas.db.get(this.uid());
|
|
127
|
-
|
|
128
|
-
if (me) {
|
|
129
|
-
this.atlas.conn.sendCOT(me.as_feature())
|
|
130
|
-
}
|
|
131
|
-
}, this.profile ? this.profile.tak_loc_freq : 2000);
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
async loadServer(): Promise<Server> {
|
|
135
|
-
if (!this.server) {
|
|
136
|
-
this.server = await std('/api/server', {
|
|
137
|
-
token: this.atlas.token
|
|
138
|
-
}) as Server;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
return this.server;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
async load(): Promise<Profile> {
|
|
145
|
-
if (!this.profile) {
|
|
146
|
-
const profile = await std('/api/profile', {
|
|
147
|
-
token: this.atlas.token
|
|
148
|
-
}) as Profile;
|
|
149
|
-
|
|
150
|
-
this.atlas.postMessage({
|
|
151
|
-
type: WorkerMessageType.Profile_Callsign,
|
|
152
|
-
body: { callsign: profile.tak_callsign }
|
|
153
|
-
});
|
|
154
|
-
|
|
155
|
-
this.atlas.postMessage({
|
|
156
|
-
type: WorkerMessageType.Profile_Display_Zoom,
|
|
157
|
-
body: { zoom: profile.display_zoom }
|
|
158
|
-
});
|
|
159
|
-
|
|
160
|
-
this.profile = profile;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
this.updateLocation()
|
|
164
|
-
|
|
165
|
-
return this.profile;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
updateLocation() {
|
|
169
|
-
if (
|
|
170
|
-
this.profile
|
|
171
|
-
&& this.profile.tak_loc
|
|
172
|
-
) {
|
|
173
|
-
this.location.source = LocationState.Preset;
|
|
174
|
-
this.location.accuracy = undefined;
|
|
175
|
-
this.location.altitude = undefined;
|
|
176
|
-
this.location.coordinates = this.profile.tak_loc.coordinates;
|
|
177
|
-
|
|
178
|
-
this.atlas.postMessage({
|
|
179
|
-
type: WorkerMessageType.Profile_Location_Source,
|
|
180
|
-
body: { source: LocationState.Preset }
|
|
181
|
-
});
|
|
182
|
-
} else if (this.profile && !this.profile.tak_loc && this.location.source === LocationState.Preset) {
|
|
183
|
-
// Reset to disabled when manual location is cleared
|
|
184
|
-
this.location.source = LocationState.Disabled;
|
|
185
|
-
this.location.accuracy = undefined;
|
|
186
|
-
this.location.coordinates = [0, 0];
|
|
187
|
-
|
|
188
|
-
this.atlas.postMessage({
|
|
189
|
-
type: WorkerMessageType.Profile_Location_Source,
|
|
190
|
-
body: { source: LocationState.Disabled }
|
|
191
|
-
});
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
async setChannel(name: string, active: boolean): Promise<Array<Group>> {
|
|
196
|
-
this.channels.forEach((ch) => {
|
|
197
|
-
if (ch.name === name) ch.active = active;
|
|
198
|
-
return ch;
|
|
199
|
-
});
|
|
200
|
-
|
|
201
|
-
await this.atlas.db.clear({
|
|
202
|
-
ignoreArchived: true,
|
|
203
|
-
skipNetwork: false
|
|
204
|
-
})
|
|
205
|
-
|
|
206
|
-
return await this.updateChannels(this.channels);
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
async setAllChannels(active: boolean): Promise<Array<Group>> {
|
|
210
|
-
this.channels.forEach((ch) => {
|
|
211
|
-
ch.active = active;
|
|
212
|
-
});
|
|
213
|
-
|
|
214
|
-
await this.atlas.db.clear({
|
|
215
|
-
ignoreArchived: true,
|
|
216
|
-
skipNetwork: false
|
|
217
|
-
})
|
|
218
|
-
|
|
219
|
-
return await this.updateChannels(this.channels);
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
async updateChannels(channels: Array<Group>): Promise<Array<Group>> {
|
|
223
|
-
this.channels = channels;
|
|
224
|
-
|
|
225
|
-
this.postChannelStatus();
|
|
226
|
-
|
|
227
|
-
const url = stdurl('/api/marti/group');
|
|
228
|
-
await std(url, {
|
|
229
|
-
method: 'PUT',
|
|
230
|
-
token: this.atlas.token,
|
|
231
|
-
body: this.channels
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
return this.channels;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
postChannelStatus(): void {
|
|
238
|
-
if (this.hasNoChannels()) {
|
|
239
|
-
this.atlas.postMessage({ type: WorkerMessageType.Channels_None });
|
|
240
|
-
} else {
|
|
241
|
-
this.atlas.postMessage({ type: WorkerMessageType.Channels_List });
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
async loadChannels(): Promise<Array<Group>> {
|
|
246
|
-
const url = stdurl('/api/marti/group');
|
|
247
|
-
url.searchParams.append('useCache', 'true');
|
|
248
|
-
this.channels = ((await std(url, {
|
|
249
|
-
token: this.atlas.token
|
|
250
|
-
})) as {
|
|
251
|
-
data: Group[]
|
|
252
|
-
}).data
|
|
253
|
-
|
|
254
|
-
this.postChannelStatus();
|
|
255
|
-
|
|
256
|
-
return this.channels
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
async update(body: Profile_Update): Promise<void> {
|
|
260
|
-
if (this.profile && body.tak_loc_freq && this.profile.tak_loc_freq !== body.tak_loc_freq) {
|
|
261
|
-
this.setupTimer();
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
// Ensure if network request fails user intent is preserved for session
|
|
265
|
-
if (this.profile) {
|
|
266
|
-
Object.assign(this.profile, body);
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
if (body.tak_loc) {
|
|
270
|
-
await this.CoT();
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
if (body.tak_callsign) {
|
|
274
|
-
this.atlas.postMessage({
|
|
275
|
-
type: WorkerMessageType.Profile_Callsign,
|
|
276
|
-
body: { callsign: body.tak_callsign }
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
if (body.display_zoom) {
|
|
281
|
-
this.atlas.postMessage({
|
|
282
|
-
type: WorkerMessageType.Profile_Display_Zoom,
|
|
283
|
-
body: { zoom: body.display_zoom }
|
|
284
|
-
});
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
if (body.display_projection) {
|
|
288
|
-
this.atlas.postMessage({
|
|
289
|
-
type: WorkerMessageType.Map_Projection,
|
|
290
|
-
body: { type: body.display_projection }
|
|
291
|
-
});
|
|
292
|
-
}
|
|
293
|
-
|
|
294
|
-
if (body.display_icon_rotation !== undefined) {
|
|
295
|
-
this.atlas.postMessage({
|
|
296
|
-
type: WorkerMessageType.Profile_Icon_Rotation,
|
|
297
|
-
body: { enabled: body.display_icon_rotation }
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
|
|
301
|
-
if (body.display_distance) {
|
|
302
|
-
this.atlas.postMessage({
|
|
303
|
-
type: WorkerMessageType.Profile_Distance_Unit,
|
|
304
|
-
body: { unit: body.display_distance }
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
if (body.tak_loc !== undefined || body.tak_type) {
|
|
309
|
-
this.updateLocation();
|
|
310
|
-
}
|
|
311
|
-
|
|
312
|
-
this.profile = await std('/api/profile', {
|
|
313
|
-
method: 'PATCH',
|
|
314
|
-
token: this.atlas.token,
|
|
315
|
-
body
|
|
316
|
-
}) as Profile
|
|
317
|
-
|
|
318
|
-
}
|
|
319
|
-
|
|
320
|
-
uid(): string {
|
|
321
|
-
if (!this.profile) throw new Error('Profile must be loaded before CoT is called');
|
|
322
|
-
|
|
323
|
-
// Need to differentiate between servers eventually
|
|
324
|
-
return `ANDROID-CloudTAK-${this.profile.username}`;
|
|
325
|
-
}
|
|
326
|
-
|
|
327
|
-
async CoT(coords?: number[], accuracy?: number, altitude?: number | null): Promise<void> {
|
|
328
|
-
if (!this.profile || !this.server) throw new Error('Profile must be loaded before CoT is called');
|
|
329
|
-
|
|
330
|
-
const coordinates = coords || (this.profile.tak_loc ? toRaw(this.profile.tak_loc.coordinates) : [ 0, 0 ]);
|
|
331
|
-
|
|
332
|
-
// HAE = Height Above Ellipsoid (altitude), CE = Circular Error (accuracy)
|
|
333
|
-
const hae = altitude !== null && altitude !== undefined ? altitude : 0;
|
|
334
|
-
|
|
335
|
-
const uid = this.uid();
|
|
336
|
-
|
|
337
|
-
const feat: Feature = {
|
|
338
|
-
id: uid,
|
|
339
|
-
path: '/',
|
|
340
|
-
type: 'Feature',
|
|
341
|
-
properties: {
|
|
342
|
-
id: uid,
|
|
343
|
-
type: this.profile.tak_type,
|
|
344
|
-
how: 'm-g',
|
|
345
|
-
callsign: this.profile.tak_callsign,
|
|
346
|
-
remarks: this.profile.tak_remarks,
|
|
347
|
-
droid: this.profile.tak_callsign,
|
|
348
|
-
time: new Date().toISOString(),
|
|
349
|
-
start: new Date().toISOString(),
|
|
350
|
-
stale: new Date(new Date().getTime() + (1000 * 60)).toISOString(),
|
|
351
|
-
center: coordinates,
|
|
352
|
-
contact: {
|
|
353
|
-
endpoint: '*:-1:stcp',
|
|
354
|
-
callsign: this.profile.tak_callsign,
|
|
355
|
-
},
|
|
356
|
-
group: {
|
|
357
|
-
name: this.profile.tak_group,
|
|
358
|
-
role: this.profile.tak_role
|
|
359
|
-
},
|
|
360
|
-
takv: {
|
|
361
|
-
device: navigator.userAgent,
|
|
362
|
-
platform: 'CloudTAK',
|
|
363
|
-
os: navigator.platform,
|
|
364
|
-
version: this.server.version
|
|
365
|
-
},
|
|
366
|
-
hae,
|
|
367
|
-
...(accuracy !== undefined && { ce: accuracy })
|
|
368
|
-
} as Feature['properties'],
|
|
369
|
-
geometry: { type: 'Point', coordinates: [...coordinates, hae] }
|
|
370
|
-
}
|
|
371
|
-
|
|
372
|
-
await this.atlas.db.add(feat);
|
|
373
|
-
}
|
|
374
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import type Atlas from './atlas.ts';
|
|
2
|
-
import { std, stdurl } from '../std.ts';
|
|
3
|
-
import type COT from '../base/cot.ts';
|
|
4
|
-
import TAKNotification, { NotificationType } from '../base/notification.ts';
|
|
5
|
-
import {
|
|
6
|
-
WorkerMessageType
|
|
7
|
-
} from '../base/events.ts';
|
|
8
|
-
|
|
9
|
-
import type { ContactList, Contact } from '../types.ts';
|
|
10
|
-
|
|
11
|
-
export default class AtlasTeam {
|
|
12
|
-
atlas: Atlas;
|
|
13
|
-
contacts: Map<string, Contact>
|
|
14
|
-
|
|
15
|
-
constructor(atlas: Atlas) {
|
|
16
|
-
this.atlas = atlas;
|
|
17
|
-
|
|
18
|
-
this.contacts = new Map();
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async init(): Promise<void> {
|
|
22
|
-
await Promise.all([ this.load() ])
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
async set(cot: COT): Promise<Contact> {
|
|
26
|
-
if (!cot.properties.group) {
|
|
27
|
-
throw new Error('Contact Marker must have group property');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
const entry = this.contacts.get(cot.id);
|
|
31
|
-
|
|
32
|
-
if (entry) {
|
|
33
|
-
return entry;
|
|
34
|
-
} else {
|
|
35
|
-
const contact: Contact = {
|
|
36
|
-
uid: cot.id,
|
|
37
|
-
notes: '',
|
|
38
|
-
filterGroups: null,
|
|
39
|
-
callsign: cot.properties.callsign,
|
|
40
|
-
team: cot.properties.group.name,
|
|
41
|
-
role: cot.properties.group.role,
|
|
42
|
-
takv: ''
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
this.contacts.set(cot.id, contact);
|
|
46
|
-
|
|
47
|
-
this.atlas.postMessage({
|
|
48
|
-
type: WorkerMessageType.Contact_Change
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
if (this.atlas.profile.uid() !== cot.id) {
|
|
52
|
-
await TAKNotification.create(
|
|
53
|
-
NotificationType.Contact,
|
|
54
|
-
'Online Contact',
|
|
55
|
-
`${cot.properties.callsign} is now Online`,
|
|
56
|
-
`/cot/${cot.id}`,
|
|
57
|
-
false
|
|
58
|
-
);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
return contact;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
async get(uid: string): Promise<Contact | undefined> {
|
|
66
|
-
return this.contacts.get(uid);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
async getByCallsign(callsign: string): Promise<Contact | undefined> {
|
|
70
|
-
for (const contact of this.contacts.values()) {
|
|
71
|
-
if (contact.callsign === callsign) return contact;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
async load(): Promise<Map<string, Contact>> {
|
|
76
|
-
const url = stdurl('/api/marti/api/contacts/all');
|
|
77
|
-
const contacts = await std(url, {
|
|
78
|
-
token: this.atlas.token
|
|
79
|
-
}) as ContactList;
|
|
80
|
-
|
|
81
|
-
this.contacts.clear();
|
|
82
|
-
|
|
83
|
-
for (const contact of contacts) {
|
|
84
|
-
if (!contact.uid) continue;
|
|
85
|
-
this.contacts.set(contact.uid, contact);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
return this.contacts;
|
|
89
|
-
}
|
|
90
|
-
}
|
package/src/workers/atlas.ts
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* ConnectionStore - Maintain the WebSocket connection with CloudTAK Server
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { WorkerMessageType, LocationState } from '../base/events.ts';
|
|
6
|
-
import type { WorkerMessage } from '../base/events.ts';
|
|
7
|
-
import * as Comlink from 'comlink';
|
|
8
|
-
import AtlasProfile from './atlas-profile.ts';
|
|
9
|
-
import type { ProfileLocation } from './atlas-profile.ts';
|
|
10
|
-
import AtlasTeam from './atlas-team.ts';
|
|
11
|
-
import AtlasDatabase from './atlas-database.ts';
|
|
12
|
-
import AtlasConnection from './atlas-connection.ts';
|
|
13
|
-
import { CloudTAKTransferHandler } from '../base/handler.ts';
|
|
14
|
-
|
|
15
|
-
export default class Atlas {
|
|
16
|
-
channel: BroadcastChannel;
|
|
17
|
-
sync: BroadcastChannel;
|
|
18
|
-
|
|
19
|
-
token: string;
|
|
20
|
-
|
|
21
|
-
db = Comlink.proxy(new AtlasDatabase(this));
|
|
22
|
-
team = Comlink.proxy(new AtlasTeam(this));
|
|
23
|
-
conn = Comlink.proxy(new AtlasConnection(this));
|
|
24
|
-
profile = Comlink.proxy(new AtlasProfile(this));
|
|
25
|
-
|
|
26
|
-
constructor() {
|
|
27
|
-
this.channel = new BroadcastChannel('cloudtak');
|
|
28
|
-
this.sync = new BroadcastChannel('sync');
|
|
29
|
-
this.token = '';
|
|
30
|
-
|
|
31
|
-
this.channel.onmessage = (event: MessageEvent<WorkerMessage>) => {
|
|
32
|
-
const msg = event.data;
|
|
33
|
-
if (!msg || !msg.type) return;
|
|
34
|
-
|
|
35
|
-
if (msg.type === WorkerMessageType.Profile_Location_Coordinates) {
|
|
36
|
-
// Only process GPS coordinates if not in manual location mode
|
|
37
|
-
if (this.profile.location.source !== LocationState.Preset) {
|
|
38
|
-
this.postMessage({
|
|
39
|
-
type: WorkerMessageType.Profile_Location_Source,
|
|
40
|
-
body: {
|
|
41
|
-
source: LocationState.Live
|
|
42
|
-
}
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
this.profile.location = {
|
|
46
|
-
source: LocationState.Live,
|
|
47
|
-
...msg.body
|
|
48
|
-
} as ProfileLocation;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async postMessage(msg: WorkerMessage): Promise<void> {
|
|
55
|
-
return this.channel.postMessage(msg);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
async init(authToken: string) {
|
|
59
|
-
if (this.token) return;
|
|
60
|
-
|
|
61
|
-
this.token = authToken;
|
|
62
|
-
|
|
63
|
-
const username = await this.profile.init();
|
|
64
|
-
await this.conn.connect(username)
|
|
65
|
-
|
|
66
|
-
await Promise.all([
|
|
67
|
-
this.db.init(),
|
|
68
|
-
this.team.init()
|
|
69
|
-
])
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
destroy() {
|
|
73
|
-
this.conn.destroy();
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
const atlas = new Atlas()
|
|
78
|
-
|
|
79
|
-
new CloudTAKTransferHandler(atlas, Comlink.transferHandlers, false);
|
|
80
|
-
|
|
81
|
-
Comlink.expose(Comlink.proxy(atlas));
|