From a4c290c2dd7cfe35b41e57d2e1eb442b47d4acc7 Mon Sep 17 00:00:00 2001 From: KirillDogadin-std <59374892+KirillDogadin-std@users.noreply.github.com> Date: Tue, 7 Feb 2023 09:46:21 +0100 Subject: [PATCH 01/11] feat: Banner for production --- frontend/README.md | 1 + .../collateral/CollateralAuctionFlow.vue | 8 +++---- frontend/components/auction/debt/DebtFlow.vue | 8 +++---- .../auction/surplus/SurplusFlow.vue | 8 +++---- frontend/components/layout/Header.stories.js | 15 ++++++++++--- frontend/components/layout/Header.vue | 7 ++++++ .../layout/ProductionBannerElectron.vue | 22 +++++++++++++++++++ frontend/components/vault/VaultFlow.vue | 8 +++---- frontend/containers/UnifiedContainer.vue | 8 +++---- frontend/layouts/default.vue | 4 ++++ frontend/nuxt.config.js | 1 + 11 files changed, 67 insertions(+), 23 deletions(-) create mode 100644 frontend/components/layout/ProductionBannerElectron.vue diff --git a/frontend/README.md b/frontend/README.md index a9eea1764..865ce5269 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -40,6 +40,7 @@ Help on both things is given in the linked resources above. - `PRODUCTION_DOMAIN`: (optional) Required in order to enable [plausible.io statistics](https://github.com/moritzsternemann/vue-plausible#configuration). In addition to adding it here, the domain (e.g. `auctions.makerdao.network`) should also be registered within [plausible dashboard](https://plausible.io/). - `CONTACT_EMAIL`: (optional) Required in order to display contact link in the footer. This email should be able to accept and manage bug reports and other contact requests. - `STAGING_BANNER_URL`: (optional) When set a banner will be displayed, warning the user that they are using a staging version. The text will use `STAGING_BANNER_URL` as a link to production UI. +- `PRODUCTION_BANNER_URL`: (optional) When set a banner will be displayed, notifying the user that they can also use an electron app. The text will use `STAGING_BANNER_URL` as a link the electron app. - `MAX_PRIORITY_FEE_PER_GAS_WEI`: (optional, default can be found in core/src/gas.ts) – [EIP-1559](https://eips.ethereum.org/EIPS/eip-1559) `max_priority_fee_per_gas` value - `HEAPIO_ID`: (optional) [HeapIO analytics](https://heapanalytics.com/) Project's Environment ID. Required for tracking analytics. - `FRONTEND_ORIGIN`: (optional, default empty) – public url of the frontend, eg `https://unified-auctions.makerdao.com`. Used to correctly specify open graph meta tags diff --git a/frontend/components/auction/collateral/CollateralAuctionFlow.vue b/frontend/components/auction/collateral/CollateralAuctionFlow.vue index 34181bcfd..ce89007fc 100644 --- a/frontend/components/auction/collateral/CollateralAuctionFlow.vue +++ b/frontend/components/auction/collateral/CollateralAuctionFlow.vue @@ -1,5 +1,5 @@