Skip to content

Commit fc227be

Browse files
committed
ADD analytics endpoint as a section on users menu
1 parent 5393693 commit fc227be

6 files changed

Lines changed: 25 additions & 5 deletions

File tree

src/app/services/app-init.service.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export class AppInitService {
3131
environment.REGISTRATION_FORM_URL = config.domeRegistrationForm;
3232
environment.DFT_CATALOG_ID = config.defaultId;
3333
environment.quoteApi = config.quoteApi ?? 'http://localhost:8080/quoteManagement';
34-
environment.PAYMENT_URL = config.paymentUrl
34+
environment.PAYMENT_URL = config.paymentUrl;
35+
environment.analytics = config.analytics ?? 'https://analytics.dome-marketplace-sbx.org/'
3536
resolve(config);
3637
}),
3738
error: (error) => {

src/app/shared/header/header.component.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,19 @@
173173
<button id="quotelist" (click)="goTo('/quote-list')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faReceipt" class="mr-2"></fa-icon>Quotes</button>
174174
</li>
175175
}
176+
<li>
177+
<a
178+
id="analytics"
179+
[href]="analytics"
180+
target="_blank"
181+
class="flex w-full justify-left px-4 py-2 hover:bg-gray-100
182+
dark:hover:bg-gray-600 dark:hover:text-white rounded text-left"
183+
role="button"
184+
>
185+
<fa-icon [icon]="faPieChart" class="mr-2"></fa-icon>
186+
Analytics
187+
</a>
188+
</li>
176189
<li>
177190
<button id="usageSpecs" (click)="goTo('/usage-spec')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faRuler" class="mr-2"></fa-icon>Usage Spec</button>
178191
</li>

src/app/shared/header/header.component.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import {
1212
faUsers,
1313
faCogs,
1414
faReceipt,
15-
faRuler
15+
faRuler,
16+
faPieChart
1617
} from "@fortawesome/sharp-solid-svg-icons";
1718
import {LocalStorageService} from "../../services/local-storage.service";
1819
import { ApiServiceService } from 'src/app/services/product-service.service';
@@ -83,6 +84,7 @@ export class HeaderComponent implements OnInit, AfterViewInit, DoCheck, OnDestro
8384
knowledge_guidelines: string = environment.KB_GUIDELNES_URL
8485
registration: string = environment.REGISTRATION_FORM_URL
8586
ticketing: string = environment.TICKETING_SYSTEM_URL
87+
analytics: string = environment.analytics
8688
domeAbout: string = environment.DOME_ABOUT_LINK
8789
domeRegister: string = environment.DOME_REGISTER_LINK
8890
domePublish: string = environment.DOME_PUBLISH_LINK
@@ -466,4 +468,5 @@ export class HeaderComponent implements OnInit, AfterViewInit, DoCheck, OnDestro
466468
protected readonly faCogs = faCogs;
467469
protected readonly faReceipt = faReceipt;
468470
protected readonly faRuler = faRuler;
471+
protected readonly faPieChart = faPieChart;
469472
}

src/environments/environment.development.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ export const environment = {
7878
addNoteToQuote: '/addNoteToQuote',
7979
addAttachmentToQuote: '/addAttachmentToQuote',
8080
deleteQuote: '/quote'
81-
}
81+
},
82+
analytics: ''
8283
};

src/environments/environment.production.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ export const environment = {
7878
addNoteToQuote: '/addNoteToQuote',
7979
addAttachmentToQuote: '/addAttachmentToQuote',
8080
deleteQuote: '/quote'
81-
}
81+
},
82+
analytics: ''
8283
};

src/environments/environment.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,6 @@ export const environment = {
7878
addNoteToQuote: '/addNoteToQuote',
7979
addAttachmentToQuote: '/addAttachmentToQuote',
8080
deleteQuote: '/quote'
81-
}
81+
},
82+
analytics: ''
8283
};

0 commit comments

Comments
 (0)