mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-23 06:40:50 +01:00
Move room component
This commit is contained in:
parent
ecc5633567
commit
878d4c8972
@ -1,10 +1,10 @@
|
||||
import { IFurnitureData, NitroEvent, ObjectDataFactory, PetFigureData, PetRespectComposer, PetSupplementComposer, PetType, RoomControllerLevel, RoomModerationSettings, RoomObjectCategory, RoomObjectOperationType, RoomObjectType, RoomObjectVariable, RoomSessionPetInfoUpdateEvent, RoomSessionUserBadgesEvent, RoomSessionUserFigureUpdateEvent, RoomTradingLevelEnum, RoomUnitDropHandItemComposer, RoomUnitGiveHandItemComposer, RoomUnitGiveHandItemPetComposer, RoomUserData, RoomWidgetEnum, RoomWidgetEnumItemExtradataParameter, Vector3d } from '@nitrots/nitro-renderer';
|
||||
import { SendMessageComposer } from '../../..';
|
||||
import { GetNitroInstance, GetRoomEngine, GetSessionDataManager, IsOwnerOfFurniture } from '../../../..';
|
||||
import { PetSupplementEnum } from '../../../../../components/room/widgets/avatar-info/common/PetSupplementEnum';
|
||||
import { FriendsSendFriendRequestEvent, HelpReportUserEvent, InventoryTradeRequestEvent, WiredSelectObjectEvent } from '../../../../../events';
|
||||
import { DispatchUiEvent } from '../../../../../hooks';
|
||||
import { FriendsHelper } from '../../../../../views/friends/common/FriendsHelper';
|
||||
import { PetSupplementEnum } from '../../../../../views/room/widgets/avatar-info/common/PetSupplementEnum';
|
||||
import { LocalizeText } from '../../../../utils/LocalizeText';
|
||||
import { RoomWidgetObjectNameEvent, RoomWidgetUpdateChatInputContentEvent, RoomWidgetUpdateEvent, RoomWidgetUpdateInfostandFurniEvent, RoomWidgetUpdateInfostandPetEvent, RoomWidgetUpdateInfostandRentableBotEvent, RoomWidgetUpdateInfostandUserEvent } from '../events';
|
||||
import { RoomWidgetChangeMottoMessage, RoomWidgetFurniActionMessage, RoomWidgetMessage, RoomWidgetRoomObjectMessage, RoomWidgetUserActionMessage } from '../messages';
|
||||
|
@ -12,6 +12,7 @@
|
||||
@import './navigator/NavigatorView';
|
||||
@import './purse/PurseView';
|
||||
@import './right-side/RightSideView';
|
||||
@import './room/RoomView';
|
||||
@import './toolbar/ToolbarView';
|
||||
@import './user-profile/UserProfileVew';
|
||||
@import './user-settings/UserSettingsView';
|
||||
|
@ -21,7 +21,7 @@ import { InventoryView } from '../inventory/InventoryView';
|
||||
import { ModToolsView } from '../mod-tools/ModToolsView';
|
||||
import { NavigatorView } from '../navigator/NavigatorView';
|
||||
import { RightSideView } from '../right-side/RightSideView';
|
||||
import { RoomHostView } from '../room-host/RoomHostView';
|
||||
import { RoomHostView } from '../room/RoomHostView';
|
||||
import { ToolbarView } from '../toolbar/ToolbarView';
|
||||
import { UserProfileView } from '../user-profile/UserProfileView';
|
||||
import { UserSettingsView } from '../user-settings/UserSettingsView';
|
||||
|
@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react';
|
||||
import { GetRoomSession, SetActiveRoomId, StartRoomSession } from '../../api';
|
||||
import { Base, TransitionAnimation, TransitionAnimationTypes } from '../../common';
|
||||
import { UseRoomEngineEvent, UseRoomSessionManagerEvent } from '../../hooks';
|
||||
import { RoomView } from '../../views/room/RoomView';
|
||||
import { RoomView } from './RoomView';
|
||||
|
||||
export const RoomHostView: FC<{}> = props =>
|
||||
{
|
@ -3,8 +3,8 @@ import { FC, useCallback } from 'react';
|
||||
import { CanManipulateFurniture, GetRoomEngine, GetSessionDataManager, IsFurnitureSelectionDisabled, LocalizeText, ProcessRoomObjectOperation, RoomWidgetFurniToWidgetMessage, RoomWidgetUpdateRoomEngineEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../api';
|
||||
import { FriendRequestEvent } from '../../../events';
|
||||
import { UseRoomEngineEvent, UseRoomSessionManagerEvent, UseUiEvent } from '../../../hooks';
|
||||
import { NotificationAlertType } from '../../notification-center/common/NotificationAlertType';
|
||||
import { NotificationUtilities } from '../../notification-center/common/NotificationUtilities';
|
||||
import { NotificationAlertType } from '../../../views/notification-center/common/NotificationAlertType';
|
||||
import { NotificationUtilities } from '../../../views/notification-center/common/NotificationUtilities';
|
||||
import { useRoomContext } from '../RoomContext';
|
||||
import { AvatarInfoWidgetView } from './avatar-info/AvatarInfoWidgetView';
|
||||
import { ChatInputView } from './chat-input/ChatInputView';
|
@ -2,8 +2,8 @@ import { IFurnitureData, PetCustomPart, PetFigureData, RoomObjectCategory, RoomO
|
||||
import { FC, useCallback, useEffect, useMemo, useState } from 'react';
|
||||
import { GetFurnitureDataForRoomObject, GetRoomEngine, LocalizeText, RoomWidgetUseProductMessage, UseProductItem } from '../../../../api';
|
||||
import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../common';
|
||||
import { FurniCategory } from '../../../../components/inventory/common/FurniCategory';
|
||||
import { PetImageView } from '../../../shared/pet-image/PetImageView';
|
||||
import { PetImageView } from '../../../../views/shared/pet-image/PetImageView';
|
||||
import { FurniCategory } from '../../../inventory/common/FurniCategory';
|
||||
import { useRoomContext } from '../../RoomContext';
|
||||
|
||||
interface AvatarInfoUseProductConfirmViewProps
|
@ -1,7 +1,7 @@
|
||||
import { RoomObjectCategory, RoomObjectType } from '@nitrots/nitro-renderer';
|
||||
import { FC, useCallback, useEffect, useState } from 'react';
|
||||
import { GetFurnitureDataForRoomObject, LocalizeText, UseProductItem } from '../../../../api';
|
||||
import { FurniCategory } from '../../../../components/inventory/common/FurniCategory';
|
||||
import { FurniCategory } from '../../../inventory/common/FurniCategory';
|
||||
import { useRoomContext } from '../../RoomContext';
|
||||
import { ContextMenuHeaderView } from '../context-menu/ContextMenuHeaderView';
|
||||
import { ContextMenuListItemView } from '../context-menu/ContextMenuListItemView';
|
@ -2,7 +2,7 @@ import { IFurnitureData, RoomObjectCategory } from '@nitrots/nitro-renderer';
|
||||
import { FC, useEffect, useState } from 'react';
|
||||
import { GetFurnitureDataForRoomObject, LocalizeText, RoomWidgetUseProductMessage } from '../../../../../api';
|
||||
import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common';
|
||||
import { FurniCategory } from '../../../../../components/inventory/common/FurniCategory';
|
||||
import { FurniCategory } from '../../../../inventory/common/FurniCategory';
|
||||
import { useRoomContext } from '../../../RoomContext';
|
||||
|
||||
interface MonsterPlantSeedConfirmViewProps
|
@ -2,9 +2,9 @@ import { RedeemItemClothingComposer, RoomObjectCategory, UserFigureComposer } fr
|
||||
import { FC, useEffect, useState } from 'react';
|
||||
import { GetAvatarRenderManager, GetConnection, GetFurnitureDataForRoomObject, GetSessionDataManager, LocalizeText } from '../../../../../api';
|
||||
import { Base, Button, Column, Flex, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common';
|
||||
import { FigureData } from '../../../../../components/avatar-editor/common/FigureData';
|
||||
import { FurniCategory } from '../../../../../components/inventory/common/FurniCategory';
|
||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../../views/shared/avatar-image/AvatarImageView';
|
||||
import { FigureData } from '../../../../avatar-editor/common/FigureData';
|
||||
import { FurniCategory } from '../../../../inventory/common/FurniCategory';
|
||||
import { useRoomContext } from '../../../RoomContext';
|
||||
|
||||
interface PurchasableClothingConfirmViewProps
|
@ -3,7 +3,7 @@ import { FC, useCallback, useState } from 'react';
|
||||
import { GetRoomEngine, GetRoomSession, LocalizeText, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api';
|
||||
import { DraggableWindow, NitroCardContentView, NitroCardHeaderView, NitroCardView } from '../../../../../common';
|
||||
import { UseEventDispatcherHook, UseMessageEventHook, UseRoomEngineEvent } from '../../../../../hooks';
|
||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../../views/shared/avatar-image/AvatarImageView';
|
||||
import { useRoomContext } from '../../../RoomContext';
|
||||
import { FurnitureEngravingLockData } from './FriendFurniLockData';
|
||||
|
@ -2,9 +2,9 @@ import { RoomObjectCategory, RoomObjectOperationType } from '@nitrots/nitro-rend
|
||||
import { FC, useCallback, useMemo, useState } from 'react';
|
||||
import { CreateLinkEvent, GetRoomEngine, GetSessionDataManager, LocalizeText, RoomWidgetPresentOpenMessage, RoomWidgetUpdatePresentDataEvent, RoomWidgetUpdateRoomObjectEvent } from '../../../../../api';
|
||||
import { Button, Column, Flex, LayoutGiftTagView, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common';
|
||||
import { ProductTypeEnum } from '../../../../../components/catalog/common/ProductTypeEnum';
|
||||
import { BatchUpdates } from '../../../../../hooks';
|
||||
import { UseEventDispatcherHook } from '../../../../../hooks/events/UseEventDispatcherHook';
|
||||
import { ProductTypeEnum } from '../../../../catalog/common/ProductTypeEnum';
|
||||
import { useRoomContext } from '../../../RoomContext';
|
||||
|
||||
const FLOOR: string = 'floor';
|
@ -1,6 +1,6 @@
|
||||
import { FC } from 'react';
|
||||
import { Base, LayoutCurrencyIcon } from '../../../../../common';
|
||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../../views/shared/avatar-image/AvatarImageView';
|
||||
|
||||
interface FurnitureMannequinPreviewViewProps
|
||||
{
|
@ -3,7 +3,7 @@ import { FC, KeyboardEvent, useCallback, useEffect, useState } from 'react';
|
||||
import { GetAvatarRenderManager, GetSessionDataManager, LocalizeText, RoomWidgetUpdateMannequinEvent, SendMessageComposer } from '../../../../../api';
|
||||
import { Base, Button, Column, Flex, LayoutCurrencyIcon, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../../../../common';
|
||||
import { BatchUpdates, UseEventDispatcherHook } from '../../../../../hooks';
|
||||
import { AvatarImageView } from '../../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../../views/shared/avatar-image/AvatarImageView';
|
||||
import { useRoomContext } from '../../../RoomContext';
|
||||
|
||||
const MODE_NONE: number = -1;
|
@ -2,7 +2,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { FC } from 'react';
|
||||
import { LocalizeText, RoomWidgetUpdateInfostandUserEvent } from '../../../../api';
|
||||
import { Column, Flex, LayoutBadgeImageView, Text } from '../../../../common';
|
||||
import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../views/shared/avatar-image/AvatarImageView';
|
||||
|
||||
interface InfoStandWidgetBotViewProps
|
||||
{
|
@ -4,7 +4,7 @@ import { FC, useCallback, useEffect, useState } from 'react';
|
||||
import { CreateLinkEvent, GetGroupInformation, GetRoomEngine, LocalizeText, RoomWidgetFurniActionMessage, RoomWidgetUpdateInfostandFurniEvent, SendMessageComposer } from '../../../../api';
|
||||
import { Button, Column, Flex, LayoutBadgeImageView, LayoutRarityLevelView, Text, UserProfileIconView } from '../../../../common';
|
||||
import { BatchUpdates, UseMessageEventHook } from '../../../../hooks';
|
||||
import { LimitedEditionCompactPlateView } from '../../../shared/limited-edition/LimitedEditionCompactPlateView';
|
||||
import { LimitedEditionCompactPlateView } from '../../../../views/shared/limited-edition/LimitedEditionCompactPlateView';
|
||||
import { useRoomContext } from '../../RoomContext';
|
||||
|
||||
interface InfoStandWidgetFurniViewProps
|
@ -2,7 +2,7 @@ import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
|
||||
import { FC } from 'react';
|
||||
import { LocalizeText, RoomWidgetUpdateInfostandPetEvent } from '../../../../api';
|
||||
import { Base, Column, Flex, Text, UserProfileIconView } from '../../../../common';
|
||||
import { PetImageView } from '../../../shared/pet-image/PetImageView';
|
||||
import { PetImageView } from '../../../../views/shared/pet-image/PetImageView';
|
||||
|
||||
interface InfoStandWidgetPetViewProps
|
||||
{
|
@ -3,7 +3,7 @@ import { BotRemoveComposer } from '@nitrots/nitro-renderer';
|
||||
import { FC, useMemo } from 'react';
|
||||
import { LocalizeText, RoomWidgetUpdateInfostandRentableBotEvent, SendMessageComposer } from '../../../../api';
|
||||
import { Button, Column, Flex, LayoutBadgeImageView, Text, UserProfileIconView } from '../../../../common';
|
||||
import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../views/shared/avatar-image/AvatarImageView';
|
||||
import { BotSkillsEnum } from '../avatar-info/common/BotSkillsEnum';
|
||||
|
||||
interface InfoStandWidgetRentableBotViewProps
|
@ -4,7 +4,7 @@ import { FC, FocusEvent, KeyboardEvent, useCallback, useEffect, useState } from
|
||||
import { GetConfiguration, GetGroupInformation, LocalizeText, RoomWidgetChangeMottoMessage, RoomWidgetUpdateInfostandUserEvent, SendMessageComposer } from '../../../../api';
|
||||
import { Base, Column, Flex, LayoutBadgeImageView, Text, UserProfileIconView } from '../../../../common';
|
||||
import { BatchUpdates, UseEventDispatcherHook, UseMessageEventHook } from '../../../../hooks';
|
||||
import { AvatarImageView } from '../../../shared/avatar-image/AvatarImageView';
|
||||
import { AvatarImageView } from '../../../../views/shared/avatar-image/AvatarImageView';
|
||||
import { useRoomContext } from '../../RoomContext';
|
||||
import { InfoStandWidgetUserRelationshipsView } from './InfoStandWidgetUserRelationshipsView';
|
||||
|
@ -2,7 +2,6 @@
|
||||
@import "./friends/FriendsView";
|
||||
@import "./hotel-view/HotelView";
|
||||
@import "./notification-center/NotificationCenterView";
|
||||
@import "./room/RoomView";
|
||||
@import "./floorplan-editor/FloorplanEditorView";
|
||||
@import "./nitropedia/NitropediaView";
|
||||
@import "./hc-center/HcCenterView.scss";
|
||||
|
Loading…
Reference in New Issue
Block a user