Skip to content

Commit 4d52419

Browse files
author
charlesgauthereau
committed
Ready for release soon.
1 parent 7abdcd5 commit 4d52419

File tree

18 files changed

+1792
-3348
lines changed

18 files changed

+1792
-3348
lines changed

.yarn/releases/yarn-4.6.0.cjs

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

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
nodeLinker: node-modules
22

3-
yarnPath: .yarn/releases/yarn-4.6.0.cjs

app/api/agent/[agentId]/status/route.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import * as drizzleDb from "@/db";
66
import {db} from "@/db";
77
import {EDbmsSchema} from "@/db/schema/types";
88
import {eq} from "drizzle-orm";
9+
import {isUuidv4} from "@/utils/verify-uuid";
910

1011
export type databaseAgent = {
1112
name: string,
@@ -34,6 +35,14 @@ export async function POST(
3435
const body: Body = await request.json();
3536
const lastContact = new Date();
3637

38+
if (!isUuidv4(agentId)) {
39+
return NextResponse.json(
40+
{error: "agentId is not a valid uuid"},
41+
{status: 500}
42+
);
43+
}
44+
45+
3746

3847
const agent = await db.query.agent.findFirst({
3948
where: eq(drizzleDb.schemas.agent.id, agentId),

app/api/files/[fileName]/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export async function GET(
3131
{status: 403}
3232
);
3333
}
34-
34+
//@ts-ignore
3535
const expiresAt = parseInt(expires, 10);
3636
if (Date.now() > expiresAt) {
3737
return NextResponse.json(

app/apple-icon.png

10.9 KB
Loading

app/favicon.ico

100644100755
-320 Bytes
Binary file not shown.

app/icon0.svg

Lines changed: 3 additions & 0 deletions
Loading

app/icon1.png

7.67 KB
Loading

app/layout.tsx

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,31 @@
11
import React from "react";
2-
import type { Metadata } from "next";
3-
import { Inter } from "next/font/google";
2+
import type {Metadata} from "next";
3+
import {Inter} from "next/font/google";
44

55
import "./globals.css";
6-
import { Providers } from "./providers";
7-
import { cn } from "@/lib/utils";
6+
import {Providers} from "./providers";
7+
import {cn} from "@/lib/utils";
88

9-
const inter = Inter({ subsets: ["latin"] });
9+
const inter = Inter({subsets: ["latin"]});
1010

1111
export const metadata: Metadata = {
12-
title: "Portabase",
13-
description: "Manage all your database instances from one place !",
12+
title: process.env.NEXT_PUBLIC_PROJECT_NAME ?? "App Title",
13+
description: process.env.NEXT_PUBLIC_PROJECT_DESCRIPTION ?? undefined,
1414
};
1515

1616
export default function RootLayout({
17-
children,
18-
}: Readonly<{
17+
children,
18+
}: Readonly<{
1919
children: React.ReactNode;
2020
}>) {
2121
return (
2222
<html lang="en" suppressHydrationWarning>
23-
<body className={cn(inter.className, "h-full")}>
24-
<Providers>{children}</Providers>
25-
</body>
23+
<head>
24+
<meta name="apple-mobile-web-app-title" content="Portabase"/>
25+
</head>
26+
<body className={cn(inter.className, "h-full")}>
27+
<Providers>{children}</Providers>
28+
</body>
2629
</html>
2730
);
2831
}

app/manifest.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "Portabase",
3+
"short_name": "Portabase",
4+
"icons": [
5+
{
6+
"src": "/web-app-manifest-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png",
9+
"purpose": "maskable"
10+
},
11+
{
12+
"src": "/web-app-manifest-512x512.png",
13+
"sizes": "512x512",
14+
"type": "image/png",
15+
"purpose": "maskable"
16+
}
17+
],
18+
"theme_color": "#ffffff",
19+
"background_color": "#ffffff",
20+
"display": "standalone"
21+
}

0 commit comments

Comments
 (0)