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 UserList from "@/components/dashboard/admin/UserList";
|
||||
import { getServerAuthSession } from "@/server/auth";
|
||||
import DatabaseSettings from "@/components/dashboard/admin/DatabaseSettings";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
|
||||
export default async function AdminPage() {
|
||||
const session = await getServerAuthSession();
|
||||
@ -13,7 +15,9 @@ export default async function AdminPage() {
|
||||
<>
|
||||
<div className="rounded-md border bg-background p-4">
|
||||
<ServerStats />
|
||||
<AdminActions />
|
||||
{/* <AdminActions /> */}
|
||||
<Separator />
|
||||
<DatabaseSettings />
|
||||
</div>
|
||||
<div className="mt-4 rounded-md border bg-background p-4">
|
||||
<UserList />
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import DatabaseSettings from "@/components/settings/DatabaseSettings";
|
||||
import DatabaseSettings from "@/components/dashboard/admin/DatabaseSettings";
|
||||
|
||||
export default async function DatabasePage() {
|
||||
return (
|
||||
|
||||
@ -31,7 +31,7 @@ export default function DatabaseSettings() {
|
||||
};
|
||||
|
||||
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">
|
||||
Upload SQLite Database
|
||||
</div>
|
||||
@ -45,9 +45,9 @@ export const settingsSidebarItems: {
|
||||
icon: <KeyRound size={18} />,
|
||||
path: "/settings/api-keys",
|
||||
},
|
||||
{
|
||||
name: "Database",
|
||||
icon: <Download size={18} />,
|
||||
path: "/settings/database",
|
||||
}
|
||||
// {
|
||||
// name: "Database",
|
||||
// icon: <Download size={18} />,
|
||||
// path: "/settings/database",
|
||||
// }
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user