-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
**Acceptance Criteria:** - [x] Add permanent banner at top of page for DEV, TEST and STG environments - [x] Copy: "Non-Production [environment] Environment"; bold and centred - [x] Banner Color: #e3a82b (BC Gold) **Technical** - [x] Create a different banner/ribbon to be displayed above the top navigation menu similar to the screenshot in the ACs. - [x] Should be created on the main pages of the apps. If needed, create a component to share it. - [x] Create a new env variable to be added to GitHub `APP_ENV` or similar to be used as a condition to display the banner. Sample URL of height 18px top https://logontest7.gov.bc.ca/clp-cgi/error.cgi **DEMO** 1. APP_ENV=production  2. APP_ENV=dev/test/staging 
- v2.5.0-5533
- v2.4.0-5303
- v2.4.0-5294
- main-5645
- main-5638
- main-5630
- main-5621
- main-5609
- main-5606
- main-5602
- main-5599
- main-5596
- main-5594
- main-5591
- main-5576
- main-5549
- main-5538
- main-5525
- main-5520
- main-5510
- main-5503
- main-5502
- main-5493
- main-5491
- main-5488
- main-5478
- main-5462
- main-5457
- main-5455
- main-5452
- main-5451
- main-5431
- main-5428
- main-5426
- main-5410
- main-5399
- main-5397
- main-5393
- main-5378
- main-5373
- main-5367
- main-5354
- main-5350
- main-5348
- main-5322
- main-5313
- main-5301
- main-5298
- main-5289
- main-5283
- main-5282
- main-5277
- main-5271
- main-5269
- feature/#3719-nodejs-upgrade-5337
- feature/#3719-nodejs-upgrade-5332
- 3719-nodejs-upgrade-5364
- 3719-nodejs-upgrade-5346
- 3719-nodejs-upgrade-5339
1 parent
cdf5913
commit 7e018ba
Showing
18 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
sources/packages/web/src/components/common/EnvironmentBanner.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
<template> | ||
<v-app-bar | ||
v-if="environment !== 'production'" | ||
height="20" | ||
color="#e3a82b" | ||
class="environment-banner" | ||
> | ||
<v-app-bar-title>{{ bannerText }}</v-app-bar-title> | ||
</v-app-bar> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { AppConfigService } from "@/services/AppConfigService"; | ||
import { defineComponent, computed, ref, onMounted } from "vue"; | ||
export default defineComponent({ | ||
setup() { | ||
const environment = ref(""); | ||
onMounted(async () => { | ||
// Get environment from env variable APP_ENV | dev, test, staging, production | ||
const { appEnv } = await AppConfigService.shared.config(); | ||
environment.value = appEnv; | ||
}); | ||
const bannerText = computed(() => { | ||
return `Non-Production ${environment.value} Environment`; | ||
}); | ||
return { | ||
bannerText, | ||
environment, | ||
}; | ||
}, | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters