mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-05-04 00:11:22 +00:00
6dfc44117f
* add parser * add strings data & fix test * edges * dump * add point calc * add area level calc * add point ui filter * Add ultimatum hint * add hints translations
53 lines
1.2 KiB
TypeScript
53 lines
1.2 KiB
TypeScript
import { createVirtualItem, ParsedItem } from "@/parser/ParsedItem";
|
|
import { PriceCheckWidget } from "@/web/overlay/widgets";
|
|
import { FilterTag, StatFilter } from "@/web/price-check/filters/interfaces";
|
|
|
|
export function createTestStatFilter(): StatFilter {
|
|
return {
|
|
tradeId: [],
|
|
statRef: "",
|
|
text: "",
|
|
tag: FilterTag.Explicit,
|
|
sources: [],
|
|
disabled: false,
|
|
};
|
|
}
|
|
|
|
export function createTestCreateOptions(): {
|
|
league: string;
|
|
currency: string | undefined;
|
|
collapseListings: "app" | "api";
|
|
activateStockFilter: boolean;
|
|
searchStatRange: number;
|
|
exact: boolean;
|
|
useEn: boolean;
|
|
defaultAllSelected: boolean;
|
|
autoFillEmptyAugmentSockets: PriceCheckWidget["autoFillEmptyRuneSockets"];
|
|
} {
|
|
return {
|
|
league: "Standard",
|
|
currency: undefined,
|
|
collapseListings: "app",
|
|
activateStockFilter: false,
|
|
searchStatRange: 10,
|
|
exact: false,
|
|
useEn: true,
|
|
defaultAllSelected: false,
|
|
autoFillEmptyAugmentSockets: false,
|
|
};
|
|
}
|
|
|
|
export function createTestItem(): ParsedItem {
|
|
return {
|
|
...createVirtualItem({} as unknown as ParsedItem),
|
|
isUnidentified: false,
|
|
info: {
|
|
refName: "test",
|
|
namespace: "ITEM",
|
|
name: "",
|
|
icon: "",
|
|
tags: [],
|
|
},
|
|
};
|
|
}
|