The `checkTokenFromLogin` function was removed from the button rendering logic and its import, as it was deemed unnecessary for the component's functionality. This simplifies the code and reduces redundancy.
This commit refactors the JD cookie management API and associated components to improve maintainability and consistency. Key changes include:
- Updated API client to include `CkApi` for JD cookie operations.
- Added new models and updated existing ones for JD cookie management.
- Refactored components to use the updated API and models.
- Removed unused code and streamlined the logic for adding, updating, and deleting JD cookies.
This commit introduces a new API endpoint `ck-api` for managing JD cookies, including operations for adding, updating, deleting, and listing JD cookies. Additionally, several new models have been added to support these operations. The package manager version in `package.json` has also been updated to ensure compatibility.
Add new routes for managing JD accounts and orders in the admin interface. This includes the addition of new components for handling account details, order history, and summary views. The changes enable administrators to view and manage JD account and order data more effectively.
- Remove radio group component from account and order views
- Add tabs component for group selection
- Update layout and styling for better user experience
- Add a new form item for selecting redeem strategy
- Implement a dropdown with options for 'ck轮训' and '随机' strategies
- Import necessary components and enums for the new feature
- Improve type safety by using specific enum types for account status updates in Card C Trip Info and Card JD Info
- Add redeemOrderScheduleStrategy configuration option in Card Walmart Info
The healthcheck URL was updated from using the environment variable NGINX_CONFIG_URL to using 127.0.0.1 to ensure the healthcheck works correctly in the local environment. This change avoids potential issues with the environment variable not being properly resolved.
The field names in the API documentation were updated to follow camel case convention for consistency across the codebase. This change improves readability and aligns with the project's coding standards.
- Added a new route for Walmart group management
- Replaced radio buttons with tabs for better UI experience in account and order views
- Updated form handling and API calls to reflect group changes
- Improved layout and styling in the group management view