mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Fix tests and editorconfig
Signed-off-by: Christian König <ckoenig@posteo.de>
This commit is contained in:
@@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"name": "Pi-hole web devcontainer",
|
"name": "Pi-hole web devcontainer",
|
||||||
"dockerFile": "Dockerfile",
|
"dockerFile": "Dockerfile",
|
||||||
// Use 'postCreateCommand' to run commands after the container is created.
|
// Use 'postCreateCommand' to run commands after the container is created.
|
||||||
"postCreateCommand": "npm install",
|
"postCreateCommand": "npm install",
|
||||||
"customizations": {
|
"customizations": {
|
||||||
// Configure properties specific to VS Code.
|
// Configure properties specific to VS Code.
|
||||||
"vscode": {
|
"vscode": {
|
||||||
"settings": {},
|
"settings": {},
|
||||||
"extensions": [
|
"extensions": [
|
||||||
"eamodio.gitlens",
|
"eamodio.gitlens",
|
||||||
"EditorConfig.EditorConfig",
|
"EditorConfig.EditorConfig",
|
||||||
"github.vscode-github-actions"
|
"github.vscode-github-actions"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"containerEnv": {
|
"containerEnv": {
|
||||||
"GIT_EDITOR": "nano"
|
"GIT_EDITOR": "nano"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ indent_size = 2
|
|||||||
[*.js]
|
[*.js]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[package.json]
|
[*.json]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[.yamllint.conf]
|
[.yamllint.conf]
|
||||||
|
|||||||
@@ -230,8 +230,8 @@ function formatReplyTime(replyTime, type) {
|
|||||||
return replyTime < 1e-4
|
return replyTime < 1e-4
|
||||||
? (1e6 * replyTime).toFixed(1) + " µs"
|
? (1e6 * replyTime).toFixed(1) + " µs"
|
||||||
: replyTime < 1
|
: replyTime < 1
|
||||||
? (1e3 * replyTime).toFixed(1) + " ms"
|
? (1e3 * replyTime).toFixed(1) + " ms"
|
||||||
: replyTime.toFixed(1) + " s";
|
: replyTime.toFixed(1) + " s";
|
||||||
}
|
}
|
||||||
|
|
||||||
// else: return the number itself (for sorting and searching)
|
// else: return the number itself (for sorting and searching)
|
||||||
|
|||||||
Reference in New Issue
Block a user