mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-30 22:30:55 +01:00
- Created EntityTable component for displaying test entities with expandable rows for releases. - Implemented ReleaseTable component to manage and display test releases with actions for editing and deleting. - Added ReleaseModal component for creating and editing releases - Introduced types for TestEntity, TestRelease, and related evaluations - Enhanced general settings page to include TMDB API configuration with connection testing functionality. - Added TMDBSettings component for managing TMDB API access token with reset and test connection features.
26 lines
484 B
TypeScript
26 lines
484 B
TypeScript
/**
|
|
* Quality profile select options query
|
|
*/
|
|
|
|
import type { PCDCache } from '../../cache.ts';
|
|
|
|
export interface QualityProfileOption {
|
|
id: number;
|
|
name: string;
|
|
}
|
|
|
|
/**
|
|
* Get quality profile options for select/dropdown components
|
|
*/
|
|
export async function select(cache: PCDCache): Promise<QualityProfileOption[]> {
|
|
const db = cache.kb;
|
|
|
|
const profiles = await db
|
|
.selectFrom('quality_profiles')
|
|
.select(['id', 'name'])
|
|
.orderBy('name')
|
|
.execute();
|
|
|
|
return profiles;
|
|
}
|