Skip to content
This repository was archived by the owner on Mar 24, 2024. It is now read-only.

[Back] Adding use DB - [Front] PhotoUpdate #100

Merged
merged 3 commits into from
Jan 31, 2024
Merged

[Back] Adding use DB - [Front] PhotoUpdate #100

merged 3 commits into from
Jan 31, 2024

Conversation

Aloento
Copy link
Owner

@Aloento Aloento commented Jan 31, 2024

No description provided.

…in `Caption.tsx` and `Patch.ts` to newer versions, the addition of a `photo` property and related functions in `ProductData` class in `Data.ts`, and the renaming of the database in `Database.ts`. Additionally, the `AdminProductPhotoEditCaption` function in `Caption.tsx` and the `AdminProductPhoto` function in `index.tsx` were updated to improve the handling of photo captions.

1. The import statement in `Caption.tsx` was updated to change the version from `0.1.0` to `0.1.1`. This ensures that the latest version of the imported module is used.
2. The `AdminProductPhotoEditCaption` function in `Caption.tsx` was updated to change the `updateCaption` function to `run` and add a placeholder to the input field. This improves the user interface and functionality of the photo caption editing feature.
3. The interface `IPhotoItem` in `index.tsx` was updated to change the version from `0.1.3` to `0.1.4` and add a default value of "No Caption" if the item does not have a caption. This provides a better user experience when viewing photos without captions.
4. The `AdminProductPhoto` function in `index.tsx` was updated to remove the default value of "No Caption" from the `Caption` property. This change is likely related to the previous update in `IPhotoItem`.
5. The file `Patch.ts` was updated to import `ProductData` from `~/ShopNet/Product/Data`. This allows the `AdminProductPatch` class to access and manipulate product data.
6. The `AdminProductPatch` class in `Patch.ts` was updated to change the version from `0.2.0` to `0.3.0` and add a function to update the photo caption in the product data. This adds new functionality to the product patching process.
7. The file `Database.ts` was updated to change the name of the database from "EShop" to `Dic.Name`. This change likely reflects a broader change in the database structure or naming conventions.
8. The `ProductData` class in `Data.ts` was updated to add a `photo` property and functions to get and update photo data. This extends the capabilities of the `ProductData` class to handle photo-related data.
9. The `ProductGet` class in `Get.ts` was updated to add a `photoList` property and a function to get a list of photos. This allows the class to retrieve and handle a list of product photos.
…op.Test.csproj` file and modifications to several methods in the `ShopHub` class within the `Post.cs` file. The `SoarCraft.AwaiShop.Test.csproj` file has been updated to use newer versions of several packages, including `Bogus`, `Microsoft.AspNetCore.SignalR.Client`, `Microsoft.AspNetCore.SignalR.Protocols.MessagePack`, `Microsoft.NET.Test.Sdk`, `MSTest.TestAdapter`, and `MSTest.TestFramework`. In the `Post.cs` file, the `OrderPostNew`, `OrderPostAppend`, `OrderPostCancel`, and `OrderPostReceived` methods in the `ShopHub` class have been updated to use the `AddAsync` method for adding new objects to the `Db` context. Additionally, the `OrderPostCancel` method has been updated to change the status of the `Order` object using a ternary operator.

List of changes:

1. The `SoarCraft.AwaiShop.Test.csproj` file has been updated to use newer versions of several packages. The `Bogus` package has been updated from version `35.0.1` to `35.4.0`, the `Microsoft.AspNetCore.SignalR.Client` and `Microsoft.AspNetCore.SignalR.Protocols.MessagePack` packages have been updated from version `8.0.0` to `8.0.1`, and the `Microsoft.NET.Test.Sdk`, `MSTest.TestAdapter`, and `MSTest.TestFramework` packages have been updated from version `17.9.0-preview-23577-04` and `3.1.1` to `17.10.0-preview-24080-01` and `3.2.0` respectively (SoarCraft.AwaiShop.Test.csproj).

2. The `OrderPostNew` method in the `ShopHub` class has been updated to use the `AddAsync` method to add new `OrderCombo` and `Comment` objects to the `Db` context, instead of adding them directly to the `Order` object (Post.cs).

3. The `OrderPostAppend`, `OrderPostCancel`, and `OrderPostReceived` methods in the `ShopHub` class have been updated in a similar way to the `OrderPostNew` method, using the `AddAsync` method to add new `Comment` objects to the `Db` context (Post.cs).

4. The `OrderPostCancel` method in the `ShopHub` class has also been updated to change the status of the `Order` object in a different way, using a ternary operator instead of a direct assignment (Post.cs).

5. The version number in the comments for several methods in the `ShopHub` class and the `OrderPostReceived` method has been updated (Post.cs).
@Aloento Aloento self-assigned this Jan 31, 2024
@Aloento Aloento merged commit c480e11 into master Jan 31, 2024
1 check passed
@Aloento Aloento deleted the Dev branch January 31, 2024 12:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant