}
@if (entry.comments && entry.comments > 0) {
-
-
+
+
{{ entry.comments }}
}
diff --git a/webapp/src/app/components/leaderboard/leaderboard.component.ts b/webapp/src/app/components/leaderboard/leaderboard.component.ts
index 08ddbe8a..24757f6f 100644
--- a/webapp/src/app/components/leaderboard/leaderboard.component.ts
+++ b/webapp/src/app/components/leaderboard/leaderboard.component.ts
@@ -1,9 +1,8 @@
import { ChangeDetectionStrategy, Component, computed, inject } from '@angular/core';
import { injectQuery } from '@tanstack/angular-query-experimental';
+import { NgIconComponent } from '@ng-icons/core';
+import { octFileDiff, octCheck, octComment } from '@ng-icons/octicons';
import { LeaderboardEntry, LeaderboardService } from 'app/core/modules/openapi';
-import { PullRequestApprovedIconComponent } from 'app/ui/icons/PullRequestApprovedIcon.component';
-import { PullRequestChangesRequestedIconComponent } from 'app/ui/icons/PullRequestChangesRequestedIcon.component';
-import { PullRequestCommentIconComponent } from 'app/ui/icons/PullRequestCommentIcon.component';
import { TableBodyDirective } from 'app/ui/table/table-body.directive';
import { TableCaptionDirective } from 'app/ui/table/table-caption.directive';
import { TableCellDirective } from 'app/ui/table/table-cell.directive';
@@ -119,14 +118,16 @@ const defaultData: LeaderboardEntry[] = [
TableHeaderDirective,
TableHeadDirective,
TableRowDirective,
- PullRequestChangesRequestedIconComponent,
- PullRequestApprovedIconComponent,
- PullRequestCommentIconComponent
+ NgIconComponent
],
templateUrl: './leaderboard.component.html',
changeDetection: ChangeDetectionStrategy.OnPush
})
export class LeaderboardComponent {
+ protected octFileDiff = octFileDiff;
+ protected octCheck = octCheck;
+ protected octComment = octComment;
+
leaderboardService = inject(LeaderboardService);
query = injectQuery(() => ({
diff --git a/webapp/src/app/components/theme-switcher/theme-switcher.component.html b/webapp/src/app/components/theme-switcher/theme-switcher.component.html
index f2ca7226..95c8ccb0 100644
--- a/webapp/src/app/components/theme-switcher/theme-switcher.component.html
+++ b/webapp/src/app/components/theme-switcher/theme-switcher.component.html
@@ -1,5 +1,5 @@
-
+
diff --git a/webapp/src/app/components/theme-switcher/theme-switcher.component.ts b/webapp/src/app/components/theme-switcher/theme-switcher.component.ts
index 86e285b3..fc7722fc 100644
--- a/webapp/src/app/components/theme-switcher/theme-switcher.component.ts
+++ b/webapp/src/app/components/theme-switcher/theme-switcher.component.ts
@@ -1,5 +1,5 @@
import { Component, inject } from '@angular/core';
-import { LucideAngularModule } from 'lucide-angular';
+import { LucideAngularModule, Sun, Moon } from 'lucide-angular';
import { ButtonComponent } from 'app/ui/button/button.component';
import { AppTheme, ThemeSwitcherService } from './theme-switcher.service';
import { animate, state, style, transition, trigger } from '@angular/animations';
@@ -20,6 +20,9 @@ import { animate, state, style, transition, trigger } from '@angular/animations'
export class ThemeSwitcherComponent {
themeSwitcherService = inject(ThemeSwitcherService);
+ protected Sun = Sun;
+ protected Moon = Moon;
+
toggleTheme() {
if (this.themeSwitcherService.currentTheme() === AppTheme.DARK) {
this.themeSwitcherService.setLightTheme();
diff --git a/webapp/src/app/components/theme-switcher/theme-switcher.stories.ts b/webapp/src/app/components/theme-switcher/theme-switcher.stories.ts
index 527dde1c..3f00cdb2 100644
--- a/webapp/src/app/components/theme-switcher/theme-switcher.stories.ts
+++ b/webapp/src/app/components/theme-switcher/theme-switcher.stories.ts
@@ -1,5 +1,4 @@
import { moduleMetadata, type Meta, type StoryObj } from '@storybook/angular';
-import { LucideAngularModule, Sun, Moon } from 'lucide-angular';
import { ThemeSwitcherComponent } from './theme-switcher.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
@@ -10,7 +9,7 @@ const meta: Meta
= {
tags: ['autodocs'],
decorators: [
moduleMetadata({
- imports: [LucideAngularModule.pick({ Sun, Moon }), BrowserAnimationsModule]
+ imports: [BrowserAnimationsModule]
})
]
};
diff --git a/webapp/src/app/ui/icons/PullRequestApprovedIcon.component.ts b/webapp/src/app/ui/icons/PullRequestApprovedIcon.component.ts
deleted file mode 100644
index 42fd5286..00000000
--- a/webapp/src/app/ui/icons/PullRequestApprovedIcon.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-icon-pull-request-approved',
- template: `
-
- `,
- standalone: true
-})
-export class PullRequestApprovedIconComponent {}
diff --git a/webapp/src/app/ui/icons/PullRequestChangesRequestedIcon.component.ts b/webapp/src/app/ui/icons/PullRequestChangesRequestedIcon.component.ts
deleted file mode 100644
index 5e729e2f..00000000
--- a/webapp/src/app/ui/icons/PullRequestChangesRequestedIcon.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-icon-pull-request-changes-requested',
- template: `
-
- `,
- standalone: true
-})
-export class PullRequestChangesRequestedIconComponent {}
diff --git a/webapp/src/app/ui/icons/PullRequestCommentIcon.component.ts b/webapp/src/app/ui/icons/PullRequestCommentIcon.component.ts
deleted file mode 100644
index 919cedcb..00000000
--- a/webapp/src/app/ui/icons/PullRequestCommentIcon.component.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-import { Component } from '@angular/core';
-
-@Component({
- selector: 'app-icon-pull-request-comment',
- template: `
-
- `,
- standalone: true
-})
-export class PullRequestCommentIconComponent {}