diff --git a/package-lock.json b/package-lock.json index 8db31629..8ffa65f2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4200,18 +4200,85 @@ "integrity": "sha512-37RSHht+gzzgYeobbG+KWryeAW8J33Nhr69cjTqSYymXVZEN9NbRYWoYlRtDhHKPVT1FyNKwaTPC1NynKZpzRA==" }, "@typescript-eslint/eslint-plugin": { - "version": "4.22.0", - "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.22.0.tgz", - "integrity": "sha512-U8SP9VOs275iDXaL08Ln1Fa/wLXfj5aTr/1c0t0j6CdbOnxh+TruXu1p4I0NAvdPBQgoPjHsgKn28mOi0FzfoA==", + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-4.29.1.tgz", + "integrity": "sha512-AHqIU+SqZZgBEiWOrtN94ldR3ZUABV5dUG94j8Nms9rQnHFc8fvDOue/58K4CFz6r8OtDDc35Pw9NQPWo0Ayrw==", "requires": { - "@typescript-eslint/experimental-utils": "4.22.0", - "@typescript-eslint/scope-manager": "4.22.0", - "debug": "^4.1.1", + "@typescript-eslint/experimental-utils": "4.29.1", + "@typescript-eslint/scope-manager": "4.29.1", + "debug": "^4.3.1", "functional-red-black-tree": "^1.0.1", - "lodash": "^4.17.15", - "regexpp": "^3.0.0", - "semver": "^7.3.2", - "tsutils": "^3.17.1" + "regexpp": "^3.1.0", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + }, + "dependencies": { + "@typescript-eslint/experimental-utils": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/experimental-utils/-/experimental-utils-4.29.1.tgz", + "integrity": "sha512-kl6QG6qpzZthfd2bzPNSJB2YcZpNOrP6r9jueXupcZHnL74WiuSjaft7WSu17J9+ae9zTlk0KJMXPUj0daBxMw==", + "requires": { + "@types/json-schema": "^7.0.7", + "@typescript-eslint/scope-manager": "4.29.1", + "@typescript-eslint/types": "4.29.1", + "@typescript-eslint/typescript-estree": "4.29.1", + "eslint-scope": "^5.1.1", + "eslint-utils": "^3.0.0" + } + }, + "@typescript-eslint/scope-manager": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-4.29.1.tgz", + "integrity": "sha512-Hzv/uZOa9zrD/W5mftZa54Jd5Fed3tL6b4HeaOpwVSabJK8CJ+2MkDasnX/XK4rqP5ZTWngK1ZDeCi6EnxPQ7A==", + "requires": { + "@typescript-eslint/types": "4.29.1", + "@typescript-eslint/visitor-keys": "4.29.1" + } + }, + "@typescript-eslint/types": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-4.29.1.tgz", + "integrity": "sha512-Jj2yu78IRfw4nlaLtKjVaGaxh/6FhofmQ/j8v3NXmAiKafbIqtAPnKYrf0sbGjKdj0hS316J8WhnGnErbJ4RCA==" + }, + "@typescript-eslint/typescript-estree": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-4.29.1.tgz", + "integrity": "sha512-lIkkrR9E4lwZkzPiRDNq0xdC3f2iVCUjw/7WPJ4S2Sl6C3nRWkeE1YXCQ0+KsiaQRbpY16jNaokdWnm9aUIsfw==", + "requires": { + "@typescript-eslint/types": "4.29.1", + "@typescript-eslint/visitor-keys": "4.29.1", + "debug": "^4.3.1", + "globby": "^11.0.3", + "is-glob": "^4.0.1", + "semver": "^7.3.5", + "tsutils": "^3.21.0" + } + }, + "@typescript-eslint/visitor-keys": { + "version": "4.29.1", + "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-4.29.1.tgz", + "integrity": "sha512-zLqtjMoXvgdZY/PG6gqA73V8BjqPs4af1v2kiiETBObp+uC6gRYnJLmJHxC0QyUrrHDLJPIWNYxoBV3wbcRlag==", + "requires": { + "@typescript-eslint/types": "4.29.1", + "eslint-visitor-keys": "^2.0.0" + } + }, + "eslint-utils": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/eslint-utils/-/eslint-utils-3.0.0.tgz", + "integrity": "sha512-uuQC43IGctw68pJA1RgbQS8/NP7rch6Cwd4j3ZBtgo4/8Flj4eGE7ZYSZRN3iq5pVUv6GPdW5Z1RFleo84uLDA==", + "requires": { + "eslint-visitor-keys": "^2.0.0" + } + }, + "semver": { + "version": "7.3.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", + "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "requires": { + "lru-cache": "^6.0.0" + } + } } }, "@typescript-eslint/experimental-utils": { diff --git a/package.json b/package.json index 9a30909a..b0eda902 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,87 @@ "react-app/jest" ], "rules": { + "linebreak-style": [ + "off" + ], + "quotes": [ + "error", + "single" + ], + "brace-style": [ + "error", + "allman", + { + "allowSingleLine": true + } + ], + "object-curly-spacing": [ + "error", + "always" + ], + "keyword-spacing": [ + "error", + { + "overrides": + { + "if": + { + "after": false + }, + "for": + { + "after": false + }, + "while": + { + "after": false + }, + "switch": + { + "after": false + } + } + } + ], + "@typescript-eslint/no-explicit-any": [ + "off" + ], + "@typescript-eslint/ban-ts-comment": [ + "off" + ], + "@typescript-eslint/no-empty-function": [ + "error", + { + "allow": [ + "functions", + "arrowFunctions", + "generatorFunctions", + "methods", + "generatorMethods", + "constructors" + ] + } + ], + "@typescript-eslint/no-unused-vars": [ + "off" + ], + "@typescript-eslint/ban-types": [ + "error", + { + "types": + { + "String": true, + "Boolean": true, + "Number": true, + "Symbol": true, + "{}": false, + "Object": false, + "object": false, + "Function": false + }, + "extendDefaults": true + } + ], "no-switch-case-fall-through": [ "off" ] @@ -56,6 +137,7 @@ "@types/react-dom": "^17.0.9", "@types/react-slider": "^1.3.1", "@types/react-transition-group": "^4.4.2", - "@types/react-virtualized": "^9.21.13" + "@types/react-virtualized": "^9.21.13", + "@typescript-eslint/eslint-plugin": "^4.29.1" } } diff --git a/src/layout/card/accordion/NitroCardAccordionView.tsx b/src/layout/card/accordion/NitroCardAccordionView.tsx index e0d2d534..798c54cb 100644 --- a/src/layout/card/accordion/NitroCardAccordionView.tsx +++ b/src/layout/card/accordion/NitroCardAccordionView.tsx @@ -6,7 +6,7 @@ export const NitroCardAccordionView: FC = props => const { className = '' } = props; return ( -
+
{ props.children }
); diff --git a/src/layout/draggable-window/DraggableWindow.tsx b/src/layout/draggable-window/DraggableWindow.tsx index 0a299d42..a5cab370 100644 --- a/src/layout/draggable-window/DraggableWindow.tsx +++ b/src/layout/draggable-window/DraggableWindow.tsx @@ -141,7 +141,7 @@ export const DraggableWindow: FC = props => } } - setDelta({ x: 0, y: 0}); + setDelta({ x: 0, y: 0 }); setOffset({ x: offsetX, y: offsetY }); return () => diff --git a/src/layout/transitions/TransitionAnimation.tsx b/src/layout/transitions/TransitionAnimation.tsx index 2e5df886..f81a28f5 100644 --- a/src/layout/transitions/TransitionAnimation.tsx +++ b/src/layout/transitions/TransitionAnimation.tsx @@ -35,7 +35,7 @@ export const TransitionAnimation: FC = props => return ( { state => ( -
+
{ isChildrenVisible && children }
)} diff --git a/src/layout/transitions/TransitionAnimationStyles.ts b/src/layout/transitions/TransitionAnimationStyles.ts index 02fe336c..1ce5d765 100644 --- a/src/layout/transitions/TransitionAnimationStyles.ts +++ b/src/layout/transitions/TransitionAnimationStyles.ts @@ -14,12 +14,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `bounceIn`, + animationName: 'bounceIn', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `bounceOut`, + animationName: 'bounceOut', animationDuration: `${ timeout }ms` } } @@ -30,12 +30,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `slideInLeft`, + animationName: 'slideInLeft', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `slideOutLeft`, + animationName: 'slideOutLeft', animationDuration: `${ timeout }ms` } } @@ -46,12 +46,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `slideInRight`, + animationName: 'slideInRight', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `slideOutRight`, + animationName: 'slideOutRight', animationDuration: `${ timeout }ms` } } @@ -62,12 +62,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `flipInX`, + animationName: 'flipInX', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `flipOutX`, + animationName: 'flipOutX', animationDuration: `${ timeout }ms` } } @@ -78,12 +78,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `fadeInUp`, + animationName: 'fadeInUp', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `fadeOutDown`, + animationName: 'fadeOutDown', animationDuration: `${ timeout }ms` } } @@ -94,12 +94,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `fadeIn`, + animationName: 'fadeIn', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `fadeOut`, + animationName: 'fadeOut', animationDuration: `${ timeout }ms` } } @@ -110,12 +110,12 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `fadeInDown`, + animationName: 'fadeInDown', animationDuration: `${ timeout }ms` } case EXITING: return { - animationName: `fadeOutUp`, + animationName: 'fadeOutUp', animationDuration: `${ timeout }ms` } } @@ -126,7 +126,7 @@ export function getTransitionAnimationStyle(type: string, transition: Transition return {} case ENTERING: return { - animationName: `headShake`, + animationName: 'headShake', animationDuration: `${ timeout }ms` } } diff --git a/src/views/achievements/views/category/AchievementCategoryView.tsx b/src/views/achievements/views/category/AchievementCategoryView.tsx index 2a17d126..91752e42 100644 --- a/src/views/achievements/views/category/AchievementCategoryView.tsx +++ b/src/views/achievements/views/category/AchievementCategoryView.tsx @@ -69,7 +69,7 @@ export const AchievementCategoryView: FC = props = { return (
-
selectAchievement(achievement.achievementId)}> +
selectAchievement(achievement.achievementId)}>
diff --git a/src/views/avatar-editor/AvatarEditorView.tsx b/src/views/avatar-editor/AvatarEditorView.tsx index e9f14a43..b9b790fc 100644 --- a/src/views/avatar-editor/AvatarEditorView.tsx +++ b/src/views/avatar-editor/AvatarEditorView.tsx @@ -290,7 +290,7 @@ export const AvatarEditorView: FC = props => ); })} setIsWardrobeVisible(true) }> - { LocalizeText(`avatareditor.category.wardrobe`) } + { LocalizeText('avatareditor.category.wardrobe') } diff --git a/src/views/avatar-editor/common/AvatarEditorGridColorItem.ts b/src/views/avatar-editor/common/AvatarEditorGridColorItem.ts index cd7a6557..dee3daef 100644 --- a/src/views/avatar-editor/common/AvatarEditorGridColorItem.ts +++ b/src/views/avatar-editor/common/AvatarEditorGridColorItem.ts @@ -1,4 +1,4 @@ -import { ColorConverter, IPartColor } from '@nitrots/nitro-renderer'; +import { ColorConverter, IPartColor } from '@nitrots/nitro-renderer'; export class AvatarEditorGridColorItem { diff --git a/src/views/avatar-editor/common/AvatarEditorGridPartItem.ts b/src/views/avatar-editor/common/AvatarEditorGridPartItem.ts index a0087fa1..dbfa097a 100644 --- a/src/views/avatar-editor/common/AvatarEditorGridPartItem.ts +++ b/src/views/avatar-editor/common/AvatarEditorGridPartItem.ts @@ -1,4 +1,4 @@ -import { AvatarFigurePartType, IAvatarImageListener, IAvatarRenderManager, IFigurePart, IFigurePartSet, IGraphicAsset, IPartColor, NitroContainer, NitroSprite, TextureUtils } from '@nitrots/nitro-renderer'; +import { AvatarFigurePartType, IAvatarImageListener, IAvatarRenderManager, IFigurePart, IFigurePartSet, IGraphicAsset, IPartColor, NitroContainer, NitroSprite, TextureUtils } from '@nitrots/nitro-renderer'; import { GetAvatarRenderManager } from '../../../api'; import { FigureData } from './FigureData'; diff --git a/src/views/avatar-editor/common/CategoryBaseModel.ts b/src/views/avatar-editor/common/CategoryBaseModel.ts index ab65af72..5cd311c0 100644 --- a/src/views/avatar-editor/common/CategoryBaseModel.ts +++ b/src/views/avatar-editor/common/CategoryBaseModel.ts @@ -1,4 +1,4 @@ -import { AvatarEditorUtilities } from './AvatarEditorUtilities'; +import { AvatarEditorUtilities } from './AvatarEditorUtilities'; import { CategoryData } from './CategoryData'; import { IAvatarEditorCategoryModel } from './IAvatarEditorCategoryModel'; diff --git a/src/views/avatar-editor/common/CategoryData.ts b/src/views/avatar-editor/common/CategoryData.ts index 9b2aeb83..db82f012 100644 --- a/src/views/avatar-editor/common/CategoryData.ts +++ b/src/views/avatar-editor/common/CategoryData.ts @@ -1,4 +1,4 @@ -import { IPartColor } from '@nitrots/nitro-renderer'; +import { IPartColor } from '@nitrots/nitro-renderer'; import { AvatarEditorGridColorItem } from './AvatarEditorGridColorItem'; import { AvatarEditorGridPartItem } from './AvatarEditorGridPartItem'; diff --git a/src/views/avatar-editor/common/FigureData.ts b/src/views/avatar-editor/common/FigureData.ts index cb28a5ec..072ced1c 100644 --- a/src/views/avatar-editor/common/FigureData.ts +++ b/src/views/avatar-editor/common/FigureData.ts @@ -1,4 +1,4 @@ -import { AvatarEditorUtilities } from './AvatarEditorUtilities'; +import { AvatarEditorUtilities } from './AvatarEditorUtilities'; export class FigureData { diff --git a/src/views/avatar-editor/common/IAvatarEditorCategoryModel.ts b/src/views/avatar-editor/common/IAvatarEditorCategoryModel.ts index 9f6d64e7..dc9affae 100644 --- a/src/views/avatar-editor/common/IAvatarEditorCategoryModel.ts +++ b/src/views/avatar-editor/common/IAvatarEditorCategoryModel.ts @@ -1,4 +1,4 @@ -import { CategoryData } from './CategoryData'; +import { CategoryData } from './CategoryData'; export interface IAvatarEditorCategoryModel { diff --git a/src/views/catalog/CatalogView.tsx b/src/views/catalog/CatalogView.tsx index 736be0de..eb745900 100644 --- a/src/views/catalog/CatalogView.tsx +++ b/src/views/catalog/CatalogView.tsx @@ -23,7 +23,7 @@ export const CatalogView: FC = props => const [ pendingOpenTree, setPendingOpenTree ] = useState(null); const [ catalogState, dispatchCatalogState ] = useReducer(CatalogReducer, initialCatalog); const [ currentTab, setCurrentTab ] = useState(null); - const { root = null, pageParser = null, activeOffer = null, searchResult = null} = catalogState; + const { root = null, pageParser = null, activeOffer = null, searchResult = null } = catalogState; const saveActivePages = useCallback(() => { diff --git a/src/views/catalog/common/FurniCategory.ts b/src/views/catalog/common/FurniCategory.ts index dff1f526..7eeeca24 100644 --- a/src/views/catalog/common/FurniCategory.ts +++ b/src/views/catalog/common/FurniCategory.ts @@ -1,4 +1,4 @@ -export class FurniCategory +export class FurniCategory { public static DEFAULT: number = 1; public static WALL_PAPER: number = 2; diff --git a/src/views/catalog/common/ProductTypeEnum.ts b/src/views/catalog/common/ProductTypeEnum.ts index 942782eb..75257e55 100644 --- a/src/views/catalog/common/ProductTypeEnum.ts +++ b/src/views/catalog/common/ProductTypeEnum.ts @@ -1,4 +1,4 @@ -export class ProductTypeEnum +export class ProductTypeEnum { public static WALL: string = 'i'; public static FLOOR: string = 's'; diff --git a/src/views/catalog/views/page/layout/frontpage4/CatalogLayoutFrontpage4View.tsx b/src/views/catalog/views/page/layout/frontpage4/CatalogLayoutFrontpage4View.tsx index 07044a4f..a70950f1 100644 --- a/src/views/catalog/views/page/layout/frontpage4/CatalogLayoutFrontpage4View.tsx +++ b/src/views/catalog/views/page/layout/frontpage4/CatalogLayoutFrontpage4View.tsx @@ -31,21 +31,21 @@ export const CatalogLayoutFrontpage4View: FC =
{ pageParser.frontPageItems[0] && -
selectItem(pageParser.frontPageItems[0]) }> +
selectItem(pageParser.frontPageItems[0]) }>
{ pageParser.frontPageItems[0].itemName }
}
{ pageParser.frontPageItems[1] && -
selectItem(pageParser.frontPageItems[1]) }> +
selectItem(pageParser.frontPageItems[1]) }>
{ pageParser.frontPageItems[1].itemName }
} { pageParser.frontPageItems[2] && -
selectItem(pageParser.frontPageItems[2]) }> +
selectItem(pageParser.frontPageItems[2]) }>
{ pageParser.frontPageItems[2].itemName }
} { pageParser.frontPageItems[3] && -
selectItem(pageParser.frontPageItems[3]) }> +
selectItem(pageParser.frontPageItems[3]) }>
{ pageParser.frontPageItems[3].itemName }
}
diff --git a/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx b/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx index b1e9fcae..3ff1db3a 100644 --- a/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx +++ b/src/views/catalog/views/page/layout/guild-forum/CatalogLayoutGuildForumView.tsx @@ -34,7 +34,7 @@ export const CatalogLayouGuildForumView: FC = return (
-
+
{ groups.length === 0 &&
diff --git a/src/views/catalog/views/page/layout/info-loyalty/CatalogLayoutInfoLoyaltyView.tsx b/src/views/catalog/views/page/layout/info-loyalty/CatalogLayoutInfoLoyaltyView.tsx index eb976b8f..70635763 100644 --- a/src/views/catalog/views/page/layout/info-loyalty/CatalogLayoutInfoLoyaltyView.tsx +++ b/src/views/catalog/views/page/layout/info-loyalty/CatalogLayoutInfoLoyaltyView.tsx @@ -9,7 +9,7 @@ export const CatalogLayoutInfoLoyaltyView: FC return (
-
+
); diff --git a/src/views/catalog/views/page/layout/pets2/CatalogLayoutPets2View.tsx b/src/views/catalog/views/page/layout/pets2/CatalogLayoutPets2View.tsx index 8255ac44..3e901711 100644 --- a/src/views/catalog/views/page/layout/pets2/CatalogLayoutPets2View.tsx +++ b/src/views/catalog/views/page/layout/pets2/CatalogLayoutPets2View.tsx @@ -15,7 +15,7 @@ export const CatalogLayoutPets2View: FC = props =>
{ GetCatalogPageText(pageParser, 1) }
-
+
{GetCatalogPageText(pageParser, 3) &&
}
diff --git a/src/views/catalog/views/page/layout/pets3/CatalogLayoutPets3View.tsx b/src/views/catalog/views/page/layout/pets3/CatalogLayoutPets3View.tsx index d15ec172..23fa4048 100644 --- a/src/views/catalog/views/page/layout/pets3/CatalogLayoutPets3View.tsx +++ b/src/views/catalog/views/page/layout/pets3/CatalogLayoutPets3View.tsx @@ -15,7 +15,7 @@ export const CatalogLayoutPets3View: FC = props =>
{ GetCatalogPageText(pageParser, 1) }
-
+
{GetCatalogPageText(pageParser, 3) &&
}
diff --git a/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx b/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx index 89332fef..ac09e708 100644 --- a/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx +++ b/src/views/catalog/views/page/layout/vip-buy/CatalogLayoutVipBuyView.tsx @@ -180,7 +180,7 @@ export const CatalogLayoutVipBuyView: FC = props =
-
+
diff --git a/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx b/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx index 765542c4..07664c45 100644 --- a/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx +++ b/src/views/friend-list/views/friend-bar-item/FriendBarItemView.tsx @@ -46,13 +46,13 @@ export const FriendBarItemView: FC = props => return (
-
{ LocalizeText("friend.bar.find.title") }
+
{ LocalizeText('friend.bar.find.title') }
); } return ( -
setVisible(prevValue => !prevValue) }> +
setVisible(prevValue => !prevValue) }>
diff --git a/src/views/hotel-view/HotelView.tsx b/src/views/hotel-view/HotelView.tsx index 5424e99c..a4bb33ac 100644 --- a/src/views/hotel-view/HotelView.tsx +++ b/src/views/hotel-view/HotelView.tsx @@ -12,7 +12,7 @@ export const HotelView: FC = props => const onRoomSessionEvent = useCallback((event: RoomSessionEvent) => { - switch (event.type) + switch(event.type) { case RoomSessionEvent.CREATED: setIsVisible(false); @@ -26,7 +26,7 @@ export const HotelView: FC = props => useRoomSessionManagerEvent(RoomSessionEvent.CREATED, onRoomSessionEvent); useRoomSessionManagerEvent(RoomSessionEvent.ENDED, onRoomSessionEvent); - if (!isVisible) return null; + if(!isVisible) return null; const backgroundColor = GetConfiguration('hotelview')['images']['background.colour']; const background = GetConfigurationManager().interpolate(GetConfiguration('hotelview')['images']['background']); diff --git a/src/views/hotel-view/views/widgets/GetWidgetLayout.tsx b/src/views/hotel-view/views/widgets/GetWidgetLayout.tsx index 6adf53c3..e37880f1 100644 --- a/src/views/hotel-view/views/widgets/GetWidgetLayout.tsx +++ b/src/views/hotel-view/views/widgets/GetWidgetLayout.tsx @@ -7,15 +7,15 @@ import { WidgetContainerView } from './widgetcontainer/WIdgetContainerView'; export const GetWidgetLayout: FC = props => { - switch (props.widgetType) + switch(props.widgetType) { - case "promoarticle": + case 'promoarticle': return ; - case "achievementcompetition_hall_of_fame": + case 'achievementcompetition_hall_of_fame': return ; - case "bonusrare": + case 'bonusrare': return ; - case "widgetcontainer": + case 'widgetcontainer': return default: return null; diff --git a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx index e2f87ca6..fc8f1510 100644 --- a/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx +++ b/src/views/hotel-view/views/widgets/promo-article/PromoArticleWidgetView.tsx @@ -27,7 +27,7 @@ export const PromoArticleWidgetView: FC = props => SendMessageHook(new GetPromoArticlesComposer()); }, []); - if (!articles) return null; + if(!articles) return null; return (
@@ -37,12 +37,12 @@ export const PromoArticleWidgetView: FC = props =>
{articles && (articles.length > 0) && articles.map((article, ind) => -
handleSelect(ind)} /> +
handleSelect(ind)} /> )}
{articles && articles[index] &&
-
+

{articles[index].title}

{ articles[index].bodyText } diff --git a/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx b/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx index 139c5a9b..cdefec19 100644 --- a/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx +++ b/src/views/hotel-view/views/widgets/widget-container/WidgetContainerView.tsx @@ -13,7 +13,7 @@ export const WidgetContainerView: FC = props => if(!conf || !conf.length) return config; - let options = conf.split(","); + let options = conf.split(','); options.forEach(option => { diff --git a/src/views/inventory/common/FurniCategory.ts b/src/views/inventory/common/FurniCategory.ts index 7344af9e..c4175ab1 100644 --- a/src/views/inventory/common/FurniCategory.ts +++ b/src/views/inventory/common/FurniCategory.ts @@ -1,4 +1,4 @@ -export class FurniCategory +export class FurniCategory { public static DEFAULT: number = 1; public static _Str_3639: number = 2; diff --git a/src/views/inventory/common/FurnitureItem.ts b/src/views/inventory/common/FurnitureItem.ts index 6b7fb7a9..0cf0d457 100644 --- a/src/views/inventory/common/FurnitureItem.ts +++ b/src/views/inventory/common/FurnitureItem.ts @@ -1,4 +1,4 @@ -import { IFurnitureItemData, IObjectData } from '@nitrots/nitro-renderer'; +import { IFurnitureItemData, IObjectData } from '@nitrots/nitro-renderer'; import { GetNitroInstance } from '../../../api'; import { IFurnitureItem } from './IFurnitureItem'; diff --git a/src/views/inventory/common/IFurnitureItem.ts b/src/views/inventory/common/IFurnitureItem.ts index ed024902..7e030c52 100644 --- a/src/views/inventory/common/IFurnitureItem.ts +++ b/src/views/inventory/common/IFurnitureItem.ts @@ -1,4 +1,4 @@ -import { IObjectData } from '@nitrots/nitro-renderer'; +import { IObjectData } from '@nitrots/nitro-renderer'; export interface IFurnitureItem { diff --git a/src/views/inventory/common/unseen/IUnseenItemTracker.ts b/src/views/inventory/common/unseen/IUnseenItemTracker.ts index f85281cb..51872a00 100644 --- a/src/views/inventory/common/unseen/IUnseenItemTracker.ts +++ b/src/views/inventory/common/unseen/IUnseenItemTracker.ts @@ -1,4 +1,4 @@ -export interface IUnseenItemTracker +export interface IUnseenItemTracker { dispose(): void; resetCategory(category: number): boolean; diff --git a/src/views/inventory/common/unseen/UnseenItemCategory.ts b/src/views/inventory/common/unseen/UnseenItemCategory.ts index b7c562fd..b93a0465 100644 --- a/src/views/inventory/common/unseen/UnseenItemCategory.ts +++ b/src/views/inventory/common/unseen/UnseenItemCategory.ts @@ -1,4 +1,4 @@ -export class UnseenItemCategory +export class UnseenItemCategory { public static FURNI: number = 1; public static RENTABLE: number = 2; diff --git a/src/views/mod-tools/ModToolsView.tsx b/src/views/mod-tools/ModToolsView.tsx index 54f759d0..cfda3227 100644 --- a/src/views/mod-tools/ModToolsView.tsx +++ b/src/views/mod-tools/ModToolsView.tsx @@ -162,7 +162,7 @@ export const ModToolsView: FC = props => { isVisible && - setIsVisible(false) } /> + setIsVisible(false) } /> diff --git a/src/views/mod-tools/views/tickets/ModToolsTicketsView.tsx b/src/views/mod-tools/views/tickets/ModToolsTicketsView.tsx index 060af699..9fc6ea09 100644 --- a/src/views/mod-tools/views/tickets/ModToolsTicketsView.tsx +++ b/src/views/mod-tools/views/tickets/ModToolsTicketsView.tsx @@ -6,7 +6,7 @@ export const ModToolsTicketsView: FC = props => { return ( - {} } /> + {} } /> diff --git a/src/views/mod-tools/views/user/ModToolsUserView.tsx b/src/views/mod-tools/views/user/ModToolsUserView.tsx index 44351831..d3a2f076 100644 --- a/src/views/mod-tools/views/user/ModToolsUserView.tsx +++ b/src/views/mod-tools/views/user/ModToolsUserView.tsx @@ -6,7 +6,7 @@ export const ModToolsUserView: FC = props => { return ( - {} } /> + {} } /> diff --git a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx index 512cb65a..b1e5ec15 100644 --- a/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx +++ b/src/views/navigator/views/creator/NavigatorRoomCreatorView.tsx @@ -116,7 +116,7 @@ export const NavigatorRoomCreatorView: FC = props { NAVIGATOR_ROOM_MODELS.map(model => { - return (
selectModel(model.name) } className={ 'h-100 cursor-pointer d-flex flex-column justify-content-center align-items-center p-1 me-2 rounded border border-2' + classNames({' active': selectedModelName === model.name, ' disabled': GetSessionDataManager().clubLevel < model.clubLevel}) }> + return (
selectModel(model.name) } className={ 'h-100 cursor-pointer d-flex flex-column justify-content-center align-items-center p-1 me-2 rounded border border-2' + classNames({ ' active': selectedModelName === model.name, ' disabled': GetSessionDataManager().clubLevel < model.clubLevel }) }>
{ model.tileSize } { LocalizeText('navigator.createroom.tilesize') }
{ model.clubLevel > HabboClubLevelEnum.NO_CLUB && } diff --git a/src/views/navigator/views/creator/NavigatorRoomCreatorView.types.ts b/src/views/navigator/views/creator/NavigatorRoomCreatorView.types.ts index 19675098..64d4e1b3 100644 --- a/src/views/navigator/views/creator/NavigatorRoomCreatorView.types.ts +++ b/src/views/navigator/views/creator/NavigatorRoomCreatorView.types.ts @@ -6,39 +6,39 @@ export interface NavigatorRoomCreatorViewProps } export const NAVIGATOR_ROOM_MODELS: { clubLevel: number, tileSize: number, name: string }[] = [ - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 104, name: 'a'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 94, name: 'b'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 36, name: 'c'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 84, name: 'd'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 80, name: 'e'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 80, name: 'f'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 416, name: 'i'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 320, name: 'j'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 448, name: 'k'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 352, name: 'l'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 384, name: 'm'}, - { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 372, name: 'n'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 80, name: 'g'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 74, name: 'h'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 416, name: 'o'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 352, name: 'p'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 304, name: 'q'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 336, name: 'r'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 748, name: 'u'}, - { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 438, name: 'v'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 540, name: 't'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 512, name: 'w'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 396, name: 'x'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 440, name: 'y'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 456, name: 'z'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 208, name: '0'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1009, name: '1'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1044, name: '2'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 183, name: '3'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 254, name: '4'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1024, name: '5'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 801, name: '6'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 354, name: '7'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 888, name: '8'}, - { clubLevel: HabboClubLevelEnum.VIP, tileSize: 926, name: '9'} + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 104, name: 'a' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 94, name: 'b' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 36, name: 'c' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 84, name: 'd' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 80, name: 'e' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 80, name: 'f' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 416, name: 'i' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 320, name: 'j' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 448, name: 'k' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 352, name: 'l' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 384, name: 'm' }, + { clubLevel: HabboClubLevelEnum.NO_CLUB, tileSize: 372, name: 'n' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 80, name: 'g' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 74, name: 'h' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 416, name: 'o' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 352, name: 'p' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 304, name: 'q' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 336, name: 'r' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 748, name: 'u' }, + { clubLevel: HabboClubLevelEnum.CLUB, tileSize: 438, name: 'v' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 540, name: 't' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 512, name: 'w' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 396, name: 'x' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 440, name: 'y' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 456, name: 'z' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 208, name: '0' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1009, name: '1' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1044, name: '2' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 183, name: '3' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 254, name: '4' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 1024, name: '5' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 801, name: '6' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 354, name: '7' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 888, name: '8' }, + { clubLevel: HabboClubLevelEnum.VIP, tileSize: 926, name: '9' } ]; diff --git a/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx b/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx index 801ed5db..dd990c99 100644 --- a/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx +++ b/src/views/navigator/views/room-info/NavigatorRoomInfoView.tsx @@ -105,7 +105,7 @@ export const NavigatorRoomInfoView: FC = props =>
{ roomInfoData.enteredGuestRoom.roomName }
- processAction('set_home_room') } className={ 'icon icon-house-small cursor-pointer' + classNames({' gray': homeRoomId !== roomInfoData.enteredGuestRoom.roomId }) } /> + processAction('set_home_room') } className={ 'icon icon-house-small cursor-pointer' + classNames({ ' gray': homeRoomId !== roomInfoData.enteredGuestRoom.roomId }) } />
{ roomInfoData.enteredGuestRoom.showOwner && <> diff --git a/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx b/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx index 579f2e55..d80cba4e 100644 --- a/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx +++ b/src/views/navigator/views/room-settings/views/tab-access/NavigatorRoomSettingsAccessTabView.tsx @@ -9,7 +9,7 @@ export const NavigatorRoomSettingsAccessTabView: FC { - const roomSettings = ({...roomSettingsData} as RoomSettingsData); + const roomSettings = ({ ...roomSettingsData } as RoomSettingsData); let save = true; switch(field) diff --git a/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx b/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx index 946b9ed8..4411adf0 100644 --- a/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx +++ b/src/views/navigator/views/search-result-item/NavigatorSearchResultItemView.tsx @@ -81,7 +81,7 @@ export const NavigatorSearchResultItemView: FC { roomData.habboGroupId > 0 && } { roomData.doorMode !== RoomDataParser.OPEN_STATE && - + }
diff --git a/src/views/notification-center/reducers/NotificationCenterReducer.tsx b/src/views/notification-center/reducers/NotificationCenterReducer.tsx index 6962ccd5..8d861033 100644 --- a/src/views/notification-center/reducers/NotificationCenterReducer.tsx +++ b/src/views/notification-center/reducers/NotificationCenterReducer.tsx @@ -53,7 +53,7 @@ export const NotificationCenterReducer: Reducer -
+
diff --git a/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx b/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx index 201283e3..56d9bb3a 100644 --- a/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx +++ b/src/views/notification-center/views/moderator-message/ModeratorMessageView.tsx @@ -11,7 +11,7 @@ export const ModeratorMessageView: FC = props => if(!notification) return null; const content = <> -
+
diff --git a/src/views/purse/common/Purse.ts b/src/views/purse/common/Purse.ts index f306332e..5e70358b 100644 --- a/src/views/purse/common/Purse.ts +++ b/src/views/purse/common/Purse.ts @@ -151,7 +151,7 @@ export class Purse implements IPurse { if(((this.clubDays === 0) && (this.clubPeriods === 0))) return HabboClubLevelEnum.NO_CLUB; - if (this.isVip) return HabboClubLevelEnum.VIP; + if(this.isVip) return HabboClubLevelEnum.VIP; return HabboClubLevelEnum.CLUB; } diff --git a/src/views/room/events/RoomWidgetAvatarInfoEvent.ts b/src/views/room/events/RoomWidgetAvatarInfoEvent.ts index c9d068f9..e780711f 100644 --- a/src/views/room/events/RoomWidgetAvatarInfoEvent.ts +++ b/src/views/room/events/RoomWidgetAvatarInfoEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; export class RoomWidgetAvatarInfoEvent extends RoomWidgetUpdateEvent { diff --git a/src/views/room/events/RoomWidgetFloodControlEvent.ts b/src/views/room/events/RoomWidgetFloodControlEvent.ts index a4d01c60..8b1e10af 100644 --- a/src/views/room/events/RoomWidgetFloodControlEvent.ts +++ b/src/views/room/events/RoomWidgetFloodControlEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; export class RoomWidgetFloodControlEvent extends RoomWidgetUpdateEvent { diff --git a/src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts b/src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts index 0b92b813..9352372f 100644 --- a/src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts +++ b/src/views/room/events/RoomWidgetUpdateChatInputContentEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; export class RoomWidgetUpdateChatInputContentEvent extends RoomWidgetUpdateEvent { diff --git a/src/views/room/events/RoomWidgetUpdateUserDataEvent.ts b/src/views/room/events/RoomWidgetUpdateUserDataEvent.ts index fbf65876..7ad9f2f3 100644 --- a/src/views/room/events/RoomWidgetUpdateUserDataEvent.ts +++ b/src/views/room/events/RoomWidgetUpdateUserDataEvent.ts @@ -1,4 +1,4 @@ -import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; +import { RoomWidgetUpdateEvent } from './RoomWidgetUpdateEvent'; export class RoomWidgetUpdateUserDataEvent extends RoomWidgetUpdateEvent { diff --git a/src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts b/src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts index 76e9c9b3..f93352dd 100644 --- a/src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts +++ b/src/views/room/messages/RoomWidgetAvatarExpressionMessage.ts @@ -1,4 +1,4 @@ -import { AvatarExpressionEnum } from '@nitrots/nitro-renderer'; +import { AvatarExpressionEnum } from '@nitrots/nitro-renderer'; import { RoomWidgetMessage } from './RoomWidgetMessage'; export class RoomWidgetAvatarExpressionMessage extends RoomWidgetMessage diff --git a/src/views/room/messages/RoomWidgetChangePostureMessage.ts b/src/views/room/messages/RoomWidgetChangePostureMessage.ts index 2325ce09..77daedfb 100644 --- a/src/views/room/messages/RoomWidgetChangePostureMessage.ts +++ b/src/views/room/messages/RoomWidgetChangePostureMessage.ts @@ -1,4 +1,4 @@ -import { RoomWidgetMessage } from './RoomWidgetMessage'; +import { RoomWidgetMessage } from './RoomWidgetMessage'; export class RoomWidgetChangePostureMessage extends RoomWidgetMessage { diff --git a/src/views/room/messages/RoomWidgetDanceMessage.ts b/src/views/room/messages/RoomWidgetDanceMessage.ts index b493db13..72f5c0eb 100644 --- a/src/views/room/messages/RoomWidgetDanceMessage.ts +++ b/src/views/room/messages/RoomWidgetDanceMessage.ts @@ -1,4 +1,4 @@ -import { RoomWidgetMessage } from './RoomWidgetMessage'; +import { RoomWidgetMessage } from './RoomWidgetMessage'; export class RoomWidgetDanceMessage extends RoomWidgetMessage { diff --git a/src/views/room/messages/RoomWidgetRequestWidgetMessage.ts b/src/views/room/messages/RoomWidgetRequestWidgetMessage.ts index 883974e0..20d3f8b2 100644 --- a/src/views/room/messages/RoomWidgetRequestWidgetMessage.ts +++ b/src/views/room/messages/RoomWidgetRequestWidgetMessage.ts @@ -1,4 +1,4 @@ -import { RoomWidgetMessage } from './RoomWidgetMessage'; +import { RoomWidgetMessage } from './RoomWidgetMessage'; export class RoomWidgetRequestWidgetMessage extends RoomWidgetMessage { diff --git a/src/views/room/widgets/avatar-info/common/BotSkillsEnum.ts b/src/views/room/widgets/avatar-info/common/BotSkillsEnum.ts index cd006fa1..3c7043ce 100644 --- a/src/views/room/widgets/avatar-info/common/BotSkillsEnum.ts +++ b/src/views/room/widgets/avatar-info/common/BotSkillsEnum.ts @@ -1,4 +1,4 @@ -export class BotSkillsEnum +export class BotSkillsEnum { public static _Str_19584: number = 0; public static DRESS_UP: number = 1; diff --git a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx index b1b3f19d..a2613ccb 100644 --- a/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx +++ b/src/views/room/widgets/avatar-info/views/use-product-confirm/AvatarInfoUseProductConfirmView.tsx @@ -76,8 +76,8 @@ export const AvatarInfoUseProductConfirmView: FC parseInt(piece)); - const _local_7 = customParts[2].split(",").map(piece => parseInt(piece)); - const _local_8 = customParts[3].split(",").map(piece => parseInt(piece)); + const _local_7 = customParts[2].split(',').map(piece => parseInt(piece)); + const _local_8 = customParts[3].split(',').map(piece => parseInt(piece)); let _local_10 = 0; @@ -88,7 +88,7 @@ export const AvatarInfoUseProductConfirmView: FC parseInt(piece)); - const _local_8 = customParts[2].split(",").map(piece => parseInt(piece)); + const _local_6 = customParts[1].split(',').map(piece => parseInt(piece)); + const _local_8 = customParts[2].split(',').map(piece => parseInt(piece)); let _local_10 = 0; @@ -129,8 +129,8 @@ export const AvatarInfoUseProductConfirmView: FC parseInt(piece)); - const _local_7 = customParts[2].split(",").map(piece => parseInt(piece)); - const _local_8 = customParts[3].split(",").map(piece => parseInt(piece)); + const _local_7 = customParts[2].split(',').map(piece => parseInt(piece)); + const _local_8 = customParts[3].split(',').map(piece => parseInt(piece)); let _local_10 = 0; diff --git a/src/views/room/widgets/chat/message/ChatWidgetMessageView.tsx b/src/views/room/widgets/chat/message/ChatWidgetMessageView.tsx index c1b3a158..6ea5eea4 100644 --- a/src/views/room/widgets/chat/message/ChatWidgetMessageView.tsx +++ b/src/views/room/widgets/chat/message/ChatWidgetMessageView.tsx @@ -67,7 +67,7 @@ export const ChatWidgetMessageView: FC = props => { (chat.imageUrl && (chat.imageUrl !== '')) &&
}
- + { chat.text }
diff --git a/src/views/room/widgets/chat/utils/ChatBubbleMessage.ts b/src/views/room/widgets/chat/utils/ChatBubbleMessage.ts index 9299ceb1..24e9735d 100644 --- a/src/views/room/widgets/chat/utils/ChatBubbleMessage.ts +++ b/src/views/room/widgets/chat/utils/ChatBubbleMessage.ts @@ -24,7 +24,8 @@ export class ChatBubbleMessage public styleId: number = 0, public imageUrl: string = null, public color: string = null - ) { + ) +{ this.id = ++ChatBubbleMessage.BUBBLE_COUNTER; } diff --git a/src/views/room/widgets/context-menu/views/list/ContextMenuListView.tsx b/src/views/room/widgets/context-menu/views/list/ContextMenuListView.tsx index b9256ba8..c4e8f42d 100644 --- a/src/views/room/widgets/context-menu/views/list/ContextMenuListView.tsx +++ b/src/views/room/widgets/context-menu/views/list/ContextMenuListView.tsx @@ -6,7 +6,7 @@ export const ContextMenuListView: FC = props => const { columns = 1, children = null } = props; return ( -
+
{ children }
); diff --git a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx index 4a748685..b27741f7 100644 --- a/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx +++ b/src/views/room/widgets/furniture/external-image/FurnitureExternalImageView.tsx @@ -33,7 +33,7 @@ export const FurnitureExternalImageView: FC<{}> = props => if((objectId === -1) || !photoData) return null; - return( + return ( diff --git a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx index e67b9e5f..f081241c 100644 --- a/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx +++ b/src/views/room/widgets/furniture/friend-furni/FurnitureFriendFurniView.tsx @@ -110,7 +110,7 @@ export const FurnitureFriendFurniView: FC<{}> = props => { LocalizeText('friend.furniture.confirm.lock.subtitle') }
-
+
{ engravingStage === 2 &&
{ LocalizeText('friend.furniture.confirm.lock.other.locked') }
}
@@ -120,7 +120,7 @@ export const FurnitureFriendFurniView: FC<{}> = props => } { engravingLockData && engravingLockData.usernames.length > 0 && -
+
processAction('close_view') }>
diff --git a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx index d839f214..20d7c2eb 100644 --- a/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx +++ b/src/views/room/widgets/furniture/stickie/FurnitureStickieView.tsx @@ -116,7 +116,7 @@ export const FurnitureStickieView: FC<{}> = props => return ( -
+
{ stickieData.canModify && @@ -124,7 +124,7 @@ export const FurnitureStickieView: FC<{}> = props =>
processAction('trash') }>
{ STICKIE_COLORS.map(color => { - return
processAction('changeColor', color) } style={ {backgroundColor: ColorUtils.makeColorHex(color) } } /> + return
processAction('changeColor', color) } style={ { backgroundColor: ColorUtils.makeColorHex(color) } } /> })} }
diff --git a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx index ea65abe3..7f085e2f 100644 --- a/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx +++ b/src/views/room/widgets/infostand/views/user/InfoStandWidgetUserView.tsx @@ -57,7 +57,7 @@ export const InfoStandWidgetUserView: FC = props = { const parser = event.getParser(); - if (userData && userData.webID === parser.userId) + if(userData && userData.webID === parser.userId) setUserRelationships(parser); }, [userData]); @@ -70,7 +70,8 @@ export const InfoStandWidgetUserView: FC = props = setMotto(userData.motto); SendMessageHook(new UserRelationshipsComposer(userData.webID)); - return () => { + return () => +{ setBadges([]); setUserRelationships(null); } diff --git a/src/views/room/widgets/object-location/ObjectLocationView.tsx b/src/views/room/widgets/object-location/ObjectLocationView.tsx index 36a735c9..69740e78 100644 --- a/src/views/room/widgets/object-location/ObjectLocationView.tsx +++ b/src/views/room/widgets/object-location/ObjectLocationView.tsx @@ -5,7 +5,7 @@ import { ObjectLocationViewProps } from './ObjectLocationView.types'; export const ObjectLocationView: FC = props => { const { objectId = -1, category = -1, noFollow = false, children = null } = props; - const [ pos, setPos ] = useState<{ x: number, y: number }>({ x: -1, y: -1}); + const [ pos, setPos ] = useState<{ x: number, y: number }>({ x: -1, y: -1 }); const elementRef = useRef(); const getObjectLocation = useCallback(() => diff --git a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx index 70d510f1..2080924a 100644 --- a/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx +++ b/src/views/room/widgets/room-tools/RoomToolsWidgetView.tsx @@ -42,18 +42,18 @@ export const RoomToolsWidgetView: FC<{}> = props => }, [ isZoomedIn, isLiked, widgetHandler ]); return ( -
+
handleToolClick('settings') }> { LocalizeText('room.settings.button.text') }
handleToolClick('zoom') }> - { LocalizeText('room.zoom.button.text') } + { LocalizeText('room.zoom.button.text') }
handleToolClick('chat_history') }> { LocalizeText('room.chathistory.button.text') }
-
handleToolClick('like_room') }> +
handleToolClick('like_room') }> { LocalizeText('room.like.button.text') }
handleToolClick('toggle_room_link') }> @@ -61,7 +61,7 @@ export const RoomToolsWidgetView: FC<{}> = props =>
setIsExpanded(value => !value)}> - +
); diff --git a/src/views/shared/avatar-image/AvatarImageView.tsx b/src/views/shared/avatar-image/AvatarImageView.tsx index ea9a823d..618bf1d0 100644 --- a/src/views/shared/avatar-image/AvatarImageView.tsx +++ b/src/views/shared/avatar-image/AvatarImageView.tsx @@ -13,7 +13,8 @@ export const AvatarImageView: FC = props => useEffect(() => { const avatarImage = GetAvatarRenderManager().createAvatarImage(figure, AvatarScaleType.LARGE, gender, { - resetFigure: figure => { + resetFigure: figure => +{ if(isDisposed.current) return; setRandomValue(Math.random()); diff --git a/src/views/user-profile/UserProfileView.tsx b/src/views/user-profile/UserProfileView.tsx index 2865137b..8ab15383 100644 --- a/src/views/user-profile/UserProfileView.tsx +++ b/src/views/user-profile/UserProfileView.tsx @@ -24,7 +24,7 @@ export const UserProfileView: FC = props => { const parser = event.getParser(); - if (userProfile && parser.userId === userProfile.id) + if(userProfile && parser.userId === userProfile.id) setUserBadges(parser.badges); }, [userProfile, setUserBadges]); @@ -34,7 +34,7 @@ export const UserProfileView: FC = props => { const parser = event.getParser(); - if (userProfile && parser.userId === userProfile.id) + if(userProfile && parser.userId === userProfile.id) setUserRelationships(parser); }, [userProfile, setUserRelationships]); @@ -57,7 +57,7 @@ export const UserProfileView: FC = props => CreateMessageHook(UserProfileEvent, OnUserProfileEvent); - if (!userProfile) return null; + if(!userProfile) return null; return (
diff --git a/src/views/user-profile/views/badges-container/BadgesContainerView.tsx b/src/views/user-profile/views/badges-container/BadgesContainerView.tsx index 4e7eafb2..ca698bdb 100644 --- a/src/views/user-profile/views/badges-container/BadgesContainerView.tsx +++ b/src/views/user-profile/views/badges-container/BadgesContainerView.tsx @@ -4,14 +4,15 @@ import { BadgesContainerViewProps } from './BadgesContainerView.types'; export const BadgesContainerView: FC = props => { - const {badges = null} = props; + const { badges = null } = props; return (
{ - badges.map( (badge, index) => { + badges.map( (badge, index) => +{ return (
diff --git a/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx b/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx index be21d944..88f4a250 100644 --- a/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx +++ b/src/views/user-profile/views/relationships-container/RelationshipsContainerView.tsx @@ -11,7 +11,7 @@ export const RelationshipsContainerView: FC = p const OnUserClick = useCallback((user: RelationshipStatusInfo) => { - if (user) + if(user) SendMessageHook(new UserProfileComposer(user.randomFriendId)); }, []); @@ -19,7 +19,7 @@ export const RelationshipsContainerView: FC = p { const relationshipInfo = (relationships && relationships.relationshipStatusMap.hasKey(type)) ? relationships.relationshipStatusMap.getValue(type) : null; - if (simple && !relationshipInfo) return null; + if(simple && !relationshipInfo) return null; const relationshipName = RelationshipStatusEnum.RELATIONSHIP_NAMES[type].toLocaleLowerCase(); diff --git a/src/views/user-profile/views/user-container/UserContainerView.tsx b/src/views/user-profile/views/user-container/UserContainerView.tsx index 5cd9393d..0eff6504 100644 --- a/src/views/user-profile/views/user-container/UserContainerView.tsx +++ b/src/views/user-profile/views/user-container/UserContainerView.tsx @@ -7,14 +7,16 @@ import { UserContainerViewProps } from './UserContainerView.types'; export const UserContainerView: FC = props => { - const {figure = null, username = null, motto = null, creation = null, secondsSinceLastLogin = null, achievementScore, isFriend = null, isOnline = null, id = null, requestSent = null} = props; + const { figure = null, username = null, motto = null, creation = null, secondsSinceLastLogin = null, achievementScore, isFriend = null, isOnline = null, id = null, requestSent = null } = props; - const OnlineIcon = useCallback(() => { + const OnlineIcon = useCallback(() => +{ if(isOnline) return (); else return (); }, [isOnline]); - const FriendRequestComponent = useCallback(() => { + const FriendRequestComponent = useCallback(() => +{ if(id === GetSessionDataManager().userId) return ({LocalizeText('extendedprofile.me')} ); if(isFriend) return ({LocalizeText('extendedprofile.friend')}); diff --git a/src/views/user-settings/UserSettingsView.tsx b/src/views/user-settings/UserSettingsView.tsx index b473d33c..1e60e19c 100644 --- a/src/views/user-settings/UserSettingsView.tsx +++ b/src/views/user-settings/UserSettingsView.tsx @@ -13,7 +13,7 @@ export const UserSettingsView: FC<{}> = props => const onUserSettingsUIEvent = useCallback((event: UserSettingsUIEvent) => { - switch (event.type) + switch(event.type) { case UserSettingsUIEvent.SHOW_USER_SETTINGS: setIsVisible(true); @@ -56,7 +56,7 @@ export const UserSettingsView: FC<{}> = props => const clone = userSettings.clone(); - switch (type) + switch(type) { case 'close_view': setIsVisible(false); @@ -91,7 +91,7 @@ export const UserSettingsView: FC<{}> = props => break; } - if (doUpdate) setUserSettings(clone); + if(doUpdate) setUserSettings(clone); }, [userSettings]); const saveRangeSlider = useCallback((type: string) => @@ -106,12 +106,12 @@ export const UserSettingsView: FC<{}> = props => useEffect(() => { - if (!userSettings) return; + if(!userSettings) return; dispatchMainEvent(userSettings); }, [userSettings]); - if (!isVisible) return null; + if(!isVisible) return null; return ( @@ -134,7 +134,7 @@ export const UserSettingsView: FC<{}> = props =>
0) ? ' fa-volume-down' : '') + ((userSettings.volumeSystem >= 50) ? ' text-muted' : '') } /> - processAction("system_volume", event.target.value) } onMouseUp={ () => saveRangeSlider("volume") }/> + processAction('system_volume', event.target.value) } onMouseUp={ () => saveRangeSlider('volume') }/>
@@ -142,7 +142,7 @@ export const UserSettingsView: FC<{}> = props =>
0) ? ' fa-volume-down' : '') + ((userSettings.volumeFurni >= 50) ? ' text-muted' : '') } /> - processAction("furni_volume", event.target.value) } onMouseUp={ () => saveRangeSlider("volume") }/> + processAction('furni_volume', event.target.value) } onMouseUp={ () => saveRangeSlider('volume') }/>
@@ -150,7 +150,7 @@ export const UserSettingsView: FC<{}> = props =>
0) ? ' fa-volume-down' : '') + ((userSettings.volumeTrax >= 50) ? ' text-muted' : '') } /> - processAction("trax_volume", event.target.value) } onMouseUp={ () => saveRangeSlider("volume") }/> + processAction('trax_volume', event.target.value) } onMouseUp={ () => saveRangeSlider('volume') }/>