Skip to content

Commit

Permalink
Fix Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 3, 2024
1 parent 0375be0 commit 5076c0e
Show file tree
Hide file tree
Showing 7 changed files with 182 additions and 153 deletions.
2 changes: 0 additions & 2 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import fs from 'node:fs';
import path from 'node:path';
import cors from 'cors';
import jwt from 'jsonwebtoken';
import express, { Request, Response } from 'express';
import SwaggerUI from 'swagger-ui-express';
import history, {Context} from 'connect-history-api-fallback';
import Schema from '@openaddresses/batch-schema';
Expand Down
3 changes: 0 additions & 3 deletions api/lib/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@ import Config from './config.js';
import { InferSelectModel } from 'drizzle-orm';
import Err from '@openaddresses/batch-error';
import moment from 'moment';
import fetch from './fetch.js';
import { CookieJar } from 'tough-cookie';
import type { Profile } from './schema.js';
import { CookieAgent } from 'http-cookie-agent/undici';
import { X509Certificate } from 'crypto';
import TAKAPI, { APIAuthPassword, APIAuthCertificate } from '../lib/tak-api.js';

Expand Down
1 change: 0 additions & 1 deletion api/lib/tak-auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fetch from './fetch.js';
import { CookieJar, Cookie } from 'tough-cookie';
import { CookieAgent } from 'http-cookie-agent/undici';
import Err from '@openaddresses/batch-error';
import { Client } from 'undici';
import TAKAPI from './tak-api.js';
import stream2buffer from './stream.js';
Expand Down
270 changes: 135 additions & 135 deletions api/web/package-lock.json

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion api/web/src/components/CloudTAK/Map.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@
background-color: rgba(0, 0, 0, 0.5);
'
>
<div class='d-flex align-items-center' style='height: 40px'>
<div
class='d-flex align-items-center'
style='height: 40px'
>
<Status
v-if='live_loc'
v-tooltip='"Using Live Location"'
Expand Down
49 changes: 39 additions & 10 deletions api/web/src/components/CloudTAK/Menu/Videos/VideoLeaseModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,19 @@
<template v-else-if='wizard > 0'>
<div class='d-flex align-items-center w-100 justify-content-center'>
<div class='py-2'>
<img height='600px' width='600px' alt='UAS Tool Wizard Image' :src='`/wizard/Step${wizard}.png`' class='rounded'>
<img
height='600px'
width='600px'
alt='UAS Tool Wizard Image'
:src='`/wizard/Step${wizard}.png`'
class='rounded'
>

<div v-if='wizard === 8'>
<div class='subheader pt-4'>RTSP Path</div>
<CopyField :text='protocols.rtsp.url.replace(/.*\//, "")'/>
<div class='subheader pt-4'>
RTSP Path
</div>
<CopyField :text='protocols.rtsp.url.replace(/.*\//, "")' />
</div>
</div>
</div>
Expand All @@ -53,19 +61,37 @@
class='btn btn-secondary'
@click='wizard = wizard -= 1'
>
<IconChevronLeft :size='20' :stroke='1'/>
<span v-if='wizard === 1' class='mx-2'>Close</span>
<span v-else class='mx-2'>Back</span>
<IconChevronLeft
:size='20'
:stroke='1'
/>
<span
v-if='wizard === 1'
class='mx-2'
>Close</span>
<span
v-else
class='mx-2'
>Back</span>
</button>

<div class='ms-auto'>
<button
class='btn btn-primary'
@click='wizard = wizard > 10 ? 0 : wizard + 1'
>
<span v-if='wizard < 10' class='mx-2'>Next</span>
<span v-else class='mx-2'>Done</span>
<IconChevronRight :size='20' :stroke='1'/>
<span
v-if='wizard < 10'
class='mx-2'
>Next</span>
<span
v-else
class='mx-2'
>Done</span>
<IconChevronRight
:size='20'
:stroke='1'
/>
</button>
</div>
</div>
Expand Down Expand Up @@ -144,7 +170,10 @@
class='btn btn-secondary'
@click='wizard = 1'
>
<IconWand :size='20' :stroke='1'/>
<IconWand
:size='20'
:stroke='1'
/>
<span class='mx-2'>UAS Tool Wizard</span>
</button>
<button
Expand Down
5 changes: 4 additions & 1 deletion api/web/src/components/CloudTAK/util/Coordinate.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div class='col-12'>
<label class='subheader mx-2' v-text='label'></label>
<label
class='subheader mx-2'
v-text='label'
/>
<div class='mx-2'>
<CopyField
v-if='!edit'
Expand Down

0 comments on commit 5076c0e

Please sign in to comment.