mirror of https://github.com/portainer/portainer
chore(deps): upgrade build-tools [EE-5117] (#8577)
parent
5f3c0ff835
commit
077046030d
|
@ -86,8 +86,8 @@ overrides:
|
||||||
no-plusplus: off
|
no-plusplus: off
|
||||||
func-style: [error, 'declaration']
|
func-style: [error, 'declaration']
|
||||||
import/prefer-default-export: off
|
import/prefer-default-export: off
|
||||||
no-use-before-define: ['error', { functions: false }]
|
no-use-before-define: "off"
|
||||||
'@typescript-eslint/no-use-before-define': ['error', { functions: false }]
|
'@typescript-eslint/no-use-before-define': ['error', { functions: false, "allowNamedExports": true }]
|
||||||
no-shadow: 'off'
|
no-shadow: 'off'
|
||||||
'@typescript-eslint/no-shadow': off
|
'@typescript-eslint/no-shadow': off
|
||||||
jsx-a11y/no-autofocus: warn
|
jsx-a11y/no-autofocus: warn
|
||||||
|
|
|
@ -9,7 +9,7 @@ const categories = [
|
||||||
'portainer',
|
'portainer',
|
||||||
'edge',
|
'edge',
|
||||||
] as const;
|
] as const;
|
||||||
type Category = typeof categories[number];
|
type Category = (typeof categories)[number];
|
||||||
|
|
||||||
enum DimensionConfig {
|
enum DimensionConfig {
|
||||||
PortainerVersion = 1,
|
PortainerVersion = 1,
|
||||||
|
|
|
@ -92,7 +92,7 @@ export function ServiceViewModel(data, runningTasks, allTasks) {
|
||||||
this.VirtualIPs = data.Endpoint ? data.Endpoint.VirtualIPs : [];
|
this.VirtualIPs = data.Endpoint ? data.Endpoint.VirtualIPs : [];
|
||||||
|
|
||||||
if (data.Spec.UpdateConfig) {
|
if (data.Spec.UpdateConfig) {
|
||||||
this.UpdateParallelism = typeof data.Spec.UpdateConfig.Parallelism !== undefined ? data.Spec.UpdateConfig.Parallelism || 0 : 1;
|
this.UpdateParallelism = typeof data.Spec.UpdateConfig.Parallelism !== 'undefined' ? data.Spec.UpdateConfig.Parallelism || 0 : 1;
|
||||||
this.UpdateDelay = data.Spec.UpdateConfig.Delay || 0;
|
this.UpdateDelay = data.Spec.UpdateConfig.Delay || 0;
|
||||||
this.UpdateFailureAction = data.Spec.UpdateConfig.FailureAction || 'pause';
|
this.UpdateFailureAction = data.Spec.UpdateConfig.FailureAction || 'pause';
|
||||||
this.UpdateOrder = data.Spec.UpdateConfig.Order || 'stop-first';
|
this.UpdateOrder = data.Spec.UpdateConfig.Order || 'stop-first';
|
||||||
|
|
|
@ -59,7 +59,6 @@ export const componentsModule = angular
|
||||||
r2a(InsightsBox, [
|
r2a(InsightsBox, [
|
||||||
'header',
|
'header',
|
||||||
'content',
|
'content',
|
||||||
'setHtmlContent',
|
|
||||||
'insightCloseId',
|
'insightCloseId',
|
||||||
'type',
|
'type',
|
||||||
'className',
|
'className',
|
||||||
|
|
|
@ -10,7 +10,6 @@ import { insightStore } from './insights-store';
|
||||||
export type Props = {
|
export type Props = {
|
||||||
header?: string;
|
header?: string;
|
||||||
content?: ReactNode;
|
content?: ReactNode;
|
||||||
setHtmlContent?: boolean;
|
|
||||||
insightCloseId?: string; // set if you want to be able to close the box and not show it again
|
insightCloseId?: string; // set if you want to be able to close the box and not show it again
|
||||||
type?: 'default' | 'slim';
|
type?: 'default' | 'slim';
|
||||||
className?: string;
|
className?: string;
|
||||||
|
|
|
@ -40,8 +40,9 @@ export function DifferentTheme() {
|
||||||
{themes.map((theme) => (
|
{themes.map((theme) => (
|
||||||
<td
|
<td
|
||||||
key={theme}
|
key={theme}
|
||||||
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
|
// eslint-disable-next-line react/no-unknown-property
|
||||||
theme={theme}
|
theme={theme}
|
||||||
className="p-5"
|
className="p-5"
|
||||||
style={{ background: 'var(--bg-body-color)' }}
|
style={{ background: 'var(--bg-body-color)' }}
|
||||||
|
|
|
@ -47,11 +47,7 @@ export function DockerfileDetails({ image }: Props) {
|
||||||
<DetailsTable.Row label="VOLUME">
|
<DetailsTable.Row label="VOLUME">
|
||||||
<div className="flex flex-wrap gap-1">
|
<div className="flex flex-wrap gap-1">
|
||||||
{image.Volumes.map((volume, index) => (
|
{image.Volumes.map((volume, index) => (
|
||||||
<span
|
<span key={index} className="label label-default space-right">
|
||||||
key={index}
|
|
||||||
className="label label-default space-right"
|
|
||||||
ng-repeat="volume in image.Volumes"
|
|
||||||
>
|
|
||||||
{volume}
|
{volume}
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
|
|
|
@ -31,7 +31,7 @@ export function EnvironmentInfo() {
|
||||||
{environmentData.Name}
|
{environmentData.Name}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr ng-if="ctrl.showEnvUrl">
|
<tr>
|
||||||
<td className="!border-t !pl-0">URL</td>
|
<td className="!border-t !pl-0">URL</td>
|
||||||
<td className="!border-t" data-cy="dashboard-environmenturl">
|
<td className="!border-t" data-cy="dashboard-environmenturl">
|
||||||
{stripProtocol(environmentData.URL) || '-'}
|
{stripProtocol(environmentData.URL) || '-'}
|
||||||
|
|
|
@ -132,7 +132,7 @@ export function ConsoleView() {
|
||||||
value={command}
|
value={command}
|
||||||
onChange={(e) => setCommand(e.target.value)}
|
onChange={(e) => setCommand(e.target.value)}
|
||||||
id="consoleCommand"
|
id="consoleCommand"
|
||||||
auto-focus="true"
|
autoFocus
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -154,7 +154,7 @@ function useParamEnvironmentTypes(): EnvironmentOptionValue[] {
|
||||||
}
|
}
|
||||||
|
|
||||||
function useStepper(
|
function useStepper(
|
||||||
steps: typeof environmentTypes[number][],
|
steps: (typeof environmentTypes)[number][],
|
||||||
onFinish: () => void
|
onFinish: () => void
|
||||||
) {
|
) {
|
||||||
const [currentStepIndex, setCurrentStepIndex] = useState(0);
|
const [currentStepIndex, setCurrentStepIndex] = useState(0);
|
||||||
|
|
64
package.json
64
package.json
|
@ -108,7 +108,7 @@
|
||||||
"react-datetime-picker": "^4.2.0",
|
"react-datetime-picker": "^4.2.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-i18next": "^11.12.0",
|
"react-i18next": "^11.12.0",
|
||||||
"react-is": "^18.2.0",
|
"react-is": "^17.0.2",
|
||||||
"react-query": "^3.33.4",
|
"react-query": "^3.33.4",
|
||||||
"react-select": "^5.2.1",
|
"react-select": "^5.2.1",
|
||||||
"sanitize-html": "^2.8.1",
|
"sanitize-html": "^2.8.1",
|
||||||
|
@ -130,13 +130,13 @@
|
||||||
"@babel/preset-react": "^7.16.0",
|
"@babel/preset-react": "^7.16.0",
|
||||||
"@babel/preset-typescript": "^7.16.0",
|
"@babel/preset-typescript": "^7.16.0",
|
||||||
"@simbathesailor/use-what-changed": "^2.0.0",
|
"@simbathesailor/use-what-changed": "^2.0.0",
|
||||||
"@storybook/addon-actions": "^6.5.10",
|
"@storybook/addon-actions": "^6.5.16",
|
||||||
"@storybook/addon-essentials": "^6.5.10",
|
"@storybook/addon-essentials": "^6.5.16",
|
||||||
"@storybook/addon-links": "^6.5.10",
|
"@storybook/addon-links": "^6.5.16",
|
||||||
"@storybook/addon-postcss": "^2.0.0",
|
"@storybook/addon-postcss": "^2.0.0",
|
||||||
"@storybook/builder-webpack5": "^6.5.10",
|
"@storybook/builder-webpack5": "^6.5.16",
|
||||||
"@storybook/manager-webpack5": "^6.5.10",
|
"@storybook/manager-webpack5": "^6.5.16",
|
||||||
"@storybook/react": "^6.5.10",
|
"@storybook/react": "^6.5.16",
|
||||||
"@svgr/webpack": "^6.2.1",
|
"@svgr/webpack": "^6.2.1",
|
||||||
"@testing-library/jest-dom": "^5.16.1",
|
"@testing-library/jest-dom": "^5.16.1",
|
||||||
"@testing-library/react": "^12.1.2",
|
"@testing-library/react": "^12.1.2",
|
||||||
|
@ -155,8 +155,8 @@
|
||||||
"@types/sanitize-html": "^2.8.0",
|
"@types/sanitize-html": "^2.8.0",
|
||||||
"@types/toastr": "^2.1.39",
|
"@types/toastr": "^2.1.39",
|
||||||
"@types/uuid": "^3.3.2",
|
"@types/uuid": "^3.3.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.7.0",
|
"@typescript-eslint/eslint-plugin": "^5.59.5",
|
||||||
"@typescript-eslint/parser": "^5.7.0",
|
"@typescript-eslint/parser": "^5.59.5",
|
||||||
"auto-ngtemplate-loader": "^2.0.1",
|
"auto-ngtemplate-loader": "^2.0.1",
|
||||||
"autoprefixer": "^10.4.7",
|
"autoprefixer": "^10.4.7",
|
||||||
"babel-jest": "^27.4.2",
|
"babel-jest": "^27.4.2",
|
||||||
|
@ -165,25 +165,25 @@
|
||||||
"babel-plugin-lodash": "^3.3.4",
|
"babel-plugin-lodash": "^3.3.4",
|
||||||
"clean-terminal-webpack-plugin": "^3.0.0",
|
"clean-terminal-webpack-plugin": "^3.0.0",
|
||||||
"clean-webpack-plugin": "^4.0.0",
|
"clean-webpack-plugin": "^4.0.0",
|
||||||
"copy-webpack-plugin": "^10.2.0",
|
"copy-webpack-plugin": "^11.0.0",
|
||||||
"css-loader": "^6.6.0",
|
"css-loader": "^6.6.0",
|
||||||
"cssnano": "^5.0.16",
|
"cssnano": "^5.0.16",
|
||||||
"dotenv-webpack": "^7.0.3",
|
"dotenv-webpack": "^8.0.1",
|
||||||
"eslint": "^8.4.1",
|
"eslint": "^8.40.0",
|
||||||
"eslint-config-airbnb": "^19.0.2",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
"eslint-config-airbnb-typescript": "^16.1.0",
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.7.0",
|
||||||
"eslint-import-resolver-alias": "^1.1.2",
|
"eslint-import-resolver-alias": "^1.1.2",
|
||||||
"eslint-plugin-eslint-comments": "^3.2.0",
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
||||||
"eslint-plugin-import": "^2.25.3",
|
"eslint-plugin-import": "^2.27.5",
|
||||||
"eslint-plugin-jest": "^25.3.0",
|
"eslint-plugin-jest": "^27.2.1",
|
||||||
"eslint-plugin-jsx-a11y": "^6.5.1",
|
"eslint-plugin-jsx-a11y": "^6.7.1",
|
||||||
"eslint-plugin-promise": "^5.2.0",
|
"eslint-plugin-promise": "^6.1.1",
|
||||||
"eslint-plugin-react": "^7.27.1",
|
"eslint-plugin-react": "^7.32.2",
|
||||||
"eslint-plugin-react-hooks": "^4.3.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"eslint-plugin-regex": "^1.9.0",
|
"eslint-plugin-regex": "^1.10.0",
|
||||||
"eslint-plugin-storybook": "^0.6.3",
|
"eslint-plugin-storybook": "^0.6.12",
|
||||||
"eslint-webpack-plugin": "^3.1.1",
|
"eslint-webpack-plugin": "^4.0.0",
|
||||||
"html-loader": "^0.5.5",
|
"html-loader": "^0.5.5",
|
||||||
"html-webpack-plugin": "^5.5.0",
|
"html-webpack-plugin": "^5.5.0",
|
||||||
"husky": "4.2.5",
|
"husky": "4.2.5",
|
||||||
|
@ -192,13 +192,13 @@
|
||||||
"lint-staged": ">=10",
|
"lint-staged": ">=10",
|
||||||
"lodash-webpack-plugin": "^0.11.6",
|
"lodash-webpack-plugin": "^0.11.6",
|
||||||
"mini-css-extract-plugin": "^2.5.3",
|
"mini-css-extract-plugin": "^2.5.3",
|
||||||
"msw-storybook-addon": "^1.6.3",
|
"msw-storybook-addon": "^1.8.0",
|
||||||
"ngtemplate-loader": "^2.1.0",
|
"ngtemplate-loader": "^2.1.0",
|
||||||
"plop": "^2.6.0",
|
"plop": "^3.1.2",
|
||||||
"postcss": "^8.4.14",
|
"postcss": "^8.4.14",
|
||||||
"postcss-loader": "^6.2.1",
|
"postcss-loader": "^6.2.1",
|
||||||
"prettier": "^2.8.1",
|
"prettier": "^2.8.8",
|
||||||
"prettier-plugin-tailwindcss": "^0.2.1",
|
"prettier-plugin-tailwindcss": "^0.2.8",
|
||||||
"react-docgen-typescript-plugin": "^1.0.5",
|
"react-docgen-typescript-plugin": "^1.0.5",
|
||||||
"react-test-renderer": "^17.0.2",
|
"react-test-renderer": "^17.0.2",
|
||||||
"source-map-loader": "^3.0.0",
|
"source-map-loader": "^3.0.0",
|
||||||
|
@ -209,11 +209,11 @@
|
||||||
"tailwindcss": "^3.1.4",
|
"tailwindcss": "^3.1.4",
|
||||||
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
||||||
"typescript": "^5.0.4",
|
"typescript": "^5.0.4",
|
||||||
"webpack": "^5.65.0",
|
"webpack": "^5.82.1",
|
||||||
"webpack-build-notifier": "^2.3.0",
|
"webpack-build-notifier": "^2.3.0",
|
||||||
"webpack-bundle-analyzer": "^4.5.0",
|
"webpack-bundle-analyzer": "^4.8.0",
|
||||||
"webpack-cli": "^4.9.1",
|
"webpack-cli": "^5.1.1",
|
||||||
"webpack-dev-server": "^4.6.0",
|
"webpack-dev-server": "^4.15.0",
|
||||||
"webpack-merge": "^5.8.0"
|
"webpack-merge": "^5.8.0"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
|
|
Loading…
Reference in New Issue