mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 23:50:52 +01:00
Changes
This commit is contained in:
parent
e35bfde816
commit
72bc5562fd
@ -1,4 +1,5 @@
|
|||||||
export interface IMarketplaceSearchOptions {
|
export interface IMarketplaceSearchOptions
|
||||||
|
{
|
||||||
query: string;
|
query: string;
|
||||||
type: number;
|
type: number;
|
||||||
minPrice: number;
|
minPrice: number;
|
@ -12,10 +12,14 @@ export * from './GiftWrappingConfiguration';
|
|||||||
export * from './ICatalogNode';
|
export * from './ICatalogNode';
|
||||||
export * from './ICatalogOptions';
|
export * from './ICatalogOptions';
|
||||||
export * from './ICatalogPage';
|
export * from './ICatalogPage';
|
||||||
|
export * from './IMarketplaceSearchOptions';
|
||||||
export * from './IPageLocalization';
|
export * from './IPageLocalization';
|
||||||
export * from './IProduct';
|
export * from './IProduct';
|
||||||
export * from './IPurchasableOffer';
|
export * from './IPurchasableOffer';
|
||||||
export * from './IPurchaseOptions';
|
export * from './IPurchaseOptions';
|
||||||
|
export * from './MarketplaceOfferData';
|
||||||
|
export * from './MarketplaceOfferState';
|
||||||
|
export * from './MarketplaceSearchType';
|
||||||
export * from './Offer';
|
export * from './Offer';
|
||||||
export * from './PageLocalization';
|
export * from './PageLocalization';
|
||||||
export * from './PlacedObjectPurchaseData';
|
export * from './PlacedObjectPurchaseData';
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
import { FC, useCallback, useMemo } from 'react';
|
import { FC, useCallback, useMemo } from 'react';
|
||||||
import { GetImageIconUrlForProduct, LocalizeText, ProductTypeEnum } from '../../../../../../api';
|
import { GetImageIconUrlForProduct, LocalizeText, MarketplaceOfferData, MarketPlaceOfferState, ProductTypeEnum } from '../../../../../../api';
|
||||||
import { Button, Column, LayoutGridItem, Text } from '../../../../../../common';
|
import { Button, Column, LayoutGridItem, Text } from '../../../../../../common';
|
||||||
import { MarketplaceOfferData } from './common/MarketplaceOfferData';
|
|
||||||
import { MarketPlaceOfferState } from './common/MarketplaceOfferState';
|
|
||||||
|
|
||||||
export interface MarketplaceItemViewProps
|
export interface MarketplaceItemViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,12 +1,10 @@
|
|||||||
import { CancelMarketplaceOfferMessageComposer, GetMarketplaceOwnOffersMessageComposer, MarketplaceCancelOfferResultEvent, MarketplaceOwnOffersEvent, RedeemMarketplaceOfferCreditsMessageComposer } from '@nitrots/nitro-renderer';
|
import { CancelMarketplaceOfferMessageComposer, GetMarketplaceOwnOffersMessageComposer, MarketplaceCancelOfferResultEvent, MarketplaceOwnOffersEvent, RedeemMarketplaceOfferCreditsMessageComposer } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useEffect, useMemo, useState } from 'react';
|
import { FC, useCallback, useEffect, useMemo, useState } from 'react';
|
||||||
import { LocalizeText, NotificationAlertType, SendMessageComposer } from '../../../../../../api';
|
import { LocalizeText, MarketplaceOfferData, MarketPlaceOfferState, NotificationAlertType, SendMessageComposer } from '../../../../../../api';
|
||||||
import { Button, Column, Text } from '../../../../../../common';
|
import { Button, Column, Text } from '../../../../../../common';
|
||||||
import { useMessageEvent, useNotification } from '../../../../../../hooks';
|
import { useMessageEvent, useNotification } from '../../../../../../hooks';
|
||||||
import { CatalogLayoutProps } from '../CatalogLayout.types';
|
import { CatalogLayoutProps } from '../CatalogLayout.types';
|
||||||
import { CatalogLayoutMarketplaceItemView, OWN_OFFER } from './CatalogLayoutMarketplaceItemView';
|
import { CatalogLayoutMarketplaceItemView, OWN_OFFER } from './CatalogLayoutMarketplaceItemView';
|
||||||
import { MarketplaceOfferData } from './common/MarketplaceOfferData';
|
|
||||||
import { MarketPlaceOfferState } from './common/MarketplaceOfferState';
|
|
||||||
|
|
||||||
export const CatalogLayoutMarketplaceOwnItemsView: FC<CatalogLayoutProps> = props =>
|
export const CatalogLayoutMarketplaceOwnItemsView: FC<CatalogLayoutProps> = props =>
|
||||||
{
|
{
|
||||||
|
@ -1,14 +1,11 @@
|
|||||||
import { BuyMarketplaceOfferMessageComposer, GetMarketplaceOffersMessageComposer, MarketplaceBuyOfferResultEvent, MarketPlaceOffersEvent } from '@nitrots/nitro-renderer';
|
import { BuyMarketplaceOfferMessageComposer, GetMarketplaceOffersMessageComposer, MarketplaceBuyOfferResultEvent, MarketPlaceOffersEvent } from '@nitrots/nitro-renderer';
|
||||||
import { FC, useCallback, useMemo, useState } from 'react';
|
import { FC, useCallback, useMemo, useState } from 'react';
|
||||||
import { LocalizeText, NotificationAlertType, SendMessageComposer } from '../../../../../../api';
|
import { IMarketplaceSearchOptions, LocalizeText, MarketplaceOfferData, MarketplaceSearchType, NotificationAlertType, SendMessageComposer } from '../../../../../../api';
|
||||||
import { Button, ButtonGroup, Column, Text } from '../../../../../../common';
|
import { Button, ButtonGroup, Column, Text } from '../../../../../../common';
|
||||||
import { useMessageEvent, useNotification, usePurse } from '../../../../../../hooks';
|
import { useMessageEvent, useNotification, usePurse } from '../../../../../../hooks';
|
||||||
import { CatalogLayoutProps } from '../CatalogLayout.types';
|
import { CatalogLayoutProps } from '../CatalogLayout.types';
|
||||||
import { CatalogLayoutMarketplaceItemView, PUBLIC_OFFER } from './CatalogLayoutMarketplaceItemView';
|
import { CatalogLayoutMarketplaceItemView, PUBLIC_OFFER } from './CatalogLayoutMarketplaceItemView';
|
||||||
import { SearchFormView } from './CatalogLayoutMarketplaceSearchFormView';
|
import { SearchFormView } from './CatalogLayoutMarketplaceSearchFormView';
|
||||||
import { IMarketplaceSearchOptions } from './common/IMarketplaceSearchOptions';
|
|
||||||
import { MarketplaceOfferData } from './common/MarketplaceOfferData';
|
|
||||||
import { MarketplaceSearchType } from './common/MarketplaceSearchType';
|
|
||||||
|
|
||||||
const SORT_TYPES_VALUE = [ 1, 2 ];
|
const SORT_TYPES_VALUE = [ 1, 2 ];
|
||||||
const SORT_TYPES_ACTIVITY = [ 3, 4, 5, 6 ];
|
const SORT_TYPES_ACTIVITY = [ 3, 4, 5, 6 ];
|
||||||
|
@ -1,11 +1,6 @@
|
|||||||
import { FC, useCallback, useEffect, useState } from 'react';
|
import { FC, useCallback, useEffect, useState } from 'react';
|
||||||
import { LocalizeText } from '../../../../../../api';
|
import { IMarketplaceSearchOptions, LocalizeText, MarketplaceSearchType } from '../../../../../../api';
|
||||||
import { Button } from '../../../../../../common/Button';
|
import { Button, Column, Flex, Text } from '../../../../../../common';
|
||||||
import { Column } from '../../../../../../common/Column';
|
|
||||||
import { Flex } from '../../../../../../common/Flex';
|
|
||||||
import { Text } from '../../../../../../common/Text';
|
|
||||||
import { IMarketplaceSearchOptions } from './common/IMarketplaceSearchOptions';
|
|
||||||
import { MarketplaceSearchType } from './common/MarketplaceSearchType';
|
|
||||||
|
|
||||||
export interface SearchFormViewProps
|
export interface SearchFormViewProps
|
||||||
{
|
{
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
export class MarketplaceConfirmType
|
|
||||||
{
|
|
||||||
public static readonly PURCHASE_CONFIRM_TYPE_NORMAL = 1;
|
|
||||||
public static readonly PURCHASE_CONFIRM_TYPE_HIGHER = 2;
|
|
||||||
public static readonly PURCHASE_CONFIRM_TYPE_INVALID = 3;
|
|
||||||
}
|
|
@ -21,7 +21,7 @@ export const HelpIndexView: FC<{}> = props =>
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Column gap={ 1 }>
|
<Column grow center gap={ 1 }>
|
||||||
<Text fontSize={ 3 }>{ LocalizeText('help.main.frame.title') }</Text>
|
<Text fontSize={ 3 }>{ LocalizeText('help.main.frame.title') }</Text>
|
||||||
<Text>{ LocalizeText('help.main.self.description') }</Text>
|
<Text>{ LocalizeText('help.main.self.description') }</Text>
|
||||||
</Column>
|
</Column>
|
||||||
@ -29,8 +29,8 @@ export const HelpIndexView: FC<{}> = props =>
|
|||||||
<Button onClick={ onReportClick }>{ LocalizeText('help.main.bully.subtitle') }</Button>
|
<Button onClick={ onReportClick }>{ LocalizeText('help.main.bully.subtitle') }</Button>
|
||||||
<Button onClick={ () => DispatchUiEvent(new GuideToolEvent(GuideToolEvent.CREATE_HELP_REQUEST)) }>{ LocalizeText('help.main.help.title') }</Button>
|
<Button onClick={ () => DispatchUiEvent(new GuideToolEvent(GuideToolEvent.CREATE_HELP_REQUEST)) }>{ LocalizeText('help.main.help.title') }</Button>
|
||||||
<Button disabled={ true }>{ LocalizeText('help.main.self.tips.title') }</Button>
|
<Button disabled={ true }>{ LocalizeText('help.main.self.tips.title') }</Button>
|
||||||
<Button variant="link" className="text-black" onClick={ () => SendMessageComposer(new GetCfhStatusMessageComposer(false)) }>{ LocalizeText('help.main.my.sanction.status') }</Button>
|
|
||||||
</Column>
|
</Column>
|
||||||
|
<Button variant="link" textColor="black" onClick={ () => SendMessageComposer(new GetCfhStatusMessageComposer(false)) }>{ LocalizeText('help.main.my.sanction.status') }</Button>
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
export class ToolbarViewItems
|
|
||||||
{
|
|
||||||
public static NAVIGATOR_ITEM: string = 'TVI_NAVIGATOR_ITEM';
|
|
||||||
public static INVENTORY_ITEM: string = 'TVI_INVENTORY_ITEM';
|
|
||||||
public static CATALOG_ITEM: string = 'TVI_CATALOG_ITEM';
|
|
||||||
public static FRIEND_LIST_ITEM: string = 'TVI_FRIEND_LIST_ITEM';
|
|
||||||
public static FRIEND_CHAT_ITEM: string = 'TVI_FRIEND_CHAT_ITEM';
|
|
||||||
public static CLOTHING_ITEM: string = 'TVI_CLOTHING_ITEM';
|
|
||||||
public static CAMERA_ITEM: string = 'TVI_CAMERA_ITEM';
|
|
||||||
public static MOD_TOOLS_ITEM: string = 'TVI_MOD_TOOLS_ITEM';
|
|
||||||
public static ACHIEVEMENTS_ITEM: string = 'TVI_ACHIEVEMENTS_ITEM';
|
|
||||||
public static PROFILE_ITEM: string = 'TVI_PROFILE_ITEM';
|
|
||||||
public static SETTINGS_ITEM: string = 'TVI_SETTINGS_ITEM';
|
|
||||||
public static GUIDE_TOOL_ITEM: string = 'TVI_GUIDE_TOOL_ITEM';
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user