Skip to content

Commit 161c0bd

Browse files
committed
Update plugin order
1 parent f04e671 commit 161c0bd

File tree

32 files changed

+536
-510
lines changed

32 files changed

+536
-510
lines changed

README.md

Lines changed: 160 additions & 160 deletions
Large diffs are not rendered by default.

action.yml

Lines changed: 290 additions & 290 deletions
Large diffs are not rendered by default.

settings.example.json

Lines changed: 41 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -26,80 +26,80 @@
2626
},
2727
"plugins.default": false, "//": "Default plugin state (advised to let 'false' unless in debug mode)",
2828
"plugins": { "//": "Global plugin configuration",
29-
"activity":{
30-
"enabled": false, "//": "Display recent activity"
31-
},
32-
"contributors":{
33-
"enabled": false, "//": "Display repository contributors"
29+
"isocalendar":{
30+
"enabled": false, "//": "Display an isometric view of your commits calendar"
3431
},
35-
"followup":{
36-
"enabled": false, "//": "Display follow-up of repositories issues and pull requests"
32+
"languages":{
33+
"enabled": false, "//": "Display most used languages metrics"
3734
},
38-
"gists":{
39-
"enabled": false, "//": "Display gists metrics"
35+
"introduction":{
36+
"enabled": false, "//": "Display account or repository introduction"
4037
},
4138
"habits":{
4239
"enabled": false, "//": "Display coding habits metrics"
4340
},
44-
"introduction":{
45-
"enabled": false, "//": "Display account or repository introduction"
41+
"licenses":{
42+
"enabled": false, "//": "Display licenses informations"
4643
},
47-
"isocalendar":{
48-
"enabled": false, "//": "Display an isometric view of your commits calendar"
44+
"contributors":{
45+
"enabled": false, "//": "Display repository contributors"
4946
},
50-
"languages":{
51-
"enabled": false, "//": "Display most used languages metrics"
47+
"stars":{
48+
"enabled": false, "//": "Display recently starred repositories"
5249
},
53-
"licenses":{
54-
"enabled": false, "//": "Display licenses informations"
50+
"topics":{
51+
"enabled": false, "//": "Display starred topics"
5552
},
56-
"lines":{
57-
"enabled": false, "//": "Display lines of code metrics"
53+
"reactions":{
54+
"enabled": false, "//": "Display average issue comments reactions"
5855
},
5956
"people":{
6057
"enabled": false, "//": "Display GitHub users from various affiliations"
6158
},
62-
"projects":{
63-
"enabled": false, "//": "Display active projects"
59+
"gists":{
60+
"enabled": false, "//": "Display gists metrics"
6461
},
65-
"reactions":{
66-
"enabled": false, "//": "Display average issue comments reactions"
62+
"followup":{
63+
"enabled": false, "//": "Display follow-up of repositories issues and pull requests"
6764
},
68-
"skyline":{
69-
"enabled": false, "//": "Display GitHub Skyline 3D calendar"
65+
"lines":{
66+
"enabled": false, "//": "Display lines of code metrics"
67+
},
68+
"traffic":{
69+
"enabled": false, "//": "Display repositories traffic metrics"
7070
},
7171
"stargazers":{
7272
"enabled": false, "//": "Display stargazers metrics"
7373
},
74-
"stars":{
75-
"enabled": false, "//": "Display recently starred repositories"
74+
"projects":{
75+
"enabled": false, "//": "Display active projects"
7676
},
77-
"topics":{
78-
"enabled": false, "//": "Display starred topics"
77+
"activity":{
78+
"enabled": false, "//": "Display recent activity"
7979
},
80-
"traffic":{
81-
"enabled": false, "//": "Display repositories traffic metrics"
80+
"skyline":{
81+
"enabled": false, "//": "Display GitHub Skyline 3D calendar"
8282
},
83-
"anilist":{
84-
"enabled": false, "//": "Display data from your AniList account"
83+
"pagespeed":{
84+
"token": null, "//":"PageSpeed token",
85+
"enabled": false, "//": "Display a website Google PageSpeed metrics"
8586
},
8687
"music":{
8788
"token": null, "//":"Music provider personal token",
8889
"enabled": false, "//": "Display your music tracks"
8990
},
90-
"pagespeed":{
91-
"token": null, "//":"PageSpeed token",
92-
"enabled": false, "//": "Display a website Google PageSpeed metrics"
91+
"tweets":{
92+
"token": null, "//":"Twitter API token",
93+
"enabled": false, "//": "Display recent tweets"
9394
},
94-
"posts":{
95-
"enabled": false, "//": "Display recent posts"
95+
"anilist":{
96+
"enabled": false, "//": "Display data from your AniList account"
9697
},
9798
"stackoverflow":{
9899
"enabled": false, "//": "Stackoverflow metrics"
99100
},
100-
"tweets":{
101-
"token": null, "//":"Twitter API token",
102-
"enabled": false, "//": "Display recent tweets"
101+
"posts":{
102+
"enabled": false, "//": "Display recent posts"
103103
},
104104
"wakatime":{
105105
"token": null, "//":"WakaTime API token",

source/app/metrics/metadata.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@
2929
}
3030
//Reorder keys
3131
const {base, core, ...plugins} = Plugins //eslint-disable-line no-unused-vars
32-
Plugins = Object.fromEntries(Object.entries(Plugins).sort(([_an, a], [_bn, b]) => categories.indexOf(a.categorie) - categories.indexOf(b.categorie)))
33-
32+
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)))
33+
logger(`metrics/metadata > loaded [${Object.keys(Plugins).join(", ")}]`)
3434
//Load templates metadata
3535
let Templates = {}
3636
logger("metrics/metadata > loading templates metadata")

source/plugins/README.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,31 @@ See their respective documentation for more informations about how to setup them
77
* [🗃️ Base content](/source/plugins/base/README.md)
88
* [🧱 Core](/source/plugins/core/README.md)
99
* **Github**
10-
* [📰 Recent activity](/source/plugins/activity/README.md)
11-
* [🏅 Repository contributors](/source/plugins/contributors/README.md)
12-
* [🎟️ Follow-up of issues and pull requests](/source/plugins/followup/README.md)
13-
* [🎫 Gists](/source/plugins/gists/README.md)
14-
* [💡 Coding habits](/source/plugins/habits/README.md)
15-
* [🙋 Introduction](/source/plugins/introduction/README.md)
1610
* [📅 Isometric commit calendar](/source/plugins/isocalendar/README.md)
1711
* [🈷️ Most used languages](/source/plugins/languages/README.md)
12+
* [🙋 Introduction](/source/plugins/introduction/README.md)
13+
* [💡 Coding habits](/source/plugins/habits/README.md)
1814
* [📜 Repository licenses](/source/plugins/licenses/README.md)
19-
* [👨‍💻 Lines of code changed](/source/plugins/lines/README.md)
20-
* [🧑‍🤝‍🧑 People plugin](/source/plugins/people/README.md)
21-
* [🗂️ Active projects](/source/plugins/projects/README.md)
22-
* [🎭 Comment reactions](/source/plugins/reactions/README.md)
23-
* [🌇 GitHub Skyline 3D calendar](/source/plugins/skyline/README.md)
24-
* [✨ Stargazers over last weeks](/source/plugins/stargazers/README.md)
15+
* [🏅 Repository contributors](/source/plugins/contributors/README.md)
2516
* [🌟 Recently starred repositories](/source/plugins/stars/README.md)
2617
* [📌 Starred topics](/source/plugins/topics/README.md)
18+
* [🎭 Comment reactions](/source/plugins/reactions/README.md)
19+
* [🧑‍🤝‍🧑 People plugin](/source/plugins/people/README.md)
20+
* [🎫 Gists](/source/plugins/gists/README.md)
21+
* [🎟️ Follow-up of issues and pull requests](/source/plugins/followup/README.md)
22+
* [👨‍💻 Lines of code changed](/source/plugins/lines/README.md)
2723
* [🧮 Repositories traffic](/source/plugins/traffic/README.md)
24+
* [✨ Stargazers over last weeks](/source/plugins/stargazers/README.md)
25+
* [🗂️ Active projects](/source/plugins/projects/README.md)
26+
* [📰 Recent activity](/source/plugins/activity/README.md)
27+
* [🌇 GitHub Skyline 3D calendar](/source/plugins/skyline/README.md)
2828
* **Social**
29-
* [🌸 Anilist watch list and reading list](/source/plugins/anilist/README.md)
30-
* [🎼 Music plugin](/source/plugins/music/README.md)
3129
* [⏱️ Website performances](/source/plugins/pagespeed/README.md)
32-
* [✒️ Recent posts](/source/plugins/posts/README.md)
33-
* [🗨️ Stackoverflow plugin](/source/plugins/stackoverflow/README.md)
30+
* [🎼 Music plugin](/source/plugins/music/README.md)
3431
* [🐤 Latest tweets](/source/plugins/tweets/README.md)
32+
* [🌸 Anilist watch list and reading list](/source/plugins/anilist/README.md)
33+
* [🗨️ Stackoverflow plugin](/source/plugins/stackoverflow/README.md)
34+
* [✒️ Recent posts](/source/plugins/posts/README.md)
3535
* [⏰ WakaTime plugin](/source/plugins/wakatime/README.md)
3636
* **Health**
3737
* [💉 Nightscout](/source/plugins/nightscout/README.md)

source/plugins/activity/metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "📰 Recent activity"
22
cost: 1 REST request per 100 events
33
categorie: github
4+
index: 16
45
supports:
56
- user
67
- organization

source/plugins/anilist/metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "🌸 Anilist watch list and reading list"
22
cost: N/A
33
categorie: social
4+
index: 4
45
supports:
56
- user
67
- organization

source/plugins/contributors/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ It's especially useful to acknowledge contributors on release notes.
77
<table>
88
<td align="center">
99
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.contributors.svg">
10-
<details open><summary>With number of contributions</summary>
10+
<details><summary>With number of contributions</summary>
1111
<img src="https://github.com/lowlighter/lowlighter/blob/master/metrics.plugin.contributors.contributions.svg">
1212
</details>
1313
<img width="900" height="1" alt="">

source/plugins/contributors/metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "🏅 Repository contributors"
22
cost: N/A
33
categorie: github
4+
index: 5
45
supports:
56
- repository
67
inputs:

source/plugins/followup/metadata.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: "🎟️ Follow-up of issues and pull requests"
22
cost: 0 API request
33
categorie: github
4+
index: 11
45
supports:
56
- user
67
- organization

0 commit comments

Comments
 (0)