From 035cf58f3e0381d62643521d677ec7a22f352793 Mon Sep 17 00:00:00 2001 From: talboren Date: Tue, 20 Feb 2024 11:12:00 +0200 Subject: [PATCH] fix(ui): import navbar (#841) --- keep-ui/app/layout.tsx | 2 +- keep-ui/components/navbar/navbar.tsx | 30 ---------------------------- keep-ui/tsconfig.json | 2 +- keep/api/core/db.py | 1 + 4 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 keep-ui/components/navbar/navbar.tsx diff --git a/keep-ui/app/layout.tsx b/keep-ui/app/layout.tsx index 3af832616..0437f4ed2 100644 --- a/keep-ui/app/layout.tsx +++ b/keep-ui/app/layout.tsx @@ -14,7 +14,7 @@ const mulish = Mulish({ }); import { ToastContainer } from "react-toastify"; -import Navbar from "components/navbar/Navbar"; +import Navbar from "../components/navbar/Navbar"; type RootLayoutProps = { children: ReactNode; diff --git a/keep-ui/components/navbar/navbar.tsx b/keep-ui/components/navbar/navbar.tsx deleted file mode 100644 index 4e9584838..000000000 --- a/keep-ui/components/navbar/navbar.tsx +++ /dev/null @@ -1,30 +0,0 @@ -import { getServerSession } from "next-auth"; -import { Search } from "components/navbar/Search"; -import { ConfigureLinks } from "components/navbar/ConfigureLinks"; -import { AnalyseLinks } from "components/navbar/AnalyseLinks"; -import { LearnLinks } from "components/navbar/LearnLinks"; -import { UserInfo } from "components/navbar/UserInfo"; -import { InitPostHog } from "components/navbar/InitPostHog"; -import { Menu } from "components/navbar/Menu"; - -export default async function NavbarInner() { - const session = await getServerSession(); - - return ( - <> - - -
- -
- - - -
-
- - -
- - ); -} diff --git a/keep-ui/tsconfig.json b/keep-ui/tsconfig.json index 2650f85f4..9a6c3b6b7 100644 --- a/keep-ui/tsconfig.json +++ b/keep-ui/tsconfig.json @@ -5,7 +5,7 @@ "allowJs": true, "skipLibCheck": true, "strict": true, - "forceConsistentCasingInFileNames": true, + "forceConsistentCasingInFileNames": false, "noEmit": true, "esModuleInterop": true, "module": "esnext", diff --git a/keep/api/core/db.py b/keep/api/core/db.py index 284ccc89e..d779ad594 100644 --- a/keep/api/core/db.py +++ b/keep/api/core/db.py @@ -20,6 +20,7 @@ from keep.api.core.config import config from keep.api.core.rbac import Admin as AdminRole from keep.api.models.db.alert import * +from keep.api.models.db.mapping import * from keep.api.models.db.preset import * from keep.api.models.db.provider import * from keep.api.models.db.rule import *