Skip to content

Commit b29ac9f

Browse files
committed
Merge branch 'nakrovati-refactor-web'
2 parents 9ef3651 + 5856011 commit b29ac9f

36 files changed

+358
-317
lines changed

eslint.config.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import js from "@eslint/js";
33
import ts from "@typescript-eslint/eslint-plugin";
44
import tsParser from "@typescript-eslint/parser";
55
import react from "eslint-plugin-react";
6+
import reactRefresh from "eslint-plugin-react-refresh";
67
import reactHooks from "eslint-plugin-react-hooks";
78
import unicorn from "eslint-plugin-unicorn";
89

@@ -84,11 +85,16 @@ export default [
8485
files: ["webdriver-ts-results/**/*.tsx"],
8586
plugins: {
8687
react,
88+
"react-refresh": reactRefresh,
8789
"react-hooks": reactHooks,
8890
},
8991
rules: {
9092
...react.configs.recommended.rules,
93+
...react.configs["jsx-runtime"].rules,
9194
...reactHooks.configs.recommended.rules,
95+
96+
"react/jsx-no-useless-fragment": "warn",
97+
"react-refresh/only-export-components": "warn",
9298
},
9399
settings: { react: { version: "detect" } },
94100
languageOptions: { globals: { ...globals.browser } },
@@ -98,7 +104,7 @@ export default [
98104
languageOptions: { globals: { ...globals.browser, ...globals.node } },
99105
rules: {
100106
"@typescript-eslint/no-loss-of-precision": "off",
101-
"no-debugger":"off"
107+
"no-debugger": "off",
102108
},
103109
},
104110
];

package-lock.json

Lines changed: 193 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"commander": "^11.1.0",
4848
"cross-env": "^7.0.3",
4949
"es-main": "^1.3.0",
50-
"eslint-plugin-unicorn": "^49.0.0",
5150
"json5": "^2.2.3",
5251
"rimraf": "^5.0.5",
5352
"yargs": "^17.7.2"
@@ -59,6 +58,8 @@
5958
"eslint": "^8.52.0",
6059
"eslint-plugin-react": "^7.33.2",
6160
"eslint-plugin-react-hooks": "^4.6.0",
61+
"eslint-plugin-react-refresh": "^0.4.5",
62+
"eslint-plugin-unicorn": "^49.0.0",
6263
"globals": "^13.23.0",
6364
"local-web-server": "^5.3.0",
6465
"prettier": "^3.0.3"

webdriver-ts-results/package-lock.json

Lines changed: 0 additions & 87 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

webdriver-ts-results/package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"scripts": {
1414
"dev": "vite",
1515
"build": "tsc && vite build",
16-
"build:prod": "tsc && SINGLEFILE=true vite build && mv dist/index.html table.html",
1716
"lint": "eslint src/",
1817
"preview": "vite preview"
1918
},
@@ -24,7 +23,6 @@
2423
"@vitejs/plugin-react": "^4.2.0",
2524
"typescript": "^5.2.2",
2625
"vite": "^5.0.2",
27-
"vite-plugin-singlefile": "^0.13.5",
2826
"vite-tsconfig-paths": "^4.2.1"
2927
}
3028
}

webdriver-ts-results/src/App.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,6 @@ select {
2525
font-size: 14px;
2626
}
2727

28-
.select-bar {
29-
background-color: #fafafa;
30-
border-top: 1px solid var(--border-color);
31-
border-bottom: 1px solid var(--border-color);
32-
padding: 10px 0;
33-
line-height: 0;
34-
}
35-
.select-bar__dropdowns {
36-
padding: 5px 0;
37-
display: flex;
38-
flex-direction: row;
39-
gap: 1rem;
40-
}
41-
42-
@media screen and (width>=640px) {
43-
.select-bar {
44-
flex-direction: unset;
45-
align-items: center;
46-
}
47-
}
48-
@media screen and (width>=768px) {
49-
.select-bar {
50-
align-items: center;
51-
}
52-
}
53-
5428
select {
5529
border: 1px solid var(--border-color);
5630
border-radius: 4px;
@@ -62,10 +36,6 @@ input + label {
6236
margin-left: 5px;
6337
}
6438

65-
.panel-body .checkbox {
66-
margin-top: 5px;
67-
margin-bottom: 5px;
68-
}
6939
thead.dummy th {
7040
padding: 0;
7141
border: 0;

webdriver-ts-results/src/App.tsx

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,23 @@
1-
import React from "react";
21
import "./App.css";
32
import { FrameworkType, knownIssues } from "./Common";
43
import ResultTable from "./components/ResultTable";
5-
import { SelectionBar } from "./components/selection/SelectionBar";
4+
import SelectionBar from "./components/selection/SelectionBar";
65

76
const KnownIssuesList = () => {
87
return (
9-
<>
10-
<section>
11-
<h3>Known issues and notes</h3>
12-
{knownIssues.map((issue) => (
13-
<dl key={issue.issue.toFixed()} id={issue.issue.toFixed()}>
14-
<dt>
15-
<a target="_blank" rel="noopener noreferrer" href={issue.link}>
16-
{issue.issue.toFixed()}
17-
</a>
18-
</dt>
19-
<dd>{issue.text}</dd>
20-
</dl>
21-
))}
22-
</section>
23-
</>
8+
<section>
9+
<h3>Known issues and notes</h3>
10+
{knownIssues.map((issue) => (
11+
<dl key={issue.issue.toFixed()} id={issue.issue.toFixed()}>
12+
<dt>
13+
<a target="_blank" rel="noopener noreferrer" href={issue.link}>
14+
{issue.issue.toFixed()}
15+
</a>
16+
</dt>
17+
<dd>{issue.text}</dd>
18+
</dl>
19+
))}
20+
</section>
2421
);
2522
};
2623

webdriver-ts-results/src/Common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export class ResultTableData {
504504
}
505505
computeComparison(
506506
framework: Framework,
507-
benchmarksCPU: Array<Benchmark>, // Remove cause unused
507+
_benchmarksCPU: Array<Benchmark>, // Remove cause unused
508508
resultsCPUForFramework: Array<TableResultValueEntry | null>,
509509
): TableResultComparisonEntry {
510510
if (!this.compareWith) {

webdriver-ts-results/src/assets/icons/CopyIcon.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
const CopyIcon = () => {
42
return (
53
<>

webdriver-ts-results/src/assets/icons/PasteIcon.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import React from "react";
2-
31
const PasteIcon = () => {
42
return (
53
<>

0 commit comments

Comments
 (0)