Skip to content
Open
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
1 change: 1 addition & 0 deletions src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
{{ subtitle }}
</div>
</div>
<div class="dummy"></div>
</div>
<span class="spacer"></span>
<a
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
<mat-icon mat-list-icon color="primary">{{ Icons[i] }}</mat-icon>
<h3 mat-line>{{ Options[i] }}</h3>
</a>
<a mat-list-item href="https://github.com/wurstbrot/DevSecOps-MaturityModel/" target="_blank">
<mat-icon mat-list-icon color="primary" svgIcon="github"></mat-icon>
<h3 mat-line>GitHub</h3>
</a>
</mat-nav-list>

<!-- Separate theme toggle outside nav-list -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,7 @@ describe('SidenavButtonsComponent', () => {
for (var x = 0; x < NavigationList.length; x += 1) {
NavigationNamesBeingShown.push(NavigationList[x].textContent);
}
//console.log({ ...NavigationNamesBeingShown });
//console.log(component.Options);
NavigationNamesBeingShown.pop(); // Remove GitHub link
expect(NavigationNamesBeingShown).toEqual(component.Options);
});

Expand Down
14 changes: 13 additions & 1 deletion src/app/component/sidenav-buttons/sidenav-buttons.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { Component, OnInit } from '@angular/core';
import { MatIconRegistry } from '@angular/material/icon';
import { DomSanitizer } from '@angular/platform-browser';
import { GITHUB_SVG } from '../../../assets/svg_icons';
import { ThemeService } from '../../service/theme.service';

@Component({
Expand Down Expand Up @@ -43,7 +46,16 @@ export class SidenavButtonsComponent implements OnInit {

isNightMode = false;

constructor(private themeService: ThemeService) {}
constructor(
private themeService: ThemeService,
private iconRegistry: MatIconRegistry,
private sanitizer: DomSanitizer
) {
this.iconRegistry.addSvgIconLiteral(
'github',
this.sanitizer.bypassSecurityTrustHtml(GITHUB_SVG)
);
}

ngOnInit(): void {
const currentTheme = this.themeService.getTheme();
Expand Down
1 change: 1 addition & 0 deletions src/assets/svg_icons.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export const GITHUB_SVG = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 0C5.37 0 0 5.37 0 12c0 5.31 3.435 9.795 8.205 11.385.6.105.825-.255.825-.57 0-.285-.015-1.23-.015-2.235-3.015.555-3.795-.735-4.035-1.41-.135-.345-.72-1.41-1.23-1.695-.42-.225-1.02-.78-.015-.795.945-.015 1.62.87 1.845 1.23 1.08 1.815 2.805 1.305 3.495.99.105-.78.42-1.305.765-1.605-2.67-.3-5.46-1.335-5.46-5.925 0-1.305.465-2.385 1.23-3.225-.12-.3-.54-1.53.12-3.18 0 0 1.005-.315 3.3 1.23.96-.27 1.98-.405 3-.405s2.04.135 3 .405c2.295-1.56 3.3-1.23 3.3-1.23.66 1.65.24 2.88.12 3.18.765.84 1.23 1.905 1.23 3.225 0 4.605-2.805 5.625-5.475 5.925.435.375.81 1.095.81 2.22 0 1.605-.015 2.895-.015 3.3 0 .315.225.69.825.57A12.02 12.02 0 0 0 24 12c0-6.63-5.37-12-12-12z"/></svg>`;
49 changes: 26 additions & 23 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1,32 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="utf-8" />
<title>DSOMM</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <link rel="icon" type="image/png" href="assets/images/logo-image.png" />
<head>
<meta charset="utf-8" />
<title>DSOMM</title>
<base href="/" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!-- <link rel="icon" type="image/png" href="assets/images/logo-image.png" />
<link rel="icon" type="image/x-icon" href="favicon.ico" /> -->

<link rel="icon" type="image/png" href="assets/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="assets/favicon/favicon.svg" />
<link rel="shortcut icon" href="assets/favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png" />
<link rel="manifest" href="assets/favicon/site.webmanifest" />

<link rel="preconnect" href="https://fonts.gstatic.com" />
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined" rel="stylesheet" />
<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
</head>
<link rel="icon" type="image/png" href="assets/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href="assets/favicon/favicon.svg" />
<link rel="shortcut icon" href="assets/favicon/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="assets/favicon/apple-touch-icon.png" />
<link rel="manifest" href="assets/favicon/site.webmanifest" />

<body>
<app-root></app-root>
</body>
<link rel="preconnect" href="https://fonts.gstatic.com" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap"
rel="stylesheet" />
<link
href="https://fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined"
rel="stylesheet" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.3/gh-fork-ribbon.min.css" />
</head>

</html>
<body>
<app-root></app-root>
</body>
</html>