parent
0fb94b6a1b
commit
9c8fcd35df
@ -1,13 +1,19 @@
|
|||||||
import { defineConfig, globalIgnores } from "eslint/config";
|
import { defineConfig, globalIgnores } from "eslint/config";
|
||||||
import nextVitals from "eslint-config-next/core-web-vitals";
|
import { dirname } from "path";
|
||||||
import nextTs from "eslint-config-next/typescript";
|
import { fileURLToPath } from "url";
|
||||||
|
import { FlatCompat } from "@eslint/eslintrc";
|
||||||
|
|
||||||
|
const __filename = fileURLToPath(import.meta.url);
|
||||||
|
const __dirname = dirname(__filename);
|
||||||
|
|
||||||
|
const compat = new FlatCompat({
|
||||||
|
baseDirectory: __dirname,
|
||||||
|
});
|
||||||
|
|
||||||
const eslintConfig = defineConfig([
|
const eslintConfig = defineConfig([
|
||||||
...nextVitals,
|
...compat.extends("next/core-web-vitals", "next/typescript"),
|
||||||
...nextTs,
|
|
||||||
// Override default ignores of eslint-config-next.
|
// Override default ignores of eslint-config-next.
|
||||||
globalIgnores([
|
globalIgnores([
|
||||||
// Default ignores of eslint-config-next:
|
|
||||||
".next/**",
|
".next/**",
|
||||||
"out/**",
|
"out/**",
|
||||||
"build/**",
|
"build/**",
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||||
const { PrismaClient, Role } = require("@prisma/client");
|
const { PrismaClient, Role } = require("@prisma/client");
|
||||||
|
|
||||||
const prisma = new PrismaClient();
|
const prisma = new PrismaClient();
|
||||||
|
|||||||
@ -1,3 +1,4 @@
|
|||||||
|
/* eslint-disable @typescript-eslint/no-require-imports */
|
||||||
const { S3Client, PutBucketPolicyCommand } = require("@aws-sdk/client-s3");
|
const { S3Client, PutBucketPolicyCommand } = require("@aws-sdk/client-s3");
|
||||||
|
|
||||||
const client = new S3Client({
|
const client = new S3Client({
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
import type { Metadata } from "next";
|
import type { Metadata } from "next";
|
||||||
|
import Link from "next/link";
|
||||||
|
|
||||||
export const metadata: Metadata = {
|
export const metadata: Metadata = {
|
||||||
title: "СпоменQR — Во спомен на",
|
title: "СпоменQR — Во спомен на",
|
||||||
@ -10,12 +11,12 @@ export default function NotFound() {
|
|||||||
<div className="flex min-h-screen flex-col items-center justify-center px-6">
|
<div className="flex min-h-screen flex-col items-center justify-center px-6">
|
||||||
<h1 className="text-4xl font-bold text-stone-900">Спомен страницата не е пронајдена</h1>
|
<h1 className="text-4xl font-bold text-stone-900">Спомен страницата не е пронајдена</h1>
|
||||||
<p className="mt-4 text-stone-600">Оваа спомен страница не постои или сè уште не е објавена.</p>
|
<p className="mt-4 text-stone-600">Оваа спомен страница не постои или сè уште не е објавена.</p>
|
||||||
<a
|
<Link
|
||||||
href="/"
|
href="/"
|
||||||
className="mt-8 rounded-lg bg-primary px-6 py-2 text-sm font-medium text-white transition-colors hover:bg-primary-light"
|
className="mt-8 rounded-lg bg-primary px-6 py-2 text-sm font-medium text-white transition-colors hover:bg-primary-light"
|
||||||
>
|
>
|
||||||
Почетна
|
Почетна
|
||||||
</a>
|
</Link>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue
Block a user