3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-06-16 02:55:03 +00:00

refactor: consolidate pluginInfo internal/legacy fields

This commit is contained in:
Dragory 2024-05-19 11:15:03 +00:00
parent 8a4f7fe0e8
commit dfdc6566cf
No known key found for this signature in database
41 changed files with 46 additions and 51 deletions

View file

@ -156,14 +156,14 @@
...menu,
{
label: 'Plugins',
items: this.plugins.filter(plugin => !plugin.info.legacy).map(plugin => ({
items: this.plugins.filter(plugin => plugin.info.type === "stable").map(plugin => ({
label: plugin.info.prettyName || plugin.name,
to: `/docs/plugins/${plugin.name}`,
})),
},
{
label: "Legacy Plugins",
items: this.plugins.filter(plugin => plugin.info.legacy).map(plugin => ({
items: this.plugins.filter(plugin => plugin.info.type === "legacy").map(plugin => ({
label: plugin.info.prettyName || plugin.name,
to: `/docs/plugins/${plugin.name}`,
})),