Rebuild indexes

This commit is contained in:
lowlighter
2021-02-03 00:11:13 +01:00
parent ae84ae0094
commit 1becb62d84
5 changed files with 53 additions and 2 deletions

View File

@@ -24,7 +24,7 @@ Generate your metrics that you can embed everywhere, including your GitHub profi
<table>
<tr>
<th colspan="2" align="center">
<a href="source/plugins/README.md">🧩 18 plugins</a>
<a href="source/plugins/README.md">🧩 19 plugins</a>
</th>
</tr>
<tr>
@@ -190,6 +190,17 @@ Generate your metrics that you can embed everywhere, including your GitHub profi
<img width="900" height="1" alt="">
</td>
</tr>
<tr>
<th><a href="source/plugins/wakatime/README.md">⏰ WakaTime plugin</a></th>
<th><a href="source/plugins//README.md"></a></th>
</tr>
<tr>
<td align="center">
<img alt="" width="400" src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.wakatime.svg">
<img width="900" height="1" alt="">
</td>
<td align="center"><img width="900" height="1" alt=""></td>
</tr>
<tr>
<th colspan="2" align="center">
<a href="https://github.com/lowlighter/metrics/projects/1">More to come soon!</a>
@@ -549,6 +560,7 @@ https://my-personal-domain.com/my-github-user?base=0&base.repositories=1
<th nowrap="nowrap" align="center">📌</th>
<th nowrap="nowrap" align="center">🧮</th>
<th nowrap="nowrap" align="center">🐤</th>
<th nowrap="nowrap" align="center">⏰</th>
</tr>
<tr>
<th nowrap="nowrap">📗 Classic</th>
@@ -571,6 +583,7 @@ https://my-personal-domain.com/my-github-user?base=0&base.repositories=1
<th nowrap="nowrap" align="center" data-plugin="topics">✔️</th>
<th nowrap="nowrap" align="center" data-plugin="traffic">✔️</th>
<th nowrap="nowrap" align="center" data-plugin="tweets">✔️</th>
<th nowrap="nowrap" align="center" data-plugin="wakatime">✔️</th>
</tr>
<tr>
<th nowrap="nowrap">📘 Repository</th>
@@ -593,6 +606,7 @@ https://my-personal-domain.com/my-github-user?base=0&base.repositories=1
<th nowrap="nowrap" align="center" data-plugin="topics">❌</th>
<th nowrap="nowrap" align="center" data-plugin="traffic">✔️</th>
<th nowrap="nowrap" align="center" data-plugin="tweets">❌</th>
<th nowrap="nowrap" align="center" data-plugin="wakatime">❌</th>
</tr>
<tr>
<th nowrap="nowrap">📙 Terminal</th>
@@ -615,6 +629,7 @@ https://my-personal-domain.com/my-github-user?base=0&base.repositories=1
<th nowrap="nowrap" align="center" data-plugin="topics">❌</th>
<th nowrap="nowrap" align="center" data-plugin="traffic">✔️</th>
<th nowrap="nowrap" align="center" data-plugin="tweets">❌</th>
<th nowrap="nowrap" align="center" data-plugin="wakatime">❌</th>
</tr>
</table>
@@ -653,6 +668,7 @@ See their respective documentation for more informations about how to setup them
* [📌 Starred topics](/source/plugins/topics/README.md)
* [🧮 Repositories traffic](/source/plugins/traffic/README.md)
* [🐤 Latest tweets](/source/plugins/tweets/README.md)
* [⏰ WakaTime plugin](/source/plugins/wakatime/README.md)
### 🏦 Organizations metrics

View File

@@ -555,6 +555,36 @@ inputs:
description: Twitter username
default: .user.twitter
# ====================================================================================
# ⏰ WakaTime plugin
# Enable or disable plugin
plugin_wakatime:
description: Display WakaTime stats
default: no
# WakaTime API token
# See https://wakatime.com/settings/account get your API key
plugin_wakatime_token:
description: WakaTime API token
default: ""
# Time range to use for displayed stats
plugin_wakatime_days:
description: WakaTime time range
default: 7
# Sections to display
plugin_wakatime_sections:
description: Sections to display
default: time, projects, projects-graphs, languages, languages-graphs, editors, os
# Number of entries to display per graph
# Set to 0 to disable limitations
plugin_wakatime_limit:
description: Maximum number of entries to display per graph
default: 5
# ====================================================================================
# Action metadata

View File

@@ -78,6 +78,10 @@
"token": null, "//":"Twitter API token",
"enabled": false, "//": "Display recent tweets"
},
"wakatime":{
"token": null, "//":"WakaTime API token",
"enabled": false, "//": "Display WakaTime stats"
},
"//": ""
}
}

View File

@@ -27,7 +27,7 @@
//Auto-enable plugin if needed
if (conf.settings["plugins.default"])
settings.plugins[plugin].enabled = settings.plugins[plugin].enabled ?? (console.debug(`metrics/app > auto-enabling ${plugin}`), true)
//Mock plugins state and tokens if they're undefined
//Mock plugins tokens if they're undefined
if (mock) {
const tokens = Object.entries(conf.metadata.plugins[plugin].inputs).filter(([key, value]) => (!/^plugin_/.test(key))&&(value.type === "token")).map(([key]) => key)
for (const token of tokens) {

View File

@@ -23,3 +23,4 @@ See their respective documentation for more informations about how to setup them
* [📌 Starred topics](/source/plugins/topics/README.md)
* [🧮 Repositories traffic](/source/plugins/traffic/README.md)
* [🐤 Latest tweets](/source/plugins/tweets/README.md)
* [⏰ WakaTime plugin](/source/plugins/wakatime/README.md)