mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-05-05 19:49:34 +00:00
🎨 chore(web): apply ESLint and Prettier auto-fixes (baseline)
- Ran: bun run eslint:fix && bun run lint:fix - Inserted AGPL license header via eslint-plugin-header - Enforced no-multiple-empty-lines and other lint rules - Formatted code using Prettier v3 (@so1ve/prettier-config) - No functional changes; formatting-only baseline across JS/JSX files
This commit is contained in:
@@ -18,30 +18,30 @@ For commercial licensing, please contact support@quantumnous.com
|
||||
*/
|
||||
|
||||
export const REDEMPTION_STATUS = {
|
||||
UNUSED: 1, // Unused
|
||||
DISABLED: 2, // Disabled
|
||||
USED: 3, // Used
|
||||
UNUSED: 1, // Unused
|
||||
DISABLED: 2, // Disabled
|
||||
USED: 3, // Used
|
||||
};
|
||||
|
||||
// Redemption code status display mapping
|
||||
export const REDEMPTION_STATUS_MAP = {
|
||||
[REDEMPTION_STATUS.UNUSED]: {
|
||||
color: 'green',
|
||||
text: '未使用'
|
||||
text: '未使用',
|
||||
},
|
||||
[REDEMPTION_STATUS.DISABLED]: {
|
||||
color: 'red',
|
||||
text: '已禁用'
|
||||
text: '已禁用',
|
||||
},
|
||||
[REDEMPTION_STATUS.USED]: {
|
||||
color: 'grey',
|
||||
text: '已使用'
|
||||
}
|
||||
text: '已使用',
|
||||
},
|
||||
};
|
||||
|
||||
// Action type constants
|
||||
export const REDEMPTION_ACTIONS = {
|
||||
DELETE: 'delete',
|
||||
ENABLE: 'enable',
|
||||
DISABLE: 'disable'
|
||||
};
|
||||
DISABLE: 'disable',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user