Commit graph

53 commits

Author SHA1 Message Date
nocci
7ffc454e47 Clean up Sonar issues and lint warnings
Some checks failed
build-and-push / lint (push) Failing after 5s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2025-12-30 16:45:17 +00:00
nocci
52895fd991 Fix eslint no-unused-vars in async handlers
Some checks failed
build-and-push / lint (push) Failing after 4s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2025-12-30 16:15:14 +00:00
nocci
3fd861f134 Fix eslint no-empty and clean tests
Some checks failed
build-and-push / lint (push) Failing after 4s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2025-12-30 16:13:15 +00:00
nocci
5f919039ab Clean Sonar issues in store scripts
Some checks failed
build-and-push / lint (push) Failing after 4s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2025-12-30 16:08:59 +00:00
nocci
397871b012 Further clean Sonar: merge base RUN, strip comments, node imports
All checks were successful
build-and-push / lint (push) Successful in 4s
build-and-push / sonar (push) Successful in 12s
build-and-push / docker (push) Successful in 1m13s
2025-12-30 15:47:28 +00:00
Ralf Vogler
726db4527b Current free game title in blue 2025-04-15 17:26:27 +02:00
AgentTechnoman
d5072a62c0
Fix gog error per @jordyamc
https://github.com/vogler/free-games-claimer/issues/398#issuecomment-2487274414
2024-12-19 16:46:18 -07:00
Ralf Vogler
55226933c0 filenamify datetime recordHar for Windows : -> ., fix #336 2024-06-25 15:30:02 +02:00
Ralf Vogler
076738e301 gog: fail if WIDTH<1280 due to hidden username, closes #335 2024-06-25 13:09:10 +02:00
Ralf Vogler
cf59da5d9e gog: new locators, fixes #326, #334 2024-06-23 18:03:38 +02:00
Ralf Vogler
c3657f05ac workaround for cropped viewport (Playwright regression), fixes #277 2023-12-28 17:56:09 +01:00
Ralf Vogler
64676795d1 mv {config,migrate,util,version}.js src/ 2023-12-26 17:09:14 +01:00
Ralf Vogler
4231b7dd28 gog: don't wait for screenshot to not be loading, closes #240 2023-11-09 02:43:43 +01:00
Ralf Vogler
0832ae57f5 run eslint --fix . 2023-11-08 01:16:49 +01:00
Ralf Vogler
b99a154267 Revert "workaround for recordVideo broken in Playwright 1.36"
This reverts commit 13b2917dd0.

Fine to do after upgrade to 1.39 in 75f7d77445.
which included https://github.com/microsoft/playwright/issues/27086
2023-11-02 16:26:45 +01:00
Ralf Vogler
41f1f95509 PW: replace deprecated type() with pressSequentially() for OTPs 2023-09-18 14:02:15 +02:00
Ralf Vogler
13b2917dd0 workaround for recordVideo broken in Playwright 1.36
Recording videos with relative path as in docs was broken for Firefox.
Issue: https://github.com/microsoft/playwright/issues/27086
Can be reverted after PR is available in release: https://github.com/microsoft/playwright/pull/27099
2023-09-18 13:03:04 +02:00
Ralf Vogler
b748460b73 disable Playwright's handleSIGINT and close context ourselves to save recordings also on SIGINT 2023-09-18 12:58:20 +02:00
Ralf Vogler
1fbabbc0f2 log path of recorded video 2023-09-18 12:49:23 +02:00
Ralf Vogler
d51f7310d9 gog: fix #200, uncheck 'Marketing communications through Trusted Partners' 2023-09-07 13:56:37 +02:00
Ralf Vogler
6a7cca31a4 update dependencies via ncu -u, lowdb: pass defaultData
dotenv                          ^16.0.3  →  ^16.3.1
  enquirer                         ^2.3.6  →   ^2.4.1
  lowdb                            ^5.1.0  →   ^6.0.1
  playwright-firefox              ^1.31.0  →  ^1.37.1
  puppeteer-extra-plugin-stealth  ^2.11.1  →  ^2.11.2

