From a0ab72e597f6a14cfc0bd8935e1ef765b86b90f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jovan=20Kruni=C4=87?= Date: Mon, 18 Feb 2019 13:14:42 +0100 Subject: [PATCH] feat: add laboratory and computer as room categories Closes #33 --- src/core/things/Room.ts | 12 ++++++++---- test/resources/Room.4.json | 1 + 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/core/things/Room.ts b/src/core/things/Room.ts index 498ca740..6f521070 100644 --- a/src/core/things/Room.ts +++ b/src/core/things/Room.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2018 StApps + * Copyright (C) 2018, 2019 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. @@ -29,15 +29,17 @@ import {SCMap} from '../types/Map'; */ export type SCRoomCategories = 'cafe' + | 'canteen' + | 'computer' | 'education' + | 'laboratory' | 'learn' | 'library' + | 'lounge' | 'office' | 'restaurant' - | 'canteen' - | 'student canteen' | 'restroom' - | 'lounge' + | 'student canteen' | 'student union'; /** @@ -108,7 +110,9 @@ export class SCRoomMeta extends SCThingMeta { categories: { 'cafe': 'Café', 'canteen': 'Kantine', + 'computer': 'PC-Pool', 'education': 'Bildung', + 'laboratory': 'Labor', 'learn': 'Lernen', 'library': 'Bibliothek', 'lounge': 'Lounge', diff --git a/test/resources/Room.4.json b/test/resources/Room.4.json index 9543daf6..1d849e4b 100644 --- a/test/resources/Room.4.json +++ b/test/resources/Room.4.json @@ -5,6 +5,7 @@ "name": "Poolraum (HoF)", "type": "room", "categories": [ + "computer", "learn" ], "description": "1. OG, Raum 1.29, 18 Plätze, rollstuhlgerecht, Montag bis Freitag von 8:00 bis 20:00 Uhr",