diff --git a/package-lock.json b/package-lock.json
index ff935c780..a8e0580d3 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -256,9 +256,9 @@
}
},
"@types/cheerio": {
- "version": "0.22.14",
- "resolved": "https://registry.npmjs.org/@types/cheerio/-/cheerio-0.22.14.tgz",
- "integrity": "sha512-SVtcP2fvPYrebTwpyqxjxb7K5v3ZOAdH409yAEWFPpZThCSGa1K2IFfx6Rg6ttvThCBQXP4fU9WF94sqLoiQGg==",
+ "version": "0.22.15",
+ "resolved": "https://registry.npmjs.org/@types/cheerio/-/cheerio-0.22.15.tgz",
+ "integrity": "sha512-UGiiVtJK5niCqMKYmLEFz1Wl/3L5zF/u78lu8CwoUywWXRr9LDimeYuOzXVLXBMO758fcTdFtgjvqlztMH90MA==",
"dev": true,
"requires": {
"@types/node": "*"
@@ -369,12 +369,12 @@
}
},
"@typescript-eslint/eslint-plugin": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.9.0.tgz",
- "integrity": "sha512-98rfOt3NYn5Gr9wekTB8TexxN6oM8ZRvYuphPs1Atfsy419SDLYCaE30aJkRiiTCwGEY98vOhFsEVm7Zs4toQQ==",
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-2.10.0.tgz",
+ "integrity": "sha512-rT51fNLW0u3fnDGnAHVC5nu+Das+y2CpW10yqvf6/j5xbuUV3FxA3mBaIbM24CXODXjbgUznNb4Kg9XZOUxKAw==",
"dev": true,
"requires": {
- "@typescript-eslint/experimental-utils": "2.9.0",
+ "@typescript-eslint/experimental-utils": "2.10.0",
"eslint-utils": "^1.4.3",
"functional-red-black-tree": "^1.0.1",
"regexpp": "^3.0.0",
@@ -382,32 +382,32 @@
}
},
"@typescript-eslint/experimental-utils": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.9.0.tgz",
- "integrity": "sha512-0lOLFdpdJsCMqMSZT7l7W2ta0+GX8A3iefG3FovJjrX+QR8y6htFlFdU7aOVPL6pDvt6XcsOb8fxk5sq+girTw==",
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-2.10.0.tgz",
+ "integrity": "sha512-FZhWq6hWWZBP76aZ7bkrfzTMP31CCefVIImrwP3giPLcoXocmLTmr92NLZxuIcTL4GTEOE33jQMWy9PwelL+yQ==",
"dev": true,
"requires": {
"@types/json-schema": "^7.0.3",
- "@typescript-eslint/typescript-estree": "2.9.0",
+ "@typescript-eslint/typescript-estree": "2.10.0",
"eslint-scope": "^5.0.0"
}
},
"@typescript-eslint/parser": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.9.0.tgz",
- "integrity": "sha512-fJ+dNs3CCvEsJK2/Vg5c2ZjuQ860ySOAsodDPwBaVlrGvRN+iCNC8kUfLFL8cT49W4GSiLPa/bHiMjYXA7EhKQ==",
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-2.10.0.tgz",
+ "integrity": "sha512-wQNiBokcP5ZsTuB+i4BlmVWq6o+oAhd8en2eSm/EE9m7BgZUIfEeYFd6z3S+T7bgNuloeiHA1/cevvbBDLr98g==",
"dev": true,
"requires": {
"@types/eslint-visitor-keys": "^1.0.0",
- "@typescript-eslint/experimental-utils": "2.9.0",
- "@typescript-eslint/typescript-estree": "2.9.0",
+ "@typescript-eslint/experimental-utils": "2.10.0",
+ "@typescript-eslint/typescript-estree": "2.10.0",
"eslint-visitor-keys": "^1.1.0"
}
},
"@typescript-eslint/typescript-estree": {
- "version": "2.9.0",
- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.9.0.tgz",
- "integrity": "sha512-v6btSPXEWCP594eZbM+JCXuFoXWXyF/z8kaSBSdCb83DF+Y7+xItW29SsKtSULgLemqJBT+LpT+0ZqdfH7QVmA==",
+ "version": "2.10.0",
+ "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-2.10.0.tgz",
+ "integrity": "sha512-oOYnplddQNm/LGVkqbkAwx4TIBuuZ36cAQq9v3nFIU9FmhemHuVzAesMSXNQDdAzCa5bFgCrfD3JWhYVKlRN2g==",
"dev": true,
"requires": {
"debug": "^4.1.1",
@@ -1039,9 +1039,9 @@
"dev": true
},
"eslint": {
- "version": "6.7.1",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.1.tgz",
- "integrity": "sha512-UWzBS79pNcsDSxgxbdjkmzn/B6BhsXMfUaOHnNwyE8nD+Q6pyT96ow2MccVayUTV4yMid4qLhMiQaywctRkBLA==",
+ "version": "6.7.2",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-6.7.2.tgz",
+ "integrity": "sha512-qMlSWJaCSxDFr8fBPvJM9kJwbazrhNcBU3+DszDW1OlEwKBBRWsJc7NJFelvwQpanHCR14cOLD41x8Eqvo3Nng==",
"dev": true,
"requires": {
"@babel/code-frame": "^7.0.0",
@@ -3221,9 +3221,9 @@
"dev": true
},
"typescript": {
- "version": "3.7.2",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.2.tgz",
- "integrity": "sha512-ml7V7JfiN2Xwvcer+XAf2csGO1bPBdRbFCkYBczNZggrBZ9c7G3riSUeJmqEU5uOtXNPMhE3n+R4FA/3YOAWOQ==",
+ "version": "3.7.3",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.7.3.tgz",
+ "integrity": "sha512-Mcr/Qk7hXqFBXMN7p7Lusj1ktCBydylfQM/FZCk5glCNQJrCUKPkMHdo9R0MTFWsC/4kPFvDS0fDPvukfCkFsw==",
"dev": true
},
"uc.micro": {
diff --git a/package.json b/package.json
index 547a62110..8a72e3177 100644
--- a/package.json
+++ b/package.json
@@ -40,7 +40,7 @@
},
"devDependencies": {
"@types/acorn": "^4.0.5",
- "@types/cheerio": "^0.22.14",
+ "@types/cheerio": "^0.22.15",
"@types/deep-diff": "^1.0.0",
"@types/deep-equal": "^1.0.1",
"@types/markdown-it": "0.0.9",
@@ -48,13 +48,13 @@
"@types/mock-require": "^2.0.0",
"@types/node": "^12.12.14",
"@types/rimraf": "^2.0.3",
- "@typescript-eslint/eslint-plugin": "^2.9.0",
- "@typescript-eslint/parser": "^2.9.0",
+ "@typescript-eslint/eslint-plugin": "^2.10.0",
+ "@typescript-eslint/parser": "^2.10.0",
"acorn": "^7.1.0",
"cheerio": "^1.0.0-rc.3",
"deep-diff": "^1.0.2",
"deep-equal": "^1.1.1",
- "eslint": "^6.7.1",
+ "eslint": "^6.7.2",
"eslint-config-prettier": "^6.7.0",
"eslint-plugin-mocha": "^6.2.2",
"eslint-plugin-prettier": "^3.1.1",
@@ -66,7 +66,7 @@
"nyc": "^14.1.1",
"prettier": "^1.19.1",
"rimraf": "^3.0.0",
- "typescript": "^3.7.2"
+ "typescript": "^3.7.3"
},
"husky": {
"hooks": {
diff --git a/src/default_index_html.js b/src/default_index_html.js
index 9e0f30c5b..5667b96cd 100644
--- a/src/default_index_html.js
+++ b/src/default_index_html.js
@@ -45,9 +45,18 @@ exports.DEFAULT_INDEX_HTML = String.raw `
}
button:hover {
background-color: #2793da;
+ flex: none;
+ }
+ .spacer {
+ flex: auto;
+ }
+ .small {
+ font-size: 0.75rem;
}
footer {
margin-top: 16px;
+ display: flex;
+ align-items: center;
}
.header-label {
margin-right: 4px;
@@ -91,7 +100,11 @@ exports.DEFAULT_INDEX_HTML = String.raw `
-
+
@@ -235,16 +248,13 @@ exports.DEFAULT_INDEX_HTML = String.raw `
renderBenchSet(name, benchset);
}
- const dlButton = document.createElement('button');
- dlButton.textContent = 'Download data as JSON';
- dlButton.onclick = () => {
+ document.getElementById('dl-button').onclick = () => {
const dataUrl = 'data:,' + JSON.stringify(data, null, 2);
const a = document.createElement('a');
a.href = dataUrl;
a.download = 'benchmark_data.json';
a.click();
};
- document.getElementById('footer').appendChild(dlButton);
})();