@tak-ps/cloudtak 12.54.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/README.md +34 -0
- package/dist/types/plugin.d.ts +99 -0
- package/dist/types/src/App.vue.d.ts +5 -0
- package/dist/types/src/base/chatroom-chats.d.ts +17 -0
- package/dist/types/src/base/chatroom.d.ts +47 -0
- package/dist/types/src/base/cot.d.ts +94 -0
- package/dist/types/src/base/database.d.ts +115 -0
- package/dist/types/src/base/events.d.ts +30 -0
- package/dist/types/src/base/filter.d.ts +41 -0
- package/dist/types/src/base/handler.d.ts +11 -0
- package/dist/types/src/base/icon.d.ts +4 -0
- package/dist/types/src/base/notification.d.ts +37 -0
- package/dist/types/src/base/overlay.d.ts +94 -0
- package/dist/types/src/base/subscription-feature.d.ts +49 -0
- package/dist/types/src/base/subscription-log.d.ts +32 -0
- package/dist/types/src/base/subscription.d.ts +115 -0
- package/dist/types/src/base/utils/styles.d.ts +11 -0
- package/dist/types/src/base/validators.d.ts +9 -0
- package/dist/types/src/components/Admin/AdminImports.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminLayers.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminMissionTemplate.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminMissionTemplateLog.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminMissionTemplates.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminOverlays.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminPalette.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminPaletteFeature.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminPalettes.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminServer.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminTasks.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminUser.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminUsers.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/AdminVideos.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Server/ServerConnection.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Server/ServerInjectorModal.vue.d.ts +11 -0
- package/dist/types/src/components/Admin/Server/ServerInjectors.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Server/ServerPackages.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Server/ServerRepeaters.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Server/ServerVideos.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Tasks/AdminRawTasks.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Videos/AdminVideoLeases.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Videos/AdminVideoService.vue.d.ts +3 -0
- package/dist/types/src/components/Admin/Videos/VideoConfig.vue.d.ts +7 -0
- package/dist/types/src/components/Admin/Videos/VideoConfigPort.vue.d.ts +8 -0
- package/dist/types/src/components/CloudTAK/CoTView.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/CoordInput.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/DrawTools.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/FeatView.vue.d.ts +8 -0
- package/dist/types/src/components/CloudTAK/GeoJSONInput.vue.d.ts +24 -0
- package/dist/types/src/components/CloudTAK/MainMenu.vue.d.ts +9 -0
- package/dist/types/src/components/CloudTAK/MainMenuContents.vue.d.ts +16 -0
- package/dist/types/src/components/CloudTAK/Map.vue.d.ts +8 -0
- package/dist/types/src/components/CloudTAK/MapLoading.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/Debugger.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuBasemaps.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuChannels.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuChats.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuConnections.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuContacts.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuFeatures.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuFeaturesDeleted.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuFiles.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuImport.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuImports.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuItemCard.vue.d.ts +101 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuMission.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuMissions.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuOverlayExplorer.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuOverlays.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuPackage.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuPackages.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuRoutes.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuRoutesNew.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuSettings.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuSettingsCallsign.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuSettingsDisplay.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuVideos.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/MenuVideosRemote.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionContents.vue.d.ts +11 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionCreate.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionInfo.vue.d.ts +11 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionInviteModal.vue.d.ts +17 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerCreate.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerEdit.vue.d.ts +15 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayerTree.vue.d.ts +15 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLayers.vue.d.ts +8 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLog.vue.d.ts +9 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionLogs.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionTimeline.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/MissionUsers.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Menu/Mission/PendingInvites.vue.d.ts +11 -0
- package/dist/types/src/components/CloudTAK/Menu/Overlays/TreeMission.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Menu/Overlays/TreeVector.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/Menu/Videos/VideoLeaseModal.vue.d.ts +16 -0
- package/dist/types/src/components/CloudTAK/Menu/Videos/VideosRemoteFeed.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/Notifications.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/Query/Magnetic.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Query/Reverse.vue.d.ts +8 -0
- package/dist/types/src/components/CloudTAK/Query/Sun.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/Query/Weather.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/QueryView.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/RangeInput.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/RangeRingsInput.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/Breadcrumb.vue.d.ts +6 -0
- package/dist/types/src/components/CloudTAK/util/ChannelInfo.vue.d.ts +15 -0
- package/dist/types/src/components/CloudTAK/util/ContactPuck.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/Coordinate.vue.d.ts +67 -0
- package/dist/types/src/components/CloudTAK/util/CoordinateType.vue.d.ts +27 -0
- package/dist/types/src/components/CloudTAK/util/CopyButton.vue.d.ts +32 -0
- package/dist/types/src/components/CloudTAK/util/CopyField.vue.d.ts +122 -0
- package/dist/types/src/components/CloudTAK/util/DrawOverlay.vue.d.ts +3 -0
- package/dist/types/src/components/CloudTAK/util/EmptyInfo.vue.d.ts +24 -0
- package/dist/types/src/components/CloudTAK/util/FeatureIcon.vue.d.ts +23 -0
- package/dist/types/src/components/CloudTAK/util/FeatureRow.vue.d.ts +81 -0
- package/dist/types/src/components/CloudTAK/util/FloatingAttachment.vue.d.ts +17 -0
- package/dist/types/src/components/CloudTAK/util/FloatingVideo.vue.d.ts +27 -0
- package/dist/types/src/components/CloudTAK/util/GroupSelect.vue.d.ts +14 -0
- package/dist/types/src/components/CloudTAK/util/JSONModal.vue.d.ts +27 -0
- package/dist/types/src/components/CloudTAK/util/Keywords.vue.d.ts +6 -0
- package/dist/types/src/components/CloudTAK/util/LineLength.vue.d.ts +24 -0
- package/dist/types/src/components/CloudTAK/util/MenuTemplate.vue.d.ts +71 -0
- package/dist/types/src/components/CloudTAK/util/MultipleSelect.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/NotificationIcon.vue.d.ts +10 -0
- package/dist/types/src/components/CloudTAK/util/NotificationToast.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/util/PolygonArea.vue.d.ts +24 -0
- package/dist/types/src/components/CloudTAK/util/PropertyBattery.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/util/PropertyBearing.vue.d.ts +58 -0
- package/dist/types/src/components/CloudTAK/util/PropertyCreator.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/PropertyDistance.vue.d.ts +54 -0
- package/dist/types/src/components/CloudTAK/util/PropertyElevation.vue.d.ts +32 -0
- package/dist/types/src/components/CloudTAK/util/PropertyEmail.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/util/PropertyLinks.vue.d.ts +14 -0
- package/dist/types/src/components/CloudTAK/util/PropertyMetadata.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/PropertyMilSym.vue.d.ts +25 -0
- package/dist/types/src/components/CloudTAK/util/PropertyPhone.vue.d.ts +13 -0
- package/dist/types/src/components/CloudTAK/util/PropertySpeed.vue.d.ts +23 -0
- package/dist/types/src/components/CloudTAK/util/PropertyStyle.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/PropertyTimes.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/PropertyType.vue.d.ts +27 -0
- package/dist/types/src/components/CloudTAK/util/SearchBox.vue.d.ts +37 -0
- package/dist/types/src/components/CloudTAK/util/SelectFeats.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/SettingsCallsign.vue.d.ts +28 -0
- package/dist/types/src/components/CloudTAK/util/Share.vue.d.ts +14 -0
- package/dist/types/src/components/CloudTAK/util/ShareToMission.vue.d.ts +53 -0
- package/dist/types/src/components/CloudTAK/util/ShareToPackage.vue.d.ts +62 -0
- package/dist/types/src/components/CloudTAK/util/SlideDownHeader.vue.d.ts +41 -0
- package/dist/types/src/components/CloudTAK/util/StandardItem.vue.d.ts +18 -0
- package/dist/types/src/components/CloudTAK/util/Subscriptions.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/VideoLeaseSourceType.vue.d.ts +6 -0
- package/dist/types/src/components/CloudTAK/util/WarnChannels.vue.d.ts +7 -0
- package/dist/types/src/components/CloudTAK/util/WarnConfiguration.vue.d.ts +7 -0
- package/dist/types/src/components/Configure.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Connection/AgencyBadge.vue.d.ts +8 -0
- package/dist/types/src/components/ETL/Connection/ConnectionFiles.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Connection/ConnectionTokens.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Connection/ConnectionVideos.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Connection/StatusDot.vue.d.ts +13 -0
- package/dist/types/src/components/ETL/Connection/TokenModal.vue.d.ts +16 -0
- package/dist/types/src/components/ETL/Connection.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/ConnectionCard.vue.d.ts +16 -0
- package/dist/types/src/components/ETL/Connections.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Data.vue.d.ts +3 -0
- package/dist/types/src/components/ETL/Layer/LayerIncomingConfig.vue.d.ts +27 -0
- package/dist/types/src/components/ETL/Layer/LayerOutgoingConfig.vue.d.ts +27 -0
- package/dist/types/src/components/ETL/Layer/utils/QueryInput.vue.d.ts +56 -0
- package/dist/types/src/components/ETL/Layer/utils/StatusDot.vue.d.ts +7 -0
- package/dist/types/src/components/ETL/Layer.vue.d.ts +3 -0
- package/dist/types/src/components/Home.vue.d.ts +13 -0
- package/dist/types/src/components/Loading.vue.d.ts +3 -0
- package/dist/types/src/components/Login.vue.d.ts +7 -0
- package/dist/types/src/components/LostUser.vue.d.ts +3 -0
- package/dist/types/src/components/PageFooter.vue.d.ts +3 -0
- package/dist/types/src/components/ServerAdmin.vue.d.ts +3 -0
- package/dist/types/src/components/VideoWall/Main.vue.d.ts +3 -0
- package/dist/types/src/components/VideoWall.vue.d.ts +13 -0
- package/dist/types/src/components/util/GroupSelect.vue.d.ts +14 -0
- package/dist/types/src/components/util/InitialAuthor.vue.d.ts +6 -0
- package/dist/types/src/components/util/StatusDot.vue.d.ts +8 -0
- package/dist/types/src/components/util/Upload.vue.d.ts +46 -0
- package/dist/types/src/components/util/UploadLogo.vue.d.ts +14 -0
- package/dist/types/src/main.d.ts +1 -0
- package/dist/types/src/pages/admin/main.d.ts +1 -0
- package/dist/types/src/pages/connection/main.d.ts +1 -0
- package/dist/types/src/pages/docs/App.vue.d.ts +4 -0
- package/dist/types/src/pages/docs/main.d.ts +1 -0
- package/dist/types/src/pages/video/main.d.ts +1 -0
- package/dist/types/src/std.d.ts +19 -0
- package/dist/types/src/stores/brand.d.ts +7 -0
- package/dist/types/src/stores/float.d.ts +42 -0
- package/dist/types/src/stores/map.d.ts +115 -0
- package/dist/types/src/stores/modules/draw.d.ts +35 -0
- package/dist/types/src/stores/modules/icons.d.ts +38 -0
- package/dist/types/src/stores/modules/menu.d.ts +34 -0
- package/dist/types/src/test/setup.d.ts +1 -0
- package/dist/types/src/timediff.d.ts +1 -0
- package/dist/types/src/types.d.ts +158 -0
- package/dist/types/src/video.d.ts +1 -0
- package/dist/types/src/workers/atlas-connection.d.ts +12 -0
- package/dist/types/src/workers/atlas-database.d.ts +134 -0
- package/dist/types/src/workers/atlas-profile.d.ts +39 -0
- package/dist/types/src/workers/atlas-team.d.ts +13 -0
- package/dist/types/src/workers/atlas.d.ts +19 -0
- package/package.json +97 -0
- package/src/App.vue +341 -0
- package/src/base/chatroom-chats.ts +124 -0
- package/src/base/chatroom.ts +202 -0
- package/src/base/cot.ts +625 -0
- package/src/base/database.ts +150 -0
- package/src/base/events.ts +43 -0
- package/src/base/filter.ts +163 -0
- package/src/base/handler.ts +67 -0
- package/src/base/icon.ts +16 -0
- package/src/base/notification.ts +163 -0
- package/src/base/overlay.ts +558 -0
- package/src/base/subscription-feature.ts +224 -0
- package/src/base/subscription-log.ts +174 -0
- package/src/base/subscription.ts +489 -0
- package/src/base/utils/styles.ts +430 -0
- package/src/base/validators.ts +66 -0
- package/src/components/Admin/AdminConfig.vue +487 -0
- package/src/components/Admin/AdminConnections.vue +195 -0
- package/src/components/Admin/AdminDatas.vue +165 -0
- package/src/components/Admin/AdminExport.vue +121 -0
- package/src/components/Admin/AdminImports.vue +222 -0
- package/src/components/Admin/AdminLayerTemplate.vue +91 -0
- package/src/components/Admin/AdminLayers.vue +301 -0
- package/src/components/Admin/AdminMissionTemplate.vue +259 -0
- package/src/components/Admin/AdminMissionTemplateLog.vue +273 -0
- package/src/components/Admin/AdminMissionTemplates.vue +189 -0
- package/src/components/Admin/AdminOverlays.vue +232 -0
- package/src/components/Admin/AdminOverlaysEdit.vue +355 -0
- package/src/components/Admin/AdminPalette.vue +214 -0
- package/src/components/Admin/AdminPaletteFeature.vue +208 -0
- package/src/components/Admin/AdminPalettes.vue +189 -0
- package/src/components/Admin/AdminServer.vue +143 -0
- package/src/components/Admin/AdminTasks.vue +60 -0
- package/src/components/Admin/AdminUser.vue +263 -0
- package/src/components/Admin/AdminUsers.vue +183 -0
- package/src/components/Admin/AdminVideos.vue +60 -0
- package/src/components/Admin/Server/ServerConnection.vue +322 -0
- package/src/components/Admin/Server/ServerInjectorModal.vue +125 -0
- package/src/components/Admin/Server/ServerInjectors.vue +104 -0
- package/src/components/Admin/Server/ServerPackages.vue +159 -0
- package/src/components/Admin/Server/ServerRepeaters.vue +105 -0
- package/src/components/Admin/Server/ServerVideos.vue +83 -0
- package/src/components/Admin/Tasks/AdminRawTasks.vue +148 -0
- package/src/components/Admin/Tasks/AdminTasks.vue +286 -0
- package/src/components/Admin/Videos/AdminVideoLeases.vue +198 -0
- package/src/components/Admin/Videos/AdminVideoService.vue +67 -0
- package/src/components/Admin/Videos/VideoConfig.vue +132 -0
- package/src/components/Admin/Videos/VideoConfigPath.vue +58 -0
- package/src/components/Admin/Videos/VideoConfigPort.vue +40 -0
- package/src/components/CloudTAK/CoTView.vue +915 -0
- package/src/components/CloudTAK/CoordInput.vue +110 -0
- package/src/components/CloudTAK/DrawTools.vue +200 -0
- package/src/components/CloudTAK/FeatView.vue +242 -0
- package/src/components/CloudTAK/GeoJSONInput.vue +226 -0
- package/src/components/CloudTAK/MainMenu.vue +190 -0
- package/src/components/CloudTAK/MainMenuContents.vue +360 -0
- package/src/components/CloudTAK/Map.vue +972 -0
- package/src/components/CloudTAK/MapLoading.vue +31 -0
- package/src/components/CloudTAK/Menu/Basemaps/EditModal.vue +427 -0
- package/src/components/CloudTAK/Menu/Debugger.vue +118 -0
- package/src/components/CloudTAK/Menu/Iconset/EditModal.vue +118 -0
- package/src/components/CloudTAK/Menu/MenuBasemaps.vue +410 -0
- package/src/components/CloudTAK/Menu/MenuChannels.vue +206 -0
- package/src/components/CloudTAK/Menu/MenuChat.vue +222 -0
- package/src/components/CloudTAK/Menu/MenuChats.vue +167 -0
- package/src/components/CloudTAK/Menu/MenuConnections.vue +166 -0
- package/src/components/CloudTAK/Menu/MenuContacts.vue +245 -0
- package/src/components/CloudTAK/Menu/MenuFeatures.vue +718 -0
- package/src/components/CloudTAK/Menu/MenuFeaturesDeleted.vue +217 -0
- package/src/components/CloudTAK/Menu/MenuFiles.vue +433 -0
- package/src/components/CloudTAK/Menu/MenuIcon.vue +236 -0
- package/src/components/CloudTAK/Menu/MenuIconset.vue +128 -0
- package/src/components/CloudTAK/Menu/MenuIconsets.vue +266 -0
- package/src/components/CloudTAK/Menu/MenuImport.vue +198 -0
- package/src/components/CloudTAK/Menu/MenuImports.vue +199 -0
- package/src/components/CloudTAK/Menu/MenuItemCard.vue +240 -0
- package/src/components/CloudTAK/Menu/MenuMission.vue +324 -0
- package/src/components/CloudTAK/Menu/MenuMissions.vue +334 -0
- package/src/components/CloudTAK/Menu/MenuOverlayExplorer.vue +434 -0
- package/src/components/CloudTAK/Menu/MenuOverlays.vue +560 -0
- package/src/components/CloudTAK/Menu/MenuPackage.vue +340 -0
- package/src/components/CloudTAK/Menu/MenuPackages.vue +193 -0
- package/src/components/CloudTAK/Menu/MenuRoutes.vue +186 -0
- package/src/components/CloudTAK/Menu/MenuRoutesNew.vue +193 -0
- package/src/components/CloudTAK/Menu/MenuSettings.vue +95 -0
- package/src/components/CloudTAK/Menu/MenuSettingsCallsign.vue +12 -0
- package/src/components/CloudTAK/Menu/MenuSettingsDisplay.vue +144 -0
- package/src/components/CloudTAK/Menu/MenuSettingsTokens.vue +83 -0
- package/src/components/CloudTAK/Menu/MenuVideos.vue +436 -0
- package/src/components/CloudTAK/Menu/MenuVideosRemote.vue +203 -0
- package/src/components/CloudTAK/Menu/Mission/MissionContents.vue +211 -0
- package/src/components/CloudTAK/Menu/Mission/MissionCreate.vue +372 -0
- package/src/components/CloudTAK/Menu/Mission/MissionInfo.vue +331 -0
- package/src/components/CloudTAK/Menu/Mission/MissionInviteModal.vue +107 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLayerCreate.vue +77 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLayerEdit.vue +77 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLayerTree.vue +194 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLayers.vue +157 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLog.vue +170 -0
- package/src/components/CloudTAK/Menu/Mission/MissionLogs.vue +194 -0
- package/src/components/CloudTAK/Menu/Mission/MissionTimeline.vue +142 -0
- package/src/components/CloudTAK/Menu/Mission/MissionUsers.vue +74 -0
- package/src/components/CloudTAK/Menu/Mission/PendingInvites.vue +130 -0
- package/src/components/CloudTAK/Menu/Overlays/DeleteModal.vue +57 -0
- package/src/components/CloudTAK/Menu/Overlays/TreeCots.vue +497 -0
- package/src/components/CloudTAK/Menu/Overlays/TreeMission.vue +32 -0
- package/src/components/CloudTAK/Menu/Overlays/TreeVector.vue +113 -0
- package/src/components/CloudTAK/Menu/Settings/TokenModal.vue +110 -0
- package/src/components/CloudTAK/Menu/Videos/VideoLeaseModal.vue +753 -0
- package/src/components/CloudTAK/Menu/Videos/VideosRemoteFeed.vue +75 -0
- package/src/components/CloudTAK/Notifications.vue +195 -0
- package/src/components/CloudTAK/Query/Magnetic.vue +80 -0
- package/src/components/CloudTAK/Query/Reverse.vue +65 -0
- package/src/components/CloudTAK/Query/Sun.vue +178 -0
- package/src/components/CloudTAK/Query/Weather.vue +195 -0
- package/src/components/CloudTAK/QueryView.vue +134 -0
- package/src/components/CloudTAK/RadialMenu/LICENSE +21 -0
- package/src/components/CloudTAK/RadialMenu/README.md +63 -0
- package/src/components/CloudTAK/RadialMenu/RadialMenu.css +85 -0
- package/src/components/CloudTAK/RadialMenu/RadialMenu.js +534 -0
- package/src/components/CloudTAK/RadialMenu/RadialMenu.vue +257 -0
- package/src/components/CloudTAK/RangeInput.vue +155 -0
- package/src/components/CloudTAK/RangeRingsInput.vue +269 -0
- package/src/components/CloudTAK/util/Breadcrumb.vue +85 -0
- package/src/components/CloudTAK/util/ChannelInfo.vue +25 -0
- package/src/components/CloudTAK/util/Contact.vue +131 -0
- package/src/components/CloudTAK/util/ContactPuck.vue +40 -0
- package/src/components/CloudTAK/util/Coordinate.vue +313 -0
- package/src/components/CloudTAK/util/CoordinateType.vue +134 -0
- package/src/components/CloudTAK/util/CopyButton.vue +67 -0
- package/src/components/CloudTAK/util/CopyField.vue +286 -0
- package/src/components/CloudTAK/util/DrawOverlay.vue +254 -0
- package/src/components/CloudTAK/util/EmptyInfo.vue +71 -0
- package/src/components/CloudTAK/util/FeatureIcon.vue +134 -0
- package/src/components/CloudTAK/util/FeatureRow.vue +206 -0
- package/src/components/CloudTAK/util/FloatingAttachment.vue +191 -0
- package/src/components/CloudTAK/util/FloatingVideo.vue +654 -0
- package/src/components/CloudTAK/util/GenericSelect.vue +125 -0
- package/src/components/CloudTAK/util/GroupSelect.vue +129 -0
- package/src/components/CloudTAK/util/Icons.vue +146 -0
- package/src/components/CloudTAK/util/JSONModal.vue +57 -0
- package/src/components/CloudTAK/util/Keywords.vue +31 -0
- package/src/components/CloudTAK/util/LineLength.vue +121 -0
- package/src/components/CloudTAK/util/MenuItem.vue +21 -0
- package/src/components/CloudTAK/util/MenuTemplate.vue +137 -0
- package/src/components/CloudTAK/util/MultipleSelect.vue +103 -0
- package/src/components/CloudTAK/util/NotificationIcon.vue +50 -0
- package/src/components/CloudTAK/util/NotificationToast.vue +125 -0
- package/src/components/CloudTAK/util/PolygonArea.vue +109 -0
- package/src/components/CloudTAK/util/PropertyAttachments.vue +224 -0
- package/src/components/CloudTAK/util/PropertyBattery.vue +44 -0
- package/src/components/CloudTAK/util/PropertyBearing.vue +148 -0
- package/src/components/CloudTAK/util/PropertyCreator.vue +61 -0
- package/src/components/CloudTAK/util/PropertyDistance.vue +182 -0
- package/src/components/CloudTAK/util/PropertyElevation.vue +84 -0
- package/src/components/CloudTAK/util/PropertyEmail.vue +44 -0
- package/src/components/CloudTAK/util/PropertyLinks.vue +148 -0
- package/src/components/CloudTAK/util/PropertyMetadata.vue +53 -0
- package/src/components/CloudTAK/util/PropertyMilSym.vue +62 -0
- package/src/components/CloudTAK/util/PropertyPhone.vue +61 -0
- package/src/components/CloudTAK/util/PropertySensor.vue +129 -0
- package/src/components/CloudTAK/util/PropertySpeed.vue +91 -0
- package/src/components/CloudTAK/util/PropertyStyle.vue +202 -0
- package/src/components/CloudTAK/util/PropertyTimes.vue +95 -0
- package/src/components/CloudTAK/util/PropertyType.vue +274 -0
- package/src/components/CloudTAK/util/SearchBox.vue +314 -0
- package/src/components/CloudTAK/util/SelectFeats.vue +190 -0
- package/src/components/CloudTAK/util/SettingsCallsign.vue +151 -0
- package/src/components/CloudTAK/util/Share.vue +496 -0
- package/src/components/CloudTAK/util/ShareToMission.vue +223 -0
- package/src/components/CloudTAK/util/ShareToPackage.vue +250 -0
- package/src/components/CloudTAK/util/SlideDownHeader.vue +92 -0
- package/src/components/CloudTAK/util/StandardItem.vue +42 -0
- package/src/components/CloudTAK/util/Subscriptions.vue +151 -0
- package/src/components/CloudTAK/util/TagEntry.vue +301 -0
- package/src/components/CloudTAK/util/UploadImport.vue +195 -0
- package/src/components/CloudTAK/util/VideoLeaseSourceType.vue +66 -0
- package/src/components/CloudTAK/util/WarnChannels.vue +56 -0
- package/src/components/CloudTAK/util/WarnConfiguration.vue +34 -0
- package/src/components/Configure.vue +259 -0
- package/src/components/ETL/Connection/AgencyBadge.vue +102 -0
- package/src/components/ETL/Connection/AgencySelect.vue +185 -0
- package/src/components/ETL/Connection/CertificateLogin.vue +75 -0
- package/src/components/ETL/Connection/CertificateMachineUser.vue +228 -0
- package/src/components/ETL/Connection/CertificateP12.vue +104 -0
- package/src/components/ETL/Connection/CertificateRaw.vue +50 -0
- package/src/components/ETL/Connection/ConnectionData.vue +174 -0
- package/src/components/ETL/Connection/ConnectionFiles.vue +182 -0
- package/src/components/ETL/Connection/ConnectionGroups.vue +181 -0
- package/src/components/ETL/Connection/ConnectionLayer.vue +180 -0
- package/src/components/ETL/Connection/ConnectionTokens.vue +147 -0
- package/src/components/ETL/Connection/ConnectionVideos.vue +151 -0
- package/src/components/ETL/Connection/Events.vue +88 -0
- package/src/components/ETL/Connection/StatusDot.vue +48 -0
- package/src/components/ETL/Connection/TokenModal.vue +136 -0
- package/src/components/ETL/Connection.vue +194 -0
- package/src/components/ETL/ConnectionCard.vue +265 -0
- package/src/components/ETL/ConnectionEdit.vue +448 -0
- package/src/components/ETL/Connections.vue +148 -0
- package/src/components/ETL/Data/DataFiles.vue +245 -0
- package/src/components/ETL/Data/DataGroups.vue +45 -0
- package/src/components/ETL/Data/DataLayer.vue +144 -0
- package/src/components/ETL/Data/Location.vue +238 -0
- package/src/components/ETL/Data.vue +259 -0
- package/src/components/ETL/DataEdit.vue +212 -0
- package/src/components/ETL/Layer/LayerAlarm.vue +307 -0
- package/src/components/ETL/Layer/LayerDeployment.vue +388 -0
- package/src/components/ETL/Layer/LayerEnvironment.vue +259 -0
- package/src/components/ETL/Layer/LayerIncomingConfig.vue +401 -0
- package/src/components/ETL/Layer/LayerIncomingEnvironmentArcGIS.vue +354 -0
- package/src/components/ETL/Layer/LayerIncomingSchema.vue +138 -0
- package/src/components/ETL/Layer/LayerIncomingStyles.vue +349 -0
- package/src/components/ETL/Layer/LayerOutgoingConfig.vue +204 -0
- package/src/components/ETL/Layer/LayerOutgoingEnvironmentArcGIS.vue +279 -0
- package/src/components/ETL/Layer/utils/QueryInput.vue +52 -0
- package/src/components/ETL/Layer/utils/Schema.vue +322 -0
- package/src/components/ETL/Layer/utils/SchemaModal.vue +77 -0
- package/src/components/ETL/Layer/utils/StatusDot.vue +38 -0
- package/src/components/ETL/Layer/utils/StyleLinkModal.vue +83 -0
- package/src/components/ETL/Layer/utils/StyleLinks.vue +139 -0
- package/src/components/ETL/Layer/utils/StyleSingle.vue +885 -0
- package/src/components/ETL/Layer/utils/StyleTemplate.vue +97 -0
- package/src/components/ETL/Layer/utils/TaskModal.vue +217 -0
- package/src/components/ETL/Layer.vue +560 -0
- package/src/components/ETL/LayerEdit.vue +276 -0
- package/src/components/ETL/Styling/Layer.vue +311 -0
- package/src/components/ETL/Styling/ObjectInput.vue +46 -0
- package/src/components/ETL/Styling/Style.vue +233 -0
- package/src/components/Home.vue +17 -0
- package/src/components/Loading.vue +42 -0
- package/src/components/Login.vue +198 -0
- package/src/components/LostUser.vue +31 -0
- package/src/components/PageFooter.vue +41 -0
- package/src/components/ServerAdmin.vue +408 -0
- package/src/components/VideoWall/Main.vue +79 -0
- package/src/components/VideoWall.vue +17 -0
- package/src/components/util/DataSelect.vue +148 -0
- package/src/components/util/EsriFilter.vue +140 -0
- package/src/components/util/EsriPortal.vue +422 -0
- package/src/components/util/EsriPortalCreate.vue +72 -0
- package/src/components/util/EsriServer.vue +368 -0
- package/src/components/util/GroupSelect.vue +166 -0
- package/src/components/util/IconSelect.vue +302 -0
- package/src/components/util/InitialAuthor.vue +28 -0
- package/src/components/util/LayerSelect.vue +162 -0
- package/src/components/util/LayerTaskSelect.vue +311 -0
- package/src/components/util/LayerTemplateSelect.vue +173 -0
- package/src/components/util/LoginModal.vue +110 -0
- package/src/components/util/PublicTilesSelect.vue +171 -0
- package/src/components/util/StatusDot.vue +31 -0
- package/src/components/util/TableFooter.vue +64 -0
- package/src/components/util/TableHeader.vue +127 -0
- package/src/components/util/Upload.vue +220 -0
- package/src/components/util/UploadCSV.vue +46 -0
- package/src/components/util/UploadLogo.vue +83 -0
- package/src/components/util/UploadP12.vue +93 -0
- package/src/components/util/UserSelect.vue +151 -0
- package/src/derived-types.d.ts +35243 -0
- package/src/main.ts +264 -0
- package/src/pages/admin/main.ts +208 -0
- package/src/pages/connection/main.ts +158 -0
- package/src/pages/docs/App.vue +19 -0
- package/src/pages/docs/main.ts +6 -0
- package/src/pages/video/main.ts +27 -0
- package/src/std.ts +152 -0
- package/src/stores/brand.ts +28 -0
- package/src/stores/float.ts +113 -0
- package/src/stores/map.ts +931 -0
- package/src/stores/modules/draw.ts +413 -0
- package/src/stores/modules/icons.ts +185 -0
- package/src/stores/modules/menu.ts +281 -0
- package/src/test/setup.ts +43 -0
- package/src/timediff.ts +33 -0
- package/src/types.ts +226 -0
- package/src/video.ts +27 -0
- package/src/vite-env.d.ts +9 -0
- package/src/workers/atlas-connection.ts +236 -0
- package/src/workers/atlas-database.ts +764 -0
- package/src/workers/atlas-profile.ts +374 -0
- package/src/workers/atlas-team.ts +90 -0
- package/src/workers/atlas.ts +81 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<svg
|
|
3
|
+
id='icons'
|
|
4
|
+
ref='icons'
|
|
5
|
+
class='d-none'
|
|
6
|
+
>
|
|
7
|
+
<symbol
|
|
8
|
+
id='radial-lock'
|
|
9
|
+
viewBox='0 0 24 24'
|
|
10
|
+
fill='none'
|
|
11
|
+
width='24'
|
|
12
|
+
height='24'
|
|
13
|
+
stroke='#fff'
|
|
14
|
+
stroke-width='2'
|
|
15
|
+
stroke-linejoin='round'
|
|
16
|
+
stroke-linecap='round'
|
|
17
|
+
>
|
|
18
|
+
<path d='M12.5 21h-5.5a2 2 0 0 1 -2 -2v-6a2 2 0 0 1 2 -2h10c.24 0 .47 .042 .683 .12' />
|
|
19
|
+
<path d='M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0' />
|
|
20
|
+
<path d='M8 11v-4a4 4 0 1 1 8 0v4' />
|
|
21
|
+
<path d='M21.121 20.121a3 3 0 1 0 -4.242 0c.418 .419 1.125 1.045 2.121 1.879c1.051 -.89 1.759 -1.516 2.121 -1.879z' />
|
|
22
|
+
<path d='M19 18v.01' />
|
|
23
|
+
</symbol>
|
|
24
|
+
<symbol
|
|
25
|
+
id='radial-question'
|
|
26
|
+
viewBox='0 0 24 24'
|
|
27
|
+
stroke-width='2'
|
|
28
|
+
stroke='#fff'
|
|
29
|
+
fill='none'
|
|
30
|
+
stroke-linecap='round'
|
|
31
|
+
stroke-linejoin='round'
|
|
32
|
+
><path
|
|
33
|
+
stroke='none'
|
|
34
|
+
d='M0 0h24v24H0z'
|
|
35
|
+
fill='none'
|
|
36
|
+
/><path d='M8 8a3.5 3 0 0 1 3.5 -3h1a3.5 3 0 0 1 3.5 3a3 3 0 0 1 -2 3a3 4 0 0 0 -2 4' /><path d='M12 19l0 .01' /></symbol>
|
|
37
|
+
<symbol
|
|
38
|
+
id='radial-play'
|
|
39
|
+
viewBox='0 0 24 24'
|
|
40
|
+
stroke-width='2'
|
|
41
|
+
stroke='#fff'
|
|
42
|
+
fill='none'
|
|
43
|
+
stroke-linecap='round'
|
|
44
|
+
stroke-linejoin='round'
|
|
45
|
+
><path
|
|
46
|
+
stroke='none'
|
|
47
|
+
d='M0 0h24v24H0z'
|
|
48
|
+
fill='none'
|
|
49
|
+
/><path d='M7 4v16l13 -8z' /></symbol>
|
|
50
|
+
<symbol
|
|
51
|
+
id='radial-trash'
|
|
52
|
+
viewBox='0 0 24 24'
|
|
53
|
+
stroke-width='2'
|
|
54
|
+
stroke='#fff'
|
|
55
|
+
fill='none'
|
|
56
|
+
stroke-linecap='round'
|
|
57
|
+
stroke-linejoin='round'
|
|
58
|
+
><path
|
|
59
|
+
stroke='none'
|
|
60
|
+
d='M0 0h24v24H0z'
|
|
61
|
+
fill='none'
|
|
62
|
+
/><path d='M4 7l16 0' /><path d='M10 11l0 6' /><path d='M14 11l0 6' /><path d='M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12' /><path d='M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3' /></symbol>
|
|
63
|
+
<symbol
|
|
64
|
+
id='radial-view'
|
|
65
|
+
viewBox='0 0 24 24'
|
|
66
|
+
stroke-width='2'
|
|
67
|
+
stroke='#fff'
|
|
68
|
+
fill='none'
|
|
69
|
+
stroke-linecap='round'
|
|
70
|
+
stroke-linejoin='round'
|
|
71
|
+
><path
|
|
72
|
+
stroke='none'
|
|
73
|
+
d='M0 0h24v24H0z'
|
|
74
|
+
fill='none'
|
|
75
|
+
/><path d='M13 5h8' /><path d='M13 9h5' /><path d='M13 15h8' /><path d='M13 19h5' /><path d='M3 4m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z' /><path d='M3 14m0 1a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v4a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1z' /></symbol>
|
|
76
|
+
<symbol
|
|
77
|
+
id='radial-pencil'
|
|
78
|
+
viewBox='0 0 24 24'
|
|
79
|
+
stroke-width='2'
|
|
80
|
+
stroke='#fff'
|
|
81
|
+
fill='none'
|
|
82
|
+
stroke-linecap='round'
|
|
83
|
+
stroke-linejoin='round'
|
|
84
|
+
><path
|
|
85
|
+
stroke='none'
|
|
86
|
+
d='M0 0h24v24H0z'
|
|
87
|
+
fill='none'
|
|
88
|
+
/><path d='M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4' /><path d='M13.5 6.5l4 4' /></symbol>
|
|
89
|
+
<symbol
|
|
90
|
+
id='radial-pencil-plus'
|
|
91
|
+
viewBox='0 0 24 24'
|
|
92
|
+
stroke-width='2'
|
|
93
|
+
stroke='#fff'
|
|
94
|
+
fill='none'
|
|
95
|
+
stroke-linecap='round'
|
|
96
|
+
stroke-linejoin='round'
|
|
97
|
+
><path
|
|
98
|
+
stroke='none'
|
|
99
|
+
d='M0 0h24v24H0z'
|
|
100
|
+
fill='none'
|
|
101
|
+
/><path d='M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4' /><path d='M13.5 6.5l4 4' /><path d='M16 19h6' /><path d='M19 16v6' /></symbol>
|
|
102
|
+
<symbol
|
|
103
|
+
id='radial-save'
|
|
104
|
+
viewBox='0 0 24 24'
|
|
105
|
+
fill='none'
|
|
106
|
+
stroke='#fff'
|
|
107
|
+
stroke-width='2'
|
|
108
|
+
stroke-linecap='round'
|
|
109
|
+
stroke-linejoin='round'
|
|
110
|
+
>
|
|
111
|
+
<path d='M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2' />
|
|
112
|
+
<path d='M12 14m-2 0a2 2 0 1 0 4 0a2 2 0 1 0 -4 0' />
|
|
113
|
+
<path d='M14 4l0 4l-6 0l0 -4' />
|
|
114
|
+
</symbol>
|
|
115
|
+
</svg>
|
|
116
|
+
</template>
|
|
117
|
+
|
|
118
|
+
<script setup>
|
|
119
|
+
import { ref, shallowRef, onMounted, onUnmounted, nextTick, useTemplateRef, watch } from 'vue';
|
|
120
|
+
import { OriginMode } from '../../../base/cot.ts';
|
|
121
|
+
import Subscription from '../../../base/subscription.ts';
|
|
122
|
+
import RadialMenu from './RadialMenu.js';
|
|
123
|
+
import './RadialMenu.css';
|
|
124
|
+
import { useMapStore } from '../../../stores/map.ts';
|
|
125
|
+
import mapgl from 'maplibre-gl';
|
|
126
|
+
|
|
127
|
+
const mapStore = useMapStore();
|
|
128
|
+
|
|
129
|
+
const props = defineProps({
|
|
130
|
+
size: {
|
|
131
|
+
type: Number,
|
|
132
|
+
default: 200
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
|
|
136
|
+
const emit = defineEmits(['close', 'click']);
|
|
137
|
+
|
|
138
|
+
const iconsRef = useTemplateRef('icons');
|
|
139
|
+
const menuItems = ref([]);
|
|
140
|
+
const menu = shallowRef();
|
|
141
|
+
const popup = shallowRef();
|
|
142
|
+
const cot = shallowRef();
|
|
143
|
+
|
|
144
|
+
watch(() => cot.value?.geometry, (newGeometry) => {
|
|
145
|
+
if (popup.value && newGeometry && newGeometry.type === 'Point') {
|
|
146
|
+
popup.value.setLngLat(newGeometry.coordinates);
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
let timer;
|
|
151
|
+
onUnmounted(() => {
|
|
152
|
+
if (timer) clearInterval(timer);
|
|
153
|
+
if (menu.value) {
|
|
154
|
+
menu.value.close();
|
|
155
|
+
}
|
|
156
|
+
if (popup.value) {
|
|
157
|
+
popup.value.remove();
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
onMounted(async () => {
|
|
162
|
+
await genMenuItems();
|
|
163
|
+
|
|
164
|
+
nextTick(() => {
|
|
165
|
+
const container = document.createElement('div');
|
|
166
|
+
container.style.width = `${props.size}px`;
|
|
167
|
+
container.style.height = `${props.size}px`;
|
|
168
|
+
|
|
169
|
+
if (iconsRef.value) {
|
|
170
|
+
container.appendChild(iconsRef.value.cloneNode(true));
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
menu.value = new RadialMenu({
|
|
174
|
+
parent: container,
|
|
175
|
+
size: props.size,
|
|
176
|
+
closeOnClick: true,
|
|
177
|
+
menuItems: menuItems.value,
|
|
178
|
+
onClick: (item) => {
|
|
179
|
+
emit('click', `${mapStore.radial.mode}:${item.id}`);
|
|
180
|
+
},
|
|
181
|
+
onClose: () => {
|
|
182
|
+
emit('close');
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
menu.value.open();
|
|
186
|
+
|
|
187
|
+
if (mapStore.radial.lngLat) {
|
|
188
|
+
popup.value = new mapgl.Popup({
|
|
189
|
+
closeButton: false,
|
|
190
|
+
closeOnClick: true,
|
|
191
|
+
maxWidth: 'none',
|
|
192
|
+
anchor: 'center',
|
|
193
|
+
className: 'radial-menu-popup'
|
|
194
|
+
})
|
|
195
|
+
.setLngLat(mapStore.radial.lngLat)
|
|
196
|
+
.setDOMContent(container)
|
|
197
|
+
.addTo(mapStore.map);
|
|
198
|
+
|
|
199
|
+
popup.value.on('close', () => {
|
|
200
|
+
emit('close');
|
|
201
|
+
});
|
|
202
|
+
} else {
|
|
203
|
+
emit('close');
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
timer = setInterval(async () => {
|
|
207
|
+
if (cot.value) {
|
|
208
|
+
const updated = await mapStore.worker.db.get(cot.value.properties.id || cot.value.id, {
|
|
209
|
+
mission: true
|
|
210
|
+
});
|
|
211
|
+
if (updated) cot.value = updated;
|
|
212
|
+
}
|
|
213
|
+
}, 500);
|
|
214
|
+
})
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
async function genMenuItems() {
|
|
218
|
+
menuItems.value.splice(0, menuItems.value.length);
|
|
219
|
+
if (mapStore.radial.mode === 'cot') {
|
|
220
|
+
if (mapStore.radial.cot && mapStore.radial.cot.properties) {
|
|
221
|
+
cot.value = await mapStore.worker.db.get(mapStore.radial.cot.properties.id, {
|
|
222
|
+
mission: true
|
|
223
|
+
});
|
|
224
|
+
|
|
225
|
+
if (!cot.value) throw new Error('Could not find marker');
|
|
226
|
+
|
|
227
|
+
if (cot.value.origin.mode === OriginMode.CONNECTION) {
|
|
228
|
+
menuItems.value.push({ id: 'edit', icon: '#radial-pencil' })
|
|
229
|
+
menuItems.value.push({ id: 'delete', icon: '#radial-trash' })
|
|
230
|
+
|
|
231
|
+
if (cot.value.geometry.type === 'Point') {
|
|
232
|
+
menuItems.value.push({ id: 'lock', icon: '#radial-lock' })
|
|
233
|
+
}
|
|
234
|
+
} else if (cot.value.origin.mode === OriginMode.MISSION && cot.value.origin.mode_id) {
|
|
235
|
+
|
|
236
|
+
const sub = await Subscription.from(cot.value.origin.mode_id, localStorage.token);
|
|
237
|
+
|
|
238
|
+
if (sub.role && sub.role.permissions.includes("MISSION_WRITE")) {
|
|
239
|
+
menuItems.value.push({ id: 'edit', icon: '#radial-pencil' })
|
|
240
|
+
menuItems.value.push({ id: 'delete', icon: '#radial-trash' })
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (cot.value.properties.video) {
|
|
245
|
+
menuItems.value.push({ id: 'play', icon: '#radial-play' })
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
menuItems.value.push({ id: 'view', icon: '#radial-view' })
|
|
250
|
+
} else if (mapStore.radial.mode === 'feat') {
|
|
251
|
+
menuItems.value.push({ id: 'view', icon: '#radial-view' })
|
|
252
|
+
} else if (mapStore.radial.mode === 'context') {
|
|
253
|
+
menuItems.value.push({ id: 'new', icon: '#radial-pencil-plus' })
|
|
254
|
+
menuItems.value.push({ id: 'info', icon: '#radial-question' })
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
</script>
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
class='position-absolute end-0 text-white bg-dark card rounded'
|
|
4
|
+
style='
|
|
5
|
+
top: 56px;
|
|
6
|
+
z-index: 1;
|
|
7
|
+
width: 400px;
|
|
8
|
+
border-radius: 0px 6px 0px 0px;
|
|
9
|
+
'
|
|
10
|
+
>
|
|
11
|
+
<div class='card-header d-flex align-items-center'>
|
|
12
|
+
<div class='card-title'>
|
|
13
|
+
<IconCompass
|
|
14
|
+
:size='25'
|
|
15
|
+
stroke='1'
|
|
16
|
+
/>
|
|
17
|
+
|
|
18
|
+
<span class='ms-2'>Range & Bearing</span>
|
|
19
|
+
</div>
|
|
20
|
+
<div class='ms-auto'>
|
|
21
|
+
<TablerIconButton
|
|
22
|
+
title='Close'
|
|
23
|
+
@click='emit("close")'
|
|
24
|
+
>
|
|
25
|
+
<IconX
|
|
26
|
+
:size='20'
|
|
27
|
+
stroke='1'
|
|
28
|
+
/>
|
|
29
|
+
</TablerIconButton>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class='mx-2 my-2 row g-2'>
|
|
33
|
+
<div class='col-12'>
|
|
34
|
+
<TablerInput
|
|
35
|
+
v-model='config.name'
|
|
36
|
+
label='Name'
|
|
37
|
+
@submit='submitPoint'
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
<div class='col-12'>
|
|
41
|
+
<Coordinate
|
|
42
|
+
v-model='config.coordinates'
|
|
43
|
+
:edit='true'
|
|
44
|
+
:hover='true'
|
|
45
|
+
:modes='["dd"]'
|
|
46
|
+
@submit='submitPoint'
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<div class='col-12'>
|
|
50
|
+
<PropertyBearing
|
|
51
|
+
v-model='config.bearing'
|
|
52
|
+
:edit='true'
|
|
53
|
+
:hover='true'
|
|
54
|
+
/>
|
|
55
|
+
</div>
|
|
56
|
+
<div class='col-12'>
|
|
57
|
+
<PropertyDistance
|
|
58
|
+
v-model='config.range'
|
|
59
|
+
:unit='mapStore.distanceUnit'
|
|
60
|
+
:edit='true'
|
|
61
|
+
:hover='true'
|
|
62
|
+
/>
|
|
63
|
+
</div>
|
|
64
|
+
<div class='col-12'>
|
|
65
|
+
<button
|
|
66
|
+
class='btn btn-primary w-100 mt-3'
|
|
67
|
+
@click='submitPoint'
|
|
68
|
+
>
|
|
69
|
+
Save
|
|
70
|
+
</button>
|
|
71
|
+
</div>
|
|
72
|
+
</div>
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
|
|
76
|
+
<script setup lang='ts'>
|
|
77
|
+
import { v4 as randomUUID } from 'uuid';
|
|
78
|
+
import { ref, toRaw } from 'vue'
|
|
79
|
+
import { destination } from '@turf/destination'
|
|
80
|
+
import Coordinate from './util/Coordinate.vue';
|
|
81
|
+
import PropertyBearing from './util/PropertyBearing.vue';
|
|
82
|
+
import PropertyDistance from './util/PropertyDistance.vue';
|
|
83
|
+
import {
|
|
84
|
+
TablerInput,
|
|
85
|
+
TablerIconButton
|
|
86
|
+
} from '@tak-ps/vue-tabler';
|
|
87
|
+
|
|
88
|
+
import {
|
|
89
|
+
IconX,
|
|
90
|
+
IconCompass
|
|
91
|
+
} from '@tabler/icons-vue';
|
|
92
|
+
|
|
93
|
+
import type { LngLatLike } from 'maplibre-gl'
|
|
94
|
+
import { useMapStore } from '../../stores/map.ts';
|
|
95
|
+
const mapStore = useMapStore();
|
|
96
|
+
|
|
97
|
+
const emit = defineEmits([ 'close' ]);
|
|
98
|
+
|
|
99
|
+
const center = mapStore.map.getCenter();
|
|
100
|
+
|
|
101
|
+
const config = ref({
|
|
102
|
+
name: '',
|
|
103
|
+
range: 1,
|
|
104
|
+
bearing: 0,
|
|
105
|
+
coordinates: [
|
|
106
|
+
Math.round(center.lng * 1000000) / 1000000,
|
|
107
|
+
Math.round(center.lat * 1000000) / 1000000,
|
|
108
|
+
]
|
|
109
|
+
});
|
|
110
|
+
|
|
111
|
+
async function submitPoint() {
|
|
112
|
+
const id = randomUUID();
|
|
113
|
+
|
|
114
|
+
const end = destination(
|
|
115
|
+
config.value.coordinates,
|
|
116
|
+
config.value.range,
|
|
117
|
+
config.value.bearing
|
|
118
|
+
)
|
|
119
|
+
|
|
120
|
+
await mapStore.worker.db.add({
|
|
121
|
+
id,
|
|
122
|
+
type: 'Feature',
|
|
123
|
+
path: '/',
|
|
124
|
+
properties: {
|
|
125
|
+
id,
|
|
126
|
+
type: 'u-rb-a',
|
|
127
|
+
how: 'h-g-i-g-o',
|
|
128
|
+
color: '#00FF00',
|
|
129
|
+
archived: true,
|
|
130
|
+
time: new Date().toISOString(),
|
|
131
|
+
start: new Date().toISOString(),
|
|
132
|
+
stale: new Date().toISOString(),
|
|
133
|
+
center: toRaw(config.value.coordinates),
|
|
134
|
+
bearing: config.value.bearing,
|
|
135
|
+
range: config.value.range,
|
|
136
|
+
callsign: toRaw(config.value.name || 'New Feature'),
|
|
137
|
+
},
|
|
138
|
+
geometry: {
|
|
139
|
+
type: 'LineString',
|
|
140
|
+
coordinates: [toRaw(config.value.coordinates), end.geometry.coordinates]
|
|
141
|
+
}
|
|
142
|
+
}, {
|
|
143
|
+
authored: true
|
|
144
|
+
});
|
|
145
|
+
|
|
146
|
+
if (mapStore.map) {
|
|
147
|
+
mapStore.map.flyTo({
|
|
148
|
+
center: config.value.coordinates as LngLatLike,
|
|
149
|
+
zoom: 14
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
emit('close');
|
|
154
|
+
}
|
|
155
|
+
</script>
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<TablerModal size='md'>
|
|
3
|
+
<div class='modal-status bg-blue' />
|
|
4
|
+
<button
|
|
5
|
+
type='button'
|
|
6
|
+
class='btn-close'
|
|
7
|
+
aria-label='Close'
|
|
8
|
+
@click='emit("close")'
|
|
9
|
+
/>
|
|
10
|
+
<div class='modal-header text-white'>
|
|
11
|
+
<div class='modal-title d-flex align-items-center'>
|
|
12
|
+
<IconTarget
|
|
13
|
+
:size='32'
|
|
14
|
+
stroke='1'
|
|
15
|
+
/>
|
|
16
|
+
<span class='mx-2'>Range Rings</span>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
<div class='modal-body text-white'>
|
|
20
|
+
<div class='mx-2 my-2'>
|
|
21
|
+
<TablerInput
|
|
22
|
+
v-model='config.name'
|
|
23
|
+
label='Name'
|
|
24
|
+
@submit='submitRings'
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<Coordinate
|
|
29
|
+
v-model='config.coordinates'
|
|
30
|
+
label='Origin'
|
|
31
|
+
:edit='true'
|
|
32
|
+
:hover='true'
|
|
33
|
+
:modes='["dd"]'
|
|
34
|
+
@submit='submitRings'
|
|
35
|
+
/>
|
|
36
|
+
|
|
37
|
+
<div class='mx-2 border my-2'>
|
|
38
|
+
<template v-for='ring of config.rings'>
|
|
39
|
+
<div class='position-relative'>
|
|
40
|
+
<div
|
|
41
|
+
v-if='config.rings.length > 1'
|
|
42
|
+
class='position-absolute cursor-pointer'
|
|
43
|
+
style='
|
|
44
|
+
top: 4px;
|
|
45
|
+
right: 4px;
|
|
46
|
+
'
|
|
47
|
+
@click='config.rings.splice(config.rings.indexOf(ring), 1)'
|
|
48
|
+
>
|
|
49
|
+
<IconTrash
|
|
50
|
+
:size='18'
|
|
51
|
+
stroke='1'
|
|
52
|
+
/>
|
|
53
|
+
</div>
|
|
54
|
+
|
|
55
|
+
<PropertyDistance
|
|
56
|
+
v-model='ring.distance'
|
|
57
|
+
class='py-2'
|
|
58
|
+
label='Ring Diameter'
|
|
59
|
+
:edit='true'
|
|
60
|
+
:hover='true'
|
|
61
|
+
/>
|
|
62
|
+
</div>
|
|
63
|
+
</template>
|
|
64
|
+
|
|
65
|
+
<div class='col-12 px-2 py-2'>
|
|
66
|
+
<button
|
|
67
|
+
class='btn btn-secondary btn-sm w-100'
|
|
68
|
+
@click='config.rings.push({ distance: 1 })'
|
|
69
|
+
>
|
|
70
|
+
<IconPlus
|
|
71
|
+
:size='18'
|
|
72
|
+
stroke='1'
|
|
73
|
+
/>
|
|
74
|
+
<span class='ms-2'>Add Ring</span>
|
|
75
|
+
</button>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div class='mx-2 my-2'>
|
|
80
|
+
<TablerSlidedown
|
|
81
|
+
:arrow='true'
|
|
82
|
+
:click-anywhere-expand='true'
|
|
83
|
+
>
|
|
84
|
+
<div class='d-flex align-items-center w-100'>
|
|
85
|
+
<span>Style Options</span>
|
|
86
|
+
<div :style='previewStyle' />
|
|
87
|
+
</div>
|
|
88
|
+
<template #expanded>
|
|
89
|
+
<TablerColour
|
|
90
|
+
v-model='config.color'
|
|
91
|
+
label='Color'
|
|
92
|
+
/>
|
|
93
|
+
<TablerEnum
|
|
94
|
+
v-model='config.style'
|
|
95
|
+
label='Style'
|
|
96
|
+
:options='["solid", "dashed", "dotted", "outlined"]'
|
|
97
|
+
/>
|
|
98
|
+
<TablerRange
|
|
99
|
+
v-model='config.width'
|
|
100
|
+
label='Width'
|
|
101
|
+
:min='1'
|
|
102
|
+
:max='10'
|
|
103
|
+
:step='1'
|
|
104
|
+
/>
|
|
105
|
+
<TablerRange
|
|
106
|
+
v-model='config.opacity'
|
|
107
|
+
label='Opacity'
|
|
108
|
+
:min='0'
|
|
109
|
+
:max='1'
|
|
110
|
+
:step='0.1'
|
|
111
|
+
/>
|
|
112
|
+
</template>
|
|
113
|
+
</TablerSlidedown>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<button
|
|
117
|
+
class='btn btn-primary w-100 mt-3'
|
|
118
|
+
@click='submitRings'
|
|
119
|
+
>
|
|
120
|
+
Save
|
|
121
|
+
</button>
|
|
122
|
+
</div>
|
|
123
|
+
</TablerModal>
|
|
124
|
+
</template>
|
|
125
|
+
|
|
126
|
+
<script setup lang='ts'>
|
|
127
|
+
import { v4 as randomUUID } from 'uuid';
|
|
128
|
+
import { ref, toRaw, computed } from 'vue'
|
|
129
|
+
import Coordinate from './util/Coordinate.vue';
|
|
130
|
+
import PropertyDistance from './util/PropertyDistance.vue';
|
|
131
|
+
import Ellipse from '@turf/ellipse'
|
|
132
|
+
import {
|
|
133
|
+
IconPlus,
|
|
134
|
+
IconTarget,
|
|
135
|
+
IconTrash
|
|
136
|
+
} from '@tabler/icons-vue';
|
|
137
|
+
import {
|
|
138
|
+
TablerInput,
|
|
139
|
+
TablerModal,
|
|
140
|
+
TablerColour,
|
|
141
|
+
TablerEnum,
|
|
142
|
+
TablerRange,
|
|
143
|
+
TablerSlidedown
|
|
144
|
+
} from '@tak-ps/vue-tabler';
|
|
145
|
+
import type { LngLatLike } from 'maplibre-gl'
|
|
146
|
+
import { useMapStore } from '../../stores/map.ts';
|
|
147
|
+
const mapStore = useMapStore();
|
|
148
|
+
|
|
149
|
+
const emit = defineEmits([ 'close' ]);
|
|
150
|
+
|
|
151
|
+
const center = mapStore.map.getCenter();
|
|
152
|
+
|
|
153
|
+
const config = ref({
|
|
154
|
+
name: '',
|
|
155
|
+
type: 'u-d-p',
|
|
156
|
+
rings: [{
|
|
157
|
+
distance: 1
|
|
158
|
+
}],
|
|
159
|
+
coordinates: [
|
|
160
|
+
Math.round(center.lng * 1000000) / 1000000,
|
|
161
|
+
Math.round(center.lat * 1000000) / 1000000,
|
|
162
|
+
],
|
|
163
|
+
color: '#d63939',
|
|
164
|
+
style: 'solid',
|
|
165
|
+
width: 3,
|
|
166
|
+
opacity: 1
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
const previewStyle = computed(() => {
|
|
170
|
+
const style = config.value.style === 'outlined' ? 'solid' : config.value.style;
|
|
171
|
+
|
|
172
|
+
return {
|
|
173
|
+
width: '100px',
|
|
174
|
+
borderTopWidth: `${config.value.width}px`,
|
|
175
|
+
borderTopStyle: style as 'solid' | 'dashed' | 'dotted',
|
|
176
|
+
borderTopColor: config.value.color,
|
|
177
|
+
opacity: config.value.opacity,
|
|
178
|
+
marginLeft: 'auto',
|
|
179
|
+
marginRight: '1rem'
|
|
180
|
+
};
|
|
181
|
+
});
|
|
182
|
+
|
|
183
|
+
async function submitRings() {
|
|
184
|
+
const id = randomUUID();
|
|
185
|
+
|
|
186
|
+
await mapStore.worker.db.add({
|
|
187
|
+
id,
|
|
188
|
+
type: 'Feature',
|
|
189
|
+
path: '/',
|
|
190
|
+
properties: {
|
|
191
|
+
id,
|
|
192
|
+
type: toRaw(config.value.type),
|
|
193
|
+
how: 'h-g-i-g-o',
|
|
194
|
+
color: toRaw(config.value.color),
|
|
195
|
+
archived: true,
|
|
196
|
+
'marker-color': toRaw(config.value.color),
|
|
197
|
+
'marker-opacity': toRaw(config.value.opacity),
|
|
198
|
+
time: new Date().toISOString(),
|
|
199
|
+
start: new Date().toISOString(),
|
|
200
|
+
stale: new Date().toISOString(),
|
|
201
|
+
center: toRaw(config.value.coordinates),
|
|
202
|
+
callsign: toRaw((config.value.name || '') + " Origin"),
|
|
203
|
+
},
|
|
204
|
+
geometry: {
|
|
205
|
+
type: 'Point',
|
|
206
|
+
coordinates: toRaw(config.value.coordinates)
|
|
207
|
+
}
|
|
208
|
+
}, {
|
|
209
|
+
authored: true
|
|
210
|
+
});
|
|
211
|
+
|
|
212
|
+
for (let i = 0; i < config.value.rings.length; i++) {
|
|
213
|
+
const ring = config.value.rings[i];
|
|
214
|
+
|
|
215
|
+
if (ring.distance === 0) continue;
|
|
216
|
+
|
|
217
|
+
const ringid = randomUUID();
|
|
218
|
+
|
|
219
|
+
await mapStore.worker.db.add({
|
|
220
|
+
id: ringid,
|
|
221
|
+
type: 'Feature',
|
|
222
|
+
path: '/',
|
|
223
|
+
properties: {
|
|
224
|
+
id: ringid,
|
|
225
|
+
type: 'u-d-c-c',
|
|
226
|
+
how: 'h-g-i-g-o',
|
|
227
|
+
color: toRaw(config.value.color),
|
|
228
|
+
stroke: toRaw(config.value.color),
|
|
229
|
+
'stroke-width': toRaw(config.value.width),
|
|
230
|
+
'stroke-style': toRaw(config.value.style),
|
|
231
|
+
'stroke-opacity': toRaw(config.value.opacity),
|
|
232
|
+
archived: true,
|
|
233
|
+
shape: {
|
|
234
|
+
ellipse: {
|
|
235
|
+
major: ring.distance * 1000,
|
|
236
|
+
minor: ring.distance * 1000,
|
|
237
|
+
angle: 360
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
'fill-opacity': 0,
|
|
241
|
+
time: new Date().toISOString(),
|
|
242
|
+
start: new Date().toISOString(),
|
|
243
|
+
stale: new Date().toISOString(),
|
|
244
|
+
center: toRaw(config.value.coordinates),
|
|
245
|
+
callsign: toRaw((config.value.name || '') + " Ring #" + (i + 1)),
|
|
246
|
+
},
|
|
247
|
+
geometry: Ellipse(
|
|
248
|
+
config.value.coordinates,
|
|
249
|
+
ring.distance,
|
|
250
|
+
ring.distance,
|
|
251
|
+
{
|
|
252
|
+
angle: 360
|
|
253
|
+
}
|
|
254
|
+
).geometry
|
|
255
|
+
}, {
|
|
256
|
+
authored: true
|
|
257
|
+
});
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
if (mapStore.map) {
|
|
261
|
+
mapStore.map.flyTo({
|
|
262
|
+
center: config.value.coordinates as LngLatLike,
|
|
263
|
+
zoom: 14
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
emit('close');
|
|
268
|
+
}
|
|
269
|
+
</script>
|