diff --git a/src/data/stationDataBackup.json b/src/data/stationDataBackup.json deleted file mode 100644 index 0a46dee..0000000 --- a/src/data/stationDataBackup.json +++ /dev/null @@ -1,2252 +0,0 @@ -[ - [ - "Kszęty", - "https://td2.info.pl/scenerie/kszety-7118/", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 0, - 0, - 2, - 0, - null, - ["Kszęty Podlesie"], - false, - false, - false - ], - [ - "Żerniki", - "https://td2.info.pl/scenerie/zerniki/", - "", - null, - "3", - "NIE", - "współczesna", - "SCS", - "Ol", - "TAK", - 0, - 0, - 3, - 0, - null, - ["Ligota Żernicka"], - false, - false, - false - ], - [ - "Ligota Grabowska", - "https://td2.info.pl/scenerie/ligota-grabowska-projekt-1001/", - "", - "Projekt 1001", - "0", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 1, - 0, - 1, - 0, - ["Ligota Grabowska", "Ligota Trzeszcze"], - ["Ligota Stadion", "Czystobór"], - false, - false, - true - ], - [ - "Blaszki", - "https://td2.info.pl/scenerie/blaszki/", - "", - null, - "10", - "NIE", - "współczesna", - "SPK", - "", - "", - 1, - 1, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "LCS Borowe", - "https://td2.info.pl/scenerie/lcs-borowe/", - "", - null, - "10", - "NIE", - "współczesna", - "SCS", - "Br-Np", - "TAK", - 1, - 0, - 3, - 0, - ["Borowe, podg.", "Wysoka, podg.", "Naprawa, podg.", "Borowe Towarowe"], - ["Borowe, podg.", "Wysoka, podg.", "Naprawa, podg.", "Borowe Towarowe"], - false, - false, - false - ], - [ - "LCS Gdańsk", - "https://td2.info.pl/scenerie/lcs-gdansk/", - "9, 202, 227, 249, 250", - null, - "10", - "NIE", - "współczesna", - "SCS", - "Wr, Wr-SKM, PrG", - "TAK", - 3, - 0, - 3, - 0, - ["Gdańsk Główny", "SKM Śródmieście", "Gdańsk Południowy"], - ["Gdańsk Główny"], - true, - false, - false - ], - [ - "Lębork", - "https://td2.info.pl/scenerie/lebork-5834/", - "202, 229, 237", - null, - "8", - "NIE", - "współczesna", - "mechaniczne+SCS", - "", - "", - 2, - 2, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Grabów Miasto", - "https://td2.info.pl/scenerie/grabow-miasto-v2/", - "", - null, - "6", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 2, - 1, - 1, - 0, - ["Grabów Miasto", "Grabów Wieś"], - null, - true, - false, - false - ], - [ - "Parzęczewo", - "https://td2.info.pl/scenerie/parzeczewo/", - "", - null, - "6", - "NIE", - "mieszana", - "SCS", - "ZWk, SBk", - "TAK", - 1, - 0, - 2, - 0, - ["Parzęczewo", "Parzęczewo Miasto", "Parzęczewo gt"], - null, - true, - false, - false - ], - [ - "Aleksandrów Kujawski", - "https://td2.info.pl/scenerie/aleksandrow-kujawski/", - "18, 245", - null, - "4", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK", - 1, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Arkadia Zdrój 2012", - "https://td2.info.pl/scenerie/arkadia-zdroj/", - "", - null, - "4", - "NIE", - "mieszana", - "mechaniczne+SPK", - "", - "", - 1, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Buk 2018", - "https://td2.info.pl/scenerie/buk2/", - "", - null, - "4", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK", - 2, - 0, - 1, - 0, - null, - null, - true, - false, - false - ], - [ - "Jordanowo", - "https://td2.info.pl/scenerie/jordanowo/", - "", - null, - "4", - "NIE", - "mieszana", - "mechaniczne", - "", - "", - 3, - 2, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "LCS Głowno", - "https://td2.info.pl/scenerie/glowno-(linia-nr-15-lka)/", - "15", - "ŁKA", - "4", - "NIE", - "współczesna", - "SCS", - "", - "", - 2, - 0, - 0, - 0, - ["Głowno", "Domaniewice"], - ["Głowno"], - true, - false, - false - ], - [ - "LCS Ozorków", - "https://td2.info.pl/scenerie/lcs-ozorkow/", - "16", - "ŁKA", - "4", - "NIE", - "współczesna", - "SCS", - "", - "", - 2, - 0, - 0, - 0, - ["Ozorków", "Chociszew"], - ["Ozorków"], - true, - false, - false - ], - [ - "LCS Skrzynki", - "https://td2.info.pl/scenerie/lcs-skrzynki/", - "25", - "ŁKA", - "4", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK", - 0, - 0, - 2, - 0, - ["Skrzynki", "Wykno"], - ["Skrzynki", "Wykno"], - true, - false, - false - ], - [ - "Łask", - "https://td2.info.pl/scenerie/lask-w-ramach-lka/", - "14", - "ŁKA", - "4", - "NIE", - "współczesna", - "mechaniczne+SCS", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Naterki", - "https://td2.info.pl/scenerie/naterki/", - "353", - null, - "4", - "NIE", - "kształtowa", - "mechaniczne+SCS", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Santok Zdrój", - "https://td2.info.pl/scenerie/santok-zdroj/", - "", - null, - "4", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Testowo", - "https://td2.info.pl/scenerie/testowo-3581", - "", - null, - "4", - "NIE", - "współczesna", - "SPK", - "Sl", - "TAK", - 1, - 1, - 1, - 0, - null, - null, - true, - false, - false - ], - [ - "Tłoki", - "https://td2.info.pl/scenerie/podg-tloki", - "", - null, - "4", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK", - 1, - 0, - 2, - 0, - null, - ["Tłoki, podg."], - true, - false, - false - ], - [ - "Witaszyczki", - "https://td2.info.pl/scenerie/witaszyczki/", - "", - null, - "4", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Bydgowo", - "https://td2.info.pl/scenerie/bydgowo/", - "", - null, - "2", - "NIE", - "współczesna", - "SPK", - "SK", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Głębce", - "https://td2.info.pl/scenerie/glebce", - "", - null, - "2", - "NIE", - "współczesna", - "ręczne+SPK", - "", - "", - 1, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - ["Hel", "https://td2.info.pl/scenerie/hel/", "213", null, "2", "NIE", "współczesna", "SPK", "", "", 0, 1, 0, 0, null, null, true, false, false], - [ - "Kcynia", - "https://td2.info.pl/scenerie/kcynia", - "281, 356", - null, - "2", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 4, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Lewków", - "https://td2.info.pl/scenerie/lewkow/", - "", - null, - "2", - "NIE", - "mieszana", - "mechaniczne+SCS", - "", - "TAK (szlak Ks)", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Cis 2013", - "https://td2.info.pl/scenerie/cis2", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Cis 2018", - "https://td2.info.pl/scenerie/cis2", - "", - null, - "0", - "NIE", - "współczesna", - "SCS-SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Glinnik", - "https://td2.info.pl/scenerie/glinnik-(projekt-lka)/", - "15", - "ŁKA", - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - ["Głogowo", "https://td2.info.pl/scenerie/glogowo", "", null, "0", "NIE", "współczesna", "SCS", "", "", 0, 2, 0, 0, null, null, true, false, false], - [ - "Karszynek", - "https://td2.info.pl/scenerie/karszynek/", - "", - null, - "0", - "NIE", - "historyczna", - "mechaniczne", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Imielin 2015", - "https://td2.info.pl/scenerie/imielin-2015", - "138", - null, - "0", - "NIE", - "współczesna", - "mechaniczne+SCS", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Kolsko", - "https://td2.info.pl/scenerie/kolsko/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 3, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "LCS Bucz Wileński", - "https://td2.info.pl/scenerie/bucz-wilenski/", - "", - null, - "0", - "NIE", - "współczesna", - "SCS", - "WW", - "TAK", - 0, - 0, - 1, - 0, - null, - ["Bucz Wileński"], - true, - false, - false - ], - [ - "Lisiczki", - "https://td2.info.pl/scenerie/lisiczki", - "", - null, - "6", - "NIE", - "współczesna", - "SCS-SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Łęczyca", - "https://td2.info.pl/scenerie/leczyca-projekt-lka/", - "16", - "ŁKA", - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Poreńsk", - "https://td2.info.pl/scenerie/porensk/", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Radowice", - "https://td2.info.pl/scenerie/radowice", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Witonia", - "https://td2.info.pl/scenerie/witonia-(projekt-lka)/", - "16", - "ŁKA", - "0", - "NIE", - "współczesna", - "SCS", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Wola", - "https://td2.info.pl/scenerie/wola/", - "", - null, - "0", - "NIE", - "mieszana", - "mechaniczne+SCS", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Zgierz Kontrewers", - "https://td2.info.pl/scenerie/zgierz-kontrewers-6172/", - "16", - "ŁKA", - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Bargowice", - "https://td2.info.pl/scenerie/bargowice-4441/", - "", - null, - "10", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK", - 1, - 0, - 2, - 0, - ["Bargowice", "Bargowice Zachód"], - null, - false, - false, - false - ], - [ - "Szklana Poręba", - "https://td2.info.pl/scenerie/szklana-poreba-gorna/", - "", - null, - "8", - "TAK", - "współczesna", - "mechaniczne", - "", - "", - 1, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Wschodna", - "https://td2.info.pl/scenerie/wschodna/", - "", - null, - "8", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 1, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Zabłocie", - "https://td2.info.pl/scenerie/zablocie-3896", - "", - null, - "8", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 2, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Zdroje", - "https://td2.info.pl/scenerie/zdroje", - "", - null, - "8", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Grzybowo", - "https://td2.info.pl/scenerie/grzybowo", - "", - null, - "6", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Zwardoń", - "https://td2.info.pl/scenerie/zwardon-4161", - "139", - null, - "6", - "TAK", - "współczesna", - "SCS", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Piaskowo", - "https://td2.info.pl/scenerie/piaskowo/", - "", - null, - "4", - "NIE", - "współczesna", - "SCS", - "OkL, CzP", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Rajcza", - "https://td2.info.pl/scenerie/rajcza/", - "139", - null, - "4", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Brzezinka", - "https://td2.info.pl/scenerie/brzezinka/", - "", - null, - "3", - "NIE", - "współczesna", - "SCS-SPK", - "", - "TAK (szlak KSG)", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Torzyn", - "https://td2.info.pl/scenerie/torzyn/", - "", - null, - "3", - "NIE", - "współczesna", - "SCS", - "TAK", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Wola Nowska", - "https://td2.info.pl/scenerie/wola-nowska//", - "", - null, - "3", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 1, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Chełmik Wołowski", - "https://td2.info.pl/scenerie/chelmik-wolowski//", - "", - null, - "2", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 1, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Drzewko", - "https://td2.info.pl/w-trakcie-prac/drzewko/", - "", - null, - "2", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Krzemienice", - "https://td2.info.pl/scenerie/krzemienice/", - "", - null, - "2", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 3, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Milówka", - "https://td2.info.pl/scenerie/milowka/", - "139", - null, - "2", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Orniki", - "https://td2.info.pl/scenerie/orniki/", - "", - null, - "2", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 1, - 1, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Otwocko", - "https://td2.info.pl/scenerie/otwocko/", - "", - null, - "2", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Skostomłoty", - "https://td2.info.pl/w-trakcie-prac/skostomloty/", - "", - null, - "2", - "NIE", - "współczesna", - "mechaniczne", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Babimost", - "https://td2.info.pl/scenerie/babimost", - "358", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Czerepy", - "https://td2.info.pl/scenerie/czerepy/", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "BO", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Grabiny", - "https://td2.info.pl/scenerie/grabiny", - "", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Kieły", - "https://td2.info.pl/scenerie/kiely-6224/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Lutol Suchy", - "https://td2.info.pl/scenerie/lutol-suchy/", - "367", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Raki", - "https://td2.info.pl/scenerie/raki/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Sieniawka", - "https://td2.info.pl/scenerie/sieniawka/", - "", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 1, - null, - null, - false, - false, - false - ], - [ - "Stefanowo", - "https://td2.info.pl/scenerie/stefanowo/", - "359", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Szlichtyngowa", - "https://td2.info.pl/scenerie/szlichtyngowa//", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Tarnowo Górne", - "https://td2.info.pl/scenerie/tarnowo-gorne/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Tartakowo 2013", - "https://td2.info.pl/w-trakcie-prac/tartakowo/", - "", - null, - "0", - "NIE", - "mieszana", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Wielgowo", - "https://td2.info.pl/scenerie/wielgowo/", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Sulechów", - "https://td2.info.pl/scenerie/sulechow/", - "358", - null, - "0", - "NIE", - "mieszana", - "SPK", - "", - "", - 2, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Wilczyca", - "https://td2.info.pl/scenerie/wilczyca/", - "", - null, - "0", - "NIE", - "współczesna", - "SCS", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Sowi Bór", - "https://td2.info.pl/scenerie/sowi-bor/", - "", - null, - "3", - "NIE", - "współczesna", - "SPK", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - ["Sól", "https://td2.info.pl/scenerie/sol/", "139", null, "2", "NIE", "współczesna", "SPK", "", "", 2, 0, 0, 0, null, null, false, false, false], - [ - "Hetmanice", - "https://td2.info.pl/scenerie/hetmanice-stacja-dla-poczatkujacych/", - "", - null, - "0", - "NIE", - "współczesna", - "SCS-SPK", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Starzynki", - "https://td2.info.pl/w-trakcie-prac/starzynki/", - "", - null, - "3", - "NIE", - "współczesna", - "SPK", - "Ps", - "TAK", - 2, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Głęboszów", - "https://td2.info.pl/scenerie/gleboszow/", - "", - null, - "3", - "NIE", - "współczesna", - "SCS", - "Br, GO", - "TAK", - 1, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Skawce", - "https://td2.info.pl/scenerie/skawce-(projekt-zakopianka)/", - "97", - null, - "4", - "NIE", - "współczesna", - "SPK", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Sroka", - "https://td2.info.pl/scenerie/sroka-projekt-1001/", - "", - null, - "7", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 1, - 0, - 3, - 0, - ["Sroka, podg.", "Sroka Południe, podg."], - ["Sroka, podg.", "Sroka Południe, podg."], - false, - false, - false - ], - [ - "Luzino", - "https://td2.info.pl/scenerie/luzino-6501/", - "202", - null, - "3", - "NIE", - "współczesna", - "mechaniczne", - "", - "TAK", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Zajączkowo", - "https://td2.info.pl/scenerie/zajaczkowo/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 2, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Kudowa-Zdrój", - "https://td2.info.pl/scenerie/kudowa-zdroj-6616/", - "309", - null, - "4", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Ciechany", - "https://td2.info.pl/w-trakcie-prac/ciechany/", - "", - null, - "3", - "NIE", - "współczesna", - "SCS", - "", - "", - 1, - 0, - 0, - 0, - null, - ["Pawonki"], - false, - false, - false - ], - [ - "Czermin", - "https://td2.info.pl/scenerie/czermin/", - "", - null, - "8", - "NIE", - "współczesna", - "SCS", - "Łk, Fw", - "", - 2, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Rebrowo Dolne", - "https://td2.info.pl/scenerie/rebrowo-dolne/", - "", - null, - "2", - "NIE", - "współczesna", - "SPK", - "", - "", - 3, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Lublinek", - "https://td2.info.pl/scenerie/lublinek-projekt-lka/", - "14", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - true, - false, - false - ], - [ - "Stryków", - "https://td2.info.pl/scenerie/strykow-projekt-lka/", - "14", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 2, - 0, - 0, - 0, - null, - null, - true, - false, - false - ], - [ - "Strączki", - "https://td2.info.pl/scenerie/straczki/", - "", - null, - "4", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 1, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Niedoradz", - "https://td2.info.pl/scenerie/niedoradz", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Zgierz", - "https://td2.info.pl/scenerie/zgierz/", - "15,16", - null, - "12", - "TAK", - "współczesna", - "mechaniczne", - "", - "", - 3, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Łebnino", - "https://td2.info.pl/scenerie/lebnino-4511/", - "", - null, - "0", - "NIE", - "kształtowa", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Legno", - "https://td2.info.pl/scenerie/legno/", - "", - null, - "0", - "NIE", - "współczesna", - "SCS", - "Mr", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Buczek", - "https://td2.info.pl/scenerie/buczek/", - "", - null, - "0", - "NIE", - "współczesna", - "SCS", - "Pa, Op", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Dziewoszyce", - "https://td2.info.pl/scenerie/dziewoszyce/", - "", - null, - "4", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Razemsko 2012", - "https://td2.info.pl/scenerie/razemsko-2012/", - "", - null, - "4", - "NIE", - "mieszana", - "mechaniczne", - "", - "", - 0, - 1, - 0, - 1, - null, - null, - false, - false, - false - ], - [ - "Buskowo Zdrój", - "https://td2.info.pl/scenerie/buskowo-zdroj/", - "", - null, - "4", - "NIE", - "mieszana", - "mechaniczne", - "", - "", - 1, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Bełchów", - "https://td2.info.pl/scenerie/belchow-projekt-lka/", - "11", - "ŁKA", - "2", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Modlinków", - "https://td2.info.pl/scenerie/podg-modlinkow/", - "", - null, - "6", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 3, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Arkadia Zdrój 2019", - "https://td2.info.pl/scenerie/arkadia-zdroj-2016/", - "", - null, - "", - "NIE", - "współczesna", - "SCS", - "TAK (szlak wewn.)", - "TAK", - 1, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Łaskarzew", - "https://td2.info.pl/scenerie/laskarzew-6516/", - "7", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ], - [ - "Wielicz Park", - "https://td2.info.pl/scenerie/wielicz-park/", - "", - null, - "2", - "NIE", - "współczesna", - "SCS", - "", - "", - 1, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Mołża", - "https://td2.info.pl/scenerie/wielicz-park/", - "", - null, - "4", - "NIE", - "współczesna", - "mechaniczne", - "", - "", - 1, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Stare Lipowo", - "https://td2.info.pl/scenerie/stare-lipowo/", - "", - null, - "12", - "NIE", - "współczesna", - "SCS", - "Dw, Pk, Pr-SL", - "TAK", - 0, - 0, - 4, - 0, - ["Stare Lipowo", "Przęsy"], - null, - false, - false, - false - ], - [ - "Okoń Główny", - "https://td2.info.pl/scenerie/okon-glowny/8", - "", - null, - "8", - "NIE", - "współczesna", - "SCS", - "", - "TAK", - 0, - 1, - 0, - 3, - null, - null, - false, - false, - false - ], - [ - "Nysowiec", - "https://td2.info.pl/scenerie/nysowiec/", - "", - null, - "0", - "NIE", - "współczesna", - "SPK", - "", - "TAK", - 1, - 0, - 1, - 0, - null, - null, - false, - false, - false - ], - [ - "Kochanowiec", - "https://td2.info.pl/scenerie/kochanowiec-6935/", - "", - null, - "0", - "NIE", - "współczesna", - "mechaniczne", - "", - "TAK", - 2, - 0, - 0, - 0, - null, - null, - false, - false, - false - ], - [ - "Wijewo", - "https://td2.info.pl/dzial-trenerski/wijewo-stacja-dla-poczatkujacych/", - "", - null, - "0", - "NIE", - "mieszana", - "mechaniczne", - "", - "", - 0, - 0, - 2, - 0, - null, - null, - false, - false, - false - ] -] diff --git a/src/scripts/interfaces/ISceneryInfoData.ts b/src/scripts/interfaces/Scenery.ts similarity index 87% rename from src/scripts/interfaces/ISceneryInfoData.ts rename to src/scripts/interfaces/Scenery.ts index 12fc7c9..3ab9987 100644 --- a/src/scripts/interfaces/ISceneryInfoData.ts +++ b/src/scripts/interfaces/Scenery.ts @@ -1,33 +1,33 @@ -interface ISceneryInfoData { - stationName: string; - stationURL: string; - stationLines: string; - stationProject: string; - - reqLevel: string; - supportersOnly: string; - signalType: string; - controlType: string; - SBL: string; - twoWayBlock: string; - - routesOneWayCatenary: number; - routesOneWayOther: number; - routesTwoWayCatenary: number; - routesToWayOther: number; - - default: boolean; - nonPublic: boolean; - unavailable: boolean; - hasData: boolean; - - stops: string[]; - checkpoints: string[]; - - currentDispatcher: string; - currentDispatcherId: number; - currentDispatcherFrom: number; - dispatcherHistory: { dispatcherName: string; dispatcherId: number; dispatcherFrom: number; dispatcherTo: number }[]; -} - -export default ISceneryInfoData; +interface Scenery { + stationName: string; + stationURL: string; + stationLines: string; + stationProject: string; + + reqLevel: string; + supportersOnly: string; + signalType: string; + controlType: string; + SBL: string; + twoWayBlock: string; + + routesOneWayCatenary: number; + routesOneWayOther: number; + routesTwoWayCatenary: number; + routesToWayOther: number; + + default: boolean; + nonPublic: boolean; + unavailable: boolean; + hasData: boolean; + + stops: string[]; + checkpoints: string[]; + + currentDispatcher: string; + currentDispatcherId: number; + currentDispatcherFrom: number; + dispatcherHistory: { dispatcherName: string; dispatcherId: number; dispatcherFrom: number; dispatcherTo: number }[]; +} + +export default Scenery; diff --git a/src/scripts/interfaces/Station.ts b/src/scripts/interfaces/Station.ts index f654139..b4e0801 100644 --- a/src/scripts/interfaces/Station.ts +++ b/src/scripts/interfaces/Station.ts @@ -47,7 +47,6 @@ export default interface Station { stops: string[] | null; online: boolean; - // occupiedTo: string; statusTimestamp: number; statusTimeString: string; statusID: string; @@ -56,5 +55,6 @@ export default interface Station { driverName: number; trainNo: number; }[]; + scheduledTrains: ScheduledTrain[]; } diff --git a/src/views/HistoryView.vue b/src/views/HistoryView.vue index 9f7fc6d..1e59572 100644 --- a/src/views/HistoryView.vue +++ b/src/views/HistoryView.vue @@ -86,15 +86,16 @@ import { Component, Vue, Watch } from "vue-property-decorator"; import { Getter } from "vuex-class"; import Station from "@/scripts/interfaces/Station"; -import ISceneryInfoData from "@/scripts/interfaces/ISceneryInfoData"; +import Scenery from "@/scripts/interfaces/Scenery"; + import SelectBox from "@/components/Global/SelectBox.vue"; @Component({ components: { SelectBox } }) export default class HistoryView extends Vue { @Getter("getStationList") stationList!: Station[]; - sceneryHistoryList: ISceneryInfoData[] = []; - currentSceneryHistory: ISceneryInfoData["dispatcherHistory"] = []; + sceneryHistoryList: Scenery[] = []; + currentSceneryHistory: Scenery["dispatcherHistory"] = []; currentDispatcher: string = ""; currentDispatcherId: number = 0; @@ -107,7 +108,7 @@ export default class HistoryView extends Vue { async mounted() { try { - const responseData: ISceneryInfoData[] = await ( + const responseData: Scenery[] = await ( await axios.get( "https://stacjownik.herokuapp.com/api/getSceneryInfo?items=-1" ) @@ -138,9 +139,10 @@ export default class HistoryView extends Vue { dispatcherFromDate: new Date(dispatcherFrom).toLocaleDateString( "pl-PL" ), - dispatcherFromTime: new Date( - dispatcherFrom - ).toLocaleTimeString("pl-PL", { hour: "2-digit", minute: "2-digit" }), + dispatcherFromTime: new Date(dispatcherFrom).toLocaleTimeString( + "pl-PL", + { hour: "2-digit", minute: "2-digit" } + ), dispatcherToDate: new Date(dispatcherTo).toLocaleDateString("pl-PL"), dispatcherToTime: new Date(dispatcherTo).toLocaleTimeString("pl-PL", { hour: "2-digit", @@ -155,7 +157,7 @@ export default class HistoryView extends Vue { try { this.historyLoading = true; - const selectedScenery: ISceneryInfoData = await ( + const selectedScenery: Scenery = await ( await axios.get( `https://stacjownik.herokuapp.com/api/getSceneryInfo?name=${itemName}&items=10` )