mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-22 04:19:54 +00:00
Update pluginManager.service.ts
This commit is contained in:
parent
0cf4945175
commit
5a3a39e795
@ -41,15 +41,18 @@ export class PluginManagerService {
|
|||||||
},
|
},
|
||||||
})
|
})
|
||||||
).pipe(
|
).pipe(
|
||||||
map(response => response.data.objects.map(item => ({
|
map(response => response.data.objects
|
||||||
name: item.package.name.substring(namePrefix.length),
|
.filter(item => !item.keywords?.includes('tabby-dummy-transition-plugin'))
|
||||||
packageName: item.package.name,
|
.map(item => ({
|
||||||
description: item.package.description,
|
name: item.package.name.substring(namePrefix.length),
|
||||||
version: item.package.version,
|
packageName: item.package.name,
|
||||||
homepage: item.package.links.homepage,
|
description: item.package.description,
|
||||||
author: (item.package.author || {}).name,
|
version: item.package.version,
|
||||||
isOfficial: item.package.publisher.name === OFFICIAL_NPM_ACCOUNT,
|
homepage: item.package.links.homepage,
|
||||||
}))),
|
author: (item.package.author || {}).name,
|
||||||
|
isOfficial: item.package.publisher.name === OFFICIAL_NPM_ACCOUNT,
|
||||||
|
}))
|
||||||
|
),
|
||||||
map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))),
|
map(plugins => plugins.filter(x => x.packageName.startsWith(namePrefix))),
|
||||||
map(plugins => plugins.filter(x => !BLACKLIST.includes(x.packageName))),
|
map(plugins => plugins.filter(x => !BLACKLIST.includes(x.packageName))),
|
||||||
map(plugins => plugins.sort((a, b) => a.name.localeCompare(b.name))),
|
map(plugins => plugins.sort((a, b) => a.name.localeCompare(b.name))),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user