Afnecors added a comment.

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.


TASK DETAIL
https://phabricator.wikimedia.org/T170688

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Afnecors
Cc: Aklapper, Afnecors, Kiailandi, dachary, Hjfocs, Wikidata-bugs, Ricordisamoa, Sjoerddebruin, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to