mirror of
https://github.com/billsonnn/nitro-react.git
synced 2025-01-19 05:46:27 +01:00
More restructuring
This commit is contained in:
parent
d6814286f4
commit
3e478694c6
@ -6,10 +6,10 @@ import { CatalogPurchaseSoldOutEvent } from '../../events/catalog/CatalogPurchas
|
|||||||
import { dispatchUiEvent } from '../../hooks/events/ui/ui-event';
|
import { dispatchUiEvent } from '../../hooks/events/ui/ui-event';
|
||||||
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
||||||
import { CatalogMessageHandlerProps } from './CatalogMessageHandler.types';
|
import { CatalogMessageHandlerProps } from './CatalogMessageHandler.types';
|
||||||
|
import { CatalogPetPalette } from './common/CatalogPetPalette';
|
||||||
|
import { SubscriptionInfo } from './common/SubscriptionInfo';
|
||||||
import { useCatalogContext } from './context/CatalogContext';
|
import { useCatalogContext } from './context/CatalogContext';
|
||||||
import { CatalogActions } from './reducers/CatalogReducer';
|
import { CatalogActions } from './reducers/CatalogReducer';
|
||||||
import { CatalogPetPalette } from './utils/CatalogPetPalette';
|
|
||||||
import { SubscriptionInfo } from './utils/SubscriptionInfo';
|
|
||||||
|
|
||||||
export const CatalogMessageHandler: FC<CatalogMessageHandlerProps> = props =>
|
export const CatalogMessageHandler: FC<CatalogMessageHandlerProps> = props =>
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { CatalogClubOfferData, CatalogGroupData, CatalogPageOfferData, ICatalogPageData, ICatalogPageParser } from 'nitro-renderer';
|
import { CatalogClubOfferData, CatalogGroupData, CatalogPageOfferData, ICatalogPageData, ICatalogPageParser } from 'nitro-renderer';
|
||||||
import { Reducer } from 'react';
|
import { Reducer } from 'react';
|
||||||
import { CatalogPetPalette } from '../utils/CatalogPetPalette';
|
import { CatalogPetPalette } from '../common/CatalogPetPalette';
|
||||||
import { ICatalogOffers, ICatalogSearchResult, SetOffersToNodes } from '../utils/CatalogUtilities';
|
import { ICatalogOffers, ICatalogSearchResult, SetOffersToNodes } from '../common/CatalogUtilities';
|
||||||
import { SubscriptionInfo } from '../utils/SubscriptionInfo';
|
import { SubscriptionInfo } from '../common/SubscriptionInfo';
|
||||||
|
|
||||||
export interface ICatalogState
|
export interface ICatalogState
|
||||||
{
|
{
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { Vector3d } from 'nitro-renderer';
|
import { Vector3d } from 'nitro-renderer';
|
||||||
import { FC, useEffect } from 'react';
|
import { FC, useEffect } from 'react';
|
||||||
import { GetAvatarRenderManager, GetFurnitureDataForProductOffer, GetSessionDataManager } from '../../../../api';
|
import { GetAvatarRenderManager, GetFurnitureDataForProductOffer, GetSessionDataManager } from '../../../../api';
|
||||||
|
import { FurniCategory } from '../../common/FurniCategory';
|
||||||
|
import { ProductTypeEnum } from '../../common/ProductTypeEnum';
|
||||||
import { useCatalogContext } from '../../context/CatalogContext';
|
import { useCatalogContext } from '../../context/CatalogContext';
|
||||||
import { FurniCategory } from '../../enums/FurniCategory';
|
|
||||||
import { ProductTypeEnum } from '../../enums/ProductTypeEnum';
|
|
||||||
import { CatalogPageViewProps } from './CatalogPageView.types';
|
import { CatalogPageViewProps } from './CatalogPageView.types';
|
||||||
import { GetCatalogLayout } from './layout/GetCatalogLayout';
|
import { GetCatalogLayout } from './layout/GetCatalogLayout';
|
||||||
import { CatalogLayoutSearchResultView } from './search-result/CatalogLayoutSearchResultView';
|
import { CatalogLayoutSearchResultView } from './search-result/CatalogLayoutSearchResultView';
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { LimitedEditionCompletePlateView } from '../../../../../shared/limited-edition/complete-plate/LimitedEditionCompletePlateView';
|
import { LimitedEditionCompletePlateView } from '../../../../../shared/limited-edition/complete-plate/LimitedEditionCompletePlateView';
|
||||||
import { RoomPreviewerView } from '../../../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetCatalogPageImage, GetCatalogPageText, GetOfferName } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { GetCatalogPageImage, GetCatalogPageText, GetOfferName } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
||||||
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutDefaultViewProps } from './CatalogLayoutDefaultView.types';
|
import { CatalogLayoutDefaultViewProps } from './CatalogLayoutDefaultView.types';
|
||||||
|
@ -2,9 +2,9 @@ import { CatalogGroupsComposer } from 'nitro-renderer';
|
|||||||
import { FC, useEffect } from 'react';
|
import { FC, useEffect } from 'react';
|
||||||
import { SendMessageHook } from '../../../../../../hooks/messages';
|
import { SendMessageHook } from '../../../../../../hooks/messages';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetOfferName } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { GetOfferName } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
||||||
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutGuildCustomFurniViewProps } from './CatalogLayoutGuildCustomFurniView.types';
|
import { CatalogLayoutGuildCustomFurniViewProps } from './CatalogLayoutGuildCustomFurniView.types';
|
||||||
|
@ -2,9 +2,9 @@ import { CatalogGroupsComposer } from 'nitro-renderer';
|
|||||||
import { FC, useEffect } from 'react';
|
import { FC, useEffect } from 'react';
|
||||||
import { SendMessageHook } from '../../../../../../hooks/messages';
|
import { SendMessageHook } from '../../../../../../hooks/messages';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
|
import { GetCatalogPageText } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { CatalogActions } from '../../../../reducers/CatalogReducer';
|
import { CatalogActions } from '../../../../reducers/CatalogReducer';
|
||||||
import { GetCatalogPageText } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogLayoutGuildForumViewProps } from './CatalogLayoutGuildForumView.types';
|
import { CatalogLayoutGuildForumViewProps } from './CatalogLayoutGuildForumView.types';
|
||||||
|
|
||||||
export const CatalogLayouGuildForumView: FC<CatalogLayoutGuildForumViewProps> = props =>
|
export const CatalogLayouGuildForumView: FC<CatalogLayoutGuildForumViewProps> = props =>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { GetCatalogPageText } from '../../../../utils/CatalogUtilities';
|
import { GetCatalogPageText } from '../../../../common/CatalogUtilities';
|
||||||
import { CatalogLayoutInfoLoyaltyViewProps } from './CatalogLayoutInfoLoyaltyView.types';
|
import { CatalogLayoutInfoLoyaltyViewProps } from './CatalogLayoutInfoLoyaltyView.types';
|
||||||
|
|
||||||
export const CatalogLayoutInfoLoyaltyView: FC<CatalogLayoutInfoLoyaltyViewProps> = props =>
|
export const CatalogLayoutInfoLoyaltyView: FC<CatalogLayoutInfoLoyaltyViewProps> = props =>
|
||||||
|
@ -3,11 +3,11 @@ import { FC, useEffect, useMemo, useState } from 'react';
|
|||||||
import { GetProductDataForLocalization } from '../../../../../../api/nitro/session/GetProductDataForLocalization';
|
import { GetProductDataForLocalization } from '../../../../../../api/nitro/session/GetProductDataForLocalization';
|
||||||
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../../../room-previewer/RoomPreviewerView';
|
|
||||||
import { PetImageView } from '../../../../../shared/pet-image/PetImageView';
|
import { PetImageView } from '../../../../../shared/pet-image/PetImageView';
|
||||||
|
import { RoomPreviewerView } from '../../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetCatalogPageImage, GetCatalogPageText, GetPetAvailableColors, GetPetIndexFromLocalization } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { CatalogActions } from '../../../../reducers/CatalogReducer';
|
import { CatalogActions } from '../../../../reducers/CatalogReducer';
|
||||||
import { GetCatalogPageImage, GetCatalogPageText, GetPetAvailableColors, GetPetIndexFromLocalization } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogLayoutPetViewProps } from './CatalogLayoutPetView.types';
|
import { CatalogLayoutPetViewProps } from './CatalogLayoutPetView.types';
|
||||||
import { CatalogLayoutPetPurchaseView } from './purchase/CatalogLayoutPetPurchaseView';
|
import { CatalogLayoutPetPurchaseView } from './purchase/CatalogLayoutPetPurchaseView';
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../utils/CatalogUtilities';
|
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../common/CatalogUtilities';
|
||||||
import { CatalogLayoutPets2ViewProps } from './CatalogLayoutPets2View.types';
|
import { CatalogLayoutPets2ViewProps } from './CatalogLayoutPets2View.types';
|
||||||
|
|
||||||
export const CatalogLayoutPets2View: FC<CatalogLayoutPets2ViewProps> = props =>
|
export const CatalogLayoutPets2View: FC<CatalogLayoutPets2ViewProps> = props =>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../utils/CatalogUtilities';
|
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../common/CatalogUtilities';
|
||||||
import { CatalogLayoutPets3ViewProps } from './CatalogLayoutPets3View.types';
|
import { CatalogLayoutPets3ViewProps } from './CatalogLayoutPets3View.types';
|
||||||
|
|
||||||
export const CatalogLayoutPets3View: FC<CatalogLayoutPets3ViewProps> = props =>
|
export const CatalogLayoutPets3View: FC<CatalogLayoutPets3ViewProps> = props =>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
|
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { GetCatalogPageImage, GetCatalogPageText } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogProductView } from '../../product/CatalogProductView';
|
import { CatalogProductView } from '../../product/CatalogProductView';
|
||||||
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutSingleBundleViewProps } from './CatalogLayoutSingleBundleView.types';
|
import { CatalogLayoutSingleBundleViewProps } from './CatalogLayoutSingleBundleView.types';
|
||||||
|
@ -2,10 +2,10 @@ import { CatalogPageOfferData, IFurnitureData } from 'nitro-renderer';
|
|||||||
import { FC, useEffect, useState } from 'react';
|
import { FC, useEffect, useState } from 'react';
|
||||||
import { GetSessionDataManager } from '../../../../../../api';
|
import { GetSessionDataManager } from '../../../../../../api';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetCatalogPageImage, GetCatalogPageText, GetOfferName } from '../../../../common/CatalogUtilities';
|
||||||
|
import { ProductTypeEnum } from '../../../../common/ProductTypeEnum';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { ProductTypeEnum } from '../../../../enums/ProductTypeEnum';
|
|
||||||
import { GetCatalogPageImage, GetCatalogPageText, GetOfferName } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
||||||
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutSpacesViewProps } from './CatalogLayoutSpacesView.types';
|
import { CatalogLayoutSpacesViewProps } from './CatalogLayoutSpacesView.types';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { FC, useState } from 'react';
|
import { FC, useState } from 'react';
|
||||||
import { RoomPreviewerView } from '../../../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetOfferName } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { GetOfferName } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
import { CatalogPageOffersView } from '../../offers/CatalogPageOffersView';
|
||||||
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutTrophiesViewProps } from './CatalogLayoutTrophiesView.types';
|
import { CatalogLayoutTrophiesViewProps } from './CatalogLayoutTrophiesView.types';
|
||||||
|
@ -3,8 +3,8 @@ import { FC, useCallback, useEffect, useMemo } from 'react';
|
|||||||
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon';
|
import { CurrencyIcon } from '../../../../../shared/currency-icon/CurrencyIcon';
|
||||||
|
import { GetCatalogPageImage } from '../../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../../context/CatalogContext';
|
||||||
import { GetCatalogPageImage } from '../../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogLayoutVipBuyViewProps } from './CatalogLayoutVipBuyView.types';
|
import { CatalogLayoutVipBuyViewProps } from './CatalogLayoutVipBuyView.types';
|
||||||
|
|
||||||
export const CatalogLayoutVipBuyView: FC<CatalogLayoutVipBuyViewProps> = props =>
|
export const CatalogLayoutVipBuyView: FC<CatalogLayoutVipBuyViewProps> = props =>
|
||||||
|
@ -4,7 +4,7 @@ import { GetRoomEngine, GetSessionDataManager } from '../../../../../api';
|
|||||||
import { GetConfiguration } from '../../../../../utils/GetConfiguration';
|
import { GetConfiguration } from '../../../../../utils/GetConfiguration';
|
||||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||||
import { LimitedEditionStyledNumberView } from '../../../../shared/limited-edition/styled-number/LimitedEditionStyledNumberView';
|
import { LimitedEditionStyledNumberView } from '../../../../shared/limited-edition/styled-number/LimitedEditionStyledNumberView';
|
||||||
import { ProductTypeEnum } from '../../../enums/ProductTypeEnum';
|
import { ProductTypeEnum } from '../../../common/ProductTypeEnum';
|
||||||
import { CatalogProductViewProps } from './CatalogProductView.types';
|
import { CatalogProductViewProps } from './CatalogProductView.types';
|
||||||
|
|
||||||
export const CatalogProductView: FC<CatalogProductViewProps> = props =>
|
export const CatalogProductView: FC<CatalogProductViewProps> = props =>
|
||||||
|
@ -5,7 +5,7 @@ import { useUiEvent } from '../../../../../../hooks/events/ui/ui-event';
|
|||||||
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../../../hooks/messages/message-event';
|
||||||
import { LoadingSpinnerView } from '../../../../../../layout';
|
import { LoadingSpinnerView } from '../../../../../../layout';
|
||||||
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../../../utils/LocalizeText';
|
||||||
import { GetCurrencyAmount } from '../../../../../purse/utils/CurrencyHelper';
|
import { GetCurrencyAmount } from '../../../../../purse/common/CurrencyHelper';
|
||||||
import { CatalogPurchaseButtonViewProps, CatalogPurchaseState } from './CatalogPurchaseButtonView.types';
|
import { CatalogPurchaseButtonViewProps, CatalogPurchaseState } from './CatalogPurchaseButtonView.types';
|
||||||
|
|
||||||
export const CatalogPurchaseButtonView: FC<CatalogPurchaseButtonViewProps> = props =>
|
export const CatalogPurchaseButtonView: FC<CatalogPurchaseButtonViewProps> = props =>
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { FC } from 'react';
|
import { FC } from 'react';
|
||||||
import { RoomPreviewerView } from '../../../../room-previewer/RoomPreviewerView';
|
|
||||||
import { LimitedEditionCompletePlateView } from '../../../../shared/limited-edition/complete-plate/LimitedEditionCompletePlateView';
|
import { LimitedEditionCompletePlateView } from '../../../../shared/limited-edition/complete-plate/LimitedEditionCompletePlateView';
|
||||||
|
import { RoomPreviewerView } from '../../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { GetOfferName } from '../../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../../context/CatalogContext';
|
import { useCatalogContext } from '../../../context/CatalogContext';
|
||||||
import { GetOfferName } from '../../../utils/CatalogUtilities';
|
|
||||||
import { CatalogPurchaseView } from '../purchase/CatalogPurchaseView';
|
import { CatalogPurchaseView } from '../purchase/CatalogPurchaseView';
|
||||||
import { CatalogLayoutSearchResultViewProps } from './CatalogLayoutSearchResultView.types';
|
import { CatalogLayoutSearchResultViewProps } from './CatalogLayoutSearchResultView.types';
|
||||||
import { CatalogSearchResultOffersView } from './offers/CatalogSearchResultOffersView';
|
import { CatalogSearchResultOffersView } from './offers/CatalogSearchResultOffersView';
|
||||||
|
@ -2,9 +2,9 @@ import { ICatalogPageData, IFurnitureData } from 'nitro-renderer';
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { GetSessionDataManager } from '../../../../api';
|
import { GetSessionDataManager } from '../../../../api';
|
||||||
import { LocalizeText } from '../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../utils/LocalizeText';
|
||||||
|
import { GetOfferNodes } from '../../common/CatalogUtilities';
|
||||||
import { useCatalogContext } from '../../context/CatalogContext';
|
import { useCatalogContext } from '../../context/CatalogContext';
|
||||||
import { CatalogActions } from '../../reducers/CatalogReducer';
|
import { CatalogActions } from '../../reducers/CatalogReducer';
|
||||||
import { GetOfferNodes } from '../../utils/CatalogUtilities';
|
|
||||||
import { CatalogSearchViewProps } from './CatalogSearchView.types';
|
import { CatalogSearchViewProps } from './CatalogSearchView.types';
|
||||||
|
|
||||||
export const CatalogSearchView: FC<CatalogSearchViewProps> = props =>
|
export const CatalogSearchView: FC<CatalogSearchViewProps> = props =>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
import { BadgesEvent, BotAddedToInventoryEvent, BotInventoryMessageEvent, BotRemovedFromInventoryEvent, FurnitureListAddOrUpdateEvent, FurnitureListEvent, FurnitureListInvalidateEvent, FurnitureListItemParser, FurnitureListRemovedEvent, FurniturePostItPlacedEvent, PetAddedToInventoryEvent, PetData, PetInventoryEvent, PetRemovedFromInventory } from 'nitro-renderer';
|
import { BadgesEvent, BotAddedToInventoryEvent, BotInventoryMessageEvent, BotRemovedFromInventoryEvent, FurnitureListAddOrUpdateEvent, FurnitureListEvent, FurnitureListInvalidateEvent, FurnitureListItemParser, FurnitureListRemovedEvent, FurniturePostItPlacedEvent, PetAddedToInventoryEvent, PetData, PetInventoryEvent, PetRemovedFromInventory } from 'nitro-renderer';
|
||||||
import { FC, useCallback } from 'react';
|
import { FC, useCallback } from 'react';
|
||||||
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
||||||
|
import { mergeFurniFragments } from './common/FurnitureUtilities';
|
||||||
|
import { mergePetFragments } from './common/PetUtilities';
|
||||||
import { useInventoryContext } from './context/InventoryContext';
|
import { useInventoryContext } from './context/InventoryContext';
|
||||||
import { InventoryMessageHandlerProps } from './InventoryMessageHandler.types';
|
import { InventoryMessageHandlerProps } from './InventoryMessageHandler.types';
|
||||||
import { InventoryBadgeActions } from './reducers/InventoryBadgeReducer';
|
import { InventoryBadgeActions } from './reducers/InventoryBadgeReducer';
|
||||||
import { InventoryBotActions } from './reducers/InventoryBotReducer';
|
import { InventoryBotActions } from './reducers/InventoryBotReducer';
|
||||||
import { InventoryFurnitureActions } from './reducers/InventoryFurnitureReducer';
|
import { InventoryFurnitureActions } from './reducers/InventoryFurnitureReducer';
|
||||||
import { InventoryPetActions } from './reducers/InventoryPetReducer';
|
import { InventoryPetActions } from './reducers/InventoryPetReducer';
|
||||||
import { mergeFurniFragments } from './utils/FurnitureUtilities';
|
|
||||||
import { mergePetFragments } from './utils/PetUtilities';
|
|
||||||
|
|
||||||
let furniMsgFragments: Map<number, FurnitureListItemParser>[] = null;
|
let furniMsgFragments: Map<number, FurnitureListItemParser>[] = null;
|
||||||
let petMsgFragments: Map<number, PetData>[] = null;
|
let petMsgFragments: Map<number, PetData>[] = null;
|
||||||
|
@ -7,6 +7,7 @@ import { useRoomSessionManagerEvent } from '../../hooks/events/nitro/session/roo
|
|||||||
import { useUiEvent } from '../../hooks/events/ui/ui-event';
|
import { useUiEvent } from '../../hooks/events/ui/ui-event';
|
||||||
import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout';
|
import { NitroCardContentView, NitroCardHeaderView, NitroCardTabsItemView, NitroCardTabsView, NitroCardView } from '../../layout';
|
||||||
import { LocalizeText } from '../../utils/LocalizeText';
|
import { LocalizeText } from '../../utils/LocalizeText';
|
||||||
|
import { isObjectMoverRequested, setObjectMoverRequested } from './common/InventoryUtilities';
|
||||||
import { InventoryContextProvider } from './context/InventoryContext';
|
import { InventoryContextProvider } from './context/InventoryContext';
|
||||||
import { InventoryMessageHandler } from './InventoryMessageHandler';
|
import { InventoryMessageHandler } from './InventoryMessageHandler';
|
||||||
import { InventoryTabs, InventoryViewProps } from './InventoryView.types';
|
import { InventoryTabs, InventoryViewProps } from './InventoryView.types';
|
||||||
@ -14,7 +15,6 @@ import { initialInventoryBadge, InventoryBadgeReducer } from './reducers/Invento
|
|||||||
import { initialInventoryBot, InventoryBotReducer } from './reducers/InventoryBotReducer';
|
import { initialInventoryBot, InventoryBotReducer } from './reducers/InventoryBotReducer';
|
||||||
import { initialInventoryFurniture, InventoryFurnitureReducer } from './reducers/InventoryFurnitureReducer';
|
import { initialInventoryFurniture, InventoryFurnitureReducer } from './reducers/InventoryFurnitureReducer';
|
||||||
import { initialInventoryPet, InventoryPetReducer } from './reducers/InventoryPetReducer';
|
import { initialInventoryPet, InventoryPetReducer } from './reducers/InventoryPetReducer';
|
||||||
import { isObjectMoverRequested, setObjectMoverRequested } from './utils/InventoryUtilities';
|
|
||||||
import { InventoryBadgeView } from './views/badge/InventoryBadgeView';
|
import { InventoryBadgeView } from './views/badge/InventoryBadgeView';
|
||||||
import { InventoryBotView } from './views/bot/InventoryBotView';
|
import { InventoryBotView } from './views/bot/InventoryBotView';
|
||||||
import { InventoryFurnitureView } from './views/furniture/InventoryFurnitureView';
|
import { InventoryFurnitureView } from './views/furniture/InventoryFurnitureView';
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { BotData } from 'nitro-renderer';
|
import { BotData } from 'nitro-renderer';
|
||||||
import { Reducer } from 'react';
|
import { Reducer } from 'react';
|
||||||
import { BotItem } from '../utils/BotItem';
|
import { BotItem } from '../common/BotItem';
|
||||||
import { addSingleBotItem, processBotFragment, removeBotItemById } from '../utils/BotUtilities';
|
import { addSingleBotItem, processBotFragment, removeBotItemById } from '../common/BotUtilities';
|
||||||
|
|
||||||
export interface IInventoryBotState
|
export interface IInventoryBotState
|
||||||
{
|
{
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
import { FurnitureListItemParser } from 'nitro-renderer';
|
import { FurnitureListItemParser } from 'nitro-renderer';
|
||||||
import { Reducer } from 'react';
|
import { Reducer } from 'react';
|
||||||
import { FurnitureItem } from '../utils/FurnitureItem';
|
import { FurnitureItem } from '../common/FurnitureItem';
|
||||||
import { addFurnitureItem, processFurniFragment, removeFurniItemById } from '../utils/FurnitureUtilities';
|
import { addFurnitureItem, processFurniFragment, removeFurniItemById } from '../common/FurnitureUtilities';
|
||||||
import { GroupItem } from '../utils/GroupItem';
|
import { GroupItem } from '../common/GroupItem';
|
||||||
|
|
||||||
export interface IInventoryFurnitureState
|
export interface IInventoryFurnitureState
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import { PetData } from 'nitro-renderer';
|
import { PetData } from 'nitro-renderer';
|
||||||
import { Reducer } from 'react';
|
import { Reducer } from 'react';
|
||||||
import { PetItem } from '../utils/PetItem';
|
import { PetItem } from '../common/PetItem';
|
||||||
import { addSinglePetItem, processPetFragment, removePetItemById } from '../utils/PetUtilities';
|
import { addSinglePetItem, processPetFragment, removePetItemById } from '../common/PetUtilities';
|
||||||
|
|
||||||
export interface IInventoryPetState
|
export interface IInventoryPetState
|
||||||
{
|
{
|
||||||
|
@ -3,10 +3,10 @@ import { FC, useEffect } from 'react';
|
|||||||
import { GetRoomEngine } from '../../../../api';
|
import { GetRoomEngine } from '../../../../api';
|
||||||
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
||||||
import { LocalizeText } from '../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { attemptBotPlacement } from '../../common/BotUtilities';
|
||||||
import { useInventoryContext } from '../../context/InventoryContext';
|
import { useInventoryContext } from '../../context/InventoryContext';
|
||||||
import { InventoryBotActions } from '../../reducers/InventoryBotReducer';
|
import { InventoryBotActions } from '../../reducers/InventoryBotReducer';
|
||||||
import { attemptBotPlacement } from '../../utils/BotUtilities';
|
|
||||||
import { InventoryBotViewProps } from './InventoryBotView.types';
|
import { InventoryBotViewProps } from './InventoryBotView.types';
|
||||||
import { InventoryBotResultsView } from './results/InventoryBotResultsView';
|
import { InventoryBotResultsView } from './results/InventoryBotResultsView';
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { MouseEventType } from 'nitro-renderer';
|
import { MouseEventType } from 'nitro-renderer';
|
||||||
import { FC, MouseEvent, useCallback, useState } from 'react';
|
import { FC, MouseEvent, useCallback, useState } from 'react';
|
||||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||||
|
import { attemptBotPlacement } from '../../../common/BotUtilities';
|
||||||
import { useInventoryContext } from '../../../context/InventoryContext';
|
import { useInventoryContext } from '../../../context/InventoryContext';
|
||||||
import { InventoryBotActions } from '../../../reducers/InventoryBotReducer';
|
import { InventoryBotActions } from '../../../reducers/InventoryBotReducer';
|
||||||
import { attemptBotPlacement } from '../../../utils/BotUtilities';
|
|
||||||
import { InventoryBotItemViewProps } from './InventoryBotItemView.types';
|
import { InventoryBotItemViewProps } from './InventoryBotItemView.types';
|
||||||
|
|
||||||
export const InventoryBotItemView: FC<InventoryBotItemViewProps> = props =>
|
export const InventoryBotItemView: FC<InventoryBotItemViewProps> = props =>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BotItem } from '../../../utils/BotItem';
|
import { BotItem } from '../../../common/BotItem';
|
||||||
|
|
||||||
export interface InventoryBotItemViewProps
|
export interface InventoryBotItemViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { BotItem } from '../../../utils/BotItem';
|
import { BotItem } from '../../../common/BotItem';
|
||||||
|
|
||||||
export interface InventoryBotResultsViewProps
|
export interface InventoryBotResultsViewProps
|
||||||
{
|
{
|
||||||
|
@ -3,13 +3,13 @@ import { FC, useEffect, useState } from 'react';
|
|||||||
import { GetRoomEngine } from '../../../../api';
|
import { GetRoomEngine } from '../../../../api';
|
||||||
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
||||||
import { LocalizeText } from '../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../room-previewer/RoomPreviewerView';
|
|
||||||
import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView';
|
import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/compact-plate/LimitedEditionCompactPlateView';
|
||||||
|
import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { FurniCategory } from '../../common/FurniCategory';
|
||||||
|
import { attemptItemPlacement } from '../../common/FurnitureUtilities';
|
||||||
|
import { GroupItem } from '../../common/GroupItem';
|
||||||
import { useInventoryContext } from '../../context/InventoryContext';
|
import { useInventoryContext } from '../../context/InventoryContext';
|
||||||
import { InventoryFurnitureActions } from '../../reducers/InventoryFurnitureReducer';
|
import { InventoryFurnitureActions } from '../../reducers/InventoryFurnitureReducer';
|
||||||
import { FurniCategory } from '../../utils/FurniCategory';
|
|
||||||
import { attemptItemPlacement } from '../../utils/FurnitureUtilities';
|
|
||||||
import { GroupItem } from '../../utils/GroupItem';
|
|
||||||
import { InventoryFurnitureViewProps } from './InventoryFurnitureView.types';
|
import { InventoryFurnitureViewProps } from './InventoryFurnitureView.types';
|
||||||
import { InventoryFurnitureResultsView } from './results/InventoryFurnitureResultsView';
|
import { InventoryFurnitureResultsView } from './results/InventoryFurnitureResultsView';
|
||||||
import { InventoryFurnitureSearchView } from './search/InventoryFurnitureSearchView';
|
import { InventoryFurnitureSearchView } from './search/InventoryFurnitureSearchView';
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { MouseEventType } from 'nitro-renderer';
|
import { MouseEventType } from 'nitro-renderer';
|
||||||
import { FC, MouseEvent, useCallback, useState } from 'react';
|
import { FC, MouseEvent, useCallback, useState } from 'react';
|
||||||
import { LimitedEditionStyledNumberView } from '../../../../shared/limited-edition/styled-number/LimitedEditionStyledNumberView';
|
import { LimitedEditionStyledNumberView } from '../../../../shared/limited-edition/styled-number/LimitedEditionStyledNumberView';
|
||||||
|
import { attemptItemPlacement } from '../../../common/FurnitureUtilities';
|
||||||
import { useInventoryContext } from '../../../context/InventoryContext';
|
import { useInventoryContext } from '../../../context/InventoryContext';
|
||||||
import { InventoryFurnitureActions } from '../../../reducers/InventoryFurnitureReducer';
|
import { InventoryFurnitureActions } from '../../../reducers/InventoryFurnitureReducer';
|
||||||
import { attemptItemPlacement } from '../../../utils/FurnitureUtilities';
|
|
||||||
import { InventoryFurnitureItemViewProps } from './InventoryFurnitureItemView.types';
|
import { InventoryFurnitureItemViewProps } from './InventoryFurnitureItemView.types';
|
||||||
|
|
||||||
export const InventoryFurnitureItemView: FC<InventoryFurnitureItemViewProps> = props =>
|
export const InventoryFurnitureItemView: FC<InventoryFurnitureItemViewProps> = props =>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { GroupItem } from '../../../utils/GroupItem';
|
import { GroupItem } from '../../../common/GroupItem';
|
||||||
|
|
||||||
export interface InventoryFurnitureItemViewProps
|
export interface InventoryFurnitureItemViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { GroupItem } from '../../../utils/GroupItem';
|
import { GroupItem } from '../../../common/GroupItem';
|
||||||
|
|
||||||
export interface InventoryFurnitureResultsViewProps
|
export interface InventoryFurnitureResultsViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Dispatch, SetStateAction } from 'react';
|
import { Dispatch, SetStateAction } from 'react';
|
||||||
import { GroupItem } from '../../../utils/GroupItem';
|
import { GroupItem } from '../../../common/GroupItem';
|
||||||
|
|
||||||
export interface InventoryFurnitureSearchViewProps
|
export interface InventoryFurnitureSearchViewProps
|
||||||
{
|
{
|
||||||
|
@ -3,10 +3,10 @@ import { FC, useEffect } from 'react';
|
|||||||
import { GetRoomEngine } from '../../../../api';
|
import { GetRoomEngine } from '../../../../api';
|
||||||
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../../../hooks/messages/message-event';
|
||||||
import { LocalizeText } from '../../../../utils/LocalizeText';
|
import { LocalizeText } from '../../../../utils/LocalizeText';
|
||||||
import { RoomPreviewerView } from '../../../room-previewer/RoomPreviewerView';
|
import { RoomPreviewerView } from '../../../shared/room-previewer/RoomPreviewerView';
|
||||||
|
import { attemptPetPlacement } from '../../common/PetUtilities';
|
||||||
import { useInventoryContext } from '../../context/InventoryContext';
|
import { useInventoryContext } from '../../context/InventoryContext';
|
||||||
import { InventoryPetActions } from '../../reducers/InventoryPetReducer';
|
import { InventoryPetActions } from '../../reducers/InventoryPetReducer';
|
||||||
import { attemptPetPlacement } from '../../utils/PetUtilities';
|
|
||||||
import { InventoryPetViewProps } from './InventoryPetView.types';
|
import { InventoryPetViewProps } from './InventoryPetView.types';
|
||||||
import { InventoryPetResultsView } from './results/InventoryPetResultsView';
|
import { InventoryPetResultsView } from './results/InventoryPetResultsView';
|
||||||
|
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
import { MouseEventType } from 'nitro-renderer';
|
import { MouseEventType } from 'nitro-renderer';
|
||||||
import { FC, MouseEvent, useCallback, useState } from 'react';
|
import { FC, MouseEvent, useCallback, useState } from 'react';
|
||||||
import { PetImageView } from '../../../../shared/pet-image/PetImageView';
|
import { PetImageView } from '../../../../shared/pet-image/PetImageView';
|
||||||
|
import { attemptPetPlacement } from '../../../common/PetUtilities';
|
||||||
import { useInventoryContext } from '../../../context/InventoryContext';
|
import { useInventoryContext } from '../../../context/InventoryContext';
|
||||||
import { InventoryPetActions } from '../../../reducers/InventoryPetReducer';
|
import { InventoryPetActions } from '../../../reducers/InventoryPetReducer';
|
||||||
import { attemptPetPlacement } from '../../../utils/PetUtilities';
|
|
||||||
import { InventoryPetItemViewProps } from './InventoryPetItemView.types';
|
import { InventoryPetItemViewProps } from './InventoryPetItemView.types';
|
||||||
|
|
||||||
export const InventoryPetItemView: FC<InventoryPetItemViewProps> = props =>
|
export const InventoryPetItemView: FC<InventoryPetItemViewProps> = props =>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PetItem } from '../../../utils/PetItem';
|
import { PetItem } from '../../../common/PetItem';
|
||||||
|
|
||||||
export interface InventoryPetItemViewProps
|
export interface InventoryPetItemViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { PetItem } from '../../../utils/PetItem';
|
import { PetItem } from '../../../common/PetItem';
|
||||||
|
|
||||||
export interface InventoryPetResultsViewProps
|
export interface InventoryPetResultsViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
import { UserCreditsEvent, UserCurrencyEvent, UserCurrencyUpdateEvent } from 'nitro-renderer';
|
import { UserCreditsEvent, UserCurrencyEvent, UserCurrencyUpdateEvent } from 'nitro-renderer';
|
||||||
import { FC, useCallback } from 'react';
|
import { FC, useCallback } from 'react';
|
||||||
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
import { CreateMessageHook } from '../../hooks/messages/message-event';
|
||||||
|
import { Currency } from './common/Currency';
|
||||||
import { usePurseContext } from './context/PurseContext';
|
import { usePurseContext } from './context/PurseContext';
|
||||||
import { PurseMessageHandlerProps } from './PurseMessageHandler.types';
|
import { PurseMessageHandlerProps } from './PurseMessageHandler.types';
|
||||||
import { PurseActions } from './reducers/PurseReducer';
|
import { PurseActions } from './reducers/PurseReducer';
|
||||||
import { Currency } from './utils/Currency';
|
|
||||||
|
|
||||||
export const PurseMessageHandler: FC<PurseMessageHandlerProps> = props =>
|
export const PurseMessageHandler: FC<PurseMessageHandlerProps> = props =>
|
||||||
{
|
{
|
||||||
|
@ -4,12 +4,12 @@ import { NotificationCenterEvent } from '../../events';
|
|||||||
import { dispatchUiEvent } from '../../hooks/events';
|
import { dispatchUiEvent } from '../../hooks/events';
|
||||||
import { SendMessageHook } from '../../hooks/messages/message-event';
|
import { SendMessageHook } from '../../hooks/messages/message-event';
|
||||||
import { GetConfiguration } from '../../utils/GetConfiguration';
|
import { GetConfiguration } from '../../utils/GetConfiguration';
|
||||||
|
import { SetLastCurrencies } from './common/CurrencyHelper';
|
||||||
import { PurseContextProvider } from './context/PurseContext';
|
import { PurseContextProvider } from './context/PurseContext';
|
||||||
import { CurrencyView } from './currency/CurrencyView';
|
import { CurrencyView } from './currency/CurrencyView';
|
||||||
import { PurseMessageHandler } from './PurseMessageHandler';
|
import { PurseMessageHandler } from './PurseMessageHandler';
|
||||||
import { PurseViewProps } from './PurseView.types';
|
import { PurseViewProps } from './PurseView.types';
|
||||||
import { initialPurse, PurseReducer } from './reducers/PurseReducer';
|
import { initialPurse, PurseReducer } from './reducers/PurseReducer';
|
||||||
import { SetLastCurrencies } from './utils/CurrencyHelper';
|
|
||||||
|
|
||||||
export const PurseView: FC<PurseViewProps> = props =>
|
export const PurseView: FC<PurseViewProps> = props =>
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { Currency } from '../utils/Currency';
|
import { Currency } from '../common/Currency';
|
||||||
|
|
||||||
export interface CurrencyViewProps
|
export interface CurrencyViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { Reducer } from 'react';
|
import { Reducer } from 'react';
|
||||||
import { Currency } from '../utils/Currency';
|
import { Currency } from '../common/Currency';
|
||||||
|
|
||||||
export interface IPurseState
|
export interface IPurseState
|
||||||
{
|
{
|
||||||
|
@ -2,7 +2,7 @@ import { IGetImageListener, ImageResult, TextureUtils, Vector3d } from 'nitro-re
|
|||||||
import { RenderTexture } from 'pixi.js';
|
import { RenderTexture } from 'pixi.js';
|
||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { GetRoomEngine } from '../../../api';
|
import { GetRoomEngine } from '../../../api';
|
||||||
import { ProductTypeEnum } from '../../catalog/enums/ProductTypeEnum';
|
import { ProductTypeEnum } from '../../catalog/common/ProductTypeEnum';
|
||||||
import { FurniImageViewProps } from './FurniImageView.types';
|
import { FurniImageViewProps } from './FurniImageView.types';
|
||||||
|
|
||||||
export const FurniImageView: FC<FurniImageViewProps> = props =>
|
export const FurniImageView: FC<FurniImageViewProps> = props =>
|
||||||
|
Loading…
Reference in New Issue
Block a user