main
UI Deploy (Next-Auth Support) 🎨 / build-and-deploy (push) Has been cancelled

This commit is contained in:
Harun CAN
2026-05-01 00:45:20 +02:00
parent 565a7ba3b9
commit ff76ead6d4
7 changed files with 22 additions and 27 deletions
+7
View File
@@ -0,0 +1,7 @@
{
"extends": "next/core-web-vitals",
"rules": {
"@typescript-eslint/no-empty-object-type": "off",
"@typescript-eslint/no-unused-vars": ["warn", { "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }]
}
}
+2 -22
View File
@@ -1,25 +1,5 @@
import { dirname } from 'path'; export default [
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 = [
...compat.extends('next/core-web-vitals', 'next/typescript', 'prettier'),
{ {
ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts'], ignores: ['node_modules/**', '.next/**', 'out/**', 'build/**', 'next-env.d.ts'],
}, }
{
rules: {
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
},
},
]; ];
export default eslintConfig;
View File
+1 -1
View File
@@ -1,6 +1,6 @@
/// <reference types="next" /> /// <reference types="next" />
/// <reference types="next/image-types/global" /> /// <reference types="next/image-types/global" />
import "./.next/dev/types/routes.d.ts"; import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited // NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information. // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+1 -1
View File
@@ -6,7 +6,7 @@
"dev": "next dev --webpack -p 3001", "dev": "next dev --webpack -p 3001",
"build": "next build --webpack", "build": "next build --webpack",
"start": "next start", "start": "next start",
"lint": "eslint" "lint": "eslint ."
}, },
"dependencies": { "dependencies": {
"@chakra-ui/react": "^3.28.0", "@chakra-ui/react": "^3.28.0",
@@ -108,6 +108,10 @@ export default function ProjectsPage() {
setIsTranslating(true); setIsTranslating(true);
const res = await apiClient.post(`/projects/${translateTarget.id}/translate`, { targetLanguage }); const res = await apiClient.post(`/projects/${translateTarget.id}/translate`, { targetLanguage });
toast.success({ title: "Proje başarıyla çevrildi!" }); toast.success({ title: "Proje başarıyla çevrildi!" });
// Çeviri tamamlanınca ana projeyi otomatik olarak genişletiyoruz
setExpandedProjects((prev) => ({ ...prev, [translateTarget.id]: true }));
setTranslateTarget(null); setTranslateTarget(null);
setTargetLanguage(""); setTargetLanguage("");
refetch(); refetch();
@@ -361,10 +365,14 @@ export default function ProjectsPage() {
{!isChild && hasChildren && ( {!isChild && hasChildren && (
<button <button
onClick={(e) => toggleExpand(e, p.id)} onClick={(e) => toggleExpand(e, p.id)}
className="p-2 rounded-lg text-[var(--color-text-ghost)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-surface)] transition-colors shrink-0 z-10 mr-1" className="flex items-center gap-1.5 px-3 py-1.5 rounded-lg text-[11px] font-medium text-[var(--color-text-ghost)] hover:text-[var(--color-text-primary)] hover:bg-[var(--color-bg-surface)] transition-colors shrink-0 z-10 mr-1 border border-transparent hover:border-[var(--color-border-faint)]"
title="Çevirileri Göster" title="Çevirileri Göster"
> >
<ChevronDown size={16} className={cn("transition-transform", isExpanded && "rotate-180")} /> <span className="flex items-center gap-1">
<Languages size={12} />
{children.length} Çeviri
</span>
<ChevronDown size={14} className={cn("transition-transform", isExpanded && "rotate-180")} />
</button> </button>
)} )}
</div> </div>
+1 -1
View File
File diff suppressed because one or more lines are too long