This repository has been archived by the owner on Oct 14, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update Footer component logo * The code changes involve updates to several files, including .cs, .tsx, and .ts files. The changes mainly involve updates to the code logic, addition of new functions, and updates to the version of the software packages used. The `useStyle` function has been renamed to `useStyles` across multiple files. The `DelegateDataGrid` import path has been updated in multiple files. The `Lexical` function has been exported as default in `index.tsx`. The `useStyle` function has been renamed to `useStyles` in `Nav.tsx`. The `DelegateDataGrid` component's `Items` prop no longer defaults to an empty array when `Items` is undefined in `List.tsx` and `index.tsx`. The `AdminProductAddButton` component's version has been updated to `0.3.3` in `Add.tsx`. The `run` function from `AdminHub.Product.Post.useCreate` now also returns `loading` in `Add.tsx`. The `setName` function is called with an empty string after a successful product creation in `Add.tsx`. The `Create` button in `Add.tsx` is now disabled when `loading` is true. The `AdminProductDelete` component's version has been updated to `0.2.1` in `Delete.tsx`. The `run` function from `AdminHub.Product.Delete.useProduct` now also returns `loading` in `Delete.tsx`. The `location.reload` function call has been removed from `AdminProductDelete` in `Delete.tsx`. The `AdminProductDelete` component now uses a `Popover` for confirmation before deleting a product in `Delete.tsx`. The `AdminProductComboDetail` and `AdminProductNewCombo` components now pass an array to `DelegateDataGrid`'s `Items` prop without defaulting to an empty array when the array is undefined in `Detail.tsx` and `New.tsx`. The `AdminProductCombo` component now passes an array to `DelegateDataGrid`'s `Items` prop without defaulting to an empty array when the array is undefined in `index.tsx`. The `AdminProductDelete` component's version has been updated to `0.1.1` in `Delete.tsx`. The `AdminProductDelete` component now uses a `Popover` for confirmation before deleting a product in `Delete.tsx`. The `AdminProductDetail` component's version has been updated to `0.2.2` in `Detail.tsx`. The `AdminProductDetail` component now uses `setFalse` instead of `toggle` to close the drawer in `Detail.tsx`. The `AdminProductDetail` component now includes the `AdminProductLexical` component in `Detail.tsx`. The `AdminProductPhotoEdit` component's version has been updated to `0.3.3` in `Edit.tsx`. The `AdminProductPhotoEdit` component now uses the `GuidImage` component instead of the `Image` component in `Edit.tsx`. The `AdminProductPhoto` component now passes an array to `DelegateDataGrid`'s `Items` prop without defaulting to an empty array when the array is undefined in `index.tsx`. The `AdminProductVariant` component now passes an array to `DelegateDataGrid`'s `Items` prop without defaulting to an empty array when the array is undefined in `index.tsx`. A new `AdminProductRow` component has been added in `Row.tsx`. The `AdminProductVariantEdit` component's version has been updated to `0.2.1` in `index.tsx`. The `AdminProductVariant` component now passes an array to `DelegateDataGrid`'s `Items` prop without defaulting to an empty array when the array is undefined in `index.tsx`. Several imports have been updated, with some being removed and others added. This includes changes to the import of various components from "@fluentui/react-components" and other libraries. The version numbers in the author comments have been updated, indicating that changes have been made to the code since the last version. The `IProductItem` interface has been extended to include `IProductCount`, and a new `IProductCount` interface has been added. The `useRequest` function has been replaced with `AdminHub.Product.Get.useList(log)` in the `AdminProduct` function. The `DelegateDataGrid` component has been replaced with a `DataGrid` component in the `AdminProduct` function. The `renderHeaderCell` and `renderCell` functions in the `createTableColumn` calls have been simplified. The `useStyle` function has been renamed to `useStyles` in several places. The `WithVersionCache` function has been replaced with `GetVersionCache` in several places. The `WithTimeCache` function has been replaced with `GetTimeCache` in several places. The `ProductEntity` class has been replaced with `ProductData` in several places. The `AdminProductRow` component has been added to the `DataGridBody` in the `AdminProduct` function. The `ProductLexicalRender` component has been added to the `Product` function. The `AdminUserDelete` and `AdminUserGrant` components have been updated to use `DataGridCell` and `DataGridHeaderCell`. The `Admin` function has been updated to check if `data` is defined instead of `loading`. The `ProductCarousel` function has been updated to use `Hub.Product.Get.PhotoList` instead of `Hub.Product.Get.Carousel`. The `ProductQuantity` and `ProductRadioList` components have been moved into a new `div` with the `style.detail` class in the `Product` function. The `ProductRadioGroup` function has been updated to use the `useRadioGroup` function. The `AdminOrderGet` class has been updated to use the `GetTimeCache` function instead of the `WithTimeCache` function. The `AdminProductDelete` class has been updated to use the `UpdateCache` function. The `dayjs` import was removed from several files and replaced with the `useConst` and `useLiveQuery` hooks from `@fluentui/react-hooks` and `dexie-react-hooks` respectively. This suggests a shift from using the `dayjs` library for date manipulation to using React hooks for state management and live querying of data. The `ProductEntity` import was removed from several files and replaced with `ProductData` and `ProductGet`. This suggests a refactoring of the code to separate concerns between fetching product data and getting product details. The `WithTimeCache` method was replaced with `GetTimeCache` in several places. This suggests a change in the method used for caching data. The `WithVersionCache` method was replaced with `GetVersionCache` in several places. This suggests a change in the method used for version caching. The `List` method in `AdminProductGet` was refactored to use the `useLiveQuery` hook and the `GetTimeCache` method. This suggests a shift towards using live queries and time-based caching for data fetching. The `useCreate` method in `AdminProductPost` was refactored to use the `Invoke` method and update the cache after creating a product. This suggests a change in the product creation process to include cache updates. A new `useLexical` method was added to `AdminProductPost`, which uses the `CurrentEditor` to get the editor state and invoke the `ProductPostDescription` method. This suggests a new feature for handling lexical data in product posts. The `ProductGet` class was refactored to extend `ProductData` instead of `ShopNet`. This suggests a change in the class hierarchy to make `ProductGet` a subclass of `ProductData`. The `PhotoList` method in `ProductGet` was refactored to use the `GetTimeCache` method and handle errors. This suggests a change in the method used for fetching photo lists and improved error handling. A new `ProductData` class was added, which includes methods for fetching product, lexical, photo, type, and variant data. This suggests a new class for handling product-related data fetching. The `demo.json` file was completely removed. This file contained a large amount of text data structured in a specific format. In `SignalR.ts`, the import statement for `ShopNet` was changed to import the type only. Two new methods `Index` and `UpdateCache` were added to the `SignalR` class. The `WithVersionCache` method was renamed to `GetVersionCache` and its implementation was updated. The `WithTimeCache` method was renamed to `GetTimeCache` and its implementation was updated. The `FindCover` method was removed from the `SignalR` class. In `Table.ts`, the `Table` class was updated to remove the generic `TPre` and replace it with `unknown`. The `Get`, `GetOrSet`, and `Set` methods were updated to remove the `TPre` generic and replace it with `unknown`. In `Get.tsx`, the `useMe` method was updated to remove the `options` and `suppress` parameters and to use the `useLiveQuery` hook instead of the `useRequest` hook. The `useMe` method now returns `IUserGetMe | void` instead of `IuseMe | void`. In `Post.ts`, the `useUpdate` method was updated to call the `EnsureTrue` method and the `UpdateCache` method after invoking the `UserPostUpdate` method. In `vite.config.ts`, the `splitVendorChunkPlugin` was added to the list of plugins in the Vite configuration. * [Front] 1.2.5
- Loading branch information