diff --git a/DEVELOPING.md b/DEVELOPING.md index ad5341b6..5c4a05aa 100644 --- a/DEVELOPING.md +++ b/DEVELOPING.md @@ -11,7 +11,7 @@ Note that these 2 both depend on each other, and one cannot run without the othe The most up-to-date instructions can always be derived from CI: -[.github/workflows/main.yml](https://github.com/SnosMe/awakened-poe-trade/blob/master/.github/workflows/main.yml) +[.github/workflows/main.yml](https://github.com/Kvan7/awakened-poe2-trade2/blob/master/.github/workflows/main.yml) Here's what that looks like as of 2023-12-03. diff --git a/README.md b/README.md index ad086a30..a10f7466 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ -# ![Awakener's Orb](https://web.poecdn.com/image/Art/2DItems/Currency/TransferOrb.png) Awakened PoE Trade +# ![Awakener's Orb](https://web.poecdn.com/image/Art/2DItems/Currency/TransferOrb.png) Awakened PoE2 Trade2 [![](https://user-images.githubusercontent.com/4292308/153364874-dde23599-278c-4350-8d86-dadbc4b978b3.svg)](https://somsubhra.github.io/github-release-stats/?username=SnosMe&repository=awakened-poe-trade) [![](https://user-images.githubusercontent.com/4292308/153364769-e4fe1e82-1bbc-46ac-8a3c-f5a98a5667cc.svg)](https://patreon.com/awakened_poe_trade) -[![](https://user-images.githubusercontent.com/4292308/153364565-7a545d26-e617-4a33-a919-ff90d8feda3d.svg)](https://github.com/SnosMe/awakened-poe-trade/issues/22) + ➡ [Download for Windows & Linux](https://snosme.github.io/awakened-poe-trade/download) ⬅ ## Tool showcase -| Gem | Rare | Unique | Currency | -|-----|------|--------|----------| +| Gem | Rare | Unique | Currency | +| ------------------------------------ | ------------------------------------ | ------------------------------------ | ------------------------------------ | | ![](https://i.imgur.com/LTsH2DZ.png) | ![](https://i.imgur.com/2XL5Wl8.png) | ![](https://i.imgur.com/UTV6prE.png) | ![](https://i.imgur.com/dQ9Sns6.png) | ### Development diff --git a/docs/.vitepress/config.js b/docs/.vitepress/config.js index 13d63b2f..c16ff82f 100644 --- a/docs/.vitepress/config.js +++ b/docs/.vitepress/config.js @@ -1,9 +1,9 @@ import { defineConfig } from 'vitepress' -const BASE = '/awakened-poe-trade/' +const BASE = '/awakened-poe2-trade2/' export default defineConfig({ - title: 'Awakened PoE Trade', + title: 'Awakened PoE2 Trade2', description: 'App for price-checking items in Path of Exile 2', base: BASE, mpa: true, @@ -22,14 +22,9 @@ export default defineConfig({ // logo: 'TODO', https://github.com/vuejs/vitepress/issues/1401 appVersion: '3.25.101', github: { - releasesUrl: 'https://github.com/SnosMe/awakened-poe-trade/releases' + releasesUrl: 'https://github.com/Kvan7/awakened-poe2-trade2/releases' }, socialLinks: [ - { - text: 'Discord', - color: '#7289DA', - link: 'https://github.com/SnosMe/awakened-poe-trade/issues/22' - }, { text: 'Patreon', color: '#FF424D', @@ -38,7 +33,7 @@ export default defineConfig({ { text: 'GitHub', color: '#181717', - link: 'https://github.com/SnosMe/awakened-poe-trade' + link: 'https://github.com/Kvan7/awakened-poe2-trade2' } ], sidebar: [ diff --git a/docs/download.md b/docs/download.md index 43c844f1..fc2bc760 100644 --- a/docs/download.md +++ b/docs/download.md @@ -11,12 +11,12 @@ const { theme } = useData() You can download Awakened Poe Trade here. Any other mirrors are not known to the developer, downloading from them may be unsafe. -| Download link | Automatic updates | Startup time | -|---------------|-------------------|--------------| -| Windows 10+ (installer) | ✔ | Fast | -| Windows 10+ (portable) | ❌ | Slower | -| Linux (AppImage) | ✔ | n/a | -| macOS (dmg) | ❌ | n/a | +| Download link | Automatic updates | Startup time | +| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------- | ------------ | +| Windows 10+ (installer) | ✔ | Fast | +| Windows 10+ (portable) | ❌ | Slower | +| Linux (AppImage) | ✔ | n/a | +| macOS (dmg) | ❌ | n/a | Latest version is {{ theme.appVersion }} @@ -36,6 +36,6 @@ warnings on Windows and [macOS](https://support.apple.com/en-us/HT202491#openany No Administrator rights required, but\ ⚠ **If you run PoE client as Admin, OS security boundaries take effect. -In order for Awakened PoE Trade to have access to the PoE window, it must be started with Administrator rights.** +In order for Awakened PoE2 Trade2 to have access to the PoE window, it must be started with Administrator rights.** ❌ **Not compatible with "GeForce Now" or any other cloud gaming service that do not forward clipboard data.** diff --git a/docs/issues.md b/docs/issues.md index 06e2a758..f21a1288 100644 --- a/docs/issues.md +++ b/docs/issues.md @@ -14,7 +14,7 @@ title: Common issues If Awakened works for you with DirectX11/12 renderer, then problem is old Vulkan drivers for sure. -4. Delete `%appdata%\awakened-poe-trade` +4. Delete `%appdata%\awakened-poe2-trade2` If needed, backup `apt-data` folder with your configuration inside. @@ -22,7 +22,7 @@ title: Common issues Launch them later one at a time to identify **conflict**. -6. Restart Awakened PoE Trade. +6. Restart Awakened PoE2 Trade2. *(don't forget to quit first, otherwise launching second instance will do nothing).* diff --git a/docs/quick-start.md b/docs/quick-start.md index df31c6b7..5fb48443 100644 --- a/docs/quick-start.md +++ b/docs/quick-start.md @@ -5,7 +5,7 @@ title: Quick Start #### First of all, how does it work? {:style="margin-top: 0;"} When you press `Ctrl + C` Path of Exile 2 copies the item's text (under cursor, if any) to the clipboard. -All that remains is to parse text in Awakened PoE Trade and show to you in a fancy way. +All that remains is to parse text in Awakened PoE2 Trade2 and show to you in a fancy way. ### Usage diff --git a/main/electron-builder.yml b/main/electron-builder.yml index 4b71aafb..8c07e597 100644 --- a/main/electron-builder.yml +++ b/main/electron-builder.yml @@ -1,6 +1,6 @@ publish: - "github" -productName: "Awakened PoE Trade 2" +productName: "Awakened PoE2 Trade2" npmRebuild: false files: - "package.json" diff --git a/main/package.json b/main/package.json index ba8d1e61..f6b87d63 100644 --- a/main/package.json +++ b/main/package.json @@ -1,6 +1,6 @@ { - "name": "awakened-poe-trade", - "version": "3.25.102", + "name": "awakened-poe2-trade2", + "version": "0.0.0", "private": true, "scripts": { "dev": "node build/script.mjs", @@ -12,7 +12,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/SnosMe/awakened-poe-trade.git" + "url": "https://github.com/Kvan7/awakened-poe2-trade2.git" }, "main": "dist/main.js", "dependencies": { @@ -36,4 +36,4 @@ "engines": { "node": ">=16" } -} +} \ No newline at end of file diff --git a/main/src/AppTray.ts b/main/src/AppTray.ts index ff4c1d15..d6e763bf 100644 --- a/main/src/AppTray.ts +++ b/main/src/AppTray.ts @@ -23,7 +23,7 @@ export class AppTray { } this.tray = new Tray(trayImage); - this.tray.setToolTip(`Awakened PoE Trade v${app.getVersion()}`); + this.tray.setToolTip(`Awakened PoE2 Trade2 v${app.getVersion()}`); this.rebuildMenu(); server.onEventAnyClient("CLIENT->MAIN::user-action", ({ action }) => { diff --git a/main/src/windowing/OverlayWindow.ts b/main/src/windowing/OverlayWindow.ts index 2202c1a5..05872797 100644 --- a/main/src/windowing/OverlayWindow.ts +++ b/main/src/windowing/OverlayWindow.ts @@ -161,7 +161,7 @@ export class OverlayWindow { // ---------------------- "Path of Exile 2 is running with administrator rights.\n" + "\n" + - "You need to restart Awakened PoE Trade with administrator rights." + "You need to restart Awakened PoE2 Trade2 with administrator rights." ); } else { this.server.sendEventTo("broadcast", { diff --git a/renderer/index.html b/renderer/index.html index ba1374a2..be7862a0 100644 --- a/renderer/index.html +++ b/renderer/index.html @@ -6,7 +6,7 @@ - Awakened PoE Trade 2 + Awakened PoE Trade2
diff --git a/renderer/package-lock.json b/renderer/package-lock.json index 89948b47..f98dac99 100644 --- a/renderer/package-lock.json +++ b/renderer/package-lock.json @@ -6514,4 +6514,4 @@ } } } -} +} \ No newline at end of file diff --git a/renderer/package.json b/renderer/package.json index b7524490..20c1a033 100644 --- a/renderer/package.json +++ b/renderer/package.json @@ -1,5 +1,5 @@ { - "name": "awakened-poe-trade", + "name": "awakened-poe2-trade2", "version": "0.0.0", "private": true, "scripts": { @@ -62,4 +62,4 @@ "browserslist": [ "chrome >= 101" ] -} +} \ No newline at end of file diff --git a/renderer/public/data/en/app_i18n.json b/renderer/public/data/en/app_i18n.json index bb7cb658..b4e32849 100644 --- a/renderer/public/data/en/app_i18n.json +++ b/renderer/public/data/en/app_i18n.json @@ -269,7 +269,7 @@ "stack": "Stack" }, "settings": { - "title": "Settings - Awakened PoE Trade 2", + "title": "Settings - Awakened PoE2 Trade2", "language": "Language", "private_league": "or Private League", "account_name": "Account name", diff --git a/renderer/public/data/ko/app_i18n.json b/renderer/public/data/ko/app_i18n.json index da137dc6..4217efba 100644 --- a/renderer/public/data/ko/app_i18n.json +++ b/renderer/public/data/ko/app_i18n.json @@ -5,7 +5,6 @@ "reopen_settings": "{0}을 눌러서 편집을 계속하세요.", "seconds": "초", "league": "리그", - "app": { "leagues_loading": "리그를 불러오는 중\u2026", "leagues_failed": "리그 불러오기를 실패하였습니다", @@ -19,11 +18,9 @@ "report_bug": "버그 발생 시 GitHub에 보고해주세요", "quit": "종료" }, - "map.mods.heist": "강탈", "map.mods.outdated": "사용X", "Support development on": "개발을 지원하세요", - "Blighted": "역병 걸린", "Blight-ravaged": "역병에 유린당한", "Magic": "매직", @@ -37,7 +34,6 @@ "Anomalous": "기묘한", "Divergent": "상이한", "Phantasmal": "몽환적인", - "item": { "prop_quality": "{0}% 퀄리티", "base_percentile": "기본 백분위수: {0}%", @@ -150,7 +146,6 @@ "hide_anointment": "Buyer will likely change anointment", "hide_for_crafting": "Select only if price-checking as base item for crafting", "hide_empty_mod": "Select only if item has 6 modifiers (1 of which is crafted) or if it has 5 modifiers", - "tag_implicit": "고정 속성", "tag_fractured": "분열된", "tag_crafted": "제작된", @@ -271,7 +266,7 @@ "stack": "스택" }, "settings": { - "title": "세팅 - Awakened PoE Trade", + "title": "세팅 - Awakened PoE2 Trade2", "language": "언어", "private_league": "개인리그", "account_name": "계정명", @@ -302,8 +297,8 @@ }, "price_check": { "name": "Price check", - "hotkey" :"Auto-hide Mode", - "hotkey_locked" :"Open without auto-hide", + "hotkey": "Auto-hide Mode", + "hotkey_locked": "Open without auto-hide", "enable_browser": "Enable builtin browser", "builtin_browser_warning": "I am aware that future releases can potentially contain malicious code that can steal my POESESSID.", "highlight_hint": "Your items will be highlighted even if this setting is off", diff --git a/renderer/public/data/ru/app_i18n.json b/renderer/public/data/ru/app_i18n.json index 20af02df..d80cd09a 100644 --- a/renderer/public/data/ru/app_i18n.json +++ b/renderer/public/data/ru/app_i18n.json @@ -19,14 +19,12 @@ "Select": "Выбрать", "Not recognized modifier": "Нераспознанное свойство", "Refresh": "Обновить", - "please_wait": "Пожалуйста, подождите\u2026", "choose_file": "Выберите файл", "app_is_ready": "Запущен и работает в фоновом режиме", "reopen_settings": "Нажмите {0} чтобы продолжить редактирование.", "seconds": "секунды", "league": "Лига", - "app": { "leagues_loading": "Загрузка лиг\u2026", "leagues_failed": "Не удалось загрузить лиги", @@ -40,11 +38,9 @@ "report_bug": "Сообщить о баге на GitHub", "quit": "Выход" }, - "map.mods.heist": "кража", "map.mods.outdated": "устарело", "Support development on": "Поддержите разработку\u00A0на", - "Blighted": "Заражённая", "Blight-ravaged": "Разорённая Скверной", "Shaper": "Создатель", @@ -57,7 +53,6 @@ "Anomalous": "Аномальный", "Divergent": "Искривлённый", "Phantasmal": "Фантомный", - "item": { "prop_quality": "К-во: {0}%", "base_percentile": "Ролл значений базы: {0}%", @@ -168,7 +163,6 @@ "hide_anointment": "Покупатель, скорее всего, поменяет зачарование", "hide_for_crafting": "Отмечайте, если проверяете цену в качестве базового предмета для крафта", "hide_empty_mod": "Выбирайте, только если у предмета 6 свойств (1 из которых ремесленное) или если у него 5 свойств", - "tag_crafted": "мастер", "tag_fractured": "расколотый", "tag_scourge": "преображен", @@ -268,15 +262,15 @@ "new_mods_icon": "Иконка у новых модов" }, "trade_result": { - "error" :"Запрос к сайту не удался", - "matched" :"Найдено: {0}", - "trade" :"Трейд", - "price" :"Цена", - "bulk" :"опт", - "stock" :"Запас", - "fulfill" :"Сделки", - "listed" :"Выставлен", - "seller" :"Продавец", + "error": "Запрос к сайту не удался", + "matched": "Найдено: {0}", + "trade": "Трейд", + "price": "Цена", + "bulk": "опт", + "stock": "Запас", + "fulfill": "Сделки", + "listed": "Выставлен", + "seller": "Продавец", "item_level": "Ур.", "gem_level": "Уровень", "quality": "К-во", @@ -288,7 +282,7 @@ "stack": "Стак" }, "settings": { - "title": "Настройки - Awakened PoE Trade", + "title": "Настройки - Awakened PoE2 Trade2", "language": "Язык", "private_league": "или Приватная лига", "account_name": "Имя учетной записи", @@ -297,9 +291,9 @@ "chat_cmd_send": "нажимать Enter", "no_key": "Не назначено", "clear_hotkey": "Вы можете отключить сочетание, нажав клавишу Backspace", - "overlay" :"Оверлей", - "stash_scroll" :"Прокрутка вкладок тайника", - "delve_grid" :"Сетка для \"Спуска\"", + "overlay": "Оверлей", + "stash_scroll": "Прокрутка вкладок тайника", + "delve_grid": "Сетка для \"Спуска\"", "window_title": "Заголовок окна игры", "thank_you": "Разработка приложения продолжается благодаря:", "hotkeys": "Быстрые клавиши", @@ -307,20 +301,20 @@ "general": "Общие", "debug": "Debug", "about": "О программе", - "font_size" :"Размер шрифта", - "overlay_bg" :"Фон, когда окно APT кликабельно", - "overlay_bg_none" :"Прозрачный", - "overlay_bg_focus_game" :"Нажатие по фону активирует окно игры", - "poe_log_file" :"Файл логов PoE", - "poe_cfg_file" :"Файл настроек PoE", - "restore_clipboard" :"Восстанавливать буфер обмена", - "show_overlay_ready" :"Показывать уведомление при открытии PoE", + "font_size": "Размер шрифта", + "overlay_bg": "Фон, когда окно APT кликабельно", + "overlay_bg_none": "Прозрачный", + "overlay_bg_focus_game": "Нажатие по фону активирует окно игры", + "poe_log_file": "Файл логов PoE", + "poe_cfg_file": "Файл настроек PoE", + "restore_clipboard": "Восстанавливать буфер обмена", + "show_overlay_ready": "Показывать уведомление при открытии PoE", "debug_hotkeys": "Запись всех нажатий клавиш" }, "price_check": { "name": "Прайс-чек", - "hotkey" :"Режим авто-скрытия", - "hotkey_locked" :"Открыть без авто-скрытия", + "hotkey": "Режим авто-скрытия", + "hotkey_locked": "Открыть без авто-скрытия", "enable_browser": "Включить встроенный браузер", "builtin_browser_warning": "Я осознаю, что в будущие релизы могут потенциально содержать вредоносный код, который может украсть мой POESESSID.", "highlight_hint": "Ваши предметы будут подсвечены, даже если эта настройка выключена", @@ -336,4 +330,4 @@ "show_prediction": "Показывать приблизительную цену", "remember_currency": "Запоминать фильтр \"Валюты выкупа\"" } -} +} \ No newline at end of file diff --git a/renderer/src/web/Config.ts b/renderer/src/web/Config.ts index 3a51c4c5..b4303cfd 100644 --- a/renderer/src/web/Config.ts +++ b/renderer/src/web/Config.ts @@ -76,9 +76,9 @@ export async function initConfig() { // TODO // dialog.showErrorBox( - // 'Awakened PoE Trade - Incompatible configuration', + // 'Awakened PoE2 Trade2 - Incompatible configuration', // // ---------------------- - // 'You are trying to use an older version of Awakened PoE Trade with a newer incompatible configuration file.\n' + + // 'You are trying to use an older version of Awakened PoE2 Trade2 with a newer incompatible configuration file.\n' + // 'You need to install the latest version to continue using it.' // ) } diff --git a/renderer/src/web/overlay/LoadingAnimation.vue b/renderer/src/web/overlay/LoadingAnimation.vue index 9c329439..45f7f528 100644 --- a/renderer/src/web/overlay/LoadingAnimation.vue +++ b/renderer/src/web/overlay/LoadingAnimation.vue @@ -4,7 +4,7 @@
-
Awakened PoE Trade 2
+
Awakened PoE2 Trade2

{{ t('app_is_ready') }}

diff --git a/renderer/src/web/price-check/CheckedItem.vue b/renderer/src/web/price-check/CheckedItem.vue index fe55686e..0f23abd0 100644 --- a/renderer/src/web/price-check/CheckedItem.vue +++ b/renderer/src/web/price-check/CheckedItem.vue @@ -1,42 +1,24 @@ @@ -101,7 +111,7 @@ import TradeLinks from './TradeLinks.vue' const slowdown = artificialSlowdown(900) -function useBulkApi () { +function useBulkApi() { type BulkSearchExtended = Record<'xchgChaos' | 'xchgStable', { listed: Ref listedLazy: ComputedRef @@ -111,7 +121,7 @@ function useBulkApi () { const error = shallowRef(null) const result = shallowRef(null) - async function search (item: ParsedItem, filters: ItemFilters) { + async function search(item: ParsedItem, filters: ItemFilters) { try { searchId += 1 error.value = null @@ -123,8 +133,8 @@ function useBulkApi () { const have = (item.info.refName === 'Chaos Orb') ? ['divine'] : (item.info.refName === 'Divine Orb') - ? ['chaos'] - : ['divine', 'chaos'] + ? ['chaos'] + : ['divine', 'chaos'] const optimisticSearch = await execBulkSearch( item, filters, have, { accountName: AppConfig().accountName }) @@ -139,7 +149,7 @@ function useBulkApi () { } } - function getResultsByHave ( + function getResultsByHave( item: ParsedItem, filters: ItemFilters, preloaded: Array, @@ -154,7 +164,7 @@ function useBulkApi () { const listedLazy = computed(() => { if (!requested) { - ;(async function () { + ; (async function () { try { requested = true _result.value = shallowReactive((await execBulkSearch( @@ -193,7 +203,7 @@ export default defineComponent({ required: true } }, - setup (props) { + setup(props) { const widget = computed(() => AppConfig('price-check')!) const { error, result, search } = useBulkApi() @@ -226,11 +236,11 @@ export default defineComponent({ } }) - function makeTradeLink (_have?: string[]) { + function makeTradeLink(_have?: string[]) { const have = _have ?? ((selectedCurr.value === 'xchgStable') ? ['divine'] : ['chaos']) const httpPostBody = createTradeRequest(props.filters, props.item, have) const httpGetQuery = { exchange: httpPostBody.query } - return `https://${getTradeEndpoint()}/trade2/exchange/${props.filters.trade.league}?q=${JSON.stringify(httpGetQuery)}` + return `https://${getTradeEndpoint()}/trade2/exchange/poe2/${props.filters.trade.league}?q=${JSON.stringify(httpGetQuery)}` } const { t } = useI18nNs('trade_result') @@ -244,7 +254,7 @@ export default defineComponent({ execSearch: () => { search(props.item, props.filters) }, showSeller: computed(() => widget.value.showSeller), makeTradeLink, - openTradeLink () { + openTradeLink() { showBrowser(makeTradeLink(['mirror'])) } } diff --git a/renderer/src/web/price-check/trade/TradeListing.vue b/renderer/src/web/price-check/trade/TradeListing.vue index d6a79db9..d3a4d585 100644 --- a/renderer/src/web/price-check/trade/TradeListing.vue +++ b/renderer/src/web/price-check/trade/TradeListing.vue @@ -228,8 +228,8 @@ export default defineComponent({ function makeTradeLink() { return (searchResult.value) - ? `https://${getTradeEndpoint()}/trade2/search/${props.filters.trade.league}/${searchResult.value.id}` - : `https://${getTradeEndpoint()}/trade2/search/${props.filters.trade.league}?q=${JSON.stringify(createTradeRequest(props.filters, props.stats, props.item))}` + ? `https://${getTradeEndpoint()}/trade2/search/poe2/${props.filters.trade.league}/${searchResult.value.id}` + : `https://${getTradeEndpoint()}/trade2/search/poe2/${props.filters.trade.league}?q=${JSON.stringify(createTradeRequest(props.filters, props.stats, props.item))}` } const { t } = useI18nNs('trade_result') diff --git a/renderer/src/web/settings/about.vue b/renderer/src/web/settings/about.vue index 6c2f5cc7..269ac19e 100644 --- a/renderer/src/web/settings/about.vue +++ b/renderer/src/web/settings/about.vue @@ -2,12 +2,12 @@
-

Awakened PoE Trade 2

+

Awakened PoE2 Trade2

{{ t('app.version', [version]) }}