diff --git a/src/frontend/package.json b/src/frontend/package.json index 9d9e755234..ccea297ca0 100644 --- a/src/frontend/package.json +++ b/src/frontend/package.json @@ -11,66 +11,78 @@ "compile": "lingui compile --typescript" }, "dependencies": { + "@codemirror/autocomplete": ">=6.0.0", "@codemirror/lang-liquid": "^6.2.1", + "@codemirror/language": ">=6.0.0", + "@codemirror/lint": ">=6.0.0", + "@codemirror/search": ">=6.0.0", + "@codemirror/state": "^6.0.0", + "@codemirror/theme-one-dark": ">=6.0.0", + "@codemirror/view": ">=6.0.0", "@emotion/react": "^11.11.4", "@fortawesome/fontawesome-svg-core": "^6.5.2", "@fortawesome/free-regular-svg-icons": "^6.5.2", "@fortawesome/free-solid-svg-icons": "^6.5.2", "@fortawesome/react-fontawesome": "^0.2.0", - "@lingui/core": "^4.7.1", + "@lingui/core": "^4.10.0", "@lingui/react": "^4.10.0", - "@mantine/carousel": "<7", - "@mantine/core": "<7", - "@mantine/dates": "<7", - "@mantine/dropzone": "<7", - "@mantine/form": "<8", - "@mantine/hooks": "<7", - "@mantine/modals": "<7", - "@mantine/notifications": "<7", - "@mantine/spotlight": "<7", + "@mantine/carousel": "^7.8.0", + "@mantine/core": "^7.8.0", + "@mantine/dates": "^7.8.0", + "@mantine/dropzone": "^7.8.0", + "@mantine/form": "^7.8.0", + "@mantine/hooks": "^7.8.0", + "@mantine/modals": "^7.8.0", + "@mantine/notifications": "^7.8.0", + "@mantine/spotlight": "^7.8.0", + "@mantine/vanilla-extract": "^7.8.0", "@naisutech/react-tree": "^3.1.0", - "@sentry/react": "^7.109.0", - "@tabler/icons-react": "^3.1.0", - "@tanstack/react-query": "^5.28.14", + "@sentry/react": "^7.110.0", + "@tabler/icons-react": "^3.2.0", + "@tanstack/react-query": "^5.29.2", "@uiw/codemirror-theme-vscode": "^4.21.25", "@uiw/react-codemirror": "^4.21.25", "@uiw/react-split": "^5.9.3", - "axios": "^1.6.7", + "@vanilla-extract/css": "^1.14.2", + "axios": "^1.6.8", + "clsx": "^2.1.0", + "codemirror": ">=6.0.0", "dayjs": "^1.11.10", "easymde": "^2.18.0", "embla-carousel-react": "^8.0.2", "html5-qrcode": "^2.3.8", - "mantine-datatable": "<7", + "mantine-datatable": "^7.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", "react-grid-layout": "^1.4.4", "react-hook-form": "^7.51.3", "react-is": "^18.2.0", - "react-router-dom": "^6.22.1", + "react-router-dom": "^6.22.3", "react-select": "^5.8.0", "react-simplemde-editor": "^5.2.0", "recharts": "^2.12.4", - "styled-components": "^5.3.6", - "zustand": "^4.5.1" + "styled-components": "^6.1.8", + "zustand": "^4.5.2" }, "devDependencies": { - "@babel/core": "^7.23.9", - "@babel/preset-react": "^7.23.3", - "@babel/preset-typescript": "^7.23.3", - "@lingui/cli": "^4.7.2", + "@babel/core": "^7.24.4", + "@babel/preset-react": "^7.24.1", + "@babel/preset-typescript": "^7.24.1", + "@lingui/cli": "^4.10.0", "@lingui/macro": "^4.10.0", "@playwright/test": "^1.43.1", - "@types/node": "^20.12.3", - "@types/react": "^18.2.74", - "@types/react-dom": "^18.2.23", + "@types/node": "^20.12.7", + "@types/react": "^18.2.79", + "@types/react-dom": "^18.2.25", "@types/react-grid-layout": "^1.3.5", "@types/react-router-dom": "^5.3.3", + "@vanilla-extract/vite-plugin": "^4.0.7", "@vitejs/plugin-react": "^4.2.1", "babel-plugin-macros": "^3.1.0", "nyc": "^15.1.0", "rollup-plugin-license": "^3.3.1", - "typescript": "^5.3.3", - "vite": "^5.2.7", + "typescript": "^5.4.5", + "vite": "^5.2.8", "vite-plugin-babel-macros": "^1.0.6", "vite-plugin-istanbul": "^6.0.0" } diff --git a/src/frontend/playwright.config.ts b/src/frontend/playwright.config.ts index fb339d6c4b..f24b94d323 100644 --- a/src/frontend/playwright.config.ts +++ b/src/frontend/playwright.config.ts @@ -5,7 +5,6 @@ export default defineConfig({ fullyParallel: true, timeout: 60000, forbidOnly: !!process.env.CI, - timeout: 5 * 60 * 1000, retries: process.env.CI ? 1 : 0, workers: process.env.CI ? 2 : undefined, reporter: process.env.CI ? [['html', { open: 'never' }], ['github']] : 'list', diff --git a/src/frontend/src/components/buttons/ActionButton.tsx b/src/frontend/src/components/buttons/ActionButton.tsx index caa5bf1363..1a4eb08a31 100644 --- a/src/frontend/src/components/buttons/ActionButton.tsx +++ b/src/frontend/src/components/buttons/ActionButton.tsx @@ -1,5 +1,4 @@ -import { ActionIcon, Group, Tooltip } from '@mantine/core'; -import { FloatingPosition } from '@mantine/core/lib/Floating'; +import { ActionIcon, FloatingPosition, Group, Tooltip } from '@mantine/core'; import { ReactNode } from 'react'; import { notYetImplemented } from '../../functions/notifications'; @@ -41,7 +40,7 @@ export function ActionButton(props: ActionButtonProps) { onClick={props.onClick ?? notYetImplemented} variant={props.variant ?? 'light'} > - + {props.icon} diff --git a/src/frontend/src/components/buttons/ButtonMenu.tsx b/src/frontend/src/components/buttons/ButtonMenu.tsx index 47192ad20f..42feeb0718 100644 --- a/src/frontend/src/components/buttons/ButtonMenu.tsx +++ b/src/frontend/src/components/buttons/ButtonMenu.tsx @@ -18,7 +18,7 @@ export function ButtonMenu({ return ( - + {icon} diff --git a/src/frontend/src/components/buttons/CopyButton.tsx b/src/frontend/src/components/buttons/CopyButton.tsx index d1ebb8dacb..bf51eebd0b 100644 --- a/src/frontend/src/components/buttons/CopyButton.tsx +++ b/src/frontend/src/components/buttons/CopyButton.tsx @@ -17,7 +17,7 @@ export function CopyButton({ onClick={copy} title={t`Copy to clipboard`} variant="subtle" - compact + size="compact-md" > {label &&
 
} diff --git a/src/frontend/src/components/buttons/EditButton.tsx b/src/frontend/src/components/buttons/EditButton.tsx index 82a1cc02c2..a64aa41cc9 100644 --- a/src/frontend/src/components/buttons/EditButton.tsx +++ b/src/frontend/src/components/buttons/EditButton.tsx @@ -14,7 +14,11 @@ export function EditButton({ }) { saveIcon = saveIcon || ; return ( - setEditing()} disabled={disabled}> + setEditing()} + disabled={disabled} + variant="default" + > {editing ? saveIcon : } ); diff --git a/src/frontend/src/components/buttons/SSOButton.tsx b/src/frontend/src/components/buttons/SSOButton.tsx index 503f5dafd5..08f9fd44da 100644 --- a/src/frontend/src/components/buttons/SSOButton.tsx +++ b/src/frontend/src/components/buttons/SSOButton.tsx @@ -50,7 +50,7 @@ export function SsoButton({ provider }: { provider: Provider }) { return ( {values.length == 0 ? ( - + No scans yet! ) : ( - + {values.map((value, index) => (
{value}
))} diff --git a/src/frontend/src/components/modals/ServerInfoModal.tsx b/src/frontend/src/components/modals/ServerInfoModal.tsx index 572d7167b6..f74e4a6ec5 100644 --- a/src/frontend/src/components/modals/ServerInfoModal.tsx +++ b/src/frontend/src/components/modals/ServerInfoModal.tsx @@ -137,7 +137,7 @@ export function ServerInfoModal({ - +