From 2c8298a49329633ea4bdab803f204c61af475a7c Mon Sep 17 00:00:00 2001 From: billsonnn Date: Wed, 20 Mar 2024 22:39:51 -0400 Subject: [PATCH] Updates for new renderer --- .gitlab-ci.yml-disabled | 29 - .vscode/settings.json | 6 +- index.html | 1 + package.json | 38 +- src/App.tsx | 57 +- src/api/achievements/AchievementUtilities.ts | 10 +- src/api/avatar/AvatarEditorGridPartItem.ts | 5 +- src/api/avatar/AvatarEditorUtilities.ts | 16 +- src/api/avatar/BodyModel.ts | 3 +- src/api/avatar/FigureGenerator.ts | 3 +- src/api/catalog/CatalogUtilities.ts | 3 +- src/api/catalog/FurnitureOffer.ts | 2 +- src/api/catalog/GetImageIconUrlForProduct.ts | 2 +- src/api/catalog/PageLocalization.ts | 4 +- src/api/catalog/Product.ts | 6 +- src/api/events/DispatchMainEvent.ts | 5 +- src/api/friends/OpenMessengerChat.ts | 2 +- src/api/groups/GetGroupInformation.ts | 2 +- src/api/groups/GetGroupManager.ts | 2 +- src/api/groups/GetGroupMembers.ts | 2 +- src/api/groups/GroupBadgePart.ts | 1 - src/api/groups/ToggleFavoriteGroup.ts | 2 +- src/api/groups/TryJoinGroup.ts | 2 +- src/api/index.ts | 4 +- src/api/inventory/FurnitureUtilities.ts | 3 +- src/api/inventory/InventoryUtilities.ts | 4 +- src/api/inventory/PetUtilities.ts | 5 +- src/api/inventory/TradingUtilities.ts | 3 +- src/api/inventory/index.ts | 2 +- src/api/nitro/AddLinkEventTracker.ts | 7 - src/api/nitro/CreateLinkEvent.ts | 8 - src/api/nitro/GetCommunication.ts | 7 - src/api/nitro/GetConfiguration.ts | 6 - src/api/nitro/GetConfigurationManager.ts | 7 - src/api/nitro/GetConfigurationValue.ts | 6 + src/api/nitro/GetConnection.ts | 7 - src/api/nitro/GetLocalization.ts | 7 - src/api/nitro/GetNitroInstance.ts | 6 - src/api/nitro/OpenUrl.ts | 3 +- src/api/nitro/RemoveLinkEventTracker.ts | 7 - src/api/nitro/SendMessageComposer.ts | 5 +- src/api/nitro/avatar/GetAvatarPalette.ts | 7 - .../nitro/avatar/GetAvatarRenderManager.ts | 7 - src/api/nitro/avatar/GetAvatarSetType.ts | 7 - src/api/nitro/avatar/index.ts | 3 - .../camera/GetRoomCameraWidgetManager.ts | 7 - src/api/nitro/camera/index.ts | 1 - src/api/nitro/index.ts | 12 +- src/api/nitro/room/DispatchMouseEvent.ts | 3 +- src/api/nitro/room/DispatchTouchEvent.ts | 3 +- src/api/nitro/room/GetOwnRoomObject.ts | 5 +- src/api/nitro/room/GetRoomEngine.ts | 7 - src/api/nitro/room/GetRoomObjectBounds.ts | 2 +- .../nitro/room/GetRoomObjectScreenLocation.ts | 2 +- .../InitializeRoomInstanceRenderingCanvas.ts | 2 +- .../room/IsFurnitureSelectionDisabled.ts | 4 +- .../nitro/room/ProcessRoomObjectOperation.ts | 2 +- src/api/nitro/room/SetActiveRoomId.ts | 2 +- src/api/nitro/room/index.ts | 1 - .../nitro/session/CanManipulateFurniture.ts | 4 +- src/api/nitro/session/CreateRoomSession.ts | 2 +- src/api/nitro/session/GetClubMemberLevel.ts | 7 +- src/api/nitro/session/GetFurnitureData.ts | 3 +- .../GetFurnitureDataForProductOffer.ts | 3 +- .../session/GetFurnitureDataForRoomObject.ts | 4 +- .../session/GetProductDataForLocalization.ts | 3 +- src/api/nitro/session/GetRoomSession.ts | 8 +- .../nitro/session/GetRoomSessionManager.ts | 7 - .../nitro/session/GetSessionDataManager.ts | 7 - src/api/nitro/session/GoToDesktop.ts | 2 +- src/api/nitro/session/HasHabboClub.ts | 3 +- src/api/nitro/session/HasHabboVip.ts | 3 +- .../nitro/session/IsOwnerOfFloorFurniture.ts | 6 +- src/api/nitro/session/IsOwnerOfFurniture.ts | 3 +- src/api/nitro/session/StartRoomSession.ts | 3 +- src/api/nitro/session/VisitDesktop.ts | 4 +- src/api/nitro/session/index.ts | 2 - src/api/room/widgets/AvatarInfoUtilities.ts | 4 +- src/api/room/widgets/ChatBubbleMessage.ts | 4 +- src/api/room/widgets/ChatBubbleUtilities.ts | 3 +- .../room/widgets/FurnitureDimmerUtilities.ts | 3 +- src/api/room/widgets/MannequinUtilities.ts | 3 +- src/api/user/GetUserProfile.ts | 2 +- src/api/utils/FixedSizeStack.ts | 65 + src/api/utils/FriendlyTime.ts | 47 + src/api/utils/LocalizeBadgeDescription.ts | 4 +- src/api/utils/LocalizeBageName.ts | 4 +- src/api/utils/LocalizeText.ts | 4 +- src/api/utils/ProductImageUtility.ts | 3 +- src/api/utils/index.ts | 4 +- src/api/wired/WiredSelectionFilter.ts | 95 - src/api/wired/WiredSelectionVisualizer.ts | 9 +- src/api/wired/index.ts | 1 - src/assets/styles/bootstrap/_alert.scss | 3 +- src/assets/styles/bootstrap/_functions.scss | 6 +- src/assets/styles/bootstrap/_list-group.scss | 4 +- src/assets/styles/bootstrap/vendor/_rfs.scss | 11 +- src/common/layout/LayoutAvatarImageView.tsx | 3 +- src/common/layout/LayoutBadgeImageView.tsx | 14 +- src/common/layout/LayoutCurrencyIcon.tsx | 4 +- .../layout/LayoutFurniIconImageView.tsx | 2 +- src/common/layout/LayoutFurniImageView.tsx | 7 +- src/common/layout/LayoutGiftTagView.tsx | 4 +- src/common/layout/LayoutItemCountView.tsx | 2 +- src/common/layout/LayoutMiniCameraView.tsx | 6 +- .../layout/LayoutNotificationBubbleView.tsx | 2 +- src/common/layout/LayoutPetImageView.tsx | 3 +- src/common/layout/LayoutProgressBar.tsx | 4 +- src/common/layout/LayoutRarityLevelView.tsx | 2 +- .../layout/LayoutRoomObjectImageView.tsx | 6 +- src/common/layout/LayoutRoomPreviewerView.tsx | 8 +- src/common/layout/LayoutRoomThumbnailView.tsx | 6 +- src/common/layout/LayoutTrophyView.tsx | 5 +- src/common/utils/CreateTransitionToIcon.ts | 4 +- src/common/utils/FriendlyTimeView.tsx | 4 +- .../achievements/AchievementsView.tsx | 6 +- .../avatar-editor/AvatarEditorView.tsx | 8 +- .../views/AvatarEditorWardrobeView.tsx | 6 +- .../AvatarEditorFigureSetItemView.tsx | 4 +- .../avatar-editor/views/figure-set/index.ts | 2 + src/components/avatar-editor/views/index.ts | 6 + .../AvatarEditorPaletteSetItemView.tsx | 4 +- .../avatar-editor/views/palette-set/index.ts | 2 + src/components/camera/CameraWidgetView.tsx | 5 +- src/components/camera/index.ts | 4 + .../camera/views/CameraWidgetCaptureView.tsx | 4 +- .../camera/views/CameraWidgetCheckoutView.tsx | 8 +- .../views/editor/CameraWidgetEditorView.tsx | 6 +- .../camera/views/editor/effect-list/index.ts | 2 + src/components/camera/views/editor/index.ts | 2 + src/components/camera/views/index.ts | 5 + src/components/campaign/CalendarItemView.tsx | 5 +- src/components/campaign/CalendarView.tsx | 3 +- src/components/campaign/CampaignView.tsx | 6 +- src/components/catalog/CatalogView.tsx | 12 +- .../catalog-header/CatalogHeaderView.tsx | 6 +- .../views/catalog-icon/CatalogIconView.tsx | 6 +- .../CatalogRoomPreviewerView.tsx | 4 +- .../catalog/views/gift/CatalogGiftView.tsx | 6 +- .../views/page/common/CatalogSearchView.tsx | 4 +- .../page/layout/CatalogLayoutDefaultView.tsx | 4 +- .../CatalogLayoutGuildFrontpageView.tsx | 3 +- .../page/layout/CatalogLayoutPets3View.tsx | 4 +- .../layout/CatalogLayoutRoomBundleView.tsx | 4 +- .../layout/CatalogLayoutSingleBundleView.tsx | 4 +- .../layout/CatalogLayoutSoundMachineView.tsx | 12 +- .../page/layout/CatalogLayoutSpacesView.tsx | 3 +- .../CatalogLayoutFrontPageItemView.tsx | 4 +- .../CatalogLayoutFrontpage4View.tsx | 3 +- .../widgets/CatalogPurchaseWidgetView.tsx | 6 +- .../widgets/CatalogViewProductWidgetView.tsx | 4 +- .../views/targeted-offer/OfferBubbleView.tsx | 4 +- .../views/targeted-offer/OfferWindowView.tsx | 6 +- .../chat-history/ChatHistoryView.tsx | 6 +- .../floorplan-editor/FloorplanEditorView.tsx | 8 +- .../common/FloorplanEditor.ts | 24 +- .../views/FloorplanCanvasView.tsx | 4 +- .../views/friends-list/FriendsListView.tsx | 10 +- .../views/messenger/FriendsMessengerView.tsx | 6 +- .../FriendsMessengerThreadGroup.tsx | 3 +- src/components/game-center/GameCenterView.tsx | 7 +- src/components/groups/GroupsView.tsx | 6 +- .../groups/views/GroupInformationView.tsx | 4 +- .../groups/views/GroupMembersView.tsx | 6 +- .../groups/views/GroupRoomInformationView.tsx | 4 +- .../views/tabs/GroupTabIdentityView.tsx | 4 +- src/components/guide-tool/GuideToolView.tsx | 8 +- .../guide-tool/views/GuideToolOngoingView.tsx | 4 +- src/components/hc-center/HcCenterView.tsx | 22 +- src/components/help/HelpView.tsx | 8 +- src/components/help/views/HelpIndexView.tsx | 4 +- .../help/views/SelectReportedUserView.tsx | 4 +- .../NameChangeConfirmationView.tsx | 4 +- .../views/name-change/NameChangeInitView.tsx | 3 +- src/components/hotel-view/HotelView.tsx | 48 +- .../widget-container/WidgetContainerView.tsx | 4 +- src/components/inventory/InventoryView.tsx | 8 +- .../inventory/views/bot/InventoryBotView.tsx | 4 +- .../furniture/InventoryFurnitureView.tsx | 4 +- .../inventory/views/pet/InventoryPetView.tsx | 4 +- src/components/main/MainView.tsx | 5 +- src/components/mod-tools/ModToolsView.tsx | 6 +- .../mod-tools/views/chatlog/ChatlogView.tsx | 4 +- .../mod-tools/views/room/ModToolsRoomView.tsx | 4 +- .../views/tickets/ModToolsTicketsView.tsx | 3 +- .../mod-tools/views/user/ModToolsUserView.tsx | 4 +- src/components/navigator/NavigatorView.tsx | 6 +- .../views/NavigatorRoomCreatorView.tsx | 8 +- .../navigator/views/NavigatorRoomInfoView.tsx | 6 +- .../navigator/views/NavigatorRoomLinkView.tsx | 4 +- .../NavigatorRoomSettingsBasicTabView.tsx | 4 +- .../search/NavigatorSearchResultItemView.tsx | 4 +- src/components/nitropedia/NitropediaView.tsx | 8 +- src/components/purse/PurseView.tsx | 8 +- src/components/room/RoomView.tsx | 5 +- .../room/widgets/RoomWidgetsView.tsx | 4 +- .../AvatarInfoUseProductConfirmView.tsx | 4 +- .../avatar-info/AvatarInfoWidgetView.tsx | 6 +- .../infostand/InfoStandWidgetFurniView.tsx | 12 +- .../infostand/InfoStandWidgetPetView.tsx | 6 +- .../infostand/InfoStandWidgetUserTagsView.tsx | 4 +- .../infostand/InfoStandWidgetUserView.tsx | 10 +- .../menu/AvatarInfoWidgetAvatarView.tsx | 4 +- .../menu/AvatarInfoWidgetNameView.tsx | 3 +- .../menu/AvatarInfoWidgetOwnAvatarView.tsx | 4 +- .../menu/AvatarInfoWidgetOwnPetView.tsx | 6 +- .../menu/AvatarInfoWidgetPetView.tsx | 4 +- .../menu/AvatarInfoWidgetRentableBotView.tsx | 10 +- .../room/widgets/chat-input/ChatInputView.tsx | 10 +- .../widgets/chat/ChatWidgetMessageView.tsx | 4 +- .../room/widgets/chat/ChatWidgetView.tsx | 4 +- .../widgets/choosers/ChooserWidgetView.tsx | 5 +- .../choosers/FurniChooserWidgetView.tsx | 6 +- .../choosers/UserChooserWidgetView.tsx | 6 +- .../widgets/context-menu/ContextMenuView.tsx | 14 +- .../furniture/FurnitureCraftingView.tsx | 4 +- .../widgets/furniture/FurnitureDimmerView.tsx | 4 +- .../furniture/FurnitureExternalImageView.tsx | 3 +- .../furniture/FurnitureGiftOpeningView.tsx | 3 +- .../furniture/FurnitureMannequinView.tsx | 4 +- .../FurnitureMysteryBoxOpenDialogView.tsx | 4 +- .../furniture/FurnitureYoutubeDisplayView.tsx | 4 +- .../context-menu/FurnitureContextMenuView.tsx | 4 +- .../PurchasableClothingConfirmView.tsx | 8 +- .../playlist-editor/DiskInventoryView.tsx | 16 +- .../playlist-editor/SongPlaylistView.tsx | 6 +- .../pet-package/PetPackageWidgetView.tsx | 4 +- .../room-promotes/RoomPromotesWidgetView.tsx | 3 +- .../views/RoomPromoteMyOwnEventWidgetView.tsx | 3 +- .../RoomThumbnailWidgetView.tsx | 3 +- .../room-tools/RoomToolsWidgetView.tsx | 6 +- src/components/toolbar/ToolbarMeView.tsx | 6 +- src/components/toolbar/ToolbarView.tsx | 6 +- .../user-profile/UserProfileView.tsx | 4 +- .../user-profile/views/UserContainerView.tsx | 4 +- .../user-settings/UserSettingsView.tsx | 8 +- src/components/wired/views/WiredBaseView.tsx | 3 +- .../WiredActionBotChangeFigureView.tsx | 3 +- .../WiredActionBotTalkToAvatarView.tsx | 4 +- .../views/actions/WiredActionBotTalkView.tsx | 4 +- .../views/actions/WiredActionChatView.tsx | 4 +- .../actions/WiredActionKickFromRoomView.tsx | 4 +- .../views/actions/WiredActionMuteUserView.tsx | 4 +- .../WiredTriggerAvatarSaysSomethingView.tsx | 3 +- ...iredTriggerExecutePeriodicallyLongView.tsx | 3 +- src/hooks/camera/useCamera.ts | 4 +- src/hooks/catalog/useCatalog.ts | 4 +- src/hooks/events/useMessageEvent.tsx | 3 +- src/hooks/events/useNitroEvent.tsx | 4 +- src/hooks/friends/useFriends.ts | 4 +- src/hooks/friends/useMessenger.ts | 4 +- src/hooks/inventory/useInventoryBadges.ts | 4 +- src/hooks/inventory/useInventoryBots.ts | 4 +- src/hooks/inventory/useInventoryFurni.ts | 4 +- src/hooks/inventory/useInventoryTrade.ts | 4 +- src/hooks/navigator/useNavigator.ts | 16 +- src/hooks/notification/useNotification.ts | 17 +- src/hooks/purse/usePurse.ts | 4 +- src/hooks/rooms/useRoom.ts | 15 +- .../useFurnitureBackgroundColorWidget.ts | 4 +- .../useFurnitureBadgeDisplayWidget.ts | 4 +- .../useFurnitureContextMenuWidget.ts | 4 +- .../furniture/useFurnitureCraftingWidget.ts | 4 +- .../furniture/useFurnitureDimmerWidget.ts | 4 +- .../furniture/useFurnitureExchangeWidget.ts | 6 +- .../useFurnitureExternalImageWidget.ts | 4 +- .../useFurnitureFriendFurniWidget.ts | 6 +- .../furniture/useFurnitureHighScoreWidget.ts | 3 +- .../useFurnitureInternalLinkWidget.ts | 3 +- .../furniture/useFurnitureMannequinWidget.ts | 4 +- .../useFurniturePlaylistEditorWidget.ts | 16 +- .../furniture/useFurniturePresentWidget.ts | 6 +- .../furniture/useFurnitureRoomLinkWidget.ts | 4 +- .../useFurnitureSpamWallPostItWidget.ts | 4 +- .../useFurnitureStackHeightWidget.ts | 4 +- .../furniture/useFurnitureStickieWidget.ts | 4 +- .../furniture/useFurnitureTrophyWidget.ts | 3 +- .../furniture/useFurnitureYoutubeWidget.ts | 4 +- .../rooms/widgets/useAvatarInfoWidget.ts | 4 +- src/hooks/rooms/widgets/useChatInputWidget.ts | 10 +- src/hooks/rooms/widgets/useChatWidget.ts | 10 +- .../rooms/widgets/useFurniChooserWidget.ts | 4 +- .../rooms/widgets/usePetPackageWidget.ts | 4 +- .../rooms/widgets/useUserChooserWidget.ts | 4 +- src/hooks/rooms/widgets/useWordQuizWidget.ts | 4 +- src/hooks/session/useSessionInfo.ts | 4 +- yarn.lock | 2491 ++++++++++------- 287 files changed, 2322 insertions(+), 1963 deletions(-) delete mode 100644 .gitlab-ci.yml-disabled delete mode 100644 src/api/nitro/AddLinkEventTracker.ts delete mode 100644 src/api/nitro/CreateLinkEvent.ts delete mode 100644 src/api/nitro/GetCommunication.ts delete mode 100644 src/api/nitro/GetConfiguration.ts delete mode 100644 src/api/nitro/GetConfigurationManager.ts create mode 100644 src/api/nitro/GetConfigurationValue.ts delete mode 100644 src/api/nitro/GetConnection.ts delete mode 100644 src/api/nitro/GetLocalization.ts delete mode 100644 src/api/nitro/GetNitroInstance.ts delete mode 100644 src/api/nitro/RemoveLinkEventTracker.ts delete mode 100644 src/api/nitro/avatar/GetAvatarPalette.ts delete mode 100644 src/api/nitro/avatar/GetAvatarRenderManager.ts delete mode 100644 src/api/nitro/avatar/GetAvatarSetType.ts delete mode 100644 src/api/nitro/avatar/index.ts delete mode 100644 src/api/nitro/camera/GetRoomCameraWidgetManager.ts delete mode 100644 src/api/nitro/camera/index.ts delete mode 100644 src/api/nitro/room/GetRoomEngine.ts delete mode 100644 src/api/nitro/session/GetRoomSessionManager.ts delete mode 100644 src/api/nitro/session/GetSessionDataManager.ts create mode 100644 src/api/utils/FixedSizeStack.ts create mode 100644 src/api/utils/FriendlyTime.ts delete mode 100644 src/api/wired/WiredSelectionFilter.ts create mode 100644 src/components/avatar-editor/views/figure-set/index.ts create mode 100644 src/components/avatar-editor/views/index.ts create mode 100644 src/components/avatar-editor/views/palette-set/index.ts create mode 100644 src/components/camera/index.ts create mode 100644 src/components/camera/views/editor/effect-list/index.ts create mode 100644 src/components/camera/views/editor/index.ts create mode 100644 src/components/camera/views/index.ts diff --git a/.gitlab-ci.yml-disabled b/.gitlab-ci.yml-disabled deleted file mode 100644 index 0a291a92..00000000 --- a/.gitlab-ci.yml-disabled +++ /dev/null @@ -1,29 +0,0 @@ -image: node:16.13 - -stages: - - install-dependencies - - build - -Install Dependencies: - stage: install-dependencies - script: - - yarn install - cache: - key: ${CI_COMMIT_BRANCH} - paths: - - node_modules - -Build Nitro: - stage: build - script: - - cp public/renderer-config.json.example public/renderer-config.json - - cp public/ui-config.json.example public/ui-config.json - - yarn build:prod - cache: - key: ${CI_COMMIT_BRANCH} - paths: - - node_modules - artifacts: - expire_in: 2 weeks - paths: - - build/* diff --git a/.vscode/settings.json b/.vscode/settings.json index 3fdf856d..ba397879 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -6,9 +6,9 @@ "typescript.format.placeOpenBraceOnNewLineForFunctions": true, "editor.wordWrap": "on", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.sortJSON": false, - "source.organizeImports": true + "source.fixAll.eslint": "explicit", + "source.fixAll.sortJSON": "never", + "source.organizeImports": "explicit" }, "editor.formatOnSave": false, "git.ignoreLimitWarning": true, diff --git a/index.html b/index.html index dd4538b5..7a17d6cc 100644 --- a/index.html +++ b/index.html @@ -24,6 +24,7 @@