Remove obsolete scripts and configuration files for self-hosting and database migrations
- Deleted `pnpm-workspace.yaml` as it is no longer needed. - Removed `apply-migrations.sh` script that handled database migrations. - Eliminated `generate-full-stack-env.mjs` script for environment variable generation. - Deleted `selfhost-backup.sh` script for creating backups of the self-hosted environment. - Removed `selfhost-doctor.sh` script for health checks of the self-hosted services. - Deleted `selfhost-restore.sh` script for restoring backups in the self-hosted environment.
This commit is contained in:
@@ -34,7 +34,7 @@ export async function signup(formData: FormData) {
|
||||
if (!setupState.available) {
|
||||
redirect(
|
||||
`/login?error=true&message=${encodeURIComponent(
|
||||
'Kayıt kapalı. Bu self-host kurulumunda ilk admin hesabı zaten oluşturulmuş.',
|
||||
'Kayıt kapalı. Bu Neta kurulumunda ilk admin hesabı zaten oluşturulmuş.',
|
||||
)}`,
|
||||
)
|
||||
}
|
||||
|
||||
+11
-19
@@ -1,10 +1,9 @@
|
||||
import { login } from "@/app/login/actions";
|
||||
import { AuthPageShell } from "@/components/auth/auth-page-shell";
|
||||
import { ErrorToaster } from "@/components/error-toaster";
|
||||
import { getFirstAdminSetupState } from "@/lib/auth/first-admin-setup";
|
||||
import { LockKeyhole, LogIn, Mail } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { Button, Input, Label } from "poyraz-ui/atoms";
|
||||
import { Input, Label } from "poyraz-ui/atoms";
|
||||
import { SubmitButton } from "@/components/auth/submit-button";
|
||||
|
||||
export default async function LoginPage({
|
||||
@@ -12,10 +11,7 @@ export default async function LoginPage({
|
||||
}: {
|
||||
searchParams: Promise<{ [key: string]: string | string[] | undefined }>;
|
||||
}) {
|
||||
const [resolvedParams, setupState] = await Promise.all([
|
||||
searchParams,
|
||||
getFirstAdminSetupState(),
|
||||
]);
|
||||
const resolvedParams = await searchParams;
|
||||
const error = resolvedParams?.error;
|
||||
const message = resolvedParams?.message;
|
||||
|
||||
@@ -74,19 +70,15 @@ export default async function LoginPage({
|
||||
}
|
||||
secondaryAction={null}
|
||||
footer={
|
||||
setupState.available ? (
|
||||
<div className="text-center text-sm">
|
||||
İlk kurulumu yapmadın mı?{" "}
|
||||
<Link
|
||||
href="/register"
|
||||
className="font-medium text-primary transition-colors hover:text-primary-hover"
|
||||
>
|
||||
Admin hesabını oluştur
|
||||
</Link>
|
||||
</div>
|
||||
) : (
|
||||
<span></span>
|
||||
)
|
||||
<div className="text-center text-sm">
|
||||
İlk kurulumu yapmadın mı?{" "}
|
||||
<Link
|
||||
href="/register"
|
||||
className="font-medium text-primary transition-colors hover:text-primary-hover"
|
||||
>
|
||||
Admin hesabını oluştur
|
||||
</Link>
|
||||
</div>
|
||||
}
|
||||
/>
|
||||
</>
|
||||
|
||||
@@ -22,7 +22,7 @@ export default async function RegisterPage({
|
||||
if (!setupState.available) {
|
||||
redirect(
|
||||
`/login?error=true&message=${encodeURIComponent(
|
||||
"Kayıt kapalı. Bu self-host kurulumunda ilk admin hesabı zaten oluşturulmuş.",
|
||||
"Kayıt kapalı. Bu Neta kurulumunda ilk admin hesabı zaten oluşturulmuş.",
|
||||
)}`,
|
||||
);
|
||||
}
|
||||
@@ -36,7 +36,7 @@ export default async function RegisterPage({
|
||||
{error && message && <ErrorToaster message={String(message)} />}
|
||||
<AuthPageShell
|
||||
title="İlk admin hesabını oluştur"
|
||||
description="Bu self-host kurulumu için Neta çalışma alanının ilk yönetici hesabını oluştur."
|
||||
description="Bu Neta çalışma alanının ilk yönetici hesabını oluştur."
|
||||
form={
|
||||
<form className="space-y-6">
|
||||
<div className="space-y-4">
|
||||
|
||||
Reference in New Issue
Block a user