diff --git a/apps/api/src/prisma/seed.js b/apps/api/src/prisma/seed.js index f43a4aa17..377e4e0e1 100644 --- a/apps/api/src/prisma/seed.js +++ b/apps/api/src/prisma/seed.js @@ -36,8 +36,8 @@ async function main() { const conf = await prisma.config.create({ data: { - gh_version: "0.3.6", - client_version: "0.3.6", + gh_version: "0.4.2", + client_version: "0.4,2", portal_locale: "en", encryption_key: encryptionKey, }, diff --git a/apps/client/layouts/adminLayout.tsx b/apps/client/layouts/adminLayout.tsx index eef95c3d2..c293c198f 100644 --- a/apps/client/layouts/adminLayout.tsx +++ b/apps/client/layouts/adminLayout.tsx @@ -76,6 +76,7 @@ export default function AdminLayout({ children }: any) { ))} +
{children}
diff --git a/apps/client/layouts/newLayout.tsx b/apps/client/layouts/newLayout.tsx index f74b6bb77..26a70f6e6 100644 --- a/apps/client/layouts/newLayout.tsx +++ b/apps/client/layouts/newLayout.tsx @@ -13,7 +13,7 @@ import Link from "next/link"; import { useRouter } from "next/router"; import { Fragment, useEffect, useState } from "react"; -import { ContextMenu } from "@radix-ui/themes"; +import { Button, ContextMenu } from "@radix-ui/themes"; import useTranslation from "next-translate/useTranslation"; import { useUser } from "../store/session"; @@ -76,6 +76,39 @@ export default function NewLayout({ children }: any) { // }, ]; + const admin_settings = [ + { + name: t("sl_users"), + href: "/admin/users/internal", + current: location.pathname === "/admin/users/internal", + }, + { + name: t("sl_clients"), + href: "/admin/clients", + current: location.pathname === "/admin/clients", + }, + { + name: "Email Queues", + href: "/admin/email-queues", + current: location.pathname === "/admin/email-queues", + }, + { + name: "Webhooks", + href: "/admin/webhooks", + current: location.pathname === "/admin/webhooks", + }, + { + name: "Outbound Emails", + href: "/admin/email", + current: location.pathname === "/admin/email", + }, + { + name: "SSO", + href: "/admin/sso", + current: location.pathname === "/admin/sso", + }, + ]; + // async function getQueues() { // const res = await fetch( // `/api/v1/email-queues/all`, @@ -118,8 +151,8 @@ export default function NewLayout({ children }: any) { // }, [user]); // useEffect(() => { - // location.push(`${locale}/${location.pathname}`); - // }, [user, location]); + // getQueues(); + // }, [user]) // const handleKeyPress = useCallback((event: any, location: any) => { // console.log(location); @@ -260,12 +293,13 @@ export default function NewLayout({ children }: any) { {/* Sidebar component, swap this element with another sidebar if you like */}
-
- Your Company +
+ {/* Workflow */} + + + Peppermint + +