+ [queryable]="item.rarity === 'normal' || item.rarity === 'magic' || item.rarity === 'rare'" [language]="language">
diff --git a/src/app/shared/module/poe/component/item-frame/item-frame.component.ts b/src/app/shared/module/poe/component/item-frame/item-frame.component.ts
index b1d96f40..39f4a701 100644
--- a/src/app/shared/module/poe/component/item-frame/item-frame.component.ts
+++ b/src/app/shared/module/poe/component/item-frame/item-frame.component.ts
@@ -80,10 +80,4 @@ export class ItemFrameComponent implements OnInit {
public onPropertyChange(): void {
this.queryItemChange.emit(this.queryItem);
}
-
- public onValueChange(value: any): void {
- if (value !== undefined && value !== null) {
- this.queryItemChange.emit(this.queryItem);
- }
- }
}
diff --git a/src/app/shared/module/poe/service/item/item-search-analyze.service.spec.ts b/src/app/shared/module/poe/service/item/item-search-analyze.service.spec.ts
index 6823c8cb..f9dd84b9 100644
--- a/src/app/shared/module/poe/service/item/item-search-analyze.service.spec.ts
+++ b/src/app/shared/module/poe/service/item/item-search-analyze.service.spec.ts
@@ -41,7 +41,7 @@ describe('ItemSearchAnalyzeService', () => {
forkJoin([
searchService.search(requestedItem).pipe(
- flatMap(result => searchService.list(result))
+ flatMap(result => searchService.list(result, 10))
),
currencyService.searchById('chaos')
]).subscribe(results => {
diff --git a/src/app/shared/module/poe/service/item/item-search.service.spec.ts b/src/app/shared/module/poe/service/item/item-search.service.spec.ts
index b97117cb..aa8e4717 100644
--- a/src/app/shared/module/poe/service/item/item-search.service.spec.ts
+++ b/src/app/shared/module/poe/service/item/item-search.service.spec.ts
@@ -46,7 +46,7 @@ describe('ItemSearchService', () => {
sut.search(requestedItem).subscribe(result => {
expect(result.hits.length).toBeGreaterThan(0);
- sut.list(result).subscribe(listings => {
+ sut.list(result, 10).subscribe(listings => {
expect(listings.length).toBe(Math.min(result.hits.length, 100));
done();
diff --git a/src/app/shared/module/poe/service/item/item-search.service.ts b/src/app/shared/module/poe/service/item/item-search.service.ts
index 7ba7e369..4ef1aeb4 100644
--- a/src/app/shared/module/poe/service/item/item-search.service.ts
+++ b/src/app/shared/module/poe/service/item/item-search.service.ts
@@ -10,7 +10,7 @@ import { ContextService } from '../context.service';
import { CurrencyService } from '../currency/currency.service';
import { ItemSearchQueryService } from './query/item-search-query.service';
-const MAX_FETCH_COUNT = 10;
+const MAX_FETCH_PER_REQUEST_COUNT = 10;
const MAX_FETCH_CONCURRENT_COUNT = 5;
export interface ItemSearchListing {
@@ -87,12 +87,13 @@ export class ItemSearchService {
}));
}
- public list(search: ItemSearchResult): Observable {
+ public list(search: ItemSearchResult, fetchCount: number): Observable {
const { id, language, hits } = search;
const hitsChunked: string[][] = [];
- for (let i = 0, j = Math.min(100, hits.length); i < j; i += MAX_FETCH_COUNT) {
- hitsChunked.push(hits.slice(i, i + MAX_FETCH_COUNT));
+ const maxFetchCount = Math.min(fetchCount, hits.length)
+ for (let i = 0, j = maxFetchCount; i < j; i += MAX_FETCH_PER_REQUEST_COUNT) {
+ hitsChunked.push(hits.slice(i, i + MAX_FETCH_PER_REQUEST_COUNT));
}
return from(hitsChunked).pipe(
diff --git a/src/app/shared/module/poe/service/item/query/item-search-filters-type.service.ts b/src/app/shared/module/poe/service/item/query/item-search-filters-type.service.ts
index c08774a9..c7512df6 100644
--- a/src/app/shared/module/poe/service/item/query/item-search-filters-type.service.ts
+++ b/src/app/shared/module/poe/service/item/query/item-search-filters-type.service.ts
@@ -59,15 +59,6 @@ export class ItemSearchFiltersTypeService implements ItemSearchFiltersService {
case ItemCategory.AccessoryAmulet:
case ItemCategory.AccessoryBelt:
case ItemCategory.AccessoryRing:
- // jewel
- case ItemCategory.Jewel:
- case ItemCategory.JewelAbyss:
- // flasks
- case ItemCategory.Flask:
- // map
- case ItemCategory.Map:
- // monster
- case ItemCategory.MonsterBeast:
if (item.rarity === ItemRarity.Unique) {
query.filters.type_filters.filters.rarity = {
option: ItemRarity.Unique
@@ -75,12 +66,35 @@ export class ItemSearchFiltersTypeService implements ItemSearchFiltersService {
} else {
query.filters.type_filters.filters.rarity = {
option: ItemRarity.NonUnique
+ };
+
+ if (query.name) {
+ query.term = `${query.name || ''} ${query.type || ''}`.trim();
+ query.name = query.type = undefined;
}
}
query.filters.type_filters.filters.category = {
option: item.category,
};
break;
+ // jewel
+ case ItemCategory.Jewel:
+ case ItemCategory.JewelAbyss:
+ // flasks
+ case ItemCategory.Flask:
+ // map
+ case ItemCategory.Map:
+ // monster
+ case ItemCategory.MonsterBeast:
+ query.filters.type_filters.filters.rarity = {
+ option: item.rarity === ItemRarity.Unique
+ ? ItemRarity.Unique
+ : ItemRarity.NonUnique
+ };
+ query.filters.type_filters.filters.category = {
+ option: item.category,
+ };
+ break;
// gem
case ItemCategory.Gem:
case ItemCategory.GemActivegem:
diff --git a/src/assets/i18n/english.json b/src/assets/i18n/english.json
index 990bdc0d..00e47028 100644
--- a/src/assets/i18n/english.json
+++ b/src/assets/i18n/english.json
@@ -36,7 +36,8 @@
"debounce-time": "Search Debounce Time",
"empty": "No results. Open in browser?",
"error": "An error occured.",
- "listings": "Found {{total}}. Fetching entries...",
+ "fetch-count": "Search Fetch Count",
+ "listings": "Found {{total}}. Fetching {{count}} entries...",
"loading": "Loading...",
"mean": "Mean",
"median": "Median",
diff --git a/src/assets/i18n/french.json b/src/assets/i18n/french.json
index d9954ae6..4418e839 100644
--- a/src/assets/i18n/french.json
+++ b/src/assets/i18n/french.json
@@ -36,7 +36,8 @@
"debounce-time": "Rechercher le temps de rebond",
"empty": "Aucun résultat. Ouvrir dans le navigateur?",
"error": "Une erreur s'est produite.",
- "listings": " {{total}}trouvé. Récupération des entrées ...",
+ "fetch-count": "Nombre de recherches",
+ "listings": " {{total}}trouvé. Récupération de {{count}} entrées ...",
"loading": "Chargement...",
"mean": "Mean",
"median": "Médian",
diff --git a/src/assets/i18n/german.json b/src/assets/i18n/german.json
index b2427bd1..4739b35d 100644
--- a/src/assets/i18n/german.json
+++ b/src/assets/i18n/german.json
@@ -36,7 +36,8 @@
"debounce-time": "Such-Entprellzeit",
"empty": "Keine Ergebnisse. Im Browser öffnen?",
"error": "Es ist ein Fehler aufgetreten.",
- "listings": "Gefunden {{total}}. Einträge abrufen ...",
+ "fetch-count": "Suche Fetch Count",
+ "listings": "Gefunden {{total}}. {{count}} Einträge abrufen ...",
"loading": "Wird geladen...",
"mean": "Mean",
"median": "Median",
diff --git a/src/assets/i18n/korean.json b/src/assets/i18n/korean.json
index e4dcf186..f5c13d91 100644
--- a/src/assets/i18n/korean.json
+++ b/src/assets/i18n/korean.json
@@ -36,7 +36,8 @@
"debounce-time": "검색 디 바운스 시간",
"empty": "결과가 없습니다. 브라우저에서 열려?",
"error": "오류가 발생했습니다.",
- "listings": " {{total}}을 (를) 찾았습니다. 항목을 가져 오는 중 ...",
+ "fetch-count": "검색 페치 수",
+ "listings": " {{total}}을 (를) 찾았습니다. {{count}} 항목을 가져 오는 중 ...",
"loading": "로드 중 ...",
"mean": "Mean",
"median": "중앙값",
diff --git a/src/assets/i18n/polish.json b/src/assets/i18n/polish.json
index 1500e570..2837d6f0 100644
--- a/src/assets/i18n/polish.json
+++ b/src/assets/i18n/polish.json
@@ -36,7 +36,8 @@
"debounce-time": "Czas oczekiwania na ponowną wycenę przedmiotu.",
"empty": "Brak wyników. Otworzyć w przeglądarce?",
"error": "Wystąpił błąd.",
- "listings": "Znaleziono {{total}}. Pobieranie aukcji ...",
+ "fetch-count": "Wyszukaj liczbę pobierania",
+ "listings": "Znaleziono {{total}}. Pobieranie {{count}} wpisów ...",
"loading": "Ładuję...",
"mean": "Średnia",
"median": "Mediana",
@@ -63,14 +64,14 @@
"item-sockets": "Gniazda",
"item-type": "Typ przedmiotu",
"max-age": {
- "any": "Kiedykolwiek",
- "day": "Ostatni dzień",
- "days": "Ostatnie 3 dni",
- "month": "Ostatni miesiąc",
- "months": "Ostatnie 2 miesiące",
- "title": "Data wystawienia",
- "week": "Ostatni tydzień",
- "weeks": "Ostatnie 2 tygodnie"
+ "any": "Kiedykolwiek",
+ "day": "Ostatni dzień",
+ "days": "Ostatnie 3 dni",
+ "month": "Ostatni miesiąc",
+ "months": "Ostatnie 2 miesiące",
+ "title": "Data wystawienia",
+ "week": "Ostatni tydzień",
+ "weeks": "Ostatnie 2 tygodnie"
},
"modifier": "Ustawienia wyszukiwania modyfikatora",
"modifier-range": "Zakres modyfikatora",
diff --git a/src/assets/i18n/portuguese.json b/src/assets/i18n/portuguese.json
index 43a76555..84113a74 100644
--- a/src/assets/i18n/portuguese.json
+++ b/src/assets/i18n/portuguese.json
@@ -36,7 +36,8 @@
"debounce-time": "Tempo de devolução da pesquisa",
"empty": "Sem resultados. Abra no navegador?",
"error": "Um erro ocorreu.",
- "listings": "Encontrado {{total}}. Buscando entradas ...",
+ "fetch-count": "Contagem de pesquisas",
+ "listings": "Encontrado {{total}}. Buscando {{count}} entradas ...",
"loading": "Carregando...",
"mean": "Mean",
"median": "Mediana",
diff --git a/src/assets/i18n/russian.json b/src/assets/i18n/russian.json
index 8ad656a6..6906058b 100644
--- a/src/assets/i18n/russian.json
+++ b/src/assets/i18n/russian.json
@@ -36,7 +36,8 @@
"debounce-time": "Время поиска",
"empty": "Никаких результатов. Открыть в браузере?",
"error": "Произошла ошибка.",
- "listings": "Найдено {{total}}. Выборка записей ...",
+ "fetch-count": "Поиск Fetch Count",
+ "listings": "Найдено {{total}}. Извлечение {{count}} записей ...",
"loading": "Загрузка ...",
"mean": "Mean",
"median": "медиана",
diff --git a/src/assets/i18n/simplified-chinese.json b/src/assets/i18n/simplified-chinese.json
index 520da8da..4d2bcab5 100644
--- a/src/assets/i18n/simplified-chinese.json
+++ b/src/assets/i18n/simplified-chinese.json
@@ -36,7 +36,8 @@
"debounce-time": "搜索反跳时间",
"empty": "没有结果。在浏览器中打开?",
"error": "发生错误。",
- "listings": "找到 {{total}}。正在提取条目...",
+ "fetch-count": "搜索获取计数",
+ "listings": "找到 {{total}}。正在获取 {{count}} 个条目...",
"loading": "载入中...",
"mean": "平均值",
"median": "中位数",
diff --git a/src/assets/i18n/spanish.json b/src/assets/i18n/spanish.json
index 1ddd6c91..9f9f9d11 100644
--- a/src/assets/i18n/spanish.json
+++ b/src/assets/i18n/spanish.json
@@ -36,7 +36,8 @@
"debounce-time": "Tiempo de rebote de búsqueda",
"empty": "No hay resultados. ¿Abierta en el navegador?",
"error": "Ocurrió un error.",
- "listings": "Encontrado {{total}}. Obteniendo entradas ...",
+ "fetch-count": "Buscar recuento de búsqueda",
+ "listings": "Encontrado {{total}}. Obteniendo {{count}} entradas ...",
"loading": "Cargando...",
"mean": "Mean",
"median": "Mediana",
diff --git a/src/assets/i18n/thai.json b/src/assets/i18n/thai.json
index 9cb2dd42..1cfb53c5 100644
--- a/src/assets/i18n/thai.json
+++ b/src/assets/i18n/thai.json
@@ -36,7 +36,8 @@
"debounce-time": "ค้นหาเวลาดีเลย์",
"empty": "ไม่มีผลลัพธ์. เปิดในเบราว์เซอร์?",
"error": "เกิดข้อผิดพลาด.",
- "listings": "พบ {{total}}กำลังดึงรายการ ...",
+ "fetch-count": "ค้นหาจำนวนการดึงข้อมูล",
+ "listings": "พบ {{total}}กำลังดึงรายการ {{count}} ...",
"loading": "กำลังโหลด ...",
"mean": "Mean",
"median": "มัธยฐาน",
diff --git a/src/assets/i18n/traditional-chinese.json b/src/assets/i18n/traditional-chinese.json
index 72023b6f..1dad9ccb 100644
--- a/src/assets/i18n/traditional-chinese.json
+++ b/src/assets/i18n/traditional-chinese.json
@@ -36,7 +36,8 @@
"debounce-time": "搜索反跳時間",
"empty": "沒有結果。在瀏覽器中打開?",
"error": "發生錯誤。",
- "listings": "找到 {{total}}。正在提取條目...",
+ "fetch-count": "搜索獲取計數",
+ "listings": "找到 {{total}}。正在獲取 {{count}} 個條目...",
"loading": "載入中...",
"mean": "平均值",
"median": "中位數",