Add SEO/security meta tags and favicon to frontend index.html
This commit is contained in:
@@ -542,7 +542,11 @@ Update `JailConfig` (and the corresponding `JailConfigUpdate` patch type) to use
|
||||
|
||||
---
|
||||
|
||||
### TASK-027 — Add missing ESLint rules
|
||||
### TASK-027 — Add missing ESLint rules (done)
|
||||
|
||||
**Where fixed:** `frontend/eslint.config.ts`, `frontend/package.json`, `frontend/package-lock.json`, `frontend/src/components/config/JailsTab.tsx`, `frontend/src/components/config/ActivateJailDialog.tsx`, `frontend/src/components/config/CreateActionDialog.tsx`, `frontend/src/components/config/CreateFilterDialog.tsx`, `frontend/src/components/config/CreateJailDialog.tsx`, `frontend/src/components/TopCountriesPieChart.tsx`, `frontend/src/components/config/RegexTesterTab.tsx`, `frontend/src/pages/jail/CodeList.tsx`
|
||||
|
||||
**Summary:** Added missing ESLint rules, installed `eslint-plugin-react`, and fixed the newly reported violations for array keys, floating promises, and hook dependencies in changed source files.
|
||||
|
||||
**Where found:** `frontend/eslint.config.ts` — only `react-hooks/recommended`, `no-explicit-any`, `explicit-function-return-type`, and `no-unused-vars` are enabled. Several important rules are absent.
|
||||
|
||||
@@ -566,7 +570,9 @@ Install `eslint-plugin-react` if not already present. Run `npm run lint` after e
|
||||
|
||||
---
|
||||
|
||||
### TASK-028 — Add security and SEO meta tags to `index.html`
|
||||
### TASK-028 — Add security and SEO meta tags to `index.html` (done)
|
||||
|
||||
**Summary:** Added favicon support and SEO/security meta tags to `frontend/index.html`.
|
||||
|
||||
**Where found:** `frontend/index.html` — the file contains only `charset`, `viewport`, and `title` meta tags.
|
||||
|
||||
|
||||
@@ -3,9 +3,14 @@
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="description" content="BanGUI — fail2ban management interface." />
|
||||
<meta name="theme-color" content="#0F6CBD" />
|
||||
<meta name="robots" content="noindex, nofollow" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>BanGUI</title>
|
||||
</head>
|
||||
<body>
|
||||
<noscript>BanGUI requires JavaScript to run.</noscript>
|
||||
<div id="root"></div>
|
||||
<script type="module" src="/src/main.tsx"></script>
|
||||
</body>
|
||||
|
||||
BIN
frontend/public/favicon.ico
Normal file
BIN
frontend/public/favicon.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 110 B |
Reference in New Issue
Block a user