From 7d5235d615ed960114719dee3127df24b7317b26 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Mon, 14 Oct 2024 13:00:40 +0300 Subject: [PATCH] Flex layout replacements. Switch to tailwind.css. --- .../queue/queue-form.component.html | 38 +++++++++--------- .../relation/relation-dialog.component.html | 8 ++-- .../relation/relation-filters.component.html | 4 +- .../relation/relation-table.component.html | 31 +++++++------- .../rule-chain-autocomplete.component.html | 2 +- ...-sms-provider-configuration.component.html | 14 +++---- .../vc/auto-commit-settings.component.html | 38 +++++++++--------- .../vc/complex-version-create.component.html | 18 ++++----- .../vc/complex-version-load.component.html | 12 +++--- ...entity-types-version-create.component.html | 40 +++++++++---------- .../entity-types-version-load.component.html | 34 ++++++++-------- .../vc/entity-version-create.component.html | 12 +++--- .../vc/entity-version-diff.component.html | 17 ++++---- .../vc/entity-version-restore.component.html | 10 ++--- .../vc/entity-versions-table.component.html | 38 +++++++++--------- ...move-other-entities-confirm.component.html | 2 +- .../vc/repository-settings.component.html | 24 +++++------ ui-ngx/tailwind.config.js | 3 ++ 18 files changed, 172 insertions(+), 173 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/queue/queue-form.component.html b/ui-ngx/src/app/modules/home/components/queue/queue-form.component.html index 38e2860cd5..26c74a5a34 100644 --- a/ui-ngx/src/app/modules/home/components/queue/queue-form.component.html +++ b/ui-ngx/src/app/modules/home/components/queue/queue-form.component.html @@ -15,7 +15,7 @@ limitations under the License. --> -
+ admin.queue-name @@ -37,10 +37,10 @@ -
-
+
+
- + {{ queueSubmitStrategyTypesMap.get(queueSubmitStrategyTypes[strategy]).label | translate }}
-
+
queue.batch-size @@ -75,10 +75,10 @@ -
-
+
+
- + {{ queueProcessingStrategyTypesMap.get(queueProcessingStrategyTypes[strategy]).label | translate }}
-
+
queue.retries @@ -156,11 +156,11 @@ -
-
+
+
-
- +
+ queue.poll-interval @@ -171,7 +171,7 @@ {{ 'queue.poll-interval-min-value' | translate }} - + queue.partitions @@ -184,13 +184,13 @@
-
+
-
- +
+ {{ 'queue.consumer-per-partition' | translate }} - + queue.processing-timeout @@ -208,7 +208,7 @@
- + {{ 'queue.duplicate-msg-to-all-partitions' | translate }} diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html index 435f5a42ee..b6bb288b9f 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-dialog.component.html @@ -16,9 +16,9 @@ --> - +

{{ (isAdd ? 'relation.add' : 'relation.edit' ) | translate }}

- +
-
- +
+
-
- relation.any-relation +
+ relation.any-relation
diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html index 5be9f4932c..08002e6e0f 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-table.component.html @@ -16,10 +16,10 @@ -->
-
- +
+
-
+
{{(direction == directions.FROM ? 'relation.from-relations' : 'relation.to-relations') | translate}} @@ -33,7 +33,7 @@
- +
- +
- +  
- -
+ +
{{ 'relation.selected-relations' | translate:{count: dataSource.selection.selected.length} }} @@ -85,7 +85,7 @@
-
+
@@ -140,7 +140,7 @@ -
+
- {{ 'relation.no-relations-text' }} + {{ 'relation.no-relations-text' }}
+ [class.!hidden]="disabled && selectRuleChainFormGroup.get('ruleChainId').value"> {{ displayRuleChainFn(selectRuleChainFormGroup.get('ruleChainId').value) }} diff --git a/ui-ngx/src/app/modules/home/components/sms/smpp-sms-provider-configuration.component.html b/ui-ngx/src/app/modules/home/components/sms/smpp-sms-provider-configuration.component.html index 5392ce8ce8..7621f9a575 100644 --- a/ui-ngx/src/app/modules/home/components/sms/smpp-sms-provider-configuration.component.html +++ b/ui-ngx/src/app/modules/home/components/sms/smpp-sms-provider-configuration.component.html @@ -16,8 +16,8 @@ --> -
- +
+ admin.smpp-provider.smpp-version @@ -25,14 +25,14 @@ - + admin.smpp-provider.smpp-host {{'admin.smpp-provider.smpp-host-required' | translate}} - + admin.smpp-provider.smpp-port @@ -40,15 +40,15 @@
-
- +
+ admin.smpp-provider.system-id {{'admin.smpp-provider.system-id-required' | translate}} - + admin.smpp-provider.password diff --git a/ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html b/ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html index 22ab888e80..cabadf231f 100644 --- a/ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/auto-commit-settings.component.html @@ -21,7 +21,7 @@ admin.auto-commit-settings - +
@@ -31,19 +31,19 @@
admin.auto-commit-entities -
+
- + class="flex flex-row justify-start items-center" [class.pb-2]="!isLast"> + -
+
-
+
- + - +
version-control.auto-commit-settings-read-only-hint
-
- - + diff --git a/ui-ngx/src/app/modules/home/components/vc/complex-version-create.component.html b/ui-ngx/src/app/modules/home/components/vc/complex-version-create.component.html index 163b13a393..327620355f 100644 --- a/ui-ngx/src/app/modules/home/components/vc/complex-version-create.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/complex-version-create.component.html @@ -15,22 +15,22 @@ limitations under the License. --> -
+

