Files
supersonic/webapp/packages/chat-sdk/src/common/constants.ts
jerryjzhang dc4fc69b57 first commit
2023-06-12 18:44:01 +08:00

50 lines
1.4 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { MsgValidTypeEnum } from './type';
export enum NumericUnit {
None = '无',
TenThousand = '万',
EnTenThousand = 'w',
OneHundredMillion = '亿',
Thousand = 'k',
Million = 'M',
Giga = 'G',
}
export const PRIMARY_COLOR = '#f87653';
export const CHART_BLUE_COLOR = '#446dff';
export const CHAT_BLUE = '#1b4aef';
export const CHART_SECONDARY_COLOR = 'rgba(153, 153, 153, 0.3)';
export const CLS_PREFIX = 'ss-chat';
export const DATE_TYPES = {
DAY: [{ label: '近7天', value: 7 }, { label: '近30天', value: 30 }, { label: '近60天', value: 60 }, { label: '近90天', value: 90 }],
WEEK: [{ label: '近4周', value: 4 }, { label: '近12周', value: 12 }, { label: '近24周', value: 24 }, { label: '近52周', value: 52 }],
MONTH: [{ label: '近3个月', value: 3 }, { label: '近6个月', value: 6 }, { label: '近12个月', value: 12 }, { label: '近24个月', value: 24 }],
};
export const THEME_COLOR_LIST = [
'#3369FF',
'#36D2B8',
'#DB8D76',
'#47B359',
'#8545E6',
'#E0B18B',
'#7258F3',
'#0095FF',
'#52CC8F',
'#6675FF',
'#CC516E',
'#5CA9E6',
];
export const PARSE_ERROR_TIP = '小Q不太懂您说什么呐回去一定补充知识';
export const MSG_VALID_TIP = {
[MsgValidTypeEnum.SEARCH_EXCEPTION]: '数据查询异常',
[MsgValidTypeEnum.INVALID]: '小Q不太懂您说什么呐回去一定补充知识',
};
export const PREFIX_CLS = 'ss-chat';