Commit graph

156 commits

Author SHA1 Message Date
Doruk
29e885b6d4 fix minor issues, falsy check & unnecessary defaults & simplify to a single empty state 2025-06-17 19:50:24 +02:00
Doruk
5c6cf48a77 status page router ismplification getData 2025-06-17 19:50:24 +02:00
Doruk
eb47b1f14f refactor _24 suffix 2025-06-17 19:50:24 +02:00
Peak Twilight
5e64226a63
Update server/routers/status-page-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2025-06-17 19:35:53 +02:00
Doruk
6c26d32a8e update uptime component with dynamic range 2025-06-17 15:28:15 +02:00
Doruk
6defb5ddaa refactor status page router into uptime calculator 2025-06-14 23:49:03 +02:00
Doruk
adc362a2a8 rethought beat aggregation system fully server-side 2025-06-14 23:42:40 +02:00
Doruk
1518fd528b address CommanderStorm's feedback + revert statuspage pr 2025-06-14 23:09:44 +02:00
Doruk
1f4c4a0cb1 fix range 30-90 v2 2025-06-14 23:04:57 +02:00
Doruk
8b2bf8a8c8 fix 30-90 range 2025-06-14 22:50:10 +02:00
Doruk
76b9680445 bug fix, made beats bars smaller 2025-06-14 21:58:44 +02:00
Doruk
804bb39f52 time calculation & cleanup 2025-06-14 18:40:13 +02:00
Doruk
9402c0fa00 rebucketing 2025-06-14 18:37:40 +02:00
Doruk
992bcdb18e fix linting 2025-06-14 13:28:18 +02:00
Doruk
0dde42ee36 added validate and other improvements 2025-06-14 13:27:34 +02:00
Doruk
ace9ff20b5 simplified to day int instead of custom options accross all components. 2025-06-14 12:49:02 +02:00
Doruk
b41d10ec27 cleaned up empty lines + linting 2025-06-14 12:38:45 +02:00
Doruk
94adf2c9d4 cleaned up debugging 2025-06-14 12:37:45 +02:00
Doruk
dbf58b8650 try stat tables first, then add fallback if pre-aggregated data fails 2025-06-14 12:22:46 +02:00
Doruk
8d2e3f130a remove client-side aggregation and add server-side support for it in new util 2025-06-14 12:16:28 +02:00
Doruk
2c6d410c60 modularized with a heartbeat range util 2025-06-14 12:10:00 +02:00
Doruk
ebd47f1a45 refactor: Clean up heartbeat range handling in status page
- Removed fallback to "auto" for heartbeat bar range in the StatusPage model.
- Simplified heartbeat range logic in the status page router to ensure consistent date handling.
- Updated socket handler to directly assign heartbeat bar range from config.
2025-06-14 12:02:37 +02:00
Doruk
493a5fdf69 added heartbeat range 2025-06-14 02:16:31 +02:00
Doruk
ad713eda4b feat: Add configurable heartbeat bar range for status pages
Add a configurable range option (7/30/60/90/180/365 days) for heartbeat bars on status pages.
This allows status page owners to customize how much historical data is shown to visitors.

Changes:
- Add database migration for heartbeat_bar_range_days column
- Update StatusPage model to include heartbeat bar range setting
- Modify heartbeat API endpoint to respect configured range
- Add UI controls in status page editor for range selection
- Update English translations for new settings
- Default to 90 days for backward compatibility