{{ 'version-control.create-entities-version' | translate }}

- +
- -
+ +
- + version-control.version-name -
+
-
+
-
+
version-control.creating-version diff --git a/ui-ngx/src/app/modules/home/components/vc/complex-version-load.component.html b/ui-ngx/src/app/modules/home/components/vc/complex-version-load.component.html index ccab83b9aa..516f10934b 100644 --- a/ui-ngx/src/app/modules/home/components/vc/complex-version-load.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/complex-version-load.component.html @@ -15,15 +15,15 @@ limitations under the License. --> -
+

{{ 'version-control.restore-entities-from-version' | translate: {versionName} }}

- +
-
+ @@ -33,7 +33,7 @@ {{ 'version-control.rollback-on-error' | translate }}
-
+
-
+
version-control.restoring-entities-from-version diff --git a/ui-ngx/src/app/modules/home/components/vc/entity-types-version-create.component.html b/ui-ngx/src/app/modules/home/components/vc/entity-types-version-create.component.html index c237d2291a..c988746e48 100644 --- a/ui-ngx/src/app/modules/home/components/vc/entity-types-version-create.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/entity-types-version-create.component.html @@ -15,22 +15,22 @@ limitations under the License. --> -
+
version-control.entities-to-export -
+
- + -
+
-
+
{{ entityTypeText(entityTypeFormGroup) }}
- +
-
+
-
+
-
- +
+ version-control.sync-strategy @@ -62,7 +62,7 @@ -
+
{{ 'version-control.export-credentials' | translate }} @@ -75,14 +75,14 @@
-
+
{{ 'version-control.all-entities' | translate }} @@ -92,18 +92,18 @@
- version-control.no-entities-to-export-prompt + version-control.no-entities-to-export-prompt
-
+
- +
-
+
-
+
-
-
+
+
@@ -62,7 +62,7 @@ {{ 'version-control.find-existing-entity-by-name' | translate }}
-
+
{{ 'version-control.load-credentials' | translate }} @@ -79,18 +79,18 @@
- version-control.no-entities-to-restore-prompt + version-control.no-entities-to-restore-prompt
-
+
- +
-
+
version-control.creating-version diff --git a/ui-ngx/src/app/modules/home/components/vc/entity-version-diff.component.html b/ui-ngx/src/app/modules/home/components/vc/entity-version-diff.component.html index 1c4f72e623..273207ca24 100644 --- a/ui-ngx/src/app/modules/home/components/vc/entity-version-diff.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/entity-version-diff.component.html @@ -15,13 +15,12 @@ limitations under the License. --> -
+ [style]="isFullscreen || !contentReady ? {} : {height: preferredDiffHeight}">

{{ 'version-control.diff-entity-with-version' | translate: {versionName} }}

- +
-
-
{{ 'version-control.current' | translate }}
+
+
{{ 'version-control.current' | translate }}
-
{{ versionIdContent() }}
+
{{ versionIdContent() }}
-
-
+
+
-
+
version-control.restoring-entity-version diff --git a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html index 948fdb5190..b2818368e2 100644 --- a/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html +++ b/ui-ngx/src/app/modules/home/components/vc/entity-versions-table.component.html @@ -15,11 +15,11 @@ limitations under the License. --> -
-
- +
+
+
-
+
{{(singleEntityMode ? 'version-control.entity-versions' : 'version-control.versions') | translate}}
- -
+ +
-
+
- +
- +  
-
+
@@ -124,11 +124,11 @@ - + -
+
- {{ + {{ singleEntityMode ? 'version-control.no-entity-versions-text' : 'version-control.no-versions-text' }} - {{ 'common.loading' | translate }} + {{ 'common.loading' | translate }}
-
+
- +