fix: remove debug console.log from root layout

This commit is contained in:
openhands committed 2026-07-03 15:51:33 +02:00
1 parent 7e5813bd97
commit e5b0649bf1
9 files changed
+380209 -71

No files matched your search

File diff suppressed because it is too large. Load diff
+25 -7
View File
@@ -97,10 +97,19 @@ export default function ClientPage() {
return (
<div className="flex min-h-screen flex-col" style={{ backgroundColor: "var(--color-background)" }}>
<header
className="flex h-14 items-center border-b px-4"
style={{ backgroundColor: "var(--color-navbar)", borderColor: "color-mix(in srgb, var(--color-text-muted) 15%, transparent)" }}
className="flex h-14 items-center justify-between border-b px-6 shrink-0"
style={{ backgroundColor: "var(--color-navbar)", borderColor: "var(--color-primary, #eeb425)" }}
>
<span className="font-bold text-lg">{hotelName || "Atom"}</span>
<span className="font-bold text-lg" style={{ color: "var(--color-navbar-text, var(--color-text))" }}>{hotelName || "Atom"}</span>
<div className="flex items-center gap-2">
<span className="relative flex h-2.5 w-2.5">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" />
<span className="relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500" />
</span>
<span className="text-sm font-bold" style={{ color: "var(--color-navbar-text, var(--color-text-muted))" }}>
{onlineCount} Online
</span>
</div>
</header>
<main className="flex-1 flex items-center justify-center">
<ContentCard icon="🔒" title={t("title")} subtitle={t("errors.unauthorized")}>
@@ -119,10 +128,19 @@ export default function ClientPage() {
return (
<div className="flex min-h-screen flex-col" style={{ backgroundColor: "var(--color-background)" }}>
<header
className="flex h-14 items-center border-b px-4"
style={{ backgroundColor: "var(--color-navbar)", borderColor: "color-mix(in srgb, var(--color-text-muted) 15%, transparent)" }}
className="flex h-14 items-center justify-between border-b px-6 shrink-0"
style={{ backgroundColor: "var(--color-navbar)", borderColor: "var(--color-primary, #eeb425)" }}
>
<span className="font-bold text-lg">{hotelName || "Atom"}</span>
<span className="font-bold text-lg" style={{ color: "var(--color-navbar-text, var(--color-text))" }}>{hotelName || "Atom"}</span>
<div className="flex items-center gap-2">
<span className="relative flex h-2.5 w-2.5">
<span className="animate-ping absolute inline-flex h-full w-full rounded-full bg-green-400 opacity-75" />
<span className="relative inline-flex rounded-full h-2.5 w-2.5 bg-green-500" />
</span>
<span className="text-sm font-bold" style={{ color: "var(--color-navbar-text, var(--color-text-muted))" }}>
{onlineCount} Online
</span>
</div>
</header>
<main className="flex-1 flex items-center justify-center">
<p className="text-center" style={{ color: "var(--color-text-muted)" }}>
@@ -136,7 +154,7 @@ export default function ClientPage() {
const clientSrc = getClientSrc();
return (
<div className="relative w-screen h-screen overflow-hidden site-bg" style={{ backgroundColor: "var(--color-background)" }}>
<div className="relative w-screen h-screen overflow-hidden" style={{ backgroundColor: "var(--color-background)" }}>
{/* Floating Toolbar */}
<div className="fixed top-4 left-4 z-50 flex items-center gap-2">
{/* Home Button */}
+12 -8
View File
@@ -728,20 +728,24 @@ tbody tr:hover {
background-color: var(--color-dropdown);
border: 1px solid color-mix(in srgb, var(--color-text-muted) 14%, transparent);
box-shadow: 0 8px 32px color-mix(in srgb, rgb(0 0 0) 20%, transparent);
transform-origin: top right;
transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1),
transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
opacity: 0;
transform: translateY(-8px) scale(0.95);
pointer-events: none;
}
details[open] > .dropdown-menu {
animation: dropdownIn 0.15s ease-out;
opacity: 1;
transform: translateY(0) scale(1);
pointer-events: auto;
}
@keyframes dropdownIn {
from {
@starting-style {
details[open] > .dropdown-menu {
opacity: 0;
transform: translateY(-6px) scale(0.97);
}
to {
opacity: 1;
transform: translateY(0) scale(1);
transform: translateY(-8px) scale(0.95);
}
}
-2
View File
@@ -41,8 +41,6 @@ export default async function RootLayout({ children }: { children: ReactNode })
const headersList = await headers();
const pathname = headersList.get("x-pathname") || "";
const isClient = pathname === "/client" || pathname.startsWith("/client/");
console.log(`[RootLayout] pathname: "${pathname}", isClient: ${isClient}`);
return (
<html lang={locale} className={`app ${nunito.variable}`}>
<head>
+53 -54
View File
@@ -80,58 +80,57 @@ export async function TopHeader() {
</Link>
</div>
</details>
) : null}
<details className="relative">
<summary className="list-none cursor-pointer flex items-center [&::-webkit-details-marker]:hidden">
{/* biome-ignore lint/performance/noImgElement: external imager */}
<img className="w-[54px] h-[62px] bg-no-repeat bg-center" src={avatar} alt="" />
<span className="-ml-2 font-semibold" style={{ color: "var(--color-navbar-text, var(--color-text))" }}>{session.user.name}</span>
</summary>
<div
className="dropdown-menu absolute right-0 top-full mt-0.5 min-w-[200px] rounded-xl z-50 py-2"
>
<Link href="/me" className="dropdown-item">
My dashboard
</Link>
<Link href={`/u/${session.user.name}`} className="dropdown-item">
My profile
</Link>
<Link href="/settings" className="dropdown-item">
User settings
</Link>
<Link href="/settings/2fa" className="dropdown-item">
Two-factor
</Link>
<Link href="/settings/sessions" className="dropdown-item">
Login activity
</Link>
<div className="h-px my-1 mx-3" style={{ backgroundColor: "color-mix(in srgb, var(--color-text-muted) 12%, transparent)" }} />
<form
action={async () => {
"use server";
await signOut({ redirectTo: "/" });
}}
>
<button
type="submit"
className="dropdown-item w-full text-center mx-1 rounded-lg"
style={{
backgroundColor: "color-mix(in srgb, var(--button-danger-color) 12%, transparent)",
color: "var(--button-danger-color)",
border: "none",
cursor: "pointer",
width: "calc(100% - 8px)",
}}
>
Logout
</button>
</form>
</div>
</details>
</div>
</div>
</div>
);
}
) : null}
<details className="relative">
<summary className="list-none cursor-pointer flex items-center [&::-webkit-details-marker]:hidden">
{/* biome-ignore lint/performance/noImgElement: external imager */}
<img className="w-[54px] h-[62px] bg-no-repeat bg-center" src={avatar} alt="" />
<span className="-ml-2 font-semibold" style={{ color: "var(--color-navbar-text, var(--color-text))" }}>{session.user.name}</span>
</summary>
<div
className="dropdown-menu absolute right-0 top-full mt-0.5 min-w-[200px] rounded-xl z-50 py-2"
>
<Link href="/me" className="dropdown-item">
My dashboard
</Link>
<Link href={`/u/${session.user.name}`} className="dropdown-item">
My profile
</Link>
<Link href="/settings" className="dropdown-item">
User settings
</Link>
<Link href="/settings/2fa" className="dropdown-item">
Two-factor
</Link>
<Link href="/settings/sessions" className="dropdown-item">
Login activity
</Link>
<div className="h-px my-1 mx-3" style={{ backgroundColor: "color-mix(in srgb, var(--color-text-muted) 12%, transparent)" }} />
<form
action={async () => {
"use server";
await signOut({ redirectTo: "/" });
}}
>
<button
type="submit"
className="dropdown-item w-full text-center mx-1 rounded-lg"
style={{
backgroundColor: "color-mix(in srgb, var(--button-danger-color) 12%, transparent)",
color: "var(--button-danger-color)",
border: "none",
cursor: "pointer",
width: "calc(100% - 8px)",
}}
>
Logout
</button>
</form>
</div>
</details>
</div>
</div>
</div>
);
}
+74
View File
@@ -0,0 +1,74 @@

╔═══════════════════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗███╗ ███╗ █████╗ ██████╗ ████████╗ ║
║ ██╔════╝████╗ ████║██╔══██╗██╔══██╗╚══██╔══╝ ║
║ █████╗ ██╔████╔██║███████║██████╔╝ ██║ ║
║ ██╔══╝ ██║╚██╔╝██║██╔══██║██╔══██╗ ██║ ║
║ ███████╗██║ ╚═╝ ██║██║ ██║██║ ██║ ██║ ║
║ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ║
║ ║
╠═══════════════════════════════════════════════════════════════════════════╣
║  Emulator / Nitro-V3 / Nitro-V3-Render ║
║  Updater by Remco — epicnabbo.nl ║
╠═══════════════════════════════════════════════════════════════════════════╣
║ Branch: main (2 detected) │ 19:21 ║
╚═══════════════════════════════════════════════════════════════════════════╝

 UPDATE 
1) 🚀 Quick Update — branch: main
2) ⚡ Full Update (choose branch)
3) ⚙ Emulator Only
4) ⚙ Nitro-V3 Client Only
5) ⚙ Renderer Only
6) ⚙ Configs Only
 TOOLS 
