feat: nodes list

This commit is contained in:
jialin
2024-05-20 18:13:05 +08:00
parent 313da7a9d2
commit 96e83878d1
13 changed files with 415 additions and 46 deletions
+25 -1
View File
@@ -1,7 +1,31 @@
import { PageActionType } from './types';
import { PageActionType, StatusType } from './types';
export const PageAction: Record<string, PageActionType> = {
CREATE: 'create',
UPDATE: 'update',
VIEW: 'view'
};
export const StatusColorMap: Record<StatusType, { text: string; bg: string }> =
{
error: {
text: `var(--ant-red-6)`,
bg: `var(--ant-red-1)`
},
warning: {
text: `var(--ant-orange-6)`,
bg: `var(--ant-orange-1)`
},
transitioning: {
text: `var(--ant-blue-6)`,
bg: `var(--ant-blue-1)`
},
success: {
text: `var(--ant-color-primary)`,
bg: `var(--ant-green-1)`
},
inactive: {
text: `var(--ant-color-border)`,
bg: `var(--ant-color-fill)`
}
};
+7
View File
@@ -7,3 +7,10 @@ export interface DropDownItem {
}
export type PageActionType = 'create' | 'update' | 'view';
export type StatusType =
| 'error'
| 'warning'
| 'transitioning'
| 'success'
| 'inactive';