This commit is contained in:
2026-06-22 00:08:48 -04:00
parent 3888339089
commit a2d20a3329
4 changed files with 6 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
<script setup lang="ts">
import type {AirTrafficLayer} from '@/services/airtraffic.ts';
import {AirTrafficLayer} from '@/services/airtraffic.ts';
import { onMounted, onUnmounted, ref, watch } from 'vue'
import Map from 'ol/Map'
import View from 'ol/View'

View File

@@ -1,3 +1,4 @@
import {BASE} from '@/services/api.ts';
import Map from 'ol/Map'
import { Feature } from 'ol'
import Point from 'ol/geom/Point'
@@ -7,7 +8,7 @@ import { Style, Icon, Stroke } from 'ol/style'
import { Vector as VectorLayer } from 'ol/layer'
import { Vector as VectorSource } from 'ol/source'
const API = '/api'
const API = BASE + '/api'
const COLORS: Record<string, string> = {
'Cargo': '#00ff00',

View File

@@ -1,4 +1,4 @@
const BASE = import.meta.env.DEV ? 'http://10.69.5.23:3000' : ''
export const BASE = import.meta.env.DEV ? 'http://10.69.5.23:3000' : ''
export type DataRow = Record<string, number | string | null>

View File

@@ -1,5 +1,6 @@
import { cfg } from './config.mjs'
import { writeFile, readFile, existsSync } from 'fs'
import { writeFile, readFile } from 'fs/promises'
import { existsSync } from 'fs'
import { resolve, dirname } from 'path'
import { fileURLToPath } from 'url'