14113 Commits

Author SHA1 Message Date
Johannes Meyer
e12574f328
navigation/dashboard.phtml: Use ipl-web's Icon for fa- icons (#5278)
resolves #5277
2024-11-04 10:29:27 +01:00
Johannes Meyer
e34c174db9 url.php: Add partial support for fontawesome
Partial because the helper method is not the preferred way
anymore to create an icon. So I simplified the detection
to only check whether the given icon is a legacy one, as
those are smaller in number. Though, this leads to some fa
icons being identified as legacy, as the names equal. But,
it's the legacy helper after all... Anyone wanting to make
sure to get fontawesome icons, must add the `fa-` prefix.
2024-11-04 10:26:06 +01:00
Johannes Meyer
526de93c89 navigation/dashboard.phtml: Use ipl-web's Icon for fa- icons 2024-11-04 10:26:06 +01:00
Yoda-BZH
41a2aed0b5 fix(csv): fix #5279 always force subject to be a string
When performing a str_replace, subject should always be a string. If
passing a non-existent column or empty column, subject may be null

This ensure str_replace is called when subject is actually a string (not
NULL)
2024-11-04 10:23:23 +01:00
Sukhwinder Dhillon
9f14c32b71 About Page: Suppress the MigrationManager exception 2024-11-04 09:20:00 +01:00
log1-c
2864e60d78
Corrected kiosk mode config (#5281) 2024-10-30 11:25:54 +01:00
moreamazingnick
bc47867f20
Fix PluginOutputHookImplementation gets called twice #5271 (#5272) 2024-10-08 09:25:02 +02:00
Robert Silén
c4b6e4bdda
add MariaDB to installation doc (#5247)
as discussed in https://github.com/Icinga/icingaweb2/issues/5237
2024-08-15 16:43:58 +02:00
Sukhwinder Dhillon
cc9572d9c5 Flyout menu: Render menu bottom-up if it exceeds the viewport height 2024-08-14 16:29:33 +02:00
Johannes Meyer
4ea3bebe07
Fix duplicate dashlets (#5245)
fixes #5203
2024-08-13 15:39:56 +02:00
Johannes Meyer
81a3be74f3 Dashboard: Don't merge already existing dashlets
fixes #5203
2024-08-13 11:37:12 +02:00
Johannes Meyer
d06ce98d2f IniWriter: Avoid deprecation notice upon write errors 2024-08-13 11:36:31 +02:00
Johannes Meyer
c27b43fb75 css: Increase settings flyout toggle hover area 2024-08-08 15:40:59 +02:00
Markus Opolka
66fb1ea57d
Add Icinga Director to list of components capable of strict CSP (#5226)
Hi, 

I updated the docs for the Content Security Policy (CSP). The Director
was missing from the list.

Was implemented in
https://github.com/Icinga/icingaweb2-module-director/pull/2857

Edit: I also added a hint about how to enable CSP in Icinga Web.

Cheers
Markus
2024-08-08 11:20:54 +02:00
Sukhwinder Dhillon
41a92e9d87 Css: Do not allow :hover to affect the .active list elements 2024-08-07 16:29:40 +02:00
Johannes Meyer
781b97fc41
removed gendered language (#5169) 2024-08-07 14:40:32 +02:00
Johannes Meyer
9ef4c71cec js: Fix error on app startup
jQuery seems to re-cycle event object references oO
2024-08-07 14:35:14 +02:00
Johannes Meyer
97f8767970 js: Only add .impact to a container's content 2024-08-07 14:33:14 +02:00
Sukhwinder Dhillon
62cae50f1e DbResourcePage: Warn the user if Icinga DB is used as configuration database 2024-08-07 14:23:13 +02:00
Sukhwinder Dhillon
c27ca26dad LdapConnection: Access array key only if its set
The key `$controlsReturned[LDAP_CONTROL_PAGEDRESULTS]` can be undefined
when `$controls[LDAP_CONTROL_PAGEDRESULTS]['iscritical']` is set to false.
2024-08-07 14:05:35 +02:00
Johannes Meyer
f8c08dbfec DeleteDowntimesCommandForm: Ignore 404's
fixes #5183
2024-08-07 13:56:08 +02:00
Johannes Meyer
474f918458 navigation/dashboard: Provide fallback for icingadb items without icon
fixes #5177
2024-08-07 13:41:23 +02:00
Johannes Meyer
8ec42b05f8 js: Explicitly update history when col2 is closed
Instead of doing this by default. There are too many
cases where this isn't necessary at all.

fixes #5178
2024-08-07 13:39:41 +02:00
Johannes Meyer
ff0fc55907
list/history: Use intl's default locale to format time and date (#5170) 2024-08-07 13:30:07 +02:00
Johannes Meyer
ab3c9f326d Require ipl version which provides i18n v0.2.2 2024-08-07 13:19:11 +02:00
Johannes Meyer
e1479b4a6a list/history: Use intl's default locale to format time and date 2024-08-07 13:16:51 +02:00
Johannes Meyer
b370d9bd9f
Fix broken UI when trying to resolve an undefined $macro$ (#5201)
fixes https://github.com/Icinga/icingaweb2/issues/5168
2024-08-07 11:50:22 +02:00
Sukhwinder Dhillon
68b264f649 Update phpstan baseline 2024-08-07 11:47:13 +02:00
Sukhwinder Dhillon
d6ceb9ad11 Macro: Fix typo and simplify the code 2024-08-07 11:47:13 +02:00
Sukhwinder Dhillon
41787d91bf Macro: Don't break ui if undefined macro given
$object can be an instance of stdClass and cannot call getName(). The name must then be retrieved manually.
2024-08-07 11:47:13 +02:00
Johannes Meyer
b268044efc
Add missing script-src policy (#5181)
fixes #5180
2024-08-07 11:46:00 +02:00
Johannes Meyer
bb47844646 js: Don't adjust style by using element.cssText
That's prohibited if using `script-src 'self';` in the csp header
2024-08-07 11:39:58 +02:00
Johannes Meyer
4c3139224e Csp: Include `script-src 'self';
fixes #5180
2024-08-07 11:39:58 +02:00
Johannes Meyer
fa394c8895
Fix that graphs disappear after using form controls (#5182) 2024-08-07 11:38:14 +02:00
Johannes Meyer
6964bd19a2 js: Improve rejection of autorefresh responses
Don't reject autorefreshes if an autosubmit
element is focused but not interacted with

fixes #4996
2024-08-07 11:20:11 +02:00
Johannes Meyer
a48a6ebcb5 js: Really stop rendering if a hook discards content
This is a potential breaking change for behaviors which
rely on being able to change content in-place even if
the response's content is not applied. This is the case
for grafana's iframe behavior, though that's more a hack
than a necessity so it doesn't break. I've found no other
implementations so I guess it's fine including it here.
2024-08-07 11:20:11 +02:00
Johannes Meyer
c79b513066 js: Apply render hooks in a defined order
Currently, form first and detach second.
Any other last. (e.g. grafana's iframe)
2024-08-07 11:20:11 +02:00
Johannes Meyer
acf8795d70
Fix several doc issues (#5215) 2024-04-15 13:27:31 +02:00
Johannes Meyer
b3bffa7832 Tab(s): Fix doc types 2024-04-15 13:02:10 +02:00
Johannes Meyer
a734aca11b Controller: Fix doc of httpNotFound and httpBadRequest 2024-04-15 13:02:10 +02:00
Johannes Meyer
efea832890 php: Split phpstan tests into a separate workflow 2024-04-08 17:10:58 +02:00
Robin Kraft
dba77bce57
add canceled downtimes to the history, if they were started (#5184)
fixes https://github.com/Icinga/icingaweb2/issues/5176
2024-04-05 16:23:56 +02:00
Johannes Meyer
d6881e0273 ConfigObject: Document generics 2024-02-15 14:13:48 +01:00
Johannes Meyer
58b3321852
phpstan: Streamline vendor file location with local dev-env (#5175) 2024-02-09 14:17:17 +01:00
Sukhwinder Dhillon
23dbdcf804 Phpstan: Seprate baselines based on php version 2024-02-09 14:13:44 +01:00
Sukhwinder Dhillon
804f28ea8a CommentParser: Add var type hint 2024-02-09 14:05:22 +01:00
Sukhwinder Dhillon
31e3455c79 LdapConnection: Fix ldap return type issues
ldap_connect() in php >= 8.1 returns `LDAP\Connection` instead of `resource` and all ldap_*() methods expects the returned type. But function defined return type and $ds type confuses phpstan, so i removed the hardcoded type hint.
2024-02-09 14:05:22 +01:00
Sukhwinder Dhillon
b270161455 phpstan: Streamline vendor file location with local dev-env
phpstan is not run with an action anymore, as the action runs
it its own docker container and hence has no access to files
outside the repository root. A side-effect of this is, that
phpstan now **really** runs with the php version set up by
the matrix.
2024-01-22 09:49:41 +01:00
alyxbb
5c94bf7bae
removed gendered languaged 2024-01-08 23:55:09 +00:00
Johannes Meyer
cd2daeb2cb
Release v2.12.1 (#5150) v2.12.1 2023-11-15 12:50:13 +01:00