Refactor database settings to admin page
This commit is contained in:
parent
e6bb87f741
commit
2c3a2b520f
@ -3,6 +3,8 @@ import AdminActions from "@/components/dashboard/admin/AdminActions";
|
|||||||
import ServerStats from "@/components/dashboard/admin/ServerStats";
|
import ServerStats from "@/components/dashboard/admin/ServerStats";
|
||||||
import UserList from "@/components/dashboard/admin/UserList";
|
import UserList from "@/components/dashboard/admin/UserList";
|
||||||
import { getServerAuthSession } from "@/server/auth";
|
import { getServerAuthSession } from "@/server/auth";
|
||||||
|
import DatabaseSettings from "@/components/dashboard/admin/DatabaseSettings";
|
||||||
|
import { Separator } from "@/components/ui/separator";
|
||||||
|
|
||||||
export default async function AdminPage() {
|
export default async function AdminPage() {
|
||||||
const session = await getServerAuthSession();
|
const session = await getServerAuthSession();
|
||||||
@ -13,7 +15,9 @@ export default async function AdminPage() {
|
|||||||
<>
|
<>
|
||||||
<div className="rounded-md border bg-background p-4">
|
<div className="rounded-md border bg-background p-4">
|
||||||
<ServerStats />
|
<ServerStats />
|
||||||
<AdminActions />
|
{/* <AdminActions /> */}
|
||||||
|
<Separator />
|
||||||
|
<DatabaseSettings />
|
||||||
</div>
|
</div>
|
||||||
<div className="mt-4 rounded-md border bg-background p-4">
|
<div className="mt-4 rounded-md border bg-background p-4">
|
||||||
<UserList />
|
<UserList />
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import DatabaseSettings from "@/components/settings/DatabaseSettings";
|
import DatabaseSettings from "@/components/dashboard/admin/DatabaseSettings";
|
||||||
|
|
||||||
export default async function DatabasePage() {
|
export default async function DatabasePage() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@ -31,7 +31,7 @@ export default function DatabaseSettings() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<><div className="mb-8 flex w-full flex-col sm:flex-row">
|
<><div className="mt-8 mb-2 flex w-full flex-col sm:flex-row">
|
||||||
<div className="mb-4 w-full text-lg font-medium sm:w-1/3">
|
<div className="mb-4 w-full text-lg font-medium sm:w-1/3">
|
||||||
Upload SQLite Database
|
Upload SQLite Database
|
||||||
</div>
|
</div>
|
||||||
@ -45,9 +45,9 @@ export const settingsSidebarItems: {
|
|||||||
icon: <KeyRound size={18} />,
|
icon: <KeyRound size={18} />,
|
||||||
path: "/settings/api-keys",
|
path: "/settings/api-keys",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
name: "Database",
|
// name: "Database",
|
||||||
icon: <Download size={18} />,
|
// icon: <Download size={18} />,
|
||||||
path: "/settings/database",
|
// path: "/settings/database",
|
||||||
}
|
// }
|
||||||
];
|
];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user