Skip to content

Commit

Permalink
VG Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
daniluk4000 committed Jan 27, 2025
1 parent 2dd543b commit 828065d
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# [1.0.1-1-final]
- New icons from DotWallop (BE9L, C402, RV10, EVOT, PA34, PA44)
- Added model matching (BE9T, EVOP, P8)
- Improved VATGlasses stability for incorrect HEX colors

# [1.0.1-final]

Expand Down
7 changes: 7 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ export default defineNuxtConfig({
'ol',
],
},
$development: {
vite: {
ssr: {
noExternal: ['chardet'],
},
},
},
srcDir: 'src/',
devtools: {
enabled: false,
Expand Down
15 changes: 11 additions & 4 deletions src/components/map/sectors/MapSectorsList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,21 @@ watch(map, val => {
});
const vatglassesStyle = (color: string, altMax: number = 1): Style => {
// console.log('color',color)
return new Style({
let rgba: string;
try {
rgba = hexToRgb(color);
}
catch {
rgba = firColorRaw || getCurrentThemeRgbColor('success500').join(',');
}
return new Style({
fill: new Fill({
color: `rgb(${ hexToRgb(color) }, 0.2)`,
color: `rgba(${ rgba }, 0.2)`,
}),
stroke: new Stroke({
color: `rgb(${ hexToRgb(color) }, 0.6)`,
color: `rgba(${ rgba }, 0.6)`,
width: 1,
}),
zIndex: altMax,
Expand Down
2 changes: 1 addition & 1 deletion src/utils/backend/worker/data-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ defineCronJob('* * * * * *', async () => {
});

/* radarStorage.vatsim.data.controllers.push({
callsign: 'ENKB_APP',
callsign: 'LEMD_EN_APP',
cid: 4,
facility: (await import('~/utils/data/vatsim')).useFacilitiesIds().APP,
frequency: '122.122',
Expand Down

0 comments on commit 828065d

Please sign in to comment.