This repository has been archived by the owner on Mar 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The most significant changes involve renaming and updating methods, a…
…dding new types and methods, and updating import statements across multiple files. The `ProductDeleteCategory` method in `Delete.cs` has been renamed to `ProductDetachCategory`, and the import statements in `OrderInfo.tsx`, `Delete.ts`, `Get.ts`, and `Post.ts` have been updated. New types have been added to `Entity.ts` and `Data.ts`, and new methods have been added to `Get.ts`, `Data.ts`, and `Get.tsx`. The `Order` and `Comment` methods in `Entity.ts`, the `Product`, `Lexical`, `Photo`, `Type`, and `Variant` methods in `Data.ts`, and the `useMe` method in `Get.tsx` have been updated. The `OrderGet` class in `Get.ts` and the `ProductGet` class in `Get.ts` now extend `OrderEntity` and `ProductData` respectively. 1. The method `ProductDeleteCategory` in `Delete.cs` has been renamed to `ProductDetachCategory`. 2. The import statement in `OrderInfo.tsx` has been updated to include `OrderEntity` from `"~/ShopNet/Order/Entity"`. 3. The `Order` type in `OrderInfo.tsx` has been changed from `Awaited<ReturnType<typeof Hub.Order.Get.Order>>` to `OrderEntity.Order`. 4. The version annotation in `Category.tsx` has been updated from `0.3.2` to `0.3.4`. 5. New code has been added to `Category.tsx` to handle the detaching of a category from a product. 6. The import statement in `Delete.ts` has been updated to remove `dayjs`. 7. The `useProduct` method in `Delete.ts` has been updated to use `AdminProductGet.ListUpdate` instead of `this.UpdateCache`. 8. The `useCategory` method in `Delete.ts` has been updated to use `ProductDetachCategory` instead of `ProductDeleteCategory` and `ProductData.ProductUpdate` instead of `this.UpdateCache`. 9. The import statement in `Get.ts` has been updated to include `dayjs`. 10. The `useList` method in `Get.ts` has been updated to use `this.list` instead of `"ProductGetList"`, and a new method `ListUpdate` has been added. 11. The import statement in `Post.ts` has been updated to remove `dayjs` and include `AdminProductGet`. 12. The `useCreate` method in `Post.ts` has been updated to use `AdminProductGet.ListUpdate` instead of `this.UpdateCache`. 13. New types have been added to `Entity.ts` under the namespace `OrderEntity`. 14. The `Order` and `Comment` methods in `Entity.ts` have been updated to return the new types from `OrderEntity`. 15. The import statement in `Get.ts` has been updated to remove `ShopNet` and include `OrderEntity`. 16. The `OrderGet` class in `Get.ts` now extends `OrderEntity` instead of `ShopNet`. 17. The `PhotoList` method in `Get.ts` has been updated to return `ProductData.Photo[]` instead of `Awaited<ReturnType<typeof this.Photo>>[]`. 18. The `Order` method in `Get.ts` has been removed. 19. New types have been added to `Data.ts` under the namespace `ProductData`. 20. The `Product`, `Lexical`, `Photo`, `Type`, and `Variant` methods in `Data.ts` have been updated to return the new types from `ProductData`. 21. A new method `ProductUpdate` has been added to `Data.ts`. 22. The `ProductGet` class in `Get.ts` now extends `ProductData` instead of `ShopNet`. 23. The `useMe` method in `Get.tsx` has been updated to return `UserGet.Me` instead of `IUserGetMe`. 24. A new method `MeUpdate` has been added to `Get.tsx`. 25. The `useUpdate` method in `Post.ts` has been updated to use `UserGet.MeUpdate` instead of `this.UpdateCache`.
- Loading branch information
Showing
15 changed files
with
595 additions
and
518 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.