Commit Graph

347 Commits

Author SHA1 Message Date
James Wynn
b6e8b64a2e Merge branch 'main' into kubernetes 2023-01-09 08:34:43 -06:00
James Wynn
4d6ce1f7e2 Widgets in discovered services now work correctly 2023-01-09 08:30:50 -06:00
Michael Shamoon
fc2e17fa59 fix useWidgetAPI refreshInterval 2023-01-09 01:33:58 -08:00
John Hollowell
34a7b25c9c Add truenas key to credentialed proxy handler
Revert "Change TrueNAS to use API key"

This reverts commit 1926c26b77d8e048d92da6e20ff24a3056237daf.

Co-Authored-By: John Hollowell <jhollowe@johnhollowell.com>
2023-01-07 10:00:16 -08:00
James Wynn
36ed1022e3 detection now uses annotation "gethomepage.dev/enabled" instead of label 2023-01-03 16:15:08 -06:00
James Wynn
e15ba1c82c Merge branch 'main' into kubernetes 2022-12-31 11:19:42 -06:00
Michael Shamoon
ee729a7e6a remove error on no discovered services 2022-12-30 20:31:25 -08:00
Michael Shamoon
6b90d3ef28 Handle docker server failures if others succeed 2022-12-22 21:16:52 -08:00
Michael Shamoon
93445a2831 Use credentialed proxy for miniflux 2022-12-16 22:33:24 -08:00
Michael Shamoon
db46931246 Allow map in credentialedproxy 2022-12-16 22:32:28 -08:00
Vinay Dawani
9188f5cdd9 cleanup 2022-12-11 12:49:23 -05:00
Vinay Dawani
c720df0805 double negation instead of ternary. force boolean 2022-12-11 04:01:06 -05:00
Vinay Dawani
b7722ed333 check swarm value before passing 2022-12-11 03:15:59 -05:00
Vinay Dawani
fb883c7b27 added yaml file variable for swarm mode checks 2022-12-11 03:03:20 -05:00
James Wynn
ec08535204 fixed podSelector discovery 2022-12-09 07:56:51 -06:00
James Wynn
a146c13c4f fixed unintentional blank default podSelector from discovery 2022-12-09 07:52:32 -06:00
James Wynn
8543118607 updated ingress selector label, added href override annotation 2022-12-09 07:43:52 -06:00
James Wynn
09eb172079 new status format, new podSelector field, more accurate pod stats
* renamed pod label prefix from "homepage" to "gethomepage.dev"
  which is more inline with typical kubernetes practices
2022-12-08 16:04:33 -06:00
James Wynn
174cb651b4 Merge branch 'main' into kubernetes 2022-12-08 09:57:51 -06:00
Michael Shamoon
f89093a067 Update openmeteo-condition-map.js 2022-12-05 09:57:32 -08:00
Michael Shamoon
656b818488 Fix conditions map for openmeteo 2022-12-05 08:52:45 -08:00
Michael Shamoon
c01b60dbd1 try to detect invalid settings load 2022-12-03 00:14:07 -08:00
shamoon
9d2f1ab8c8 Add default interval setting for coinmarketcap 2022-12-01 06:36:51 -08:00
Michael Shamoon
04fbf315ee Fix startup errors on completely empty settings file
Closes #564
2022-11-27 19:35:45 -08:00
Jason Fischer
9f03d18e49
Move content-length calculation to http module
- consolidate http / https functionality to single function
2022-11-24 12:26:22 -08:00
Michael Shamoon
ccfafe1b31 fix fatal jsonrpc error, error handling, add content-length 2022-11-23 23:02:42 -08:00
Jason Fischer
7266390491
Add Deluge widget
- Create semi-generic jsonrpc proxy handler
- Refactor NZBGet to use jsonrpc proxy handler

closes #190
2022-11-23 11:51:53 -08:00
Michael Shamoon
92d456dbf4 fix group sort to prevent possible loss 2022-11-21 00:29:20 -08:00
Michael Shamoon
e4c0a62fd9 Merge branch 'main' of https://github.com/benphelps/homepage 2022-11-20 23:59:13 -08:00
Michael Shamoon
b393318084 fix group sorting bug 2022-11-20 23:59:10 -08:00
Jason Fischer
354f819041
Merge pull request #505 from benphelps/ping-and-redesign-status
Feature: Service ping, redesign docker status
2022-11-20 10:03:43 -08:00
Jason Fischer
0428914690
Merge pull request #535 from theeternalrat/configurable-logpath
Added configurable setting for log folder
2022-11-20 09:47:30 -08:00
Rat
c8806a8775 lint fix 2022-11-19 12:10:29 -08:00
James Wynn
a1f2003a77 Merge branch 'main' into kubernetes 2022-11-19 09:09:23 -06:00
Michael Shamoon
f9c2f40ad1 hide webkit details marker, logger url output 2022-11-19 00:12:05 -08:00
Michael Shamoon
4ccf8eddae fixes for widget validation 2022-11-18 23:07:25 -08:00
shamoon
0ad026503a
Merge pull request #358 from GodD6366/feat/support-sort-layout
Feature: support sort layout
2022-11-18 22:15:57 -08:00
Rat
83a3a06386 Added configurable setting for log folder, falls back to config path if not set 2022-11-18 15:32:59 -08:00
Michael Shamoon
8a783ba9f6 Simplify error catching 2022-11-18 15:24:07 -08:00
Michael Shamoon
7b7740563e Basic widget data validation 2022-11-18 15:23:33 -08:00
Michael Shamoon
1c456b70c0 Re-create service ping, docker status changes
See #388
2022-11-07 11:35:13 -08:00
James Wynn
056e26dfd3 Improved handling of empty or disabled kubernetes configuration 2022-11-06 06:58:52 -06:00
James Wynn
0c6f7dbee1 Cleaned up some variable names 2022-11-06 06:58:52 -06:00
James Wynn
4fc6db49ca Improved kubernetes error handling 2022-11-06 06:58:52 -06:00
James Wynn
c4333fd2dc Kubernetes support
* Total CPU and Memory usage for the entire cluster
* Total CPU and Memory usage for kubernetes pods
* Service discovery via annotations on ingress
* No storage stats yet
* No network stats yet
2022-11-06 06:58:52 -06:00
Michael Shamoon
ae3f847cef Sort layout groups by default, simplify sorting 2022-11-03 20:35:52 -07:00
GodD6366
3740426bb5 Change to server-side implementation 2022-11-03 20:35:52 -07:00
Brandon Barker
68b8e4b376 feat: add tubearchivist widget 2022-10-31 15:23:34 +02:00
Brandon Barker
a2a5382ddb feat: add autobrr widget 2022-10-26 12:56:43 +02:00
Michael Shamoon
a3ed070921 Some info widgets exempt from cleaning private data 2022-10-21 20:54:45 -07:00
Michael Shamoon
48a09e5a99 Refactor info widget sanitizing / privateOptions 2022-10-12 01:53:57 -07:00
Michael Shamoon
7c39cd8960 Private widget options API 2022-10-11 12:16:18 -07:00
Jason Fischer
260201c2b4
Decompose i18n labels for Unifi widget
- Needed to decompose i18n labels for Unifi widget in order for field visibility setting to work correctly
- Fixed weird edge case where a call to cached-fetch would fail if no duration was passed
- Have VS Code hide the .next and node_modules folders from tree view
2022-10-09 20:05:28 -07:00
shamoon
1249ecaa68
Merge branch 'main' into main 2022-10-08 13:20:09 -07:00
Ben Phelps
ba428cf3ae fix docker service discovery #343 2022-10-08 23:10:41 +03:00
Ben Phelps
e56dccc7f1 new logo and styling tweaks 2022-10-08 16:04:24 +03:00
Jason Fischer
ac4dcd3222
Remove node-unifi package dependency
- Add custom Unifi proxy built on existing cookie jar and httpProxy
- Change formatApiCall to emit empty string instead of undefined on missing key
2022-10-07 17:12:29 -07:00
Jason Fischer
a9fb458f19
Add Proxmox widget 2022-10-04 21:46:48 -07:00
Ben Phelps
f52c6f3b41 improved static styles and x-browser scrollbars 2022-09-30 22:13:37 +03:00
Jason Fischer
c533966050
Merge branch 'main' into configurable-widget-fields 2022-09-29 21:15:56 -07:00
Jason Fischer
9b7d6b196f
Allow widget field visibility to be configurable 2022-09-29 21:15:25 -07:00
Ben Phelps
dadd501843 fix case with empty bookmarks and widgets 2022-09-29 11:40:09 +03:00
Ben Phelps
a10a30a22c fix some error edge cases 2022-09-28 22:40:54 +03:00
Jason Fischer
65755a08aa
Better login strategy for qbittorrent proxy
- Additional logging in httpProxy
2022-09-28 09:55:18 -07:00
Ben Phelps
8f59c4a236 trim url trailing slashes 2022-09-28 10:14:44 +03:00
Ben Phelps
0a58f259ff wrapped proxy calls via useWidgetAPI 2022-09-27 22:59:14 +03:00
Ben Phelps
8e0075ff90 expire all cookies after 1 hour 2022-09-27 10:48:52 +03:00
Ben Phelps
c980c70798 revalidate config changes, check on focus changes 2022-09-26 22:54:12 +03:00
Ben Phelps
4386999c38 further restructuring 2022-09-26 15:25:10 +03:00
Ben Phelps
b72dca0e2e only create each logger once 2022-09-26 14:42:13 +03:00
Ben Phelps
e1a3a82f75 utils cleanup, initial static generation 2022-09-26 12:04:37 +03:00
Ben Phelps
a83d5132d9 refactor lidarr widget 2022-09-26 10:58:14 +03:00
Jason Fischer
1840e9a57a
Add authentik 2022-09-25 17:42:16 -07:00
Ben Phelps
47bc073fb4 widget refactoring and cleanup 2022-09-26 02:23:02 +03:00
Jason Fischer
808e79e2ac
Add Docker, Emby, Gotify, Jackett, and JellySeerr widgets 2022-09-25 16:15:47 -07:00
Ben Phelps
035dd25ece widget refactoring 2022-09-26 00:35:54 +03:00
Jason Fischer
03fa2f86d7
Add AdGuard, Bazarr, and Coin Market Cap widgets
- Allow setting HTTP method in widget.js
- Allow sending allow listed query params to proxy
2022-09-25 14:31:41 -07:00
Ben Phelps
562235f828 starting of widget refactoring 2022-09-25 19:43:47 +03:00
Ben Phelps
8bc240b934 refactor i18n to be server side 2022-09-25 19:43:00 +03:00
Jason Fischer
42fe535df7
Patch console object to instead use winston for logging
- Allow setting labels via new createLogger method
- Make logger initialization more robust
2022-09-21 23:37:17 -07:00
Jason Fischer
5776544c20
Write homepage.log into config folder
This will make it easier for people to find their log file(s)
2022-09-21 08:32:37 -07:00
Ben Phelps
122b987fa3
Merge branch 'main' into feature/widget_strelaysrv 2022-09-21 09:05:42 +03:00
Ben Phelps
c024c4f01c
Merge pull request #241 from JazzFisch/add-logger
Add Winston for log handling
2022-09-21 09:03:52 +03:00
Ben Phelps
a677fbefbf add global settings context
will be useful going forward, and simplify widget props being passed around all over the place
2022-09-21 09:00:57 +03:00
Jason Fischer
280bb5fc81
Add Winston for log handling
- write log data to 'homepage.log'
2022-09-20 20:16:04 -07:00
Pablo Garcia de los Salmones Valencia
f7000a280e
Add Syncthing Relay Server widget 2022-09-20 04:42:04 +02:00
Pablo Garcia de los Salmones Valencia
586ded6b3f
Add Mastodon widget 2022-09-20 03:41:10 +02:00
Ben Phelps
17f54da524 yaml validation 2022-09-18 16:41:01 +03:00
Jason Fischer
6c01a85077
Merge branch 'main' into add-qbittorrent 2022-09-16 23:19:24 -07:00
Ben Phelps
cf41e988eb fix error with no map 2022-09-17 08:38:53 +03:00
Ben Phelps
3f17618ad5 allow endpoint specific maps 2022-09-17 08:32:40 +03:00
Jason Fischer
6da1e98c83
Add qBittorrent Widget
- extract cookie jar functionality into its own file
- use i18n for more strings in existing widgets

