更新API版本

master
落雨楓 1 year ago
parent 129073f709
commit 364d15b516

@ -7,9 +7,7 @@
"descriptionmsg": "isekaiwiki-misc-desc", "descriptionmsg": "isekaiwiki-misc-desc",
"license-name": "MIT", "license-name": "MIT",
"type": "other", "type": "other",
"requires": { "requires": {},
},
"MessagesDirs": { "MessagesDirs": {
"IsekaiMisc": [ "IsekaiMisc": [
"i18n" "i18n"
@ -59,7 +57,9 @@
}, },
"ResourceModules": { "ResourceModules": {
"ext.isekai": { "ext.isekai": {
"scripts": ["ext.isekai.js"], "scripts": [
"ext.isekai.js"
],
"dependencies": [ "dependencies": [
"oojs-ui-core", "oojs-ui-core",
"oojs-ui-windows", "oojs-ui-windows",
@ -88,40 +88,61 @@
] ]
}, },
"ext.isekai.styles": { "ext.isekai.styles": {
"styles": ["ext.isekai.less"], "styles": [
"ext.isekai.less"
],
"targets": [ "targets": [
"desktop", "desktop",
"mobile" "mobile"
] ]
}, },
"lib.isekai.echarts": { "lib.isekai.echarts": {
"scripts": ["lib/echarts.custom.min.js"] "scripts": [
"lib/echarts.custom.min.js"
]
}, },
"ext.isekai.chart": { "ext.isekai.chart": {
"scripts": ["ext.isekai.chart.js"], "scripts": [
"styles": ["ext.isekai.chart.less"] "ext.isekai.chart.js"
],
"styles": [
"ext.isekai.chart.less"
]
}, },
"ext.treeview": { "ext.treeview": {
"scripts": ["ext.treeview.js"], "scripts": [
"styles": ["ext.treeview.css"], "ext.treeview.js"
],
"styles": [
"ext.treeview.css"
],
"targets": [ "targets": [
"desktop", "desktop",
"mobile" "mobile"
] ]
}, },
"ext.isekai.ve": { "ext.isekai.ve": {
"scripts": ["ext.isekai.ve.js"], "scripts": [
"ext.isekai.ve.js"
],
"targets": [ "targets": [
"desktop", "desktop",
"mobile" "mobile"
],
"dependencies": [
"ext.visualEditor.mwcore",
"ext.visualEditor.mwmeta",
"ext.visualEditor.desktopArticleTarget"
] ]
}, },
"ext.isekai.function-btn": { "ext.isekai.function-btn": {
"scripts": ["ext.isekai.function-btn.js"], "scripts": [
"dependencies": [ "ext.isekai.function-btn.js"
"ext.isekai.baseWidgets", ],
"dependencies": [
"ext.isekai.baseWidgets",
"oojs-ui.styles.icons-media" "oojs-ui.styles.icons-media"
], ],
"targets": [ "targets": [
"desktop", "desktop",
"mobile" "mobile"
@ -132,9 +153,13 @@
] ]
} }
}, },
"VisualEditorPluginModules": [ "attributes": {
"ext.isekai.ve" "VisualEditor": {
], "PluginModules": [
"ext.isekai.ve"
]
}
},
"ResourceFileModulePaths": { "ResourceFileModulePaths": {
"localBasePath": "modules", "localBasePath": "modules",
"remoteExtPath": "IsekaiMisc/modules" "remoteExtPath": "IsekaiMisc/modules"
@ -147,12 +172,12 @@
"activated-editor": {} "activated-editor": {}
}, },
"config": { "config": {
"IsekaiShowAds": { "IsekaiShowAds": {
"value": false "value": false
}, },
"IsekaiActivateEditorRequiredWords": { "IsekaiActivateEditorRequiredWords": {
"value": 300 "value": 300
} }
}, },
"manifest_version": 2 "manifest_version": 2
} }

@ -375,7 +375,7 @@ HTML
$userFactory = $services->getUserFactory(); $userFactory = $services->getUserFactory();
$userGroupManager = $services->getUserGroupManager(); $userGroupManager = $services->getUserGroupManager();
if ($wikiPage->getTitle()->getNamespace() === NS_MAIN && $user->isRegistered()) { if ($wikiPage->getNamespace() === NS_MAIN && $user->isRegistered()) {
$userGroups = $userGroupManager->getUserGroups($user); $userGroups = $userGroupManager->getUserGroups($user);
if (!in_array('activated-editor', $userGroups)) { if (!in_array('activated-editor', $userGroups)) {
$realUser = $userFactory->newFromId($user->getId()); $realUser = $userFactory->newFromId($user->getId());

Loading…
Cancel
Save