*
*/g, ""),
+ sentTime: article.updated_at,
+ sender: article.from,
+ direction: article.sender === "Agent" ? "outgoing" : "incoming",
+ position: "last",
+ type: "html",
+ }}
+ />
+ ))}
+
+ {/* */}
+
+
+ );
+};
diff --git a/components/TicketEdit.tsx b/components/TicketEdit.tsx
new file mode 100644
index 0000000..a59d19d
--- /dev/null
+++ b/components/TicketEdit.tsx
@@ -0,0 +1,75 @@
+import { FC, useEffect } from "react";
+import { Grid, Box, Typography, TextField } from "@mui/material";
+import "@chatscope/chat-ui-kit-styles/dist/default/styles.min.css";
+import {
+ MainContainer,
+ ChatContainer,
+ MessageList,
+ Message,
+ MessageInput,
+ Conversation,
+ ConversationHeader,
+} from "@chatscope/chat-ui-kit-react";
+
+interface TicketEditProps {
+ ticket: any;
+}
+
+export const TicketEdit: FC = ({ ticket }) => {
+ return (
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ );
+};
diff --git a/components/ZammadWrapper.tsx b/components/ZammadWrapper.tsx
index edaec8d..db5c08e 100644
--- a/components/ZammadWrapper.tsx
+++ b/components/ZammadWrapper.tsx
@@ -29,6 +29,9 @@ export const ZammadWrapper: FC = ({
// @ts-ignore
linkElement.contentDocument.querySelector("#navigation").style =
"display: none";
+ // @ts-ignore
+ linkElement.contentDocument.querySelector("body").style =
+ "font-family: Arial";
if (hideSidebar) {
// @ts-ignore
diff --git a/next.config.js b/next.config.js
index c160bd0..0187de3 100644
--- a/next.config.js
+++ b/next.config.js
@@ -3,7 +3,15 @@ module.exports = {
locales: ["en", "fr"],
defaultLocale: "en",
},
-
+ async redirects() {
+ return [
+ {
+ source: "/zammad#ticket/zoom/:path*",
+ destination: "/ticket/:path*",
+ permanent: true,
+ },
+ ];
+ },
rewrites: async () => ({
fallback: [
{
diff --git a/package-lock.json b/package-lock.json
index 78e93a3..baad371 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -8,6 +8,8 @@
"name": "link-shell",
"version": "0.0.1",
"dependencies": {
+ "@chatscope/chat-ui-kit-react": "^1.9.8",
+ "@chatscope/chat-ui-kit-styles": "^1.4.0",
"@emotion/cache": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/server": "^11.10.0",
@@ -16,28 +18,28 @@
"@fontsource/poppins": "^4.5.10",
"@fontsource/roboto": "^4.5.8",
"@mui/icons-material": "^5",
- "@mui/lab": "^5.0.0-alpha.110",
+ "@mui/lab": "^5.0.0-alpha.112",
"@mui/material": "^5",
- "@mui/x-data-grid-pro": "^5.17.14",
- "@mui/x-date-pickers-pro": "^5.0.9",
+ "@mui/x-data-grid-pro": "^5.17.15",
+ "@mui/x-date-pickers-pro": "^5.0.10",
"date-fns": "^2.29.3",
"http-proxy-middleware": "^2.0.6",
- "material-ui-popup-state": "^4.1.0",
+ "material-ui-popup-state": "^5.0.3",
"next": "^13.0",
- "next-auth": "^4.17.0",
+ "next-auth": "^4.18.6",
"next-http-proxy-middleware": "^1.2.5",
"react": "^18",
"react-dom": "^18",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
- "swr": "^1.3.0"
+ "swr": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@types/react": "^18",
"@types/uuid": "^9.0.0",
"babel-loader": "^9.1.0",
- "eslint": "^8.28.0",
+ "eslint": "^8.29.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.0.6",
"eslint-config-prettier": "^8.5.0",
@@ -45,7 +47,7 @@
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
- "typescript": "^4.9.3"
+ "typescript": "^4.9.4"
}
},
"node_modules/@ampproject/remapping": {
@@ -317,9 +319,9 @@
}
},
"node_modules/@babel/runtime": {
- "version": "7.20.5",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.5.tgz",
- "integrity": "sha512-+4k537wJj1TFJnGfT3gHR5gz5os0XUVYebg4Utdq0KtIxJqiWHtHSSivHBIMFR5Bt0uojHXJKExtKbOywqDtFg==",
+ "version": "7.20.6",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz",
+ "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==",
"dependencies": {
"regenerator-runtime": "^0.13.11"
},
@@ -386,6 +388,30 @@
"node": ">=6.9.0"
}
},
+ "node_modules/@chatscope/chat-ui-kit-react": {
+ "version": "1.9.8",
+ "resolved": "https://registry.npmjs.org/@chatscope/chat-ui-kit-react/-/chat-ui-kit-react-1.9.8.tgz",
+ "integrity": "sha512-CLcZfSLORUATQEB4IeM75bp7e8v5dpJbggIHG0WrUEWHbQ/E6eI77kFZXqQT4bI00gMOevifqavScutaLZqcxQ==",
+ "dependencies": {
+ "@chatscope/chat-ui-kit-styles": "^1.2.0",
+ "@fortawesome/fontawesome-free": "^5.12.1",
+ "@fortawesome/fontawesome-svg-core": "^1.2.26",
+ "@fortawesome/free-solid-svg-icons": "^5.12.0",
+ "@fortawesome/react-fontawesome": "^0.1.8",
+ "classnames": "^2.2.6",
+ "prop-types": "^15.7.2"
+ },
+ "peerDependencies": {
+ "prop-types": "^15.7.2",
+ "react": "^16.12.0 || ^17.0.0 || ^18.2.0",
+ "react-dom": "^16.12.0 || ^17.0.0 || ^18.2.0"
+ }
+ },
+ "node_modules/@chatscope/chat-ui-kit-styles": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@chatscope/chat-ui-kit-styles/-/chat-ui-kit-styles-1.4.0.tgz",
+ "integrity": "sha512-016mBJD3DESw7Nh+lkKcPd22xG92ghA0VpIXIbjQtmXhC7Ve6wRazTy8z1Ahut+Tbv179+JxrftuMngsj/yV8Q=="
+ },
"node_modules/@date-io/core": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@date-io/core/-/core-2.16.0.tgz",
@@ -672,6 +698,60 @@
"resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.8.tgz",
"integrity": "sha512-CnD7zLItIzt86q4Sj3kZUiLcBk1dSk81qcqgMGaZe7SQ1P8hFNxhMl5AZthK1zrDM5m74VVhaOpuMGIL4gagaA=="
},
+ "node_modules/@fortawesome/fontawesome-common-types": {
+ "version": "0.2.36",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
+ "integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg==",
+ "hasInstallScript": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@fortawesome/fontawesome-free": {
+ "version": "5.15.4",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz",
+ "integrity": "sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg==",
+ "hasInstallScript": true,
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@fortawesome/fontawesome-svg-core": {
+ "version": "1.2.36",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.36.tgz",
+ "integrity": "sha512-YUcsLQKYb6DmaJjIHdDWpBIGCcyE/W+p/LMGvjQem55Mm2XWVAP5kWTMKWLv9lwpCVjpLxPyOMOyUocP1GxrtA==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@fortawesome/fontawesome-common-types": "^0.2.36"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@fortawesome/free-solid-svg-icons": {
+ "version": "5.15.4",
+ "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz",
+ "integrity": "sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w==",
+ "hasInstallScript": true,
+ "dependencies": {
+ "@fortawesome/fontawesome-common-types": "^0.2.36"
+ },
+ "engines": {
+ "node": ">=6"
+ }
+ },
+ "node_modules/@fortawesome/react-fontawesome": {
+ "version": "0.1.19",
+ "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.19.tgz",
+ "integrity": "sha512-Hyb+lB8T18cvLNX0S3llz7PcSOAJMLwiVKBuuzwM/nI5uoBw+gQjnf9il0fR1C3DKOI5Kc79pkJ4/xB0Uw9aFQ==",
+ "dependencies": {
+ "prop-types": "^15.8.1"
+ },
+ "peerDependencies": {
+ "@fortawesome/fontawesome-svg-core": "~1 || ~6",
+ "react": ">=16.x"
+ }
+ },
"node_modules/@humanwhocodes/config-array": {
"version": "0.11.7",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz",
@@ -840,15 +920,15 @@
}
},
"node_modules/@mui/lab": {
- "version": "5.0.0-alpha.110",
- "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-5.0.0-alpha.110.tgz",
- "integrity": "sha512-SkX5QNbaWouO7BXvb8zpFzDizLt7UzgaebqKSvFJLF28OXiNDfPVCle6IIB4g7hAyb/o19Kbhxs9V+LwK5gQzA==",
+ "version": "5.0.0-alpha.112",
+ "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-5.0.0-alpha.112.tgz",
+ "integrity": "sha512-XKxxUevHup9l9THXWhPcWxm8LZj+E8KDOz6cWqXOnXfSZwFYsvK/nB2R4PCiy/wobURk/+qxIAzryBA9pnSk2g==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
- "@mui/base": "5.0.0-alpha.108",
- "@mui/system": "^5.10.16",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/base": "5.0.0-alpha.110",
+ "@mui/system": "^5.11.0",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
"react-is": "^18.2.0"
@@ -881,14 +961,14 @@
}
},
"node_modules/@mui/lab/node_modules/@mui/base": {
- "version": "5.0.0-alpha.108",
- "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.108.tgz",
- "integrity": "sha512-KjzRUts2i/ODlMfywhFTqTzQl+Cr9nlDSZxJcnYjrbOV/iRyQNBTDoiFJt+XEdRi0fZBHnk74AFbnP56ehybsA==",
+ "version": "5.0.0-alpha.110",
+ "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.110.tgz",
+ "integrity": "sha512-q4TH9T3sTBknTXXTEf2zO8F3nbHg5iGgiaRx9XErTbXvHrmLrQXbQ4hmrLERocSTBFCFWkKyne/qZj0diWlPtA==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@emotion/is-prop-valid": "^1.2.0",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"@popperjs/core": "^2.11.6",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
@@ -957,12 +1037,12 @@
}
},
"node_modules/@mui/private-theming": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.10.16.tgz",
- "integrity": "sha512-0MArkJaOHRCKqL/GWjngGZmyOeRz+uxffhx82bKcewr8swqV7xx7EFP02pk0L/gLdfcvYdqwH4YTVjG/+TaKrg==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.11.0.tgz",
+ "integrity": "sha512-UFQLb9x5Sj4pg2GhhCGw3Ls/y1Hw/tz9RsBrULvUF0Vgps1z19o7XTq2xqUvp7pN7fJTW7eVIT2gwVg2xlk8PQ==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/utils": "^5.11.0",
"prop-types": "^15.8.1"
},
"engines": {
@@ -983,11 +1063,11 @@
}
},
"node_modules/@mui/styled-engine": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.10.16.tgz",
- "integrity": "sha512-ZMSjXvtiGwGDKqrSlXhpxK2voUaF2/lpC/pSTfFmZvKH9j9a9h1/iwo3ybgjFVYGgbfNeW4h0xEchiRohu9xsw==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.11.0.tgz",
+ "integrity": "sha512-AF06K60Zc58qf0f7X+Y/QjaHaZq16znliLnGc9iVrV/+s8Ln/FCoeNuFvhlCbZZQ5WQcJvcy59zp0nXrklGGPQ==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@emotion/cache": "^11.10.5",
"csstype": "^3.1.1",
"prop-types": "^15.8.1"
@@ -1014,15 +1094,15 @@
}
},
"node_modules/@mui/system": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.10.16.tgz",
- "integrity": "sha512-OqI9B1jZ9zQ/dmoqseku4CzdEs9DbLiiMOaWxC3WeAJxM1UavlCgXz0encqm93LIlmSL7TjuHN1/rW8BJCnU8A==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.11.0.tgz",
+ "integrity": "sha512-HFUT7Dlmyq6Wfuxsw8QBXZxXDYIQQaJ4YHaZd7s+nDMcjerLnILxjh2g3a6umtOUM+jEcRaFJAtvLZvlGfa5fw==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
- "@mui/private-theming": "^5.10.16",
- "@mui/styled-engine": "^5.10.16",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/private-theming": "^5.11.0",
+ "@mui/styled-engine": "^5.11.0",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
"prop-types": "^15.8.1"
@@ -1053,9 +1133,9 @@
}
},
"node_modules/@mui/types": {
- "version": "7.2.2",
- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.2.tgz",
- "integrity": "sha512-siex8cZDtWeC916cXOoUOnEQQejuMYmHtc4hM6VkKVYaBICz3VIiqyiAomRboTQHt2jchxQ5Q5ATlbcDekTxDA==",
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.3.tgz",
+ "integrity": "sha512-tZ+CQggbe9Ol7e/Fs5RcKwg/woU+o8DCtOnccX6KmbBc7YrfqMYEYuaIcXHuhpT880QwNkZZ3wQwvtlDFA2yOw==",
"peerDependencies": {
"@types/react": "*"
},
@@ -1066,11 +1146,11 @@
}
},
"node_modules/@mui/utils": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.10.16.tgz",
- "integrity": "sha512-3MB/SGsgiiu9Z55CFmAfiONUoR7AAue/H4F6w3mc2LnhFQCsoVvXhioDPcsiRpUMIQr34jDPzGXdCuqWooPCXQ==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.11.0.tgz",
+ "integrity": "sha512-DP/YDaVVCVzJpZ5FFPLKNmaJkeaYRviTyIZkL/D5/FmPXQiA6ecd6z0/+VwoNQtp7aXAQWaRhvz4FM25yqFlHA==",
"dependencies": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@types/prop-types": "^15.7.5",
"@types/react-is": "^16.7.1 || ^17.0.0",
"prop-types": "^15.8.1",
@@ -1113,9 +1193,9 @@
}
},
"node_modules/@mui/x-data-grid-pro": {
- "version": "5.17.14",
- "resolved": "https://registry.npmjs.org/@mui/x-data-grid-pro/-/x-data-grid-pro-5.17.14.tgz",
- "integrity": "sha512-POIj/FUurNVv18QePgZ7sUoUQyjdtL0MR3aonXKYIfrTBvSAJ08Vv5GspMX0QcKWjS2eN19MhrYV79ayuvFDUA==",
+ "version": "5.17.15",
+ "resolved": "https://registry.npmjs.org/@mui/x-data-grid-pro/-/x-data-grid-pro-5.17.15.tgz",
+ "integrity": "sha512-pNa+C5y+fHZW/7fxoVmYhOun1KN5j8ahCrpwlt3Sl4P/GHOb7EpleufQTZvr2kwmBDn0G0JjSYCH9BhZC1Ohew==",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@mui/utils": "^5.10.3",
@@ -1137,9 +1217,9 @@
}
},
"node_modules/@mui/x-date-pickers": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-5.0.9.tgz",
- "integrity": "sha512-PM3RU8MiwDVi+dSDGJ7ylI0hCe79wSCDfrjghS8ApGGFn/n87S8pUZxsZ5czw3mVRN6VfS2C19peo4nM1Tx+nA==",
+ "version": "5.0.10",
+ "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-5.0.10.tgz",
+ "integrity": "sha512-k+SKBqlpYsY49JVs7PORDvnfoXw9nJELfImR/3jTgHqP8hQQ6loFjB9ZFvc5NjV4Jf2NIJFmdcp6g8cO31Wmbg==",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@date-io/core": "^2.15.0",
@@ -1195,9 +1275,9 @@
}
},
"node_modules/@mui/x-date-pickers-pro": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/@mui/x-date-pickers-pro/-/x-date-pickers-pro-5.0.9.tgz",
- "integrity": "sha512-7Sn3vb8OmCIYpNSSplH8qRoRgyYUEJBM9VWqpxRuZNQIjMAAZa571quLDMf+8DPVNB5RW+wf6Xl8tY3Vwnq3dA==",
+ "version": "5.0.10",
+ "resolved": "https://registry.npmjs.org/@mui/x-date-pickers-pro/-/x-date-pickers-pro-5.0.10.tgz",
+ "integrity": "sha512-104x0+P8RrtI7/cL+3Z6V7uo4KouuzlLKM2e24fxiOf1/BFxQ0QgA6hkBlQnSeOZhZdHKzHXjbjrmYoMAyIkxw==",
"dependencies": {
"@babel/runtime": "^7.18.9",
"@date-io/date-fns": "^2.15.0",
@@ -1205,7 +1285,7 @@
"@date-io/luxon": "^2.15.0",
"@date-io/moment": "^2.15.0",
"@mui/utils": "^5.10.3",
- "@mui/x-date-pickers": "5.0.9",
+ "@mui/x-date-pickers": "5.0.10",
"@mui/x-license-pro": "5.17.12",
"clsx": "^1.2.1",
"prop-types": "^15.7.2",
@@ -2739,9 +2819,9 @@
}
},
"node_modules/eslint": {
- "version": "8.28.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz",
- "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==",
+ "version": "8.29.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz",
+ "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==",
"dev": true,
"dependencies": {
"@eslint/eslintrc": "^1.3.3",
@@ -4353,17 +4433,17 @@
}
},
"node_modules/material-ui-popup-state": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/material-ui-popup-state/-/material-ui-popup-state-4.1.0.tgz",
- "integrity": "sha512-YAxLT10XALsUuuo46sc81NKD6oKJzlkcKP3e+IqC0pKwzAhOAZIQ+RUHXT6Mz3bXHKoHCsM+NdIQxR4mOH/KEQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/material-ui-popup-state/-/material-ui-popup-state-5.0.3.tgz",
+ "integrity": "sha512-AdlAEDmOAQ3BZMnNfyKD5CL+aNMb8zd5tDZWG5Ykx3vcuPbaL6SPjJ5kWuWXrJvapL9I8wwxaYhV4gt3tZmyOA==",
"dependencies": {
- "@babel/runtime": "^7.12.5",
+ "@babel/runtime": "^7.20.6",
"@mui/material": "^5.0.0",
"classnames": "^2.2.6",
"prop-types": "^15.7.2"
},
"peerDependencies": {
- "react": "^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
}
},
"node_modules/merge-stream": {
@@ -4527,9 +4607,9 @@
}
},
"node_modules/next-auth": {
- "version": "4.17.0",
- "resolved": "https://registry.npmjs.org/next-auth/-/next-auth-4.17.0.tgz",
- "integrity": "sha512-aN2tdnjS0MDeUpB2tBDOaWnegkgeMWrsccujbXRGMJ607b+EwRcy63MFGSr0OAboDJEe0902piXQkt94GqF8Qw==",
+ "version": "4.18.6",
+ "resolved": "https://registry.npmjs.org/next-auth/-/next-auth-4.18.6.tgz",
+ "integrity": "sha512-0TQwbq5X9Jyd1wUVYUoyvHJh4JWXeW9UOcMEl245Er/Y5vsSbyGJHt8M7xjRMzk9mORVMYehoMdERgyiq/jCgA==",
"dependencies": {
"@babel/runtime": "^7.16.3",
"@panva/hkdf": "^1.0.1",
@@ -5656,9 +5736,15 @@
}
},
"node_modules/swr": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/swr/-/swr-1.3.0.tgz",
- "integrity": "sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==",
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/swr/-/swr-2.0.0.tgz",
+ "integrity": "sha512-IhUx5yPkX+Fut3h0SqZycnaNLXLXsb2ECFq0Y29cxnK7d8r7auY2JWNbCW3IX+EqXUg3rwNJFlhrw5Ye/b6k7w==",
+ "dependencies": {
+ "use-sync-external-store": "^1.2.0"
+ },
+ "engines": {
+ "pnpm": "7"
+ },
"peerDependencies": {
"react": "^16.11.0 || ^17.0.0 || ^18.0.0"
}
@@ -5885,9 +5971,9 @@
}
},
"node_modules/typescript": {
- "version": "4.9.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
- "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
+ "version": "4.9.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",
+ "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",
"dev": true,
"bin": {
"tsc": "bin/tsc",
@@ -5945,6 +6031,14 @@
"punycode": "^2.1.0"
}
},
+ "node_modules/use-sync-external-store": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
+ "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
+ "peerDependencies": {
+ "react": "^16.8.0 || ^17.0.0 || ^18.0.0"
+ }
+ },
"node_modules/util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
@@ -6362,9 +6456,9 @@
}
},
"@babel/runtime": {
- "version": "7.20.5",
- "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.5.tgz",
- "integrity": "sha512-+4k537wJj1TFJnGfT3gHR5gz5os0XUVYebg4Utdq0KtIxJqiWHtHSSivHBIMFR5Bt0uojHXJKExtKbOywqDtFg==",
+ "version": "7.20.6",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.6.tgz",
+ "integrity": "sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA==",
"requires": {
"regenerator-runtime": "^0.13.11"
}
@@ -6416,6 +6510,25 @@
"to-fast-properties": "^2.0.0"
}
},
+ "@chatscope/chat-ui-kit-react": {
+ "version": "1.9.8",
+ "resolved": "https://registry.npmjs.org/@chatscope/chat-ui-kit-react/-/chat-ui-kit-react-1.9.8.tgz",
+ "integrity": "sha512-CLcZfSLORUATQEB4IeM75bp7e8v5dpJbggIHG0WrUEWHbQ/E6eI77kFZXqQT4bI00gMOevifqavScutaLZqcxQ==",
+ "requires": {
+ "@chatscope/chat-ui-kit-styles": "^1.2.0",
+ "@fortawesome/fontawesome-free": "^5.12.1",
+ "@fortawesome/fontawesome-svg-core": "^1.2.26",
+ "@fortawesome/free-solid-svg-icons": "^5.12.0",
+ "@fortawesome/react-fontawesome": "^0.1.8",
+ "classnames": "^2.2.6",
+ "prop-types": "^15.7.2"
+ }
+ },
+ "@chatscope/chat-ui-kit-styles": {
+ "version": "1.4.0",
+ "resolved": "https://registry.npmjs.org/@chatscope/chat-ui-kit-styles/-/chat-ui-kit-styles-1.4.0.tgz",
+ "integrity": "sha512-016mBJD3DESw7Nh+lkKcPd22xG92ghA0VpIXIbjQtmXhC7Ve6wRazTy8z1Ahut+Tbv179+JxrftuMngsj/yV8Q=="
+ },
"@date-io/core": {
"version": "2.16.0",
"resolved": "https://registry.npmjs.org/@date-io/core/-/core-2.16.0.tgz",
@@ -6622,6 +6735,40 @@
"resolved": "https://registry.npmjs.org/@fontsource/roboto/-/roboto-4.5.8.tgz",
"integrity": "sha512-CnD7zLItIzt86q4Sj3kZUiLcBk1dSk81qcqgMGaZe7SQ1P8hFNxhMl5AZthK1zrDM5m74VVhaOpuMGIL4gagaA=="
},
+ "@fortawesome/fontawesome-common-types": {
+ "version": "0.2.36",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.36.tgz",
+ "integrity": "sha512-a/7BiSgobHAgBWeN7N0w+lAhInrGxksn13uK7231n2m8EDPE3BMCl9NZLTGrj9ZXfCmC6LM0QLqXidIizVQ6yg=="
+ },
+ "@fortawesome/fontawesome-free": {
+ "version": "5.15.4",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz",
+ "integrity": "sha512-eYm8vijH/hpzr/6/1CJ/V/Eb1xQFW2nnUKArb3z+yUWv7HTwj6M7SP957oMjfZjAHU6qpoNc2wQvIxBLWYa/Jg=="
+ },
+ "@fortawesome/fontawesome-svg-core": {
+ "version": "1.2.36",
+ "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.36.tgz",
+ "integrity": "sha512-YUcsLQKYb6DmaJjIHdDWpBIGCcyE/W+p/LMGvjQem55Mm2XWVAP5kWTMKWLv9lwpCVjpLxPyOMOyUocP1GxrtA==",
+ "requires": {
+ "@fortawesome/fontawesome-common-types": "^0.2.36"
+ }
+ },
+ "@fortawesome/free-solid-svg-icons": {
+ "version": "5.15.4",
+ "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.15.4.tgz",
+ "integrity": "sha512-JLmQfz6tdtwxoihXLg6lT78BorrFyCf59SAwBM6qV/0zXyVeDygJVb3fk+j5Qat+Yvcxp1buLTY5iDh1ZSAQ8w==",
+ "requires": {
+ "@fortawesome/fontawesome-common-types": "^0.2.36"
+ }
+ },
+ "@fortawesome/react-fontawesome": {
+ "version": "0.1.19",
+ "resolved": "https://registry.npmjs.org/@fortawesome/react-fontawesome/-/react-fontawesome-0.1.19.tgz",
+ "integrity": "sha512-Hyb+lB8T18cvLNX0S3llz7PcSOAJMLwiVKBuuzwM/nI5uoBw+gQjnf9il0fR1C3DKOI5Kc79pkJ4/xB0Uw9aFQ==",
+ "requires": {
+ "prop-types": "^15.8.1"
+ }
+ },
"@humanwhocodes/config-array": {
"version": "0.11.7",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.7.tgz",
@@ -6732,29 +6879,29 @@
}
},
"@mui/lab": {
- "version": "5.0.0-alpha.110",
- "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-5.0.0-alpha.110.tgz",
- "integrity": "sha512-SkX5QNbaWouO7BXvb8zpFzDizLt7UzgaebqKSvFJLF28OXiNDfPVCle6IIB4g7hAyb/o19Kbhxs9V+LwK5gQzA==",
+ "version": "5.0.0-alpha.112",
+ "resolved": "https://registry.npmjs.org/@mui/lab/-/lab-5.0.0-alpha.112.tgz",
+ "integrity": "sha512-XKxxUevHup9l9THXWhPcWxm8LZj+E8KDOz6cWqXOnXfSZwFYsvK/nB2R4PCiy/wobURk/+qxIAzryBA9pnSk2g==",
"requires": {
- "@babel/runtime": "^7.20.1",
- "@mui/base": "5.0.0-alpha.108",
- "@mui/system": "^5.10.16",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/base": "5.0.0-alpha.110",
+ "@mui/system": "^5.11.0",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
"react-is": "^18.2.0"
},
"dependencies": {
"@mui/base": {
- "version": "5.0.0-alpha.108",
- "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.108.tgz",
- "integrity": "sha512-KjzRUts2i/ODlMfywhFTqTzQl+Cr9nlDSZxJcnYjrbOV/iRyQNBTDoiFJt+XEdRi0fZBHnk74AFbnP56ehybsA==",
+ "version": "5.0.0-alpha.110",
+ "resolved": "https://registry.npmjs.org/@mui/base/-/base-5.0.0-alpha.110.tgz",
+ "integrity": "sha512-q4TH9T3sTBknTXXTEf2zO8F3nbHg5iGgiaRx9XErTbXvHrmLrQXbQ4hmrLERocSTBFCFWkKyne/qZj0diWlPtA==",
"requires": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@emotion/is-prop-valid": "^1.2.0",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"@popperjs/core": "^2.11.6",
"clsx": "^1.2.1",
"prop-types": "^15.8.1",
@@ -6783,53 +6930,53 @@
}
},
"@mui/private-theming": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.10.16.tgz",
- "integrity": "sha512-0MArkJaOHRCKqL/GWjngGZmyOeRz+uxffhx82bKcewr8swqV7xx7EFP02pk0L/gLdfcvYdqwH4YTVjG/+TaKrg==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/private-theming/-/private-theming-5.11.0.tgz",
+ "integrity": "sha512-UFQLb9x5Sj4pg2GhhCGw3Ls/y1Hw/tz9RsBrULvUF0Vgps1z19o7XTq2xqUvp7pN7fJTW7eVIT2gwVg2xlk8PQ==",
"requires": {
- "@babel/runtime": "^7.20.1",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/utils": "^5.11.0",
"prop-types": "^15.8.1"
}
},
"@mui/styled-engine": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.10.16.tgz",
- "integrity": "sha512-ZMSjXvtiGwGDKqrSlXhpxK2voUaF2/lpC/pSTfFmZvKH9j9a9h1/iwo3ybgjFVYGgbfNeW4h0xEchiRohu9xsw==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/styled-engine/-/styled-engine-5.11.0.tgz",
+ "integrity": "sha512-AF06K60Zc58qf0f7X+Y/QjaHaZq16znliLnGc9iVrV/+s8Ln/FCoeNuFvhlCbZZQ5WQcJvcy59zp0nXrklGGPQ==",
"requires": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@emotion/cache": "^11.10.5",
"csstype": "^3.1.1",
"prop-types": "^15.8.1"
}
},
"@mui/system": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.10.16.tgz",
- "integrity": "sha512-OqI9B1jZ9zQ/dmoqseku4CzdEs9DbLiiMOaWxC3WeAJxM1UavlCgXz0encqm93LIlmSL7TjuHN1/rW8BJCnU8A==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/system/-/system-5.11.0.tgz",
+ "integrity": "sha512-HFUT7Dlmyq6Wfuxsw8QBXZxXDYIQQaJ4YHaZd7s+nDMcjerLnILxjh2g3a6umtOUM+jEcRaFJAtvLZvlGfa5fw==",
"requires": {
- "@babel/runtime": "^7.20.1",
- "@mui/private-theming": "^5.10.16",
- "@mui/styled-engine": "^5.10.16",
- "@mui/types": "^7.2.2",
- "@mui/utils": "^5.10.16",
+ "@babel/runtime": "^7.20.6",
+ "@mui/private-theming": "^5.11.0",
+ "@mui/styled-engine": "^5.11.0",
+ "@mui/types": "^7.2.3",
+ "@mui/utils": "^5.11.0",
"clsx": "^1.2.1",
"csstype": "^3.1.1",
"prop-types": "^15.8.1"
}
},
"@mui/types": {
- "version": "7.2.2",
- "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.2.tgz",
- "integrity": "sha512-siex8cZDtWeC916cXOoUOnEQQejuMYmHtc4hM6VkKVYaBICz3VIiqyiAomRboTQHt2jchxQ5Q5ATlbcDekTxDA==",
+ "version": "7.2.3",
+ "resolved": "https://registry.npmjs.org/@mui/types/-/types-7.2.3.tgz",
+ "integrity": "sha512-tZ+CQggbe9Ol7e/Fs5RcKwg/woU+o8DCtOnccX6KmbBc7YrfqMYEYuaIcXHuhpT880QwNkZZ3wQwvtlDFA2yOw==",
"requires": {}
},
"@mui/utils": {
- "version": "5.10.16",
- "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.10.16.tgz",
- "integrity": "sha512-3MB/SGsgiiu9Z55CFmAfiONUoR7AAue/H4F6w3mc2LnhFQCsoVvXhioDPcsiRpUMIQr34jDPzGXdCuqWooPCXQ==",
+ "version": "5.11.0",
+ "resolved": "https://registry.npmjs.org/@mui/utils/-/utils-5.11.0.tgz",
+ "integrity": "sha512-DP/YDaVVCVzJpZ5FFPLKNmaJkeaYRviTyIZkL/D5/FmPXQiA6ecd6z0/+VwoNQtp7aXAQWaRhvz4FM25yqFlHA==",
"requires": {
- "@babel/runtime": "^7.20.1",
+ "@babel/runtime": "^7.20.6",
"@types/prop-types": "^15.7.5",
"@types/react-is": "^16.7.1 || ^17.0.0",
"prop-types": "^15.8.1",
@@ -6849,9 +6996,9 @@
}
},
"@mui/x-data-grid-pro": {
- "version": "5.17.14",
- "resolved": "https://registry.npmjs.org/@mui/x-data-grid-pro/-/x-data-grid-pro-5.17.14.tgz",
- "integrity": "sha512-POIj/FUurNVv18QePgZ7sUoUQyjdtL0MR3aonXKYIfrTBvSAJ08Vv5GspMX0QcKWjS2eN19MhrYV79ayuvFDUA==",
+ "version": "5.17.15",
+ "resolved": "https://registry.npmjs.org/@mui/x-data-grid-pro/-/x-data-grid-pro-5.17.15.tgz",
+ "integrity": "sha512-pNa+C5y+fHZW/7fxoVmYhOun1KN5j8ahCrpwlt3Sl4P/GHOb7EpleufQTZvr2kwmBDn0G0JjSYCH9BhZC1Ohew==",
"requires": {
"@babel/runtime": "^7.18.9",
"@mui/utils": "^5.10.3",
@@ -6864,9 +7011,9 @@
}
},
"@mui/x-date-pickers": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-5.0.9.tgz",
- "integrity": "sha512-PM3RU8MiwDVi+dSDGJ7ylI0hCe79wSCDfrjghS8ApGGFn/n87S8pUZxsZ5czw3mVRN6VfS2C19peo4nM1Tx+nA==",
+ "version": "5.0.10",
+ "resolved": "https://registry.npmjs.org/@mui/x-date-pickers/-/x-date-pickers-5.0.10.tgz",
+ "integrity": "sha512-k+SKBqlpYsY49JVs7PORDvnfoXw9nJELfImR/3jTgHqP8hQQ6loFjB9ZFvc5NjV4Jf2NIJFmdcp6g8cO31Wmbg==",
"requires": {
"@babel/runtime": "^7.18.9",
"@date-io/core": "^2.15.0",
@@ -6883,9 +7030,9 @@
}
},
"@mui/x-date-pickers-pro": {
- "version": "5.0.9",
- "resolved": "https://registry.npmjs.org/@mui/x-date-pickers-pro/-/x-date-pickers-pro-5.0.9.tgz",
- "integrity": "sha512-7Sn3vb8OmCIYpNSSplH8qRoRgyYUEJBM9VWqpxRuZNQIjMAAZa571quLDMf+8DPVNB5RW+wf6Xl8tY3Vwnq3dA==",
+ "version": "5.0.10",
+ "resolved": "https://registry.npmjs.org/@mui/x-date-pickers-pro/-/x-date-pickers-pro-5.0.10.tgz",
+ "integrity": "sha512-104x0+P8RrtI7/cL+3Z6V7uo4KouuzlLKM2e24fxiOf1/BFxQ0QgA6hkBlQnSeOZhZdHKzHXjbjrmYoMAyIkxw==",
"requires": {
"@babel/runtime": "^7.18.9",
"@date-io/date-fns": "^2.15.0",
@@ -6893,7 +7040,7 @@
"@date-io/luxon": "^2.15.0",
"@date-io/moment": "^2.15.0",
"@mui/utils": "^5.10.3",
- "@mui/x-date-pickers": "5.0.9",
+ "@mui/x-date-pickers": "5.0.10",
"@mui/x-license-pro": "5.17.12",
"clsx": "^1.2.1",
"prop-types": "^15.7.2",
@@ -8016,9 +8163,9 @@
"integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="
},
"eslint": {
- "version": "8.28.0",
- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.28.0.tgz",
- "integrity": "sha512-S27Di+EVyMxcHiwDrFzk8dJYAaD+/5SoWKxL1ri/71CRHsnJnRDPNt2Kzj24+MT9FDupf4aqqyqPrvI8MvQ4VQ==",
+ "version": "8.29.0",
+ "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.29.0.tgz",
+ "integrity": "sha512-isQ4EEiyUjZFbEKvEGJKKGBwXtvXX+zJbkVKCgTuB9t/+jUBcy8avhkEwWJecI15BkRkOYmvIM5ynbhRjEkoeg==",
"dev": true,
"requires": {
"@eslint/eslintrc": "^1.3.3",
@@ -9179,11 +9326,11 @@
}
},
"material-ui-popup-state": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/material-ui-popup-state/-/material-ui-popup-state-4.1.0.tgz",
- "integrity": "sha512-YAxLT10XALsUuuo46sc81NKD6oKJzlkcKP3e+IqC0pKwzAhOAZIQ+RUHXT6Mz3bXHKoHCsM+NdIQxR4mOH/KEQ==",
+ "version": "5.0.3",
+ "resolved": "https://registry.npmjs.org/material-ui-popup-state/-/material-ui-popup-state-5.0.3.tgz",
+ "integrity": "sha512-AdlAEDmOAQ3BZMnNfyKD5CL+aNMb8zd5tDZWG5Ykx3vcuPbaL6SPjJ5kWuWXrJvapL9I8wwxaYhV4gt3tZmyOA==",
"requires": {
- "@babel/runtime": "^7.12.5",
+ "@babel/runtime": "^7.20.6",
"@mui/material": "^5.0.0",
"classnames": "^2.2.6",
"prop-types": "^15.7.2"
@@ -9300,9 +9447,9 @@
}
},
"next-auth": {
- "version": "4.17.0",
- "resolved": "https://registry.npmjs.org/next-auth/-/next-auth-4.17.0.tgz",
- "integrity": "sha512-aN2tdnjS0MDeUpB2tBDOaWnegkgeMWrsccujbXRGMJ607b+EwRcy63MFGSr0OAboDJEe0902piXQkt94GqF8Qw==",
+ "version": "4.18.6",
+ "resolved": "https://registry.npmjs.org/next-auth/-/next-auth-4.18.6.tgz",
+ "integrity": "sha512-0TQwbq5X9Jyd1wUVYUoyvHJh4JWXeW9UOcMEl245Er/Y5vsSbyGJHt8M7xjRMzk9mORVMYehoMdERgyiq/jCgA==",
"requires": {
"@babel/runtime": "^7.16.3",
"@panva/hkdf": "^1.0.1",
@@ -10085,10 +10232,12 @@
"integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w=="
},
"swr": {
- "version": "1.3.0",
- "resolved": "https://registry.npmjs.org/swr/-/swr-1.3.0.tgz",
- "integrity": "sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==",
- "requires": {}
+ "version": "2.0.0",
+ "resolved": "https://registry.npmjs.org/swr/-/swr-2.0.0.tgz",
+ "integrity": "sha512-IhUx5yPkX+Fut3h0SqZycnaNLXLXsb2ECFq0Y29cxnK7d8r7auY2JWNbCW3IX+EqXUg3rwNJFlhrw5Ye/b6k7w==",
+ "requires": {
+ "use-sync-external-store": "^1.2.0"
+ }
},
"synckit": {
"version": "0.8.4",
@@ -10251,9 +10400,9 @@
"dev": true
},
"typescript": {
- "version": "4.9.3",
- "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.3.tgz",
- "integrity": "sha512-CIfGzTelbKNEnLpLdGFgdyKhG23CKdKgQPOBc+OUNrkJ2vr+KSzsSV5kq5iWhEQbok+quxgGzrAtGWCyU7tHnA==",
+ "version": "4.9.4",
+ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.4.tgz",
+ "integrity": "sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg==",
"dev": true
},
"unbox-primitive": {
@@ -10285,6 +10434,12 @@
"punycode": "^2.1.0"
}
},
+ "use-sync-external-store": {
+ "version": "1.2.0",
+ "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.0.tgz",
+ "integrity": "sha512-eEgnFxGQ1Ife9bzYs6VLi8/4X6CObHMw9Qr9tPY43iKwsPw8xE8+EFsf/2cFZ5S3esXgpWgtSCtLNS41F+sKPA==",
+ "requires": {}
+ },
"util-deprecate": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",
diff --git a/package.json b/package.json
index 9a63b51..02d3439 100644
--- a/package.json
+++ b/package.json
@@ -9,6 +9,8 @@
"lint": "next lint"
},
"dependencies": {
+ "@chatscope/chat-ui-kit-react": "^1.9.8",
+ "@chatscope/chat-ui-kit-styles": "^1.4.0",
"@emotion/cache": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/server": "^11.10.0",
@@ -17,28 +19,28 @@
"@fontsource/poppins": "^4.5.10",
"@fontsource/roboto": "^4.5.8",
"@mui/icons-material": "^5",
- "@mui/lab": "^5.0.0-alpha.110",
+ "@mui/lab": "^5.0.0-alpha.112",
"@mui/material": "^5",
- "@mui/x-data-grid-pro": "^5.17.14",
- "@mui/x-date-pickers-pro": "^5.0.9",
+ "@mui/x-data-grid-pro": "^5.17.15",
+ "@mui/x-date-pickers-pro": "^5.0.10",
"date-fns": "^2.29.3",
"http-proxy-middleware": "^2.0.6",
- "material-ui-popup-state": "^4.1.0",
+ "material-ui-popup-state": "^5.0.3",
"next": "^13.0",
- "next-auth": "^4.17.0",
+ "next-auth": "^4.18.6",
"next-http-proxy-middleware": "^1.2.5",
"react": "^18",
"react-dom": "^18",
"react-iframe": "^1.8.5",
"react-polyglot": "^0.7.2",
- "swr": "^1.3.0"
+ "swr": "^2.0.0"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@types/react": "^18",
"@types/uuid": "^9.0.0",
"babel-loader": "^9.1.0",
- "eslint": "^8.28.0",
+ "eslint": "^8.29.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.0.6",
"eslint-config-prettier": "^8.5.0",
@@ -46,6 +48,6 @@
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
- "typescript": "^4.9.3"
+ "typescript": "^4.9.4"
}
}
diff --git a/pages/admin/label-studio.tsx b/pages/admin/label-studio.tsx
new file mode 100644
index 0000000..af98d2e
--- /dev/null
+++ b/pages/admin/label-studio.tsx
@@ -0,0 +1,30 @@
+import Head from "next/head";
+import { Grid } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Metamigo = () => (
+
+
+ Link Shell
+
+
+
+
+
+
+
+);
+
+export default Metamigo;
diff --git a/pages/admin/metamigo.tsx b/pages/admin/metamigo.tsx
new file mode 100644
index 0000000..170a1fc
--- /dev/null
+++ b/pages/admin/metamigo.tsx
@@ -0,0 +1,30 @@
+import Head from "next/head";
+import { Grid } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Metamigo = () => (
+
+
+ Link Shell
+
+
+
+
+
+
+
+);
+
+export default Metamigo;
diff --git a/pages/settings.tsx b/pages/admin/zammad.tsx
similarity index 100%
rename from pages/settings.tsx
rename to pages/admin/zammad.tsx
diff --git a/pages/leafcutter/about.tsx b/pages/leafcutter/about.tsx
new file mode 100644
index 0000000..dbe11c0
--- /dev/null
+++ b/pages/leafcutter/about.tsx
@@ -0,0 +1,36 @@
+import { useState } from "react";
+import Head from "next/head";
+import { Grid, Button } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Leafcutter = () => {
+ const [leafcutterURL, setLeafcutterURL] = useState(
+ "https://lc.digiresilience.org/about"
+ );
+ return (
+
+
+ Link Shell
+
+
+
+
+
+
+
+ );
+};
+
+export default Leafcutter;
diff --git a/pages/leafcutter/create.tsx b/pages/leafcutter/create.tsx
new file mode 100644
index 0000000..f58f118
--- /dev/null
+++ b/pages/leafcutter/create.tsx
@@ -0,0 +1,36 @@
+import { useState } from "react";
+import Head from "next/head";
+import { Grid, Button } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Leafcutter = () => {
+ const [leafcutterURL, setLeafcutterURL] = useState(
+ "https://lc.digiresilience.org/create"
+ );
+ return (
+
+
+ Link Shell
+
+
+
+
+
+
+
+ );
+};
+
+export default Leafcutter;
diff --git a/pages/leafcutter/faq.tsx b/pages/leafcutter/faq.tsx
new file mode 100644
index 0000000..a8b5b97
--- /dev/null
+++ b/pages/leafcutter/faq.tsx
@@ -0,0 +1,36 @@
+import { useState } from "react";
+import Head from "next/head";
+import { Grid, Button } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Leafcutter = () => {
+ const [leafcutterURL, setLeafcutterURL] = useState(
+ "https://lc.digiresilience.org/faq"
+ );
+ return (
+
+
+ Link Shell
+
+
+
+
+
+
+
+ );
+};
+
+export default Leafcutter;
diff --git a/pages/leafcutter.tsx b/pages/leafcutter/index.tsx
similarity index 100%
rename from pages/leafcutter.tsx
rename to pages/leafcutter/index.tsx
diff --git a/pages/leafcutter/trends.tsx b/pages/leafcutter/trends.tsx
new file mode 100644
index 0000000..a2ba6ce
--- /dev/null
+++ b/pages/leafcutter/trends.tsx
@@ -0,0 +1,36 @@
+import { useState } from "react";
+import Head from "next/head";
+import { Grid, Button } from "@mui/material";
+import { Layout } from "components/Layout";
+import Iframe from "react-iframe";
+
+const Leafcutter = () => {
+ const [leafcutterURL, setLeafcutterURL] = useState(
+ "https://lc.digiresilience.org/trends"
+ );
+ return (
+
+
+ Link Shell
+
+
+
+
+
+
+
+ );
+};
+
+export default Leafcutter;
diff --git a/pages/tickets/[...id].tsx b/pages/tickets/[...id].tsx
new file mode 100644
index 0000000..7d1fc84
--- /dev/null
+++ b/pages/tickets/[...id].tsx
@@ -0,0 +1,54 @@
+import Head from "next/head";
+import { NextPage, GetServerSideProps, GetServerSidePropsContext } from "next";
+import { Grid, Box } from "@mui/material";
+import { Layout } from "components/Layout";
+import { TicketDetail } from "components/TicketDetail";
+import { TicketEdit } from "components/TicketEdit";
+
+const Link: NextPage = ({ ticket, articles }: any) => (
+
+
+ Link Shell
+
+
+
+
+
+
+
+
+
+
+);
+
+export const getServerSideProps: GetServerSideProps = async (
+ context: GetServerSidePropsContext
+) => {
+ const {
+ params: { id },
+ } = context;
+ const baseURL = "https://help.cdr.link/api/v1";
+ const token = process.env.ZAMMAD_TOKEN;
+ const headers = { Authorization: `Token ${token}` };
+ const rawTicket = await fetch(`${baseURL}/tickets/${id}`, {
+ headers,
+ });
+ const ticket = await rawTicket.json();
+ const rawArticles = await fetch(
+ `${baseURL}/ticket_articles/by_ticket/${id}`,
+ {
+ headers,
+ }
+ );
+ const articles = await rawArticles.json();
+
+ console.log({ ticket, articles });
+
+ return {
+ props: {
+ ticket,
+ articles,
+ },
+ };
+};
+export default Link;
diff --git a/pages/assigned.tsx b/pages/tickets/assigned.tsx
similarity index 100%
rename from pages/assigned.tsx
rename to pages/tickets/assigned.tsx
diff --git a/pages/pending.tsx b/pages/tickets/pending.tsx
similarity index 100%
rename from pages/pending.tsx
rename to pages/tickets/pending.tsx
diff --git a/pages/unassigned.tsx b/pages/tickets/unassigned.tsx
similarity index 100%
rename from pages/unassigned.tsx
rename to pages/tickets/unassigned.tsx
diff --git a/pages/urgent.tsx b/pages/tickets/urgent.tsx
similarity index 100%
rename from pages/urgent.tsx
rename to pages/tickets/urgent.tsx
diff --git a/public/link-logo-small.png b/public/link-logo-small.png
new file mode 100644
index 0000000..7de12ef
Binary files /dev/null and b/public/link-logo-small.png differ
diff --git a/styles/global.css b/styles/global.css
index 4109f02..dbde786 100644
--- a/styles/global.css
+++ b/styles/global.css
@@ -3,3 +3,76 @@ body {
overscroll-behavior-y: none;
text-size-adjust: none;
}
+
+.internal-note .cs-message__content {
+ background-color: #FFB62088 !important;
+ border: 2px solid #FFB620 !important;
+ border-radius: 0 !important;
+ margin: 12px;
+ font-family: Roboto !important;
+ font-size: 16px !important;
+ padding: 20px !important;
+}
+
+.incoming-message .cs-message__content {
+ color: white !important;
+ background-color: #43CC47 !important;
+ border-radius: 14px !important;
+ margin: 12px;
+ font-family: Roboto !important;
+ font-size: 16px !important;
+ padding: 20px !important;
+}
+
+.outgoing-message .cs-message__content {
+ color: white !important;
+ background-color: #1982FC !important;
+ border-radius: 14px !important;
+ margin: 12px;
+ font-family: Roboto !important;
+ font-size: 16px !important;
+ padding: 20px !important;
+}
+
+.incoming-message .cs-message__content a {
+ color: white !important;
+}
+
+.outgoing-message .cs-message__content a {
+ color: white !important;
+}
+
+.cs-message-input__content-editor-wrapper {
+ background-color: white !important;
+ border: 1px solid #ccc !important;
+ margin: 10px !important;
+}
+
+.cs-message-input__content-editor-container {
+ background-color: white !important;
+}
+
+.cs-message-input__content-editor {
+ background-color: white !important;
+ font-family: Roboto !important;
+}
+
+.cs-conversation-header {
+ background-color: #ddd !important;
+ border: 0 !important;
+ padding: 20px !important;
+ border-bottom: 1px solid #ccc !important;
+}
+
+.cs-message-list {
+ background-color: #eee !important;
+}
+
+.cs-message-input {
+ background-color: #dfdfdf !important;
+}
+
+.cs-main-container {
+ border: 0 !important;
+ border-right: 1px solid #ccc !important;
+}