From 767f532e6f09a68dcde5f1b614e2efb884fbc4e7 Mon Sep 17 00:00:00 2001 From: Kazgatari <56477241+Kazgatari@users.noreply.github.com> Date: Sun, 23 Aug 2026 17:15:56 +0200 Subject: [PATCH] removed old unused components --- .../uni-line-chart.component.html | 5 -- .../uni-line-chart.component.scss | 4 -- .../uni-line-chart.component.ts | 69 ------------------- .../uni-ranking-table.component.html | 42 ----------- .../uni-ranking-table.component.scss | 0 .../uni-ranking-table.component.ts | 21 ------ 6 files changed, 141 deletions(-) delete mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html delete mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss delete mode 100644 webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts delete mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html delete mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss delete mode 100644 webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html deleted file mode 100644 index 059525c8..00000000 --- a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.html +++ /dev/null @@ -1,5 +0,0 @@ -
diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss deleted file mode 100644 index f51d8c68..00000000 --- a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.scss +++ /dev/null @@ -1,4 +0,0 @@ -.chart-container { - height: 500px; - width: 100%; -} diff --git a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts b/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts deleted file mode 100644 index cb123796..00000000 --- a/webapp/src/app/modules/university-ranking/uni-line-chart/uni-line-chart.component.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { - Component, - ChangeDetectionStrategy, - input, - computed, -} from '@angular/core'; -import { EChartsOption } from 'echarts'; -import { NgxEchartsDirective } from 'ngx-echarts'; -import { UniversityTopicData } from '../../../api'; - -export type DashboardMetric = 'publications' | 'citations'; - -@Component({ - selector: 'app-university-line-chart', - templateUrl: './uni-line-chart.component.html', - styleUrl: './uni-line-chart.component.scss', - imports: [NgxEchartsDirective], - changeDetection: ChangeDetectionStrategy.OnPush, -}) -export class UniversityLineChartComponent { - readonly data = input(null); - readonly metric = input('publications'); - - readonly chartOption = computed(() => { - const rawData = this.data(); - if (!rawData || rawData.length === 0) { - return {}; - } - - const years = rawData[0].yearly_data.map((d) => d.year); - const chosenMetric = this.metric(); - - const series = rawData.map((uni) => ({ - name: uni.university, - type: 'line', - smooth: true, - emphasis: { focus: 'series' }, - animationDuration: 2000, - data: uni.yearly_data.map((d) => { - if (chosenMetric === 'citations') { - return d.citations || 0; - } - return d.publications || 0; - }), - })); - - return { - title: { - text: 'Research Output Over Time', - left: 'center', - textStyle: { fontWeight: 'lighter' }, - }, - tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } }, - legend: { bottom: 0 }, - grid: { left: '3%', right: '4%', bottom: '15%', containLabel: true }, - xAxis: { - type: 'category', - boundaryGap: false, - data: years.map(String), - }, - yAxis: { - type: 'value', - name: chosenMetric === 'citations' ? 'Citations' : 'Publications', - }, - dataZoom: [{ type: 'slider', show: true, bottom: 40 }], - series: series as any, - }; - }); -} diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html deleted file mode 100644 index 99da5bcb..00000000 --- a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.html +++ /dev/null @@ -1,42 +0,0 @@ -
-

Topic Rankings

- @if (loading) { -
Loading rankings...
- } @else { - - - - - - - - - - - - @for (row of rankings; track $index) { - - - - - - - - } - -
RankUniversityLatest5Y GrowthTrend
#{{ row.rank }} - {{ row.university }} - @if (row.is_top_mover) { - 🔥 - } - {{ row.publications | number }} - {{ row.growth_rate | number: '1.0-1' }}% - - {{ getTrendIcon(row.trend) }} -
- } -
diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.scss deleted file mode 100644 index e69de29b..00000000 diff --git a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts b/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts deleted file mode 100644 index 05db1334..00000000 --- a/webapp/src/app/modules/university-ranking/uni-ranking-table/uni-ranking-table.component.ts +++ /dev/null @@ -1,21 +0,0 @@ -// src/app/modules/university-ranking/components/ranking-table/university-ranking-table.component.ts -import { Component, Input } from '@angular/core'; -import { UniversityRanking } from '../../../api'; -import { DecimalPipe } from '@angular/common'; - -@Component({ - selector: 'app-university-ranking-table', - templateUrl: './uni-ranking-table.component.html', - styleUrls: ['./uni-ranking-table.component.scss'], - imports: [DecimalPipe], -}) -export class UniversityRankingTableComponent { - @Input() rankings: UniversityRanking[] = []; - @Input() loading: boolean = false; - - getTrendIcon(trend: string): string { - if (trend === 'up') return '↑'; - if (trend === 'down') return '↓'; - return '→'; - } -}