Resolves #1888
2025-06-14 01:06:53 +02:00
Louis Lam
49eb0ff87b
Fix: [Push Monitor] Send notifications during maintenance period (#5847)
Some checks failed
Auto Test / armv7-simple-test (18, ARMv7) (push) Has been cancelled
Auto Test / armv7-simple-test (20, ARMv7) (push) Has been cancelled
Auto Test / check-linters (push) Has been cancelled
Auto Test / e2e-test (push) Has been cancelled
CodeQL / Analyze (push) Has been cancelled
Merge Conflict Labeler / Labeling (push) Has been cancelled
validate / json-yaml-validate (push) Has been cancelled
validate / validate (push) Has been cancelled
Auto Test / auto-test (18, ARM64) (push) Has been cancelled
Auto Test / auto-test (18, macos-latest) (push) Has been cancelled
Auto Test / auto-test (18, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (18, windows-latest) (push) Has been cancelled
Auto Test / auto-test (20, ARM64) (push) Has been cancelled
Auto Test / auto-test (20, macos-latest) (push) Has been cancelled
Auto Test / auto-test (20, ubuntu-latest) (push) Has been cancelled
Auto Test / auto-test (20, windows-latest) (push) Has been cancelled
2025-05-20 12:38:21 +02:00
zhang-wei
289e824a5d
Fix monitor reference in push notification logic (#5842)
Some checks are pending
Auto Test / auto-test (18, ARM64) (push) Blocked by required conditions
Auto Test / auto-test (18, macos-latest) (push) Blocked by required conditions
Auto Test / auto-test (18, ubuntu-latest) (push) Blocked by required conditions
Auto Test / auto-test (18, windows-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, ARM64) (push) Blocked by required conditions
Auto Test / auto-test (20, macos-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, ubuntu-latest) (push) Blocked by required conditions
Auto Test / auto-test (20, windows-latest) (push) Blocked by required conditions
Auto Test / armv7-simple-test (18, ARMv7) (push) Waiting to run
Auto Test / armv7-simple-test (20, ARMv7) (push) Waiting to run
Auto Test / check-linters (push) Waiting to run
Auto Test / e2e-test (push) Waiting to run
CodeQL / Analyze (push) Waiting to run
Merge Conflict Labeler / Labeling (push) Waiting to run
validate / json-yaml-validate (push) Waiting to run
validate / validate (push) Waiting to run
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2025-05-18 00:05:48 +02:00
Ryo Hanafusa
3b58ac3fd3
feat: Extend the length of status bar and feed sufficient data (#5241)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2025-04-25 13:47:18 +02:00
Luke Thomas
cdb8ad321d
fix: slug input (#5239)
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-11-26 01:56:23 +01:00
Louis Lam
eca90a2b00
Revert "feat: structured logging (JSON)" (#5175) 2024-10-09 07:43:44 +08:00
Cassandra
b287a25de7
feat: structured logging (JSON) (#5118) 2024-09-24 17:51:21 +08:00
Jakob Lindskog
935194bca3
feat: implement very crude and bare-bones RSS feed (#5047) 2024-09-03 13:51:34 +02:00
Qi Zhao
4941b17a46 perf: ️ revert some overengineer code 2024-06-20 10:50:35 +08:00
Qi Zhao
58533e8f06 Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-06-20 10:50:35 +08:00
Qi Zhao
3f425dc160 Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-06-20 10:50:35 +08:00
Qi Zhao
f63d36478d Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-06-20 10:50:35 +08:00
Qi Zhao
7270caccae Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
2024-06-20 10:50:35 +08:00
Qi Zhao
53c4bba387 fix: 🐛 badge requestedDuration 2024-06-20 10:50:35 +08:00
Qi Zhao
e5ff86e6ac fix: 🐛 status & ping badge duration 2024-06-20 10:50:35 +08:00
Stefan Ottosson
9c7aa13190
fix: remove check that method is correct 2024-05-24 08:29:09 +02:00
Stefan Ottosson
1ac5696463
Merge branch 'master' into feature/http-method-push-monitor
# Conflicts:
#	src/pages/EditMonitor.vue
2024-05-23 17:34:45 +02:00
Nelson Chan
c7b8bb9e4a
Fix: Incorrect handling of status page not found (#4537) 2024-02-28 18:57:58 +08:00
Louis Lam
869ee8ec50 Merge branch '1.23.X' into 1.23.X-merge-to-2.X.X
# Conflicts:
#	.github/workflows/auto-test.yml
#	extra/reset-password.js
#	package-lock.json
#	package.json
#	server/routers/status-page-router.js
#	server/server.js
#	server/socket-handlers/general-socket-handler.js
#	server/uptime-kuma-server.js
#	src/components/ActionInput.vue
#	src/util.js
#	src/util.ts
2023-12-11 02:13:47 +08:00
Louis Lam
482049c72b
Merge pull request from GHSA-88j4-pcx8-q4q3
* WIP, still need to handle npm run reset-password

* Implement it for "npm run reset-password"

Bug fixes and change along with this commit
- Move `ssl`, `hostname`, `port` to ./server/config.js, so `reset-password` is able to read it
- Fix: FBSD is missing, no idea who dropped it.
- Fix: Frontend code should not require any backend code (./server/config.js), moved "badgeConstants" to the common util (./src/util.ts) and drop vite-common.js

* Minor
2023-12-10 20:40:40 +08:00
Nelson Chan
67250d6302
Feat: Retries persistence (#3814)
* Feat: Retries persistence

* Fix: Set duration for first beat of push monitor

* Feat: Update UptimeCalculator in push route

* Fix: Handle resend in push route

* Chore: Remove debug log
2023-11-24 18:11:36 +08:00
Louis Lam
ace1fe00c2 Merge branch 'master' into 1.23.X-merge-to-2.X.X
# Conflicts:
#	docker/debian-base.dockerfile
#	package-lock.json
#	server/database.js
#	server/model/monitor.js
#	server/uptime-kuma-server.js
#	server/util-server.js
2023-11-13 21:15:51 +08:00
Nelson Chan
38efd97b28
Fix: Support float ping in push route (#3987) 2023-11-09 23:39:44 +08:00
Louis Lam
852b3fa61b Merge branch '1.23.X'
# Conflicts:
#	package-lock.json
#	server/database.js
#	server/server.js
#	server/util-server.js
2023-10-09 21:28:01 +08:00
前端小武
1b148786a5
Fix: Update x-forwarded-host field when using reverse proxy (#3726) 2023-10-09 06:31:52 +08:00
Adam Stachowicz
6875ecdfbf
Fix warnings (#3826) 2023-10-03 05:39:17 +08:00
Louis Lam
076331bf00
Uptime calculation improvement and 1-year uptime (#2750) 2023-09-01 05:19:21 +08:00