7) 🔀 Switch Branch
8) 🗄 Database
9) 🛡 Backup / Restore
10) 🔧 Services
11) 📊 Status
12) ♥ Health Check
13) 🧹 Clean
14) 👁 Logs
15) ⚙ Config
 ADVANCED 
16) 🖥 Git Log
17) 🌐 Compare Branches
18) ⏱ Cron Scheduler
0) Exit
Select [0-18]:
Update: Full
1) Dev
2) main (current)
3) Custom
Branch [1-3]:
Branch: Dev Mode: Full
➜ Start update? [Y/n]
➜ Site: https://epicnabbo.nl:3000 | Branch: Dev | Mode: full
[2026-07-02 19:21:32] [INFO] Site: https://epicnabbo.nl:3000 | Branch: Dev | Mode: full
➜ Log: /var/www/atom-nexst/storage/logs/update-20260702-192111.log
[2026-07-02 19:21:32] [INFO] Log: /var/www/atom-nexst/storage/logs/update-20260702-192111.log
 Step 1/8 — System Diagnostics 
✔ All commands available
[2026-07-02 19:21:32] [OK] All commands available
✔ All directories exist
[2026-07-02 19:21:32] [OK] All directories exist
✔ 123GB disk available
[2026-07-02 19:21:32] [OK] 123GB disk available
 ERROR  DB connection failed
