ci: auto-regenerate files [skip ci]

This commit is contained in:
lowlighter
2022-07-05 22:40:10 -04:00
parent 130c74b266
commit 87e2f6ced5
14 changed files with 95 additions and 72 deletions

63
settings.example.json generated
View File

@@ -2,38 +2,53 @@
"//": "Example of configuration for metrics web instance", "//": "Example of configuration for metrics web instance",
"//": "====================================================================", "//": "====================================================================",
"token": "MY GITHUB API TOKEN", "//": "GitHub Personal Token (required)", "token": "GITHUB API TOKEN", "//": "GitHub Personal Token (required)",
"restricted": [], "//": "Authorized users (empty to disable)", "modes": ["embed", "insights"], "//": "Web instance enabled modes",
"maxusers": 0, "//": "Maximum users, (0 to disable)", "restricted": [], "//": "Authorized users (empty to disable)",
"cached": 3600000, "//": "Cache time rendered metrics (0 to disable)", "maxusers": 0, "//": "Maximum users, (0 to disable)",
"ratelimiter": null, "//": "Rate limiter (see express-rate-limit documentation)", "cached": 3600000, "//": "Cache time rendered metrics (0 to disable)",
"port": 3000, "//": "Listening port", "ratelimiter": null, "//": "Rate limiter (see express-rate-limit documentation)",
"optimize": true, "//": "SVG optimization", "port": 3000, "//": "Listening port",
"debug": false, "//": "Debug logs", "optimize": true, "//": "SVG optimization",
"debug.headless": false, "//": "Debug puppeteer process", "debug": false, "//": "Debug logs",
"mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)", "debug.headless": false, "//": "Debug puppeteer process",
"repositories": 100, "//": "Number of repositories to use", "mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)",
"padding": ["0", "8 + 11%"], "//": "Image padding (default)", "repositories": 100, "//": "Number of repositories to use",
"padding": ["0", "8 + 11%"], "//": "Image padding (default)",
"outputs": ["svg", "png", "json"], "//": "Image output formats (empty to enable all)",
"hosted": { "hosted": {
"by": "", "//": "Web instance host (displayed in footer)", "by": "", "//": "Web instance host (displayed in footer)",
"link": "", "//": "Web instance host link (displayed in footer)" "link": "", "//": "Web instance host link (displayed in footer)"
}, },
"community": { "community": {
"templates": [], "//": "Additional community templates to setup" "templates": [], "//": "Additional community templates to setup"
}, },
"templates": { "templates": {
"default": "classic", "//": "Default template", "default": "classic", "//": "Default template",
"enabled": [], "//": "Enabled templates (empty to enable all)" "enabled": [], "//": "Enabled templates (empty to enable all)"
}, },
"extras": { "extras": {
"default": false, "//": "Default extras state (advised to let 'false' unless in debug mode)", "default": false, "//": "Default extras state (advised to let 'false' unless in debug mode)",
"presets": false, "//": "Allow use of 'config.presets' option", "presets": false, "//": "Allow use of 'config.presets' option",
"css": false, "//": "Allow use of 'extras.css' option", "features": false, "//": "Enable extra features (advised to let 'false' on web instances), see below for supported features",
"js": false, "//": "Allow use of 'extras.js' option", "//": "________________________________________________________________________",
"features": false, "//": "Enable extra features (advised to let 'false' on web instances)" "//": "metrics.setup.community.templates | Allow community templates download",
"//": "metrics.setup.community.presets | Allow community presets usage",
"//": "metrics.api.github.overuse | Allow GitHub API intensive requests",
"//": "metrics.cpu.overuse | Allow CPU intensive requests",
"//": "metrics.run.tempdir | Allow access to temporary directory (I/O operations may be performed)",
"//": "metrics.run.git | Allow to run git (needs to be installed)",
"//": "metrics.run.licensed | Allow to run licensed (needs to be installed)",
"//": "metrics.run.user.cmd | Allow to run ANY command by user (USE WITH CAUTION!)",
"//": "metrics.run.puppeteer.scrapping | Allow to run puppeteer to scrape data",
"//": "metrics.run.puppeteer.user.css | Allow to run CSS by user during puppeteer render",
"//": "metrics.run.puppeteer.user.js | Allow to run JavaScript by user during puppeteer render",
"//": "metrics.npm.optional.chartist | Allow use of chartist (needs to be installed)",
"//": "metrics.npm.optional.gifencoder | Allow use of gifencoder (needs to be installed)",
"//": "metrics.npm.optional.libxmljs2 | Allow use of libxmljs2 (needs to be installed)"
}, },
"plugins.default": false, "//": "Default plugin state (advised to let 'false' unless in debug mode)", "plugins.default": false, "//": "Default plugin state (advised to let 'false' unless in debug mode)",
"plugins": { "//": "Global plugin configuration", "plugins": { "//": "Global plugin configuration",
"isocalendar":{ "isocalendar":{
"enabled": false, "//": "Enable isocalendar plugin" "enabled": false, "//": "Enable isocalendar plugin"
}, },

View File

@@ -37,7 +37,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -38,7 +38,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -72,7 +72,6 @@ This currently improves the accuracy of the following statistics:</p>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.api.github.overuse</i></li> <li><i>metrics.api.github.overuse</i></li>
<li><i>plugins.base.indepth</i></li>
</ul> </ul>
<b>type:</b> <code>boolean</code> <b>type:</b> <code>boolean</code>
<br> <br>

View File

@@ -261,7 +261,7 @@ export default async function(
} }
//Handle errors //Handle errors
catch (error) { catch (error) {
throw {error:{message:"An error occured", instance:error}} throw imports.format.error(error)
} }
} }
``` ```

