Skip to content

Commit

Permalink
Fix Lints
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 27, 2024
1 parent b5d8c6d commit 9dbff56
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 35 deletions.
83 changes: 50 additions & 33 deletions api/web/src/components/CloudTAK/Menu/OverlayExplorer.vue
Original file line number Diff line number Diff line change
@@ -1,40 +1,55 @@
<template>
<MenuTemplate name='Overlay Explorer'>
<div class='row g-0 py-2'>
<div class='col-12 px-2'>
<button
class='btn btn-primary w-100'
@click='router.push("/menu/files")'
>
<IconUser
:size='32'
stroke='1'
/>Your Files
</button>
<MenuTemplate
name='Overlay Explorer'
>
<template #buttons>
<TablerIconButton
title='Refresh'
@click='fetchList'
>
<IconRefresh
:size='32'
stroke='1'
/>
</TablerIconButton>
</template>
<template #default>
<div class='row g-0 py-2'>
<div class='col-12 px-2'>
<button
class='btn btn-primary w-100'
@click='router.push("/menu/files")'
>
<IconUser
:size='32'
stroke='1'
/>Your Files
</button>
</div>
</div>
</div>

<TablerLoading v-if='loading' />
<template v-else>
<TablerNone
v-if='!list.total'
label='Server Overlays'
:create='false'
/>
<TablerLoading v-if='loading' />
<template v-else>
<div
v-for='ov in list.items'
:key='ov.id'
class='cursor-pointer col-12 py-2 px-3 hover-dark'
@click='createOverlay(ov)'
>
<div class='col-12 py-2 px-2 d-flex align-items-center'>
<span
class='mx-2'
v-text='ov.name'
/>
<TablerNone
v-if='!list.total'
label='Server Overlays'
:create='false'
/>
<template v-else>
<div
v-for='ov in list.items'
:key='ov.id'
class='cursor-pointer col-12 py-2 px-3 hover-dark'
@click='createOverlay(ov)'
>
<div class='col-12 py-2 px-2 d-flex align-items-center'>
<span
class='mx-2'
v-text='ov.name'
/>
</div>
</div>
</div>
</template>
</template>
</template>
</MenuTemplate>
Expand All @@ -48,10 +63,12 @@ import { std, stdurl } from '../../../std.ts';
import MenuTemplate from '../util/MenuTemplate.vue';
import {
TablerNone,
TablerLoading
TablerLoading,
TablerIconButton
} from '@tak-ps/vue-tabler';
import {
IconUser,
IconRefresh
} from '@tabler/icons-vue'
import Overlay from '../../../stores/base/overlay.ts';
import { useMapStore } from '../../../stores/map.ts';
Expand Down
4 changes: 2 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import CP from 'child_process';
process.env.GITSHA = sha();

process.env.API_URL = process.env.API_URL || '"https://example.com"';
process.env.Environment = process.env.Environment || 'prod'
process.env.Environment = process.env.Environment || 'prod';

for (const env of [
'GITSHA',
Expand Down Expand Up @@ -36,7 +36,7 @@ if (!process.argv[2]) {
} else if (process.argv[2] === 'ui') {
await cloudtak_ui();
} else {
await clodutak_task(process.argv[2]);
await cloudtak_task(process.argv[2]);
}
}

Expand Down

0 comments on commit 9dbff56

Please sign in to comment.