Skip to content

Commit 20c23e3

Browse files
committed
chore: migrate plausible events to API calls
1 parent 38b0d47 commit 20c23e3

5 files changed

Lines changed: 4 additions & 3 deletions

File tree

website/src/app/features/platform-integration/platform-integration.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ <h2 class="text-xl font-bold text-slate-900 mb-4 flex items-center gap-2">
7171
<div class="relative w-full overflow-hidden">
7272
<button
7373
(click)="copyTerraform(platform.terraformSnippet!!)"
74-
class="absolute top-3 right-4 btn btn-xs btn-primary z-10 font-bold flex items-center gap-2 plausible-event-name=Copy+Platform+Terraform"
74+
class="absolute top-3 right-4 btn btn-xs btn-primary z-10 font-bold flex items-center gap-2"
7575
[class.btn-success]="copiedTerraform">
7676
<i class="fa-solid" [class.fa-check]="copiedTerraform" [class.fa-copy]="!copiedTerraform"></i>
7777
<span>{{ copiedTerraform ? 'Copied!' : 'Copy' }}</span>

website/src/app/features/platform-integration/platform-integration.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class PlatformIntegrationComponent implements OnInit {
7474
navigator.clipboard.writeText(content).then(() => {
7575
this.copiedTerraform = true;
7676
setTimeout(() => this.copiedTerraform = false, 2000);
77+
(window as any).plausible('Copy Platform Terraform');
7778
});
7879
}
7980
}

website/src/app/features/template-details/template-details.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ <h2 class="text-xl font-bold text-slate-900 mb-4 flex items-center gap-2">
126126
<div class="relative w-full overflow-hidden">
127127
<button
128128
(click)="copyTerraform(template.terraformSnippet)"
129-
class="absolute top-3 right-4 btn btn-xs btn-primary z-10 font-bold flex items-center gap-2 plausible-event-name=Copy+BBD+Terraform"
129+
class="absolute top-3 right-4 btn btn-xs btn-primary z-10 font-bold flex items-center gap-2"
130130
[class.btn-success]="copiedTerraform">
131131
<i class="fa-solid" [class.fa-check]="copiedTerraform" [class.fa-copy]="!copiedTerraform"></i>
132132
<span>{{ copiedTerraform ? 'Copied!' : 'Copy' }}</span>

website/src/app/features/template-details/template-details.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ export class TemplateDetailsComponent implements OnInit, OnDestroy {
9393
setTimeout(() => {
9494
this.copiedTerraform = false;
9595
}, 2000);
96+
(window as any).plausible('Copy BBD Terraform');
9697
});
9798
}
9899

website/src/app/features/template-gallery/platform-cards/platform-cards.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export class PlatformCardsComponent {
2525
* Returns the cards sorted by customOrder, with others following in original order.
2626
*/
2727
public get sortedCards(): PlatformCard[] {
28-
console.log(this.cards);
2928
if (!this.cards) return [];
3029
const order = this.customOrder;
3130
return [

0 commit comments

Comments
 (0)