Explain JS code structure.
Description
Description
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | Hjfocs | T168243 Refactor the JS code responsible for the interaction with the user | |||
Resolved | Afnecors | T170688 Organize JavaScript code |
Event Timeline
Comment Actions
The design pattern used is Module Pattern (details). This design pattern is already adopted by MediaWiki JS library (example mw.Api).
Modules list (see PST User workflow):
- PSManager, module that manages the suggested statements
- PSFilterComponent
- PSConfigurationComponent
- PSRandomItemComponent
- globals.js, global vars and methods usable by every module
- util.js, methods usable by every module
The global object accesible is ps.