completes: #152
associated: #123
2022-09-16 19:11:57 -07:00
Jason Fischer
743a070724
Proposal to add ability to map data in a proxy 2022-09-16 11:33:11 -07:00
Ben Phelps
ddb2a74540 add AdGuard widget 2022-09-16 14:05:56 +03:00
Ben Phelps
578b715a1f allow HTTP basic auth on generic proxy 2022-09-16 14:05:27 +03:00
Jason Fischer
7e99b3e505
Merge branch 'main' into add-lidarr 2022-09-14 19:41:43 -07:00
Jason Fischer
1f2639fbb5
Add Lidarr widget 2022-09-14 19:30:51 -07:00
Jason Fischer
b520713dc3
Add Bazarr widget
associated: #110
2022-09-14 16:15:26 -07:00
Jason Fischer
0a5cdfc57a Refactor setting cookie header into own method 2022-09-14 11:08:36 -07:00
Jason Fischer
f750876425 Add the Jackett widget
- add the follow-redirect package
- add the tough-cookie package

Jackett API uses a redirect mechanism to set a CSRF token.
This CSRF token is stored in a cookie that is required to
be present or the API won't work.
2022-09-14 10:46:52 -07:00
Jason Fischer
b19b4f047e Fix linting errors 2022-09-12 20:06:00 -07:00
Jason Fischer
95b6ea0e23 Merge main 2022-09-12 19:38:43 -07:00
Jason Fischer
b3db549a65 Add Transmission widget
- Update http.js to support writing request bodies
- Update http.js to support returning all response headers

