Commit Graph

14026 Commits

Author SHA1 Message Date
Johannes Meyer 51992f414e modal.js: Use a modal toggle's container as redirect target by default
Not the container's base target. The redirect target may still be
overridden by `data-base-target` on the `form` or by the response
using `X-Icinga-Container`.
2023-08-11 10:32:29 +02:00
Johannes Meyer 257a7070a1 js: Support `__CLOSE__` as extra update 2023-08-11 10:32:29 +02:00
Johannes Meyer eed6374dd2 js: Enhance server side container closing
* Let response header `X-Icinga-Container` either influence a request's `$target` or `$redirectTarget`, but not both
* Close a request's `$target` instead of the `$redirectTarget` upon the redirect url `__CLOSE__`

* Issuing a `__CLOSE__` in a detail url still closes `#col2` and refreshes `#col1`
* Issuing a `__CLOSE__` for a nested container still empties it
* Issuing a `__CLOSE__` in a modal, now refreshes the modal openers container
* If `X-Icinga-Extra-Updates` is set, automatic refreshing won't happen
2023-08-11 10:32:29 +02:00
Johannes Meyer 65b3006adf Check if `\Throwable` instead of `\Exception`..
..everywhere else...

fixes #5079
2023-08-10 14:12:06 +02:00
Johannes Meyer de178d0086
Remove vendor dependency (#5048)
The libraries in vendor directory has been moved to `composer.json` file
in
[icinga-php-thirdparty](https://github.com/Icinga/icinga-php-thirdparty).

### Blocked By
Icinga/icinga-php-thirdparty#11

closes #5007
2023-08-09 15:59:12 +02:00
Johannes Meyer 0a6db983f3 IcingaException: Expect `\Throwable` instead `\Exception` 2023-08-09 15:53:49 +02:00
raviks789 c6d4bf5020 Update php test workflow
Since the vendor libraries are moved to `icinga-php-thirdparty`. The php test workflow needs
to be updated, so that these libraries could be found during the test run.
2023-08-09 15:53:49 +02:00
raviks789 8a17c56345 Remove requiring vendor dependencies
Also avoid autoloading vendor.
2023-08-09 15:16:16 +02:00
raviks789 50bd5cfdc9 Remove `librarary/vendor` directory
The vendor dependencies will be moved to `composer.json` in `icinga-php-thirdparty`.
2023-08-09 15:16:16 +02:00
Johannes Meyer f61d278110 test: Support `ICINGAWEB_CONFIGDIR` during bootstrapping 2023-08-09 13:48:45 +02:00
Yonas Habteab 4ccebb78b5 `loader.js`: Allow to override the actual form action using `formaction` attr 2023-07-18 10:47:52 +02:00
Johannes Meyer d311005089
Update test bootstrapping (#5050) 2023-07-05 09:32:11 +02:00
Johannes Meyer 597cb5c94d tests: Use a real app for bootstrapping
Makes the tests less isolated, but streamlines
the autoloading and other stuff in a way that's
more maintainable than before.
2023-07-05 09:24:49 +02:00
Johannes Meyer 82d39be642 BaseTestCase: Refactor request and response mocking 2023-07-04 17:05:06 +02:00
Johannes Meyer 08bfc4f596 BaseTestCase: Drop timezone setup, the app will do it 2023-07-04 17:05:06 +02:00
Johannes Meyer 531479a92e BaseTestCase: Deprecate directory properties 2023-07-04 17:05:06 +02:00
Johannes Meyer 3f447cb954 BaseTestCase: Remove `t` and `mt` function declarations 2023-07-04 17:05:06 +02:00
Johannes Meyer 58673b0b95 PhpCommand: Accept phpunit path as option and fix coverage 2023-07-04 17:05:06 +02:00
Johannes Meyer 776e0803fa tests: The app is soon not mocked anymore, so don't use it as such 2023-07-04 16:26:36 +02:00
Johannes Meyer e572652f4c ConfigTest: Always load test config from disk 2023-07-04 16:25:11 +02:00
Johannes Meyer d0b2ed177c tests: Drop DateFormatTestBroken as it is .. broken 2023-07-04 16:24:37 +02:00
Johannes Meyer c9f3f0444d tests: Require view helpers at runtime 2023-07-04 16:24:19 +02:00
Johannes Meyer e7adc06497 ApplicationBootstrap: Process `ICINGAWEB_MODULES_DIR` by default 2023-07-04 16:08:41 +02:00
Gianluca Piccolo db9888b1f1 Fixes #5020 2023-06-22 15:11:39 +02:00
Sukhwinder Dhillon 59fc7dd745 Fix installation doc for centOS 2023-06-22 15:10:05 +02:00
Thomas Gelf 463cc748bf MonitoringBadgeNavigationItemRenderer: do not fail
...on wildcard filter
2023-06-22 15:07:47 +02:00
Sukhwinder Dhillon ea1e5f9245 TimeLine: Always parse `int` to validateTime()
Php < 8.1 converts fetched time(stamp) to string. This must always be an int.
2023-06-22 15:05:10 +02:00
Johannes Meyer c40cfb41a8 RoleForm: Force a suffix for all element names
fixes #4973
2023-06-22 15:04:19 +02:00
Sukhwinder Dhillon 5000d3117b IcingaException: Only use `vsprintf()` if `$args` given
If the passed message contains a `%`, but no `$args`, `vsprintf()` throws an error.
2023-06-22 15:03:14 +02:00
Johannes Meyer 10d3fb64f9 js: Automatically transform .time-until widgets into .time-ago ones 2023-06-22 15:02:37 +02:00
raviks789 f74041e00a Javascript: Add `copy-to-clipboard` behavior
Utilizes `CopyToClipboard.js` from ipl-web
2023-06-20 12:06:27 +02:00
Sukhwinder Dhillon 65b9024bc5 Winter.less: Don't set bg-color to transparent 2023-06-19 10:09:49 +02:00
Sukhwinder Dhillon 09b9d7401c base.less: Make menu nav-level-2 hover better visible 2023-06-19 10:09:36 +02:00
Johannes Meyer 357398cecd php: Fix mysql container startup 2023-06-19 10:03:04 +02:00
Alexander A. Klimov 7eb6359281 GHA: handle changed interface of Icinga/docker-icingaweb2 2023-05-23 10:32:25 +02:00
Eric Lippmann a3235555bb js: Also preserve scroll-y upon auto-refresh 2023-05-19 15:29:44 +02:00
Johannes Meyer e0e2ff7a86
Merge pull request #5026 from Icinga/let-autosubmits-trigger-real-submits
Let autosubmits trigger real submits
2023-05-19 15:02:51 +02:00
Johannes Meyer cb6a0c120f events.js: Trigger a real submit upon autosubmit 2023-05-19 14:53:31 +02:00
Johannes Meyer 7da5eb0972 modal.js: Trigger a real submit upon autosubmit 2023-05-19 14:53:31 +02:00
Johannes Meyer 63eae12d33 loader.js: Transmit nearest identifiable parent as origin..
..upon autosubmit if the real element has no id or name.
2023-05-19 14:42:00 +02:00
Johannes Meyer 88caf3c141 loader.js: Empty nested containers upon `__CLOSE__` 2023-05-19 14:17:41 +02:00
Johannes Meyer 4b6df1bef9 Release version 2.11.4 2023-01-26 12:53:47 +01:00
Johannes Meyer 693bed1710 Raise version to 2.11.4 2023-01-26 09:42:18 +01:00
Johannes Meyer 299ef68102 Update CHANGELOG.md 2023-01-26 09:42:18 +01:00
Johannes Meyer 74c8e24884 Update AUTHORS 2023-01-26 09:42:18 +01:00
Johannes Meyer fdcfdfa3de
Merge pull request #4988 from Icinga/dkr-env
Provide the behaviour the Docker images patch into us by ourselves
2023-01-26 09:35:39 +01:00
Alexander A. Klimov 73dcf2bc89 setup: welcome page: on Docker remove redundant instructions 2023-01-24 11:23:58 +01:00
Alexander A. Klimov 3784fe80b7 LoggingConfigForm: on Docker default to webserver log 2023-01-24 11:23:34 +01:00
Alexander A. Klimov 0031108160 icingacli setup config webserver apache: add trailing / to Alias dir
if the Alias URI (e.g. /) has a trailing /. Otherwise Apache says 403.
2023-01-18 13:55:45 +01:00
Johannes Meyer 04c9edeccc
Merge pull request #4986 from Icinga/enhance-module-test-compatibility
Enhance module test compatibility
2023-01-18 12:18:54 +01:00