jenkins-bot has submitted this change and it was merged.
Change subject: Update registration for ProofreadPage extension
......................................................................
Update registration for ProofreadPage extension
Bug: T87962
Change-Id: I590098f296e78a92d8b9fa20f8ca80d77738ae82
---
M ProofreadPage.body.php
M ProofreadPage.php
A extension.json
3 files changed, 320 insertions(+), 239 deletions(-)
Approvals:
Tpt: Looks good to me, approved
jenkins-bot: Verified
diff --git a/ProofreadPage.body.php b/ProofreadPage.body.php
index ad47a3d..bdc7f87 100644
--- a/ProofreadPage.body.php
+++ b/ProofreadPage.body.php
@@ -858,6 +858,20 @@
}
/**
+ * Extension registration callback
+ */
+ public static function onRegister() {
+ global $wgContentHandlers;
+
+ // L10n
+ include_once( __DIR__ . '/ProofreadPage.namespaces.php' );
+
+ // Content handler
+ define( 'CONTENT_MODEL_PROOFREAD_PAGE', 'proofread-page' );
+ $wgContentHandlers[CONTENT_MODEL_PROOFREAD_PAGE] =
'\ProofreadPage\Page\PageContentHandler';
+ }
+
+ /**
* Allow the extension to extend core's PHPUnit test suite
* @param $files string[] The test files
*/
diff --git a/ProofreadPage.php b/ProofreadPage.php
index 3a8c0b2..1929e51 100644
--- a/ProofreadPage.php
+++ b/ProofreadPage.php
@@ -19,243 +19,17 @@
* @ingroup SpecialPage
*/
-if ( !defined( 'MEDIAWIKI' ) ) {
- die( "ProofreadPage extension\n" );
+if ( function_exists( 'wfLoadExtension' ) ) {
+ wfLoadExtension( 'ProofreadPage' );
+ // Keep i18n globals so mergeMessageFileList.php doesn't break
+ $wgMessagesDirs['ProofreadPage'] = __DIR__ . '/i18n';
+ $wgExtensionMessagesFiles['ProofreadPageAlias'] = __DIR__ .
'/ProofreadPage.alias.php';
+ /* wfWarn(
+ 'Deprecated PHP entry point used for ProofreadPage extension. '
.
+ 'Please use wfLoadExtension instead, ' .
+ 'see https://www.mediawiki.org/wiki/Extension_registration for
more details.'
+ ); */
+ return;
+} else {
+ die( 'This version of the ProofreadPage extension requires MediaWiki
1.25+' );
}
-
-
-/**
- * Array that contain the ids of namespaces used by ProofreadPage
- * Exemple (with default namespace ids):
- * $wgProofreadPageNamespaceIds = array(
- * 'page' => 250,
- * 'index' => 252
- * );
- */
-$wgProofreadPageNamespaceIds = array();
-
-
-//Constants
-define( 'CONTENT_MODEL_PROOFREAD_PAGE', 'proofread-page' );
-
-$dir = __DIR__ . '/';
-$wgMessagesDirs['ProofreadPage'] = __DIR__ . '/i18n';
-$wgExtensionMessagesFiles['ProofreadPageAlias'] = $dir .
'ProofreadPage.alias.php';
-
-$wgAutoloadClasses['ProofreadPage'] = $dir . 'ProofreadPage.body.php';
-$wgAutoloadClasses['ProofreadPage\Context'] = $dir . 'includes/Context.php';
-$wgAutoloadClasses['ProofreadPage\ProofreadPageInit'] = $dir .
'includes/ProofreadPageInit.php';
-$wgAutoloadClasses['ProofreadPage\DiffFormatterUtils'] = $dir .
'includes/DiffFormatterUtils.php';
-$wgAutoloadClasses['ProofreadPage\FileNotFoundException'] = $dir .
'includes/FileNotFoundException.php';
-$wgAutoloadClasses['ProofreadPage\FileProvider'] = $dir .
'includes/FileProvider.php';
-
-$wgAutoloadClasses['EditProofreadIndexPage'] = $dir .
'includes/index/EditProofreadIndexPage.php';
-$wgAutoloadClasses['ProofreadIndexEntry'] = $dir .
'includes/index/ProofreadIndexEntry.php';
-$wgAutoloadClasses['ProofreadIndexValue'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueString'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueNumber'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValuePage'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueLangcode'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueIdentifier'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueIsbn'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueIssn'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueOclc'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueLccn'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueArc'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexValueArk'] = $dir .
'includes/index/ProofreadIndexValue.php';
-$wgAutoloadClasses['ProofreadIndexPage'] = $dir .
'includes/index/ProofreadIndexPage.php';
-$wgAutoloadClasses['ProofreadIndexDbConnector'] = $dir .
'includes/index/ProofreadIndexDbConnector.php';
-
-$wgAutoloadClasses['ProofreadPage\Pagination\PaginationFactory'] = $dir .
'includes/Pagination/PaginationFactory.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\PageNumber'] = $dir .
'includes/Pagination/PageNumber.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\PageList'] = $dir .
'includes/Pagination/PageList.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\Pagination'] = $dir .
'includes/Pagination/Pagination.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\FilePagination'] = $dir .
'includes/Pagination/FilePagination.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\PagePagination'] = $dir .
'includes/Pagination/PagePagination.php';
-$wgAutoloadClasses['ProofreadPage\Pagination\PageNotInPaginationException'] =
$dir . 'includes/Pagination/PageNotInPaginationException.php';
-
-$wgAutoloadClasses['ProofreadPageDbConnector'] = $dir .
'includes/page/ProofreadPageDbConnector.php';
-$wgAutoloadClasses['ProofreadPage\Page\EditPagePage'] = $dir .
'includes/page/EditPagePage.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageContentBuilder'] = $dir .
'includes/page/PageContentBuilder.php';
-$wgAutoloadClasses['ProofreadPagePage'] =
$dir.'includes/page/ProofreadPagePage.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageContent'] =
$dir.'includes/page/PageContent.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageLevel'] =
$dir.'includes/page/PageLevel.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageContentHandler'] =
$dir.'includes/page/PageContentHandler.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageEditAction'] = $dir .
'includes/page/PageEditAction.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageSubmitAction'] = $dir .
'includes/page/PageSubmitAction.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageViewAction'] = $dir .
'includes/page/PageViewAction.php';
-$wgAutoloadClasses['ProofreadPage\Page\PageDifferenceEngine'] = $dir .
'includes/page/PageDifferenceEngine.php';
-
-$wgAutoloadClasses['ProofreadPage\Parser\ParserEntryPoint'] = $dir .
'includes/Parser/ParserEntryPoint.php';
-$wgAutoloadClasses['ProofreadPage\Parser\TagParser'] = $dir .
'includes/Parser/TagParser.php';
-$wgAutoloadClasses['ProofreadPage\Parser\PagelistTagParser'] = $dir .
'includes/Parser/PagelistTagParser.php';
-$wgAutoloadClasses['ProofreadPage\Parser\PagesTagParser'] = $dir .
'includes/Parser/PagesTagParser.php';
-$wgAutoloadClasses['ProofreadPage\Parser\PagequalityTagParser'] = $dir .
'includes/Parser/PagequalityTagParser.php';
-
-$wgExtensionCredits['other'][] = array(
- 'path' => __FILE__,
- 'name' => 'ProofreadPage',
- 'author' => array( 'ThomasV', 'Thomas Pellissier Tanon' ),
- 'url' =>
'https://www.mediawiki.org/wiki/Extension:Proofread_Page',
- 'descriptionmsg' => 'proofreadpage_desc',
- 'license-name' => 'GPL-2.0+',
-);
-
-# OAI-PMH
-$wgAutoloadClasses['SpecialProofreadIndexOai'] = $dir .
'includes/index/oai/SpecialProofreadIndexOai.php';
-$wgAutoloadClasses['ProofreadIndexOaiRecord'] = $dir .
'includes/index/oai/ProofreadIndexOaiRecord.php';
-$wgAutoloadClasses['ProofreadIndexOaiSets'] = $dir .
'includes/index/oai/ProofreadIndexOaiSets.php';
-$wgAutoloadClasses['ProofreadIndexOaiError'] = $dir .
'includes/index/oai/ProofreadIndexOaiError.php';
-$wgSpecialPages['ProofreadIndexOai'] = 'SpecialProofreadIndexOai';
-$wgAutoloadClasses['SpecialProofreadIndexOaiSchema'] = $dir .
'includes/index/oai/SpecialProofreadIndexOaiSchema.php';
-$wgSpecialPages['ProofreadIndexOaiSchema'] = 'SpecialProofreadIndexOaiSchema';
-
-# special page
-$wgAutoloadClasses['ProofreadPages'] = $dir . 'SpecialProofreadPages.php';
-$wgSpecialPages['IndexPages'] = 'ProofreadPages';
-
-# special page
-$wgAutoloadClasses['PagesWithoutScans'] = $dir .
'SpecialPagesWithoutScans.php';
-$wgSpecialPages['PagesWithoutScans'] = 'PagesWithoutScans';
-
-# api prop
-$wgAutoloadClasses['ApiQueryProofread'] = $dir . 'ApiQueryProofread.php';
-$wgAPIPropModules['proofread'] = 'ApiQueryProofread';
-
-# api proofreadinfo
-$wgAutoloadClasses['ApiQueryProofreadInfo'] = $dir .
'ApiQueryProofreadInfo.php';
-$wgAPIMetaModules['proofreadinfo'] = 'ApiQueryProofreadInfo';
-
-//maintenance scripts
-$wgAutoloadClasses['FixProofreadPagePagesContentModel'] = $dir .
'maintenance/fixProofreadPagePagesContentModel.php';
-
-# Group allowed to modify pagequality
-$wgAvailableRights[] = 'pagequality';
-$wgGroupPermissions['user']['pagequality'] = true;
-
-# Client-side resources
-$prpResourceTemplate = array(
- 'localBasePath' => $dir . 'modules',
- 'remoteExtPath' => 'ProofreadPage/modules'
-);
-$wgResourceModules += array(
- 'jquery.mousewheel' => $prpResourceTemplate + array(
- 'scripts' => 'jquery/jquery.mousewheel.js'
- ),
- 'jquery.prpZoom' => $prpResourceTemplate + array(
- 'scripts' => 'jquery/jquery.prpZoom.js',
- 'dependencies' => array( 'jquery.ui.widget',
'jquery.ui.draggable', 'jquery.mousewheel' )
- ),
- 'ext.proofreadpage.base' => $prpResourceTemplate + array(
- 'position' => 'top',
- 'styles' => 'ext.proofreadpage.base.css',
- 'targets' => array( 'mobile', 'desktop' ),
- ),
- 'ext.proofreadpage.page' => $prpResourceTemplate + array(
- 'position' => 'top',
- 'styles' => 'page/ext.proofreadpage.page.css',
- 'dependencies' => array( 'ext.proofreadpage.base' )
- ),
- 'ext.proofreadpage.page.edit' => $prpResourceTemplate + array(
- 'styles' => 'page/ext.proofreadpage.page.edit.css',
- 'scripts' => 'page/ext.proofreadpage.page.edit.js',
- 'dependencies' => array(
- 'ext.proofreadpage.page',
- 'jquery.prpZoom',
- 'mediawiki.user',
- 'user.options'
- ),
- 'messages' => array(
- 'proofreadpage_quality0_category',
- 'proofreadpage_quality1_category',
- 'proofreadpage_quality2_category',
- 'proofreadpage_quality3_category',
- 'proofreadpage_quality4_category',
- 'proofreadpage-section-tools',
- 'proofreadpage-group-zoom',
- 'proofreadpage-group-other',
- 'proofreadpage-button-toggle-visibility-label',
- 'proofreadpage-button-zoom-out-label',
- 'proofreadpage-button-reset-zoom-label',
- 'proofreadpage-button-zoom-in-label',
- 'proofreadpage-button-toggle-layout-label',
- 'proofreadpage-preferences-showheaders-label',
- )
- ),
- 'ext.proofreadpage.page.navigation' => $prpResourceTemplate + array(
- 'scripts' => 'page/ext.proofreadpage.page.navigation.js',
- 'skinStyles' => array(
- 'vector' =>
'page/ext.proofreadpage.page.navigation.vector.css',
- )
- ),
- 'ext.proofreadpage.article' => $prpResourceTemplate + array(
- 'scripts' => 'article/ext.proofreadpage.article.js',
- 'styles' => 'article/ext.proofreadpage.article.css',
- 'dependencies' => array( 'ext.proofreadpage.base' )
- ),
- 'ext.proofreadpage.index' => $prpResourceTemplate + array(
- 'scripts' => 'index/ext.proofreadpage.index.js',
- 'styles' => 'index/ext.proofreadpage.index.css',
- 'dependencies' => array( 'ext.proofreadpage.base',
'jquery.tipsy' )
- ),
- 'ext.proofreadpage.special.indexpages' => $prpResourceTemplate + array(
- 'styles' =>
'special/indexpages/ext.proofreadpage.special.indexpages.css',
- 'dependencies' => array( 'ext.proofreadpage.base' )
- ),
- 'ext.proofreadpage.ve.node.pages' => $prpResourceTemplate + array(
- 'scripts' => array(
- 've/node/ve.dm.MWPagesNode.js',
- 've/node/ve.ce.MWPagesNode.js',
- 've/node/ve.ui.MWPagesInspector.js',
- 've/node/ve.ui.MWPagesInspectorTool.js'
- ),
- 'dependencies' => array( 'ext.visualEditor.mwcore' ),
- 'messages' => array(
-
'proofreadpage-visualeditor-node-pages-inspector-tooltip',
- 'proofreadpage-visualeditor-node-pages-inspector-title',
-
'proofreadpage-visualeditor-node-pages-inspector-description',
-
'proofreadpage-visualeditor-node-pages-inspector-indexselector-yes',
-
'proofreadpage-visualeditor-node-pages-inspector-indexselector-no'
- ),
- 'targets' => array( 'desktop', 'mobile' )
- ),
-);
-
-$wgVisualEditorPluginModules[] = 'ext.proofreadpage.ve.node.pages';
-
-//Hooks
-$wgHooks['SetupAfterCache'][] =
'ProofreadPage\ProofreadPageInit::initNamespaces';
-$wgHooks['ParserFirstCallInit'][] = 'ProofreadPage::onParserFirstCallInit';
-$wgHooks['BeforePageDisplay'][] = 'ProofreadPage::onBeforePageDisplay';
-$wgHooks['GetLinkColours'][] = 'ProofreadPage::onGetLinkColours';
-$wgHooks['ImageOpenShowImageInlineBefore'][] =
'ProofreadPage::onImageOpenShowImageInlineBefore';
-$wgHooks['ArticleSaveComplete'][] = 'ProofreadPage::onArticleSaveComplete';
-$wgHooks['ArticleDelete'][] = 'ProofreadPage::onArticleDelete';
-$wgHooks['ArticleUndelete'][] = 'ProofreadPage::onArticleUndelete';
-$wgHooks['ArticlePurge'][] = 'ProofreadPage::onArticlePurge';
-$wgHooks['SpecialMovepageAfterMove'][] =
'ProofreadPage::onSpecialMovepageAfterMove';
-$wgHooks['LoadExtensionSchemaUpdates'][] =
'ProofreadPage::onLoadExtensionSchemaUpdates';
-$wgHooks['OutputPageParserOutput'][] =
'ProofreadPage::onOutputPageParserOutput';
-$wgHooks['wgQueryPages'][] = 'ProofreadPage::onwgQueryPages';
-$wgHooks['GetPreferences'][] = 'ProofreadPage::onGetPreferences';
-$wgHooks['CustomEditor'][] = 'ProofreadPage::onCustomEditor';
-$wgHooks['CanonicalNamespaces'][] = 'ProofreadPage::addCanonicalNamespaces';
-$wgHooks['SkinTemplateNavigation'][] =
'ProofreadPage::onSkinTemplateNavigation';
-$wgHooks['ContentHandlerDefaultModelFor'][] =
'ProofreadPage::onContentHandlerDefaultModelFor';
-$wgHooks['APIEditBeforeSave'][] = 'ProofreadPage::onAPIEditBeforeSave';
-$wgHooks['EditFormPreloadText'][] = 'ProofreadPage::onEditFormPreloadText';
-$wgHooks['ParserTestTables'][] = 'ProofreadPage::onParserTestTables';
-$wgHooks['InfoAction'][] = 'ProofreadPage::onInfoAction';
-$wgHooks['SkinMinervaDefaultModules'][] =
'ProofreadPage::onSkinMinervaDefaultModules';
-$wgHooks['UnitTestsList'][] = 'ProofreadPage::onUnitTestsList';
-
-//Parser tests
-$wgParserTestFiles[] = __DIR__ . '/tests/parser/proofreadpage_pagelist.txt';
-$wgParserTestFiles[] = __DIR__ . '/tests/parser/proofreadpage_pages.txt';
-$wgParserTestFiles[] = __DIR__ . '/tests/parser/proofreadpage_pagequality.txt';
-
-//Handlers
-$wgContentHandlers[CONTENT_MODEL_PROOFREAD_PAGE] =
'\ProofreadPage\Page\PageContentHandler';
-
-//inclusion of i18n file. $wgExtensionMessagesFiles[] doesn't works
-include_once( $dir . 'ProofreadPage.namespaces.php' );
diff --git a/extension.json b/extension.json
new file mode 100644
index 0000000..4cc0903
--- /dev/null
+++ b/extension.json
@@ -0,0 +1,293 @@
+{
+ "name": "ProofreadPage",
+ "author": [
+ "ThomasV",
+ "Thomas Pellissier Tanon"
+ ],
+ "url": "https://www.mediawiki.org/wiki/Extension:Proofread_Page",
+ "descriptionmsg": "proofreadpage_desc",
+ "license-name": "GPL-2.0+",
+ "type": "other",
+ "@GroupPermissions": "Group allowed to modify pagequality",
+ "GroupPermissions": {
+ "user": {
+ "pagequality": true
+ }
+ },
+ "AvailableRights": [
+ "pagequality"
+ ],
+ "SpecialPages": {
+ "ProofreadIndexOai": "SpecialProofreadIndexOai",
+ "ProofreadIndexOaiSchema": "SpecialProofreadIndexOaiSchema",
+ "IndexPages": "ProofreadPages",
+ "PagesWithoutScans": "PagesWithoutScans"
+ },
+ "APIMetaModules": {
+ "proofreadinfo": "ApiQueryProofreadInfo"
+ },
+ "APIPropModules": {
+ "proofread": "ApiQueryProofread"
+ },
+ "MessagesDirs": {
+ "ProofreadPage": [
+ "i18n"
+ ]
+ },
+ "ExtensionMessagesFiles": {
+ "ProofreadPageAlias": "ProofreadPage.alias.php"
+ },
+ "AutoloadClasses": {
+ "ProofreadPage": "ProofreadPage.body.php",
+ "ProofreadPage\\Context": "includes/Context.php",
+ "ProofreadPage\\ProofreadPageInit":
"includes/ProofreadPageInit.php",
+ "ProofreadPage\\DiffFormatterUtils":
"includes/DiffFormatterUtils.php",
+ "ProofreadPage\\FileNotFoundException":
"includes/FileNotFoundException.php",
+ "ProofreadPage\\FileProvider": "includes/FileProvider.php",
+ "EditProofreadIndexPage":
"includes/index/EditProofreadIndexPage.php",
+ "ProofreadIndexEntry": "includes/index/ProofreadIndexEntry.php",
+ "ProofreadIndexValue": "includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueString":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueNumber":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValuePage":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueLangcode":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueIdentifier":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueIsbn":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueIssn":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueOclc":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueLccn":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueArc":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexValueArk":
"includes/index/ProofreadIndexValue.php",
+ "ProofreadIndexPage": "includes/index/ProofreadIndexPage.php",
+ "ProofreadIndexDbConnector":
"includes/index/ProofreadIndexDbConnector.php",
+ "ProofreadPage\\Pagination\\PaginationFactory":
"includes/Pagination/PaginationFactory.php",
+ "ProofreadPage\\Pagination\\PageNumber":
"includes/Pagination/PageNumber.php",
+ "ProofreadPage\\Pagination\\PageList":
"includes/Pagination/PageList.php",
+ "ProofreadPage\\Pagination\\Pagination":
"includes/Pagination/Pagination.php",
+ "ProofreadPage\\Pagination\\FilePagination":
"includes/Pagination/FilePagination.php",
+ "ProofreadPage\\Pagination\\PagePagination":
"includes/Pagination/PagePagination.php",
+ "ProofreadPage\\Pagination\\PageNotInPaginationException":
"includes/Pagination/PageNotInPaginationException.php",
+ "ProofreadPageDbConnector":
"includes/page/ProofreadPageDbConnector.php",
+ "ProofreadPage\\Page\\EditPagePage":
"includes/page/EditPagePage.php",
+ "ProofreadPage\\Page\\PageContentBuilder":
"includes/page/PageContentBuilder.php",
+ "ProofreadPagePage": "includes/page/ProofreadPagePage.php",
+ "ProofreadPage\\Page\\PageContent":
"includes/page/PageContent.php",
+ "ProofreadPage\\Page\\PageLevel": "includes/page/PageLevel.php",
+ "ProofreadPage\\Page\\PageContentHandler":
"includes/page/PageContentHandler.php",
+ "ProofreadPage\\Page\\PageEditAction":
"includes/page/PageEditAction.php",
+ "ProofreadPage\\Page\\PageSubmitAction":
"includes/page/PageSubmitAction.php",
+ "ProofreadPage\\Page\\PageViewAction":
"includes/page/PageViewAction.php",
+ "ProofreadPage\\Page\\PageDifferenceEngine":
"includes/page/PageDifferenceEngine.php",
+ "ProofreadPage\\Parser\\ParserEntryPoint":
"includes/Parser/ParserEntryPoint.php",
+ "ProofreadPage\\Parser\\TagParser":
"includes/Parser/TagParser.php",
+ "ProofreadPage\\Parser\\PagelistTagParser":
"includes/Parser/PagelistTagParser.php",
+ "ProofreadPage\\Parser\\PagesTagParser":
"includes/Parser/PagesTagParser.php",
+ "ProofreadPage\\Parser\\PagequalityTagParser":
"includes/Parser/PagequalityTagParser.php",
+ "SpecialProofreadIndexOai":
"includes/index/oai/SpecialProofreadIndexOai.php",
+ "ProofreadIndexOaiRecord":
"includes/index/oai/ProofreadIndexOaiRecord.php",
+ "ProofreadIndexOaiSets":
"includes/index/oai/ProofreadIndexOaiSets.php",
+ "ProofreadIndexOaiError":
"includes/index/oai/ProofreadIndexOaiError.php",
+ "SpecialProofreadIndexOaiSchema":
"includes/index/oai/SpecialProofreadIndexOaiSchema.php",
+ "ProofreadPages": "SpecialProofreadPages.php",
+ "PagesWithoutScans": "SpecialPagesWithoutScans.php",
+ "ApiQueryProofread": "ApiQueryProofread.php",
+ "ApiQueryProofreadInfo": "ApiQueryProofreadInfo.php",
+ "FixProofreadPagePagesContentModel":
"maintenance/fixProofreadPagePagesContentModel.php"
+ },
+ "ResourceModules": {
+ "jquery.mousewheel": {
+ "scripts": "jquery/jquery.mousewheel.js"
+ },
+ "jquery.prpZoom": {
+ "scripts": "jquery/jquery.prpZoom.js",
+ "dependencies": [
+ "jquery.ui.widget",
+ "jquery.ui.draggable",
+ "jquery.mousewheel"
+ ]
+ },
+ "ext.proofreadpage.base": {
+ "position": "top",
+ "styles": "ext.proofreadpage.base.css",
+ "targets": [
+ "mobile",
+ "desktop"
+ ]
+ },
+ "ext.proofreadpage.page": {
+ "position": "top",
+ "styles": "page/ext.proofreadpage.page.css",
+ "dependencies": [
+ "ext.proofreadpage.base"
+ ]
+ },
+ "ext.proofreadpage.page.edit": {
+ "styles": "page/ext.proofreadpage.page.edit.css",
+ "scripts": "page/ext.proofreadpage.page.edit.js",
+ "dependencies": [
+ "ext.proofreadpage.page",
+ "jquery.prpZoom",
+ "mediawiki.user",
+ "user.options"
+ ],
+ "messages": [
+ "proofreadpage_quality0_category",
+ "proofreadpage_quality1_category",
+ "proofreadpage_quality2_category",
+ "proofreadpage_quality3_category",
+ "proofreadpage_quality4_category",
+ "proofreadpage-section-tools",
+ "proofreadpage-group-zoom",
+ "proofreadpage-group-other",
+ "proofreadpage-button-toggle-visibility-label",
+ "proofreadpage-button-zoom-out-label",
+ "proofreadpage-button-reset-zoom-label",
+ "proofreadpage-button-zoom-in-label",
+ "proofreadpage-button-toggle-layout-label",
+ "proofreadpage-preferences-showheaders-label"
+ ]
+ },
+ "ext.proofreadpage.page.navigation": {
+ "scripts": "page/ext.proofreadpage.page.navigation.js",
+ "skinStyles": {
+ "vector":
"page/ext.proofreadpage.page.navigation.vector.css"
+ }
+ },
+ "ext.proofreadpage.article": {
+ "scripts": "article/ext.proofreadpage.article.js",
+ "styles": "article/ext.proofreadpage.article.css",
+ "dependencies": [
+ "ext.proofreadpage.base"
+ ]
+ },
+ "ext.proofreadpage.index": {
+ "scripts": "index/ext.proofreadpage.index.js",
+ "styles": "index/ext.proofreadpage.index.css",
+ "dependencies": [
+ "ext.proofreadpage.base",
+ "jquery.tipsy"
+ ]
+ },
+ "ext.proofreadpage.special.indexpages": {
+ "styles":
"special/indexpages/ext.proofreadpage.special.indexpages.css",
+ "dependencies": [
+ "ext.proofreadpage.base"
+ ]
+ },
+ "ext.proofreadpage.ve.node.pages": {
+ "scripts": [
+ "ve/node/ve.dm.MWPagesNode.js",
+ "ve/node/ve.ce.MWPagesNode.js",
+ "ve/node/ve.ui.MWPagesInspector.js",
+ "ve/node/ve.ui.MWPagesInspectorTool.js"
+ ],
+ "dependencies": [
+ "ext.visualEditor.mwcore"
+ ],
+ "messages": [
+
"proofreadpage-visualeditor-node-pages-inspector-tooltip",
+
"proofreadpage-visualeditor-node-pages-inspector-title",
+
"proofreadpage-visualeditor-node-pages-inspector-description",
+
"proofreadpage-visualeditor-node-pages-inspector-indexselector-yes",
+
"proofreadpage-visualeditor-node-pages-inspector-indexselector-no"
+ ],
+ "targets": [
+ "desktop",
+ "mobile"
+ ]
+ }
+ },
+ "ResourceFileModulePaths": {
+ "localBasePath": "modules",
+ "remoteExtPath": "ProofreadPage/modules"
+ },
+ "Hooks": {
+ "SetupAfterCache": [
+ "ProofreadPage\\ProofreadPageInit::initNamespaces"
+ ],
+ "ParserFirstCallInit": [
+ "ProofreadPage::onParserFirstCallInit"
+ ],
+ "BeforePageDisplay": [
+ "ProofreadPage::onBeforePageDisplay"
+ ],
+ "GetLinkColours": [
+ "ProofreadPage::onGetLinkColours"
+ ],
+ "ImageOpenShowImageInlineBefore": [
+ "ProofreadPage::onImageOpenShowImageInlineBefore"
+ ],
+ "ArticleSaveComplete": [
+ "ProofreadPage::onArticleSaveComplete"
+ ],
+ "ArticleDelete": [
+ "ProofreadPage::onArticleDelete"
+ ],
+ "ArticleUndelete": [
+ "ProofreadPage::onArticleUndelete"
+ ],
+ "ArticlePurge": [
+ "ProofreadPage::onArticlePurge"
+ ],
+ "SpecialMovepageAfterMove": [
+ "ProofreadPage::onSpecialMovepageAfterMove"
+ ],
+ "LoadExtensionSchemaUpdates": [
+ "ProofreadPage::onLoadExtensionSchemaUpdates"
+ ],
+ "OutputPageParserOutput": [
+ "ProofreadPage::onOutputPageParserOutput"
+ ],
+ "wgQueryPages": [
+ "ProofreadPage::onwgQueryPages"
+ ],
+ "GetPreferences": [
+ "ProofreadPage::onGetPreferences"
+ ],
+ "CustomEditor": [
+ "ProofreadPage::onCustomEditor"
+ ],
+ "CanonicalNamespaces": [
+ "ProofreadPage::addCanonicalNamespaces"
+ ],
+ "SkinTemplateNavigation": [
+ "ProofreadPage::onSkinTemplateNavigation"
+ ],
+ "ContentHandlerDefaultModelFor": [
+ "ProofreadPage::onContentHandlerDefaultModelFor"
+ ],
+ "APIEditBeforeSave": [
+ "ProofreadPage::onAPIEditBeforeSave"
+ ],
+ "EditFormPreloadText": [
+ "ProofreadPage::onEditFormPreloadText"
+ ],
+ "ParserTestTables": [
+ "ProofreadPage::onParserTestTables"
+ ],
+ "InfoAction": [
+ "ProofreadPage::onInfoAction"
+ ],
+ "SkinMinervaDefaultModules": [
+ "ProofreadPage::onSkinMinervaDefaultModules"
+ ],
+ "UnitTestsList": [
+ "ProofreadPage::onUnitTestsList"
+ ]
+ },
+ "ParserTestFiles": [
+ "tests/parser/proofreadpage_pagelist.txt",
+ "tests/parser/proofreadpage_pages.txt",
+ "tests/parser/proofreadpage_pagequality.txt"
+ ],
+ "VisualEditorPluginModules": [
+ "ext.proofreadpage.ve.node.pages"
+ ],
+ "config": {
+ "@ProofreadPageNamespaceIds": "Array that contain the ids of
namespaces used by ProofreadPage",
+ "ProofreadPageNamespaceIds": []
+ },
+ "callback": "ProofreadPage::onRegister",
+ "load_composer_autoloader": true,
+ "manifest_version": 1
+}
--
To view, visit https://gerrit.wikimedia.org/r/227722
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I590098f296e78a92d8b9fa20f8ca80d77738ae82
Gerrit-PatchSet: 7
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Niharika29 <[email protected]>
Gerrit-Reviewer: Dereckson <[email protected]>
Gerrit-Reviewer: GOIII <[email protected]>
Gerrit-Reviewer: John Vandenberg <[email protected]>
Gerrit-Reviewer: Kaldari <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Niharika29 <[email protected]>
Gerrit-Reviewer: Paladox <[email protected]>
Gerrit-Reviewer: Phe <[email protected]>
Gerrit-Reviewer: Tpt <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits