chore: update metadata.yml
This commit is contained in:
@@ -15,5 +15,5 @@ The following plugins are maintained by Metric's core team:
|
||||
|
||||
The following plugins are provided and maintained by Metrics's user community:
|
||||
<% { let previous = null; for (const [plugin, {name, category, authors = []}] of Object.entries(plugins).filter(([key, value]) => (value)&&(value.category === "community")).sort(([an, a], [bn, b]) => a.category === b.category ? an.localeCompare(bn) : 0)) { %><%# -%>
|
||||
* [<%- name %>](/source/plugins/<%= plugin %>/README.md) <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %><%# -%>
|
||||
* [<%- name %>](/source/plugins/<%= plugin %>/README.md) <%- authors.map(author => `[@${author}](https://github.com/${author})`).join(" ") %>
|
||||
<% }} %>
|
||||
@@ -5,7 +5,7 @@ import path from "path"
|
||||
import url from "url"
|
||||
|
||||
//Defined categories
|
||||
const categories = ["core", "github", "social", "other", "community"]
|
||||
const categories = ["core", "github", "social", "community"]
|
||||
|
||||
/**Metadata descriptor parser */
|
||||
export default async function metadata({log = true} = {}) {
|
||||
@@ -64,7 +64,7 @@ metadata.plugin = async function({__plugins, name, logger}) {
|
||||
|
||||
//category
|
||||
if (!categories.includes(meta.category))
|
||||
meta.category = "other"
|
||||
meta.category = "community"
|
||||
|
||||
//Inputs parser
|
||||
{
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
name: "📸 Website screenshot"
|
||||
category: other
|
||||
index: 2
|
||||
category: community
|
||||
authors:
|
||||
- lowlighter
|
||||
supports:
|
||||
- user
|
||||
- organization
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
name: "💹 Stock prices"
|
||||
category: other
|
||||
index: 1
|
||||
category: social
|
||||
index: 8
|
||||
supports:
|
||||
- user
|
||||
- organization
|
||||
|
||||
Reference in New Issue
Block a user