Skip to content

Commit bb81c9c

Browse files
committed
Merge branch 'develop' into dev-ks/moderation
# Conflicts: # lang/de.json # lang/en.json
2 parents 041d695 + 9237f80 commit bb81c9c

File tree

23 files changed

+4603
-4183
lines changed

23 files changed

+4603
-4183
lines changed

app/Http/Controllers/API/v1/StationController.php

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function update(Request $request, int $id): StationResource {
9696
'longitude' => ['nullable', 'numeric', 'between:-180,180'],
9797
'time_offset' => ['nullable', 'numeric'],
9898
]);
99-
99+
100100
if (array_key_exists('time_offset', $request->json()->all()) && $request->json('time_offset') === null) {
101101
$validated['time_offset'] = null;
102102
}
@@ -145,4 +145,37 @@ public function index(Request $request): JsonResponse {
145145
return $this->sendResponse($stations);
146146
}
147147

148+
149+
/**
150+
* @OA\Get(
151+
* path="/stations/{id}",
152+
* operationId="showStation",
153+
* tags={"Checkin"},
154+
* summary="Show station",
155+
* description="This request returns a single station object",
156+
* @OA\Parameter(
157+
* name="id",
158+
* in="path",
159+
* description="station id",
160+
* example="1337"
161+
* ),
162+
* @OA\Response(
163+
* response=200,
164+
* description="successful operation",
165+
* @OA\JsonContent(
166+
* @OA\Property(property="data", type="object", ref="#/components/schemas/StationResource")
167+
* )
168+
* ),
169+
* @OA\Response(response=401, description="Unauthorized"),
170+
* @OA\Response(response=503, description="There has been an error with our data provider"),
171+
* security={
172+
* {"passport": {"create-statuses"}}, {"token": {}}
173+
* }
174+
* )
175+
*/
176+
public function show(int $id): JsonResponse {
177+
$station = Station::findOrFail($id);
178+
179+
return $this->sendResponse(new StationResource($station));
180+
}
148181
}

app/Http/Controllers/Backend/Transport/TrainCheckinController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ public static function refreshDistanceAndPoints(Status $status, bool $resetPolyl
275275
$oldDistance = $checkin->distance;
276276

277277
if ($distance === 0 || ($oldDistance !== 0 && $distance / $oldDistance >= 1.15)) {
278-
Log::warning(sprintf(
278+
Log::debug(sprintf(
279279
'Distance deviation for status #%d is greater than 15 percent. Original: %d, new: %d',
280280
$status->id,
281281
$oldDistance,

lang/de.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,13 @@
468468
"transport_types.businessPlural": "Geschäftliche Reisen",
469469
"transport_types.express": "Fernverkehr",
470470
"transport_types.taxi": "Taxi",
471-
"transport_types.national": "Fernverkehr (IC, EC, ...)",
472-
"transport_types.nationalExpress": "Fernverkehr (ICE, ...)",
473-
"transport_types.ferry": "Fähre",
471+
"transport_types.national": "Intercity- und Eurocityzüge",
472+
"transport_types.nationalExpress": "Hochgeschwindigkeitszüge",
473+
"transport_types.regionalExp": "Interregio- und Schnellzüge",
474+
"transport_types.ferry": "Schiffe",
474475
"transport_types.private": "Private Reise",
475476
"transport_types.privatePlural": "Private Reisen",
476-
"transport_types.regional": "Regional",
477-
"transport_types.regionalExp": "Regionalexpress",
477+
"transport_types.regional": "Regionalzug",
478478
"transport_types.suburban": "S-Bahn",
479479
"transport_types.subway": "U-Bahn",
480480
"transport_types.tram": "Tram",
@@ -744,7 +744,8 @@
744744
"missing-journey": "Ist deine Fahrt nicht dabei?",
745745
"create-journey": "Fahrt erstellen",
746746
"trip_creation.no-valid-times": "Die Zeiten der Stationen sind nicht in einer zeitlich korrekten Reihenfolge.",
747-
"trip_creation.title": "Reise manuell erstellen",
747+
"trip_creation.title": "Reise manuell erstellen","trip_creation.form.trip_data": "Fahrtinformationen",
748+
"trip_creation.form.map": "Karte",
748749
"trip_creation.form.origin": "Abfahrtsbahnhof",
749750
"trip_creation.form.destination": "Zielbahnhof",
750751
"trip_creation.form.add_stopover": "Zwischenhalt hinzufügen",

lang/de_by.json

Lines changed: 541 additions & 543 deletions
Large diffs are not rendered by default.

lang/de_he.json

Lines changed: 416 additions & 420 deletions
Large diffs are not rendered by default.

lang/en.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,12 @@
435435
"transport_types.business": "Business trip",
436436
"transport_types.businessPlural": "Business trips",
437437
"transport_types.express": "Express",
438-
"transport_types.national": "Express (IC, EC, ...)",
439-
"transport_types.nationalExpress": "Express (ICE, ...)",
438+
"transport_types.national": "Intercity and Eurocity trains",
439+
"transport_types.nationalExpress": "High speed trains",
440440
"transport_types.ferry": "Ferry",
441441
"transport_types.private": "Private trip",
442442
"transport_types.privatePlural": "Private trips",
443-
"transport_types.regional": "Local",
443+
"transport_types.regional": "Regional",
444444
"transport_types.suburban": "Suburban",
445445
"transport_types.subway": "Subway",
446446
"transport_types.tram": "Tram",
@@ -516,7 +516,7 @@
516516
"menu.show-more": "Show more",
517517
"description.profile": ":username has already traveled :kmAmount kilometers in :hourAmount hours on public transportation.",
518518
"date-format": "YYYY-MM-DD",
519-
"transport_types.regionalExp": "Regional Express",
519+
"transport_types.regionalExp": "Interregio and Express trains",
520520
"go-to-settings": "Go to settings",
521521
"subject": "Subject",
522522
"how-can-we-help": "How can we help?",
@@ -746,6 +746,8 @@
746746
"missing-journey": "Haven't found your journey?",
747747
"create-journey": "Create journey",
748748
"trip_creation.no-valid-times": "The times of the stations are not in the correct chronological order.",
749+
"trip_creation.form.trip_data": "Journey information",
750+
"trip_creation.form.map": "Journey information",
749751
"trip_creation.title": "Create trip manually",
750752
"trip_creation.form.origin": "Departure station",
751753
"trip_creation.form.destination": "Destination station",

0 commit comments

Comments
 (0)