remove types class

Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
Sanjula Ganepola
2024-09-26 21:01:18 -04:00
parent d1a1a1cc5b
commit e96159f211
7 changed files with 27 additions and 28 deletions

43
src/componentManager.ts Normal file
View File

@@ -0,0 +1,43 @@
export interface Component {
name: string,
status: Status,
icon: string,
message?: string
}
export enum Status {
Enabled = 'Enabled',
Warning = 'Warning',
Disabled = 'Disabled'
}
export class ComponentManager {
components: Component[] = [
{
name: 'nektos/act',
status: Status.Enabled,
icon: 'package'
},
{
name: 'Docker Engine',
status: Status.Disabled,
icon: 'dashboard'
},
{
name: 'GitHub Actions Extension',
status: Status.Warning,
icon: 'extensions',
message: 'GitHub Actions extension is not required but is recommended to take advantage of workflow editor features'
},
{
name: 'GitHub CLI',
status: Status.Warning,
icon: 'terminal',
message: 'GitHub CLI is not required but is recommended if you plan to use it to retrieve GitHub tokens'
}
];
async getComponents(): Promise<Component[]> {
return this.components;
}
}