deprecate(plugins/support): deprecation

This commit is contained in:
lowlighter
2022-07-29 15:46:01 -04:00
parent 9e48b7c830
commit 5bc9df2f42
5 changed files with 8 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ Generate metrics that can be embedded everywhere, including your GitHub profile
</tr>
<% {
let cell = 0
const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")))
const elements = Object.entries(plugins).filter(([key, value]) => (value)&&(!["base", "core"].includes(key)&&(value.category !== "community")&&(!value.deprecation)))
-%>
<tr>
<th colspan="2" align="center">

View File

@@ -3,11 +3,11 @@
Plugins provide additional content and lets you customize rendered metrics.
**📦 Maintained by core team**
<% { 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, deprecation, 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)) { %>
<% if (previous !== category) { previous = category -%>
* **<%= `${category.charAt(0).toLocaleUpperCase()}${category.substring(1)} plugins` %>**
<% } -%>
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%>
* [<%- name %> <sub>`<%= plugin %>`</sub>](/source/plugins/<%= plugin %>/README.md)<%# -%><% if (deprecation) { %><sub>⚠️ deprecated</sub><% } %>
<% }} %>
**🎲 Maintained by community**