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:
|
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(" ") %>
|
||||||
<% }} %>
|
<% }} %>
|
||||||
@@ -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
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
name: "📸 Website screenshot"
|
name: "📸 Website screenshot"
|
||||||
category: other
|
category: community
|
||||||
index: 2
|
authors:
|
||||||
|
- lowlighter
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
- organization
|
- organization
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
name: "💹 Stock prices"
|
name: "💹 Stock prices"
|
||||||
category: other
|
category: social
|
||||||
index: 1
|
index: 8
|
||||||
supports:
|
supports:
|
||||||
- user
|
- user
|
||||||
- organization
|
- organization
|
||||||
|
|||||||
Reference in New Issue
Block a user