Upgrade deps

This commit is contained in:
Darren Clarke 2023-07-18 07:02:07 +00:00 committed by GitHub
parent 422c446039
commit de5106e9e8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 3154 additions and 406 deletions

View file

@ -62,16 +62,16 @@ link-docker-release:
variables:
DOCKER_NS: ${CI_REGISTRY}/digiresilience/link/link-stack/link
# leafcutter-docker-build:
# extends: .docker-build
# variables:
# DOCKER_NS: ${CI_REGISTRY}/digiresilience/link/link-stack/leafcutter
# DOCKERFILE_PATH: ./apps/leafcutter/Dockerfile
leafcutter-docker-build:
extends: .docker-build
variables:
DOCKER_NS: ${CI_REGISTRY}/digiresilience/link/link-stack/leafcutter
DOCKERFILE_PATH: ./apps/leafcutter/Dockerfile
# leafcutter-docker-release:
# extends: .docker-release
# variables:
# DOCKER_NS: ${CI_REGISTRY}/digiresilience/link/link-stack/leafcutter
leafcutter-docker-release:
extends: .docker-release
variables:
DOCKER_NS: ${CI_REGISTRY}/digiresilience/link/link-stack/leafcutter
metamigo-docker-build:
extends: .docker-build

View file

@ -21,15 +21,15 @@
"@fontsource/poppins": "^5.0.5",
"@fontsource/roboto": "^5.0.5",
"@mui/icons-material": "^5",
"@mui/lab": "^5.0.0-alpha.135",
"@mui/lab": "^5.0.0-alpha.136",
"@mui/material": "^5",
"@mui/x-data-grid-pro": "^6.9.2",
"@mui/x-date-pickers-pro": "^6.9.2",
"@opensearch-project/opensearch": "^2.0.0",
"@mui/x-data-grid-pro": "^6.10.0",
"@mui/x-date-pickers-pro": "^6.10.0",
"@opensearch-project/opensearch": "^2.3.0",
"date-fns": "^2.30.0",
"http-proxy-middleware": "^2.0.6",
"material-ui-popup-state": "^5.0.9",
"next": "13.4.9",
"next": "13.4.10",
"next-auth": "^4.22.1",
"next-http-proxy-middleware": "^1.2.5",
"nodemailer": "^6.9.3",
@ -41,22 +41,22 @@
"react-markdown": "^8.0.7",
"react-polyglot": "^0.7.2",
"swr": "^2.2.0",
"tss-react": "^4.8.6",
"tss-react": "^4.8.8",
"uuid": "^9.0.0"
},
"devDependencies": {
"@babel/core": "^7.22.8",
"@types/node": "^20.4.1",
"@types/react": "18.2.14",
"@babel/core": "^7.22.9",
"@types/node": "^20.4.2",
"@types/react": "18.2.15",
"@types/uuid": "^9.0.2",
"babel-loader": "^9.1.3",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-next": "^13.4.9",
"eslint-config-next": "^13.4.10",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.32.2",
"typescript": "5.1.6"
}

View file

@ -40,8 +40,8 @@
"pg-promise": "^11.5.0",
"postgraphile": "4.12.3",
"postgraphile-plugin-connection-filter": "^2.3.0",
"remeda": "^1.23.0",
"twilio": "^4.13.0",
"remeda": "^1.24.0",
"twilio": "^4.14.0",
"typeorm": "^0.3.17",
"@whiskeysockets/baileys": "^6.3.1"
},

View file

