mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-27 09:30:02 +00:00
Remove index.js export indirection
Reduces mmv module size from 168.85kB to 167.92kB. Bug: T77349 Change-Id: I40a4b044ca286dcda948243d5029b3377430d4ff
This commit is contained in:
parent
f00dbbb939
commit
4eaf0725a9
|
@ -2,7 +2,7 @@
|
|||
"modules": [
|
||||
{
|
||||
"resourceModule": "mmv",
|
||||
"maxSize": "28.5 kB"
|
||||
"maxSize": "28.4 kB"
|
||||
},
|
||||
{
|
||||
"resourceModule": "mmv.ui.restriction",
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
"packageFiles": [
|
||||
"mmv/mmv.js",
|
||||
"mmv/logging/mmv.logging.ViewLogger.js",
|
||||
"mmv/model/mmv.model.js",
|
||||
"mmv/model/mmv.model.IwTitle.js",
|
||||
"mmv/model/mmv.model.License.js",
|
||||
"mmv/model/mmv.model.Image.js",
|
||||
|
@ -52,7 +51,6 @@
|
|||
"mmv/model/mmv.model.Thumbnail.js",
|
||||
"mmv/model/mmv.model.TaskQueue.js",
|
||||
"mmv/model/mmv.model.ThumbnailWidth.js",
|
||||
"mmv/provider/mmv.provider.js",
|
||||
"mmv/provider/mmv.provider.Api.js",
|
||||
"mmv/provider/mmv.provider.ImageInfo.js",
|
||||
"mmv/provider/mmv.provider.FileRepoInfo.js",
|
||||
|
@ -60,7 +58,6 @@
|
|||
"mmv/provider/mmv.provider.GuessedThumbnailInfo.js",
|
||||
"mmv/provider/mmv.provider.Image.js",
|
||||
"mmv/mmv.ThumbnailWidthCalculator.js",
|
||||
"mmv/ui/index.js",
|
||||
"mmv/ui/mmv.ui.js",
|
||||
"mmv/ui/mmv.ui.dialog.js",
|
||||
"mmv/ui/mmv.ui.reuse.dialog.js",
|
||||
|
|
|
@ -17,41 +17,33 @@
|
|||
|
||||
const { getMediaHash } = require( 'mmv.head' );
|
||||
const ViewLogger = require( './logging/mmv.logging.ViewLogger.js' );
|
||||
const {
|
||||
Api,
|
||||
FileRepoInfo,
|
||||
GuessedThumbnailInfo,
|
||||
ImageInfo,
|
||||
ImageProvider,
|
||||
ThumbnailInfo
|
||||
} = require( './provider/mmv.provider.js' );
|
||||
const {
|
||||
ImageModel,
|
||||
IwTitle,
|
||||
License,
|
||||
Repo,
|
||||
ForeignApiRepo,
|
||||
ForeignDbRepo,
|
||||
TaskQueue,
|
||||
Thumbnail,
|
||||
ThumbnailWidth
|
||||
} = require( './model/mmv.model.js' );
|
||||
const {
|
||||
Canvas,
|
||||
CanvasButtons,
|
||||
Description,
|
||||
Dialog,
|
||||
DownloadDialog,
|
||||
UiElement,
|
||||
MetadataPanel,
|
||||
MetadataPanelScroller,
|
||||
Permission,
|
||||
ProgressBar,
|
||||
ReuseDialog,
|
||||
StripeButtons,
|
||||
TruncatableTextField,
|
||||
OptionsDialog
|
||||
} = require( './ui/index.js' );
|
||||
const Api = require( './provider/mmv.provider.Api.js' );
|
||||
const FileRepoInfo = require( './provider/mmv.provider.FileRepoInfo.js' );
|
||||
const GuessedThumbnailInfo = require( './provider/mmv.provider.GuessedThumbnailInfo.js' );
|
||||
const ImageProvider = require( './provider/mmv.provider.Image.js' );
|
||||
const ImageInfo = require( './provider/mmv.provider.ImageInfo.js' );
|
||||
const ThumbnailInfo = require( './provider/mmv.provider.ThumbnailInfo.js' );
|
||||
const ImageModel = require( './model/mmv.model.Image.js' );
|
||||
const IwTitle = require( './model/mmv.model.IwTitle.js' );
|
||||
const License = require( './model/mmv.model.License.js' );
|
||||
const { Repo, ForeignApiRepo, ForeignDbRepo } = require( './model/mmv.model.Repo.js' );
|
||||
const TaskQueue = require( './model/mmv.model.TaskQueue.js' );
|
||||
const Thumbnail = require( './model/mmv.model.Thumbnail.js' );
|
||||
const ThumbnailWidth = require( './model/mmv.model.ThumbnailWidth.js' );
|
||||
const Canvas = require( './ui/mmv.ui.canvas.js' );
|
||||
const CanvasButtons = require( './ui/mmv.ui.canvasButtons.js' );
|
||||
const Description = require( './ui/mmv.ui.description.js' );
|
||||
const Dialog = require( './ui/mmv.ui.dialog.js' );
|
||||
const DownloadDialog = require( './ui/mmv.ui.download.dialog.js' );
|
||||
const UiElement = require( './ui/mmv.ui.js' );
|
||||
const MetadataPanel = require( './ui/mmv.ui.metadataPanel.js' );
|
||||
const MetadataPanelScroller = require( './ui/mmv.ui.metadataPanelScroller.js' );
|
||||
const Permission = require( './ui/mmv.ui.permission.js' );
|
||||
const ProgressBar = require( './ui/mmv.ui.progressBar.js' );
|
||||
const ReuseDialog = require( './ui/mmv.ui.reuse.dialog.js' );
|
||||
const StripeButtons = require( './ui/mmv.ui.stripeButtons.js' );
|
||||
const TruncatableTextField = require( './ui/mmv.ui.truncatableTextField.js' );
|
||||
const OptionsDialog = require( './ui/mmv.ui.viewingOptions.js' );
|
||||
const LightboxInterface = require( './mmv.lightboxinterface.js' );
|
||||
const ThumbnailWidthCalculator = require( './mmv.ThumbnailWidthCalculator.js' );
|
||||
|
||||
|
|
|
@ -1,36 +0,0 @@
|
|||
/*
|
||||
* This file is part of the MediaWiki extension MultimediaViewer.
|
||||
*
|
||||
* MultimediaViewer is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* MultimediaViewer is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with MultimediaViewer. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const ImageModel = require( './mmv.model.Image.js' );
|
||||
const IwTitle = require( './mmv.model.IwTitle.js' );
|
||||
const License = require( './mmv.model.License.js' );
|
||||
const { Repo, ForeignApiRepo, ForeignDbRepo } = require( './mmv.model.Repo.js' );
|
||||
const TaskQueue = require( './mmv.model.TaskQueue.js' );
|
||||
const Thumbnail = require( './mmv.model.Thumbnail.js' );
|
||||
const ThumbnailWidth = require( './mmv.model.ThumbnailWidth.js' );
|
||||
|
||||
module.exports = {
|
||||
ImageModel,
|
||||
IwTitle,
|
||||
License,
|
||||
Repo,
|
||||
ForeignApiRepo,
|
||||
ForeignDbRepo,
|
||||
TaskQueue,
|
||||
Thumbnail,
|
||||
ThumbnailWidth
|
||||
};
|
|
@ -1,48 +0,0 @@
|
|||
/*
|
||||
* This file is part of the MediaWiki extension MultimediaViewer.
|
||||
*
|
||||
* MultimediaViewer is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* MultimediaViewer is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with MultimediaViewer. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
const Canvas = require( './mmv.ui.canvas.js' );
|
||||
const CanvasButtons = require( './mmv.ui.canvasButtons.js' );
|
||||
const Description = require( './mmv.ui.description.js' );
|
||||
const Dialog = require( './mmv.ui.dialog.js' );
|
||||
const DownloadDialog = require( './mmv.ui.download.dialog.js' );
|
||||
const UiElement = require( './mmv.ui.js' );
|
||||
const MetadataPanel = require( './mmv.ui.metadataPanel.js' );
|
||||
const MetadataPanelScroller = require( './mmv.ui.metadataPanelScroller.js' );
|
||||
const Permission = require( './mmv.ui.permission.js' );
|
||||
const ProgressBar = require( './mmv.ui.progressBar.js' );
|
||||
const ReuseDialog = require( './mmv.ui.reuse.dialog.js' );
|
||||
const StripeButtons = require( './mmv.ui.stripeButtons.js' );
|
||||
const TruncatableTextField = require( './mmv.ui.truncatableTextField.js' );
|
||||
const OptionsDialog = require( './mmv.ui.viewingOptions.js' );
|
||||
|
||||
module.exports = {
|
||||
Canvas,
|
||||
CanvasButtons,
|
||||
Description,
|
||||
Dialog,
|
||||
DownloadDialog,
|
||||
UiElement,
|
||||
MetadataPanel,
|
||||
MetadataPanelScroller,
|
||||
Permission,
|
||||
ProgressBar,
|
||||
ReuseDialog,
|
||||
StripeButtons,
|
||||
TruncatableTextField,
|
||||
OptionsDialog
|
||||
};
|
Loading…
Reference in a new issue