Commit Graph
609 Commits
Author SHA1 Message Date
Belle Aerni bea56db9e0 Restore the cron module icon (#2508) 2024-11-25 19:20:58 -08:00
Belle Aerni 6df392ffa7 Fully prevent the cron account from ever being logged into (#2502)
* Fully prevent the cron account from ever being logged into

* Update the tests
2024-11-22 00:08:48 -08:00
Belle Aerni 45db4910a7 PHP 8.4 prep (#2464)
* Update CI for PHP 8.4

* Update composer deps for PHP 8.4

* Updates

* This is the default mode and this constant causes test failutes

* Explicily install the PDO extensions

* Temporarily downgrade the live tests to PHP 8.3

It would seem that there is some kind of problem with PHP 8.4 in regards to these tests. I believe it is outside of our control however as it installs fine for me with PHP 8.4 under DirectAdmin

* Update to address deprecations

* Make that nullable

* Fixed my typo

* Bump PHPunit to v11

* Also take care of two minor things

* Formatting fix
2024-11-21 23:16:29 -08:00
Belle AerniandJaap Marcus 7fcaaae8bb Add delays to prevent email enumeration (#2487)
* Add delays to prevent email enumeration

* Wording tweak

* This should fix the tests

Also ran PHP-CS-Fixer and Rector

* Update ServiceTest.php

---------

Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2024-11-14 00:38:58 -08:00
Belle Aerni a5d15c2a99 Upgrade GeoIP functionality & replace the databases (#2471)
* Replaced Maxmind's IP database

* Began rebuilding GeoIP reader functionality

The GeoIP2 package does not worth with DB's that aren't built by maxmind themselves, making it rather unhelpful for us.

Since my long-term goal is for someone to be able to bring in their own DB, making a custom implementation seems like the reasonable choice.

(Plus my aim is already to replace the MaxMind DB due to it's licencing)

* Created an IP address lookup page

* + ASN info

* Bump last patch

* Make PHPStan happy

* Very minor refactor + PHPDocs
2024-10-31 19:31:50 +01:00
Belle Aerni 2b431f8757 Smaller fixes (#2474)
* Fixed a few issues in the order page

* Fixup and clean up the invoice auth check

* Allow tests to pass
2024-10-31 02:29:11 -07:00
Adam Daley 8d5b63d259 Update node/npm dependencies (#2454)
Update node/npm dependencies to latest versions, where possible.
2024-10-04 22:03:17 +01:00
renovate[bot] 6f5b20e695 chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v43 (#2434)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 01:23:25 -07:00
renovate[bot] 4f1b001a69 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v43 (#2433)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-09-10 01:13:42 -07:00
renovate[bot] 156e9f91d1 chore(deps): update dependency ckeditor5 to v43 (#2394)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-08 13:43:37 -07:00
Belle Aerni 44c7c18e78 Added the WYSIWYG editor to the huraga theme (#2384)
* Added the WYSIWYG editor to the huraga theme

* Apply the dark mode workaround for CKEditor
2024-08-04 01:40:38 -07:00
Belle Aerni a3b0f7d919 Disable fallback cron behavior for non preview / development enviroments (#2378)
* Only enable the fallback cron behavior for testing / dev setups

* Clean up the cron error message

We don't need to worry about it clearing the message on prod environments going forward as the fallback will be disabled

* Fixed CS
2024-08-01 17:18:01 -07:00
renovate[bot] e6f1f3c121 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v42 (#2367)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:52:15 -07:00
renovate[bot] 8f065c5a1a chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v42 (#2368)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-08-01 13:43:41 -07:00
renovate[bot] 28d4e8cfd8 chore(deps): update dependency @ckeditor/ckeditor5-dev-utils to v41 (#2358)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-24 14:02:10 -07:00
renovate[bot] 828fa1a653 chore(deps): update dependency @ckeditor/ckeditor5-dev-translations to v41 (#2357)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-07-24 03:04:28 -07:00
Belle Aerni 32315e2ddb Remove additional hardcoded lists (#2346)
* Remove additional hardcoded lists (countries & phone codes)

Also fixed a few UI oddities I noticed

* Bugfixes

* Removed the old reference to the polyfill

* Fixed a typo
2024-07-12 00:46:03 +01:00
Stage4000 feed0f8256 Fix Client Profile Layout Bug (#2340)
Update mod_client_profile.html.twig
2024-07-06 16:20:49 -07:00
FOSSBilling BotandFOSSBilling Bot 17d19c28ee Apply PHP Code Styling & Quality Changes (#2333)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-07-04 13:46:38 -07:00
Adam Daley 4f5b0872c3 Update cspell.json (#2330)
* Update cspell.json

* Fix `system:releasenotes` command description
2024-07-03 05:20:11 +01:00
Yağızhan d1904145eb Introducing the FOSSBilling CLI (#1021)
+CLI

Die when accessed through a browser

Move the commands under the modules

Added system:version

Added system:releasenotes

Added theme:list

Styling
2024-07-03 05:02:28 +01:00
Adam Daley 22dfd5f9ab Migrate CKEditor to new installation method (#2328) 2024-07-02 23:03:31 +01:00
Belle Aerni 945a201572 Small Currency Improvements (#2311)
* Removed the hardcoded currencies list

Also streamlined the process of adding new currencies by allowing the title & exchange rate to automatically be determined.

* Use an existing translatable string

* Update the test workflows

* Dropped the legacy test, wrote two new ones

* Fixed a typo in my assert

* Whooooops
2024-06-27 09:48:37 -07:00
chatphpanduser 49b7c228a4 fix pagination not show for order/service page (#2310)
Co-authored-by: user <user@example.com>
2024-06-25 14:15:49 -07:00
Belle Aerni e8055911c8 Fix the required params for the client profile (#2303) 2024-06-14 21:25:34 -07:00
Belle Aerni 76321faf8e Misc fixes and cleanup (#2299)
* Misc fixes and cleanup

* More misc cleanup

* Removed outdated / invalid tests

* Update SentryHelper.php
2024-06-10 20:32:44 -07:00
Belle Aerni 1451d735b7 Made the email log cleanup config seperate from other activity logs (#2297)
Also fixed a bug with the original code since it never referenced the specific config property
2024-06-09 17:52:48 -07:00
Belle Aerni 21e47dd686 Very small misc changes (#2296) 2024-06-07 21:56:16 -07:00
Belle Aerni 8ac5b00fe9 Misc fixes + product configuration page improvements (#2292)
* Fixed our Rector config. Closes #2272

* Much improved the product configuration page

Fixed a bug and significantly improved the visuals for that page

* Place the period text after the cost

Closes #2242

* Misc changes

* Slightly shrunk the addon buttons, updated cspell
2024-06-04 21:30:59 -07:00
fc67657d6c Add an item quantity option when creating invoices (#2284)
* Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2283

* Update cspell.json

---------

Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-06-04 14:30:34 -07:00
98fde5e085 Add a default invoice note option (#2282)
* Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2279

* Made "notes" singular

While technically the DB name is notes and it'll appear as notes under the invoice, the option where you set the default is only a single text input so "notes" seems a bit odd to use there

---------

Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-05-28 20:02:33 -07:00
7f592fd7bf Make invoice number padding configurable (#2281)
* Resolving Issue https://github.com/FOSSBilling/FOSSBilling/issues/2275

* Modified as per suggestions in https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614315866

Modified as per suggestions in https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614315866

* Resolving

Resolving https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614317388 and https://github.com/FOSSBilling/FOSSBilling/pull/2281#discussion_r1614317805

* Updated the input field to allow 0

---------

Co-authored-by: Devadatta Sahoo <webmaster@nettantra.com>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2024-05-27 10:23:11 -07:00
Devadatta Sahoo 52fddf8b40 Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2276 (#2277)
Resolves https://github.com/FOSSBilling/FOSSBilling/issues/2276
2024-05-24 16:18:15 -07:00
renovate[bot] db219bf668 chore(deps): update ckeditor to v40 (major) (#2268)
chore(deps): update ckeditor to v40

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-14 22:14:10 +01:00
Belle Aerni 549b05af3e Slight cleanup of the library folder (#2260)
* Slight cleanup of the library folder

* Test fixes

* More fixes for the tests
2024-05-01 15:36:59 -07:00
FOSSBilling BotandFOSSBilling Bot 695b71877e Apply PHP Code Styling & Quality Changes (#2258)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-04-26 15:23:13 -07:00
Belle Aerni 960c004558 Removed the bb_ prefix from IPN related params (#2239) 2024-04-24 14:01:19 +01:00
Belle Aerni 303f4cfa2d Code styling & rector config improvements (#2254)
* Bumped the Rector deadcode level

* Added the instanceof setlist

* Increasded type coverage and updated tests config too

* Bumped type coverage & ran PHP-cs-fixer
2024-04-23 10:38:18 -07:00
Belle Aerni 58d10911b8 Fix the required params not working in the client profile (#2233) 2024-04-11 14:07:42 -07:00
Kenny e64c266c5f set dark logo if dark theme is enabled in hurage. (#2232)
* set dark logo if dark theme is enabled in hurage.
fixes @2218

* fix some styling

* fix typo

* fixed feedback
2024-04-11 13:43:19 -07:00
Belle Aerni b0c3c53d88 Replace the GitHub release API with our own (#2228)
* Replace the GitHub release API with our own

* Updated the PHPDoc

* Also restrict the allowed download URLs

* Removed an accidentally added empty array key
2024-04-11 13:31:55 -07:00
Belle Aerni cecb2090d9 Fix some untranslatable strings (#2223)
* Fix some untranslatable strings

* Also apply the macro function change to the admin panel
2024-04-08 23:53:45 -07:00
FOSSBilling BotandFOSSBilling Bot 4d08c49d80 Apply PHP Code Styling & Quality Changes (#2217)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-04-04 13:04:25 -07:00
Belle Aerni 96dcfce0c6 Some UI & usability improvements (#2215) 2024-04-03 12:31:56 -07:00
Belle Aerni 1fa093640f Huraga Improvements (#2212)
* Fixed hardcoded theme colors. Huraga now works with dark mode

* (WIP) Turn the KB index into a category list

* Set a reasonable height for the KB categories

* Added a "theme" configuration option

* Fix a gramatical mistake I noticed
2024-03-29 22:28:09 -07:00
Belle Aerni f7de859af0 Allow admins to force deletion of orders (#2207)
* Allow admins to bypass deletion errors for orders

* Code styling
2024-03-26 08:50:38 -07:00
FOSSBilling BotandFOSSBilling Bot a89fc342a7 Apply PHP Code Styling & Quality Changes (#2205)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2024-03-26 06:04:50 -07:00
Belle Aerni 57c173fe7d Fixed some errors with the previous update (#2203)
* Fixed a couple of new errors

* Missed two other spots

* I am very slightly confused as to that error
2024-03-22 19:55:03 -07:00
Belle Aerni 0d5fded562 Prevent a potential error (#2202)
* Prevent a potential error

* Update ServiceTest.php
2024-03-22 14:18:29 -07:00
Belle Aerni 5ce79ed96a Minor ExchangeRate-API attribution fix (#2201)
Just ensures it's correctly displayed when someone hasn't set anything (so defaulting to ExchangeRate-API) and also hides the attribution once the user specifies a key as it's then no longer needed
2024-03-22 13:55:48 -07:00