View File

@@ -38,7 +38,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -583,7 +583,7 @@ When doing so, any settings which defaults on user fetched values will not be te
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.run.setup.community.templates</i></li> <li><i>metrics.setup.community.templates</i></li>
</ul> </ul>
<b>type:</b> <code>array</code> <b>type:</b> <code>array</code>
<i>(comma-separated)</i> <i>(comma-separated)</i>
@@ -626,7 +626,7 @@ Useful to avoid creating a new template just to tweak some styling</p>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.run.user.css</i></li> <li><i>metrics.run.puppeteer.user.css</i></li>
</ul> </ul>
<b>type:</b> <code>string</code> <b>type:</b> <code>string</code>
<br></td> <br></td>
@@ -643,7 +643,7 @@ It is run after transformations and optimizations, but just before resizing.</p>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.run.user.js</i></li> <li><i>metrics.run.puppeteer.user.js</i></li>
</ul> </ul>
<b>type:</b> <code>string</code> <b>type:</b> <code>string</code>
<br></td> <br></td>
@@ -813,6 +813,10 @@ It can result in cropped or oversized outputs.</p>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">⏯️ Cannot be preset<br> <td nowrap="nowrap">⏯️ Cannot be preset<br>
🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.setup.community.presets</i></li>
</ul>
<b>type:</b> <code>array</code> <b>type:</b> <code>array</code>
<i>(comma-separated)</i> <i>(comma-separated)</i>
<br></td> <br></td>
@@ -1004,6 +1008,10 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi
<tr> <tr>
<td nowrap="nowrap">⏯️ Cannot be preset<br> <td nowrap="nowrap">⏯️ Cannot be preset<br>
🔧 For development<br> 🔧 For development<br>
🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.npm.optional.libxml2</i></li>
</ul>
<b>type:</b> <code>boolean</code> <b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>

View File

@@ -156,7 +156,7 @@ It will be automatically hidden if empty.</p>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.api.github.overuse</i></li> <li><i>metrics.cpu.overuse</i></li>
<li><i>metrics.run.tempdir</i></li> <li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li> <li><i>metrics.run.git</i></li>
</ul> </ul>
@@ -170,13 +170,7 @@ It will be automatically hidden if empty.</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap"><b>type:</b> <code>number</code>
<ul>
<li><i>metrics.api.github.overuse</i></li>
<li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li>
</ul>
<b>type:</b> <code>number</code>
<i>(1 ≤ <i>(1 ≤
𝑥 𝑥
≤ 30)</i> ≤ 30)</i>
@@ -189,13 +183,7 @@ It will be automatically hidden if empty.</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap"><b>type:</b> <code>array</code>
<ul>
<li><i>metrics.api.github.overuse</i></li>
<li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li>
</ul>
<b>type:</b> <code>array</code>
<i>(comma-separated)</i> <i>(comma-separated)</i>
<br> <br>
<b>default:</b> markup, programming<br> <b>default:</b> markup, programming<br>
@@ -207,13 +195,7 @@ It will be automatically hidden if empty.</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap"><b>type:</b> <code>array</code>
<ul>
<li><i>metrics.api.github.overuse</i></li>
<li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li>
</ul>
<b>type:</b> <code>array</code>
<i>(comma-separated)</i> <i>(comma-separated)</i>
<br> <br>
<b>default:</b> markup, programming<br> <b>default:</b> markup, programming<br>
@@ -225,13 +207,7 @@ It will be automatically hidden if empty.</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap"><b>type:</b> <code>number</code>
<ul>
<li><i>metrics.api.github.overuse</i></li>
<li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li>
</ul>
<b>type:</b> <code>number</code>
<i>(100 ≤ <i>(100 ≤
𝑥 𝑥
≤ 1000)</i> ≤ 1000)</i>
@@ -244,13 +220,7 @@ It will be automatically hidden if empty.</p>
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap"><b>type:</b> <code>number</code>
<ul>
<li><i>metrics.api.github.overuse</i></li>
<li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li>
</ul>
<b>type:</b> <code>number</code>
<i>(0 ≤ <i>(0 ≤
𝑥 𝑥
≤ 365)</i> ≤ 365)</i>

View File

@@ -60,6 +60,7 @@ Dependencies will be analyzed by [GitHub licensed](https://github.com/github/lic
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.cpu.overuse</i></li>
<li><i>metrics.run.tempdir</i></li> <li><i>metrics.run.tempdir</i></li>
<li><i>metrics.run.git</i></li> <li><i>metrics.run.git</i></li>
<li><i>metrics.run.licensed</i></li> <li><i>metrics.run.licensed</i></li>

View File

@@ -38,7 +38,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -41,7 +41,9 @@
<tr> <tr>
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>: <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul> <ul>
<li><i>metrics.cpu.overuse</i></li>
<li><i>metrics.npm.optional.gifencoder</i></li> <li><i>metrics.npm.optional.gifencoder</i></li>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul> </ul>
<b>type:</b> <code>boolean</code> <b>type:</b> <code>boolean</code>
<br> <br>

View File

@@ -37,7 +37,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -36,7 +36,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>

View File

@@ -38,7 +38,11 @@
<img width="900" height="1" alt=""></td> <img width="900" height="1" alt=""></td>
</tr> </tr>
<tr> <tr>
<td nowrap="nowrap"><b>type:</b> <code>boolean</code> <td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
<ul>
<li><i>metrics.run.puppeteer.scrapping</i></li>
</ul>
<b>type:</b> <code>boolean</code>
<br> <br>
<b>default:</b> no<br></td> <b>default:</b> no<br></td>
</tr> </tr>