Build and type fixes
This commit is contained in:
parent
d5bd58ac3e
commit
656f3fbe71
64 changed files with 1878 additions and 1501 deletions
13
apps/link/pages/404.tsx
Normal file
13
apps/link/pages/404.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { FC } from "react";
|
||||
import Head from "next/head";
|
||||
import { Layout } from "components/Layout";
|
||||
|
||||
const FourOhFour: FC = () => (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title>Link Shell</title>
|
||||
</Head>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
export default FourOhFour;
|
||||
13
apps/link/pages/500.tsx
Normal file
13
apps/link/pages/500.tsx
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { FC } from "react";
|
||||
import Head from "next/head";
|
||||
import { Layout } from "components/Layout";
|
||||
|
||||
const FiveHundred: FC = () => (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title>Link Shell</title>
|
||||
</Head>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
export default FiveHundred;
|
||||
|
|
@ -17,9 +17,7 @@ import { LicenseInfo } from "@mui/x-data-grid-pro";
|
|||
import { SWRConfig } from "swr";
|
||||
import { GraphQLClient } from "graphql-request";
|
||||
|
||||
LicenseInfo.setLicenseKey(
|
||||
"fd009c623acc055adb16370731be92e4T1JERVI6NDA3NTQsRVhQSVJZPTE2ODAyNTAwMTUwMDAsS0VZVkVSU0lPTj0x"
|
||||
);
|
||||
LicenseInfo.setLicenseKey(process.env.MUI_LICENSE_KEY);
|
||||
|
||||
const clientSideEmotionCache: any = createEmotionCache();
|
||||
|
||||
|
|
@ -28,15 +26,18 @@ interface LinkWebProps extends AppProps {
|
|||
emotionCache?: EmotionCache;
|
||||
}
|
||||
|
||||
const LinkWeb = (props: LinkWebProps) => {
|
||||
export default function LinkWeb(props: LinkWebProps) {
|
||||
const { Component, emotionCache = clientSideEmotionCache, pageProps } = props;
|
||||
|
||||
const [csrfToken, setCsrfToken] = useState("");
|
||||
const origin = typeof window !== 'undefined' && window.location.origin
|
||||
? window.location.origin : null;
|
||||
const origin =
|
||||
typeof window !== "undefined" && window.location.origin
|
||||
? window.location.origin
|
||||
: null;
|
||||
const client = new GraphQLClient(`${origin}/graphql`, {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Accept": "application/json",
|
||||
Accept: "application/json",
|
||||
},
|
||||
});
|
||||
const graphQLFetcher = async ({ document, variables }: any) => {
|
||||
|
|
@ -49,7 +50,7 @@ const LinkWeb = (props: LinkWebProps) => {
|
|||
requestHeaders
|
||||
);
|
||||
|
||||
const token = headers.get('CSRF-Token');
|
||||
const token = headers.get("CSRF-Token");
|
||||
setCsrfToken(token);
|
||||
|
||||
return data;
|
||||
|
|
@ -67,6 +68,4 @@ const LinkWeb = (props: LinkWebProps) => {
|
|||
</CacheProvider>
|
||||
</SessionProvider>
|
||||
);
|
||||
};
|
||||
|
||||
export default LinkWeb;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import { FC } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid } from "@mui/material";
|
||||
|
|
@ -30,3 +29,5 @@ const LabelStudio: FC = () => (
|
|||
);
|
||||
|
||||
export default LabelStudio;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import { FC } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid } from "@mui/material";
|
||||
|
|
@ -30,3 +29,5 @@ const Metamigo: FC = () => (
|
|||
);
|
||||
|
||||
export default Metamigo;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Zammad: FC = () => (
|
|||
);
|
||||
|
||||
export default Zammad;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -28,3 +28,5 @@ const Home = () => (
|
|||
);
|
||||
|
||||
export default Home;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
// @ts-nocheck
|
||||
import { FC, useState } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid, Button } from "@mui/material";
|
||||
import { Grid } from "@mui/material";
|
||||
import { Layout } from "components/Layout";
|
||||
import Iframe from "react-iframe";
|
||||
|
||||
|
|
@ -35,3 +34,5 @@ const About: FC = () => {
|
|||
};
|
||||
|
||||
export default About;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@ const Create: FC = () => {
|
|||
};
|
||||
|
||||
export default Create;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@ const FAQ: FC = () => {
|
|||
};
|
||||
|
||||
export default FAQ;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -1,4 +1,3 @@
|
|||
// @ts-nocheck
|
||||
import { FC, useState } from "react";
|
||||
import Head from "next/head";
|
||||
import { Grid, Button } from "@mui/material";
|
||||
|
|
@ -35,3 +34,5 @@ const Leafcutter: FC = () => {
|
|||
};
|
||||
|
||||
export default Leafcutter;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -35,3 +35,5 @@ const Trends: FC = () => {
|
|||
};
|
||||
|
||||
export default Trends;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -1,30 +0,0 @@
|
|||
import Head from "next/head";
|
||||
import { Grid } from "@mui/material";
|
||||
import { Layout } from "components/Layout";
|
||||
import { ZammadWrapper } from "components/ZammadWrapper";
|
||||
|
||||
const Link = () => (
|
||||
<Layout>
|
||||
<Head>
|
||||
<title>Link Shell</title>
|
||||
</Head>
|
||||
<Grid
|
||||
container
|
||||
spacing={0}
|
||||
sx={{ height: "100%", width: "100%" }}
|
||||
direction="column"
|
||||
>
|
||||
<Grid
|
||||
item
|
||||
sx={{
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
}}
|
||||
>
|
||||
<ZammadWrapper path="/zammad/#ticket/zoom/518/1490" />
|
||||
</Grid>
|
||||
</Grid>
|
||||
</Layout>
|
||||
);
|
||||
|
||||
export default Link;
|
||||
|
|
@ -1,12 +1,18 @@
|
|||
import Head from "next/head";
|
||||
import { FC } from "react";
|
||||
import { Box, Grid, Container, IconButton } from "@mui/material";
|
||||
import { Apple as AppleIcon, Google as GoogleIcon } from "@mui/icons-material";
|
||||
import { signIn, getSession } from "next-auth/react";
|
||||
|
||||
const Login = ({ session }) => {
|
||||
const origin = typeof window !== 'undefined' && window.location.origin
|
||||
type LoginProps = {
|
||||
session: any;
|
||||
};
|
||||
|
||||
const Login: FC<LoginProps> = ({ session }) => {
|
||||
const origin =
|
||||
typeof window !== "undefined" && window.location.origin
|
||||
? window.location.origin
|
||||
: '';
|
||||
: "";
|
||||
const buttonStyles = {
|
||||
borderRadius: 500,
|
||||
width: "100%",
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Profile: NextPage = () => (
|
|||
);
|
||||
|
||||
export default Profile;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Assigned: FC = () => (
|
|||
);
|
||||
|
||||
export default Assigned;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Pending: FC = () => (
|
|||
);
|
||||
|
||||
export default Pending;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Unassigned: FC = () => (
|
|||
);
|
||||
|
||||
export default Unassigned;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
|
|
@ -29,3 +29,5 @@ const Urgent: FC = () => (
|
|||
);
|
||||
|
||||
export default Urgent;
|
||||
|
||||
export const getServerSideProps = async (context: any) => {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue