Commit Graph

82 Commits

Author SHA1 Message Date
dependabot[bot]
f9444a14d0
Bump symfony/http-kernel from 5.3.9 to 5.4.0 (#13585)
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 5.3.9 to 5.4.0.
- [Release notes](https://github.com/symfony/http-kernel/releases)
- [Changelog](https://github.com/symfony/http-kernel/blob/5.4/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-kernel/compare/v5.3.9...v5.4.0)

---
updated-dependencies:
- dependency-name: symfony/http-kernel
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-11-30 10:16:59 +01:00
Jellyfrog
29bdfe40a3
Use phpstan-deprecation-rules instead (#13582)
* Replace deprecated functions

* Use phpstan-deprecation-rules instead
2021-11-30 09:33:14 +01:00
Jellyfrog
307313f7df
Update to Larastan 1.0 (#13466) 2021-11-02 19:43:14 +01:00
Tony Murray
5900edbf16
PHP-Flasher for toast messages (#13401)
* PHP-Flasher for toast messages
Allows customized template
removes dependency on unmaintained package using dev stability
no solution for javascript toasts yet

Use DI in places it makes sense

allow html in flashes

Use "template.librenms" as a default notification style

merge toast containers
toastr needs to be second because it will find the containr made by flasher, but the inverse is not true

upgrade php-flasher to add custom options and persistent notifications

Add dark theme

* update composer.lock
2021-10-29 09:13:56 -05:00
Tony Murray
4663bf0494
barryvdh/laravel-debugbar (v3.6.2 => v3.6.3) (#13396)
doctrine/dbal (2.13.3 => 2.13.4)
facade/ignition (2.14.0 => 2.15.0)
filp/whoops (2.14.3 => 2.14.4)
graham-campbell/result-type (v1.0.2 => v1.0.3)
guzzlehttp/guzzle (7.3.0 => 7.4.0)
guzzlehttp/promises (1.4.1 => 1.5.0)
guzzlehttp/psr7 (2.0.0 => 2.1.0)
laravel/dusk (v6.18.1 => v6.19.2)
laravel/framework (v8.62.0 => v8.65.0)
laravel/serializable-closure (v1.0.2 => v1.0.3)
maximebf/debugbar (v1.17.1 => v1.17.2)
nunomaduro/larastan (v0.7.12 => v0.7.13)
php-webdriver/webdriver (1.11.1 => 1.12.0)
phpdocumentor/reflection-docblock (5.2.2 => 5.3.0)
phpdocumentor/type-resolver (1.5.0 => 1.5.1)
predis/predis (v1.1.8 => v1.1.9)
psy/psysh (v0.10.8 => v0.10.9)
ramsey/collection (1.2.1 => 1.2.2)
swiftmailer/swiftmailer (v6.2.7 => v6.3.0)
vlucas/phpdotenv (v5.3.0 => v5.3.1)
2021-10-20 21:24:44 -05:00
Tony Murray
0b8b97bb68
Push Notifications (Mobile and PC) (#13277)
* Update manifest and add service worker
cleanup icons a bit

* Push notifications WIP

* navigate working

* cleanup

* acknowledge wired up

* Set VAPID keys on composer install

* Component to control notification permissions.

* Allow all user option to validate

* Enable on browser load if transport exists.

* Check for transport before showing user permissions
translations

* Documentation

* style fixes

* access via the attribute model

* fix alerting test

* update schema

* cleanup subscription on disable

* non-configurable db and table for webpush subscriptions (respect system connection)

* revert AlertTransport change
hopefully phpstan can figure it out

* phpstan fixes

* Support custom details display

* Match transport names to brand's preferred display

* less duplicate id errors

* Tests are done in Laravel code now so
remove legacy function usage... could be better, but ok

* Style fixes

* Style fixes 2

* Fix alert test

* Doc updates requires HTTPS and GMP

* unregister subscription when permission is set to denied

* cleanup after user deletion

* delete the right thing

* fix whitespace

* update install docs to include php-gmp

* suggest ext-gmp

* update javascript

* Update functions.php

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-10-06 07:29:47 -05:00
dependabot[bot]
83f847d92d
Bump composer/composer from 2.1.8 to 2.1.9 (#13336)
Bumps [composer/composer](https://github.com/composer/composer) from 2.1.8 to 2.1.9.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.1.8...2.1.9)

---
updated-dependencies:
- dependency-name: composer/composer
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-05 23:06:44 +02:00
Tony Murray
d443d2b4b1
Use built in trusted proxy functionality (#13318)
* Use built in trusted proxy functionality
instead of fideloper/proxy

* my favorite style rule...

* hello braindead ide

* restore space
2021-10-03 14:13:20 -05:00
Tony Murray
d022bd11c6
Restore trusted proxy package (#13317) 2021-10-03 09:56:58 -05:00
Jellyfrog
9ef94323f5
Update dependencies (#13310)
* Bump composer dependencies

  - Upgrading brick/math (0.9.2 => 0.9.3)
  - Upgrading composer/ca-bundle (1.2.10 => 1.2.11)
  - Upgrading composer/composer (2.1.3 => 2.1.8)
  - Upgrading composer/xdebug-handler (2.0.1 => 2.0.2)
  - Upgrading dapphp/radius (2.5.5 => 2.5.6)
  - Upgrading doctrine/annotations (1.13.1 => 1.13.2)
  - Upgrading doctrine/cache (2.0.3 => 2.1.1)
  - Upgrading doctrine/dbal (2.13.2 => 2.13.3)
  - Upgrading facade/flare-client-php (1.8.1 => 1.9.1)
  - Upgrading facade/ignition (2.11.0 => 2.14.0)
  - Upgrading fakerphp/faker (v1.15.0 => v1.16.0)
  - Upgrading filp/whoops (2.13.0 => 2.14.3)
  - Upgrading friendsofphp/php-cs-fixer (v2.19.0 => v2.19.2)
  - Upgrading graham-campbell/result-type (v1.0.1 => v1.0.2)
  - Upgrading laravel/dusk (v6.15.1 => v6.18.1)
  - Upgrading laravel/framework (v8.49.2 => v8.62.0)
  - Locking laravel/serializable-closure (v1.0.2)
  - Upgrading laravel/tinker (v2.6.1 => v2.6.2)
  - Upgrading league/commonmark (1.6.5 => 1.6.6)
  - Upgrading league/flysystem (1.1.4 => 1.1.5)
  - Upgrading league/mime-type-detection (1.7.0 => 1.8.0)
  - Upgrading maximebf/debugbar (v1.16.5 => v1.17.1)
  - Upgrading mockery/mockery (1.4.3 => 1.4.4)
  - Upgrading monolog/monolog (2.3.0 => 2.3.4)
  - Upgrading nesbot/carbon (2.50.0 => 2.53.1)
  - Upgrading nikic/php-parser (v4.11.0 => v4.13.0)
  - Upgrading nunomaduro/collision (v5.5.0 => v5.10.0)
  - Upgrading phar-io/manifest (2.0.1 => 2.0.3)
  - Upgrading php-parallel-lint/php-parallel-lint (v1.3.0 => v1.3.1)
  - Upgrading phpdocumentor/type-resolver (1.4.0 => 1.5.0)
  - Upgrading phpmailer/phpmailer (v6.5.0 => v6.5.1)
  - Upgrading phpoption/phpoption (1.7.5 => 1.8.0)
  - Upgrading phpseclib/phpseclib (3.0.9 => 3.0.10)
  - Upgrading phpspec/prophecy (1.13.0 => 1.14.0)
  - Upgrading phpstan/phpstan (0.12.92 => 0.12.99)
  - Upgrading phpunit/php-code-coverage (9.2.6 => 9.2.7)
  - Upgrading phpunit/phpunit (9.5.6 => 9.5.10)
  - Upgrading predis/predis (v1.1.7 => v1.1.8)
  - Upgrading ramsey/collection (1.1.3 => 1.2.1)
  - Upgrading ramsey/uuid (4.1.1 => 4.2.3)
  - Upgrading seld/phar-utils (1.1.1 => 1.1.2)
  - Upgrading symfony/console (v5.3.2 => v5.3.7)
  - Upgrading symfony/css-selector (v5.3.0 => v5.3.4)
  - Upgrading symfony/debug (v4.4.25 => v4.4.31)
  - Upgrading symfony/error-handler (v5.3.3 => v5.3.7)
  - Upgrading symfony/event-dispatcher (v5.3.0 => v5.3.7)
  - Upgrading symfony/filesystem (v5.3.3 => v5.3.4)
  - Upgrading symfony/finder (v5.3.0 => v5.3.7)
  - Upgrading symfony/http-foundation (v5.3.3 => v5.3.7)
  - Upgrading symfony/http-kernel (v5.3.3 => v5.3.9)
  - Upgrading symfony/mime (v5.3.2 => v5.3.8)
  - Upgrading symfony/options-resolver (v5.3.0 => v5.3.7)
  - Upgrading symfony/polyfill-intl-grapheme (v1.23.0 => v1.23.1)
  - Upgrading symfony/polyfill-mbstring (v1.23.0 => v1.23.1)
  - Upgrading symfony/polyfill-php80 (v1.23.0 => v1.23.1)
  - Locking symfony/polyfill-php81 (v1.23.0)
  - Upgrading symfony/process (v5.3.2 => v5.3.7)
  - Upgrading symfony/routing (v5.3.0 => v5.3.7)
  - Upgrading symfony/stopwatch (v5.3.0 => v5.3.4)
  - Upgrading symfony/string (v5.3.3 => v5.3.7)
  - Upgrading symfony/translation (v5.3.3 => v5.3.9)
  - Upgrading symfony/var-dumper (v5.3.3 => v5.3.8)
  - Upgrading symfony/yaml (v4.4.26 => v4.4.29)
  - Upgrading tecnickcom/tcpdf (6.4.1 => 6.4.2)
  - Upgrading theseer/tokenizer (1.2.0 => 1.2.1)

* Update npm dependecies

* Update phpstan ignores after laravel upgrades

* Merge laravel/laravel repo changes
2021-10-02 18:04:59 -05:00
Jellyfrog
be3d3d171d
Lint: Disallow usage of deprecated functions (#13267) 2021-09-23 21:27:14 +02:00
Tony Murray
e2d1bfff54
lnms config:set ability to set os settings (#13151)
* lnms config:set works for os settings
validate against os schema (gives us path and value validation)
fix unset in config:set
json formatted output in config:get to match input parsing

* inline errors

* Check that OS exists

* Fix lock file

* Set param type

* correct method name, it no longer returns a boolean

* rename --json to --dump
tests and fixes

* fix whitespace

* missed one whitespace

* typehints

* add connection typehint

* try again
2021-08-19 18:34:19 -05:00
Jellyfrog
39eea7bdc7
Remove links to freenode (#13101)
* Remove links to freenode

* Add funding links

* Sort composer
2021-08-05 10:33:23 -05:00
Jellyfrog
e873768845
Bump larastan (#13071)
* Bump larastan

* Use php7.4 for lint test
2021-07-26 09:00:34 -05:00
Tony Murray
4f7c7b3f2a
PHP dependencies update (#13034)
* Removing dnoegel/php-xdg-base-dir (v0.1.1)

barryvdh/laravel-debugbar (v3.5.2 => v3.6.2)
barryvdh/laravel-ide-helper (v2.9.1 => v2.10.0)
composer/ca-bundle (1.2.9 => 1.2.10)
composer/composer (2.0.13 => 2.1.3)
composer/semver (3.2.4 => 3.2.5)
composer/xdebug-handler (1.4.6 => 2.0.1)
dapphp/radius (2.5.4 => 2.5.5)
doctrine/annotations (1.12.1 => 1.13.1)
doctrine/cache (1.10.2 => 2.0.3)
doctrine/dbal (2.13.0 => 2.13.2)
facade/flare-client-php (1.5.0 => 1.8.1)
facade/ignition (2.7.0 => 2.10.2)
fakerphp/faker (v1.14.1 => v1.15.0)
filp/whoops (2.12.0 => 2.13.0)
friendsofphp/php-cs-fixer (v2.18.4 => v2.19.0)
fruitcake/laravel-cors (v2.0.3 => v2.0.4)
guzzlehttp/psr7 (1.8.1 => 2.0.0)
laravel/dusk (v6.15.0 => v6.15.1)
laravel/framework (v8.40.0 => v8.49.2)
laravel/ui (v3.2.0 => v3.3.0)
league/commonmark (1.5.8 => 1.6.5)
league/flysystem (1.1.3 => 1.1.4)
monolog/monolog (2.2.0 => 2.3.0)
nesbot/carbon (2.46.0 => 2.50.0)
nikic/php-parser (v4.10.4 => v4.11.0)
nunomaduro/collision (v5.3.0 => v5.5.0)
nunomaduro/larastan (v0.7.4 => v0.7.10)
php-parallel-lint/php-parallel-lint (v1.2.0 => v1.3.0)
php-webdriver/webdriver (1.10.0 => 1.11.1)
phpseclib/phpseclib (3.0.7 => 3.0.9)
phpstan/phpstan (0.12.83 => 0.12.92)
phpstan/phpstan-mockery (0.12.13 => 0.12.14)
phpunit/phpunit (9.5.4 => 9.5.6)
predis/predis (v1.1.6 => v1.1.7)
psr/cache (1.0.1)
psr/http-factory (1.0.1)
psr/log (1.1.3 => 1.1.4)
psy/psysh (v0.10.7 => v0.10.8)
rmccue/requests (v1.8.0 => v1.8.1)
sebastian/global-state (5.0.2 => 5.0.3)
sebastian/type (2.3.1 => 2.3.4)
symfony/console (v5.2.6 => v5.3.2)
symfony/css-selector (v5.2.4 => v5.3.0)
symfony/debug (v4.4.20 => v4.4.25)
symfony/error-handler (v5.2.6 => v5.3.3)
symfony/event-dispatcher (v5.2.4 => v5.3.0)
symfony/filesystem (v5.2.6 => v5.3.3)
symfony/finder (v5.2.4 => v5.3.0)
symfony/http-foundation (v5.2.4 => v5.3.3)
symfony/http-kernel (v5.2.6 => v5.3.3)
symfony/mime (v5.2.6 => v5.3.2)
symfony/options-resolver (v5.2.4 => v5.3.0)
symfony/polyfill-ctype (v1.22.1 => v1.23.0)
symfony/polyfill-iconv (v1.22.1 => v1.23.0)
symfony/polyfill-intl-grapheme (v1.22.1 => v1.23.0)
symfony/polyfill-intl-idn (v1.22.1 => v1.23.0)
symfony/polyfill-intl-normalizer (v1.22.1 => v1.23.0)
symfony/polyfill-mbstring (v1.22.1 => v1.23.0)
symfony/polyfill-php72 (v1.22.1 => v1.23.0)
symfony/polyfill-php73 (v1.22.1 => v1.23.0)
symfony/polyfill-php80 (v1.22.1 => v1.23.0)
symfony/process (v5.2.4 => v5.3.2)
symfony/routing (v5.2.6 => v5.3.0)
symfony/stopwatch (v5.2.4 => v5.3.0)
symfony/string (v5.2.6 => v5.3.3)
symfony/translation (v5.2.6 => v5.3.3)
symfony/var-dumper (v5.2.6 => v5.3.3)
symfony/yaml (v4.4.21 => v4.4.26)

* add ignores
2021-07-13 17:41:04 -05:00
dependabot[bot]
1bb4dd173e
Bump phpmailer/phpmailer from 6.4.1 to 6.5.0 (#12975)
Bumps [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer) from 6.4.1 to 6.5.0.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases)
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md)
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.4.1...v6.5.0)

---
updated-dependencies:
- dependency-name: phpmailer/phpmailer
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-06-22 23:23:27 +02:00
dependabot[bot]
8135bd70d0
Bump phpmailer/phpmailer from 6.4.0 to 6.4.1 (#12831)
Bumps [phpmailer/phpmailer](https://github.com/PHPMailer/PHPMailer) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/PHPMailer/PHPMailer/releases)
- [Changelog](https://github.com/PHPMailer/PHPMailer/blob/master/changelog.md)
- [Commits](https://github.com/PHPMailer/PHPMailer/compare/v6.4.0...v6.4.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-05-04 20:44:35 +02:00
Jellyfrog
49ec6aabd6
Bump tecnickcom/tcpdf dependency to support php 8 (#12816)
Also fix undefined variable error
2021-04-29 22:43:47 -05:00
dependabot[bot]
2cdd762656
Bump laravel/framework from 8.35.1 to 8.40.0 (#12814)
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.35.1 to 8.40.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.35.1...v8.40.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 01:17:03 +02:00
dependabot[bot]
5bbe2e927c
Bump composer/composer from 2.0.11 to 2.0.13 (#12813)
Bumps [composer/composer](https://github.com/composer/composer) from 2.0.11 to 2.0.13.
- [Release notes](https://github.com/composer/composer/releases)
- [Changelog](https://github.com/composer/composer/blob/master/CHANGELOG.md)
- [Commits](https://github.com/composer/composer/compare/2.0.11...2.0.13)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 00:30:44 +02:00
dependabot[bot]
f53476558f
Bump rmccue/requests from 1.7.0 to 1.8.0 (#12812)
Bumps [rmccue/requests](https://github.com/rmccue/Requests) from 1.7.0 to 1.8.0.
- [Release notes](https://github.com/rmccue/Requests/releases)
- [Changelog](https://github.com/WordPress/Requests/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rmccue/Requests/compare/v1.7.0...v1.8.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-30 00:29:15 +02:00
Jellyfrog
89d9696fe5
Bump laravel/dusk (#12808) 2021-04-29 06:33:34 -05:00
Tony Murray
dec5485e1e
phpstan should be dev dependency 2021-04-23 10:47:18 +02:00
Jellyfrog
165c4fd53c
Enable PHPStan linter (#12678)
* Enable PHPStan linter

* Add PHPStan baseline

* Switch to Level 5

* Fix StringBlade errors with a stub file
2021-04-21 07:41:34 -05:00
dependabot[bot]
19032b33a5
Bump phpseclib/phpseclib from 2.0.30 to 3.0.7 (#12723)
Bumps [phpseclib/phpseclib](https://github.com/phpseclib/phpseclib) from 2.0.30 to 3.0.7.
- [Release notes](https://github.com/phpseclib/phpseclib/releases)
- [Changelog](https://github.com/phpseclib/phpseclib/blob/master/CHANGELOG.md)
- [Commits](https://github.com/phpseclib/phpseclib/compare/2.0.30...3.0.7)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-04-08 11:16:11 +02:00
Jellyfrog
14a95f47c9
Bump php-amqplib to support PHP8 (#12698) 2021-04-02 13:00:48 +02:00
Jellyfrog
26d3404bbc
Update php dependencies (#12692)
asm89/stack-cors (v2.0.2 => v2.0.3)
barryvdh/laravel-ide-helper (v2.9.0 => v2.9.1)
composer/composer (2.0.9 => 2.0.11)
composer/xdebug-handler (1.4.5 => 1.4.6)
doctrine/annotations (1.11.1 => 1.12.1)
doctrine/dbal (2.12.1 => 2.13.0)
doctrine/deprecations (v0.5.3)
facade/flare-client-php (1.3.7 => 1.5.0)
facade/ignition (2.5.11 => 2.7.0)
fakerphp/faker (v1.13.0 => v1.14.1)
filp/whoops (2.9.2 => 2.12.0)
friendsofphp/php-cs-fixer (v2.18.2 => v2.18.4)
guzzlehttp/guzzle (7.2.0 => 7.3.0)
guzzlehttp/promises (1.4.0 => 1.4.1)
guzzlehttp/psr7 (1.7.0 => 1.8.1)
laravel/dusk (v6.11.3 => v6.14.0)
laravel/framework (v8.27.0 => v8.35.1)
laravel/tinker (v2.6.0 => v2.6.1)
league/commonmark (1.5.7 => 1.5.8)
mockery/mockery (1.4.2 => 1.4.3)
nesbot/carbon (2.45.1 => 2.46.0)
phar-io/version (3.0.4 => 3.1.0)
php-webdriver/webdriver (1.9.0 => 1.10.0)
phpmailer/phpmailer (v6.2.0 => v6.4.0)
phpspec/prophecy (1.12.2 => 1.13.0)
phpunit/php-code-coverage (9.2.5 => 9.2.6)
phpunit/phpunit (9.5.2 => 9.5.4)
psr/container (1.0.0 => 1.1.1)
psy/psysh (v0.10.6 => v0.10.7)
swiftmailer/swiftmailer (v6.2.5 => v6.2.7)
symfony/console (v5.2.3 => v5.2.6)
symfony/css-selector (v5.2.3 => v5.2.4)
symfony/debug (v4.4.19 => v4.4.20)
symfony/error-handler (v5.2.3 => v5.2.6)
symfony/event-dispatcher (v5.2.3 => v5.2.4)
symfony/filesystem (v5.2.3 => v5.2.6)
symfony/finder (v5.2.3 => v5.2.4)
symfony/http-foundation (v5.2.3 => v5.2.4)
symfony/http-kernel (v5.2.3 => v5.2.6)
symfony/mime (v5.2.3 => v5.2.6)
symfony/options-resolver (v5.2.3 => v5.2.4)
symfony/polyfill-ctype (v1.22.0 => v1.22.1)
symfony/polyfill-iconv (v1.22.0 => v1.22.1)
symfony/polyfill-intl-grapheme (v1.22.0 => v1.22.1)
symfony/polyfill-intl-idn (v1.22.0 => v1.22.1)
symfony/polyfill-intl-normalizer (v1.22.0 => v1.22.1)
symfony/polyfill-mbstring (v1.22.0 => v1.22.1)
symfony/polyfill-php72 (v1.22.0 => v1.22.1)
symfony/polyfill-php73 (v1.22.0 => v1.22.1)
symfony/polyfill-php80 (v1.22.0 => v1.22.1)
symfony/process (v5.2.3 => v5.2.4)
symfony/routing (v5.2.3 => v5.2.6)
symfony/stopwatch (v5.2.3 => v5.2.4)
symfony/string (v5.2.3 => v5.2.6)
symfony/translation (v5.2.3 => v5.2.6)
symfony/var-dumper (v5.2.3 => v5.2.6)
symfony/yaml (v4.4.19 => v4.4.21)
webmozart/assert (1.9.1 => 1.10.0)
2021-04-02 00:01:02 +02:00
SourceDoctor
75a0a5e374
Use DNS Location Record for Location (#12409)
* Use DNS Location Record for Location

* .

* .

* .

* grammar fix

* dns class

* code changes

* composer update

* add missing composer.lock update

* reposition Location record parsing

* composer update

* default yes ; change lookup order

* merge master

* .

* move Location Record Parser to Model Level

* .

* fix location record code

* Location precedence with tests
Setting from UI disables all lookups

* update composer.lock and mix-manifest.json

* Style fixes

Co-authored-by: Tony Murray <murraytony@gmail.com>
2021-02-22 11:17:40 +01:00
Tony Murray
28d69c5230
Update php packages and fix composer warnings (#12526)
composer/ca-bundle (1.2.8 => 1.2.9)
composer/composer (2.0.8 => 2.0.9)
facade/ignition (2.5.8 => 2.5.11)
filp/whoops (2.9.1 => 2.9.2)
friendsofphp/php-cs-fixer (v2.17.3 => v2.18.2)
laravel/dusk (v6.11.0 => v6.11.3)
laravel/framework (v8.24.0 => v8.27.0)
laravel/tinker (v2.5.0 => v2.6.0)
maximebf/debugbar (v1.16.4 => v1.16.5)
nesbot/carbon (2.44.0 => 2.45.1)
nunomaduro/collision (v5.1.0 => v5.3.0)
phpunit/phpunit (9.5.1 => 9.5.2)
psy/psysh (v0.10.5 => v0.10.6)
symfony/console (v5.2.2 => v5.2.3)
symfony/css-selector (v5.2.2 => v5.2.3)
symfony/error-handler (v5.2.2 => v5.2.3)
symfony/event-dispatcher (v5.2.2 => v5.2.3)
symfony/filesystem (v5.2.1 => v5.2.3)
symfony/finder (v5.2.2 => v5.2.3)
symfony/http-foundation (v5.2.2 => v5.2.3)
symfony/http-kernel (v5.2.2 => v5.2.3)
symfony/mime (v5.2.2 => v5.2.3)
symfony/options-resolver (v5.2.1 => v5.2.3)
symfony/process (v5.2.2 => v5.2.3)
symfony/routing (v5.2.2 => v5.2.3)
symfony/stopwatch (v5.2.1 => v5.2.3)
symfony/string (v5.2.2 => v5.2.3)
symfony/translation (v5.2.2 => v5.2.3)
symfony/var-dumper (v5.2.2 => v5.2.3)
symfony/yaml (v4.4.18 => v4.4.19)
2021-02-14 21:50:32 -06:00
Tony Murray
5380f996f0
Remove larapoke until they support PHP 8 (#12522)
* Remove larapoke until they support PHP 8

* Use laravel-caffeine instead
2021-02-11 23:58:50 +01:00
dependabot[bot]
e42a6e36a6
Bump laravel/framework from 8.22.1 to 8.24.0 (#12490)
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.22.1 to 8.24.0.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.22.1...v8.24.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-02-02 18:39:20 +01:00
Tony Murray
39217d003f
Remove PHP8 blockers in LibreNMS (#12451)
* PHP8 support
looks like one upstream package needs to be updated also.

* Sync dependencies with laravel/laravel

* remove php 8 tests for now

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2021-01-28 11:11:55 -06:00
dependabot[bot]
0c962985cf
Bump laravel/framework from 8.21.0 to 8.22.1 (#12448)
Bumps [laravel/framework](https://github.com/laravel/framework) from 8.21.0 to 8.22.1.
- [Release notes](https://github.com/laravel/framework/releases)
- [Changelog](https://github.com/laravel/framework/blob/8.x/CHANGELOG-8.x.md)
- [Commits](https://github.com/laravel/framework/compare/v8.21.0...v8.22.1)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-01-20 03:36:29 +01:00
Tony Murray
ecd177f12b
Update php dependencies (#12425)
asm89/stack-cors (v2.0.1 => v2.0.2)
barryvdh/laravel-debugbar (v3.5.1 => v3.5.2)
barryvdh/laravel-ide-helper (v2.8.1 => v2.9.0)
clue/socket-raw (v1.4.1 => v1.5.0)
composer/composer (1.10.16 => 2.0.8)
composer/semver (1.7.1 => 3.2.4)
composer/spdx-licenses (1.5.4 => 1.5.5)
composer/xdebug-handler (1.4.4 => 1.4.5)
doctrine/annotations (1.11.0 => 1.11.1)
doctrine/dbal (2.12.0 => 2.12.1)
doctrine/instantiator (1.3.1 => 1.4.0)
dragonmantank/cron-expression (v3.0.2 => v3.1.0)
egulias/email-validator (2.1.22 => 2.1.25)
facade/ignition (2.4.1 => 2.5.8)
fico7489/laravel-pivot (3.0.3 => 3.0.7)
filp/whoops (2.9.0 => 2.9.1)
friendsofphp/php-cs-fixer (v2.16.4 => v2.17.3)
fzaninotto/faker (v1.9.1 => v1.9.2)
influxdb/influxdb-php (1.15.1 => 1.15.2)
laravel/dusk (v6.8.0 => v6.11.0)
laravel/framework (v8.11.2 => v8.21.0)
laravel/tinker (v2.4.2 => v2.5.0)
laravel/ui (v3.0.0 => v3.2.0)
league/commonmark (1.5.6 => 1.5.7)
maximebf/debugbar (v1.16.3 => v1.16.4)
monolog/monolog (2.1.1 => 2.2.0)
myclabs/deep-copy (1.10.1 => 1.10.2)
nesbot/carbon (2.41.5 => 2.43.0)
nikic/php-parser (v4.10.2 => v4.10.4)
nunomaduro/collision (v5.0.2 => v5.1.0)
nunomaduro/laravel-console-summary (v1.7.0 => v1.7.1)
opis/closure (3.6.0 => 3.6.1)
phar-io/version (3.0.2 => 3.0.4)
php-webdriver/webdriver (1.8.3 => 1.9.0)
phpmailer/phpmailer (v6.1.8 => v6.2.0)
phpseclib/phpseclib (2.0.29 => 2.0.30)
phpspec/prophecy (1.12.1 => 1.12.2)
phpunit/php-code-coverage (9.2.1 => 9.2.5)
phpunit/phpunit (9.4.2 => 9.5.0)
psy/psysh (v0.10.4 => v0.10.5)
sebastian/comparator (4.0.5 => 4.0.6)
sebastian/complexity (2.0.1 => 2.0.2)
sebastian/global-state (5.0.1 => 5.0.2)
sebastian/lines-of-code (1.0.1 => 1.0.3)
seld/jsonlint (1.8.2 => 1.8.3)
staudenmeir/dusk-updater (v1.2.1 => v1.2.2)
swiftmailer/swiftmailer (v6.2.3 => v6.2.4)
symfony/console (v5.1.7 => v5.2.1)
symfony/css-selector (v5.1.7 => v5.2.1)
symfony/debug (v4.4.15 => v4.4.18)
symfony/error-handler (v5.1.7 => v5.2.1)
symfony/event-dispatcher (v5.1.7 => v5.2.1)
symfony/filesystem (v5.1.7 => v5.2.1)
symfony/finder (v5.1.7 => v5.2.1)
symfony/http-foundation (v5.1.7 => v5.2.1)
symfony/http-kernel (v5.1.7 => v5.2.1)
symfony/mime (v5.1.7 => v5.2.1)
symfony/options-resolver (v5.1.7 => v5.2.1)
symfony/polyfill-ctype (v1.20.0 => v1.22.0)
symfony/polyfill-iconv (v1.20.0 => v1.22.0)
symfony/polyfill-intl-grapheme (v1.20.0 => v1.22.0)
symfony/polyfill-intl-idn (v1.20.0 => v1.22.0)
symfony/polyfill-intl-normalizer (v1.20.0 => v1.22.0)
symfony/polyfill-mbstring (v1.20.0 => v1.22.0)
symfony/polyfill-php72 (v1.20.0 => v1.22.0)
symfony/polyfill-php73 (v1.20.0 => v1.22.0)
symfony/polyfill-php80 (v1.20.0 => v1.22.0)
symfony/process (v5.1.7 => v5.2.1)
symfony/routing (v5.1.7 => v5.2.1)
symfony/stopwatch (v5.1.7 => v5.2.1)
symfony/string (v5.1.7 => v5.2.1)
symfony/translation (v5.1.7 => v5.2.1)
symfony/var-dumper (v5.1.7 => v5.2.1)
symfony/yaml (v4.4.15 => v4.4.18)
voku/portable-ascii (1.5.3 => 1.5.6)
wpb/string-blade-compiler (6.0.2 => 6.0.3)

remove scrivo/highlight.php (v9.18.1.3)
2021-01-09 19:33:08 +01:00
Jellyfrog
820cf1dcca
Fix disabling of built-in commands when using ./lnms (#12308)
* Fix disabling of built-in commands when using ./lnms in production

It wasn't working correctly after Laravel upstream changes

* Use nunomaduro/laravel-console-summary

* fix command name

Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-11-19 22:51:20 +01:00
Jellyfrog
50c8033099
Laravel 8.x Shift (#12235)
* Shift HTTP kernel and middleware

* Shift service providers

* Shift console routes

* Shift to class based factories

* Namespace seeders

* Shift PSR-4 autoloading

* Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them. This allows you to review the commit
diff for once for customizations when you are done Shifting.

Moving forward, consider using ENV variables or create a separate
config file to allow the core config files to remain as default
as possible.

* Shift Laravel dependencies

* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Shift cleanup

* console routes

* composer update

* factories

* phpunit

* bootstrap pagination

* model factory

* wip

* Apply fixes from StyleCI (#12236)

* wip

* Apply fixes from StyleCI (#12238)

* wip

* wip

* wip

* wip

* Apply fixes from StyleCI (#12240)

* wip

* Apply fixes from StyleCI (#12242)

* composer update

* Bump to PHP 7.3 minimum

Co-authored-by: Laravel Shift <shift@laravelshift.com>
2020-11-03 10:18:31 -06:00
Jellyfrog
780e74b0e1
Remove legacy password algoritms and move to Laravel standard. (#12252) 2020-10-23 09:56:17 -05:00
Tony Murray
1e4702fa4f
Support multiple daily process locking backends with distributed polling (#11896)
* Implement locks in the file cache

* Replace custom locks

* implement restore lock
Used when re-hydrating

* remove legacy use statements

* Add class descriptions

* Fix style

* Default to database cache driver

* missed cache_locks table
prevent chicken-egg issue

* style fixes

* Remove custom file lock implementation

* missed items from file cache

* Update schema definition
hmm, other schema noise must be from manual modification as this is generated from a freshly migrated db.

* require predis, it is pure python, so no harm in adding

* and set predis as the default client
2020-10-07 07:36:35 -05:00
Tony Murray
a08b092e4b
Update PHP dependencies (#12169) 2020-10-01 00:40:13 +02:00
Tony Murray
93e43d09bc
Update dev:check style to use php-cs-fixer (#12132)
* Update dev:check style to use php-cs-fixer

* dont override default paths

* Update .php_cs

Co-authored-by: Jellyfrog <Jellyfrog@users.noreply.github.com>
2020-09-23 20:54:00 -05:00
dependabot[bot]
eb1407ff01
Bump symfony/http-kernel from 5.1.2 to 5.1.5 (#12049)
Bumps [symfony/http-kernel](https://github.com/symfony/http-kernel) from 5.1.2 to 5.1.5.
- [Release notes](https://github.com/symfony/http-kernel/releases)
- [Changelog](https://github.com/symfony/http-kernel/blob/master/CHANGELOG.md)
- [Commits](https://github.com/symfony/http-kernel/compare/v5.1.2...v5.1.5)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-09-03 11:06:31 +02:00
Tony Murray
514b3efd01
Pull in fixed string blade (#11925)
* Work around force string blade to register

* better app access

* Fixed upstream, pull in new hash
2020-07-10 14:18:54 -05:00
Jellyfrog
f526ba326b
Laravel 7.x Shift (#11676)
* Shift bindings

PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.

* Shift core files

* Shift to Throwable

* Shift Laravel dependencies
Add laravel/ui dependency
Use our fork of string-blade-compiler

* Shift config files

Default config files

In an effort to make upgrading the constantly changing config files
easier, Shift defaulted them so you can review the commit diff for
changes. Moving forward, you should use ENV variables or create a
separate config file to allow the core config files to remain
automatically upgradeable.

Restore config header comment

* Remove duplicate named routes

* add basic trust host middleware

* Trusted proxies should be default null

* Fix missed rename

* wip

* Rename routes

* Update trustedproxy.php

* Update Kernel.php

* revert trustedproxy.php

It only accepted '*' and not ['*']

* Fix tests

fake request was causing the error

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-07-09 08:22:50 -05:00
Tony Murray
560fd71ef6
CORS settings in webui (#11912)
* Change CORS implementation
allows for upstream integration of Laravel 7

* migrate config

* skip implementing patterns for now

* Expose settings to the webui

* Make db settings apply
2020-07-08 07:36:51 -05:00
Tony Murray
60f8b7716b php72 2020-06-23 08:08:12 -05:00
Tony Murray
058907e37b symfony/polyfill-ctype (v1.17.0 => v1.17.1)
phpoption/phpoption (1.7.3 => 1.7.4)
vlucas/phpdotenv (v3.6.4 => v3.6.6)
symfony/css-selector (v5.0.8 => v5.1.2)
symfony/polyfill-mbstring (v1.17.0 => v1.17.1)
symfony/polyfill-php80 (v1.17.1)
symfony/var-dumper (v4.4.8 => v4.4.10)
symfony/routing (v4.4.8 => v4.4.10)
symfony/process (v4.4.8 => v4.4.10)
symfony/polyfill-php73 (v1.17.0 => v1.17.1)
symfony/polyfill-intl-idn (v1.17.0 => v1.17.1)
symfony/mime (v5.0.8 => v5.1.2)
symfony/http-foundation (v4.4.8 => v4.4.10)
symfony/event-dispatcher (v4.4.8 => v4.4.10)
symfony/debug (v4.4.8 => v4.4.10)
symfony/error-handler (v4.4.8 => v4.4.10)
symfony/http-kernel (v4.4.8 => v4.4.10)
symfony/finder (v4.4.8 => v4.4.10)
symfony/service-contracts (v2.0.1 => v2.1.2)
symfony/console (v4.4.8 => v4.4.10)
symfony/polyfill-iconv (v1.17.0 => v1.17.1)
doctrine/lexer (1.2.0 => 1.2.1)
egulias/email-validator (2.1.17 => 2.1.18)
opis/closure (3.5.1 => 3.5.5)
symfony/translation-contracts (v2.0.1 => v2.1.2)
symfony/translation (v4.4.8 => v4.4.10)
nesbot/carbon (2.34.0 => 2.35.0)
monolog/monolog (2.0.2 => 2.1.0)
league/commonmark (1.4.3 => 1.5.0)
doctrine/inflector (2.0.1 => 2.0.3)
laravel/framework (v6.18.14 => v6.18.20)
darkghosthunter/larapoke (v4.1.0 => v4.1.1)
doctrine/cache (1.10.0 => 1.10.1)
guzzlehttp/guzzle (6.5.3 => 6.5.5)
phpmailer/phpmailer (v6.1.5 => v6.1.6)
symfony/yaml (v4.4.8 => v4.4.10)
mockery/mockery (1.3.1 => 1.4.0)
webmozart/assert (1.8.0 => 1.9.0)
phpdocumentor/type-resolver (1.1.0 => 1.2.0)
doctrine/instantiator (1.3.0 => 1.3.1)
phpunit/phpunit (8.5.4 => 8.5.8)
staudenmeir/dusk-updater (v1.2 => v1.2.1)
symfony/dotenv (v3.4.40 => v3.4.42)
symfony/filesystem (v5.0.8 => v5.1.2)
justinrainbow/json-schema (5.2.9 => 5.2.10)
composer/xdebug-handler (1.4.1 => 1.4.2)
composer/composer (1.10.6 => 1.10.7)
filp/whoops (2.7.2 => 2.7.3)
nikic/php-parser (v4.4.0 => v4.5.0)
2020-06-22 13:02:55 -05:00
Jellyfrog
a9e2ee2fb4
Replace martinlindhe/laravel-vue-i18n-generator since its no longer (#11815)
maintained
2020-06-13 12:39:48 +02:00
Jellyfrog
b09bc07f8f
Laravel 6.x (#11397)
* Update Laravel core files

Fix app/Http/Kernel.php

* Use RouteServiceProvider::HOME

* Sync Laravel default config files

* Update composer dependencies to Laravel 6

* fix resources/lang/en/validation.php

* Manually fixing tests

required by travis, fails locally???

* Update wpb/string-blade-compiler

* Add new viewany() authorization policies

* Update minimum PHP version to 7.2

* Re-generate our json test-dumps

Due to:
https://github.com/laravel/framework/pull/16069
https://github.com/laravel/framework/pull/31100

* update truenas data

* fix truenas

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-23 12:05:18 -05:00
Jellyfrog
3985ce74ce
Update PHPUnit to 8.x (#11635)
* Shift return type of base TestCase methods

From the [PHPUnit 8 release notes][1], the `TestCase` methods below now declare a `void` return type:

- `setUpBeforeClass()`
- `setUp()`
- `assertPreConditions()`
- `assertPostConditions()`
- `tearDown()`
- `tearDownAfterClass()`
- `onNotSuccessfulTest()`

[1]: https://phpunit.de/announcements/phpunit-8.html

* Update PHPUnit to 8.x

Part of Laravel 6 upgrade

* Bump php versions

Co-authored-by: Laravel Shift <shift@laravelshift.com>
Co-authored-by: Tony Murray <murraytony@gmail.com>
2020-05-19 16:31:50 +02:00
Tony Murray
f0d68a1ad8
Update PHP dependencies (#11377)
* Update composer dependencies
Fix PSR-4 violations

* Actually support PHP 7.1 :D

* all trap tests should extend SnmpTrapTestCase
2020-04-03 17:13:18 -05:00