mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-05-19 08:48:08 +00:00
cab996608e
Co-authored-by: 6543 <6543@obermui.de>
28 lines
613 B
TypeScript
28 lines
613 B
TypeScript
import { PipelineStatus } from '~/lib/api/types';
|
|
|
|
export const pipelineStatusColors: Record<PipelineStatus, 'green' | 'gray' | 'red' | 'blue'> = {
|
|
blocked: 'gray',
|
|
declined: 'red',
|
|
error: 'red',
|
|
failure: 'red',
|
|
killed: 'gray',
|
|
pending: 'gray',
|
|
skipped: 'gray',
|
|
running: 'blue',
|
|
started: 'blue',
|
|
success: 'green',
|
|
};
|
|
|
|
export const pipelineStatusAnimations: Record<PipelineStatus, string> = {
|
|
blocked: '',
|
|
declined: '',
|
|
error: '',
|
|
failure: '',
|
|
killed: '',
|
|
pending: '',
|
|
skipped: '',
|
|
running: 'animate-spin animate-slow',
|
|
started: 'animate-spin animate-slow',
|
|
success: '',
|
|
};
|