Skip to content

Commit

Permalink
test(background): Add DEV tile background for DEV environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronmussig committed Jul 2, 2022
1 parent 0bdbeff commit e33dae5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Binary file added assets/images/dev-bg-tile.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@
<v-app-bar
app
class="fix-navbar-width"
:class="{'fix-navbar-width': true, 'dev-bg': !isProd}"
clipped-left
color="black"
dark
Expand Down Expand Up @@ -169,6 +170,7 @@ export default {
},
data() {
return {
isProd: process.env.envName === 'prod',
mdiOpenInNewSvg: mdiOpenInNew,
drawer: false,
browsersItems: [
Expand Down Expand Up @@ -312,4 +314,9 @@ export default {
.fix-navbar-width >>> .v-toolbar__content {
width: 100vw;
}
.dev-bg {
background-image: url('~/assets/images/dev-bg-tile.png') !important;
background-repeat: repeat !important;
}
</style>
1 change: 1 addition & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export default {
apiMessageTimeout: 10000,
apiTimeout: 30000, // number of ms to wait until api call fails
apiBase: process.env.API_BASE,
envName: process.env.ENV_NAME,
advancedMaxHistory: 50, // Maximum number of history states to retain in advanced search
captchaSiteKey: process.env.CAPTCHA_KEY,
googleAnalyticsId: process.env.GA_TRACKING_ID,
Expand Down

0 comments on commit e33dae5

Please sign in to comment.