removed old unused components
LocationBasedServices/smartguide/pipeline/head This commit looks good
LocationBasedServices/smartguide/pipeline/pr-dev This commit looks good

This commit is contained in:
Kazgatari
2026-08-23 17:15:56 +02:00
parent a21d5eaea4
commit 767f532e6f
6 changed files with 0 additions and 141 deletions
@@ -1,5 +0,0 @@
<div
echarts
[options]="chartOption()"
[autoResize]="true"
class="chart-container"></div>
@@ -1,4 +0,0 @@
.chart-container {
height: 500px;
width: 100%;
}
@@ -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<UniversityTopicData[] | null>(null);
readonly metric = input<DashboardMetric>('publications');
readonly chartOption = computed<EChartsOption>(() => {
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,
};
});
}
@@ -1,42 +0,0 @@
<div class="ranking-card">
<h4>Topic Rankings</h4>
@if (loading) {
<div class="skeleton-loader">Loading rankings...</div>
} @else {
<table class="ranking-table">
<thead>
<tr>
<th>Rank</th>
<th>University</th>
<th>Latest</th>
<th>5Y Growth</th>
<th>Trend</th>
</tr>
</thead>
<tbody>
@for (row of rankings; track $index) {
<tr [class.top-tier]="row.rank <= 3">
<td>#{{ row.rank }}</td>
<td>
{{ row.university }}
@if (row.is_top_mover) {
<span class="mover-badge" title="Top mover last 3 years"
>🔥</span
>
}
</td>
<td>{{ row.publications | number }}</td>
<td
[class.positive]="row.growth_rate > 0"
[class.negative]="row.growth_rate < 0">
{{ row.growth_rate | number: '1.0-1' }}%
</td>
<td class="trend-col" [attr.data-trend]="row.trend">
{{ getTrendIcon(row.trend) }}
</td>
</tr>
}
</tbody>
</table>
}
</div>
@@ -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 '→';
}
}