mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-09-24 12:40:06 +00:00
58838f225c
Rewrite of the UI using Typescript, Vue3, Windicss and Vite. The design should be close to the current one with some changes: - latest pipeline in a sidebar on the right - secrets and registry as part of the repo-settings (secrets and registry entries shouldn't be used as much so they can be "hidden" under settings IMO) - start page shows list of active repositories with button to enable / add new ones (currently you see all repositories and in most cases you only add new repositories once in a while)
27 lines
571 B
TypeScript
27 lines
571 B
TypeScript
import { BuildStatus } from '~/lib/api/types';
|
|
|
|
export const buildStatusColors: Record<BuildStatus, string> = {
|
|
blocked: 'gray',
|
|
declined: 'red',
|
|
error: 'red',
|
|
failure: 'red',
|
|
killed: 'gray',
|
|
pending: 'gray',
|
|
skipped: 'gray',
|
|
running: 'blue',
|
|
started: 'blue',
|
|
success: 'green',
|
|
};
|
|
|
|
export const buildStatusAnimations: Record<BuildStatus, string> = {
|
|
blocked: '',
|
|
declined: '',
|
|
error: '',
|
|
failure: '',
|
|
killed: '',
|
|
pending: '',
|
|
skipped: '',
|
|
running: 'animate-spin animate-slow',
|
|
started: 'animate-spin animate-slow',
|
|
success: '',
|
|
};
|