diff --git a/karma.conf.js b/karma.conf.js index e71b310..28d3999 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -10,7 +10,7 @@ module.exports = function (config) { require("@angular/cli/plugins/karma"), ], client: { - clearContext: false, // leave Jasmine Spec Runner output visible in browser + clearContext: false, }, coverageIstanbulReporter: { reports: ["html", "lcovonly"], diff --git a/src/app/components/footer/footer.component.html b/src/app/components/footer/footer.component.html index 3a495a3..9c0fccb 100644 --- a/src/app/components/footer/footer.component.html +++ b/src/app/components/footer/footer.component.html @@ -1,3 +1,3 @@ - Go to documentation + Go to documentation diff --git a/src/app/components/footer/footer.component.ts b/src/app/components/footer/footer.component.ts index df687f5..953d821 100644 --- a/src/app/components/footer/footer.component.ts +++ b/src/app/components/footer/footer.component.ts @@ -1,5 +1,6 @@ import { Component, Inject } from '@angular/core'; import { DOCUMENT } from '@angular/common'; +import { StringValues } from 'src/app/shared/utils/string-values'; @Component({ selector: 'app-footer', @@ -10,6 +11,6 @@ export class FooterComponent { constructor(@Inject(DOCUMENT) private document: Document) { } protected goToDocumentation(): void { - this.document.location.href = 'http://localhost:8000' + this.document.location.href = StringValues.API_SPECIFICATION; } } diff --git a/src/app/shared/utils/string-values.ts b/src/app/shared/utils/string-values.ts index 7eebe80..6b9689d 100644 --- a/src/app/shared/utils/string-values.ts +++ b/src/app/shared/utils/string-values.ts @@ -6,7 +6,8 @@ export const ANIMATION_DURATION = '225ms cubic-bezier(0.4, 0.0, 0.2, 1)'; * Class containing all default values and shared URLs. */ export class StringValues{ - public static BASE_URL: string = 'http://localhost:8081' + public static BASE_URL: string = 'http://localhost:8081'; + public static API_SPECIFICATION: string = 'https://miguelpelegrina.github.io/java_school_online_store_documentation/'; ///////////////////////////////////////////////////// // Authentication