Skip to content

Commit

Permalink
changed documentation link
Browse files Browse the repository at this point in the history
  • Loading branch information
MiguelPelegrina committed May 14, 2024
1 parent eecc8b7 commit b85ae2a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
2 changes: 1 addition & 1 deletion src/app/components/footer/footer.component.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<mat-toolbar class="d-flex justify-content-end app-toolbar-footer">
<a href="http://localhost:8000" (click)="goToDocumentation(); false">Go to documentation</a>
<a href="javascript:void(0);" (click)="goToDocumentation(); false">Go to documentation</a>
</mat-toolbar>
3 changes: 2 additions & 1 deletion src/app/components/footer/footer.component.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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;
}
}
3 changes: 2 additions & 1 deletion src/app/shared/utils/string-values.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b85ae2a

Please sign in to comment.