Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/core/components/header/header.component.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="d-md-flex justify-content-between align-items-center">
<h1 class="h3"><img src="assets/redis-white.png" />{{title}}</h1>
<h1 class="h3"><img src="assets/redis-white.png" />{{title}} <span class="h6">{{version}}</span></h1>
<nav>
<ul class="nav">
<li class="nav-item">
Expand Down
2 changes: 2 additions & 0 deletions src/app/core/components/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component, ChangeDetectorRef, AfterViewInit } from '@angular/core';
import { environment } from '@app/../environments/environment';

@Component({
selector: 'tr-header',
Expand All @@ -19,6 +20,7 @@ import { Component, ChangeDetectorRef, AfterViewInit } from '@angular/core';
})
export class HeaderComponent implements AfterViewInit {
title = 'Redis Patterns Console';
version = environment.version;

constructor(private changeDetectorRef: ChangeDetectorRef) {}

Expand Down
5 changes: 4 additions & 1 deletion src/environments/environment.prod.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { version } from 'package.json';

export const environment = {
production: true,
redisServer: '', // ADD HERE YOUR WS SERVER URL
Expand All @@ -12,5 +14,6 @@ export const environment = {
path: 'acadevmy/redis-patterns-cookbook',
json: 'patterns.json'
},
cacheableHeaderKey: 'cacheable-request'
cacheableHeaderKey: 'cacheable-request',
version
};
5 changes: 4 additions & 1 deletion src/environments/environment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// This file can be replaced during build by using the `fileReplacements` array.
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
// The list of file replacements can be found in `angular.json`.

import { version } from 'package.json';
export const environment = {
production: false,
Expand All @@ -16,7 +18,8 @@ export const environment = {
path: 'acadevmy/redis-patterns-cookbook',
json: 'patterns.json'
},
cacheableHeaderKey: 'cacheable-request'
cacheableHeaderKey: 'cacheable-request',
version
};
/*
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"importHelpers": true,
"resolveJsonModule": true,
"target": "es2015",
"typeRoots": [
"node_modules/@types"
Expand Down