[2026-07-02 19:21:32] [FATAL] DB connection failed
[?12l[?25h ⚠ Update had errors
[2026-07-02 19:21:32] [WARN] Update had errors
Press Enter to continue...[?12l[?25h[?12l[?25h
+118
View File
@@ -0,0 +1,118 @@

╔═══════════════════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗███╗ ███╗ █████╗ ██████╗ ████████╗ ║
║ ██╔════╝████╗ ████║██╔══██╗██╔══██╗╚══██╔══╝ ║
║ █████╗ ██╔████╔██║███████║██████╔╝ ██║ ║
║ ██╔══╝ ██║╚██╔╝██║██╔══██║██╔══██╗ ██║ ║
║ ███████╗██║ ╚═╝ ██║██║ ██║██║ ██║ ██║ ║
║ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ║
║ ║
╠═══════════════════════════════════════════════════════════════════════════╣
║  Emulator / Nitro-V3 / Nitro-V3-Render ║
║  Updater by Remco — epicnabbo.nl ║
╠═══════════════════════════════════════════════════════════════════════════╣
║ Branch: main (2 detected) │ 19:26 ║
╚═══════════════════════════════════════════════════════════════════════════╝

 UPDATE 
1) 🚀 Quick Update — branch: main
2) ⚡ Full Update (choose branch)
3) ⚙ Emulator Only
4) ⚙ Nitro-V3 Client Only
5) ⚙ Renderer Only
6) ⚙ Configs Only
 TOOLS 
