feat: extensions check + resolver
This commit is contained in:
@@ -34,7 +34,14 @@ module.exports = {
|
||||
result.push({ key, value })
|
||||
}, [])
|
||||
},
|
||||
async info() { return {} }
|
||||
async info () { return {} },
|
||||
async extensions () {
|
||||
const exts = Object.values(WIKI.extensions.ext).map(ext => _.pick(ext, ['key', 'title', 'description', 'isInstalled']))
|
||||
for (let ext of exts) {
|
||||
ext.isCompatible = await WIKI.extensions.ext[ext.key].isCompatible()
|
||||
}
|
||||
return exts
|
||||
}
|
||||
},
|
||||
SystemMutation: {
|
||||
async updateFlags (obj, args, context) {
|
||||
|
Reference in New Issue
Block a user