diff --git a/app/globals.css b/app/globals.css
index e0a7f85..1432f18 100644
--- a/app/globals.css
+++ b/app/globals.css
@@ -55,4 +55,4 @@
body {
@apply bg-background text-foreground;
}
-}
\ No newline at end of file
+}
diff --git a/app/journal/page.tsx b/app/journal/page.tsx
index 4e2135e..661ae89 100644
--- a/app/journal/page.tsx
+++ b/app/journal/page.tsx
@@ -5,7 +5,14 @@ import { v4 as uuidv4 } from "uuid";
import { useLiveQuery } from "dexie-react-hooks";
import { db } from "@/lib/db";
import { analyzeJournalWithLocalAI } from "@/lib/ai";
-import { Card, CardContent, CardHeader, CardTitle, CardDescription, CardFooter } from "@/components/ui/card";
+import {
+ Card,
+ CardContent,
+ CardHeader,
+ CardTitle,
+ CardDescription,
+ CardFooter,
+} from "@/components/ui/card";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
@@ -25,8 +32,8 @@ export default function JournalPage() {
const [isSubmitting, setIsSubmitting] = useState(false);
// Dexie.js üzerinden günlükleri tarih sırasına göre çekiyoruz (en yeni en üstte)
- const journals = useLiveQuery(
- () => db.journals.orderBy("date").reverse().toArray()
+ const journals = useLiveQuery(() =>
+ db.journals.orderBy("date").reverse().toArray(),
);
const handleSubmit = async (e: React.FormEvent) => {
@@ -83,7 +90,6 @@ export default function JournalPage() {
} catch (aiErr) {
console.error("Arka plan AI analizi hatası:", aiErr);
}
-
} catch (error) {
console.error("Günlük kaydedilemedi:", error);
} finally {
@@ -92,7 +98,7 @@ export default function JournalPage() {
};
const handleDelete = async (id: string) => {
- if(confirm("Bu günlüğü silmek istediğinden emin misin?")) {
+ if (confirm("Bu günlüğü silmek istediğinden emin misin?")) {
await db.journals.delete(id);
}
};
@@ -101,7 +107,9 @@ export default function JournalPage() {
Günlük
-
Zihnini boşalt, hislerini kaydet. Verilerin sadece cihazında kalır.
+
+ Zihnini boşalt, hislerini kaydet. Verilerin sadece cihazında kalır.
+
@@ -121,7 +129,9 @@ export default function JournalPage() {
type="button"
onClick={() => setMood(m.id)}
className={`flex-1 py-2 px-1 rounded-md border text-xl flex items-center justify-center transition-colors ${
- mood === m.id ? "bg-primary/20 border-primary" : "bg-card border-border hover:bg-muted"
+ mood === m.id
+ ? "bg-primary/20 border-primary"
+ : "bg-card border-border hover:bg-muted"
}`}
title={m.label}
>
@@ -155,7 +165,11 @@ export default function JournalPage() {
/>
-