Compare commits

...

74 Commits

Author SHA1 Message Date
dependabot[bot]
3ffc4e5833 build(deps): bump tedivm/jshrink from 1.7.0 to 1.8.0
Bumps [tedivm/jshrink](https://github.com/tedious/JShrink) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/tedious/JShrink/releases)
- [Commits](https://github.com/tedious/JShrink/compare/v1.7.0...v1.8.0)

---
updated-dependencies:
- dependency-name: tedivm/jshrink
  dependency-version: 1.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-29 09:16:26 +02:00
Johannes Meyer
2d8baeafe4 dependabot.yml: Fix udpate-types declaration 2025-07-25 15:31:48 +02:00
dependabot[bot]
50f68d3fc3 build(deps): bump predis/predis from 3.0.1 to 3.1.0
Bumps [predis/predis](https://github.com/predis/predis) from 3.0.1 to 3.1.0.
- [Release notes](https://github.com/predis/predis/releases)
- [Changelog](https://github.com/predis/predis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/predis/predis/compare/v3.0.1...v3.1.0)

---
updated-dependencies:
- dependency-name: predis/predis
  dependency-version: 3.1.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-25 15:13:13 +02:00
Johannes Meyer
3bc4158c81 make-snapshot: … 2025-07-17 08:52:18 +02:00
Johannes Meyer
63e153614d make-snapshot: Don't fail when composer.lock didn't change 2025-07-17 08:39:57 +02:00
Johannes Meyer
a3a9a0f9a8 bin/make-snapshot: Auto resolve composer.lock conflicts
dependabot seems to use an older composer version, causing
conflicts with the property `plugin-api-version`. Anyway,
the merge leading to the conflict is only done to make
a tag reachable. So the composer.lock of the main branch
is always the right choice.
2025-07-09 10:45:14 +02:00
dependabot[bot]
6c862b2ab8 build(deps): bump ramsey/uuid from 4.8.1 to 4.9.0
Bumps [ramsey/uuid](https://github.com/ramsey/uuid) from 4.8.1 to 4.9.0.
- [Release notes](https://github.com/ramsey/uuid/releases)
- [Changelog](https://github.com/ramsey/uuid/blob/4.x/CHANGELOG.md)
- [Commits](https://github.com/ramsey/uuid/compare/4.8.1...4.9.0)

---
updated-dependencies:
- dependency-name: ramsey/uuid
  dependency-version: 4.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-09 10:23:06 +02:00
Johannes Meyer
426e244015 depandabot: Optimize pull request handling 2025-07-09 10:20:13 +02:00
dependabot[bot]
a843109028 build(deps): bump shardj/zf1-future from 1.24.3 to 1.24.4
Bumps [shardj/zf1-future](https://github.com/Shardj/zf1-future) from 1.24.3 to 1.24.4.
- [Release notes](https://github.com/Shardj/zf1-future/releases)
- [Changelog](https://github.com/Shardj/zf1-future/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shardj/zf1-future/compare/release-1.24.3...release-1.24.4)

---
updated-dependencies:
- dependency-name: shardj/zf1-future
  dependency-version: 1.24.4
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-07-08 16:37:54 +02:00
Johannes Meyer
3a4ac0eae4 Add composer.lock from stable/0.13.0 2025-06-18 10:14:17 +02:00
Johannes Meyer
12de4298b3 Update README.md 2025-06-18 10:04:18 +02:00
Johannes Meyer
0105d75397 Require PHP 8.2 2025-06-18 10:04:18 +02:00
Johannes Meyer
17eacc0fa0 create-snapshot: Upgrade actions/checkout 2025-06-18 09:56:21 +02:00
dependabot[bot]
54f11ae3ed build(deps): bump clue/mq-react from 1.6.0 to 1.7.0
Bumps [clue/mq-react](https://github.com/clue/reactphp-mq) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/clue/reactphp-mq/releases)
- [Changelog](https://github.com/clue/reactphp-mq/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/clue/reactphp-mq/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: clue/mq-react
  dependency-version: 1.7.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-26 09:59:26 +02:00
dependabot[bot]
21f1fd0331 build(deps): bump predis/predis from 2.3.0 to 3.0.1
Bumps [predis/predis](https://github.com/predis/predis) from 2.3.0 to 3.0.1.
- [Release notes](https://github.com/predis/predis/releases)
- [Changelog](https://github.com/predis/predis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/predis/predis/compare/v2.3.0...v3.0.1)

---
updated-dependencies:
- dependency-name: predis/predis
  dependency-version: 3.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:14:07 +02:00
dependabot[bot]
48424f5a88 build(deps): bump guzzlehttp/guzzle from 7.9.2 to 7.9.3
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.9.2 to 7.9.3.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/7.9/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.9.2...7.9.3)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:02:04 +02:00
dependabot[bot]
60dc3cb74b build(deps): bump guzzlehttp/psr7 from 2.7.0 to 2.7.1
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/2.7/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.7.0...2.7.1)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:01:20 +02:00
dependabot[bot]
d7dec5a35c build(deps): bump shardj/zf1-future from 1.24.2 to 1.24.3
Bumps [shardj/zf1-future](https://github.com/Shardj/zf1-future) from 1.24.2 to 1.24.3.
- [Release notes](https://github.com/Shardj/zf1-future/releases)
- [Changelog](https://github.com/Shardj/zf1-future/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shardj/zf1-future/compare/release-1.24.2...release-1.24.3)

---
updated-dependencies:
- dependency-name: shardj/zf1-future
  dependency-version: 1.24.3
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-05-19 10:00:52 +02:00
Johannes Meyer
515540e633 bin/make-snapshot.sh: Merge latest stable again
While git describe isn't used anymore, something else
is and this still requires a reachable tag…

fixes #38
2025-03-26 11:43:44 +01:00
dependabot[bot]
818b63f028 build(deps): bump react/promise-stream from 1.6.0 to 1.7.0
Bumps [react/promise-stream](https://github.com/reactphp/promise-stream) from 1.6.0 to 1.7.0.
- [Release notes](https://github.com/reactphp/promise-stream/releases)
- [Changelog](https://github.com/reactphp/promise-stream/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/reactphp/promise-stream/compare/v1.6.0...v1.7.0)

---
updated-dependencies:
- dependency-name: react/promise-stream
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 11:04:38 +01:00
Johannes Meyer
3efc86e9bc dependabot: Raise check frequency 2025-03-17 09:45:39 +01:00
dependabot[bot]
a33308e27f build(deps): bump guzzlehttp/guzzle from 7.8.0 to 7.9.2
Bumps [guzzlehttp/guzzle](https://github.com/guzzle/guzzle) from 7.8.0 to 7.9.2.
- [Release notes](https://github.com/guzzle/guzzle/releases)
- [Changelog](https://github.com/guzzle/guzzle/blob/7.9/CHANGELOG.md)
- [Commits](https://github.com/guzzle/guzzle/compare/7.8.0...7.9.2)

---
updated-dependencies:
- dependency-name: guzzlehttp/guzzle
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 09:41:45 +01:00
dependabot[bot]
c614ddb31f build(deps): bump predis/predis from 2.2.2 to 2.3.0
Bumps [predis/predis](https://github.com/predis/predis) from 2.2.2 to 2.3.0.
- [Release notes](https://github.com/predis/predis/releases)
- [Changelog](https://github.com/predis/predis/blob/v2.x/CHANGELOG.md)
- [Commits](https://github.com/predis/predis/compare/v2.2.2...v2.3.0)

---
updated-dependencies:
- dependency-name: predis/predis
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 09:40:30 +01:00
dependabot[bot]
d2a9d65913 build(deps): bump components/jquery from 3.6.0 to 3.7.1
Bumps [components/jquery](https://github.com/components/jquery) from 3.6.0 to 3.7.1.
- [Release notes](https://github.com/components/jquery/releases)
- [Commits](https://github.com/components/jquery/compare/3.6.0...3.7.1)

---
updated-dependencies:
- dependency-name: components/jquery
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 09:36:35 +01:00
dependabot[bot]
83837dd07c build(deps): bump react/http from 1.9.0 to 1.11.0
Bumps [react/http](https://github.com/reactphp/http) from 1.9.0 to 1.11.0.
- [Release notes](https://github.com/reactphp/http/releases)
- [Changelog](https://github.com/reactphp/http/blob/v1.11.0/CHANGELOG.md)
- [Commits](https://github.com/reactphp/http/compare/v1.9.0...v1.11.0)

---
updated-dependencies:
- dependency-name: react/http
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 09:30:48 +01:00
dependabot[bot]
76f8bce8d2 build(deps): bump react/datagram from 1.9.0 to 1.10.0
Bumps [react/datagram](https://github.com/reactphp/datagram) from 1.9.0 to 1.10.0.
- [Release notes](https://github.com/reactphp/datagram/releases)
- [Changelog](https://github.com/reactphp/datagram/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/reactphp/datagram/compare/v1.9.0...v1.10.0)

---
updated-dependencies:
- dependency-name: react/datagram
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-17 09:27:33 +01:00
dependabot[bot]
3a9e74ef58 build(deps): bump clue/redis-react from 2.6.0 to 2.8.0
Bumps [clue/redis-react](https://github.com/clue/reactphp-redis) from 2.6.0 to 2.8.0.
- [Release notes](https://github.com/clue/reactphp-redis/releases)
- [Changelog](https://github.com/clue/reactphp-redis/blob/v2.8.0/CHANGELOG.md)
- [Commits](https://github.com/clue/reactphp-redis/compare/v2.6.0...v2.8.0)

---
updated-dependencies:
- dependency-name: clue/redis-react
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 09:33:47 +01:00
dependabot[bot]
2cb7b445bc build(deps): bump simshaun/recurr from 5.0.2 to 5.0.3
Bumps [simshaun/recurr](https://github.com/simshaun/recurr) from 5.0.2 to 5.0.3.
- [Commits](https://github.com/simshaun/recurr/compare/v5.0.2...v5.0.3)

---
updated-dependencies:
- dependency-name: simshaun/recurr
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 09:33:01 +01:00
dependabot[bot]
79c1847b87 build(deps): bump ezyang/htmlpurifier from 4.17.0 to 4.18.0
Bumps [ezyang/htmlpurifier](https://github.com/ezyang/htmlpurifier) from 4.17.0 to 4.18.0.
- [Release notes](https://github.com/ezyang/htmlpurifier/releases)
- [Changelog](https://github.com/ezyang/htmlpurifier/blob/master/NEWS)
- [Commits](https://github.com/ezyang/htmlpurifier/compare/v4.17.0...v4.18.0)

---
updated-dependencies:
- dependency-name: ezyang/htmlpurifier
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 09:32:20 +01:00
dependabot[bot]
048c339cc9 build(deps): bump react/child-process from 0.6.5 to 0.6.6
Bumps [react/child-process](https://github.com/reactphp/child-process) from 0.6.5 to 0.6.6.
- [Release notes](https://github.com/reactphp/child-process/releases)
- [Changelog](https://github.com/reactphp/child-process/blob/v0.6.6/CHANGELOG.md)
- [Commits](https://github.com/reactphp/child-process/compare/v0.6.5...v0.6.6)

---
updated-dependencies:
- dependency-name: react/child-process
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 09:30:45 +01:00
dependabot[bot]
8b455aa764 build(deps): bump dragonmantank/cron-expression from 3.3.3 to 3.4.0
Bumps [dragonmantank/cron-expression](https://github.com/dragonmantank/cron-expression) from 3.3.3 to 3.4.0.
- [Release notes](https://github.com/dragonmantank/cron-expression/releases)
- [Changelog](https://github.com/dragonmantank/cron-expression/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dragonmantank/cron-expression/compare/v3.3.3...v3.4.0)

---
updated-dependencies:
- dependency-name: dragonmantank/cron-expression
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-10 09:28:54 +01:00
Johannes Meyer
16df93679e composer.json: Run AssetLoader on post-install-cmd
`post-update-cmd` only runs in case of install if
there is no lock file present.
2025-03-07 14:12:39 +01:00
Johannes Meyer
6ba9c56b2c bin/make-snapshot: Do not merge latest stable
It's not required, since git describe is not used
for snapshot package versioning anymore.
2025-03-07 11:44:40 +01:00
Johannes Meyer
e509effd2f bin/make-release: Don't delete composer.lock
Dependencies are kept up2date by dependabot now.
2025-03-06 16:12:06 +01:00
dependabot[bot]
a46ad9ca72 build(deps): bump dompdf/dompdf from 2.0.3 to 3.1.0
Bumps [dompdf/dompdf](https://github.com/dompdf/dompdf) from 2.0.3 to 3.1.0.
- [Release notes](https://github.com/dompdf/dompdf/releases)
- [Commits](https://github.com/dompdf/dompdf/compare/v2.0.3...v3.1.0)

---
updated-dependencies:
- dependency-name: dompdf/dompdf
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 16:06:03 +01:00
dependabot[bot]
b79a796867 build(deps): bump shardj/zf1-future from 1.23.5 to 1.24.2
Bumps [shardj/zf1-future](https://github.com/Shardj/zf1-future) from 1.23.5 to 1.24.2.
- [Release notes](https://github.com/Shardj/zf1-future/releases)
- [Changelog](https://github.com/Shardj/zf1-future/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Shardj/zf1-future/compare/release-1.23.5...release-1.24.2)

---
updated-dependencies:
- dependency-name: shardj/zf1-future
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 16:01:40 +01:00
dependabot[bot]
f5ec92fb63 build(deps): bump guzzlehttp/psr7 from 2.6.1 to 2.7.0
Bumps [guzzlehttp/psr7](https://github.com/guzzle/psr7) from 2.6.1 to 2.7.0.
- [Release notes](https://github.com/guzzle/psr7/releases)
- [Changelog](https://github.com/guzzle/psr7/blob/2.7/CHANGELOG.md)
- [Commits](https://github.com/guzzle/psr7/compare/2.6.1...2.7.0)

---
updated-dependencies:
- dependency-name: guzzlehttp/psr7
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 16:00:25 +01:00
dependabot[bot]
a737bf6c14 build(deps): bump clue/http-proxy-react from 1.8.0 to 1.9.0
Bumps [clue/http-proxy-react](https://github.com/clue/reactphp-http-proxy) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/clue/reactphp-http-proxy/releases)
- [Changelog](https://github.com/clue/reactphp-http-proxy/blob/1.x/CHANGELOG.md)
- [Commits](https://github.com/clue/reactphp-http-proxy/compare/v1.8.0...v1.9.0)

---
updated-dependencies:
- dependency-name: clue/http-proxy-react
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 15:59:44 +01:00
dependabot[bot]
d6ba1c49b5 build(deps): bump phenx/php-svg-lib from 0.5.0 to 0.5.4
Bumps [phenx/php-svg-lib](https://github.com/dompdf/php-svg-lib) from 0.5.0 to 0.5.4.
- [Release notes](https://github.com/dompdf/php-svg-lib/releases)
- [Commits](https://github.com/dompdf/php-svg-lib/compare/0.5.0...0.5.4)

---
updated-dependencies:
- dependency-name: phenx/php-svg-lib
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-03-06 15:58:44 +01:00
Johannes Meyer
bd24853dbb Add dependabot config 2025-03-06 15:39:15 +01:00
Johannes Meyer
445fef27e5 Add composer.lock from stable/0.12.1 2025-03-06 15:36:19 +01:00
Johannes Meyer
4230555a1e d3: Use our own require implementation 2025-03-03 16:33:51 +01:00
Johannes Meyer
eae38fcabf js: Add d3.js in v7 2025-03-03 16:33:07 +01:00
Johannes Meyer
f70b33a8ab composer.json: Add ipl-scheduler requirements 2023-10-20 11:00:21 +02:00
raviks789
852798998b patches/shardj-zf1-future: Add fix for Zend_Form_Element::getValue() 2023-10-04 13:54:12 +02:00
raviks789
44cd0d4612 shardj/zf1-future: update version to avoid broken Sendmail transport 2023-09-06 16:11:57 +02:00
raviks789
891534ddf5 Add patch for backward compatibility in shardj/zf1-future
`Zend_Form_Element::_filterValue()` method signature has been changed in shardj/zf1-future and hence a patch has been
added for the backward compatibility with zend framework
2023-08-31 10:44:51 +02:00
Yonas Habteab
effa84a827 Apply patches only on AbstractArray class 2023-07-27 09:45:37 +02:00
Yonas Habteab
14a5202063 Add ramsey/collection PHP 8.1 support patch 2023-07-27 08:33:44 +02:00
Johannes Meyer
1ac4ad5e6c .gitignore: Don't ignore the vendor directory... 2023-07-20 11:06:11 +02:00
raviks789
2e6cbc7590
Add vendor libs from Icinga Web and support PHP 8.2 (#11) 2023-07-17 10:24:53 +02:00
raviks789
257d966dd9 Register the whole vendor without filtering
Currently all files except files with .php extension are excluded from being staged in make-release.sh.
This result in excluding certain required files. Hence, now the entire vendor file will be registered.
2023-07-17 10:20:20 +02:00
Eric Lippmann
a8635b8871
export-ignore: Fix typo 2023-01-24 15:18:33 +01:00
Eric Lippmann
231b334b37
Merge pull request #8 from Icinga/UpdateCheckoutAction
Update Checkout Action to v3
2023-01-10 09:58:08 +01:00
Timm Ortloff
f99236d0df CI: Update Checkout Action to v3 2023-01-09 12:59:56 +01:00
Johannes Meyer
5e93bacc09 Remove ramsey/UUID patch 2023-01-09 09:26:07 +01:00
Eric Lippmann
126e5a1c67 Export ignore
Remove Git-related files, `bin/` and `RELEASE.md` from archives.
2022-12-12 13:57:20 +01:00
Johannes Meyer
d63a12ba2c Raise version to 0.11.0 2022-06-15 14:49:43 +02:00
Johannes Meyer
2b056ffa5b
Merge pull request #4 from Icinga/fix/php-81-support
PHP 8.1 support
2022-06-14 14:13:39 +02:00
Johannes Meyer
ba3e373a37 Require evenement/evenement in version 3.x 2022-06-14 14:05:29 +02:00
Yonas Habteab
b4c80ae765 Add PHP 8.1 support for ramsey/uuid in version 3.x 2022-06-14 14:05:29 +02:00
Yonas Habteab
4f88584110 Require cweagans/composer-patches to automatically apply module patches 2022-06-14 14:05:29 +02:00
Johannes Meyer
2886a4ca17 Require PHP 7.2 to 8.1 2022-06-14 14:05:29 +02:00
Johannes Meyer
4dec24543a make-release.sh: Register new and updated assets 2022-06-14 14:04:49 +02:00
Johannes Meyer
14ab15bb1b Add jquery 2022-06-14 13:41:31 +02:00
Johannes Meyer
660609dafa
Merge pull request #2 from Icinga/add-php-diff-lib
Add php diff lib
2021-12-17 13:07:52 +01:00
Johannes Meyer
47c28a9e86 README.md: Update min PHP requirement 2021-12-15 15:53:23 +01:00
Johannes Meyer
2457a6214f Add style in LESS format for jfcherng/php-diff 2021-12-15 15:52:10 +01:00
Johannes Meyer
93673399f6 Require jfcherng/php-diff and raise min PHP requirement to 7.1 2021-12-15 15:49:57 +01:00
Tobias Leich
93546dd493 Escape newline in shell code 2021-11-29 15:59:51 +01:00
Johannes Meyer
d151822348 Add create-snapshot workflow 2021-07-20 10:50:05 +02:00
Johannes Meyer
bff933320a Add bin/make-snapshot.sh 2021-07-20 10:48:03 +02:00
Johannes Meyer
2a83df30a7 make-release.sh: Add support for --no-checkout 2021-07-20 10:44:01 +02:00
Johannes Meyer
86924957f4 README.md: Use a real version in the examples 2021-06-24 12:45:05 +02:00
17 changed files with 25472 additions and 52 deletions

3
.gitattributes vendored Normal file
View File

@ -0,0 +1,3 @@
.git* export-ignore
bin/ export-ignore
RELEASE.md export-ignore

11
.github/dependabot.yml vendored Normal file
View File

@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "composer"
directory: "/"
open-pull-requests-limit: 20 # Roughly half the number of dependencies
groups:
composer:
update-types:
- "patch"
schedule:
interval: "daily"

39
.github/workflows/create-snapshot.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Create Snapshot
on:
schedule:
# Every day at 4pm
- cron: "0 16 * * *"
workflow_dispatch:
jobs:
make-snapshot:
name: Make a nightly snapshot
runs-on: ubuntu-latest
if: github.repository == 'Icinga/icinga-php-thirdparty'
steps:
- name: Checkout code base
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Prepare Git environment
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
echo '{"github-oauth": {"github.com": "${{ secrets.ICINGABOT_TOKEN }}"}}' > auth.json
echo 'auth.json' >> .gitignore
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
- name: Create snapshot/nightly
if: success()
run: bin/make-snapshot.sh snapshot/nightly
- name: Push snapshot/nightly
if: success()
run: git push -f origin snapshot/nightly

1
.gitignore vendored
View File

@ -1,3 +1,2 @@
/vendor/
/.idea/
.*.sw[op]

14
AssetLoader.php Normal file
View File

@ -0,0 +1,14 @@
<?php
class AssetLoader
{
public static function update(Composer\Script\Event $event)
{
if (! is_dir('asset/js/jquery')) {
mkdir('asset/js/jquery', 0775, true);
}
copy('vendor/components/jquery/jquery.js', 'asset/js/jquery/jquery.js');
copy('vendor/components/jquery/jquery.min.js', 'asset/js/jquery/jquery.min.js');
}
}

View File

@ -6,7 +6,7 @@ which can be integrated as library into Icinga Web 2.
## Requirements
* [Icinga Web 2](https://github.com/Icinga/icingaweb2) (>= 2.9)
* PHP (>= 5.6, 7+ recommended)
* PHP (>= 8.2)
## Installation
@ -16,7 +16,7 @@ path for Icinga Web 2 installations is: `/usr/share/icinga-php`
Download or clone this repository there (e.g. `/usr/share/icinga-php/vendor`) and you're done.
> **Note**: Do NOT install the GIT master, it will not work! Checking out a
> branch like `stable/1.0.0` or a tag like `v1.0.0` is fine.
> branch like `stable/0.13.0` or a tag like `v0.13.0` is fine.
### Examples
@ -24,8 +24,8 @@ Download or clone this repository there (e.g. `/usr/share/icinga-php/vendor`) an
```sh
INSTALL_PATH="/usr/share/icinga-php/vendor"
INSTALL_VERSION="v1.0.0"
mkdir "$INSTALL_PATH"
INSTALL_VERSION="v0.13.0"
mkdir "$INSTALL_PATH" \
&& wget -q "https://github.com/Icinga/icinga-php-thirdparty/archive/$INSTALL_VERSION.tar.gz" -O - \
| tar xfz - -C "$INSTALL_PATH" --strip-components 1
```
@ -34,6 +34,6 @@ mkdir "$INSTALL_PATH"
```
INSTALL_PATH="/usr/share/icinga-php/vendor"
INSTALL_VERSION="stable/1.0.0"
INSTALL_VERSION="stable/0.13.0"
git clone https://github.com/Icinga/icinga-php-thirdparty.git "$INSTALL_PATH" --branch "$INSTALL_VERSION"
```

View File

@ -8,4 +8,4 @@ e.g.
## Docker Example
docker run -it -v $(pwd):/tmp/pwd -w /tmp/pwd -v $(realpath ~/.gitconfig):/tmp/user/.gitconfig -e "HOME=/tmp/user" -u $(id -u):$(id -g) dev-docker_web56 bin/make-release.sh 1.0.0 --no-tag
docker run -it -v $(pwd):/tmp/pwd -w /tmp/pwd -v $(realpath ~/.gitconfig):/tmp/user/.gitconfig -e "HOME=/tmp/user" -u $(id -u):$(id -g) dev-docker_web82 bin/make-release.sh 1.0.0 --no-tag

185
asset/css/vendor/diff-table.less vendored Normal file
View File

@ -0,0 +1,185 @@
/**
* This is based on https://github.com/jfcherng/php-diff/blob/6.10.2/example/diff-table.scss
*
* It's been converted by performing these steps:
* - npm install less-plugin-sass2less --save-dev
* - ./node_modules/.bin/sass2less -c /usr/share/icinga-php/vendor/vendor/jfcherng/php-diff/example \
* diff-table.scss > /usr/share/icinga-php/vendor/asset/css/vendor/diff-table.less
* - `@diff-text-color: invert(@diff-bg-color)` though had to be changed to `@diff-text-color: black`.
* (`@diff-text-color: spin(@diff-bg-color, 180)` didn't work)
*/
@diff-bg-color: #fff;
@diff-text-color: black;
@diff-bg-color-ins-base: #8e8;
@diff-bg-color-del-base: #e88;
@diff-bg-color-rep-base: #fbdb65;
@diff-op-highlight-ratio: 90%;
@diff-op-normal-ratio: 25%;
// emphasized colors for detailed inline difference
@diff-bg-color-ins-highlight: mix(@diff-bg-color-ins-base, @diff-bg-color, @diff-op-highlight-ratio);
@diff-bg-color-del-highlight: mix(@diff-bg-color-del-base, @diff-bg-color, @diff-op-highlight-ratio);
// colors for operation rows
@diff-bg-color-ins: mix(@diff-bg-color-ins-base, @diff-bg-color, @diff-op-normal-ratio);
@diff-bg-color-del: mix(@diff-bg-color-del-base, @diff-bg-color, @diff-op-normal-ratio);
@diff-bg-color-rep: mix(@diff-bg-color-rep-base, @diff-bg-color, @diff-op-normal-ratio);
@diff-table-head-color: mix(@diff-bg-color, @diff-text-color, 65%);
@diff-table-sidebar-color: mix(@diff-bg-color, @diff-text-color, 80%);
@diff-border-color: @diff-text-color;
// color for the nonexistent block
// for example, there are a deleted line that has no corresponding one
@diff-bg-color-none-block: mix(@diff-bg-color, @diff-table-sidebar-color, 80%);
@diff-bg-color-none-block-alternative: mix(@diff-bg-color, @diff-table-sidebar-color, 55%);
.diff-wrapper.diff {
background: repeating-linear-gradient(
-45deg,
@diff-bg-color-none-block,
@diff-bg-color-none-block 0.5em,
@diff-bg-color-none-block-alternative 0.5em,
@diff-bg-color-none-block-alternative 1em
);
border-collapse: collapse;
border-spacing: 0;
border: 1px solid @diff-border-color;
color: @diff-text-color;
empty-cells: show;
font-family: monospace;
font-size: 13px;
width: 100%;
word-break: break-all;
th {
font-weight: 700;
}
td {
vertical-align: baseline;
}
td,
th {
border-collapse: separate;
border: none;
padding: 1px 2px;
background: @diff-bg-color;
// make empty cell has height
&:empty:after {
content: " ";
visibility: hidden;
}
a {
color: #000;
cursor: inherit;
pointer-events: none;
}
}
thead th {
background: @diff-table-head-color;
border-bottom: 1px solid @diff-border-color;
padding: 4px;
text-align: left;
}
tbody {
&.skipped {
border-top: 1px solid @diff-border-color;
td,
th {
display: none;
}
}
th {
background: @diff-table-sidebar-color;
border-right: 1px solid @diff-border-color;
text-align: right;
vertical-align: top;
width: 4em;
&.sign {
background: @diff-bg-color;
border-right: none;
padding: 1px 0;
text-align: center;
width: 1em;
&.del {
background: @diff-bg-color-del;
}
&.ins {
background: @diff-bg-color-ins;
}
}
}
}
&.diff-html {
white-space: pre-wrap;
&.diff-combined {
.change.change-rep {
.rep {
// fixes https://github.com/jfcherng/php-diff/issues/34#issuecomment-671404456
white-space: normal;
}
}
}
.change {
&.change-eq {
.old,
.new {
background: @diff-bg-color;
}
}
.old {
background: @diff-bg-color-del;
}
.new {
background: @diff-bg-color-ins;
}
.rep {
background: @diff-bg-color-rep;
}
.old,
.new,
.rep {
&.none {
background: transparent;
cursor: not-allowed;
}
}
ins,
del {
font-weight: bold;
text-decoration: none;
}
ins {
background: @diff-bg-color-ins-highlight;
}
del {
background: @diff-bg-color-del-highlight;
}
}
}
}

13
asset/js/mbostock/LICENSE Normal file
View File

@ -0,0 +1,13 @@
Copyright 2010-2023 Mike Bostock
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
THIS SOFTWARE.

20625
asset/js/mbostock/d3.js vendored Normal file

File diff suppressed because it is too large Load Diff

2
asset/js/mbostock/d3.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,10 @@
#!/bin/bash
VERSION="$1"
NO_TAG="$2"
NO_OPT="$2"
if [[ -z $VERSION ]]; then
echo "USAGE: $0 <version>"
echo "USAGE: $0 <version> [--no-tag|--no-checkout]"
echo " e.g.: $0 0.1.0"
exit 1
fi
@ -23,30 +23,25 @@ if [[ "$TAG" -ne "0" ]]; then
exit 1
fi
BRANCH="stable/$VERSION"
git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
if [ "$NO_OPT" != "--no-checkout" ]; then
BRANCH="stable/$VERSION"
git checkout -b "$BRANCH" || fail "Version branch $BRANCH already exists"
else
BRANCH=$(git rev-parse --abbrev-ref HEAD)
fi
git rm -rf vendor
rm -rf vendor
rm -f composer.lock
composer install || fail "composer install failed"
find vendor/ -type f -name "*.php" \
| grep -v '/examples/' \
| grep -v '/example/' \
| grep -v '/tests/' \
| grep -v '/test/' \
| xargs -L1 git add -f
find vendor/ -type f -name LICENSE | xargs -L1 git add -f
find vendor/ -type f -name '*.json' | xargs -L1 git add -f
git add vendor
find asset/ -type f | xargs -L1 git add -f
echo "v$VERSION" > VERSION
git add VERSION
git add composer.lock -f
git commit -m "Version v$VERSION"
rm -rf vendor
git checkout vendor
composer validate --no-check-all --strict || fail "Composer validate failed"
if [ "$NO_TAG" != "--no-tag" ]; then
if [ -z "$NO_OPT" ]; then
git tag -a v$VERSION -m "Version v$VERSION"
echo "Finished, tagged v$VERSION"
echo "Now please run:"

28
bin/make-snapshot.sh Executable file
View File

@ -0,0 +1,28 @@
#!/bin/bash
set -xe
BRANCH="$1"
if [ -z $BRANCH ]; then
echo "USAGE: $0 <branch>"
echo " e.g.: $0 snapshot/nightly"
exit 1
fi
LATEST_TAG=$(git for-each-ref refs/tags --sort=-taggerdate --format='%(refname)' --count=1 | awk -F/ '{print $3}')
NEXT_VERSION=$(echo "${LATEST_TAG:1}" | awk -F. -v OFS=. '{$3=0}; {++$2}; {print}')
if [[ -n $(git branch | grep $BRANCH) ]]; then
git branch -D $BRANCH
fi
git checkout -b $BRANCH
git mv composer.lock composer.lock.bak
git commit -am "Backup composer.lock"
git merge --no-ff -m "Merge latest tag, package pipelines require it" $LATEST_TAG || (git checkout --ours composer.lock.bak && git add composer.lock.bak && git commit --no-edit)
git mv -f composer.lock.bak composer.lock
git commit -am "Restore composer.lock" || true # in case composer.lock was not modified
bin/make-release.sh "$NEXT_VERSION-dev" --no-checkout

View File

@ -6,42 +6,73 @@
"license": "MIT",
"config": {
"sort-packages": true,
"platform": {
"php": "5.6.3"
"allow-plugins": {
"cweagans/composer-patches": true
}
},
"support": {
"issues": "https://github.com/Icinga/icinga-php-thirdparty/issues"
},
"require": {
"php": ">=5.6.3",
"php": ">=8.2",
"ext-curl": "*",
"clue/block-react": "^1",
"clue/connection-manager-extra": "^1",
"clue/http-proxy-react": "^1",
"clue/mq-react": "^1",
"clue/redis-react": "^2",
"clue/soap-react": "^1",
"clue/socket-raw": "^1",
"clue/socks-react": "^1",
"clue/stdio-react": "^2",
"evenement/evenement": "^2",
"predis/predis": "^1",
"psr/http-message": "^1",
"ramsey/uuid": "^3",
"react/child-process": "^0.6",
"react/datagram": "^1",
"react/dns": "^1",
"react/event-loop": "^1",
"react/http": "^1",
"react/promise": "^2",
"react/promise-stream": "^1",
"react/promise-timer": "^1",
"react/socket": "^1",
"react/stream": "^1",
"guzzlehttp/psr7": "^1",
"guzzlehttp/guzzle": "^6.5"
"clue/block-react": "^1.5",
"clue/connection-manager-extra": "^1.3",
"clue/http-proxy-react": "^1.8",
"clue/mq-react": "^1.5",
"clue/redis-react": "^2.6",
"clue/soap-react": "^2",
"clue/socket-raw": "^1.6",
"clue/socks-react": "^1.4",
"clue/stdio-react": "^2.6",
"components/jquery": "3.7.*",
"cweagans/composer-patches": "~1.0",
"dompdf/dompdf": "^3.1.0",
"erusev/parsedown": "^1.7.4",
"evenement/evenement": "^3.0.1",
"ezyang/htmlpurifier": "^4.16",
"guzzlehttp/guzzle": "^7.7",
"guzzlehttp/psr7": "^2.5",
"jfcherng/php-diff": "^6.10.14",
"predis/predis": "^3.0",
"psr/http-message": "^1.1",
"ramsey/uuid": "^4.2.3",
"react/child-process": "^0.6.5",
"react/datagram": "^1.9",
"react/dns": "^1.11",
"react/event-loop": "^1.4",
"react/http": "^1.9",
"react/promise": "^2.10",
"react/promise-stream": "^1.6",
"react/promise-timer": "^1.9",
"react/socket": "^1.13",
"react/stream": "^1.3",
"shardj/zf1-future": "^1.23.5",
"tedivm/jshrink": "^1.6.8",
"wikimedia/less.php": "^3.2.1",
"simshaun/recurr": "^5",
"dragonmantank/cron-expression": "^3",
"psr/log": "^1"
},
"require-dev": {
},
"autoload": {
"psr-0": { "AssetLoader": "" }
},
"scripts": {
"post-install-cmd": [
"AssetLoader::update"
],
"post-update-cmd": [
"AssetLoader::update"
]
},
"extra": {
"composer-exit-on-patch-failure": true,
"patches": {
"shardj/zf1-future": {
"ZF1-Future: ZF backward compatibility": "patches/shardj-zf1-future.patch"
}
}
}
}

4416
composer.lock generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,37 @@
--- a/vendor/ramsey/collection/src/AbstractArray.php
+++ b/vendor/ramsey/collection/src/AbstractArray.php
@@ -84,6 +84,7 @@ abstract class AbstractArray implements ArrayInterface
* @return T|null the value stored at the offset, or null if the offset
* does not exist.
*/
+ #[\ReturnTypeWillChange]
public function offsetGet($offset)
{
return $this->data[$offset] ?? null;
@@ -132,6 +133,11 @@ abstract class AbstractArray implements ArrayInterface
return serialize($this->data);
}
+ public function __serialize()
+ {
+ return $this->serialize();
+ }
+
/**
* Converts a serialized string representation into an instance object.
*
@@ -149,6 +155,11 @@ abstract class AbstractArray implements ArrayInterface
$this->data = $data;
}
+ public function __unserialize(array $data)
+ {
+ $this->unserialize($data);
+ }
+
/**
* Returns the number of items in this array.
*
--
2.41.0

View File

@ -0,0 +1,22 @@
--- a/vendor/shardj/zf1-future/library/Zend/Form/Element.php
+++ b/vendor/shardj/zf1-future/library/Zend/Form/Element.php
@@ -595,7 +595,7 @@ class Zend_Form_Element implements Zend_Validate_Interface
* @param string $key
* @return void
*/
- protected function _filterValue(&$value, $key)
+ protected function _filterValue(&$value, &$key)
{
foreach ($this->getFilters() as $filter) {
$value = $filter->filter($value);
@@ -612,7 +612,9 @@ class Zend_Form_Element implements Zend_Validate_Interface
$valueFiltered = $this->_value;
if ($this->isArray() && is_array($valueFiltered)) {
- array_walk_recursive($valueFiltered, [$this, '_filterValue']);
+ array_walk_recursive($valueFiltered, function (&$val, $key) {
+ $this->_filterValue($val, $key);
+ });
} else {
$this->_filterValue($valueFiltered, $valueFiltered);
}