From 47e3a6840b01be1bc2bb369907acfdf21653cf04 Mon Sep 17 00:00:00 2001 From: Bonymol Baby <88372115+Bonymol-aot@users.noreply.github.com> Date: Tue, 14 May 2024 22:20:09 -0700 Subject: [PATCH] Fwf 3215/bootstrap updates (#2032) * theme related changes * theme related changes * theme updates * variable change * prefix change * forms-flow-theme chnages added in ejs * MF theme URL removed from env * Update index.ejs * [Removed] MF_FORMSFLOW_THEME_URL from open source --------- Co-authored-by: shuhaib-aot --- .../workflows/forms-flow-root-config-cd.yml | 4 +- deployment/docker/docker-compose.yml | 1 - deployment/docker/sample.env | 1 - forms-flow-web-root-config/Dockerfile | 3 +- forms-flow-web-root-config/README.md | 1 - forms-flow-web-root-config/docker-compose.yml | 1 - .../public/config/config.template.js | 3 +- forms-flow-web-root-config/sample.env | 2 - forms-flow-web-root-config/src/index.ejs | 8 +- forms-flow-web/src/assets/styles/base.scss | 32 +-- forms-flow-web/src/assets/styles/layouts.scss | 4 +- .../components/Application/Application.scss | 4 +- forms-flow-web/src/components/BPMN/bpm.scss | 4 +- .../src/components/Dashboard/dashboard.scss | 30 +-- .../Form/Item/Submission/Item/View.js | 2 +- forms-flow-web/src/components/Form/List.scss | 26 +-- .../src/components/Form/Steps/steps.scss | 12 +- .../src/components/Form/stepper.scss | 14 +- .../src/components/Insights/Insights.scss | 10 +- .../components/Modeler/Editors/Editor.scss | 6 +- .../src/components/Modeler/Modeler.scss | 39 ++-- .../src/components/NotFound/pagenotfound.scss | 10 +- .../components/ServiceFlow/ServiceFlow.scss | 76 ++++--- .../ServiceFlow/details/TaskDetail.scss | 6 +- .../list/search/TaskSearchBarListView.scss | 4 +- forms-flow-web/src/containers/Head.js | 1 + .../src/containers/Stepper/index.js | 8 +- .../src/containers/Stepper/style.scss | 25 ++- forms-flow-web/src/containers/styles.scss | 28 ++- forms-flow-web/src/styles.scss | 209 ++++++------------ forms-flow-web/src/variables.scss | 28 +++ 31 files changed, 282 insertions(+), 320 deletions(-) create mode 100644 forms-flow-web/src/variables.scss diff --git a/.github/workflows/forms-flow-root-config-cd.yml b/.github/workflows/forms-flow-root-config-cd.yml index 6d88b012b7..7aed00cd3e 100644 --- a/.github/workflows/forms-flow-root-config-cd.yml +++ b/.github/workflows/forms-flow-root-config-cd.yml @@ -87,7 +87,6 @@ jobs: MF_FORMSFLOW_NAV_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@${{ env.VERSION }}/forms-flow-nav.gz.js MF_FORMSFLOW_SERVICE_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@${{ env.VERSION }}/forms-flow-service.gz.js MF_FORMSFLOW_ADMIN_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@${{ env.VERSION }}/forms-flow-admin.gz.js - MF_FORMSFLOW_THEME_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@${{ env.VERSION }}/forms-flow-theme.gz.js - name: Build and push Docker image if: ${{ github.ref == 'refs/heads/master' }} uses: docker/build-push-action@v4 @@ -101,8 +100,7 @@ jobs: MF_FORMSFLOW_WEB_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-web@${{ env.VERSION }}/forms-flow-web.gz.js MF_FORMSFLOW_NAV_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@${{ env.VERSION }}/forms-flow-nav.gz.js MF_FORMSFLOW_SERVICE_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@${{ env.VERSION }}/forms-flow-service.gz.js - MF_FORMSFLOW_ADMIN_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@${{ env.VERSION }}/forms-flow-admin.gz.js - MF_FORMSFLOW_THEME_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@${{ env.VERSION }}/forms-flow-theme.gz.js + MF_FORMSFLOW_ADMIN_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@${{ env.VERSION }}/forms-flow-admin.gz.js - name: Scan Docker image 🐳 uses: snyk/actions/docker@master continue-on-error: true diff --git a/deployment/docker/docker-compose.yml b/deployment/docker/docker-compose.yml index ef007dc453..aeacb5c0e5 100644 --- a/deployment/docker/docker-compose.yml +++ b/deployment/docker/docker-compose.yml @@ -136,7 +136,6 @@ services: - MF_FORMSFLOW_NAV_URL=${MF_FORMSFLOW_NAV_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.1.0-alpha/forms-flow-nav.gz.js} - MF_FORMSFLOW_SERVICE_URL=${MF_FORMSFLOW_SERVICE_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@v6.1.0-alpha/forms-flow-service.gz.js} - MF_FORMSFLOW_ADMIN_URL=${MF_FORMSFLOW_ADMIN_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@v6.1.0-alpha/forms-flow-admin.gz.js} - - MF_FORMSFLOW_THEME_URL=${MF_FORMSFLOW_THEME_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@v6.1.0-alpha/forms-flow-theme.gz.js} - NODE_ENV=${NODE_ENV:-production} entrypoint: /bin/sh -c "/usr/share/nginx/html/config/env.sh && nginx -g 'daemon off;'" environment: diff --git a/deployment/docker/sample.env b/deployment/docker/sample.env index 70805662f8..1c505fe6d8 100644 --- a/deployment/docker/sample.env +++ b/deployment/docker/sample.env @@ -192,7 +192,6 @@ CUSTOM_SUBMISSION_URL=http://{your-ip-address}:{port} #MF_FORMSFLOW_NAV_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.1.0-alpha/forms-flow-nav.gz.js #MF_FORMSFLOW_SERVICE_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@v6.1.0-alpha/forms-flow-service.gz.js #MF_FORMSFLOW_ADMIN_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@v6.1.0-alpha/forms-flow-admin.gz.js -#MF_FORMSFLOW_THEME_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@v6.1.0-alpha/forms-flow-theme.gz.js #++++++++++++++++--- formsflow.ai Web Microfrontend components ENV Variables - STOP ---+++++++++++++++++++++++++# diff --git a/forms-flow-web-root-config/Dockerfile b/forms-flow-web-root-config/Dockerfile index c9f03a0c62..247e90f932 100644 --- a/forms-flow-web-root-config/Dockerfile +++ b/forms-flow-web-root-config/Dockerfile @@ -10,14 +10,13 @@ ARG MF_FORMSFLOW_WEB_URL ARG MF_FORMSFLOW_NAV_URL ARG MF_FORMSFLOW_SERVICE_URL ARG MF_FORMSFLOW_ADMIN_URL -ARG MF_FORMSFLOW_THEME_URL + # Set environment variables ENV MF_FORMSFLOW_WEB_URL ${MF_FORMSFLOW_WEB_URL} ENV MF_FORMSFLOW_NAV_URL ${MF_FORMSFLOW_NAV_URL} ENV MF_FORMSFLOW_SERVICE_URL ${MF_FORMSFLOW_SERVICE_URL} ENV MF_FORMSFLOW_ADMIN_URL ${MF_FORMSFLOW_ADMIN_URL} -ENV MF_FORMSFLOW_THEME_URL ${MF_FORMSFLOW_THEME_URL} ENV NODE_ENV ${NODE_ENV} # Add `/app/node_modules/.bin` to $PATH diff --git a/forms-flow-web-root-config/README.md b/forms-flow-web-root-config/README.md index 052a96238d..89c77594b6 100644 --- a/forms-flow-web-root-config/README.md +++ b/forms-flow-web-root-config/README.md @@ -61,7 +61,6 @@ is mentioned on the [link](../forms-flow-idm/keycloak/README.md#create-forms-flo `MF_FORMSFLOW_NAV_UR`:triangular_flag_on_post:|For custom implementation of Navbar component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-nav)| |`//forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.0.0/forms-flow-nav.gz.js` `MF_FORMSFLOW_SERVICE_URL`:triangular_flag_on_post:|For custom implementation of Service component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-service)| |`//forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.0.0/forms-flow-service.gz.js` `MF_FORMSFLOW_ADMIN_URL`:triangular_flag_on_post:|For custom implementation of Admin component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-admin)| |`//forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.0.0/forms-flow-admin.gz.js` - `MF_FORMSFLOW_THEME_URL`:triangular_flag_on_post:| For custom implementation of Theme component, refer [here](https://github.com/AOT-Technologies/forms-flow-ai-micro-front-ends/tree/main/forms-flow-theme) | | `//forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.0.0/forms-flow-theme.gz.js` `NODE_ENV`| Define project level configuration | `development, test, production` | `production` `FORMIO_DEFAULT_PROJECT_URL`:triangular_flag_on_post:|The URL of the form.io server| |`http://{your-ip-address}:3001` `KEYCLOAK_WEB_CLIENTID`|Your Keycloak Client ID within the realm| eg. forms-flow-web | `forms-flow-web` diff --git a/forms-flow-web-root-config/docker-compose.yml b/forms-flow-web-root-config/docker-compose.yml index f46862fae2..e0612c3931 100644 --- a/forms-flow-web-root-config/docker-compose.yml +++ b/forms-flow-web-root-config/docker-compose.yml @@ -9,7 +9,6 @@ services: - MF_FORMSFLOW_NAV_URL=${MF_FORMSFLOW_NAV_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.1.0-alpha/forms-flow-nav.gz.js} - MF_FORMSFLOW_SERVICE_URL=${MF_FORMSFLOW_SERVICE_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@v6.1.0-alpha/forms-flow-service.gz.js} - MF_FORMSFLOW_ADMIN_URL=${MF_FORMSFLOW_ADMIN_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@v6.1.0-alpha/forms-flow-admin.gz.js} - - MF_FORMSFLOW_THEME_URL=${MF_FORMSFLOW_THEME_URL:-https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@v6.1.0-alpha/forms-flow-theme.gz.js} - NODE_ENV=${NODE_ENV:-production} entrypoint: /bin/sh -c "/usr/share/nginx/html/config/env.sh && nginx -g 'daemon off;'" environment: diff --git a/forms-flow-web-root-config/public/config/config.template.js b/forms-flow-web-root-config/public/config/config.template.js index 4d196de00c..9cea1fdda4 100644 --- a/forms-flow-web-root-config/public/config/config.template.js +++ b/forms-flow-web-root-config/public/config/config.template.js @@ -3,8 +3,7 @@ window["_env_"] = { MF_FORMSFLOW_WEB_URL: "${MF_FORMSFLOW_WEB_URL}", MF_FORMSFLOW_NAV_URL: "${MF_FORMSFLOW_NAV_URL}", MF_FORMSFLOW_SERVICE_URL: "${MF_FORMSFLOW_SERVICE_URL}", - MF_FORMSFLOW_ADMIN_URL: "${MF_FORMSFLOW_ADMIN_URL}", - MF_FORMSFLOW_THEME_URL: "${MF_FORMSFLOW_THEME_URL}",*/ + MF_FORMSFLOW_ADMIN_URL: "${MF_FORMSFLOW_ADMIN_URL}", */ // To define project level configuration possible values development,test, production NODE_ENV: "${NODE_ENV}", //Environment Variables for forms-flow-web diff --git a/forms-flow-web-root-config/sample.env b/forms-flow-web-root-config/sample.env index 59b5e9fcf8..4f58833fc7 100644 --- a/forms-flow-web-root-config/sample.env +++ b/forms-flow-web-root-config/sample.env @@ -24,7 +24,6 @@ #MF_FORMSFLOW_NAV_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-nav@v6.1.0-alpha/forms-flow-nav.gz.js #MF_FORMSFLOW_SERVICE_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-service@v6.1.0-alpha/forms-flow-service.gz.js #MF_FORMSFLOW_ADMIN_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-admin@v6.1.0-alpha/forms-flow-admin.gz.js -#MF_FORMSFLOW_THEME_URL=https://forms-flow-microfrontends.aot-technologies.com/forms-flow-theme@v6.1.0-alpha/forms-flow-theme.gz.js #OR @@ -32,7 +31,6 @@ #MF_FORMSFLOW_NAV_URL=//{your-ip-address}:3005/forms-flow-nav.js #MF_FORMSFLOW_ADMIN_URL=//{your-ip-address}:3006/forms-flow-admin.js #MF_FORMSFLOW_SERVICE_URL=//{your-ip-address}:3007/forms-flow-service.js -#MF_FORMSFLOW_THEME_URL=//{your-ip-address}:3008/forms-flow-theme.js #++++++++++++++--- MF Variables to get MicroFrontend Components Created - STOP ---+++++++++++++++++++++++# diff --git a/forms-flow-web-root-config/src/index.ejs b/forms-flow-web-root-config/src/index.ejs index 0d385a063d..09acfa0b77 100644 --- a/forms-flow-web-root-config/src/index.ejs +++ b/forms-flow-web-root-config/src/index.ejs @@ -16,16 +16,18 @@ + + - +