chore: update metadata.yml

This commit is contained in:
lowlighter
2021-11-26 18:49:24 -05:00
parent b327829235
commit edc0d52983
4 changed files with 8 additions and 7 deletions

View File

@@ -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: 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)) { %><%# -%> <% { 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(" ") %>
<% }} %> <% }} %>

View File

@@ -5,7 +5,7 @@ import path from "path"
import url from "url" import url from "url"
//Defined categories //Defined categories
const categories = ["core", "github", "social", "other", "community"] const categories = ["core", "github", "social", "community"]
/**Metadata descriptor parser */ /**Metadata descriptor parser */
export default async function metadata({log = true} = {}) { export default async function metadata({log = true} = {}) {
@@ -64,7 +64,7 @@ metadata.plugin = async function({__plugins, name, logger}) {
//category //category
if (!categories.includes(meta.category)) if (!categories.includes(meta.category))
meta.category = "other" meta.category = "community"
//Inputs parser //Inputs parser
{ {

View File

@@ -1,6 +1,7 @@
name: "📸 Website screenshot" name: "📸 Website screenshot"
category: other category: community
index: 2 authors:
- lowlighter
supports: supports:
- user - user
- organization - organization

View File

@@ -1,6 +1,6 @@
name: "💹 Stock prices" name: "💹 Stock prices"
category: other category: social
index: 1 index: 8
supports: supports:
- user - user
- organization - organization