Skip to content

Commit

Permalink
Update plugin order
Browse files Browse the repository at this point in the history
  • Loading branch information
lowlighter committed Mar 12, 2021
1 parent f04e671 commit 161c0bd
Show file tree
Hide file tree
Showing 32 changed files with 536 additions and 510 deletions.
320 changes: 160 additions & 160 deletions README.md

Large diffs are not rendered by default.

580 changes: 290 additions & 290 deletions action.yml

Large diffs are not rendered by default.

82 changes: 41 additions & 41 deletions settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,80 +26,80 @@
},
"plugins.default": false, "//": "Default plugin state (advised to let 'false' unless in debug mode)",
"plugins": { "//": "Global plugin configuration",
"activity":{
"enabled": false, "//": "Display recent activity"
},
"contributors":{
"enabled": false, "//": "Display repository contributors"
"isocalendar":{
"enabled": false, "//": "Display an isometric view of your commits calendar"
},
"followup":{
"enabled": false, "//": "Display follow-up of repositories issues and pull requests"
"languages":{
"enabled": false, "//": "Display most used languages metrics"
},
"gists":{
"enabled": false, "//": "Display gists metrics"
"introduction":{
"enabled": false, "//": "Display account or repository introduction"
},
"habits":{
"enabled": false, "//": "Display coding habits metrics"
},
"introduction":{
"enabled": false, "//": "Display account or repository introduction"
"licenses":{
"enabled": false, "//": "Display licenses informations"
},
"isocalendar":{
"enabled": false, "//": "Display an isometric view of your commits calendar"
"contributors":{
"enabled": false, "//": "Display repository contributors"
},
"languages":{
"enabled": false, "//": "Display most used languages metrics"
"stars":{
"enabled": false, "//": "Display recently starred repositories"
},
"licenses":{
"enabled": false, "//": "Display licenses informations"
"topics":{
"enabled": false, "//": "Display starred topics"
},
"lines":{
"enabled": false, "//": "Display lines of code metrics"
"reactions":{
"enabled": false, "//": "Display average issue comments reactions"
},
"people":{
"enabled": false, "//": "Display GitHub users from various affiliations"
},
"projects":{
"enabled": false, "//": "Display active projects"
"gists":{
"enabled": false, "//": "Display gists metrics"
},
"reactions":{
"enabled": false, "//": "Display average issue comments reactions"
"followup":{
"enabled": false, "//": "Display follow-up of repositories issues and pull requests"
},
"skyline":{
"enabled": false, "//": "Display GitHub Skyline 3D calendar"
"lines":{
"enabled": false, "//": "Display lines of code metrics"
},
"traffic":{
"enabled": false, "//": "Display repositories traffic metrics"
},
"stargazers":{
"enabled": false, "//": "Display stargazers metrics"
},
"stars":{
"enabled": false, "//": "Display recently starred repositories"
"projects":{
"enabled": false, "//": "Display active projects"
},
"topics":{
"enabled": false, "//": "Display starred topics"
"activity":{
"enabled": false, "//": "Display recent activity"
},
"traffic":{
"enabled": false, "//": "Display repositories traffic metrics"
"skyline":{
"enabled": false, "//": "Display GitHub Skyline 3D calendar"
},
"anilist":{
"enabled": false, "//": "Display data from your AniList account"
"pagespeed":{
"token": null, "//":"PageSpeed token",
"enabled": false, "//": "Display a website Google PageSpeed metrics"
},
"music":{
"token": null, "//":"Music provider personal token",
"enabled": false, "//": "Display your music tracks"
},
"pagespeed":{
"token": null, "//":"PageSpeed token",
"enabled": false, "//": "Display a website Google PageSpeed metrics"
"tweets":{
"token": null, "//":"Twitter API token",
"enabled": false, "//": "Display recent tweets"
},
"posts":{
"enabled": false, "//": "Display recent posts"
"anilist":{
"enabled": false, "//": "Display data from your AniList account"
},
"stackoverflow":{
"enabled": false, "//": "Stackoverflow metrics"
},
"tweets":{
"token": null, "//":"Twitter API token",
"enabled": false, "//": "Display recent tweets"
"posts":{
"enabled": false, "//": "Display recent posts"
},
"wakatime":{
"token": null, "//":"WakaTime API token",
Expand Down
4 changes: 2 additions & 2 deletions source/app/metrics/metadata.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@
}
//Reorder keys
const {base, core, ...plugins} = Plugins //eslint-disable-line no-unused-vars
Plugins = Object.fromEntries(Object.entries(Plugins).sort(([_an, a], [_bn, b]) => categories.indexOf(a.categorie) - categories.indexOf(b.categorie)))

Plugins = Object.fromEntries(Object.entries(Plugins).sort(([_an, a], [_bn, b]) => a.categorie === b.categorie ? (a.index ?? Infinity) - (b.index ?? Infinity) : categories.indexOf(a.categorie) - categories.indexOf(b.categorie)))
logger(`metrics/metadata > loaded [${Object.keys(Plugins).join(", ")}]`)
//Load templates metadata
let Templates = {}
logger("metrics/metadata > loading templates metadata")
Expand Down
32 changes: 16 additions & 16 deletions source/plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,31 +7,31 @@ See their respective documentation for more informations about how to setup them
* [🗃️ Base content](/source/plugins/base/README.md)
* [🧱 Core](/source/plugins/core/README.md)
* **Github**
* [📰 Recent activity](/source/plugins/activity/README.md)
* [🏅 Repository contributors](/source/plugins/contributors/README.md)
* [🎟️ Follow-up of issues and pull requests](/source/plugins/followup/README.md)
* [🎫 Gists](/source/plugins/gists/README.md)
* [💡 Coding habits](/source/plugins/habits/README.md)
* [🙋 Introduction](/source/plugins/introduction/README.md)
* [📅 Isometric commit calendar](/source/plugins/isocalendar/README.md)
* [🈷️ Most used languages](/source/plugins/languages/README.md)
* [🙋 Introduction](/source/plugins/introduction/README.md)
* [💡 Coding habits](/source/plugins/habits/README.md)
* [📜 Repository licenses](/source/plugins/licenses/README.md)
* [👨‍💻 Lines of code changed](/source/plugins/lines/README.md)
* [🧑‍🤝‍🧑 People plugin](/source/plugins/people/README.md)
* [🗂️ Active projects](/source/plugins/projects/README.md)
* [🎭 Comment reactions](/source/plugins/reactions/README.md)
* [🌇 GitHub Skyline 3D calendar](/source/plugins/skyline/README.md)
* [✨ Stargazers over last weeks](/source/plugins/stargazers/README.md)
* [🏅 Repository contributors](/source/plugins/contributors/README.md)
* [🌟 Recently starred repositories](/source/plugins/stars/README.md)
* [📌 Starred topics](/source/plugins/topics/README.md)
* [🎭 Comment reactions](/source/plugins/reactions/README.md)
* [🧑‍🤝‍🧑 People plugin](/source/plugins/people/README.md)
* [🎫 Gists](/source/plugins/gists/README.md)
* [🎟️ Follow-up of issues and pull requests](/source/plugins/followup/README.md)
* [👨‍💻 Lines of code changed](/source/plugins/lines/README.md)
* [🧮 Repositories traffic](/source/plugins/traffic/README.md)
* [✨ Stargazers over last weeks](/source/plugins/stargazers/README.md)
* [🗂️ Active projects](/source/plugins/projects/README.md)
* [📰 Recent activity](/source/plugins/activity/README.md)
* [🌇 GitHub Skyline 3D calendar](/source/plugins/skyline/README.md)
* **Social**
* [🌸 Anilist watch list and reading list](/source/plugins/anilist/README.md)
* [🎼 Music plugin](/source/plugins/music/README.md)
* [⏱️ Website performances](/source/plugins/pagespeed/README.md)
* [✒️ Recent posts](/source/plugins/posts/README.md)
* [🗨️ Stackoverflow plugin](/source/plugins/stackoverflow/README.md)
* [🎼 Music plugin](/source/plugins/music/README.md)
* [🐤 Latest tweets](/source/plugins/tweets/README.md)
* [🌸 Anilist watch list and reading list](/source/plugins/anilist/README.md)
* [🗨️ Stackoverflow plugin](/source/plugins/stackoverflow/README.md)
* [✒️ Recent posts](/source/plugins/posts/README.md)
* [⏰ WakaTime plugin](/source/plugins/wakatime/README.md)
* **Health**
* [💉 Nightscout](/source/plugins/nightscout/README.md)
1 change: 1 addition & 0 deletions source/plugins/activity/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "📰 Recent activity"
cost: 1 REST request per 100 events
categorie: github
index: 16
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/anilist/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🌸 Anilist watch list and reading list"
cost: N/A
categorie: social
index: 4
supports:
- user
- organization
Expand Down
2 changes: 1 addition & 1 deletion source/plugins/contributors/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ It's especially useful to acknowledge contributors on release notes.
<table>
<td align="center">
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.contributors.svg">
<details open><summary>With number of contributions</summary>
<details><summary>With number of contributions</summary>
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.contributors.contributions.svg">
</details>
<img width="900" height="1" alt="">
Expand Down
1 change: 1 addition & 0 deletions source/plugins/contributors/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🏅 Repository contributors"
cost: N/A
categorie: github
index: 5
supports:
- repository
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/followup/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🎟️ Follow-up of issues and pull requests"
cost: 0 API request
categorie: github
index: 11
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/gists/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🎫 Gists"
cost: 1 GraphQL request per 100 gists
categorie: github
index: 10
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/habits/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "💡 Coding habits"
cost: 1 REST request per 100 events + 1 REST request pet commit
categorie: github
index: 3
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/introduction/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🙋 Introduction"
cost: 1 GraphQL request
categorie: github
index: 2
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/isocalendar/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "📅 Isometric commit calendar"
cost: 2-3 REST requests
categorie: github
index: 0
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/languages/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🈷️ Most used languages"
cost: 0 API request
categorie: github
index: 1
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/licenses/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "📜 Repository licenses"
cost: N/A
categorie: github
index: 4
supports:
- repository
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/lines/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "👨‍💻 Lines of code changed"
cost: 1 REST request per repository
categorie: github
index: 12
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/music/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🎼 Music plugin"
cost: N/A
categorie: social
index: 2
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/nightscout/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "💉 Nightscout"
cost: N/A
categorie: health
index: 1
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/pagespeed/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "⏱️ Website performances"
cost: N/A
categorie: social
index: 1
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/people/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🧑‍🤝‍🧑 People plugin"
cost: 1 GraphQL request per 100 users + 1 REST request per user in "plugin_people_thanks"
categorie: github
index: 9
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/posts/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "✒️ Recent posts"
cost: N/A
categorie: social
index: 6
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/projects/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🗂️ Active projects"
cost: 1 GraphQL request + 1 GraphQL request per repository project
categorie: github
index: 15
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/reactions/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🎭 Comment reactions"
cost: 1 GraphQL request per 100 issues and issues comments fetched
categorie: github
index: 8
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/skyline/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🌇 GitHub Skyline 3D calendar"
cost: N/A
categorie: github
index: 18
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/stackoverflow/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🗨️ Stackoverflow plugin"
cost: N/A
categorie: social
index: 5
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/stargazers/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "✨ Stargazers over last weeks"
cost: 1 GraphQL request per 100 stargazers
categorie: github
index: 14
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/stars/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🌟 Recently starred repositories"
cost: 1 GraphQL request
categorie: github
index: 6
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/topics/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "📌 Starred topics"
cost: N/A
categorie: github
index: 7
supports:
- user
inputs:
Expand Down
1 change: 1 addition & 0 deletions source/plugins/traffic/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🧮 Repositories traffic"
cost: 1 REST request per repository
categorie: github
index: 13
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/tweets/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "🐤 Latest tweets"
cost: N/A
categorie: social
index: 3
supports:
- user
- organization
Expand Down
1 change: 1 addition & 0 deletions source/plugins/wakatime/metadata.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: "⏰ WakaTime plugin"
cost: N/A
categorie: social
index: 7
supports:
- user
inputs:
Expand Down

0 comments on commit 161c0bd

Please sign in to comment.