resolves: #104
2022-09-12 19:35:47 -07:00
Francisco Coelho
b5538655e0 Add Prowlarr widget 2022-09-12 17:56:04 +01:00
Ben Phelps
ea06fbe666 js linting 2022-09-12 12:39:04 +03:00
Ben Phelps
cc0b4be50c cleanup coinmarketcap widget 2022-09-12 12:38:50 +03:00
Francisco Coelho
ba3b48e8ce Gotify 2022-09-12 10:06:47 +01:00
Francisco Coelho
0c9c1c599f Merge branch 'main' of https://github.com/xicopitz/homepage 2022-09-12 09:37:42 +01:00
Francisco Coelho
af02440c40 Revert "Update credentialed.js"
This reverts commit eeac1200e7.
2022-09-12 09:31:44 +01:00
Ben Phelps
3660140539 consolidate api handlers 2022-09-12 10:59:56 +03:00
Ben Phelps
15a0e6cc54
Merge branch 'main' into main 2022-09-12 10:40:56 +03:00
Ben Phelps
ee79335eff
Merge pull request #116 from JazzFisch/additional-widgets
Add Readarr and SABnzbd widgets
2022-09-12 10:23:49 +03:00
Chris
ffe89b02e9
Merge branch 'benphelps:main' into main 2022-09-12 01:32:09 -05:00
Chris McGravey
1c158f743c - Add CoinMarketCap widget 2022-09-12 01:30:42 -05:00
Ben Phelps
4531985032 fix standalone docker widget 2022-09-12 06:18:51 +03:00
Jason Fischer
f8aa1ba391 Add Readarr and SABnzbd widgets 2022-09-11 19:49:18 -07:00
Francisco Coelho
9d790894d5 Sabnzbd Support 2022-09-12 02:22:39 +01:00
Francisco Coelho
eeac1200e7 Update credentialed.js 2022-09-11 22:11:14 +01:00
Francisco Coelho
a304d87b8a Merge branch 'main' of https://github.com/xicopitz/homepage 2022-09-11 22:08:11 +01:00
Ben Phelps
4aedda7ba2 add Overseerr widget 2022-09-11 17:24:33 +03:00
Ben Phelps
53149df5f1 handle proxy methods other than GET 2022-09-11 14:30:28 +03:00
Ben Phelps
bc2025b3ba handle 204 and 304 proxy responses 2022-09-11 14:30:14 +03:00
Francisco Coelho
5e6312fe93 Add Gotify Service 2022-09-11 04:11:02 +01:00
Ben Phelps
3882dd4f5a fix cases where configurations are empty 2022-09-09 22:01:01 +03:00
Ben Phelps
d66326b41d implement docker service discovery via labels 2022-09-09 21:53:05 +03:00
Ben Phelps
0b43f83daa cleanup bitrate/byterate i18n formatter 2022-09-08 20:17:58 +03:00
Ben Phelps
c08d4b7b9c implement i18n 2022-09-08 11:48:16 +03:00
Ben Phelps
f74e8b9d32 linting and cleanup 2022-09-07 16:53:24 +03:00
Ben Phelps
939f5d7c20 fix path.join import 2022-09-06 08:39:25 +03:00
Ben Phelps
6061d9ec65 cleanup imports 2022-09-05 20:19:08 +03:00
Ben Phelps
5a8defb478 allow weather apis to use hidden api keys 2022-09-05 20:14:14 +03:00
Ben Phelps
08afa0b747 check that content type exists before setting it 2022-09-05 10:08:02 +03:00
Ben Phelps
bad436b858 fix jellyfin widget api calls 2022-09-05 08:19:50 +03:00
Ben Phelps
97bf174b78 refactor widget api design
this passes all widget API calls through the backend, with a pluggable design and reusable API handlers
2022-09-04 21:58:42 +03:00
Ben Phelps
dc6b172df9
Merge pull request #25 from AlexFullmoon/main
Added OpenWeatherMap widget.
2022-08-27 15:13:27 +03:00
AlexFullmoon
6a97d392c9 Added OpenWeatherMap widget. 2022-08-27 13:30:17 +03:00
Ben Phelps
a7dd6d965d handle proxying binary data 2022-08-27 12:38:32 +03:00
Ben Phelps
f0f470ba8b add attribution to the condition map class 2022-08-27 09:31:46 +03:00
Ben Phelps
ac718c852a add speedtest-tracker integration 2022-08-27 03:50:49 +03:00
Ben Phelps
b61ec9836e refactor information widgets 2022-08-27 00:55:13 +03:00
Ben Phelps
7647d8eb4e fix portainer offline containers count 2022-08-26 22:33:54 +03:00
Ben Phelps
1f3cd43bef forward proxy bodies raw 2022-08-25 20:57:25 +03:00
Ben Phelps
affd1e97c2 remove debug lines 2022-08-25 14:07:14 +03:00
Ben Phelps
bfc307efbe debug fs steps 2022-08-25 13:16:03 +03:00
Ben Phelps
1b2fa720c6 add theme switcher 2022-08-25 11:14:17 +03:00
Ben Phelps
d54561cec9 cleanup formatting 2022-08-25 02:42:33 +03:00
Ben Phelps
3914fee775 first public source commit 2022-08-24 10:44:35 +03:00