ADSB fix
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<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 { onMounted, onUnmounted, ref, watch } from 'vue'
|
||||||
import Map from 'ol/Map'
|
import Map from 'ol/Map'
|
||||||
import View from 'ol/View'
|
import View from 'ol/View'
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import {BASE} from '@/services/api.ts';
|
||||||
import Map from 'ol/Map'
|
import Map from 'ol/Map'
|
||||||
import { Feature } from 'ol'
|
import { Feature } from 'ol'
|
||||||
import Point from 'ol/geom/Point'
|
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 VectorLayer } from 'ol/layer'
|
||||||
import { Vector as VectorSource } from 'ol/source'
|
import { Vector as VectorSource } from 'ol/source'
|
||||||
|
|
||||||
const API = '/api'
|
const API = BASE + '/api'
|
||||||
|
|
||||||
const COLORS: Record<string, string> = {
|
const COLORS: Record<string, string> = {
|
||||||
'Cargo': '#00ff00',
|
'Cargo': '#00ff00',
|
||||||
|
|||||||
@@ -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>
|
export type DataRow = Record<string, number | string | null>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { cfg } from './config.mjs'
|
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 { resolve, dirname } from 'path'
|
||||||
import { fileURLToPath } from 'url'
|
import { fileURLToPath } from 'url'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user