- Split admin users page into player/tier-1/tier-2 tabs with affiliation labels and context-specific create dialogs - Add media library with uploaded_files migration, list/delete unused files API, and admin nav route - Enforce player username format (alphanumeric 3-32) on frontend and backend via shared package - Improve admin dialog/panel styling; refine player parlay and match bet card kickoff display Co-authored-by: Cursor <cursoragent@cursor.com>
45 lines
1.5 KiB
TypeScript
45 lines
1.5 KiB
TypeScript
/** 串关列表表头与玩法类型(labelKey 对应 main.ts bet.*) */
|
||
export const PARLAY_MARKET_TYPES = [
|
||
{ key: 'FT_HANDICAP', labelKey: 'market_ft_handicap' },
|
||
{ key: 'FT_OVER_UNDER', labelKey: 'market_ft_ou' },
|
||
{ key: 'FT_1X2', labelKey: 'market_ft_1x2' },
|
||
{ key: 'FT_ODD_EVEN', labelKey: 'market_ft_oe' },
|
||
{ key: 'HT_HANDICAP', labelKey: 'market_ht_handicap' },
|
||
{ key: 'HT_OVER_UNDER', labelKey: 'market_ht_ou' },
|
||
{ key: 'HT_1X2', labelKey: 'market_ht_1x2' },
|
||
] as const;
|
||
|
||
export type ParlayMarketType = (typeof PARLAY_MARKET_TYPES)[number]['key'];
|
||
|
||
/** 按全场 / 半场分组(headerKey 对应 bet.ft / bet.ht) */
|
||
export const PARLAY_MARKET_GROUPS = [
|
||
{
|
||
headerKey: 'ft',
|
||
columns: [
|
||
{ key: 'FT_HANDICAP', labelKey: 'parlay_lbl_handicap' },
|
||
{ key: 'FT_OVER_UNDER', labelKey: 'parlay_lbl_ou' },
|
||
{ key: 'FT_1X2', labelKey: 'parlay_lbl_1x2' },
|
||
{ key: 'FT_ODD_EVEN', labelKey: 'parlay_lbl_oe' },
|
||
],
|
||
},
|
||
{
|
||
headerKey: 'ht',
|
||
columns: [
|
||
{ key: 'HT_HANDICAP', labelKey: 'parlay_lbl_handicap' },
|
||
{ key: 'HT_OVER_UNDER', labelKey: 'parlay_lbl_ou' },
|
||
{ key: 'HT_1X2', labelKey: 'parlay_lbl_1x2' },
|
||
],
|
||
},
|
||
] as const;
|
||
|
||
/** 选项简称 i18n key(串关格内展示) */
|
||
export const PARLAY_SELECTION_KEYS: Record<string, string> = {
|
||
HOME: 'parlay_sel_home',
|
||
AWAY: 'parlay_sel_away',
|
||
DRAW: 'parlay_sel_draw',
|
||
OVER: 'parlay_sel_over',
|
||
UNDER: 'parlay_sel_under',
|
||
ODD: 'parlay_sel_odd',
|
||
EVEN: 'parlay_sel_even',
|
||
};
|