mirror of
https://github.com/Kvan7/Exiled-Exchange-2.git
synced 2026-09-24 21:55:41 +00:00
fix warnings for timelost jewels
This commit is contained in:
@@ -77,6 +77,7 @@ const parsers: Array<ParserFn | { virtual: VirtualParserFn }> = [
|
||||
parseSpirit,
|
||||
parsePriceNote,
|
||||
parseHelpText,
|
||||
parseTimelostRadius,
|
||||
parseStackSize,
|
||||
parseCorrupted,
|
||||
parseFoil,
|
||||
@@ -1159,6 +1160,15 @@ function parseHelpText(section: string[], item: ParsedItem) {
|
||||
}
|
||||
return "SECTION_SKIPPED";
|
||||
}
|
||||
function parseTimelostRadius(section: string[], item: ParsedItem) {
|
||||
if (item.category !== ItemCategory.Jewel) return "PARSER_SKIPPED";
|
||||
for (const line of section) {
|
||||
if (line.startsWith(_$.TIMELESS_RADIUS)) {
|
||||
return "SECTION_PARSED";
|
||||
}
|
||||
}
|
||||
return "SECTION_SKIPPED";
|
||||
}
|
||||
|
||||
function parseSentinelCharge(section: string[], item: ParsedItem) {
|
||||
if (item.category !== ItemCategory.Sentinel) return "PARSER_SKIPPED";
|
||||
|
||||
@@ -23,7 +23,8 @@
|
||||
class="search-text flex-1 mr-1 relative flex min-w-0"
|
||||
style="line-height: 1rem"
|
||||
>
|
||||
<span class="truncate"
|
||||
<span
|
||||
:class="trimStart ? 'text-ellipsis truncate-start' : 'truncate'"
|
||||
><item-modifier-text :text="text" :roll="roll?.value"
|
||||
/></span>
|
||||
<span class="search-text-full whitespace-pre-wrap"
|
||||
@@ -137,7 +138,7 @@ import ModifierAnointment from "./FilterModifierAnointment.vue";
|
||||
import FilterModifierItemHasEmpty from "./FilterModifierItemHasEmpty.vue";
|
||||
import FilterModifierTiers from "./FilterModifierTiers.vue";
|
||||
import { AppConfig } from "@/web/Config";
|
||||
import { ItemRarity, ParsedItem } from "@/parser";
|
||||
import { ItemCategory, ItemRarity, ParsedItem } from "@/parser";
|
||||
import { FilterTag, StatFilter, INTERNAL_TRADE_IDS } from "./interfaces";
|
||||
import SourceInfo from "./SourceInfo.vue";
|
||||
import FilterModifierItemIsElemental from "./FilterModifierItemIsElemental.vue";
|
||||
@@ -318,6 +319,11 @@ export default defineComponent({
|
||||
),
|
||||
inputFocus,
|
||||
toggleFilter,
|
||||
trimStart: computed(
|
||||
() =>
|
||||
props.item.category === ItemCategory.Jewel &&
|
||||
props.item.info.refName.startsWith("Time-Lost"),
|
||||
),
|
||||
};
|
||||
},
|
||||
});
|
||||
@@ -511,4 +517,16 @@ export default defineComponent({
|
||||
@apply bg-gray-700;
|
||||
}
|
||||
}
|
||||
|
||||
.truncate-start {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
direction: rtl;
|
||||
}
|
||||
.truncate-start:after {
|
||||
position: absolute;
|
||||
left: 0px;
|
||||
content: "...";
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user