Development: Frontend: Actions - zhaw-timetable/zhawo GitHub Wiki
Dispatches action to set a specific user as the current global user requries username and type (student, teacher)
| Param | Type |
|---|---|
| name | string |
| type | string |
Dispatches action to make API call to fetch all Usernames
Dispatches action to toggle Drawer State in Store
Dispatches action to remove current global user and remove View State from DB
Dispatches action to set a global theme requries theme type (darkTheme,lightTheme)
| Param | Type |
|---|---|
| value | string |
Dispatches action to set if dayview or not (=weekview)
| Param | Type |
|---|---|
| value | boolean |
Dispatches action to set current ViewState
| Param | Type |
|---|---|
| value | number |
Dispatches action to read saved ViewSate from idb and sets it as current ViewState
Dispatches action to make API call to fetch all mensas
Dispatches action to get menuplan for specific facility on specific date
| Param | Type |
|---|---|
| facilityId | string |
| facilityName | string |
| date | Date |
Dispatches action to perform swipe right
Dispatches action to perform swipe left
Dispatches action to navigate to a specific targetDate
| Param | Type |
|---|---|
| targetDate | Date |
Dispatches action to make API call to fetch free room data
Dispatches action to get free rooms by time between parameters for startTime and endTime
| Param | Type |
|---|---|
| startTime | string |
| endTime | string |
Dispatches action to change selected floor
| Param | Type |
|---|---|
| selectedFloor | string |
Dispatches action to get Schedule for user Differentiates between logged in user and user in search
| Param | Type |
|---|---|
| route | string |
| name | string |
| startDate | string |
Dispatches action to perform swipe right
Dispatches action to perform swipe left
Dispatches action to set current view day in store
| Param | Type |
|---|---|
| targetDate | Date |
Dispatches action to clear current search from store
Dispatches action to make api call to get vszhaw rss feed
Dispatches action to make api request to get next zszhaw event