37 lines
1.2 KiB
TypeScript
37 lines
1.2 KiB
TypeScript
import { Component } from '@angular/core';
|
|
import { CommonModule } from '@angular/common';
|
|
|
|
@Component({
|
|
selector: 'app-profile',
|
|
standalone: true,
|
|
imports: [CommonModule],
|
|
templateUrl: './profile.html',
|
|
styleUrls: ['./profile.css']
|
|
})
|
|
export class ProfileComponent {
|
|
// Hardcoded user data (will be replaced with OAuth integration)
|
|
user = {
|
|
name: 'John Doe',
|
|
email: 'john.doe@warehouse13.com',
|
|
avatar: 'JD',
|
|
role: 'Administrator',
|
|
department: 'Engineering',
|
|
joinDate: 'January 15, 2024',
|
|
lastLogin: 'October 16, 2025, 2:30 PM'
|
|
};
|
|
|
|
stats = [
|
|
{ label: 'Artifacts Uploaded', value: '1,234', icon: 'cloud_upload' },
|
|
{ label: 'Queries Run', value: '567', icon: 'search' },
|
|
{ label: 'Storage Used', value: '45.2 GB', icon: 'storage' },
|
|
{ label: 'Active Since', value: '9 months', icon: 'schedule' }
|
|
];
|
|
|
|
recentActivity = [
|
|
{ action: 'Uploaded artifact', file: 'test_results.csv', time: '2 hours ago' },
|
|
{ action: 'Ran query', file: 'integration tests', time: '5 hours ago' },
|
|
{ action: 'Downloaded artifact', file: 'performance_metrics.json', time: '1 day ago' },
|
|
{ action: 'Updated settings', file: 'notification preferences', time: '2 days ago' }
|
|
];
|
|
}
|