From a289913476ec739c1758496f76610a4792913298 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Wed, 9 Oct 2024 19:36:42 +0300 Subject: [PATCH 01/34] Fx flex replacements. Switch to tailwind.css. --- ui-ngx/package.json | 3 + .../src/app/modules/home/home.component.html | 44 ++-- .../home/menu/side-menu.component.html | 2 +- .../scada-symbol-editor.component.html | 2 +- .../scada-symbol-editor.component.ts | 5 + .../login/create-password.component.html | 9 +- .../pages/login/link-expired.component.html | 4 +- .../login/pages/login/login.component.html | 14 +- .../reset-password-request.component.html | 9 +- .../pages/login/reset-password.component.html | 9 +- .../two-factor-auth-login.component.html | 24 +-- .../components/breadcrumb.component.html | 8 +- .../color-picker-panel.component.html | 4 +- .../app/shared/components/css.component.html | 14 +- .../dashboard-autocomplete.component.html | 2 +- .../dashboard-select-panel.component.html | 2 +- .../dashboard-select.component.html | 4 +- .../dialog/alert-dialog.component.html | 2 +- .../dialog/confirm-dialog.component.html | 2 +- .../entity-conflict-dialog.component.html | 4 +- .../dialog/error-alert-dialog.component.html | 2 +- .../json-object-edit-dialog.component.html | 8 +- .../node-script-test-dialog.component.html | 20 +- .../dialog/todo-dialog.component.html | 2 +- .../entity/entity-autocomplete.component.html | 2 +- .../entity/entity-list-select.component.html | 6 +- .../entity-subtype-select.component.html | 2 +- .../footer-fab-buttons.component.html | 2 +- .../grid/scroll-grid.component.html | 5 +- .../app/shared/components/html.component.html | 14 +- .../image/embed-image-dialog.component.html | 7 +- .../image/image-dialog.component.html | 2 +- .../image/image-gallery.component.html | 94 +++++---- .../image/image-gallery.component.scss | 14 +- .../image/image-gallery.component.ts | 5 - .../image/images-in-use-dialog.component.html | 8 +- ...ultiple-gallery-image-input.component.html | 14 +- .../image/upload-image-dialog.component.html | 4 +- .../shared/components/js-func.component.html | 18 +- .../components/json-content.component.html | 14 +- .../json-object-edit.component.html | 18 +- .../json-object-view.component.html | 6 +- .../shared/components/kv-map.component.html | 20 +- .../app/shared/components/logo.component.html | 4 +- .../components/markdown-editor.component.html | 18 +- .../shared/components/markdown.component.html | 2 +- .../material-icon-select.component.html | 6 +- .../components/material-icons.component.html | 10 +- .../multiple-image-input.component.html | 12 +- .../notification/notification.component.html | 16 +- .../ota-package-autocomplete.component.html | 2 +- .../protobuf-content.component.html | 12 +- .../components/script-lang.component.html | 6 +- .../components/snack-bar-component.html | 27 ++- .../socialshare-panel.component.html | 3 +- .../string-autocomplete.component.html | 2 +- .../string-items-list.component.html | 2 +- .../shared/components/svg-xml.component.html | 14 +- .../time/datapoints-limit.component.html | 4 +- .../components/time/datetime.component.html | 2 +- .../time/quick-time-interval.component.html | 4 +- .../time/timeinterval.component.html | 4 +- .../timewindow-config-dialog.component.html | 4 +- .../time/timewindow-panel.component.html | 10 +- .../components/time/timewindow.component.html | 4 +- .../time/timezone-select.component.html | 2 +- .../components/time/timezone.component.html | 2 +- .../components/unit-input.component.html | 4 +- .../components/user-menu.component.html | 6 +- .../components/value-input.component.html | 14 +- .../widgets-bundle-search.component.html | 2 +- ui-ngx/src/styles.scss | 78 ++++---- ui-ngx/tailwind.config.js | 67 +++++++ ui-ngx/yarn.lock | 189 +++++++++++++++++- 74 files changed, 625 insertions(+), 361 deletions(-) create mode 100644 ui-ngx/tailwind.config.js diff --git a/ui-ngx/package.json b/ui-ngx/package.json index 5f67ac948f..a753381720 100644 --- a/ui-ngx/package.json +++ b/ui-ngx/package.json @@ -147,6 +147,7 @@ "@typescript-eslint/eslint-plugin": "^8.7.0", "@typescript-eslint/parser": "^8.7.0", "@typescript-eslint/utils": "^8.7.0", + "autoprefixer": "^10.4.20", "compression-webpack-plugin": "^11.1.0", "directory-tree": "^3.5.2", "eslint": "~8.57.1", @@ -155,8 +156,10 @@ "eslint-plugin-prefer-arrow": "latest", "ngrx-store-freeze": "^0.2.4", "patch-package": "^8.0.0", + "postcss": "^8.4.47", "postinstall-prepare": "^2.0.0", "raw-loader": "^4.0.2", + "tailwindcss": "^3.4.13", "ts-node": "^10.9.2", "typescript": "~5.5.4", "webpack": "5.95.0" diff --git a/ui-ngx/src/app/modules/home/home.component.html b/ui-ngx/src/app/modules/home/home.component.html index 4c52919d34..bab9c76824 100644 --- a/ui-ngx/src/app/modules/home/home.component.html +++ b/ui-ngx/src/app/modules/home/home.component.html @@ -23,50 +23,58 @@ [opened]="sidenavOpened && !forceFullscreen">
-
+
- + -
- - - - + -
- +
+
- - @@ -75,7 +83,7 @@ -
+
diff --git a/ui-ngx/src/app/modules/home/menu/side-menu.component.html b/ui-ngx/src/app/modules/home/menu/side-menu.component.html index bbbc323502..6e5a666e84 100644 --- a/ui-ngx/src/app/modules/home/menu/side-menu.component.html +++ b/ui-ngx/src/app/modules/home/menu/side-menu.component.html @@ -15,7 +15,7 @@ limitations under the License. --> -
    +
    • diff --git a/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.component.html b/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.component.html index 96bd1d7a8a..3ece699a83 100644 --- a/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.component.html +++ b/ui-ngx/src/app/modules/home/pages/scada-symbol/scada-symbol-editor.component.html @@ -70,7 +70,7 @@
{ if (this.svgContent !== svgContent) { this.svgContent = svgContent; diff --git a/ui-ngx/src/app/modules/login/pages/login/create-password.component.html b/ui-ngx/src/app/modules/login/pages/login/create-password.component.html index 37781ac83a..752d6cf319 100644 --- a/ui-ngx/src/app/modules/login/pages/login/create-password.component.html +++ b/ui-ngx/src/app/modules/login/pages/login/create-password.component.html @@ -15,8 +15,8 @@ limitations under the License. --> -
- +
+ login.create-password @@ -28,7 +28,7 @@
-
+
common.password @@ -42,8 +42,7 @@ lock -
+
diff --git a/ui-ngx/src/app/modules/login/pages/login/link-expired.component.html b/ui-ngx/src/app/modules/login/pages/login/link-expired.component.html index a1d52f0735..2d9fa4d58b 100644 --- a/ui-ngx/src/app/modules/login/pages/login/link-expired.component.html +++ b/ui-ngx/src/app/modules/login/pages/login/link-expired.component.html @@ -15,7 +15,7 @@ limitations under the License. --> -