修复extension.json的问题

master
落雨楓 2 years ago
parent 50fc3ce7a6
commit bd762712a6

@ -2,13 +2,13 @@
"name": "Isekai Discover Box", "name": "Isekai Discover Box",
"namemsg": "isekai-widgets", "namemsg": "isekai-widgets",
"author": "Hyperzlib", "author": "Hyperzlib",
"version": "1.0.2", "version": "1.0.3",
"url": "https://github.com/Isekai-Project/mediawiki-extension-IsekaiWidgets", "url": "https://github.com/Isekai-Project/mediawiki-extension-IsekaiWidgets",
"descriptionmsg": "isekai-widgets-desc", "descriptionmsg": "isekai-widgets-desc",
"license-name": "GPL-2.0-or-later", "license-name": "GPL-2.0-or-later",
"type": "parserhook", "type": "parserhook",
"requires": { "requires": {
"MediaWiki": ">= 1.34.0" "MediaWiki": ">= 1.35.0"
}, },
"MessagesDirs": { "MessagesDirs": {
"IsekaiWidgets": [ "IsekaiWidgets": [
@ -28,7 +28,7 @@
"ResourceModules": { "ResourceModules": {
"ext.isekai.widgets.global": { "ext.isekai.widgets.global": {
"styles": [ "styles": [
"ext.isekai.alert.less" "ext.isekai.widgets.global.less"
] ]
}, },
"ext.isekai.createPage": { "ext.isekai.createPage": {
@ -55,6 +55,23 @@
] ]
}, },
"ext.isekai.discover": { "ext.isekai.discover": {
"scripts": [
"feedList/ext.isekai.feedList.js"
],
"styles": [
"feedList/ext.isekai.feedList.less"
],
"dependencies": [
"oojs",
"oojs-ui-core",
"vue"
],
"targets": [
"desktop",
"mobile"
]
},
"ext.isekai.feedList": {
"scripts": [ "scripts": [
"discover/ext.isekai.discover.js", "discover/ext.isekai.discover.js",
"discover/ext.isekai.discover.base.js" "discover/ext.isekai.discover.base.js"

@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<ul v-else class="isekai-list"> <ul v-else class="isekai-list">
<a class="isekai-list-item" v-for="(feedItem, index) in feedList" :key="index" :href="feedItem.url"> <a class="isekai-list-item" v-for="(feedItem, index) in feedList" :key="index" :href="feedItem.url" target="_blank">
<div class="isekai-list-item-content"> <div class="isekai-list-item-content">
<div class="isekai-list-item-title">{{ feedItem.title }}</div> <div class="isekai-list-item-title">{{ feedItem.title }}</div>
<div class="isekai-list-item-text">{{ feedItem.description }}</div> <div class="isekai-list-item-text">{{ feedItem.description }}</div>

Loading…
Cancel
Save