Skip to content

Commit 5d57acb

Browse files
committed
clean up
1 parent da8b379 commit 5d57acb

14 files changed

Lines changed: 113 additions & 784 deletions

File tree

‎.env.example‎

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -4,24 +4,17 @@ DATABASE_URL_UNPOOLED=postgresql://user:pass@host/db?sslmode=require
44
# Self-hosted Redis (redis:// or rediss:// for TLS)
55
REDIS_URL=redis://localhost:6379
66

7-
# Vercel Blob (snapshot agent binary)
7+
# Vercel Blob (avatars)
88
BLOB_READ_WRITE_TOKEN=
99

10-
# System-level Hetzner provider token used by GSM.
10+
# Optional: Hetzner token for lib/providers (future node provisioning).
1111
HETZNER_API_TOKEN=
12-
# Optional: pin a golden image ID. If empty, GSM auto-manages snapshots.
13-
HETZNER_SNAPSHOT_IMAGE_ID=
1412

15-
# Optional builder defaults used by provider profile.
16-
HETZNER_BUILDER_BASE_IMAGE=docker-ce
17-
HETZNER_BUILDER_SERVER_TYPE=cx23
18-
HETZNER_BUILDER_LOCATION=nbg1
19-
20-
BOOTSTRAP_JWT_SECRET=
2113
BETTER_AUTH_SECRET=
2214
BETTER_AUTH_URL=http://localhost:3000
2315

24-
# Optional public URL override for local snapshot bakes. Use ngrok/tunnel URL.
16+
# URL nodes use to reach the panel (written into daemon.json). Use a
17+
# ngrok/tunnel URL in local dev so daemons can reach /api/remote/*.
2518
NODEBYTE_PUBLIC_URL=
2619

2720
VERCEL_AUTOMATION_BYPASS_SECRET=
@@ -48,16 +41,5 @@ NEXT_PUBLIC_SENTRY_DSN=
4841
SENTRY_ORG=
4942
SENTRY_PROJECT=
5043

51-
# Optional local snapshot build tuning
52-
SNAPSHOT_SKIP_FULL_UPGRADE=0
53-
SNAPSHOT_BUILDER_MAX_WAIT_SECONDS=
54-
SNAPSHOT_BUILDER_POLL_SECONDS=
55-
SNAPSHOT_IMAGE_MAX_WAIT_SECONDS=
56-
SNAPSHOT_IMAGE_POLL_SECONDS=
57-
58-
# Optional local git source override for snapshot compilation
59-
NBP_GIT_REVISION=
60-
NBP_GIT_REPO_URL=
61-
62-
# Optional token for private submodule access / sandbox git fetch
44+
# Optional token for private submodule access
6345
GIT_AUTH_TOKEN=

‎app/admin/config/nav.ts‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,35 +5,35 @@ export const ADMIN_NAV_ITEMS = [
55
label: "Overview",
66
matchExact: true,
77
},
8-
{
9-
href: "/admin/users",
10-
icon: "Users",
11-
label: "Users"
8+
{
9+
href: "/admin/users",
10+
icon: "Users",
11+
label: "Users",
1212
},
13-
{
14-
href: "/admin/servers",
15-
icon: "Server",
16-
label: "Servers"
13+
{
14+
href: "/admin/servers",
15+
icon: "Server",
16+
label: "Servers",
1717
},
18-
{
19-
href: "/admin/nodes",
20-
icon: "HardDrive",
21-
label: "Nodes"
18+
{
19+
href: "/admin/nodes",
20+
icon: "HardDrive",
21+
label: "Nodes",
2222
},
23-
{
24-
href: "/admin/locations",
25-
icon: "MapPin",
26-
label: "Locations"
23+
{
24+
href: "/admin/locations",
25+
icon: "MapPin",
26+
label: "Locations",
2727
},
28-
{
29-
href: "/admin/nests",
30-
icon: "Egg",
31-
label: "Nests & Eggs"
28+
{
29+
href: "/admin/nests",
30+
icon: "Egg",
31+
label: "Nests & Eggs",
3232
},
33-
{
34-
href: "/admin/plans",
35-
icon: "Package",
36-
label: "Plans"
33+
{
34+
href: "/admin/plans",
35+
icon: "Package",
36+
label: "Plans",
3737
},
3838
{
3939
href: "/admin/subscriptions",

‎app/admin/page.tsx‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,21 +177,21 @@ const AdminOverviewPage = async () => {
177177
label: "Failed",
178178
text: "text-red-600 dark:text-red-400",
179179
},
180-
running: {
180+
installed: {
181181
dot: "bg-emerald-500",
182182
label: "Installed",
183183
text: "text-emerald-600 dark:text-emerald-400",
184184
},
185-
stopped: {
186-
dot: "bg-zinc-400",
187-
label: "Not deployed",
188-
text: "text-zinc-500 dark:text-zinc-400",
189-
},
190-
unhealthy: {
185+
installing: {
191186
dot: "bg-amber-500",
192187
label: "Installing",
193188
text: "text-amber-600 dark:text-amber-400",
194189
},
190+
not_deployed: {
191+
dot: "bg-zinc-400",
192+
label: "Not deployed",
193+
text: "text-zinc-500 dark:text-zinc-400",
194+
},
195195
};
196196

197197
return (
@@ -427,17 +427,17 @@ const AdminOverviewPage = async () => {
427427
<div className="divide-border/50 divide-y">
428428
{recentServers.map((server) => {
429429
const game = server.egg;
430-
let stateKey = "stopped";
430+
let stateKey = "not_deployed";
431431
if (server.status === null && server.nodeId) {
432-
stateKey = "running";
432+
stateKey = "installed";
433433
} else if (server.status === "installing") {
434-
stateKey = "unhealthy";
434+
stateKey = "installing";
435435
} else if (server.status) {
436436
stateKey = "failed";
437437
}
438438
const stateConf =
439439
SERVER_STATE_CONFIG[stateKey] ??
440-
SERVER_STATE_CONFIG.stopped;
440+
SERVER_STATE_CONFIG.not_deployed;
441441
return (
442442
<div
443443
key={server.id}

‎app/dashboard/[id]/details/page.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const DetailsTab = () => {
1010
<DetailsPanel server={server} />
1111
{server.sftp && <SftpPanel sftp={server.sftp} />}
1212
</div>
13-
)
13+
);
1414
};
1515

1616
export default DetailsTab;

‎components/animations.tsx‎

Lines changed: 0 additions & 50 deletions
This file was deleted.

‎components/dashboard/stat-card.tsx‎

Lines changed: 0 additions & 82 deletions
This file was deleted.

‎lib/audit.ts‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ export type AuditAction =
2626
| "server.member_invited"
2727
| "server.member_removed"
2828
| "server.member_role_changed"
29-
| "server.snapshot_created"
30-
| "server.snapshot_restored"
3129
// ── Billing ─────────────────────────────────────────────────────────────
3230
| "billing.subscription_created"
3331
| "billing.subscription_canceled"
@@ -75,9 +73,6 @@ export type AuditAction =
7573
| "admin.email.broadcast_sent"
7674
// ── Admin: sessions ──────────────────────────────────────────────────────
7775
| "admin.session.revoked"
78-
// ── Admin: snapshot ──────────────────────────────────────────────────────
79-
| "admin.snapshot.bake_started"
80-
| "admin.snapshot.bake_completed"
8176
// ── Admin: panel settings ────────────────────────────────────────────────
8277
| "admin.settings.branding_changed"
8378
| "admin.settings.billing_changed"

0 commit comments

Comments
 (0)