Added build fixes to Dockerfiles, updated NPM packages and fixed array sort to be case insensitive

This commit is contained in:
Matthew Garrett 2024-06-02 21:47:17 -07:00
Родитель 8ec14b0b08
Коммит a664121f70
6 изменённых файлов: 907 добавлений и 1029 удалений

Просмотреть файл

@ -6,6 +6,9 @@ ARG PORT=8080
# Set Environment Variable
ENV PORT=${PORT}
# Disable PIP Root Warnings
ENV PIP_ROOT_USER_ACTION=ignore
# Set the Working Directory
WORKDIR /ipam

Просмотреть файл

@ -6,6 +6,9 @@ ARG PORT=80
# Set Environment Variable
ENV PORT=${PORT}
# Disable NPM Update Warnings
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
# Set the Working Directory
WORKDIR /ipam

Просмотреть файл

@ -6,6 +6,9 @@ ARG PORT=8080
# Set Environment Variable
ENV PORT=${PORT}
# Disable NPM Update Warnings
ENV NPM_CONFIG_UPDATE_NOTIFIER=false
# Set the Working Directory
WORKDIR /ipam

1883
ui/package-lock.json сгенерированный

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -4,32 +4,32 @@
"type": "module",
"private": true,
"dependencies": {
"@azure/msal-browser": "^3.11.1",
"@azure/msal-react": "^2.0.14",
"@azure/msal-browser": "^3.15.0",
"@azure/msal-react": "^2.0.17",
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@inovua/reactdatagrid-community": "^5.10.2",
"@mui/icons-material": "^5.15.15",
"@mui/icons-material": "^5.15.19",
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.15",
"@reduxjs/toolkit": "^2.2.3",
"@testing-library/jest-dom": "^6.4.2",
"@testing-library/react": "^14.3.0",
"@mui/material": "^5.15.19",
"@reduxjs/toolkit": "^2.2.5",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@testing-library/user-event": "^14.5.2",
"axios": "^1.6.8",
"axios": "^1.7.2",
"echarts": "^5.5.0",
"echarts-for-react": "^3.0.2",
"lodash": "^4.17.21",
"moment": "^2.30.1",
"notistack": "^3.0.1",
"pluralize": "^8.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-draggable": "^4.4.6",
"react-redux": "^9.1.0",
"react-router-dom": "^6.22.3",
"react-redux": "^9.1.2",
"react-router-dom": "^6.23.1",
"spinners-react": "^1.0.7",
"web-vitals": "^3.5.2"
"web-vitals": "^4.0.1"
},
"scripts": {
"start": "vite",
@ -48,12 +48,12 @@
]
},
"devDependencies": {
"@vitejs/plugin-react": "^4.2.1",
"@vitejs/plugin-react": "^4.3.0",
"eslint": "^8.57.0",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"serve": "^14.2.1",
"vite": "^5.2.8",
"eslint-plugin-react": "^7.34.2",
"eslint-plugin-react-hooks": "^4.6.2",
"serve": "^14.2.3",
"vite": "^5.2.12",
"vite-plugin-eslint2": "^4.4.0"
}
}

Просмотреть файл

@ -54,25 +54,25 @@ const filterTypes = merge({}, ReactDataGrid.defaultProps.filterTypes, {
{
name: 'contains',
fn: ({ value, filterValue, data }) => {
return filterValue !== (null || '') ? (value || []).join(",").includes(filterValue) : true;
return filterValue !== (null || '') ? (value || []).findIndex(e => e.toLowerCase().includes(filterValue.toLowerCase())) >= 0 : true;
}
},
{
name: 'notContains',
fn: ({ value, filterValue, data }) => {
return filterValue !== (null || '') ? !(value || []).join(",").includes(filterValue) : true;
return filterValue !== (null || '') ? value ? value.findIndex(e => e.toLowerCase().includes(filterValue.toLowerCase())) < 0 : false : true;
}
},
{
name: 'eq',
fn: ({ value, filterValue, data }) => {
return filterValue !== (null || '') ? (value || []).includes(filterValue) : true;
return filterValue !== (null || '') ? value ? value.map(e => e.toLowerCase()).includes(filterValue.toLowerCase()) : false : true;
}
},
{
name: 'neq',
fn: ({ value, filterValue, data }) => {
return filterValue !== (null || '') ? !(value || []).includes(filterValue) : true;
return filterValue !== (null || '') ? value ? !value.map(e => e.toLowerCase()).includes(filterValue.toLowerCase()) : false : true;
}
},
{