mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 05:18:11 +00:00
Feature: statystyki maszynisty
This commit is contained in:
@@ -41,6 +41,9 @@ export const useStore = defineStore('store', {
|
||||
dispatcherStatsName: '',
|
||||
dispatcherStatsData: undefined,
|
||||
|
||||
driverStatsName: '',
|
||||
driverStatsData: undefined,
|
||||
|
||||
dataStatuses: {
|
||||
connection: DataStatus.Loading,
|
||||
sceneries: DataStatus.Loading,
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { DataStatus } from '@/scripts/enums/DataStatus';
|
||||
import { Response } from '@/scripts/interfaces/api/DispatcherStatsAPIData';
|
||||
import { DispatcherStatsResponse } from '@/scripts/interfaces/api/DispatcherStatsAPIData';
|
||||
import { DriverStatsResponse } from '@/scripts/interfaces/api/DriverStatsAPIData';
|
||||
import StationAPIData from '@/scripts/interfaces/api/StationAPIData';
|
||||
import TrainAPIData from '@/scripts/interfaces/api/TrainAPIData';
|
||||
import Station from '@/scripts/interfaces/Station';
|
||||
@@ -22,8 +23,12 @@ export interface StoreState {
|
||||
stationCount: number;
|
||||
|
||||
webSocket?: Socket;
|
||||
|
||||
dispatcherStatsName: string;
|
||||
dispatcherStatsData?: Response;
|
||||
dispatcherStatsData?: DispatcherStatsResponse;
|
||||
|
||||
driverStatsName: string;
|
||||
driverStatsData?: DriverStatsResponse;
|
||||
|
||||
dataStatuses: {
|
||||
connection: DataStatus;
|
||||
|
||||
Reference in New Issue
Block a user