Compare commits
3 Commits
v1.3.14-rc
...
785e36af08
| Author | SHA1 | Date | |
|---|---|---|---|
| 785e36af08 | |||
| d4c32476d6 | |||
| 9b9d4634dd |
@@ -2,7 +2,7 @@ import { Download } from "lucide-react";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import path from "path";
|
import path from "path";
|
||||||
|
|
||||||
export default function AGB() {
|
export default function AVB() {
|
||||||
const filePath = path.join(process.cwd(), "context/avbs.md");
|
const filePath = path.join(process.cwd(), "context/avbs.md");
|
||||||
const fileContent = fs.readFileSync(filePath, "utf8");
|
const fileContent = fs.readFileSync(filePath, "utf8");
|
||||||
|
|
||||||
|
|||||||
@@ -246,7 +246,7 @@ const Layout = ({ children }: { children: React.ReactNode }) => {
|
|||||||
href="/agb"
|
href="/agb"
|
||||||
className="hover:text-accent transition-colors"
|
className="hover:text-accent transition-colors"
|
||||||
>
|
>
|
||||||
{t("footer.agb")}
|
{t("footer.avb")}
|
||||||
</Link>
|
</Link>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -81,7 +81,7 @@
|
|||||||
"legal": "Rechtliches",
|
"legal": "Rechtliches",
|
||||||
"impressum": "Impressum",
|
"impressum": "Impressum",
|
||||||
"datenschutz": "Datenschutz",
|
"datenschutz": "Datenschutz",
|
||||||
"agb": "AVB",
|
"avb": "AVB",
|
||||||
"rights": "Alle Rechte vorbehalten.",
|
"rights": "Alle Rechte vorbehalten.",
|
||||||
"madeWith": "Entwickelt mit",
|
"madeWith": "Entwickelt mit",
|
||||||
"precision": "Präzision",
|
"precision": "Präzision",
|
||||||
|
|||||||
@@ -79,10 +79,11 @@ async function main() {
|
|||||||
const consoleErrorsList: Array<{ type: string; error: string; page: string }> = [];
|
const consoleErrorsList: Array<{ type: string; error: string; page: string }> = [];
|
||||||
|
|
||||||
// Listen for unhandled exceptions natively in the page
|
// Listen for unhandled exceptions natively in the page
|
||||||
page.on('pageerror', (err: Error) => {
|
page.on('pageerror', (err: unknown) => {
|
||||||
|
const errorMessage = err instanceof Error ? err.message : String(err);
|
||||||
consoleErrorsList.push({
|
consoleErrorsList.push({
|
||||||
type: 'PAGE_ERROR',
|
type: 'PAGE_ERROR',
|
||||||
error: err.message,
|
error: errorMessage,
|
||||||
page: page.url(),
|
page: page.url(),
|
||||||
});
|
});
|
||||||
hasConsoleErrors = true;
|
hasConsoleErrors = true;
|
||||||
|
|||||||
@@ -94,8 +94,8 @@ async function main() {
|
|||||||
baseConfig = JSON.parse(fs.readFileSync(baseConfigPath, 'utf8'));
|
baseConfig = JSON.parse(fs.readFileSync(baseConfigPath, 'utf8'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// Extract domain for cookie
|
// Extract domain for cookie (not currently used)
|
||||||
const urlObj = new URL(targetUrl);
|
// const urlObj = new URL(targetUrl);
|
||||||
// domain is not used, so remove or keep if needed later? Linter says unused.
|
// domain is not used, so remove or keep if needed later? Linter says unused.
|
||||||
// const domain = urlObj.hostname;
|
// const domain = urlObj.hostname;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user