1.5 KiB
1.5 KiB
Application
- It's mainly responsible for
- creating and event based application state
- parsing and compiling application data
Application state
- ApplicationContext.ts holds the CategoryCollectionState] for each OS
- Uses state pattern
- Same instance is shared throughout the application to ensure consistent state
- 📖 See Application State | Presentation layer to read more about how the state should be managed by the presentation layer.
- 📖 See ApplicationContext.ts to start diving into the state code.
Application data
- Compiled to
Applicationdomain object. - The scripts are defined and controlled in different data files per OS
- Enables data-driven programming and easier contributions
- Application data is defined in collection fil es and
- 📖 See Application data | Presentation layer to read how the application data is read by the presentation layer.
- 📖 See collection files documentation to read more about how the data files are structured/defined and see collection yaml files to directly check the code.