Commit Graph

31 Commits (06abf6dc29ec23a25a761211853700666db565d7)

Author SHA1 Message Date
Bastien Wirtz 06abf6dc29 chore: Update dependencies 2025-08-06 23:00:21 +02:00
tanasegabriel c230392da8 Use promises for HTTP calls 2025-05-20 20:49:21 +02:00
tanasegabriel adf671772b Add orange indicator for disabled blocking 2025-05-20 20:49:21 +02:00
tanasegabriel 51b4649628 Improve PiHole status 2025-05-20 20:49:21 +02:00
Bastien Wirtz 58a1a0764d update dependencies 2025-05-17 14:49:36 +02:00
tanasegabriel abb0cf84bb Do not mandate the usage of an API key for Pi-hole v6 2025-05-17 14:26:52 +02:00
Bastien Wirtz 1afa0afd00 chore(lint): Apply lint 2025-05-04 15:15:12 +02:00
Molham 347a3d062b remove deleteing the session over the API call when leaving the page 2025-05-04 04:11:59 -07:00
Molham 15f59b9e36 delete unused object 2025-05-04 04:11:59 -07:00
Molham 42f3a3ee71 reset the mixin service.js and make use of the actual error message from the current service.js 2025-05-04 04:11:59 -07:00
Molham ad76093a38 modify service.js mixin to accept one more parameter and return full response and use this.fetch in PiHole.vue 2025-05-04 04:11:59 -07:00
Molham 9e314c960b fix integration test 2025-05-04 04:11:59 -07:00
Molham 07207dca55 reset the api_v5 function to fetch the remote api with this.fetch 2025-05-04 04:11:59 -07:00
Molham 59b0ed7688 set this.status after checking the response is OK 2025-05-04 04:11:59 -07:00
Molham 4684b23a8c better handle errors and set the subtitle as a message holder for errors 2025-05-04 04:11:59 -07:00
Molham 28ad80369f add support to dynamic interval time for polling the status 2025-05-04 04:11:59 -07:00
Molham 9307f5a926 feat(pihole): Support Pi-hole v6 API with session management (#875)
Add support for Pi-hole v6 API while maintaining v5 compatibility. The component now
handles both API versions with proper session-based authentication for v6 and legacy
authentication for v5. Includes automated retries, session caching, and proper cleanup.

- Add new apiVersion config option (default: 5, accepts: 5,6)
- Implement session-based auth with caching for v6 API
- Add auto-retry mechanism with configurable attempts
- Add periodic status polling for v6 API
- Separate v5/v6 API handling logic for better maintenance
- Improve error handling and status display
- Update documentation with v6 API support details

Breaking changes: None. V5 remains default for backward compatibility.
V6 mode must be explicitly enabled by setting apiVersion: 6 in config.
2025-05-04 04:11:59 -07:00
Bastien Wirtz 234e063d2e feat(components): Register Generic component globally 2025-03-30 15:23:22 +02:00
Bastien Wirtz 08bc4f417d chore(lint): Eslint 9 update 2024-10-16 21:31:58 +02:00
Bastien Wirtz de4b7e6124 Linting update 2023-10-21 14:24:05 +02:00
Floren Munteanu d362add383
Implement PiHole API token (#580)
Implement PiHole API token
2023-02-19 12:18:56 -08:00
Bastien Wirtz b4a2db6e37 Services refactoring 2021-12-12 16:28:20 +01:00
Colin bbe7149d58
Update PiHole.vue 2021-08-16 14:17:15 -07:00
Colin 0dc3cea15e
Update PiHole.vue 2021-08-11 15:40:22 -07:00
Colin ecec695272
include credentials while making fetch calls 2021-08-11 15:25:51 -07:00
Bastien Wirtz 3a8fa151f4 Improve ping service 2021-07-14 15:49:19 +02:00
Bram Ceulemans 4ce53b68ea Fixed wrongly removed computed property 2020-12-10 00:07:53 +01:00
Bram Ceulemans f81dc6f488 Fixed wrongly removed computed property 2020-12-10 00:05:30 +01:00
Bram Ceulemans 273a268ac4 Remove unused computed property 2020-12-09 22:57:35 +01:00
Bram Ceulemans c5eab80d76 Added extended PiHole statistics 2020-12-08 13:26:18 +01:00
Bastien Wirtz 9a14de007e Implement custom service component 2020-10-23 18:16:16 -07:00