Zammad docker and Link structure updates

This commit is contained in:
Darren Clarke 2023-07-10 10:13:06 +00:00 committed by GitHub
parent 2a37297ae1
commit 60b82f6fb4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 94 additions and 36 deletions

View file

@ -47,7 +47,7 @@ export const Login: FC<LoginProps> = ({ session }) => {
sx={buttonStyles}
onClick={() =>
signIn("google", {
callbackUrl: `${origin}/proxy/zammad/auth/sso`,
callbackUrl: `${origin}/setup`,
})
}
>

View file

@ -1,6 +1,6 @@
"use client";
import { FC } from "react";
import { ZammadWrapper } from "@/app/_components/ZammadWrapper";
import { ZammadWrapper } from "./ZammadWrapper";
export const Home: FC = () => <ZammadWrapper path="/#dashboard" hideSidebar />;

View file

@ -1,5 +1,5 @@
import { Metadata } from "next";
import { ZammadWrapper } from "@/app/_components/ZammadWrapper";
import { ZammadWrapper } from "@/app/(main)/_components/ZammadWrapper";
export const metadata: Metadata = {
title: "Zammad",

View file

@ -1,5 +1,5 @@
import { Metadata } from "next";
import { ZammadWrapper } from "@/app/_components/ZammadWrapper";
import { ZammadWrapper } from "@/app/(main)/_components/ZammadWrapper";
export const metadata: Metadata = {
title: "Knowledge Base",

View file

@ -0,0 +1,15 @@
import { ReactNode } from "react";
import { Metadata } from "next";
import { InternalLayout } from "./_components/InternalLayout";
export const metadata: Metadata = {
title: "Link",
};
type LayoutProps = {
children: ReactNode;
};
export default function Layout({ children }: LayoutProps) {
return <InternalLayout>{children}</InternalLayout>;
}

View file

@ -1,5 +1,5 @@
import { Metadata } from "next";
import { Home } from "@/app/_components/Home";
import { Home } from "./_components/Home";
export const metadata: Metadata = {
title: "Link",

View file

@ -1,5 +1,5 @@
import { Metadata } from "next";
import { ZammadWrapper } from "@/app/_components/ZammadWrapper";
import { ZammadWrapper } from "@/app/(main)/_components/ZammadWrapper";
export const metadata: Metadata = {
title: "Profile",

View file

@ -0,0 +1,14 @@
"use client";
import { FC, useLayoutEffect } from "react";
import { useRouter } from "next/navigation";
import { ZammadWrapper } from "app/(main)/_components/ZammadWrapper";
export const Setup: FC = () => {
const router = useRouter();
useLayoutEffect(() => {
setTimeout(() => router.push("/"), 4000);
}, [router]);
return <ZammadWrapper path="/auth/sso" hideSidebar={false} />;
};

View file

@ -0,0 +1,10 @@
import { Metadata } from "next";
import { Setup } from "./_components/Setup";
export const metadata: Metadata = {
title: "Link",
};
export default function Page() {
return <Setup />;
}

View file

@ -9,7 +9,6 @@ import "@fontsource/playfair-display/900.css";
// import getConfig from "next/config";
// import { LicenseInfo } from "@mui/x-data-grid-pro";
import { MultiProvider } from "./_components/MultiProvider";
import { InternalLayout } from "./_components/InternalLayout";
export const metadata: Metadata = {
title: "Link",
@ -26,9 +25,7 @@ export default function Layout({ children }: LayoutProps) {
return (
<html lang="en">
<body>
<MultiProvider>
<InternalLayout>{children}</InternalLayout>
</MultiProvider>
<MultiProvider>{children}</MultiProvider>
</body>
</html>
);