7) 🔀 Switch Branch
8) 🗄 Database
9) 🛡 Backup / Restore
10) 🔧 Services
11) 📊 Status
12) ♥ Health Check
13) 🧹 Clean
14) 👁 Logs
15) ⚙ Config
 ADVANCED 
16) 🖥 Git Log
17) 🌐 Compare Branches
18) ⏱ Cron Scheduler
0) Exit
Select [0-18]:
Update: Full
1) Dev
2) main (current)
3) Custom
Branch [1-3]:
Branch: Dev Mode: Full
➜ Start update? [Y/n]
➜ Site: https://epicnabbo.nl:3000 | Branch: Dev | Mode: full
[2026-07-02 19:27:06] [INFO] Site: https://epicnabbo.nl:3000 | Branch: Dev | Mode: full
➜ Log: /var/www/atom-nexst/storage/logs/update-20260702-192641.log
[2026-07-02 19:27:06] [INFO] Log: /var/www/atom-nexst/storage/logs/update-20260702-192641.log
 Step 1/8 — System Diagnostics 
✔ All commands available
[2026-07-02 19:27:06] [OK] All commands available
✔ All directories exist
[2026-07-02 19:27:06] [OK] All directories exist
✔ 123GB disk available
[2026-07-02 19:27:06] [OK] 123GB disk available
 ERROR  DB connection failed
[2026-07-02 19:27:06] [FATAL] DB connection failed
[?12l[?25h ⚠ Update had errors
[2026-07-02 19:27:06] [WARN] Update had errors
Press Enter to continue...
╔═══════════════════════════════════════════════════════════════════════════╗
║ ║
║ ███████╗███╗ ███╗ █████╗ ██████╗ ████████╗ ║
║ ██╔════╝████╗ ████║██╔══██╗██╔══██╗╚══██╔══╝ ║
║ █████╗ ██╔████╔██║███████║██████╔╝ ██║ ║
║ ██╔══╝ ██║╚██╔╝██║██╔══██║██╔══██╗ ██║ ║
║ ███████╗██║ ╚═╝ ██║██║ ██║██║ ██║ ██║ ║
║ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ║
║ ║
╠═══════════════════════════════════════════════════════════════════════════╣
║  Emulator / Nitro-V3 / Nitro-V3-Render ║
║  Updater by Remco — epicnabbo.nl ║
╠═══════════════════════════════════════════════════════════════════════════╣
║ Branch: main (2 detected) │ 19:27 ║
╚═══════════════════════════════════════════════════════════════════════════╝

 UPDATE 
1) 🚀 Quick Update — branch: main
2) ⚡ Full Update (choose branch)
3) ⚙ Emulator Only
4) ⚙ Nitro-V3 Client Only
5) ⚙ Renderer Only
6) ⚙ Configs Only
 TOOLS 
7) 🔀 Switch Branch
8) 🗄 Database
9) 🛡 Backup / Restore
10) 🔧 Services
11) 📊 Status
12) ♥ Health Check
13) 🧹 Clean
14) 👁 Logs
15) ⚙ Config
 ADVANCED 
16) 🖥 Git Log
17) 🌐 Compare Branches
18) ⏱ Cron Scheduler
0) Exit
Select [0-18]: [?12l[?25h[?12l[?25h
+1029
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -0,0 +1,9 @@
[2026-07-02 19:17:01] [OK] Dependencies installed
[2026-07-02 19:17:21] [OK] Build successful
[2026-07-02 19:17:21] [INFO] Restarting web service...
[2026-07-02 19:17:37] [OK] Backup created: db_backup_20260702_191736.sql
[2026-07-02 19:17:52] [OK] Emulator built
[2026-07-02 19:17:52] [INFO] Restarting emulator service...
[2026-07-02 19:18:46] [OK] Dependencies installed
[2026-07-02 19:18:49] [OK] Build successful
[2026-07-02 19:19:07] [OK] Dependencies installed