rename pages functions

This commit is contained in:
smanylov
2025-12-04 17:10:51 +07:00
parent e9e70002f7
commit 8b45b224bf
10 changed files with 15 additions and 10 deletions
-2
View File
@@ -110,10 +110,8 @@ export async function registration(
});
if (response.ok) {
console.log('enter response ok <======');
let parsed = await response.json();
await createSession(parsed.token, email);
console.log('complite response ok <======');
} else {
throw new Error(`
-error-1. status: ${response.status}
+1 -1
View File
@@ -49,4 +49,4 @@ export const loginFormSchema = z
.trim(),
})
export const localDevelopmentUrl = 'http://localhost:81';
export const localDevelopmentUrl = 'http://localhost:80';
+1 -1
View File
@@ -8,7 +8,7 @@ export const metadata: Metadata = {
title: 'Login',
};
export default function Home() {
export default function Page() {
return (
<div className={`${styles['login-container-wrapper']}`}>
<div className={`${styles['login-container']}`}>
+1 -1
View File
@@ -15,7 +15,7 @@ export const metadata: Metadata = {
title: 'Dashboard',
};
export default function Home() {
export default function Page() {
return (
<div>
<main>
+1 -1
View File
@@ -5,7 +5,7 @@ export const metadata: Metadata = {
title: 'emptypage',
};
export default function Home() {
export default function Page() {
return (
<div>
<main>
+1 -1
View File
@@ -8,7 +8,7 @@ export const metadata: Metadata = {
title: 'payment',
};
export default function Home() {
export default function Page() {
return (
<div>
<main>
+7
View File
@@ -0,0 +1,7 @@
export default function Page() {
return (
<div>
test 1
</div>
)
}
+1 -1
View File
@@ -6,7 +6,7 @@ import APISettings from '@/app/ui/settings/api-settings';
import LastActivitySettings from '@/app/ui/settings/last-activity-settings';
import DangerZone from '@/app/ui/settings/danger-zone';
export default function Home() {
export default function Page() {
return (
<>
<h1 className="page-title"> Настройки аккаунта</h1>
+1 -1
View File
@@ -3,7 +3,7 @@ import styles from '@/app/styles/login.module.scss'
import Link from 'next/link';
import RegisterForm from '@/app/ui/register-form';
export default function Home() {
export default function Page() {
return (
<div className={`${styles['login-container-wrapper']}`}>
<div className={`${styles['login-container']}`}>
+1 -1
View File
@@ -11,7 +11,7 @@ import { logout } from '@/app/actions/auth';
const links = [
{
name: 'Отчёты',
href: '/pages/emptypage',
href: '/pages/reports',
img: 'M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM9 17H7v-7h2v7zm4 0h-2V7h2v10zm4 0h-2v-4h2v4z'
},
{