Add repobeats

This commit is contained in:
aditya.chandel
2025-10-26 17:27:57 -06:00
parent 3da214c4bb
commit ed2e4c4719
3 changed files with 18 additions and 7 deletions
@@ -41,9 +41,11 @@
<div class="dashboard-settings-button">
<p-button
icon="pi pi-cog"
severity="info"
rounded
text
[pTooltip]="'Customize Dashboard'"
tooltipPosition="left"
styleClass="p-button-rounded p-button-text"
(click)="openDashboardSettings()">
</p-button>
</div>
@@ -1,4 +1,4 @@
import { Component, Input } from '@angular/core';
import {Component, Input} from '@angular/core';
@Component({
standalone: true,
@@ -115,6 +115,11 @@ export class CoverGeneratorComponent {
${authorElements}
</svg>
`;
return `data:image/svg+xml;base64,${btoa(svg)}`;
const base64 = btoa(encodeURIComponent(svg).replace(/%([0-9A-F]{2})/g, (match, p1) => {
return String.fromCharCode(parseInt(p1, 16));
}));
return `data:image/svg+xml;base64,${base64}`;
}
}