-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Conflicts: # webclient/src/core.js # webclient/src/views/view/view-view.js
- Loading branch information
Showing
42 changed files
with
545 additions
and
283 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -127,7 +127,7 @@ jobs: | |
ports: | ||
- 7700 | ||
steps: | ||
- uses: actions/checkout@v3.0.0 | ||
- uses: actions/checkout@v3.5.2 | ||
- uses: ATiltedTree/[email protected] | ||
with: | ||
rust-version: 1.67 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from utils import TranslatableStr as _ | ||
from processors import merge | ||
|
||
|
||
def merge_poi(data): | ||
"""Merge POIs from `sources/21_pois.yaml` into the data""" | ||
poi_data = merge.load_yaml("sources/21_pois.yaml") | ||
|
||
for _id, poi in poi_data.items(): | ||
if _id in data: | ||
raise ValueError(f"The id '{_id}' is already used, cannot use it for a new POI") | ||
|
||
if poi["parent"] not in data: | ||
raise ValueError(f"Parent '{poi['parent']}' of POI '{_id}' not found") | ||
|
||
poi["type"] = "poi" | ||
|
||
# make sure that name and usage is internationalized | ||
poi["usage"]["name"] = _(poi["usage"]["name"]) | ||
poi["name"] = _(poi["name"]) | ||
links = poi.get("description", {}).get("links", []) | ||
for link in links: | ||
link["text"] = _(link["text"]) | ||
|
||
parent_id = poi.pop("parent") | ||
parent = data[parent_id] | ||
poi["parents"] = parent["parents"] + [parent["id"]] | ||
|
||
poi.setdefault("sources", {"base": [{"name": "NavigaTUM"}]}) | ||
|
||
return merge.recursively_merge(data, poi_data) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,159 @@ | ||
parabelrutsche: | ||
parent: "mi" | ||
name: "Parabelrutsche" | ||
|
||
usage: | ||
name: "Gravitatives Transportmittel" | ||
|
||
props: | ||
generic: | ||
- name: | ||
de: "Formel" | ||
en: "Formula" | ||
text: "z = y = hx²/d²" | ||
|
||
# === Validierungsautomaten === | ||
validierungsautomat-1: | ||
parent: "5101" | ||
name: "Validierungsautomat 1 (Physik)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-2: | ||
parent: "5501" | ||
name: "Validierungsautomat 2 (MW)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-3: | ||
parent: "4101" | ||
name: "Validierungsautomat 3 (School of Life Sciences Poststelle)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
comment: | ||
de: Der Validierungsautomat befindet sich im Treppenhaus | ||
en: The validation machine is located in the staircase | ||
|
||
validierungsautomat-4: | ||
parent: "0501" | ||
name: "Validierungsautomat 4 (Zentralgelände)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-5: | ||
parent: "5606" | ||
name: "Validierungsautomat 5 (MI)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-6: | ||
parent: "2330.01.207" | ||
name: "Validierungsautomat 6 (Olympiapark)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-7: | ||
parent: "5606" | ||
name: "Validierungsautomat 7 (MI)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-8: | ||
parent: "5501" | ||
name: "Validierungsautomat 8 (MW)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-9: | ||
parent: "0501" | ||
name: "Validierungsautomat 9 (Zentralgelände)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-10: | ||
parent: "4220" | ||
name: "Validierungsautomat 10 (School of Life Sciences Bibliothek)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
comment: | ||
de: Der Validierungsautomat befindet sich im Eingangsbereich | ||
en: The validation machine is located in the entrance area | ||
|
||
validierungsautomat-11: | ||
parent: "5401" | ||
name: "Validierungsautomat 11 (Chemie)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-12: | ||
parent: "1902" | ||
name: "Validierungsautomat 12 (Heilbronn)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
comment: | ||
de: Direkt neben Raum L.1.30 (1902.01.130) | ||
en: Directly next to room L.1.30 (1902.01.130) | ||
|
||
validierungsautomat-14: | ||
parent: "1551" | ||
name: "Validierungsautomat 14 (Klinikum rechts der Isar)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-16: | ||
parent: "5901" | ||
name: "Validierungsautomat 14 (Elektrotechnik)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-21: | ||
parent: "0201" | ||
name: "Validierungsautomat 21 (StudiTUM Innenstadt)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-sot: | ||
parent: "2907.01.130" | ||
name: "Validierungsautomat (School of Social Sciences and Technology)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } | ||
|
||
validierungsautomat-straubing: | ||
parent: "2927.EG.002" | ||
name: "Validierungsautomat (Straubing)" | ||
usage: { name: "Validierungsautomat" } | ||
props: | ||
links: | ||
- { text: "Status", url: "https://campus.tum.de/valistatus/" } |
Oops, something went wrong.