Cleanup dependencies

This commit is contained in:
Darren Clarke 2024-09-27 13:11:31 +02:00
parent d286207b9f
commit f86ce1e835
16 changed files with 416 additions and 4227 deletions

View file

@ -3,33 +3,27 @@
import { FC, PropsWithChildren, useState } from "react";
import { Grid } from "@mui/material";
import { CssBaseline } from "@mui/material";
import { AppRouterCacheProvider } from "@mui/material-nextjs/v14-appRouter";
import { SessionProvider } from "next-auth/react";
import { css, Global } from "@emotion/react";
import { fonts } from "@link-stack/ui";
import { Sidebar } from "./Sidebar";
export const InternalLayout: FC<PropsWithChildren> = ({ children }) => {
const [open, setOpen] = useState(true);
const { roboto } = fonts;
const globalCSS = css`
* {
font-family: ${roboto.style.fontFamily};
}
`;
return (
<SessionProvider>
<Global styles={globalCSS} />
<CssBaseline />
<Grid container direction="row">
<Sidebar open={open} setOpen={setOpen} />
<Grid
item
sx={{ ml: open ? "270px" : "70px", width: "100%", height: "100vh" }}
>
{children as any}
<AppRouterCacheProvider>
<SessionProvider>
<CssBaseline />
<Grid container direction="row">
<Sidebar open={open} setOpen={setOpen} />
<Grid
item
sx={{ ml: open ? "270px" : "70px", width: "100%", height: "100vh" }}
>
{children as any}
</Grid>
</Grid>
</Grid>
</SessionProvider>
</SessionProvider>
</AppRouterCacheProvider>
);
};

View file

@ -14,35 +14,17 @@
},
"dependencies": {
"@auth/kysely-adapter": "^1.5.2",
"@emotion/cache": "^11.13.1",
"@emotion/react": "^11.13.3",
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^5",
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-data-grid-pro": "^7.18.0",
"@mui/x-date-pickers-pro": "^7.18.0",
"@mui/x-license": "^7.18.0",
"@link-stack/bridge-common": "*",
"@link-stack/bridge-ui": "*",
"@link-stack/signal-api": "*",
"date-fns": "^4.1.0",
"dotenv": "^16.4.5",
"graphile-worker": "^0.16.6",
"kysely": "0.26.1",
"material-ui-popup-state": "^5.3.1",
"mui-chips-input": "^3.1.0",
"next": "14.2.13",
"next-auth": "^4.24.8",
"pg": "^8.13.0",
"react": "18.3.1",
"react-cookie": "^7.2.0",
"react-digit-input": "^2.1.0",
"react-dom": "18.3.1",
"react-qr-code": "^2.0.15",
"react-timer-hook": "^3.0.7",
"sharp": "^0.33.5",
"tss-react": "^4.9.13",
"tsx": "^4.19.1",
"@link-stack/ui": "*"
},

View file

@ -6,7 +6,6 @@
"license": "AGPL-3.0-or-later",
"dependencies": {
"@adiwajshing/keyed-db": "0.2.4",
"@hapi/boom": "^10.0.1",
"@hapi/hapi": "^21.3.10",
"@hapipal/schmervice": "^3.0.0",
"@hapipal/toys": "^4.0.0",

View file

@ -16,24 +16,14 @@
"@link-stack/signal-api": "*",
"fluent-ffmpeg": "^2.1.3",
"graphile-worker": "^0.16.6",
"html-to-text": "^9.0.5",
"jest": "^29.7.0",
"kysely": "^0.27.3",
"pg": "^8.13.0",
"remeda": "^2.14.0",
"twilio": "^5.3.2"
},
"devDependencies": {
"@babel/core": "7.25.2",
"@babel/preset-env": "7.25.4",
"@babel/preset-typescript": "7.24.7",
"@types/fluent-ffmpeg": "^2.1.26",
"dotenv-cli": "^7.4.2",
"@link-stack/eslint-config": "*",
"prettier": "^3.3.3",
"@link-stack/typescript-config": "*",
"ts-node": "^10.9.2",
"typedoc": "^0.26.7",
"typescript": "^5.6.2"
}
}

View file

@ -22,10 +22,8 @@
"@mui/icons-material": "^5",
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-data-grid-pro": "^7.18.0",
"@mui/x-date-pickers-pro": "^7.18.0",
"@opensearch-project/opensearch": "^2.12.0",
"cryptr": "^6.3.0",
"date-fns": "^4.1.0",
"http-proxy-middleware": "^3.0.2",
"material-ui-popup-state": "^5.3.1",
@ -36,24 +34,16 @@
"react-cookie-consent": "^9.0.0",
"react-dom": "18.3.1",
"react-iframe": "^1.8.5",
"react-markdown": "^9.0.1",
"react-polyglot": "^0.7.2",
"sharp": "^0.33.5",
"uuid": "^10.0.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@types/node": "^22.7.3",
"@types/react": "18.3.9",
"@types/uuid": "^10.0.0",
"babel-loader": "^9.2.1",
"eslint": "^8.0.0",
"eslint-config-next": "^14.2.13",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.0",
"@link-stack/eslint-config": "*",
"@link-stack/typescript-config": "*",
"typescript": "5.6.2"
}
}

View file

@ -29,9 +29,9 @@ import {
import { usePathname } from "next/navigation";
import Link from "next/link";
import Image from "next/image";
import LinkLogo from "public/link-logo-small.png";
import LinkLogo from "@app/../public/link-logo-small.png";
import { useSession, signOut } from "next-auth/react";
import { getOverviewTicketCountsAction } from "app/_actions/overviews";
import { getOverviewTicketCountsAction } from "@/app/_actions/overviews";
import { SearchBox } from "./SearchBox";
import { fonts } from "@link-stack/ui";

View file

@ -1,5 +1,5 @@
import NextAuth from "next-auth";
import { authOptions } from "app/_lib/authentication";
import { authOptions } from "@/app/_lib/authentication";
const handler = NextAuth(authOptions);

View file

@ -25,11 +25,11 @@
"@mui/material": "^5",
"@mui/material-nextjs": "^5",
"@mui/x-data-grid-pro": "^7.18.0",
"@mui/x-date-pickers": "^7.18.0",
"@mui/x-date-pickers-pro": "^7.18.0",
"@mui/x-license": "^7.18.0",
"date-fns": "^4.1.0",
"graphql": "^16.9.0",
"graphql-request": "^7.1.0",
"material-ui-popup-state": "^5.3.1",
"mui-chips-input": "^2.1.5",
"next": "14.2.13",
"next-auth": "^4.24.8",
@ -41,18 +41,9 @@
"sharp": "^0.33.5"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@link-stack/eslint-config": "*",
"@types/node": "^22.7.3",
"@types/react": "18.3.9",
"@types/uuid": "^10.0.0",
"babel-loader": "^9.2.1",
"eslint": "^8.0.0",
"eslint-config-next": "^14.2.13",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jsx-a11y": "^6.10.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.37.0",
"typescript": "5.6.2"
"@types/uuid": "^10.0.0"
}
}