https://github.com/typicode/lowdb/releases/tag/v6.0.0
> Require defaultData parameter for Low and LowSync constructors to improve TypeScript experience
2023-08-24 13:14:39 +02:00
Ralf Vogler
b5ead8ea21 SCREENSHOTS_DIR=0 to disable screenshots, fixes #172 2023-07-20 16:10:50 +02:00
Ralf Vogler
af935d4889 gog: no quotes around user, as for {eg, pg} 2023-05-11 18:50:54 +02:00
Ralf Vogler
db5a98eb88 gog: set GOG_NEWSLETTER=1 to not unsubscribe newsletter, closes #109 2023-03-30 14:17:26 +02:00
Ralf Vogler
7520bf1976 gog: screenshot: wait for not is-loading 2023-03-08 16:54:10 +01:00
Ralf Vogler
74bd2f538a gog: newsletter is not subscribed again if game already existed 2023-03-08 16:41:31 +01:00
Ralf Vogler
9ab44bd7aa gog: fix indent 2023-03-08 16:41:06 +01:00
Ralf Vogler
cbdea1b5d0 add username to notification of claimed games, closes #88 2023-03-06 21:15:42 +01:00
Ralf Vogler
73a7cffd47 await notify before process.exit, #69 2023-02-24 00:08:35 +01:00
Ralf Vogler
38c5402df0 exitCode should be 130 instead of 1 on SIGINT
https://unix.stackexchange.com/questions/386836/why-is-doing-an-exit-130-is-not-the-same-as-dying-of-sigint
2023-02-22 10:26:32 +01:00
Ralf Vogler
18c27ba881 use playwright-firefox such that npm install does not download other browsers 2023-02-22 00:49:58 +01:00
Ralf Vogler
518008584f gog: actually wait for login instead of reentering the loop 2023-02-22 00:26:48 +01:00
Ralf Vogler
66694d65e5 SIGINT handler to not notify about error on Ctrl-C 2023-02-22 00:15:03 +01:00
Ralf Vogler
8c2ac3b6d0 add LOGIN_TIMEOUT (180s) for PW, but prompts still wait forever 2023-02-21 21:21:55 +01:00
Ralf Vogler
704c4b01e1 set process.exitCode = 1 on error; don't want to rethrow 2023-02-21 21:00:26 +01:00
Ralf Vogler
e2b07dc1e6 BROWSER_DIR for multiple profiles or testing, SCREENSHOTS_DIR, closes #12 2023-02-16 16:25:46 +01:00
Ralf Vogler
a90062b631 gog: Claim (.*) and don't miss -> Claim (.*), fixes #60 2023-02-15 19:33:44 +01:00
Ralf Vogler
d3e4c58c80 gog: only unsubscribe from newsletter if a game was claimed? 2023-02-09 16:53:42 +01:00
Ralf Vogler
dff712d998 skip prompt for password if email is missing 2023-02-09 16:28:27 +01:00
Ralf Vogler
b9e9abe546 page.waitForNavigation -> page.waitForURL 2023-02-04 21:37:04 +01:00
Ralf Vogler
eb17a49628 extract prompt into util.js 2023-02-03 16:03:01 +01:00
Ralf Vogler
21a4e06209 gog: check for reCAPTCHA on login; better info for eg 2023-01-29 20:27:05 +01:00
Ralf Vogler
0393a3998b info about escaping prompts only if needed 2023-01-29 19:52:18 +01:00
Ralf Vogler
d4bf4a7af0 gog: wait for username after login, barrier before, fixes #53 2023-01-29 19:40:44 +01:00
Ralf Vogler
c5b0065a50 TypeError: String includes not contains, #53; only first line of error 2023-01-29 19:28:02 +01:00
Ralf Vogler
72a61458fc notify: escapeHtml for titles 2023-01-25 20:56:35 +01:00
Ralf Vogler
9355ff3e01 notify: forgot to join list, gets rid of commas 2023-01-25 19:35:18 +01:00
Ralf Vogler
95b703efb1 gog: notify about games and login 2023-01-25 18:29:06 +01:00
Ralf Vogler
8139c0a78f gog: save metadata, screenshot, closes #18 2023-01-23 14:45:29 +01:00
Ralf Vogler
2168c40aa5 centralize env vars in config.js 2023-01-09 10:47:19 +01:00