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