Skip to content

Commit

Permalink
Merge pull request #265 from dfpc-coe/show-cloudtak-layer-id
Browse files Browse the repository at this point in the history
CloudTAK Flow Log
  • Loading branch information
ingalls authored Aug 8, 2024
2 parents ba2f7d9 + 77495db commit 2d38c48
Show file tree
Hide file tree
Showing 125 changed files with 562 additions and 32 deletions.
6 changes: 6 additions & 0 deletions api/routes/connection-layer-cot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ export default async function router(schema: Schema, config: Config) {

for (let i = 0; i < req.body.features.length; i++) {
req.body.features[i] = await style.feat(req.body.features[i])

if (!req.body.features[i].properties.flow) {
req.body.features[i].properties.flow = {};
}

req.body.features[i].properties.flow[`CloudTAK-Layer-${req.params.layerid}`] = new Date().toISOString();
}

let pooledClient;
Expand Down
1 change: 1 addition & 0 deletions api/routes/connection-sink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ export default async function router(schema: Schema, config: Config) {
name: Type.Optional(Default.NameField),
type: Type.Optional(Type.String()),
logging: Type.Optional(Type.Boolean()),
enabled: Type.Optional(Type.Boolean()),
}),
res: ConnectionSinkResponse
}, async (req, res) => {
Expand Down
10 changes: 9 additions & 1 deletion api/web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=no">


<!-- iOS PWA Settings: ref: https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariHTMLRef/Articles/MetaTags.html?ref=frontendchecklist -->
<meta name="format-detection" content="telephone=no">
<link rel="apple-touch-icon" href="./public/logos/512.png">
<link rel="apple-touch-icon" sizes="152x152" href="./public/logos/152.png">
<link rel="apple-touch-icon" sizes="180x180" href="./public/logos/180.png">
<link rel="apple-touch-icon" sizes="167x167" href="./public/logos/167.png">

<title>CloudTAK</title>
</head>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 2d38c48

Please sign in to comment.