4437 Commits
Author SHA1 Message Date
renovate[bot] 153be25dd9 Update FOSSBilling/.workflows digest to 8749327 0.6.10 2024-01-22 05:03:07 +00:00
Belle Aerni c94730c7d5 Strip the CSRF Token before calling API endpoints (#2094) 2024-01-21 21:02:43 -08:00
Belle Aerni 0044b2ac99 Fix some incorrect typehints (#2093)
* Fix incorrect typehints

* Also fix the default value I set in my last PR

* I missed this..
2024-01-21 20:44:56 -08:00
Belle Aerni 5b919c17d8 Added some debugging for session fingerprinting (#2092)
* Added some debugging for session fingerprinting

* Fix wording
2024-01-21 20:22:59 -08:00
Belle Aerni ebe3083741 Revert the added server manager typehints (#2091) 2024-01-21 19:24:20 -08:00
renovate[bot] 3b86509a66 Update dependency apexcharts to v3.45.2 2024-01-22 02:05:11 +00:00
Belle Aerni cca0515491 Transfer carts when logging in (#2083)
* Transfer the cart when logging in

* Wrote a test for it

* This should at least fix one of the tests

* Oops

* Wrong spot...

* Ah-ha!
2024-01-21 16:00:41 +01:00
renovate[bot] 81ee796dcd Update dependency friendsofphp/php-cs-fixer to v3.48.0 2024-01-21 04:59:48 +00:00
renovate[bot] 94ca731169 Update dependency core-js to v3.35.1 2024-01-21 01:06:03 +00:00
renovate[bot] e8daeeb00c Update dependency rector/rector to v0.19.2 2024-01-20 04:19:50 +00:00
renovate[bot] 0eb4b8cd1b Update dependency phpunit/phpunit to v10.5.8 2024-01-20 02:30:43 +00:00
Belle Aerni 7b77426baf Ignore ext config / uninstall errors in the update patcher (#2089) 2024-01-19 13:23:03 -08:00
Belle Aerni bc72de3103 Improve clarity when marking unpaid invoices without a set gateway (#2088)
* Improve clarity when marking unpaid invoices without a set gateway

* Remove the quotes

* Update AdminTest.php
2024-01-19 13:11:18 -08:00
renovate[bot] 52f582becf Update dependency sass to v1.70.0 (#2086)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 18:31:25 -08:00
Christoph Schlaepfer 6efa361c2d Fixed missing Semi-Colons (#2085) 2024-01-18 05:23:01 -08:00
Christoph Schlaepfer a1625c07ea Fixes an error when saving a plaintext textarea field when CKEditor is loaded and there are no textareas it initialized. (#2084)
Fixes Issue with textarea fields, if ckeditor is loaded but there is not textarea with the class it has assigned.
2024-01-18 00:58:58 -08:00
renovate[bot] 15c21afe64 Update dependency autoprefixer to v10.4.17 2024-01-18 02:12:21 +00:00
Belle Aerni 8f4d0d4cac More tests and CI improvements (#2078)
* Wrote a few more tests, improvements

* Ran Rector & PHP-CS-Fixer

* Append a capital letter to the test client passwords

* Minor tweaks

* Display more info after the tests run

* Oops, I forgot to set the dir

* Fix cron behavior for test env, dropped legacy tests

* Rename the empty test suite so PHPUnit ignores it

* Update cspell.json

* Minor tweaks to the tests

* Fixes
2024-01-17 18:11:45 -08:00
renovate[bot] 1dfd868279 Update actions/cache action to v4 (#2081)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-17 17:24:34 -08:00
renovate[bot] b6f16956aa Update CKEditor to v41 (major) (#2080)
Update CKEditor to v41

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-18 02:12:39 +01:00
Christoph SchlaepferandChristoph Schläpfer 0fde9e3843 Changed ID to Client-ID where applicable (#2077)
* Changed ID to Client-ID where applicable

* Removed dash

---------

Co-authored-by: Christoph Schläpfer <c.schlaepfer@datact.ch>
2024-01-17 11:08:15 +01:00
Belle Aerni 76b32a6026 Feat: allow selection of the default network interface (#2065)
* Feat: allow selection of the default network interface

* Update cspell.json

* Wrote some tests, moved the setting to the config file

* Cleanup, fixes, include Sentry in the bind setting

* Use JS to update the IP rather than reload, minor tweaks

* UI tweaks

* Removed leftover incomplete sentence, mention interface names
2024-01-17 01:46:32 -08:00
renovate[bot] f2e286dbff Update dependency friendsofphp/php-cs-fixer to v3.47.1 2024-01-17 03:30:17 +00:00
renovate[bot] 2f79ca91c8 Update dependency cypress to v13.6.3 2024-01-17 01:23:08 +00:00
Robert Thomas 1bea222a26 Refactor Server Library + Improve Docs (#2063)
* Refactor `Server` library component + improve docs

* Refactor `Server` library component + improve docs

* More meaningful documentation

* Allow null strings

* Generate new PHPStan baseline

* Address comments + Rector and PHP-CS-Fixer

* Handle converting package bandwidth and disk quota into bytes

* Remove previous PHPStan baseline change

* Fix `password_length` bug caused by previous PR
It seems that the database code automatically converts camel case (`passwordLength`) into snake case (`password_length`)

* Rectify migration

* Resolve merge issue
2024-01-16 04:40:22 -08:00
FOSSBilling BotandFOSSBilling Bot 8f3740b691 Apply PHP Code Styling & Quality Changes (#2073)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-01-16 04:25:38 -08:00
renovate[bot] 7af50bbdd5 Update dependency friendsofphp/php-cs-fixer to v3.47.0 2024-01-16 03:07:45 +00:00
renovate[bot] ade06f7754 Update dependency rector/rector to v0.19.1 2024-01-16 00:06:12 +00:00
Belle Aerni b061d5da04 Implemented a new class for config management (#2066)
* Implemented a new class for config management

* Run Rector & PHP-CS-Fixer

* Spelling

* Pointed a bunch of code to the new class

* Fix tests, removed 2 broken ones that did nothing

* Quick run of PHP-CS-Fixer

* Fixed issues noticed in self review

* Updated remaining old methods. Fixed minor error page issue

* Very minor code tweak

* Fixes, added a related test

* Check for OPCache functions being defined

* I don't think this timeout is needed
2024-01-15 14:12:53 -08:00
renovate[bot] 12eb5b7b3f Lock file maintenance 2024-01-15 10:57:56 +00:00
Jaap Marcus 946da4fa8e [Hestia] Implement Rule for valid username (#2071)
Implement Rule for valid username

https://github.com/hestiacp/hestiacp/pull/4195
2024-01-15 02:56:36 -08:00
Belle Aerni 1b0fba1922 Various additional tests (#2069)
* Various additional tests

* Fixes

* More fixes

* Fixed my other mistakes

* Final fix
2024-01-15 00:46:19 -08:00
Belle Aerni 83455bab35 Update labeler.yml (#2068) 2024-01-14 22:56:12 -08:00
Belle Aerni ccc97a3ec9 Initial implementation of CI against a live FOSSBilling Install (#2067)
* Rename tests to tests-legacy

* Groundwork for live tests

* Somewhat working tests on a live instance

* Hmmmmmm

* Fix

* Fixed the other bug

* Added a handful of various tests

* Typos, all these are admin endpoints

* Bypass this check for testing envs

* Disable it for now

* Mini cleanup

* Cleanup from debugging, ran PHP-CS-Fixer
2024-01-14 22:51:32 -08:00
renovate[bot] 7c1762b811 Update dependency phpunit/phpunit to v10.5.7 2024-01-15 01:06:58 +00:00
renovate[bot] 00950f58fa Update dependency stripe/stripe-php to v13.9.0 (#2062)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-14 10:53:09 +01:00
renovate[bot] 47c931afaf Update dependency phpunit/phpunit to v10.5.6 2024-01-14 01:39:19 +00:00
Belle Aerni 7bb98f5ffd Re-run PHP-CS-Fixer and (Hopefully) Fix Rector for GHA (#2061)
* Changed Rector parallel config. Hoping to resolve GHA issue

* Re-run Rector and PHP-CS-Fixer
2024-01-12 16:43:45 -08:00
Robert Thomas a69cdf7350 Implement passwordLength field for service hosting generated accounts (#2040)
* Implement `passwordlength` field for service hosting generated accounts
Fix testing DirectAdmin connections (it previously did nothing)

* Revert unintended change from the previous PR

* Fix changes not saving to db

* Fix `passwordlength` not showing everywhere

* Remove stray debug line

* Fix: passwords being incorrectly set to 7 asterisks when an order is uncancelled

* Requested changes + typo fix

* Include `passwordlength` as ignored term

* Fix typo change oversight

* Minor code clarity improvements

* Type safety for the `passwordlength` and `port` fields

* Fallback to the original model value

* Remove default value for new servers, to show the placeholder

* Improve customer UI
Increase padding for service hosting management tabs
Include missing badge styling for `canceled` orders

* More consistent button colours for orders

* Rename `passwordlength` to `passwordLength`
Remove `activate` and `uncancel` tests for now as they don't really work

* Remove spelling ignore for `passwordlength`

* Restore missing `$httpClient` variable

* Resolve comments

* More thorough port validation

* Fix errors caused by fixing the previous merge conflicts through the GH web interface
2024-01-13 00:35:06 +01:00
Jaap Marcus c8cc0af02e Make Curl mandatory again (#2060)
HTTP Client still depends on PHP Curl to be present
2024-01-09 15:39:01 -08:00
Belle Aerni ac0593d5e5 Update rectorAndCs.yml (#2059) 2024-01-09 07:40:51 -08:00
renovate[bot] e3af8d98f3 Update dependency rector/rector to ^0.19.0 (#2056)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-09 07:34:40 -08:00
Belle Aerni 1bec1acabc Wording consistency (#2055) 0.6.9 2024-01-08 17:58:06 -08:00
Belle Aerni da3cf52f86 Minor front-end improvements & fixes (#2052)
Front-end improvements & fixes
2024-01-08 14:09:43 +01:00
Belle Aerni fca565522b Prevent the generation of invalid usernames for WHM (#2054)
* Prevent the generation of invalid usernames for WHM

* Missed a "substr" there

* Ensure we aren't making the usernames longer

* Fixed my typo
2024-01-08 04:32:28 -08:00
Belle Aerni b346aaeda2 Minor logging improvements & session class cleanup (#2053)
* Misc session class cleanup + fingerprint config option

* Send email errors to their own channel

* This is an informative exception
2024-01-08 04:27:44 -08:00
renovate[bot] 76e04dd739 Lock file maintenance 2024-01-08 00:11:27 +00:00
Belle Aerni 32d011225b Rector & PHP-CS-Fixer Improvements (#2047)
* Added the rector cache to the action

* Enabled PHP-CS fixer for the tests & library folder

* Use the PHP-CS-Fixer Cache

* Fix the tests

* Ensure the Sentry placeholder isn't messed up from CS changes

* Typo..
2024-01-08 00:10:00 +00:00
renovate[bot] bb630852d9 Update dependency stripe/stripe-php to v13.8.0 (#2046)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-07 01:53:22 +01:00
Robert Thomas e6a93dc3a8 Improved Customer Mobile Navigation (#2031) + Auth Flow Design (#2044)
Moved sidebar navigation buttons into top menu for mobile users
Improved auth flow buttons
2024-01-06 11:33:30 -08:00