父节点
0364b2fc85
当前提交
7afbf1b9ce
|
@ -6,6 +6,7 @@
|
|||
"wikimedia/mediawiki"
|
||||
],
|
||||
"rules": {
|
||||
"no-jquery/no-global-selector": "off"
|
||||
"no-jquery/no-global-selector": "off",
|
||||
"no-jquery/no-fade": "off"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,7 +2,23 @@
|
|||
* Gongbi Skin
|
||||
* © 2015-2021 Isarra
|
||||
* © 2021-2023 WaitSpring
|
||||
*
|
||||
* This program 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.
|
||||
*
|
||||
* This program 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 this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
'use strict';
|
||||
|
||||
$( () => {
|
||||
// sidebar-inner only applies to desktop-small, but the toggles are hidden at
|
||||
// other resolutions regardless and the css overrides any visible effects.
|
||||
|
|
|
@ -19,7 +19,8 @@
|
|||
*/
|
||||
/* Popout menus (header) */
|
||||
|
||||
/* eslint-disable no-jquery/no-fade */
|
||||
'use strict';
|
||||
|
||||
$( () => {
|
||||
const toggleTime = 150;
|
||||
|
||||
|
|
|
@ -17,6 +17,9 @@
|
|||
* with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
mw.hook( 'wikipage.content' ).add( ( $content ) => {
|
||||
// Skip on Special:Recentchanges
|
||||
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) === 'Recentchanges' ) {
|
||||
|
|
43
skin.json
43
skin.json
|
@ -20,7 +20,7 @@
|
|||
"template": "MediaWiki\\Skin\\Gongbi\\GongbiTemplate",
|
||||
"responsive": true,
|
||||
"styles": [ "skins.gongbi" ],
|
||||
"scripts": [ "skins.gongbi.js" ],
|
||||
"scripts": [ "skins.gongbi.main", "skins.gongbi.mobile", "skins.gongbi.table-scroll" ],
|
||||
"bodyOnly": true
|
||||
}
|
||||
]
|
||||
|
@ -108,26 +108,53 @@
|
|||
},
|
||||
"resources/print.less": {
|
||||
"media": "print"
|
||||
},
|
||||
"resources/scripts/table-scroll.js.less": {
|
||||
},
|
||||
"resources/scripts/table-scroll.less": {
|
||||
"media": "screen"
|
||||
},
|
||||
"resources/scripts/toc.js.less": {
|
||||
"resources/scripts/toc.less": {
|
||||
"media": "screen"
|
||||
}
|
||||
},
|
||||
"@NOTE": "Remember to also update variables.less if you change the width cutoffs here. screen-misc.less and mobile.js may also need updating."
|
||||
},
|
||||
"skins.gongbi.js": {
|
||||
"skins.gongbi.main": {
|
||||
"es6": true,
|
||||
"targets": [
|
||||
"desktop",
|
||||
"mobile"
|
||||
],
|
||||
"packageFiles": [
|
||||
"resources/scripts/main.js"
|
||||
]
|
||||
},
|
||||
"skins.gongbi.mobile": {
|
||||
"es6": true,
|
||||
"targets": [
|
||||
"desktop",
|
||||
"mobile"
|
||||
],
|
||||
"packageFiles": [
|
||||
"resources/scripts/mobile.js"
|
||||
]
|
||||
},
|
||||
"skins.gongbi.toc": {
|
||||
"es6": true,
|
||||
"targets": [
|
||||
"desktop",
|
||||
"mobile"
|
||||
],
|
||||
"packageFiles": [
|
||||
"resources/scripts/toc.js"
|
||||
]
|
||||
},
|
||||
"skins.gongbi.table-scroll": {
|
||||
"es6": true,
|
||||
"targets": [
|
||||
"desktop",
|
||||
"mobile"
|
||||
],
|
||||
"packageFiles": [
|
||||
"resources/scripts/main.js",
|
||||
"resources/scripts/mobile.js",
|
||||
"resources/scripts/toc.js",
|
||||
"resources/scripts/table-scroll.js"
|
||||
]
|
||||
}
|
||||
|
|
正在加载...
在新工单中引用