Skip to content

Commit 78a2efb

Browse files
committed
Experimental: Fix version import
1 parent fbcdda8 commit 78a2efb

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

src/app/app.component.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
import { Component, OnInit } from '@angular/core';
22
import { environment } from 'src/environments/environment';
3-
import { version } from 'src/main';
4-
53
@Component({
64
selector: 'app-root',
75
templateUrl: './app.component.html',
86
styleUrls: ['./app.component.css'],
97
})
108
export class AppComponent implements OnInit {
119
title = 'DSOMM';
12-
version: string = version || '';
10+
version: string = environment.version || 'unknown';
1311
menuIsOpen: boolean = true;
1412

1513
__experimental__updated: Date = new Date();

src/assets/Markdown Files/ABOUT-FORK.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,3 @@
22
This fork [vbakke/DevSecOps-MaturityModel](https://github.com/vbakke/DevSecOps-MaturityModel), is a development branch for the official [devsecopsmaturitymodel/DevSecOps-MaturityModel](https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel).
33

44
It's purpose is to be a test bed for features not yet included in the official branch.
5-
6-
## Scalable circular map
7-
- Responsive UI *[2024-10-20]*
8-
- Responsive UI *[2024-10-20]*
9-
- Circle is no longer fixed size *[2024-10-20]*

src/main.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import { enableProdMode } from '@angular/core';
22
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
33

4-
import { AppModule } from './app/app.module';
5-
import { environment } from './environments/environment';
6-
import { faro, getWebInstrumentations, initializeFaro, LogLevel } from '@grafana/faro-web-sdk';
74
import { TracingInstrumentation } from '@grafana/faro-web-tracing';
5+
import { faro, getWebInstrumentations, initializeFaro, LogLevel } from '@grafana/faro-web-sdk';
86

9-
export const version: string = '1.4.0';
7+
import { AppModule } from './app/app.module';
8+
import { environment } from './environments/environment';
109

1110
const localDevelopment: boolean = window.location.hostname == 'localhost';
1211
if (environment.production) {
@@ -18,7 +17,7 @@ if (environment?.experimental && !localDevelopment) {
1817
url: '/faro-logs', // Use the Cloudflare proxy endpoint
1918
app: {
2019
name: 'dsomm',
21-
version: version || 'unknown',
20+
version: environment.version || 'unknown',
2221
environment: localDevelopment ? 'development' : 'experimental',
2322
},
2423
sessionTracking: {

0 commit comments

Comments
 (0)