mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
Refactoring on some files
This commit is contained in:
@@ -38,7 +38,6 @@ export default async function RoutePage(props: PageParams<{ agentId: string }>)
|
||||
// const databaseId = 'db-123';
|
||||
//
|
||||
|
||||
console.log("agent",agent)
|
||||
|
||||
|
||||
|
||||
|
||||
+12
-8
@@ -86,17 +86,21 @@ export default async function RoutePage(props: PageParams<{
|
||||
return (
|
||||
<Page>
|
||||
<div className="justify-between gap-2 sm:flex">
|
||||
<PageTitle className="flex items-center">
|
||||
<PageTitle className="flex items-center justify-between w-full">
|
||||
{capitalizeFirstLetter(dbItem.name)}
|
||||
<EditButton/>
|
||||
<RetentionPolicySheet database={dbItem}/>
|
||||
<CronButton database={dbItem}/>
|
||||
|
||||
<div className="flex items-center gap-2 justify-between w-full">
|
||||
<div className="flex items-center gap-2">
|
||||
<EditButton/>
|
||||
<RetentionPolicySheet database={dbItem}/>
|
||||
<CronButton database={dbItem}/>
|
||||
</div>
|
||||
<div className="flex items-center gap-2">
|
||||
<BackupButton disable={isAlreadyBackup} databaseId={databaseId}/>
|
||||
</div>
|
||||
</div>
|
||||
</PageTitle>
|
||||
<PageActions className="justify-between">
|
||||
<BackupButton disable={isAlreadyBackup} databaseId={databaseId}/>
|
||||
</PageActions>
|
||||
</div>
|
||||
|
||||
{dbItem.description && (
|
||||
<PageDescription className="mt-5 sm:mt-0">{dbItem.description}</PageDescription>
|
||||
)}
|
||||
|
||||
@@ -45,7 +45,6 @@ export default async function RoutePage(props: PageParams<{ projectId: string }>
|
||||
)
|
||||
// .filter((db) => db.project !== null) as DatabaseWith[];
|
||||
|
||||
console.log("ici34",availableDatabases);
|
||||
|
||||
|
||||
return (
|
||||
|
||||
@@ -35,7 +35,6 @@ export default async function RoutePage(props: PageParams<{ }>) {
|
||||
|
||||
if (!org) notFound();
|
||||
|
||||
console.log("ici",availableDatabases)
|
||||
|
||||
return (
|
||||
<Page>
|
||||
|
||||
@@ -45,7 +45,6 @@ export default async function RoutePage(props: PageParams<{}>) {
|
||||
});
|
||||
|
||||
|
||||
console.log("evolution",backupsEvolution);
|
||||
|
||||
// const tomorrow = new Date();
|
||||
// tomorrow.setDate(tomorrow.getDate() + 1);
|
||||
|
||||
@@ -10,7 +10,6 @@ import {getAccounts, getSessions} from "@/lib/auth/auth";
|
||||
|
||||
export default async function RoutePage(props: PageParams<{}>) {
|
||||
const user = await currentUser();
|
||||
console.log("my user",user);
|
||||
if (!user) {
|
||||
return notFound();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user