Skip to content

Commit

Permalink
feat: 迁移select2与morebits,添加select2依赖包
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoruaFox committed Feb 20, 2024
1 parent baae49a commit ae4ce95
Show file tree
Hide file tree
Showing 26 changed files with 9,665 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/AccessKeyCheatsheet/AccessKeyCheatsheet.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/AddSectionPlus/AddSectionPlus.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/AjaxLogin/AjaxLogin.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/LoginToEdit/LoginToEdit.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/i18n/i18n.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
"@types/toastify-js": "^1.12.3",
"filter-altered-clicks": "^2.0.1",
"jsx-dom": "^8.1.2",
"select2": "4.1.0-rc.0",
"tippy.js": "^6.3.7",
"toastify-js": "^1.12.0"
}
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/AccessKeyCheatsheet/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @base {@link https://en.wikipedia.org/wiki/User:Guarapiranga/accessKeysCheatSheet.js}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AccessKeyCheatsheet}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AccessKeyCheatsheet}
* @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0}
*/
2 changes: 1 addition & 1 deletion src/AddSectionPlus-pagestyles/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* _addText: '{{Gadget Header|license=GPL-3.0-or-later}}'
*
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AddSectionPlus-pagestyles}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AddSectionPlus-pagestyles}
* @author 安忆 <[email protected]>
* @license GPL-3.0-or-later {@link https://www.qiuwenbaike.cn/wiki/H:GPL-3.0}
*/
2 changes: 1 addition & 1 deletion src/AddSectionPlus/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* _addText: '{{Gadget Header|license=GPL-3.0-or-later}}'
*
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AddSectionPlus}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AddSectionPlus}
* @author 安忆 <[email protected]>
* @license GPL-3.0-or-later {@link https://www.qiuwenbaike.cn/wiki/H:GPL-3.0}
*/
4 changes: 2 additions & 2 deletions src/AdvancedSiteNotices-pagestyles/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @base {@link https://zh.wikipedia.org/wiki/MediaWiki:Gadget-AdvancedSiteNotices.css}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AdvancedSiteNotices-pagestyles}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AdvancedSiteNotices-pagestyles}
* @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0}
*/

Expand All @@ -13,6 +13,6 @@
* close Icon from OOjs UI
*
* @base {@link https://www.qiuwenbaike.cn/wiki/File:OOjs_UI_icon_close.svg}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AdvancedSiteNotices-pagestyles/images}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AdvancedSiteNotices-pagestyles/images}
* @license MIT {@link https://github.com/wikimedia/oojs-ui/blob/master/LICENSE-MIT}
*/
2 changes: 1 addition & 1 deletion src/AjaxLogin/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* _addText: '{{Gadget Header|license=GPL-3.0-or-later}}'
*
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//AjaxLogin}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/AjaxLogin}
* @author 安忆 <[email protected]>
* @license GPL-3.0-or-later {@link https://www.qiuwenbaike.cn/wiki/H:GPL-3.0}
*/
2 changes: 1 addition & 1 deletion src/LoginToEdit/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* SPDX-License-Identifier: CC-BY-SA-4.0
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @source {@link https://git.qiuwen.net.cn/InterfaceAdmin/QiuwenGadgets/src/branch/master/src/LoginToEdit}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/LoginToEdit}
* @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0}
*/
2 changes: 1 addition & 1 deletion src/i18n/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* SPDX-License-Identifier: GPL-3.0-or-later
* _addText: '{{Gadget Header|license=GPL-3.0-or-later}}'
*
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src//i18n}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/i18n}
* @author 安忆 <[email protected]>
* @license GPL-3.0-or-later {@link https://www.qiuwenbaike.cn/wiki/H:GPL-3.0}
*/
26 changes: 26 additions & 0 deletions src/morebits/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"rules": {
"@typescript-eslint/no-this-alias": [
"error",
{
"allowDestructuring": true,
"allowedNames": ["self", "udate", "thisCb", "thisProxy"]
}
],
"jsdoc/require-returns": "off",
"jsdoc/valid-types": "off",
"jsdoc/require-param-type": "off",
"mediawiki/class-doc": "off",
"new-cap": "off",
"no-new": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-dom-node-dataset": "off",
"unicorn/prefer-dom-node-remove": "off"
},
"globals": {
"Morebits": "readonly",
"Twinkle": "writable",
"wgULS": "readonly",
"jQuery": "readonly"
}
}
8 changes: 8 additions & 0 deletions src/morebits/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/**
* SPDX-License-Identifier: CC-BY-SA-4.0
* _addText: '{{Gadget Header|license=CC-BY-SA-4.0}}'
*
* @base {@link https://github.com/wikimedia-gadgets/twinkle-core/tree/master/morebits}
* @source {@link https://github.com/TopRealm/YsArxiv-Gadgets/tree/master/src/morebits}
* @license CC-BY-SA-4.0 {@link https://www.qiuwenbaike.cn/wiki/H:CC-BY-SA-4.0}
*/
7 changes: 7 additions & 0 deletions src/morebits/definition.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"enable": true,
"description": "<span id=\"Gadget-morebits\"></span> morebits.js Twinkle依赖库之一",
"section": "compatibility",
"dependencies": ["ext.gadget.select2", "jquery.ui", "mediawiki.Title", "mediawiki.user", "mediawiki.util"],
"hidden": true
}
Loading

0 comments on commit ae4ce95

Please sign in to comment.