chore: removed deprecated types and files

This commit is contained in:
2025-10-06 14:29:06 +02:00
parent 31c241b3b7
commit d762d42344
3 changed files with 2 additions and 388 deletions
+2 -195
View File
@@ -1,10 +1,5 @@
import { defineStore } from 'pinia';
import { IOrderData, IOrderN, IOrderO, IOrderS, TOrder } from '../types/orderTypes';
import {
currentFormattedDate,
currentFormattedHours,
currentFormattedMinutes
} from '../utils/dateUtils';
import { IOrderData } from '../types/orderTypes';
import StorageManager from '../managers/storageManager';
import i18n from '../i18n';
@@ -22,12 +17,10 @@ export const useStore = defineStore('store', {
},
updateCardOpen: false,
helperModalOpen: false,
orderDarkMode: false,
panelMode: 'OrderMessagePanel' as TPanelMode,
chosenOrderType: 'orderN' as TOrder,
chosenLocalOrderId: '',
orderData: {
@@ -344,193 +337,7 @@ export const useStore = defineStore('store', {
}
} as IOrderData,
orderFooter: {
stationName: '',
checkpointName: '',
hour: currentFormattedHours(),
minutes: currentFormattedMinutes(),
dispatcherName: '',
secondaryDispatcherName: ''
},
orderMessage: '',
footerMessage: '',
orderO: {
header: {
orderNo: '1',
trainNo: '',
date: currentFormattedDate()
},
orderList: [
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: ''
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: ''
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: ''
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: ''
},
{
name: '',
from: '',
to: '',
vmax: '',
jo: false,
reason: ''
}
],
other: ''
} as IOrderO,
orderN: {
header: {
orderNo: '1',
trainNo: '',
date: currentFormattedDate()
},
rows: [
{
enabled: false,
from: '',
to: '',
trackNo: '',
trackNo2: ''
},
{
enabled: false,
option1: 'sygnału "Nakaz Jazdy"',
option2: 'lewy',
option3: 'lewy',
signal1: '',
signal2: '',
signal3: '',
signalType: 'wyjazdowego',
checkbox: 'checkbox-2a',
direction1: '',
direction2: '',
trackNoFrom: '',
trackNoTo1: '',
trackNoTo2: ''
},
{
enabled: false,
option1: 'Jazda',
option2: 'pociąg',
direction: '',
toKilometer: '',
trackNo: '',
untilHour: '',
untilMin: ''
},
{
enabled: false,
trackNo: '',
optionStation: 'stację',
stationName: '',
checkbox: 'checkbox-4a',
side: 'lewej'
},
{
enabled: false,
trackNo: '',
direction: '',
stationType: 'stację',
stationName: '',
on: ''
},
{
enabled: false,
content: '',
twoWay: {
enabled: false,
from: '',
to: '',
trackNo: ''
}
}
]
} as IOrderN,
orderS: {
header: {
orderNo: '1',
trainNo: '',
for: 'pociągu',
date: currentFormattedDate()
},
rows: [
{
enabled: false,
option1: 'sygnału "nakaz jazdy"',
optionSignal: 'wyjazdowego',
radio1: 'radio-1a-1',
signal1: '',
trackNo: ''
},
{
enabled: false,
signalType: 'wyjazdowego',
signal1: '',
signal2: '',
signal3: '',
trackNo: ''
},
{
enabled: false,
from: '',
to: '',
trackNo: '',
trainNo: '',
arrivedTo: '',
hour: ''
},
{
enabled: false,
content: '',
w5: {
enabled: false,
maxHour: '',
borderType: 'wskaźnik przetaczania W5',
tmName: '',
maxKm: '',
returnWay: 'sygnał ręczny "Do mnie"',
trackNo: ''
}
}
]
} as IOrderS
orderMessage: ''
};
},
actions: {