MediaWiki:Gadget-WishlistManager.js: Difference between revisions

Content deleted Content added
v0.0.1 at a6ba78f: Merge branch 'messages-util' into 'main' Move setOnWikiMessages() from init.js to WebUtil See merge request repos/commtech/wishlist-intake!257
Update to the latest version https://gitlab.wikimedia.org/repos/commtech/wishlist-intake/-/tree/65fd79d4b88c6d366c4558e0c2e926bf8bd6c2dd
Line 2:
mw.loader.using( ["mediawiki.api","mediawiki.util"] ).then( ( require ) => {
/**
* WishlistIntakeWishlistManager: A gadget forhelping intakewith andmanagement editingtasks offor Wishlistthe proposalsCommunity Wishlist.
* Version 0.0.1
* From [[Community Tech]]
* Compiled from source at https://gitlab.wikimedia.org/repos/commtech/wishlist-intake
Line 35 ⟶ 34:
var gadgets = {
WishlistIntake: {
description: "A gadget for the intake and editing of Community Wishlist proposals.",
ResourceLoader: true,
"default": true,
Line 71:
},
WishlistManager: {
description: "A gadget helping with management tasks for the Community Wishlist.",
ResourceLoader: true,
"default": true,
Line 84 ⟶ 85:
"mediawiki.api",
"mediawiki.util"
]
},
WishlistTranslation: {
description: "A gadget for machine translation of pages within the Community Wishlist.",
ResourceLoader: true,
"package": true,
files: [
"WishlistTranslation.js"
],
categories: [
"Community Wishlist/Intake"
],
dependencies: [
"vue",
"@wikimedia/codex",
"mediawiki.storage"
],
messages: [
"communityrequests-translation-translatable",
"communityrequests-translation-translated",
"communityrequests-translation-show-now",
"communityrequests-translation-progress",
"communityrequests-translation-errors"
]
}
Line 412 ⟶ 436:
* Fetch messages from the wiki and set them in mw.messages.
*
* @param {mw.Api} api
* @return {jQuery.Promise}
*/