mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
rozszerzony wybór regionów przez URL; poprawki headerów
This commit is contained in:
+5
-5
@@ -185,7 +185,8 @@ export const useStore = defineStore('store', {
|
||||
scheduledTrainCount: {
|
||||
all: uniqueScheduledTrains.length,
|
||||
confirmed: uniqueScheduledTrains.filter((train) => train.stopInfo.confirmed).length,
|
||||
unconfirmed: uniqueScheduledTrains.filter((train) => !train.stopInfo.confirmed).length
|
||||
unconfirmed: uniqueScheduledTrains.filter((train) => !train.stopInfo.confirmed)
|
||||
.length
|
||||
}
|
||||
});
|
||||
|
||||
@@ -271,12 +272,11 @@ export const useStore = defineStore('store', {
|
||||
const socket = io(URLs.stacjownikAPI, {
|
||||
transports: ['websocket', 'polling'],
|
||||
rememberUpgrade: true,
|
||||
reconnection: true,
|
||||
extraHeaders: {
|
||||
version: packageInfo.version
|
||||
}
|
||||
reconnection: true
|
||||
});
|
||||
|
||||
socket.emit('CONNECTION', { version: packageInfo.version });
|
||||
|
||||
socket.on('connect_error', () => {
|
||||
this.dataStatuses.connection = DataStatus.Error;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user