diff --git a/src/components/JournalView/JournalDispatchers.vue b/src/components/JournalView/JournalDispatchers.vue index 8f14d30..96464e8 100644 --- a/src/components/JournalView/JournalDispatchers.vue +++ b/src/components/JournalView/JournalDispatchers.vue @@ -1,75 +1,39 @@ + + diff --git a/src/components/JournalView/JournalTimetables.vue b/src/components/JournalView/JournalTimetables.vue index 4dd27b6..d8c498b 100644 --- a/src/components/JournalView/JournalTimetables.vue +++ b/src/components/JournalView/JournalTimetables.vue @@ -1,163 +1,44 @@ + + \ No newline at end of file diff --git a/src/locales/en.json b/src/locales/en.json index 67f16bc..39b35f9 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -244,7 +244,9 @@ "stock-info": "STOCK INFO", "stock-length": "Length", "stock-mass": "Mass", - "stock-max-speed": "Maximum registered speed" + "stock-max-speed": "Maximum registered speed", + + "load-data": "Load further data..." }, "scenery": { "users": "PLAYERS ONLINE", diff --git a/src/locales/pl.json b/src/locales/pl.json index e679e78..c3343dc 100644 --- a/src/locales/pl.json +++ b/src/locales/pl.json @@ -246,7 +246,9 @@ "stock-info": "INFORMACJE O SKŁADZIE", "stock-length": "Długość", "stock-mass": "Masa", - "stock-max-speed": "Maks. zarejestrowana prędkość" + "stock-max-speed": "Maks. zarejestrowana prędkość", + + "load-data": "Pobierz dalszą historię..." }, "scenery": { "users": "GRACZE ONLINE", diff --git a/src/scripts/enums/DataStatus.ts b/src/scripts/enums/DataStatus.ts index 0b37532..0eabbc2 100644 --- a/src/scripts/enums/DataStatus.ts +++ b/src/scripts/enums/DataStatus.ts @@ -1,4 +1,4 @@ -export const enum DataStatus { +export enum DataStatus { Initialized = -1, Loading = 0, Error = 1, diff --git a/src/scripts/interfaces/api/DispatchersAPIData.ts b/src/scripts/interfaces/api/DispatchersAPIData.ts index dba7ece..9a343ec 100644 --- a/src/scripts/interfaces/api/DispatchersAPIData.ts +++ b/src/scripts/interfaces/api/DispatchersAPIData.ts @@ -1,12 +1,14 @@ -export interface DispatcherHistory { - currentDuration: number; - dispatcherId: number; - dispatcherName: string; - isOnline: boolean; - lastOnlineTimestamp: number; - region: string; - stationHash: string; - stationName: string; - timestampFrom: number; - timestampTo?: number; +export interface DispatcherHistory { + id: string; + + currentDuration: number; + dispatcherId: number; + dispatcherName: string; + isOnline: boolean; + lastOnlineTimestamp: number; + region: string; + stationHash: string; + stationName: string; + timestampFrom: number; + timestampTo?: number; } \ No newline at end of file diff --git a/src/styles/JournalSection.scss b/src/styles/JournalSection.scss index 8dce167..e34bd09 100644 --- a/src/styles/JournalSection.scss +++ b/src/styles/JournalSection.scss @@ -18,10 +18,10 @@ //Styles -.journal-wrapper { +.journal_wrapper { max-width: 1350px; width: 100%; - + padding: 1em 0; } @@ -51,8 +51,12 @@ align-items: center; } -button.btn { - padding: 0.5em 0.7em; +.btn--load-data { + padding: 0.5em 1em; + display: flex; + margin: 0 auto; + + font-size: 1.2em; } @include smallScreen() { diff --git a/src/types/JournalDispatcherTypes.ts b/src/types/JournalDispatcherTypes.ts new file mode 100644 index 0000000..abfd4a3 --- /dev/null +++ b/src/types/JournalDispatcherTypes.ts @@ -0,0 +1,3 @@ +export type JournalDispatcherSearcher = { + [key in 'search-dispatcher' | 'search-station']: string; +};