Johannes Meyer
fbf3a1f757
loader.js: Don't add form submits other than `GET`s to the history
...
This has previously not been an issue, as form submits seem to have
never targeted another url than their container's current one.
Though any form that did this, was pushed to history upon submit.
This happens now only for `GET` forms.
2021-01-13 17:17:48 +01:00
Johannes Meyer
e346c1c88c
events.js: Also accept `$autoSubmittedBy` from `event.detail`
2021-01-13 17:17:18 +01:00
Johannes Meyer
3e29fba052
js: Transmit `X-Icinga-Autorefresh=1` with autorefresh requests
2021-01-13 17:16:53 +01:00
Johannes Meyer
2c7b2330a7
loader.js: Support behaviors as well as multipart update targets
2021-01-13 17:16:30 +01:00
Johannes Meyer
f05f905d14
history.js: Set `lastPushUrl` in method `replaceCurrentState()`
...
Without this, any subsequent call to `pushCurrentState()` has
no effect in case the same url is used that was replaced.
2021-01-13 17:15:58 +01:00
Johannes Meyer
627f388cfa
Merge pull request #4301 from Icinga/feature/preserve-previous-settings-for-admin-roles-4068
...
Preserve previous settings for admin roles
2021-01-12 11:48:37 +01:00
Johannes Meyer
c2efbbdafc
RoleForm: Don't hide permissions/restrictions in admin roles
...
resolves #4068
2021-01-12 11:38:59 +01:00
Sukhwinder Dhillon
53388a3940
Change __toString() to get encoded url string
2020-12-07 13:27:14 +01:00
Johannes Meyer
7c58b3ced1
LessCompiler: Add support for variable exports by modules
...
Using the following in a module's less file:
```
@exports: {
@foo: "bar";
@number: 4;
@color: red;
};
```
will export the variables `@foo`, `@number` and `@color` into the global
scope. Though, exports are not able to override already defined variables.
That's still reserved for themes.
2020-12-02 10:51:01 +01:00
Johannes Meyer
a33317aeab
Module: Don't emit warnings for module assets
...
resolves #4286
2020-12-01 09:44:56 +01:00
Johannes Meyer
bef52f3f2e
Merge pull request #4162 from Icinga/feature/expire-comments-3447
...
Monitoring: add expire option for comments
2020-12-01 08:42:04 +01:00
Alexander A. Klimov
6af1e5d43b
Monitoring: add expire option for comments
...
refs #3447
2020-11-30 17:24:57 +01:00
Johannes Meyer
629a39ebbe
Cli/Loader: Configure the used `Screen` to use STDERR
...
Otherwise we still colorize output if stderr is being
redirected.
2020-11-30 15:35:20 +01:00
Alexander A. Klimov
d7e3547c6e
CLI: write errors to stderr
2020-11-30 15:35:20 +01:00
Johannes Meyer
648e07d270
Merge pull request #4170 from Icinga/feature/auto-refresh-interval-config-2819
...
Make auto refresh interval configurable
2020-11-30 11:53:37 +01:00
Johannes Meyer
0f400ea4ef
PreferenceForm: Properly process autosubmits
...
Otherwise the default value of element `auto_refresh_speed`
is not applied after enabling element `auto_refresh`.
2020-11-30 11:41:23 +01:00
Alexander A. Klimov
7aacbd4db8
CheckNowCommandForm#init(): set submit label
...
... otherwise Form#handleRequest() bypasses Form#isSubmitted()
on API requests and considers the CheckNowCommandForm submitted.
refs #4281
2020-11-26 18:38:55 +01:00
Alexander Aleksandrovič Klimov
79ad7a4197
Name auto-refresh speeds more human readable
...
Co-authored-by: Johannes Meyer <johannes.meyer@icinga.com>
2020-11-26 11:38:02 +01:00
Alexander A. Klimov
81b19285a7
Make auto refresh interval configurable
...
refs #2819
2020-11-26 11:38:02 +01:00
Johannes Meyer
6956ec4450
Manager/Libraries: Don't try to compare versions if any version is sufficient
2020-11-24 15:31:11 +01:00
Johannes Meyer
fbf662bb1e
Merge pull request #4236 from tigercomputing/fix/badges-for-disabled-active-checks
...
Add notification beads for disabled active checks
2020-11-23 09:22:52 +01:00
Rick Henry
92ef10c22b
Add notification badges for disabled active checks
...
We mistakenly disabled active checks in our Icinga environment and did
not notice for some time. This commit hooks into the badge mechanic used
when notifications are turned off, and also provides badges when active
host checks and active service checks are disabled.
2020-11-22 21:18:08 +00:00
Johannes Meyer
79478fd2e1
Libraries: Return partial matches in method `get()`
...
This allows to reference libraries with only their
project name, not just together with the organisation
name.
2020-11-18 16:52:22 +01:00
Johannes Meyer
e8fc6f93ae
Merge pull request #4272 from Icinga/feature/library-support-4271
...
Add library support
2020-11-18 13:25:26 +01:00
Johannes Meyer
be99703a67
Module: Deprecate asset support
2020-11-18 13:21:34 +01:00
Johannes Meyer
a370a99fb4
cli: Allow to ignore module dependencies with `module enable --force`
2020-11-18 13:21:34 +01:00
Johannes Meyer
39e59422f4
error/error: Show a hint to check dependencies if there are unmet ones
2020-11-18 13:21:34 +01:00
Johannes Meyer
40c97d6a3e
Libraries: Add method `get($name)`
2020-11-18 13:21:34 +01:00
Johannes Meyer
01a08d60e1
setup: Don't fail if only a module couldn't be enabled
2020-11-18 13:21:34 +01:00
Johannes Meyer
32f9ce8b7c
config/module: Show library dependencies and unmet ones
2020-11-18 13:21:34 +01:00
Johannes Meyer
05d74dd980
config: Fix missing module name in failing dis-/enable actions
2020-11-18 13:21:33 +01:00
Johannes Meyer
28c7c41b55
Manager: Don't enable modules which have unmet dependencies
2020-11-18 13:21:33 +01:00
Johannes Meyer
aba8c4a8ba
Manager: Add method `hasUnmetDependencies($name)`
2020-11-18 13:21:33 +01:00
Johannes Meyer
baaf663db3
Module: Introduce new metadata field `Requires`
...
This is the successor of `Depends` and allows to
define dependencies for libraries and modules:
`Requires: <lib-name>[ (<ver>)][, <lib-name>[ (<ver>)]] ...`
or
```
Requires:
Libraries: <name>[ (<ver>)][, <name>[ (<ver>)]] ...
Modules: <name>[ (<ver>)][, <name>[ (<ver>)]] ...
```
2020-11-18 13:21:33 +01:00
Johannes Meyer
99b620983a
Manager: Add method `has($name, $version = null)`
2020-11-18 13:21:33 +01:00
Johannes Meyer
0f485f1257
Libraries: Add method `has($name, $version = null)`
2020-11-18 13:21:33 +01:00
Johannes Meyer
7af8bf351c
about: List loaded libraries
2020-11-18 13:21:33 +01:00
Johannes Meyer
e9fa9d95dd
JavaScript: Also optimize `define()` calls in module JS
2020-11-18 13:21:33 +01:00
Johannes Meyer
19e4eb6e1e
Module: Add missing getter for property `jsdir`
2020-11-18 13:21:33 +01:00
Johannes Meyer
5a38977906
js: Add `define.js`
2020-11-18 13:21:33 +01:00
Johannes Meyer
e2a5de910b
phpcs: Exclude class `StaticWeb` from `FoundWithSymbols` sniff
2020-11-18 13:20:09 +01:00
Johannes Meyer
220044277c
webrouter: Serve lib assets at `lib/<lib-name>/<asset-path>`
2020-11-18 13:20:09 +01:00
Johannes Meyer
ed7763c379
Introduce class `Icinga\Web\Controller\StaticController`
2020-11-18 13:20:09 +01:00
Johannes Meyer
e44ea3b34c
Introduce class `Icinga\Application\StaticWeb`
2020-11-18 13:20:09 +01:00
Johannes Meyer
a9d6482533
Javascript: Load JS assets from loaded libraries
2020-11-18 13:20:09 +01:00
Johannes Meyer
c49a811fb5
Library: Add getters for the different asset paths
2020-11-18 13:20:09 +01:00
Johannes Meyer
ad9099509d
StyleSheet: Load css assets from loaded libraries
2020-11-18 13:20:09 +01:00
Johannes Meyer
c2769bd177
Library: Add accessors for assets
2020-11-18 13:20:09 +01:00
Johannes Meyer
84c23fe92b
Library: Add accessors for meta data
2020-11-18 13:20:09 +01:00
Johannes Meyer
a60f511cfc
bootstrap: Load external libraries
2020-11-18 13:20:09 +01:00