chore(deps): upgrade build-tools [EE-5117] (#8577)

pull/8946/head
Chaim Lev-Ari 2023-05-16 12:22:50 +07:00 committed by GitHub
parent 5f3c0ff835
commit 077046030d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 2106 additions and 1598 deletions

View File

@ -86,8 +86,8 @@ overrides:
no-plusplus: off
func-style: [error, 'declaration']
import/prefer-default-export: off
no-use-before-define: ['error', { functions: false }]
'@typescript-eslint/no-use-before-define': ['error', { functions: false }]
no-use-before-define: "off"
'@typescript-eslint/no-use-before-define': ['error', { functions: false, "allowNamedExports": true }]
no-shadow: 'off'
'@typescript-eslint/no-shadow': off
jsx-a11y/no-autofocus: warn

View File

@ -9,7 +9,7 @@ const categories = [
'portainer',
'edge',
] as const;
type Category = typeof categories[number];
type Category = (typeof categories)[number];
enum DimensionConfig {
PortainerVersion = 1,

View File

@ -92,7 +92,7 @@ export function ServiceViewModel(data, runningTasks, allTasks) {
this.VirtualIPs = data.Endpoint ? data.Endpoint.VirtualIPs : [];
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.UpdateFailureAction = data.Spec.UpdateConfig.FailureAction || 'pause';
this.UpdateOrder = data.Spec.UpdateConfig.Order || 'stop-first';

View File

@ -59,7 +59,6 @@ export const componentsModule = angular
r2a(InsightsBox, [
'header',
'content',
'setHtmlContent',
'insightCloseId',
'type',
'className',

View File

@ -10,7 +10,6 @@ import { insightStore } from './insights-store';
export type Props = {
header?: string;
content?: ReactNode;
setHtmlContent?: boolean;
insightCloseId?: string; // set if you want to be able to close the box and not show it again
type?: 'default' | 'slim';
className?: string;

View File

@ -40,8 +40,9 @@ export function DifferentTheme() {
{themes.map((theme) => (
<td
key={theme}
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// eslint-disable-next-line @typescript-eslint/ban-ts-comment,
// @ts-ignore
// eslint-disable-next-line react/no-unknown-property
theme={theme}
className="p-5"
style={{ background: 'var(--bg-body-color)' }}

View File

@ -47,11 +47,7 @@ export function DockerfileDetails({ image }: Props) {
<DetailsTable.Row label="VOLUME">
<div className="flex flex-wrap gap-1">
{image.Volumes.map((volume, index) => (
<span
key={index}
className="label label-default space-right"
ng-repeat="volume in image.Volumes"
>
<span key={index} className="label label-default space-right">
{volume}
</span>
))}

View File

@ -31,7 +31,7 @@ export function EnvironmentInfo() {
{environmentData.Name}
</td>
</tr>
<tr ng-if="ctrl.showEnvUrl">
<tr>
<td className="!border-t !pl-0">URL</td>
<td className="!border-t" data-cy="dashboard-environmenturl">
{stripProtocol(environmentData.URL) || '-'}

View File

@ -132,7 +132,7 @@ export function ConsoleView() {
value={command}
onChange={(e) => setCommand(e.target.value)}
id="consoleCommand"
auto-focus="true"
autoFocus
/>
</div>
</div>

View File

@ -154,7 +154,7 @@ function useParamEnvironmentTypes(): EnvironmentOptionValue[] {
}
function useStepper(
steps: typeof environmentTypes[number][],
steps: (typeof environmentTypes)[number][],
onFinish: () => void
) {
const [currentStepIndex, setCurrentStepIndex] = useState(0);

View File

@ -108,7 +108,7 @@
"react-datetime-picker": "^4.2.0",
"react-dom": "^17.0.2",
"react-i18next": "^11.12.0",
"react-is": "^18.2.0",
"react-is": "^17.0.2",
"react-query": "^3.33.4",
"react-select": "^5.2.1",
"sanitize-html": "^2.8.1",
@ -130,13 +130,13 @@
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@simbathesailor/use-what-changed": "^2.0.0",
"@storybook/addon-actions": "^6.5.10",
"@storybook/addon-essentials": "^6.5.10",
"@storybook/addon-links": "^6.5.10",
"@storybook/addon-actions": "^6.5.16",
"@storybook/addon-essentials": "^6.5.16",
"@storybook/addon-links": "^6.5.16",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/builder-webpack5": "^6.5.10",
"@storybook/manager-webpack5": "^6.5.10",
"@storybook/react": "^6.5.10",
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.5.16",
"@svgr/webpack": "^6.2.1",
"@testing-library/jest-dom": "^5.16.1",
"@testing-library/react": "^12.1.2",
@ -155,8 +155,8 @@
"@types/sanitize-html": "^2.8.0",
"@types/toastr": "^2.1.39",
"@types/uuid": "^3.3.2",
"@typescript-eslint/eslint-plugin": "^5.7.0",
"@typescript-eslint/parser": "^5.7.0",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"auto-ngtemplate-loader": "^2.0.1",
"autoprefixer": "^10.4.7",
"babel-jest": "^27.4.2",
@ -165,25 +165,25 @@
"babel-plugin-lodash": "^3.3.4",
"clean-terminal-webpack-plugin": "^3.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",
"cssnano": "^5.0.16",
"dotenv-webpack": "^7.0.3",
"eslint": "^8.4.1",
"eslint-config-airbnb": "^19.0.2",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.3.0",
"dotenv-webpack": "^8.0.1",
"eslint": "^8.40.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.7.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-promise": "^5.2.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-regex": "^1.9.0",
"eslint-plugin-storybook": "^0.6.3",
"eslint-webpack-plugin": "^3.1.1",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.32.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-regex": "^1.10.0",
"eslint-plugin-storybook": "^0.6.12",
"eslint-webpack-plugin": "^4.0.0",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^5.5.0",
"husky": "4.2.5",
@ -192,13 +192,13 @@
"lint-staged": ">=10",
"lodash-webpack-plugin": "^0.11.6",
"mini-css-extract-plugin": "^2.5.3",
"msw-storybook-addon": "^1.6.3",
"msw-storybook-addon": "^1.8.0",
"ngtemplate-loader": "^2.1.0",
"plop": "^2.6.0",
"plop": "^3.1.2",
"postcss": "^8.4.14",
"postcss-loader": "^6.2.1",
"prettier": "^2.8.1",
"prettier-plugin-tailwindcss": "^0.2.1",
"prettier": "^2.8.8",
"prettier-plugin-tailwindcss": "^0.2.8",
"react-docgen-typescript-plugin": "^1.0.5",
"react-test-renderer": "^17.0.2",
"source-map-loader": "^3.0.0",
@ -209,11 +209,11 @@
"tailwindcss": "^3.1.4",
"tsconfig-paths-webpack-plugin": "^3.5.2",
"typescript": "^5.0.4",
"webpack": "^5.65.0",
"webpack": "^5.82.1",
"webpack-build-notifier": "^2.3.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.6.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.1.1",
"webpack-dev-server": "^4.15.0",
"webpack-merge": "^5.8.0"
},
"resolutions": {

3615
yarn.lock

File diff suppressed because it is too large Load Diff