nocci
1cf4c86646
fix(api): update Epic Games OAuth endpoints and response field names
...
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 11s
Update OAuth endpoints to new public service URLs and adapt to camelCase
response fields in device authorization response.
2026-03-08 11:30:08 +00:00
nocci
4e95f50bc4
refactor(config): uncomment command for epic-games service
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 7s
2026-03-08 11:22:56 +00:00
nocci
0a5f40341b
refactor(auth): add device auth reuse for legacy account migration
...
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Successful in 11s
- imports device auth utility functions
- adds logic to reuse Epic Games device authentication from legacy mode
- loads device auth cookies (EPIC_SSO_RM, EPIC_DEVICE, EPIC_SESSION_AP) when available
- falls back to regular authentication if device auth is not present
This enables seamless transition for users migrating from legacy authentication while maintaining backward compatibility.
2026-03-08 11:18:28 +00:00
nocci
d55706c5f3
refactor(config): revert default eg_mode back to 'legacy'
...
build-and-push / lint (push) Successful in 11s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 8s
The default value for `eg_mode` has been changed from 'new' back to 'legacy'. This reverts the previous commit (726b9bc ) that changed the default, likely due to issues or instability with the new API-driven flow.
2026-03-08 11:11:38 +00:00
nocci
726b9bcbd8
refactor(config): change default eg_mode from 'legacy' to 'new'
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 11s
2026-03-08 11:07:39 +00:00
nocci
99f5432e32
build(deps): add tough-cookie dependency
...
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Successful in 25s
iff
2026-03-08 10:59:57 +00:00
nocci
c0d148dc8e
refactor(style): align template literals and whitespace formatting
...
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 19s
- standardize string literals to single quotes in constants.js
- remove unused variable and normalize whitespace in cookie.js
- simplify nullish coalescing expression in device-auths.js
This consistency improvement enhances code readability and enforces uniform style across the codebase.
2026-03-08 10:57:28 +00:00
nocci
22c84a759b
refactor: migrate from TypeScript to JavaScript for auth modules
build-and-push / lint (push) Failing after 11s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2026-03-08 10:55:46 +00:00
nocci
b72bb3fa4c
fix: use JavaScript imports for TypeScript files
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Successful in 8s
2026-03-07 14:54:36 +00:00
nocci
d47bfd7e8e
fix: import constants.ts instead of constants.js
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 22s
build-and-push / docker (push) Successful in 11s
2026-03-07 14:51:51 +00:00
nocci
29e17fa057
fix: use separate locators with OR for captcha detection
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 8s
2026-03-07 14:37:00 +00:00
nocci
cc2f370eee
fix: remove unnecessary parentheses around expressions
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 11s
2026-03-07 14:33:48 +00:00
nocci
3f241bf400
fix: use separate locators with OR for captcha detection
build-and-push / lint (push) Failing after 8s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2026-03-07 14:31:27 +00:00
nocci
6615cf02db
fix: use :is() for OR condition in Playwright selector
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 11s
2026-03-07 14:24:41 +00:00
nocci
6194e3eff3
fix: correct Playwright selector syntax for OR condition
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Successful in 12s
2026-03-07 14:19:36 +00:00
nocci
6ec9157a42
fix: add curl to apk add in docker buildx setup
build-and-push / sonar (push) Successful in 20s
build-and-push / lint (push) Successful in 7s
build-and-push / docker (push) Successful in 1m10s
2026-03-07 14:10:25 +00:00
nocci
618106c2f7
fix: manually install docker buildx plugin
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Failing after 6s
build-and-push / lint (push) Successful in 8s
2026-03-07 14:09:05 +00:00
nocci
ea627ab703
ci(workflow): simplify docker buildx installation
...
build-and-push / docker (push) Failing after 6s
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
Replace separate `docker buildx install` step with installing `docker-buildx` package directly via apk, streamlining the Docker Buildx setup in the CI workflow.
2026-03-07 14:07:31 +00:00
nocci
74d2e92b8d
fix: install docker buildx plugin
build-and-push / docker (push) Failing after 6s
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 21s
2026-03-07 14:03:59 +00:00
nocci
eb033ee4b9
fix: add git installation to docker job
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Failing after 6s
2026-03-07 14:02:18 +00:00
nocci
9c77d64d0f
fix: use 127.0.0.1 instead of server in network debugging
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Successful in 20s
build-and-push / docker (push) Failing after 4s
2026-03-07 14:00:17 +00:00
nocci
64b7d0786c
fix: add debug output for SonarQube URL
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Successful in 21s
build-and-push / docker (push) Failing after 9s
2026-03-07 13:33:17 +00:00
nocci
89d8b108cd
fix: download and install sonar-scanner
build-and-push / sonar (push) Failing after 6s
build-and-push / docker (push) Has been skipped
build-and-push / lint (push) Successful in 11s
2026-03-07 13:31:36 +00:00
nocci
555f62d72b
fix: use correct sonar-scanner path
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 4s
build-and-push / docker (push) Has been skipped
2026-03-07 13:30:54 +00:00
nocci
c4e049fe8c
fix: add unzip and debug sonar-scanner installation
build-and-push / sonar (push) Failing after 5s
build-and-push / docker (push) Has been skipped
build-and-push / lint (push) Successful in 7s
2026-03-07 13:29:39 +00:00
nocci
43405dfce3
fix: use manual SonarQube scanner installation
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Failing after 5s
build-and-push / docker (push) Has been skipped
2026-03-07 13:28:35 +00:00
nocci
1abd90e256
fix: add Java runtime for SonarQube scanner
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 8s
build-and-push / docker (push) Has been skipped
2026-03-07 13:26:54 +00:00
nocci
92f577c70b
fix: use github.* variables instead of GITEA_*
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 7s
build-and-push / docker (push) Has been skipped
2026-03-07 13:25:36 +00:00
nocci
5969c096bc
fix: correct YAML indentation in workflow
build-and-push / lint (push) Failing after 2s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
2026-03-07 13:24:13 +00:00
nocci
ec3fbbcfa6
fix: correct YAML indentation in workflow
2026-03-07 13:22:06 +00:00
nocci
78f9371831
fix: correct YAML indentation in workflow
2026-03-07 13:20:55 +00:00
nocci
fae3ee2c24
fix: correct YAML indentation in workflow
2026-03-07 13:19:53 +00:00
nocci
40235d62a8
chore(ci): remove outdated Forgejo workflow file
2026-03-07 13:18:43 +00:00
nocci
41425681e2
fix: move workflow to correct directory
2026-03-07 13:18:25 +00:00
nocci
5814f5a5d5
ci(workflow): add comment to build workflow
2026-03-07 13:15:04 +00:00
nocci
b85c326211
chore(config): update ESLint environment to support browser globals
...
Added `browser: true` environment and declared `window` and `navigator` as
readonly globals to support epic-games.js which uses browser APIs.
2026-03-07 12:49:45 +00:00
nocci
ddb37b5c82
ci(workflow): simplify Node.js installation and optimize Docker steps
...
Replace multi-step Node.js and npm install with single Alpine package install,
and simplify Docker builder setup by switching from GitHub Action to direct
CLI installation via apk. Also enable network debugging tools for better
troubleshooting in the CI environment.
2026-03-07 12:45:30 +00:00
nocci
09d854ffb1
Fix Forgejo workflow: use GITEA_* variables instead of github.*
2026-03-06 15:43:55 +00:00
nocci
96df8cb3d4
refactor: migrate ESLint configuration to flat config and remove redundant rule files
...
- replace legacy .eslintrc files with flat eslint.config.js
- consolidate eslint globals for improved code clarity
- enable prefer-const and no-unused-vars off in *.js for flexibility
- remove unused import statements and redundant eslint directives from epic-games.js and aliexpress.js
- standardize function parameter syntax to arrow with parentheses omitted where safe
- add comments marking unused but retained functions for reference
2026-03-06 15:38:58 +00:00
nocci
728b0c734b
refactor[epic-games]: migrate to GraphQL API and modularize authentication logic
...
This commit refactors epic-games.js to use the GraphQL API instead of the legacy promotions endpoint for retrieving free games. Key architectural improvements include:
- Added modular authentication module (device-auths.ts) supporting persistent device auth tokens
- Introduces cookie management module (cookie.ts) for persistent session handling
- Extracts GraphQL query structures and API endpoints into constants.ts
- Implements multiple fallback strategies: device auth login, token exchange, and fallback to standard login
- Adds support for both GraphQL and promotions-based game discovery
- Streamlines claim process with improved tracking and error handling
- Removes legacy selectors and redundant logic
Additionally, updates package.json to include TypeScript and reorganizes dependency order for better maintainability.
2026-03-06 15:26:26 +00:00
nocci
0d35a5ee85
test
2026-01-08 16:02:10 +00:00
nocci
c5a12aede3
💄 style(ci): adjust indentation in build workflow
...
- fix indentation for sonar job to align with yaml format standards
2026-01-08 15:56:42 +00:00
nocci
d1d6ba58b7
👷 ci(build): enhance sonar job in build workflow
...
- add container support with node:20-alpine for sonar job
- consolidate git and utility installation steps
- include sonarqube-scanner installation for improved analysis
2026-01-08 15:55:20 +00:00
nocci
7df5c2e2fe
💄 style(epic-claimer): remove unnecessary code
...
build-and-push / lint (push) Failing after 7s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
- delete unused screenshot function for cleaner code structure
2026-01-08 15:49:56 +00:00
nocci
c466458d41
💄 style(epic-claimer): remove unnecessary newline
...
build-and-push / lint (push) Failing after 8s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
- delete extra newline for cleaner code structure
2026-01-08 15:49:15 +00:00
nocci
866f06e505
✨ feat(helper): add screenshot helper function
...
build-and-push / lint (push) Failing after 7s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
- introduce a new screenshot helper function for path resolution
- enhance code readability by organizing screenshot path management
2026-01-08 15:47:59 +00:00
nocci
370e3db206
🔧 chore(workflows): add screenshot to ESLint globals
...
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 0s
build-and-push / docker (push) Has been skipped
- add screenshot as a readonly global variable to ESLint configuration
♻️ refactor(epic-games): improve path resolution for screenshots
- replace resolve with path.resolve for better path management
2026-01-08 15:43:30 +00:00
nocci
af90aa7c42
♻️ refactor(epic-claimer): enhance screenshot path resolution
...
build-and-push / lint (push) Successful in 7s
build-and-push / sonar (push) Failing after 0s
build-and-push / docker (push) Has been skipped
- improve screenshot path by using path.resolve for better cross-platform compatibility
- organize screenshots into a structured directory hierarchy
2026-01-08 15:27:19 +00:00
nocci
fd0fc4e981
♻️ refactor(code): remove unused code and clean up
...
build-and-push / lint (push) Failing after 8s
build-and-push / sonar (push) Has been skipped
build-and-push / docker (push) Has been skipped
- remove unused screenshot helper function
- remove unnecessary empty arguments from launch options
- add spacing for readability in async functions
2026-01-08 15:20:21 +00:00
nocci
58282897b5
✨ feat(epic-claimer): implement OAuth and game claiming enhancements
...
build-and-push / lint (push) Successful in 8s
build-and-push / sonar (push) Failing after 0s
build-and-push / docker (push) Has been skipped
- add OAuth device flow for secure authentication
- implement automatic and manual login handling
- enhance game claiming process with error handling and notifications
♻️ refactor(epic-claimer): remove unused code and improve structure
- remove unused resolve function
- restructure authentication and login logic for clarity
📝 docs(epic-claimer): update comments for better code understanding
- clarify function purposes and steps in comments
- add detailed explanations for new authentication flow
2026-01-08 15:14:58 +00:00