ci: auto-regenerate files [skip ci]
This commit is contained in:
23
settings.example.json
generated
23
settings.example.json
generated
@@ -2,7 +2,8 @@
|
||||
"//": "Example of configuration for metrics web instance",
|
||||
"//": "====================================================================",
|
||||
|
||||
"token": "MY GITHUB API TOKEN", "//": "GitHub Personal Token (required)",
|
||||
"token": "GITHUB API TOKEN", "//": "GitHub Personal Token (required)",
|
||||
"modes": ["embed", "insights"], "//": "Web instance enabled modes",
|
||||
"restricted": [], "//": "Authorized users (empty to disable)",
|
||||
"maxusers": 0, "//": "Maximum users, (0 to disable)",
|
||||
"cached": 3600000, "//": "Cache time rendered metrics (0 to disable)",
|
||||
@@ -14,6 +15,7 @@
|
||||
"mocked": false, "//": "Use mocked data instead of live APIs (use 'force' to use mocked token even if real token are defined)",
|
||||
"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": {
|
||||
"by": "", "//": "Web instance host (displayed in footer)",
|
||||
"link": "", "//": "Web instance host link (displayed in footer)"
|
||||
@@ -28,9 +30,22 @@
|
||||
"extras": {
|
||||
"default": false, "//": "Default extras state (advised to let 'false' unless in debug mode)",
|
||||
"presets": false, "//": "Allow use of 'config.presets' option",
|
||||
"css": false, "//": "Allow use of 'extras.css' option",
|
||||
"js": false, "//": "Allow use of 'extras.js' option",
|
||||
"features": false, "//": "Enable extra features (advised to let 'false' on web instances)"
|
||||
"features": false, "//": "Enable extra features (advised to let 'false' on web instances), see below for supported features",
|
||||
"//": "________________________________________________________________________",
|
||||
"//": "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": { "//": "Global plugin configuration",
|
||||
|
||||
@@ -37,7 +37,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -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>:
|
||||
<ul>
|
||||
<li><i>metrics.api.github.overuse</i></li>
|
||||
<li><i>plugins.base.indepth</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>boolean</code>
|
||||
<br>
|
||||
|
||||
@@ -261,7 +261,7 @@ export default async function(
|
||||
}
|
||||
//Handle errors
|
||||
catch (error) {
|
||||
throw {error:{message:"An error occured", instance:error}}
|
||||
throw imports.format.error(error)
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -583,7 +583,7 @@ When doing so, any settings which defaults on user fetched values will not be te
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.run.setup.community.templates</i></li>
|
||||
<li><i>metrics.setup.community.templates</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>array</code>
|
||||
<i>(comma-separated)</i>
|
||||
@@ -626,7 +626,7 @@ Useful to avoid creating a new template just to tweak some styling</p>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.run.user.css</i></li>
|
||||
<li><i>metrics.run.puppeteer.user.css</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>string</code>
|
||||
<br></td>
|
||||
@@ -643,7 +643,7 @@ It is run after transformations and optimizations, but just before resizing.</p>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.run.user.js</i></li>
|
||||
<li><i>metrics.run.puppeteer.user.js</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>string</code>
|
||||
<br></td>
|
||||
@@ -813,6 +813,10 @@ It can result in cropped or oversized outputs.</p>
|
||||
</tr>
|
||||
<tr>
|
||||
<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>
|
||||
<i>(comma-separated)</i>
|
||||
<br></td>
|
||||
@@ -1004,6 +1008,10 @@ This option has no effects on forks (images will always be rebuilt from Dockerfi
|
||||
<tr>
|
||||
<td nowrap="nowrap">⏯️ Cannot be preset<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>
|
||||
<br>
|
||||
<b>default:</b> no<br></td>
|
||||
|
||||
@@ -156,7 +156,7 @@ It will be automatically hidden if empty.</p>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<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.git</i></li>
|
||||
</ul>
|
||||
@@ -170,13 +170,7 @@ It will be automatically hidden if empty.</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</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>
|
||||
<td nowrap="nowrap"><b>type:</b> <code>number</code>
|
||||
<i>(1 ≤
|
||||
𝑥
|
||||
≤ 30)</i>
|
||||
@@ -189,13 +183,7 @@ It will be automatically hidden if empty.</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</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>
|
||||
<td nowrap="nowrap"><b>type:</b> <code>array</code>
|
||||
<i>(comma-separated)</i>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</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>
|
||||
<td nowrap="nowrap"><b>type:</b> <code>array</code>
|
||||
<i>(comma-separated)</i>
|
||||
<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>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</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>
|
||||
<td nowrap="nowrap"><b>type:</b> <code>number</code>
|
||||
<i>(100 ≤
|
||||
𝑥
|
||||
≤ 1000)</i>
|
||||
@@ -244,13 +220,7 @@ It will be automatically hidden if empty.</p>
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</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>
|
||||
<td nowrap="nowrap"><b>type:</b> <code>number</code>
|
||||
<i>(0 ≤
|
||||
𝑥
|
||||
≤ 365)</i>
|
||||
|
||||
@@ -60,6 +60,7 @@ Dependencies will be analyzed by [GitHub licensed](https://github.com/github/lic
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.cpu.overuse</i></li>
|
||||
<li><i>metrics.run.tempdir</i></li>
|
||||
<li><i>metrics.run.git</i></li>
|
||||
<li><i>metrics.run.licensed</i></li>
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -41,7 +41,9 @@
|
||||
<tr>
|
||||
<td nowrap="nowrap">🌐 Web instances must configure <code>settings.json</code>:
|
||||
<ul>
|
||||
<li><i>metrics.cpu.overuse</i></li>
|
||||
<li><i>metrics.npm.optional.gifencoder</i></li>
|
||||
<li><i>metrics.run.puppeteer.scrapping</i></li>
|
||||
</ul>
|
||||
<b>type:</b> <code>boolean</code>
|
||||
<br>
|
||||
|
||||
@@ -37,7 +37,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -36,7 +36,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
@@ -38,7 +38,11 @@
|
||||
<img width="900" height="1" alt=""></td>
|
||||
</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>
|
||||
<b>default:</b> no<br></td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user