From d0e4b1186d4cb949b0e4ee2878fba4f0e2666ae0 Mon Sep 17 00:00:00 2001 From: Lens0021 / Leslie Date: Sun, 30 Jun 2024 16:42:21 +0900 Subject: [PATCH] Migrate to MediaWiki 1.42 (#202) * Migrate to MediaWiki 1.42 * Allow slash in filename --- ...tyles => mediawiki%3Agadgets%2Fbookflap-vector-styles.json} | 3 +-- ...finition%3Abookflap => mediawiki%3Agadgets%2Fbookflap.json} | 3 +-- ...yles.css => mediawiki%3Agadgets-bookflap-vector-styles.css} | 0 ...{gadget%3Abookflap.css => mediawiki%3Agadgets-bookflap.css} | 0 .../{gadget%3Abookflap.js => mediawiki%3Agadgets-bookflap.js} | 0 ...or-tweaks => mediawiki%3Agadgets%2Fcode-editor-tweaks.json} | 3 +-- ...tor-tweaks.js => mediawiki%3Agadgets-code-editor-tweaks.js} | 0 ...ate-redirect => mediawiki%3Agadgets%2Fcreate-redirect.json} | 3 +-- ...eate-redirect.js => mediawiki%3Agadgets-create-redirect.js} | 0 ...nerated => mediawiki%3Agadgets%2Fdarkreader-generated.json} | 3 +-- ...erated.css => mediawiki%3Agadgets-darkreader-generated.css} | 0 ...nition%3Aedittools => mediawiki%3Agadgets%2Fedittools.json} | 3 +-- ...{gadget%3Aedittools.js => mediawiki%3Agadgets-edittools.js} | 0 ...g-names => mediawiki%3Agadgets%2Fhide-insulting-names.json} | 3 +-- ...ng-names.js => mediawiki%3Agadgets-hide-insulting-names.js} | 0 ...tion => mediawiki%3Agadgets%2Fhide-small-edit-section.json} | 3 +-- ...ion.css => mediawiki%3Agadgets-hide-small-edit-section.css} | 0 ...arch-bar => mediawiki%3Agadgets%2Fimage-in-search-bar.json} | 3 +-- ...rch-bar.css => mediawiki%3Agadgets-image-in-search-bar.css} | 0 ...earch-bar.js => mediawiki%3Agadgets-image-in-search-bar.js} | 0 .../mediawiki%3Agadgets%2Fimageview.json} | 3 +-- ...adget%3Aimageview.css => mediawiki%3Agadgets-imageview.css} | 0 ...{gadget%3Aimageview.js => mediawiki%3Agadgets-imageview.js} | 0 ...est => mediawiki%3Agadgets%2Fkeyup-for-search-suggest.json} | 3 +-- ...gest.js => mediawiki%3Agadgets-keyup-for-search-suggest.js} | 0 ...adget_definition%3Amute => mediawiki%3Agadgets%2Fmute.json} | 3 +-- .../mute/{gadget%3Amute.css => mediawiki%3Agadgets-mute.css} | 0 gadgets/mute/{gadget%3Amute.js => mediawiki%3Agadgets-mute.js} | 0 .../mediawiki%3Agadgets%2Frc-lazy-load.json} | 3 +-- ...t%3Arc-lazy-load.js => mediawiki%3Agadgets-rc-lazy-load.js} | 0 ...es => mediawiki%3Agadgets%2Fscrollable-gallery-styles.json} | 3 +-- ...e-gallery => mediawiki%3Agadgets%2Fscrollable-gallery.json} | 3 +-- ...s.css => mediawiki%3Agadgets-scrollable-gallery-styles.css} | 0 ...le-gallery.js => mediawiki%3Agadgets-scrollable-gallery.js} | 0 ...enotice-edit => mediawiki%3Agadgets%2Fsitenotice-edit.json} | 3 +-- ...notice-edit.css => mediawiki%3Agadgets-sitenotice-edit.css} | 0 ...tenotice-edit.js => mediawiki%3Agadgets-sitenotice-edit.js} | 0 ...eicons => mediawiki%3Agadgets%2Fskin-femiwiki-xeicons.json} | 3 +-- ...icons.css => mediawiki%3Agadgets-skin-femiwiki-xeicons.css} | 0 ...poiler-styles => mediawiki%3Agadgets%2Fspoiler-styles.json} | 3 +-- ...definition%3Aspoiler => mediawiki%3Agadgets%2Fspoiler.json} | 3 +-- ...oiler-styles.css => mediawiki%3Agadgets-spoiler-styles.css} | 0 .../{gadget%3Aspoiler.js => mediawiki%3Agadgets-spoiler.js} | 0 ...editor => mediawiki%3Agadgets%2Ftweetbot-quick-editor.json} | 3 +-- ...-editor.js => mediawiki%3Agadgets-tweetbot-quick-editor.js} | 0 ...miwiki => mediawiki%3Agadgets%2Fvisual-editor-for-femiwiki} | 3 +-- ...ki.js => mediawiki%3Agadgets-visual-editor-for-femiwiki.js} | 0 package.json | 2 +- 48 files changed, 22 insertions(+), 43 deletions(-) rename gadgets/bookflap/{gadget_definition%3Abookflap-vector-styles => mediawiki%3Agadgets%2Fbookflap-vector-styles.json} (80%) rename gadgets/bookflap/{gadget_definition%3Abookflap => mediawiki%3Agadgets%2Fbookflap.json} (82%) rename gadgets/bookflap/{gadget%3Abookflap-vector-styles.css => mediawiki%3Agadgets-bookflap-vector-styles.css} (100%) rename gadgets/bookflap/{gadget%3Abookflap.css => mediawiki%3Agadgets-bookflap.css} (100%) rename gadgets/bookflap/{gadget%3Abookflap.js => mediawiki%3Agadgets-bookflap.js} (100%) rename gadgets/code-editor-tweaks/{gadget_definition%3Acode-editor-tweaks => mediawiki%3Agadgets%2Fcode-editor-tweaks.json} (80%) rename gadgets/code-editor-tweaks/{gadget%3Acode-editor-tweaks.js => mediawiki%3Agadgets-code-editor-tweaks.js} (100%) rename gadgets/create-redirect/{gadget_definition%3Acreate-redirect => mediawiki%3Agadgets%2Fcreate-redirect.json} (83%) rename gadgets/create-redirect/{gadget%3Acreate-redirect.js => mediawiki%3Agadgets-create-redirect.js} (100%) rename gadgets/darkreader-generated/{gadget_definition%3Adarkreader-generated => mediawiki%3Agadgets%2Fdarkreader-generated.json} (79%) rename gadgets/darkreader-generated/{gadget%3Adarkreader-generated.css => mediawiki%3Agadgets-darkreader-generated.css} (100%) rename gadgets/edittools/{gadget_definition%3Aedittools => mediawiki%3Agadgets%2Fedittools.json} (81%) rename gadgets/edittools/{gadget%3Aedittools.js => mediawiki%3Agadgets-edittools.js} (100%) rename gadgets/hide-insulting-names/{gadget_definition%3Ahide-insulting-names => mediawiki%3Agadgets%2Fhide-insulting-names.json} (80%) rename gadgets/hide-insulting-names/{gadget%3Ahide-insulting-names.js => mediawiki%3Agadgets-hide-insulting-names.js} (100%) rename gadgets/hide-small-edit-section/{gadget_definition%3Ahide-small-edit-section => mediawiki%3Agadgets%2Fhide-small-edit-section.json} (80%) rename gadgets/hide-small-edit-section/{gadget%3Ahide-small-edit-section.css => mediawiki%3Agadgets-hide-small-edit-section.css} (100%) rename gadgets/image-in-search-bar/{gadget_definition%3Aimage-in-search-bar => mediawiki%3Agadgets%2Fimage-in-search-bar.json} (76%) rename gadgets/image-in-search-bar/{gadget%3Aimage-in-search-bar.css => mediawiki%3Agadgets-image-in-search-bar.css} (100%) rename gadgets/image-in-search-bar/{gadget%3Aimage-in-search-bar.js => mediawiki%3Agadgets-image-in-search-bar.js} (100%) rename gadgets/{rc-lazy-load/gadget_definition%3Arc-lazy-load => imageview/mediawiki%3Agadgets%2Fimageview.json} (83%) rename gadgets/imageview/{gadget%3Aimageview.css => mediawiki%3Agadgets-imageview.css} (100%) rename gadgets/imageview/{gadget%3Aimageview.js => mediawiki%3Agadgets-imageview.js} (100%) rename gadgets/keyup-for-search-suggest/{gadget_definition%3Akeyup-for-search-suggest => mediawiki%3Agadgets%2Fkeyup-for-search-suggest.json} (79%) rename gadgets/keyup-for-search-suggest/{gadget%3Akeyup-for-search-suggest.js => mediawiki%3Agadgets-keyup-for-search-suggest.js} (100%) rename gadgets/mute/{gadget_definition%3Amute => mediawiki%3Agadgets%2Fmute.json} (80%) rename gadgets/mute/{gadget%3Amute.css => mediawiki%3Agadgets-mute.css} (100%) rename gadgets/mute/{gadget%3Amute.js => mediawiki%3Agadgets-mute.js} (100%) rename gadgets/{imageview/gadget_definition%3Aimageview => rc-lazy-load/mediawiki%3Agadgets%2Frc-lazy-load.json} (80%) rename gadgets/rc-lazy-load/{gadget%3Arc-lazy-load.js => mediawiki%3Agadgets-rc-lazy-load.js} (100%) rename gadgets/scrollable-gallery/{gadget_definition%3Ascrollable-gallery-styles => mediawiki%3Agadgets%2Fscrollable-gallery-styles.json} (77%) rename gadgets/scrollable-gallery/{gadget_definition%3Ascrollable-gallery => mediawiki%3Agadgets%2Fscrollable-gallery.json} (83%) rename gadgets/scrollable-gallery/{gadget%3Ascrollable-gallery-styles.css => mediawiki%3Agadgets-scrollable-gallery-styles.css} (100%) rename gadgets/scrollable-gallery/{gadget%3Ascrollable-gallery.js => mediawiki%3Agadgets-scrollable-gallery.js} (100%) rename gadgets/sitenotice-edit/{gadget_definition%3Asitenotice-edit => mediawiki%3Agadgets%2Fsitenotice-edit.json} (80%) rename gadgets/sitenotice-edit/{gadget%3Asitenotice-edit.css => mediawiki%3Agadgets-sitenotice-edit.css} (100%) rename gadgets/sitenotice-edit/{gadget%3Asitenotice-edit.js => mediawiki%3Agadgets-sitenotice-edit.js} (100%) rename gadgets/skin-femiwiki-xeicons/{gadget_definition%3Askin-femiwiki-xeicons => mediawiki%3Agadgets%2Fskin-femiwiki-xeicons.json} (80%) rename gadgets/skin-femiwiki-xeicons/{gadget%3Askin-femiwiki-xeicons.css => mediawiki%3Agadgets-skin-femiwiki-xeicons.css} (100%) rename gadgets/spoiler/{gadget_definition%3Aspoiler-styles => mediawiki%3Agadgets%2Fspoiler-styles.json} (79%) rename gadgets/spoiler/{gadget_definition%3Aspoiler => mediawiki%3Agadgets%2Fspoiler.json} (85%) rename gadgets/spoiler/{gadget%3Aspoiler-styles.css => mediawiki%3Agadgets-spoiler-styles.css} (100%) rename gadgets/spoiler/{gadget%3Aspoiler.js => mediawiki%3Agadgets-spoiler.js} (100%) rename gadgets/tweetbot-quick-editor/{gadget_definition%3Atweetbot-quick-editor => mediawiki%3Agadgets%2Ftweetbot-quick-editor.json} (81%) rename gadgets/tweetbot-quick-editor/{gadget%3Atweetbot-quick-editor.js => mediawiki%3Agadgets-tweetbot-quick-editor.js} (100%) rename gadgets/visual-editor-for-femiwiki/{gadget_definition%3Avisual-editor-for-femiwiki => mediawiki%3Agadgets%2Fvisual-editor-for-femiwiki} (79%) rename gadgets/visual-editor-for-femiwiki/{gadget%3Avisual-editor-for-femiwiki.js => mediawiki%3Agadgets-visual-editor-for-femiwiki.js} (100%) diff --git a/gadgets/bookflap/gadget_definition%3Abookflap-vector-styles b/gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap-vector-styles.json similarity index 80% rename from gadgets/bookflap/gadget_definition%3Abookflap-vector-styles rename to gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap-vector-styles.json index 9661713..6623c8d 100644 --- a/gadgets/bookflap/gadget_definition%3Abookflap-vector-styles +++ b/gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap-vector-styles.json @@ -8,8 +8,7 @@ "category": "" }, "module": { - "scripts": [], - "styles": ["bookflap-vector-styles.css"], + "pages": ["bookflap-vector-styles.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/bookflap/gadget_definition%3Abookflap b/gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap.json similarity index 82% rename from gadgets/bookflap/gadget_definition%3Abookflap rename to gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap.json index 5b4fd2e..769d20b 100644 --- a/gadgets/bookflap/gadget_definition%3Abookflap +++ b/gadgets/bookflap/mediawiki%3Agadgets%2Fbookflap.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["bookflap.js"], - "styles": ["bookflap.css"], + "pages": ["bookflap.js", "bookflap.css"], "peers": ["bookflap-vector-styles"], "dependencies": ["jquery.cookie"], "messages": [], diff --git a/gadgets/bookflap/gadget%3Abookflap-vector-styles.css b/gadgets/bookflap/mediawiki%3Agadgets-bookflap-vector-styles.css similarity index 100% rename from gadgets/bookflap/gadget%3Abookflap-vector-styles.css rename to gadgets/bookflap/mediawiki%3Agadgets-bookflap-vector-styles.css diff --git a/gadgets/bookflap/gadget%3Abookflap.css b/gadgets/bookflap/mediawiki%3Agadgets-bookflap.css similarity index 100% rename from gadgets/bookflap/gadget%3Abookflap.css rename to gadgets/bookflap/mediawiki%3Agadgets-bookflap.css diff --git a/gadgets/bookflap/gadget%3Abookflap.js b/gadgets/bookflap/mediawiki%3Agadgets-bookflap.js similarity index 100% rename from gadgets/bookflap/gadget%3Abookflap.js rename to gadgets/bookflap/mediawiki%3Agadgets-bookflap.js diff --git a/gadgets/code-editor-tweaks/gadget_definition%3Acode-editor-tweaks b/gadgets/code-editor-tweaks/mediawiki%3Agadgets%2Fcode-editor-tweaks.json similarity index 80% rename from gadgets/code-editor-tweaks/gadget_definition%3Acode-editor-tweaks rename to gadgets/code-editor-tweaks/mediawiki%3Agadgets%2Fcode-editor-tweaks.json index 5f6b688..32a44a2 100644 --- a/gadgets/code-editor-tweaks/gadget_definition%3Acode-editor-tweaks +++ b/gadgets/code-editor-tweaks/mediawiki%3Agadgets%2Fcode-editor-tweaks.json @@ -7,8 +7,7 @@ "category": "plugin-configuration" }, "module": { - "scripts": ["code-editor-tweaks.js"], - "styles": [], + "pages": ["code-editor-tweaks.js"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/code-editor-tweaks/gadget%3Acode-editor-tweaks.js b/gadgets/code-editor-tweaks/mediawiki%3Agadgets-code-editor-tweaks.js similarity index 100% rename from gadgets/code-editor-tweaks/gadget%3Acode-editor-tweaks.js rename to gadgets/code-editor-tweaks/mediawiki%3Agadgets-code-editor-tweaks.js diff --git a/gadgets/create-redirect/gadget_definition%3Acreate-redirect b/gadgets/create-redirect/mediawiki%3Agadgets%2Fcreate-redirect.json similarity index 83% rename from gadgets/create-redirect/gadget_definition%3Acreate-redirect rename to gadgets/create-redirect/mediawiki%3Agadgets%2Fcreate-redirect.json index df07f96..687a19d 100644 --- a/gadgets/create-redirect/gadget_definition%3Acreate-redirect +++ b/gadgets/create-redirect/mediawiki%3Agadgets%2Fcreate-redirect.json @@ -8,8 +8,7 @@ "category": "edit" }, "module": { - "scripts": ["create-redirect.js"], - "styles": [], + "pages": ["create-redirect.js"], "peers": [], "dependencies": ["mediawiki.api"], "messages": [], diff --git a/gadgets/create-redirect/gadget%3Acreate-redirect.js b/gadgets/create-redirect/mediawiki%3Agadgets-create-redirect.js similarity index 100% rename from gadgets/create-redirect/gadget%3Acreate-redirect.js rename to gadgets/create-redirect/mediawiki%3Agadgets-create-redirect.js diff --git a/gadgets/darkreader-generated/gadget_definition%3Adarkreader-generated b/gadgets/darkreader-generated/mediawiki%3Agadgets%2Fdarkreader-generated.json similarity index 79% rename from gadgets/darkreader-generated/gadget_definition%3Adarkreader-generated rename to gadgets/darkreader-generated/mediawiki%3Agadgets%2Fdarkreader-generated.json index 14b71ff..2176fec 100644 --- a/gadgets/darkreader-generated/gadget_definition%3Adarkreader-generated +++ b/gadgets/darkreader-generated/mediawiki%3Agadgets%2Fdarkreader-generated.json @@ -7,8 +7,7 @@ "category": "dark-mode" }, "module": { - "scripts": [], - "styles": ["darkreader-generated.css"], + "pages": ["darkreader-generated.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/darkreader-generated/gadget%3Adarkreader-generated.css b/gadgets/darkreader-generated/mediawiki%3Agadgets-darkreader-generated.css similarity index 100% rename from gadgets/darkreader-generated/gadget%3Adarkreader-generated.css rename to gadgets/darkreader-generated/mediawiki%3Agadgets-darkreader-generated.css diff --git a/gadgets/edittools/gadget_definition%3Aedittools b/gadgets/edittools/mediawiki%3Agadgets%2Fedittools.json similarity index 81% rename from gadgets/edittools/gadget_definition%3Aedittools rename to gadgets/edittools/mediawiki%3Agadgets%2Fedittools.json index 9731d22..9bf9155 100644 --- a/gadgets/edittools/gadget_definition%3Aedittools +++ b/gadgets/edittools/mediawiki%3Agadgets%2Fedittools.json @@ -7,8 +7,7 @@ "category": "edit" }, "module": { - "scripts": ["edittools.js"], - "styles": [], + "pages": ["edittools.js"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/edittools/gadget%3Aedittools.js b/gadgets/edittools/mediawiki%3Agadgets-edittools.js similarity index 100% rename from gadgets/edittools/gadget%3Aedittools.js rename to gadgets/edittools/mediawiki%3Agadgets-edittools.js diff --git a/gadgets/hide-insulting-names/gadget_definition%3Ahide-insulting-names b/gadgets/hide-insulting-names/mediawiki%3Agadgets%2Fhide-insulting-names.json similarity index 80% rename from gadgets/hide-insulting-names/gadget_definition%3Ahide-insulting-names rename to gadgets/hide-insulting-names/mediawiki%3Agadgets%2Fhide-insulting-names.json index b859706..3a0faa0 100644 --- a/gadgets/hide-insulting-names/gadget_definition%3Ahide-insulting-names +++ b/gadgets/hide-insulting-names/mediawiki%3Agadgets%2Fhide-insulting-names.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["hide-insulting-names.js"], - "styles": [], + "pages": ["hide-insulting-names.js"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/hide-insulting-names/gadget%3Ahide-insulting-names.js b/gadgets/hide-insulting-names/mediawiki%3Agadgets-hide-insulting-names.js similarity index 100% rename from gadgets/hide-insulting-names/gadget%3Ahide-insulting-names.js rename to gadgets/hide-insulting-names/mediawiki%3Agadgets-hide-insulting-names.js diff --git a/gadgets/hide-small-edit-section/gadget_definition%3Ahide-small-edit-section b/gadgets/hide-small-edit-section/mediawiki%3Agadgets%2Fhide-small-edit-section.json similarity index 80% rename from gadgets/hide-small-edit-section/gadget_definition%3Ahide-small-edit-section rename to gadgets/hide-small-edit-section/mediawiki%3Agadgets%2Fhide-small-edit-section.json index df200f6..459a13a 100644 --- a/gadgets/hide-small-edit-section/gadget_definition%3Ahide-small-edit-section +++ b/gadgets/hide-small-edit-section/mediawiki%3Agadgets%2Fhide-small-edit-section.json @@ -8,8 +8,7 @@ "category": "edit" }, "module": { - "scripts": [], - "styles": ["hide-small-edit-section.css"], + "pages": ["hide-small-edit-section.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/hide-small-edit-section/gadget%3Ahide-small-edit-section.css b/gadgets/hide-small-edit-section/mediawiki%3Agadgets-hide-small-edit-section.css similarity index 100% rename from gadgets/hide-small-edit-section/gadget%3Ahide-small-edit-section.css rename to gadgets/hide-small-edit-section/mediawiki%3Agadgets-hide-small-edit-section.css diff --git a/gadgets/image-in-search-bar/gadget_definition%3Aimage-in-search-bar b/gadgets/image-in-search-bar/mediawiki%3Agadgets%2Fimage-in-search-bar.json similarity index 76% rename from gadgets/image-in-search-bar/gadget_definition%3Aimage-in-search-bar rename to gadgets/image-in-search-bar/mediawiki%3Agadgets%2Fimage-in-search-bar.json index d6a1ac9..107de40 100644 --- a/gadgets/image-in-search-bar/gadget_definition%3Aimage-in-search-bar +++ b/gadgets/image-in-search-bar/mediawiki%3Agadgets%2Fimage-in-search-bar.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["image-in-search-bar.js"], - "styles": ["image-in-search-bar.css"], + "pages": ["image-in-search-bar.js", "image-in-search-bar.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/image-in-search-bar/gadget%3Aimage-in-search-bar.css b/gadgets/image-in-search-bar/mediawiki%3Agadgets-image-in-search-bar.css similarity index 100% rename from gadgets/image-in-search-bar/gadget%3Aimage-in-search-bar.css rename to gadgets/image-in-search-bar/mediawiki%3Agadgets-image-in-search-bar.css diff --git a/gadgets/image-in-search-bar/gadget%3Aimage-in-search-bar.js b/gadgets/image-in-search-bar/mediawiki%3Agadgets-image-in-search-bar.js similarity index 100% rename from gadgets/image-in-search-bar/gadget%3Aimage-in-search-bar.js rename to gadgets/image-in-search-bar/mediawiki%3Agadgets-image-in-search-bar.js diff --git a/gadgets/rc-lazy-load/gadget_definition%3Arc-lazy-load b/gadgets/imageview/mediawiki%3Agadgets%2Fimageview.json similarity index 83% rename from gadgets/rc-lazy-load/gadget_definition%3Arc-lazy-load rename to gadgets/imageview/mediawiki%3Agadgets%2Fimageview.json index ce72574..4c11c4e 100644 --- a/gadgets/rc-lazy-load/gadget_definition%3Arc-lazy-load +++ b/gadgets/imageview/mediawiki%3Agadgets%2Fimageview.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["rc-lazy-load.js"], - "styles": [], + "pages": ["imageview.js", "imageview.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/imageview/gadget%3Aimageview.css b/gadgets/imageview/mediawiki%3Agadgets-imageview.css similarity index 100% rename from gadgets/imageview/gadget%3Aimageview.css rename to gadgets/imageview/mediawiki%3Agadgets-imageview.css diff --git a/gadgets/imageview/gadget%3Aimageview.js b/gadgets/imageview/mediawiki%3Agadgets-imageview.js similarity index 100% rename from gadgets/imageview/gadget%3Aimageview.js rename to gadgets/imageview/mediawiki%3Agadgets-imageview.js diff --git a/gadgets/keyup-for-search-suggest/gadget_definition%3Akeyup-for-search-suggest b/gadgets/keyup-for-search-suggest/mediawiki%3Agadgets%2Fkeyup-for-search-suggest.json similarity index 79% rename from gadgets/keyup-for-search-suggest/gadget_definition%3Akeyup-for-search-suggest rename to gadgets/keyup-for-search-suggest/mediawiki%3Agadgets%2Fkeyup-for-search-suggest.json index 35e602e..bc19e06 100644 --- a/gadgets/keyup-for-search-suggest/gadget_definition%3Akeyup-for-search-suggest +++ b/gadgets/keyup-for-search-suggest/mediawiki%3Agadgets%2Fkeyup-for-search-suggest.json @@ -7,8 +7,7 @@ "category": "search" }, "module": { - "scripts": ["keyup-for-search-suggest.js"], - "styles": [], + "pages": ["keyup-for-search-suggest.js"], "peers": [], "dependencies": ["mediawiki.searchSuggest"], "messages": [], diff --git a/gadgets/keyup-for-search-suggest/gadget%3Akeyup-for-search-suggest.js b/gadgets/keyup-for-search-suggest/mediawiki%3Agadgets-keyup-for-search-suggest.js similarity index 100% rename from gadgets/keyup-for-search-suggest/gadget%3Akeyup-for-search-suggest.js rename to gadgets/keyup-for-search-suggest/mediawiki%3Agadgets-keyup-for-search-suggest.js diff --git a/gadgets/mute/gadget_definition%3Amute b/gadgets/mute/mediawiki%3Agadgets%2Fmute.json similarity index 80% rename from gadgets/mute/gadget_definition%3Amute rename to gadgets/mute/mediawiki%3Agadgets%2Fmute.json index fb462fb..169d2a1 100644 --- a/gadgets/mute/gadget_definition%3Amute +++ b/gadgets/mute/mediawiki%3Agadgets%2Fmute.json @@ -7,8 +7,7 @@ "category": "view" }, "module": { - "scripts": ["mute.js"], - "styles": ["mute.css"], + "pages": ["mute.js", "mute.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/mute/gadget%3Amute.css b/gadgets/mute/mediawiki%3Agadgets-mute.css similarity index 100% rename from gadgets/mute/gadget%3Amute.css rename to gadgets/mute/mediawiki%3Agadgets-mute.css diff --git a/gadgets/mute/gadget%3Amute.js b/gadgets/mute/mediawiki%3Agadgets-mute.js similarity index 100% rename from gadgets/mute/gadget%3Amute.js rename to gadgets/mute/mediawiki%3Agadgets-mute.js diff --git a/gadgets/imageview/gadget_definition%3Aimageview b/gadgets/rc-lazy-load/mediawiki%3Agadgets%2Frc-lazy-load.json similarity index 80% rename from gadgets/imageview/gadget_definition%3Aimageview rename to gadgets/rc-lazy-load/mediawiki%3Agadgets%2Frc-lazy-load.json index b7589ce..550ed31 100644 --- a/gadgets/imageview/gadget_definition%3Aimageview +++ b/gadgets/rc-lazy-load/mediawiki%3Agadgets%2Frc-lazy-load.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["imageview.js"], - "styles": ["imageview.css"], + "pages": ["rc-lazy-load.js"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/rc-lazy-load/gadget%3Arc-lazy-load.js b/gadgets/rc-lazy-load/mediawiki%3Agadgets-rc-lazy-load.js similarity index 100% rename from gadgets/rc-lazy-load/gadget%3Arc-lazy-load.js rename to gadgets/rc-lazy-load/mediawiki%3Agadgets-rc-lazy-load.js diff --git a/gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery-styles b/gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery-styles.json similarity index 77% rename from gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery-styles rename to gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery-styles.json index fbaa678..5b4797b 100644 --- a/gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery-styles +++ b/gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery-styles.json @@ -7,8 +7,7 @@ "category": "" }, "module": { - "scripts": [], - "styles": ["scrollable-gallery-styles.css"], + "pages": ["scrollable-gallery-styles.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery b/gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery.json similarity index 83% rename from gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery rename to gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery.json index ed299c0..d38c7e0 100644 --- a/gadgets/scrollable-gallery/gadget_definition%3Ascrollable-gallery +++ b/gadgets/scrollable-gallery/mediawiki%3Agadgets%2Fscrollable-gallery.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["scrollable-gallery.js"], - "styles": [], + "pages": ["scrollable-gallery.js"], "peers": ["scrollable-gallery-styles"], "dependencies": [], "messages": [], diff --git a/gadgets/scrollable-gallery/gadget%3Ascrollable-gallery-styles.css b/gadgets/scrollable-gallery/mediawiki%3Agadgets-scrollable-gallery-styles.css similarity index 100% rename from gadgets/scrollable-gallery/gadget%3Ascrollable-gallery-styles.css rename to gadgets/scrollable-gallery/mediawiki%3Agadgets-scrollable-gallery-styles.css diff --git a/gadgets/scrollable-gallery/gadget%3Ascrollable-gallery.js b/gadgets/scrollable-gallery/mediawiki%3Agadgets-scrollable-gallery.js similarity index 100% rename from gadgets/scrollable-gallery/gadget%3Ascrollable-gallery.js rename to gadgets/scrollable-gallery/mediawiki%3Agadgets-scrollable-gallery.js diff --git a/gadgets/sitenotice-edit/gadget_definition%3Asitenotice-edit b/gadgets/sitenotice-edit/mediawiki%3Agadgets%2Fsitenotice-edit.json similarity index 80% rename from gadgets/sitenotice-edit/gadget_definition%3Asitenotice-edit rename to gadgets/sitenotice-edit/mediawiki%3Agadgets%2Fsitenotice-edit.json index 1edfd66..f334adc 100644 --- a/gadgets/sitenotice-edit/gadget_definition%3Asitenotice-edit +++ b/gadgets/sitenotice-edit/mediawiki%3Agadgets%2Fsitenotice-edit.json @@ -8,8 +8,7 @@ "category": "edit" }, "module": { - "scripts": ["sitenotice-edit.js"], - "styles": ["sitenotice-edit.css"], + "pages": ["sitenotice-edit.js", "sitenotice-edit.css"], "peers": [], "dependencies": ["mediawiki.template.mustache"], "messages": [], diff --git a/gadgets/sitenotice-edit/gadget%3Asitenotice-edit.css b/gadgets/sitenotice-edit/mediawiki%3Agadgets-sitenotice-edit.css similarity index 100% rename from gadgets/sitenotice-edit/gadget%3Asitenotice-edit.css rename to gadgets/sitenotice-edit/mediawiki%3Agadgets-sitenotice-edit.css diff --git a/gadgets/sitenotice-edit/gadget%3Asitenotice-edit.js b/gadgets/sitenotice-edit/mediawiki%3Agadgets-sitenotice-edit.js similarity index 100% rename from gadgets/sitenotice-edit/gadget%3Asitenotice-edit.js rename to gadgets/sitenotice-edit/mediawiki%3Agadgets-sitenotice-edit.js diff --git a/gadgets/skin-femiwiki-xeicons/gadget_definition%3Askin-femiwiki-xeicons b/gadgets/skin-femiwiki-xeicons/mediawiki%3Agadgets%2Fskin-femiwiki-xeicons.json similarity index 80% rename from gadgets/skin-femiwiki-xeicons/gadget_definition%3Askin-femiwiki-xeicons rename to gadgets/skin-femiwiki-xeicons/mediawiki%3Agadgets%2Fskin-femiwiki-xeicons.json index e374ede..3e8392d 100644 --- a/gadgets/skin-femiwiki-xeicons/gadget_definition%3Askin-femiwiki-xeicons +++ b/gadgets/skin-femiwiki-xeicons/mediawiki%3Agadgets%2Fskin-femiwiki-xeicons.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": [], - "styles": ["skin-femiwiki-xeicons.css"], + "pages": ["skin-femiwiki-xeicons.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/skin-femiwiki-xeicons/gadget%3Askin-femiwiki-xeicons.css b/gadgets/skin-femiwiki-xeicons/mediawiki%3Agadgets-skin-femiwiki-xeicons.css similarity index 100% rename from gadgets/skin-femiwiki-xeicons/gadget%3Askin-femiwiki-xeicons.css rename to gadgets/skin-femiwiki-xeicons/mediawiki%3Agadgets-skin-femiwiki-xeicons.css diff --git a/gadgets/spoiler/gadget_definition%3Aspoiler-styles b/gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler-styles.json similarity index 79% rename from gadgets/spoiler/gadget_definition%3Aspoiler-styles rename to gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler-styles.json index 2cc83ec..e21e1e3 100644 --- a/gadgets/spoiler/gadget_definition%3Aspoiler-styles +++ b/gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler-styles.json @@ -7,8 +7,7 @@ "category": "view" }, "module": { - "scripts": [], - "styles": ["spoiler-styles.css"], + "pages": ["spoiler-styles.css"], "peers": [], "dependencies": [], "messages": [], diff --git a/gadgets/spoiler/gadget_definition%3Aspoiler b/gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler.json similarity index 85% rename from gadgets/spoiler/gadget_definition%3Aspoiler rename to gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler.json index c471b05..4819e12 100644 --- a/gadgets/spoiler/gadget_definition%3Aspoiler +++ b/gadgets/spoiler/mediawiki%3Agadgets%2Fspoiler.json @@ -8,8 +8,7 @@ "category": "view" }, "module": { - "scripts": ["spoiler.js"], - "styles": [], + "pages": ["spoiler.js"], "peers": ["spoiler-styles"], "dependencies": [], "messages": [], diff --git a/gadgets/spoiler/gadget%3Aspoiler-styles.css b/gadgets/spoiler/mediawiki%3Agadgets-spoiler-styles.css similarity index 100% rename from gadgets/spoiler/gadget%3Aspoiler-styles.css rename to gadgets/spoiler/mediawiki%3Agadgets-spoiler-styles.css diff --git a/gadgets/spoiler/gadget%3Aspoiler.js b/gadgets/spoiler/mediawiki%3Agadgets-spoiler.js similarity index 100% rename from gadgets/spoiler/gadget%3Aspoiler.js rename to gadgets/spoiler/mediawiki%3Agadgets-spoiler.js diff --git a/gadgets/tweetbot-quick-editor/gadget_definition%3Atweetbot-quick-editor b/gadgets/tweetbot-quick-editor/mediawiki%3Agadgets%2Ftweetbot-quick-editor.json similarity index 81% rename from gadgets/tweetbot-quick-editor/gadget_definition%3Atweetbot-quick-editor rename to gadgets/tweetbot-quick-editor/mediawiki%3Agadgets%2Ftweetbot-quick-editor.json index 49b0a9f..684ed70 100644 --- a/gadgets/tweetbot-quick-editor/gadget_definition%3Atweetbot-quick-editor +++ b/gadgets/tweetbot-quick-editor/mediawiki%3Agadgets%2Ftweetbot-quick-editor.json @@ -7,8 +7,7 @@ "category": "edit" }, "module": { - "scripts": ["tweetbot-quick-editor.js"], - "styles": [], + "pages": ["tweetbot-quick-editor.js"], "peers": [], "dependencies": ["mediawiki.api", "oojs-ui-core", "oojs-ui-windows"], "messages": [], diff --git a/gadgets/tweetbot-quick-editor/gadget%3Atweetbot-quick-editor.js b/gadgets/tweetbot-quick-editor/mediawiki%3Agadgets-tweetbot-quick-editor.js similarity index 100% rename from gadgets/tweetbot-quick-editor/gadget%3Atweetbot-quick-editor.js rename to gadgets/tweetbot-quick-editor/mediawiki%3Agadgets-tweetbot-quick-editor.js diff --git a/gadgets/visual-editor-for-femiwiki/gadget_definition%3Avisual-editor-for-femiwiki b/gadgets/visual-editor-for-femiwiki/mediawiki%3Agadgets%2Fvisual-editor-for-femiwiki similarity index 79% rename from gadgets/visual-editor-for-femiwiki/gadget_definition%3Avisual-editor-for-femiwiki rename to gadgets/visual-editor-for-femiwiki/mediawiki%3Agadgets%2Fvisual-editor-for-femiwiki index 05a56a7..63de9bc 100644 --- a/gadgets/visual-editor-for-femiwiki/gadget_definition%3Avisual-editor-for-femiwiki +++ b/gadgets/visual-editor-for-femiwiki/mediawiki%3Agadgets%2Fvisual-editor-for-femiwiki @@ -7,8 +7,7 @@ "category": "edit" }, "module": { - "scripts": ["visual-editor-for-femiwiki.js"], - "styles": [], + "pages": ["visual-editor-for-femiwiki.js"], "peers": [], "dependencies": ["ext.visualEditor.desktopArticleTarget.init"], "messages": [], diff --git a/gadgets/visual-editor-for-femiwiki/gadget%3Avisual-editor-for-femiwiki.js b/gadgets/visual-editor-for-femiwiki/mediawiki%3Agadgets-visual-editor-for-femiwiki.js similarity index 100% rename from gadgets/visual-editor-for-femiwiki/gadget%3Avisual-editor-for-femiwiki.js rename to gadgets/visual-editor-for-femiwiki/mediawiki%3Agadgets-visual-editor-for-femiwiki.js diff --git a/package.json b/package.json index 46f7112..babc76a 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "scripts": { "lint-filename": "yarn run lint-filename-etc && yarn run lint-filename-lua", "lint-filename-etc": "test -z \"$(yarn run --silent find-filename-etc)\" || (yarn run find-filename-etc && false)", - "find-filename-etc": "find pages/ gadgets/ -type f -regextype posix-extended -not -regex \".+/([a-z\\._-]|%3A)+\"", + "find-filename-etc": "find pages/ gadgets/ -type f -regextype posix-extended -not -regex \".+/([a-z\\._-]|%3A|%2F)+\"", "lint-filename-lua": "test -z \"$(yarn run --silent find-filename-lua)\" || (yarn run find-filename-lua && false)", "find-filename-lua": "find lua/ -type f -regextype posix-extended -not -regex \".+/([A-Z가-힣]([A-Za-z0-9가-힣_-]|%3A|%20|%2F)+)\"", "lint": "prettier . --check && yarn run lint-filename",