From 0e2eb17220096066844652aebb9fa043f15d9f19 Mon Sep 17 00:00:00 2001 From: Chaim Lev-Ari Date: Mon, 4 Sep 2023 16:20:36 +0100 Subject: [PATCH] chore(deps): upgrade tailwind and prettier [EE-5218] (#10068) --- .prettierrc | 12 +- app/__mocks__/i18next.test.ts | 2 +- app/assets/fonts/nomad-icon.css | 7 +- .../networkRowContent.html | 2 +- .../serviceTasksDatatable.html | 2 +- .../services-datatable/servicesDatatable.html | 2 +- .../tasks-datatable/tasksDatatable.html | 2 +- .../volumes-datatable/volumesDatatable.html | 2 +- .../engine-details-panel.html | 6 +- .../containers/create/createcontainer.html | 2 +- .../containers/inspect/containerinspect.html | 2 +- app/docker/views/images/edit/image.html | 8 +- .../views/services/edit/includes/mounts.html | 4 +- app/docker/views/swarm/swarm.html | 2 +- .../swarm/visualizer/swarmvisualizer.html | 4 +- app/index.html | 2 +- .../applicationsDatatable.html | 2 +- .../integratedApplicationsDatatable.html | 2 +- .../nodeApplicationsDatatable.html | 2 +- .../resourcePoolApplicationsDatatable.html | 2 +- .../helm/helm-templates/helm-templates.html | 4 +- .../create/createApplication.html | 137 +++++----- app/kubernetes/views/configure/configure.html | 6 +- .../components/access-table/accessTable.html | 2 +- .../customTemplatesList.html | 2 +- app/portainer/components/focusIf.js | 9 +- .../template-list/templateList.html | 2 +- app/portainer/services/axios.ts | 2 +- app/portainer/views/auth/auth.html | 2 +- app/react-tools/react-query.ts | 4 +- app/react-tools/withControlledInput.tsx | 4 +- app/react-tools/withFormValidation.ts | 6 +- .../components/BoxSelector/BoxOption.tsx | 2 +- .../BoxSelector/LimitedToBeIndicator.tsx | 2 +- .../DashboardItem/DashboardItem.tsx | 4 +- .../components/EnvironmentStatusBadgeItem.tsx | 2 +- .../components/InsightsBox/InsightsBox.tsx | 2 +- .../SliderTooltip/SliderTooltip.module.css | 4 +- .../TooltipWithChildren.module.css | 4 +- app/react/components/datatables/types.ts | 4 +- .../components/datatables/useTableState.ts | 2 +- .../FormSectionTitle/FormSectionTitle.tsx | 4 +- .../InputGroup/InputGroupButtonWrapper.tsx | 2 +- .../form-components/ReactSelect.css | 24 +- .../form-components/ReactSelect.tsx | 10 +- .../form-components/SwitchField/Switch.css | 16 +- .../form-components/useCaretPosition.ts | 2 +- .../components/modals/Modal/CloseButton.tsx | 2 +- .../EnvironmentsDatatable.tsx | 2 +- .../EnvironmentsDatatable/columns.tsx | 2 +- .../application-services/KubeServicesForm.tsx | 44 ++-- .../PublishingExplaination.tsx | 2 +- .../ApplicationIngressesTable.tsx | 19 +- .../applications/application.service.ts | 4 +- .../applications/autoscaling.service.ts | 4 +- app/react/kubernetes/applications/utils.ts | 32 ++- .../ListView/ConfigMapsDatatable/utils.ts | 11 +- .../ListView/SecretsDatatable/utils.ts | 11 +- .../CreateIngressView/Annotations/index.tsx | 4 +- .../CreateIngressView/CreateIngressView.tsx | 2 +- .../CreateIngressView/IngressForm.tsx | 16 +- .../AMTButton/AssociateAMTDialog.tsx | 2 +- .../CreateView/CreateView.tsx | 2 +- .../update-schedules/ItemView/ItemView.tsx | 2 +- .../update-schedules/ListView/ListView.tsx | 2 +- app/react/sidebar/Sidebar.tsx | 2 +- app/react/sidebar/SidebarItem/Head.tsx | 2 +- package.json | 10 +- yarn.lock | 246 ++++++++++++------ 69 files changed, 442 insertions(+), 314 deletions(-) diff --git a/.prettierrc b/.prettierrc index a9d2ada8a..2f43352e6 100644 --- a/.prettierrc +++ b/.prettierrc @@ -2,18 +2,24 @@ "printWidth": 180, "singleQuote": true, "htmlWhitespaceSensitivity": "strict", + "trailingComma": "es5", "overrides": [ { - "files": ["*.html"], + "files": [ + "*.html" + ], "options": { "parser": "angular" } }, { - "files": ["*.{j,t}sx", "*.ts"], + "files": [ + "*.{j,t}sx", + "*.ts" + ], "options": { "printWidth": 80 } } ] -} +} \ No newline at end of file diff --git a/app/__mocks__/i18next.test.ts b/app/__mocks__/i18next.test.ts index e6cc9707f..a1dbf0bf7 100644 --- a/app/__mocks__/i18next.test.ts +++ b/app/__mocks__/i18next.test.ts @@ -19,7 +19,7 @@ describe('mockT', () => { ${'{{number}} of {{total}}'} | ${{ number: 0, total: 999 }} | ${'0 of 999'} ${'There was an error:\n{{error}}'} | ${{ error: 'Failed' }} | ${'There was an error:\nFailed'} ${'Click:{{li}}{{li2}}{{li_3}}'} | ${{ li: '', li2: 'https://', li_3: '!@#$%' }} | ${'Click:https://!@#$%'} - ${'{{happy}}😏y✔{{sad}}{{laugh}}'} | ${{ happy: '😃', sad: '😢', laugh: '🤣' }} | ${'😃😏y✔😢🤣'} + ${'{{happy}}😏y✔{{sad}}{{laugh}}'} | ${{ happy: '😃', sad: '😢', laugh: '🤣' }} | ${'😃😏y✔😢🤣'} `( 'should return correctly while handling arguments in different scenarios', ({ testText, args, expectedText }) => { diff --git a/app/assets/fonts/nomad-icon.css b/app/assets/fonts/nomad-icon.css index e266b5819..93e2534c0 100644 --- a/app/assets/fonts/nomad-icon.css +++ b/app/assets/fonts/nomad-icon.css @@ -5,8 +5,11 @@ @font-face { font-family: 'nomad-icon'; src: url('nomad-icon/nomad-icon.eot?6tre2n'); - src: url('nomad-icon/nomad-icon.eot?6tre2n#iefix') format('embedded-opentype'), url('nomad-icon/nomad-icon.ttf?6tre2n') format('truetype'), - url('nomad-icon/nomad-icon.woff?6tre2n') format('woff'), url('nomad-icon/nomad-icon.svg?6tre2n#nomad-icon') format('svg'); + src: + url('nomad-icon/nomad-icon.eot?6tre2n#iefix') format('embedded-opentype'), + url('nomad-icon/nomad-icon.ttf?6tre2n') format('truetype'), + url('nomad-icon/nomad-icon.woff?6tre2n') format('woff'), + url('nomad-icon/nomad-icon.svg?6tre2n#nomad-icon') format('svg'); font-weight: normal; font-style: normal; font-display: block; diff --git a/app/docker/components/datatables/networks-datatable/network-row-content/networkRowContent.html b/app/docker/components/datatables/networks-datatable/network-row-content/networkRowContent.html index ca3842bd5..d335615a7 100644 --- a/app/docker/components/datatables/networks-datatable/network-row-content/networkRowContent.html +++ b/app/docker/components/datatables/networks-datatable/network-row-content/networkRowContent.html @@ -16,7 +16,7 @@ - {{ item.Name | truncate : 40 }} + {{ item.Name | truncate: 40 }} System {{ item.StackName ? item.StackName : '-' }} diff --git a/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatable.html b/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatable.html index e98d84bea..734414b09 100644 --- a/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatable.html +++ b/app/docker/components/datatables/service-tasks-datatable/serviceTasksDatatable.html @@ -98,7 +98,7 @@ > {{ item.Slot ? item.Slot : '-' }} - {{ item.NodeId | tasknodename : $ctrl.nodes }} + {{ item.NodeId | tasknodename: $ctrl.nodes }} {{ item.Updated | getisodate }} diff --git a/app/docker/components/datatables/services-datatable/servicesDatatable.html b/app/docker/components/datatables/services-datatable/servicesDatatable.html index ddb0274bc..173c57ced 100644 --- a/app/docker/components/datatables/services-datatable/servicesDatatable.html +++ b/app/docker/components/datatables/services-datatable/servicesDatatable.html @@ -180,7 +180,7 @@ {{ item.Image | hideshasum }} {{ item.Mode }} - {{ item.Tasks | runningtaskscount }} / {{ item.Mode === 'replicated' ? item.Replicas : ($ctrl.nodes | availablenodecount : item) }} + {{ item.Tasks | runningtaskscount }} / {{ item.Mode === 'replicated' ? item.Replicas : ($ctrl.nodes | availablenodecount: item) }} diff --git a/app/docker/components/datatables/tasks-datatable/tasksDatatable.html b/app/docker/components/datatables/tasks-datatable/tasksDatatable.html index 7af8b6fd1..f53d42405 100644 --- a/app/docker/components/datatables/tasks-datatable/tasksDatatable.html +++ b/app/docker/components/datatables/tasks-datatable/tasksDatatable.html @@ -105,7 +105,7 @@ > {{ item.Slot ? item.Slot : '-' }} - {{ item.NodeId | tasknodename : $ctrl.nodes }} + {{ item.NodeId | tasknodename: $ctrl.nodes }} {{ item.Updated | getisodate }} diff --git a/app/docker/components/datatables/volumes-datatable/volumesDatatable.html b/app/docker/components/datatables/volumes-datatable/volumesDatatable.html index 64787999d..80a8918bc 100644 --- a/app/docker/components/datatables/volumes-datatable/volumesDatatable.html +++ b/app/docker/components/datatables/volumes-datatable/volumesDatatable.html @@ -184,7 +184,7 @@ - {{ item.Id | truncate : 40 }} + {{ item.Id | truncate: 40 }} diff --git a/app/kubernetes/views/applications/create/createApplication.html b/app/kubernetes/views/applications/create/createApplication.html index 7f60839e8..5593981f6 100644 --- a/app/kubernetes/views/applications/create/createApplication.html +++ b/app/kubernetes/views/applications/create/createApplication.html @@ -1218,85 +1218,86 @@
-
- -
-
- -
+
+ +
+
+ +
-
- - +
+ + +
-
-
-
-
-

- This label is already defined. -

+
+
+
+

+ This label is already defined. +

+
-
-
- - Add rule - -
-
-
-
- + + Add rule +
+
+
+
+ +
+
-
-
Specify the policy associated to the placement rules.
-
+
+
Specify the policy associated to the placement rules.
+
- + +
diff --git a/app/kubernetes/views/configure/configure.html b/app/kubernetes/views/configure/configure.html index 50abdcf3e..2b5a5c21b 100644 --- a/app/kubernetes/views/configure/configure.html +++ b/app/kubernetes/views/configure/configure.html @@ -133,7 +133,7 @@
@@ -281,7 +281,7 @@
-