Skip to content

Commit 4f762db

Browse files
committed
lighthouse fixing
1 parent 9ecf9a4 commit 4f762db

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

web-report/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/src/assets/icon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<meta name="description" content="Web Fuzzing Commons" />
78
<title>WFC Reports</title>
89
</head>
910
<body>

web-report/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"generate": "json2ts ../src/main/resources/wfc/schemas/report.yaml src/types/GeneratedTypes.tsx && ts-to-zod src/types/GeneratedTypes.tsx src/types/GeneratedTypesZod.ts",
99
"build": "tsc -b && vite build",
1010
"installAndBuild": "yarn install && yarn generate && vitest --no-watch && tsc -b && vite build && yarn copyRunFiles",
11-
"copyRunFiles": "cpx webreport.bat ../target/classes/webreport && cpx webreport.command ../target/classes/webreport && cpx webreport.py ../target/classes/webreport",
11+
"copyRunFiles": "cpx webreport.bat ../target/classes/webreport && cpx webreport.command ../target/classes/webreport && cpx webreport.py ../target/classes/webreport && cpx src-e2e/static/robots.txt ../target/classes/webreport",
1212
"lint": "eslint .",
1313
"preview": "vite preview",
14-
"debug": "vite build && cpx \"src-e2e/static/*\" ../target/classes/webreport && vite preview",
14+
"debug": "vite build && cpx src-e2e/static/* ../target/classes/webreport && vite preview",
1515
"test": "vitest"
1616
},
1717
"dependencies": {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
User-agent: *
2+
Disallow:

web-report/src/App.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#root {
22
min-width: 100%;
3+
min-height: 100vh;
34
margin: 0 auto;
45
padding: 2rem;
56
text-align: center;

web-report/vite.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ export default defineConfig({
1919
},
2020
},
2121
build: {
22-
outDir: '../target/classes/webreport',
23-
rollupOptions: {
22+
outDir: '../target/classes/webreport',
23+
rollupOptions: {
2424
output: {
2525
entryFileNames: `assets/report.js`,
2626
chunkFileNames: `assets/[name].js`,
@@ -33,7 +33,7 @@ export default defineConfig({
3333
return `assets/[name].svg`;
3434
}
3535
return `assets/[name].[ext]`;
36-
},
36+
}
3737
}
3838
}
3939
},

0 commit comments

Comments
 (0)