@ -1,6 +1,6 @@
"use client";
import { FC, useEffect } from "react";
import { FC, useEffect, PropsWithChildren } from "react";
import { CircularProgress, Typography, Grid } from "@mui/material";
import { signIn, signOut, getSession } from "next-auth/react";
import { useLogin, useTranslate } from "react-admin";
@ -19,7 +19,7 @@ export const authProvider = {
checkError(e: any) {
if (e.graphQLErrors && e.graphQLErrors.length > 0) {
const permDenied = e.graphQLErrors.some((e: any) =>
e.message.match(/.*permission denied.*/)
e.message.match(/.*permission denied.*/),
);
if (permDenied)
// eslint-disable-next-line prefer-promise-reject-errors

View file

@ -1,3 +1,5 @@
// @ts-nocheck
"use client";
import { FC, useEffect, useState } from "react";
@ -22,7 +24,7 @@ import { AdminLogin, authProvider } from "./AdminLogin";
const i18nProvider = polyglotI18nProvider(
(_locale: any) => englishMessages,
"en"
"en",
);
const MetamigoAdmin: FC = () => {
@ -46,6 +48,7 @@ const MetamigoAdmin: FC = () => {
dataProvider={dataProvider}
layout={Layout}
i18nProvider={i18nProvider}
// @ts-ignore
loginPage={AdminLogin}
// @ts-ignore
authProvider={authProvider}

View file

@ -11,7 +11,7 @@ export const Layout = (props: LayoutProps) => (
<RaLayout
{...props}
appBar={AppBar}
menu={Menu}
menu={Menu as any}
sidebar={CustomSidebar}
// @ts-ignore
theme={theme}

View file

@ -11,7 +11,7 @@ import {
import { useSession } from "next-auth/react";
import { validateE164Number } from "../../../_lib/phone-numbers";
const SignalBotCreate:FC<CreateProps> = (props) => {
const SignalBotCreate: FC<CreateProps> = (props) => {
const { data: session } = useSession();
return (

View file

@ -1,5 +1,6 @@
"use client";
import { FC } from "react";
import {
List,
Datagrid,
@ -10,7 +11,7 @@ import {
BooleanField,
} from "react-admin";
const UserList = () => (
const UserList: FC = () => (
<List exporter={false}>
<Datagrid rowClick="edit">
<EmailField source="email" />

View file

@ -1,11 +1,18 @@
"use client";
// import dynamic from "next/dynamic";
import { SimpleForm, Create, TextInput, required } from "react-admin";
import { FC } from "react";
import {
SimpleForm,
Create,
TextInput,
required,
CreateProps,
} from "react-admin";
import { useSession } from "next-auth/react";
import { validateE164Number } from "../../../_lib/phone-numbers";
const WhatsappBotCreate = (props: any) => {
const WhatsappBotCreate: FC<CreateProps> = (props) => {
// const MuiPhoneNumber = dynamic(() => import("material-ui-phone-number"), {
// ssr: false,
// });

View file

@ -14,7 +14,7 @@
"http-proxy-middleware": "^2.0.6",
"jsonwebtoken": "^9.0.1",
"jwks-rsa": "^3.0.1",
"next": "13.4.9",
"next": "13.4.10",
"next-auth": "4.22.1",
"ra-data-graphql": "^4.12.1",
"ra-i18n-polyglot": "^4.12.1",
@ -41,9 +41,9 @@
"fmt": "prettier --ignore-path .eslintignore \"**/*.{js,jsx,ts,tsx,graphql,md}\" --write"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.4.9",
"@next/eslint-plugin-next": "^13.4.10",
"@types/hapi__wreck": "17.0.1",
"@types/react": "18.2.14",
"@types/react": "18.2.15",
"@types/react-mic": "12.4.3",
"babel-preset-link": "*",
"eslint-config-link": "*",

View file

@ -7,28 +7,28 @@
"license": "AGPL-3.0-or-later",
"dependencies": {
"graphile-worker": "^0.13.0",
"remeda": "^1.23.0",
"remeda": "^1.24.0",
"html-to-text": "^9.0.5",
"node-fetch": "^3",
"twilio": "^4.13.0",
"twilio": "^4.14.0",
"@digiresilience/montar": "*",
"@digiresilience/metamigo-common": "*",
"@digiresilience/metamigo-config": "*",
"@digiresilience/metamigo-db": "*"
},
"devDependencies": {
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5",
"@types/fluent-ffmpeg": "^2.1.21",
"@types/jest": "^29.5.3",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"jest": "^29.6.1",
"jest-circus": "^29.6.1",
"jest-junit": "^16.0.0",
"nodemon": "^3.0.1",
"pino-pretty": "^10.0.1",
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
"typescript": "^5.1.6"

3434
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -26,7 +26,8 @@
"docker:metamigo:down": "docker compose -f docker-compose.zammad.yml -f docker-compose.metamigo-postgresql.yml -f docker-compose.metamigo.yml down",
"upgrade:setup": "npm i -g npm-check-updates",
"upgrade:check": "ncu && ncu -ws -x graphql -x postgraphile",
"upgrade:all": "ncu -u && ncu -ws -u -x graphql -x postgraphile"
"upgrade:all": "ncu -u && ncu -ws -u -x graphql -x postgraphile",
"clean": "rm -rf node_modules && rm -rf apps/*/node_modules && rm -rf packages/*/node_modules && rm -rf apps/*/.next"
},
"packageManager": "npm@9.6.7",
"workspaces": [
@ -49,7 +50,7 @@
"graphql": "15.8.0"
},
"devDependencies": {
"prettier": "^2.8.8",
"prettier": "^3.0.0",
"dotenv-cli": "latest"
},
"engines": {

View file

@ -9,12 +9,12 @@
"lint": "eslint index.js"
},
"dependencies": {
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5"
},
"peerDependencies": {},
"devDependencies": {
"eslint": "^8.44.0"
"eslint": "^8.45.0"
}
}

View file

@ -10,25 +10,25 @@
},
"dependencies": {
"@rushstack/eslint-patch": "^1.3.2",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"eslint-config-prettier": "^8.8.0",
"eslint-config-xo-space": "^0.34.0",
"eslint-plugin-cypress": "^2.13.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.2",
"eslint-plugin-jest": "^27.2.3",
"eslint-plugin-no-use-extend-native": "^0.5.0",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-unicorn": "47.0.0",
"@babel/eslint-parser": "7.22.7"
"eslint-plugin-unicorn": "48.0.0",
"@babel/eslint-parser": "7.22.9"
},
"peerDependencies": {
"eslint": "^7.32.0",
"typescript": "^4.9.5"
},
"devDependencies": {
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"jest": "^29.6.1",
"typescript": "^5.1.6"
}

View file

@ -10,10 +10,10 @@
"@digiresilience/montar": "*"
},
"devDependencies": {
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"pino-pretty": "^10.0.1",
"prettier": "^3.0.0",
"ts-node": "^10.9.1",

View file

@ -16,11 +16,11 @@
"pg-promise": "^11.5.0"
},
"devDependencies": {
"@babel/core": "7.22.8",
"@babel/preset-env": "7.22.7",
"@babel/core": "7.22.9",
"@babel/preset-env": "7.22.9",
"@babel/preset-typescript": "7.22.5",
"@types/jest": "^29.5.3",
"eslint": "^8.44.0",
"eslint": "^8.45.0",
"jest": "^29.6.1",
"jest-junit": "^16.0.0",
"pino-pretty": "^10.0.1",