The great refactor (#82)

This commit is contained in:
Simon Lecoq
2021-01-30 12:31:09 +01:00
committed by GitHub
parent f8c6d19a4e
commit 682e43e10b
158 changed files with 6738 additions and 5022 deletions

View File

@@ -1,82 +1,82 @@
{
"//":"This is an example of configuration file for web instance",
"//":"It is not needed when using metrics as GitHub action",
"//": "Example of configuration for metrics web instance",
"//": "====================================================================",
"token":"MY GITHUB API TOKEN", "//":"Your own GitHub API token (required)",
"restricted":[], "//":"List of authorized users, leave empty for unrestricted",
"cached":3600000, "//":"Cached time for generated images, 0 to disable",
"maxusers":0, "//":"Maximum number of users, 0 for unlimited",
"ratelimiter":null, "//":"Rate limiter (see express-rate-limit documentation for options)",
"port":3000, "//":"Listening port",
"optimize":true, "//":"Optimize SVG image",
"debug":false, "//":"Debug mode",
"mocked":false, "//":"Use mocked data",
"repositories":100, "//":"Number of repositories to use to compute metrics",
"community":{ "//":"Community settings",
"templates":[], "//":"Community templates"
"token": "MY GITHUB API TOKEN", "//": "GitHub Personal Token (required)",
"restricted": [], "//": "Authorized users (empty to disable)",
"maxusers": 0, "//": "Maximum users, (0 to disable)",
"cached": 3600000, "//": "Cache time rendered metrics (0 to disable)",
"ratelimiter": null, "//": "Rate limiter (see express-rate-limit documentation)",
"port": 3000, "//": "Listening port",
"optimize": true, "//": "SVG optimization",
"debug": false, "//": "Debug logs",
"mocked": false, "//": "Use mocked data instead of live APIs",
"repositories": 100, "//": "Number of repositories to use",
"community": {
"templates": [], "//": "Additional community templates to setup"
},
"templates":{ "//":"Template configuration",
"default":"classic", "//":"Default template",
"enabled":[], "//":"Enabled templates, leave empty to enable all templates"
"templates": {
"default": "classic", "//": "Default template",
"enabled": [], "//": "Enabled templates (empty to enable all)"
},
"plugins":{ "//":"Additional plugins (optional)",
"pagespeed":{ "//":"Pagespeed plugin",
"enabled":false, "//":"Enable or disable PageSpeed metrics",
"token":null, "//":"Pagespeed token (optional)"
"plugins": { "//": "Global plugin configuration",
"activity":{
"enabled": false, "//": "Display recent activity"
},
"traffic":{ "//":"Traffic plugin (GitHub API token must be RW for this to work)",
"enabled":false, "//":"Enable or disable repositories total page views is last two weeks"
"anilist":{
"enabled": false, "//": "Display data from your AniList account"
},
"lines":{ "//":"Lines plugin",
"enabled":false, "//":"Enable or disable repositories total lines added/removed"
"followup":{
"enabled": false, "//": "Display follow-up of repositories issues and pull requests"
},
"habits":{ "//":"Habits plugin",
"enabled":false, "//":"Enable or disable coding habits metrics",
"from":200, "//":"Number of activity events to base habits on (up to 1000)"
"gists":{
"enabled": false, "//": "Display gists metrics"
},
"languages":{ "//":"Languages plugin",
"enabled":false, "//":"Enable or disable most used languages metrics"
"habits":{
"enabled": false, "//": "Display coding habits metrics"
},
"followup":{ "//":"Follow-up plugin",
"enabled":false, "//":"Enable or disable owned repositories issues and pull requests metrics"
"isocalendar":{
"enabled": false, "//": "Display an isometric view of your commits calendar"
},
"music":{ "//":"Music plugin",
"enabled":false, "//":"Enable or disable music recently played / random track from playlist",
"token":null, "//":"Music provider token (may be required depending on provider)"
"languages":{
"enabled": false, "//": "Display most used languages metrics"
},
"posts":{ "//":"Posts plugin",
"enabled":false, "//":"Enable or disable recents posts"
"lines":{
"enabled": false, "//": "Display lines of code metrics"
},
"isocalendar":{ "//":"Isometric calendar plugin",
"enabled":false, "//":"Enable or disable isometric calendar"
"music":{
"token": null, "//":"Music provider personal token",
"enabled": false, "//": "Display your music tracks"
},
"gists":{ "//":"Gists plugin",
"enabled":false, "//":"Enable or disable gists metrics"
"pagespeed":{
"token": null, "//":"PageSpeed token",
"enabled": false, "//": "Display a website Google PageSpeed metrics"
},
"topics":{ "//":"Topics plugin",
"enabled":false, "//":"Enable or disable starred topics display"
"people":{
"enabled": false, "//": "Display GitHub users from various affiliations"
},
"projects":{ "//":"Projects plugin",
"enabled":false, "//":"Enable or disable personal projects display"
"posts":{
"enabled": false, "//": "Display recent posts"
},
"tweets":{ "//":"Tweets plugin",
"enabled":false, "//":"Enable or disable recent tweets display",
"token":null, "//":"Twitter token (required when enabled)"
"projects":{
"enabled": false, "//": "Display active projects"
},
"stars":{ "//":"Stars plugin",
"enabled":false, "//":"Enable or disable recently starred repositories display"
"stargazers":{
"enabled": false, "//": "Display stargazers metrics"
},
"stargazers":{ "//":"Stargazers plugin",
"enabled":false, "//":"Enable or disable stargazers charts display"
"stars":{
"enabled": false, "//": "Display recently starred repositories"
},
"activity":{ "//":"Activity plugin",
"enabled":false, "//":"Enable or disable recent activity display"
"topics":{
"enabled": false, "//": "Display starred topics"
},
"people":{ "//":"People plugin",
"enabled":false, "//":"Enable or disable people display"
"traffic":{
"enabled": false, "//": "Display repositories traffic metrics"
},
"anilist":{ "//":"Anilist plugin",
"enabled":false, "//":"Enable or disable anilist display"
}
"tweets":{
"token": null, "//":"Twitter API token",
"enabled": false, "//": "Display recent tweets"
},
"//": ""
}
}