Commit Graph

13029 Commits

Author SHA1 Message Date
Johannes Meyer 1c7e5b31bf js: Don't bypass our cache when reloading CSS
The timestamp previously added, forces the browser to ignore
its own cache and thus it doesn't transmit the `If-None-Match`
header. We then re-calculate the the CSS possibly for no reason.
If there is a re-calculation indeed required it should be still
done now since the ETag transmitted by the browser is outdated.

refs #4340
2021-06-16 14:59:19 +02:00
Johannes Meyer 870c3e0e5b Force clients to ask us if their cached CSS is valid 2021-06-16 14:58:44 +02:00
Johannes Meyer 1ada53539c Force clients to ask us if their cached JS is valid 2021-06-16 14:57:14 +02:00
Johannes Meyer 439218869b Only reload JS/CSS if really required when en-/disabling a module 2021-06-16 14:56:36 +02:00
Johannes Meyer 81c0613e68 Library: Add missing shut-up operator to `file_get_contents` call 2021-06-16 11:57:00 +02:00
Johannes Meyer 7c4488ddc7 input-enrichment: Fix incorrect identification of enriched elements 2021-06-09 15:19:05 +02:00
Johannes Meyer c038bf792f
Merge pull request #4381 from Icinga/fully-integrate-ipl-as-dependency
Fully integrate ipl as dependency
2021-06-07 09:56:57 +02:00
Johannes Meyer 0d6da2d859 error/error: Check web2's deps and enhance lib checks 2021-06-07 09:40:40 +02:00
Johannes Meyer cb102399d5 doc: Mention ipl and icinga 3rdparty as requirements 2021-06-02 15:33:18 +02:00
Johannes Meyer 2563672f11 css: Initialize `@iplWebAssets` variable 2021-06-02 15:33:18 +02:00
Johannes Meyer caef8dab6a PreferenceForm: Fix that the default locale is not choosable
refs #4376
2021-06-02 12:03:50 +02:00
Johannes Meyer 6e3ad08aef Zend: Fix `array_walk_recursive` pass by reference error on PHP8
refs #4287
2021-06-02 11:24:01 +02:00
Johannes Meyer e794967389 js: Require libs from `icinga/icinga-php-library` now 2021-06-01 12:06:58 +02:00
Johannes Meyer 4e3811cc84 Module: Allow `/` and `-` in module/library dependency names 2021-06-01 09:14:28 +02:00
Johannes Meyer 229e24519a
Merge pull request #4376 from Icinga/utilize-ipl-i18n-4366
Utilize ipl-i18n
2021-06-01 09:13:45 +02:00
Johannes Meyer 4fc78a4cfd ApplicationBootstrap: Change default library path
from: `/usr/share/php-Icinga`
to: `/usr/share/icinga-php`
2021-05-31 10:17:35 +02:00
Johannes Meyer 5af833bb6d translation: Add support for ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer 8fe282b9aa translation: Only allow to generate module locales 2021-05-28 14:03:36 +02:00
Johannes Meyer dcb619e62a Translator: Add deprecation notice and use ipl-i18n internally 2021-05-28 14:03:36 +02:00
Johannes Meyer 84c459c519 test: Remove testcase `Bug6432Test` 2021-05-28 14:03:36 +02:00
Johannes Meyer 0cbae3195e test: Remove testcase `TranslatorTest` 2021-05-28 14:03:36 +02:00
Johannes Meyer 9e6d2e8aec php: Don't generate any locales for tests
They're not needed any more due to the use of ipl-i18n
2021-05-28 14:03:36 +02:00
Johannes Meyer f363bf5bf6 BaseTestCase: Setup `ipl\I18n\StaticTranslator::$instance` 2021-05-28 14:03:36 +02:00
Johannes Meyer b09384e489 php: Install ipl-i18n as a dependency for tests 2021-05-28 14:03:36 +02:00
Johannes Meyer d83b06618a DashboardCommand: Utilize ipl-i18n in `sections` command 2021-05-28 14:03:36 +02:00
Johannes Meyer 573af6b2df PreferenceForm: Detect locales using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer db1fea6331 Web: Detect preferred locale using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer 86614ad7a8 layout: Identify language using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer 84757111d1 ApplicationBootstrap: Deprecate method `listLocales()` 2021-05-28 14:03:36 +02:00
Johannes Meyer 2e5abbc832 Use ipl-i18n's `Translation` trait where applicable 2021-05-28 14:03:36 +02:00
Johannes Meyer cb92e86b99 functions: Use ipl-i18n in functions `t`, `tp`, `mt` and `mtp` 2021-05-28 14:03:36 +02:00
Johannes Meyer 8137f1546f Module: Register locales using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer bfd2449e5d bootstrap: Setup internationalization using ipl-i18n 2021-05-28 14:03:36 +02:00
Johannes Meyer cc0c6fc71b js: Avoid usage of `.matches()` as it isn't available with IE11 2021-05-25 17:19:03 +02:00
Florian Strohmaier 24c1bb1f8c IcingaCheckbox: Add `hidden attribute to input element
refs #4310
2021-05-25 17:09:51 +02:00
Feu Mourek b875b28dea
Add a blank issue template with a link to the forum (#4379) 2021-05-25 16:14:35 +02:00
Eric Lippmann 68acf12407
Remember me (#4112)
Co-authored-by: Sukhwinder Dhillon <sukhwinder.dhillon@icinga.com>
2021-05-21 15:43:06 +02:00
Johannes Meyer 577e47142e
Merge pull request #4354 from Icinga/feature/integrate-flatpickr
Add datetime picker widget
2021-05-17 14:12:08 +02:00
Johannes Meyer 4236dd84d9 datetime-picker.js: Show an icon inside the flatpickr input 2021-05-17 13:20:43 +02:00
Johannes Meyer 5a6e3cf32f datetime-picker.js: Cleanup unused flatpickr instances 2021-05-17 13:20:43 +02:00
Johannes Meyer e704309c41 modal.js: Trigger `close-modal` when.. closing a modal 2021-05-17 13:20:43 +02:00
Johannes Meyer 90a056d988 datetime-picker.js: Append flatpickr container not to body
The body isn't cleared without a full reload. This way the
flatpickr container resides in the same container as the
input's form.
2021-05-17 13:20:43 +02:00
Johannes Meyer 025c50f8a5 css: Only set `width:100%` for `.icinga-form`s in a modal's content 2021-05-17 13:20:43 +02:00
Johannes Meyer 0a0ae95d6c FormDateTime: Enable datetime-picker widget by default 2021-05-17 13:20:43 +02:00
Johannes Meyer 6c3c8a3e38 css: Add dark styles for `flatpickr` widgets to solarized dark theme 2021-05-17 13:20:43 +02:00
Johannes Meyer 162d898d42 js: Introduce `DatetimePicker` behavior
Utilizes `flatpickr` from ipl-web.
2021-05-17 13:20:42 +02:00
Johannes Meyer 9d6bef0a39 PreferenceForm: Reload the entire layout if the locale changes 2021-05-17 13:20:42 +02:00
Johannes Meyer a87f15c861 Auth: Reload entire layout if the locale changes 2021-05-17 13:20:42 +02:00
Johannes Meyer 04b906bff5 layout.phtml: Setup the Icinga js object with the user's locale and timezone 2021-05-17 13:20:42 +02:00
Johannes Meyer c202eccf65 define.js: Support libs that require `exports`
I'm not sure how this actually is supposed to work,
but I believe this is how we can support it so that
it's still useful.
2021-05-17 13:20:42 +02:00