Commit Graph
2538 Commits
Author SHA1 Message Date
dependabot[bot] edae355cb2 Bump @melloware/coloris from 0.21.1 to 0.22.0 (#1788)
Bumps [@melloware/coloris](https://github.com/melloware/coloris-npm) from 0.21.1 to 0.22.0.
- [Release notes](https://github.com/melloware/coloris-npm/releases)
- [Commits](https://github.com/melloware/coloris-npm/compare/0.21.1...0.22.0)

---
updated-dependencies:
- dependency-name: "@melloware/coloris"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-07 01:28:46 -08:00
dependabot[bot] aa5aa93e63 Bump flag-icons from 6.11.2 to 6.12.0 (#1778)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.11.2 to 6.12.0.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.11.2...v6.12.0)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-06 02:03:10 -08:00
Adam Daley 230b10f6ea Replace direct config references with constants (#1768)
* Fix PATH_DATA constant to use config

Update `PATH_DATA` constant to use the `path_data` config option.

* Replace direct config references with constants

Replace direct references to `config.php` file and specific config options in favour of global constants, where available.

* Drop BB prefix on global constants

Rename global constants to drop `BB_` prefix, where appropriate.
2023-11-06 07:55:23 +00:00
Adam DaleyandBelle Aerni b35b2efc52 Merge Kb and Support modules (#1180)
* Merge Kb and Support modules

Merge the Kb and Support modules as they contain related functionality.

* General improvements to Support module UI

Update Support module copy and navigation to be more consistent, and other general improvements.

* This was missed.. and now it's not 😉

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-06 04:10:09 +00:00
dependabot[bot] 0aa91b0c03 Bump tom-select from 2.3.0 to 2.3.1 (#1775)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.3.0 to 2.3.1.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.3.0...v2.3.1)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-03 17:18:19 -07:00
FOSSBilling Bot 7717e185aa Apply PHP Code Styling & Quality Changes (#1772) 2023-11-01 08:36:29 +01:00
Adam Daley 45331a3300 Fix UpdatePatcher file actions paths (#1765)
Update UpdatePatcher to use available path constants to fix issue with detecting base path.
2023-10-31 09:56:52 +02:00
Belle Aerni a4c32d70a7 Minor improvements to Sentry.io integration (#1769)
* Remove php-http/message-factory

* Don't report error reporting changes on preview builds

We don't have a way to reliably track / compare this, so the message would otherwise almost always be displayed.

Hiding the massage on preview builds resolves that

* Downgrade errors in the API controller

None of these are really errors, so let's convert them to InformationException so they aren't captured and sent to Sentry
2023-10-31 08:14:17 +01:00
Belle Aerni 602b537996 Opt-in error reporting via Sentry.io (#1732)
* Began implementing Sentry.io support

* Added to the installer

* Added the ID to the bug report template and UI

* Hook it into our error handler, added the ability to filter by error code

* Attempting to add the DSN via GH actions

* Spelling and making PHPstan happy

* Skip exceptions for various incomplete configurations

Also brings in some of the category suggestions made by @Anuril in #195

* Update tests to account for changes

* Added & renamed exception classes

* Fix tests

* Change a bunch of items to be InformationExceptions

* Use a lighter HTTP client, fixed API error reporting

* I guess that's not needed now?

Arighty then

* Improvements, additional info added

* Update SentryHelper.php

* Improved error logging, added instance ID to error page

Also made it so that errors are correctly sent to Sentry rather than exclusively exceptions

* Make the tests happy

* Added the link, improved wording

Also removed the "performance" part of the reporting as it needs to be added to the front-end and I'm not currently implementing that

* Began implementing UI alerts and info

* Added the ability to toggle, fixed tests, use path constants

* Added some useful info & links to the page

* These should be InformationException

* Fix the automated Sentry DSN entry

* Fix the install number text

* Minor cleanup, converted more to InformationException

* Replaced some direct config references with constants

We have the BB_DEBUG constant to indicate if we have debug mode enabled or not, so we shouldn't be directly referencing it in the config file unless we actually need to do so.

Using the constant means there's less locations to update the reference if the config structure is changed

* Bugfix

* Consistency & fixed a PHPDoc

* Corrections

* We actually do want exceptions thrown here

* Change how we get the instance ID

* Stability improvements

Having support for translatable error pages was proving to be problematic, so I had to remove it.

I also had to update the exception class to handle cases where the trans function wasn't setup yet (needed for the /run-patcher page if an error occurs)

* Missed this change on git

* Also fix the variable names...

* Re-added new deps after rebase

* This should also accept "Error" types

* Added more info to the bug report and removed a dug line

* This wasn't supposed to get renamed

* Updated some missed references to Box_Exception
2023-10-28 18:40:39 -07:00
Jelmer Visser 4c33386675 Redirect admin to previous url after login (#1745)
* 1224: Redirect to previous url after login

* 1224: Early return when logged in

* 1224: Unset _url to remove it from query params

* 1224: Added redirect for guests, use of session

* 1224: Use admin prefix from config instead of static prefix

* Use the ADMIN_PREFIX constant
2023-10-27 21:17:18 +03:00
dependabot[bot] 9dcd6a4c48 Bump flag-icons from 6.11.1 to 6.11.2 (#1763)
Bumps [flag-icons](https://github.com/lipis/flag-icons) from 6.11.1 to 6.11.2.
- [Release notes](https://github.com/lipis/flag-icons/releases)
- [Changelog](https://github.com/lipis/flag-icons/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lipis/flag-icons/compare/v6.11.1...v6.11.2)

---
updated-dependencies:
- dependency-name: flag-icons
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 12:43:03 +02:00
dependabot[bot] 7946b3cc2a Bump tom-select from 2.2.3 to 2.3.0 (#1764)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.2.3 to 2.3.0.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.2.3...v2.3.0)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-27 12:42:47 +02:00
JAndreuSolerandJoan Andreu Soler 32e4b626ad Set document_nr to the Registrar_Domain_Contact (#1754)
Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
2023-10-24 22:43:52 +02:00
FOSSBilling BotandFOSSBilling Bot 7b624248e2 Apply PHP Code Styling & Quality Changes (#1752)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 13:39:02 -07:00
FOSSBilling BotandFOSSBilling Bot e7d07afa31 Update CKEditor and Related Dependencies (#1753)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-24 14:36:17 +02:00
7f689a7bba Set related order to Registrar_AdapterAbstract (#1737)
* Set related order to Registrar_AdapterAbstract

* Very minor change

---------

Co-authored-by: Joan Andreu Soler <joan.andreu@scip.es>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-10-23 23:18:30 +02:00
Jelmer Visser 2723fab090 Extend search functionality to include multiple client fields (#1746)
1686: Fixed searching multiple client fields
2023-10-21 21:00:43 +02:00
dependabot[bot] a538861bf8 Bump tom-select from 2.2.2 to 2.2.3 (#1742)
Bumps [tom-select](https://github.com/orchidjs/tom-select) from 2.2.2 to 2.2.3.
- [Release notes](https://github.com/orchidjs/tom-select/releases)
- [Commits](https://github.com/orchidjs/tom-select/compare/v2.2.2...v2.2.3)

---
updated-dependencies:
- dependency-name: tom-select
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-20 13:23:26 +02:00
dependabot[bot] d2e215807a Bump apexcharts from 3.43.0 to 3.44.0 (#1736)
Bumps [apexcharts](https://github.com/apexcharts/apexcharts.js) from 3.43.0 to 3.44.0.
- [Release notes](https://github.com/apexcharts/apexcharts.js/releases)
- [Commits](https://github.com/apexcharts/apexcharts.js/compare/v3.43.0...v3.44.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 13:14:02 -07:00
dependabot[bot] e1d97b8be5 Bump sortable-tablesort from 2.3.2 to 3.0.0 (#1734)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 2.3.2 to 3.0.0.
- [Release notes](https://github.com/tofsjonas/sortable/releases)
- [Changelog](https://github.com/tofsjonas/sortable/blob/main/CHANGELOG.md)
- [Commits](https://github.com/tofsjonas/sortable/compare/2.3.2...3.0.0)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-18 13:13:33 -07:00
Belle Aerni 28e2d824e1 Prevent errors over some CLI setups (#1729) 2023-10-17 13:26:37 -07:00
Jaap Marcus c9685e6412 #1717 Add "Port" option on add hosting server page (#1725)
* Add "Port" number on add hosting server page

* Set default value to ""

* Allow Directadmin to use configured port instead of 2222
2023-10-16 00:36:23 -07:00
Christoph Schlaepfer d7264541bd Fixes some DOM text reinterpretation issues in JS. (#1722)
* Fixed "DOM text reinterpreted as HTML error"
2023-10-13 14:48:35 +02:00
FOSSBilling BotandFOSSBilling Bot 03d7032c65 Apply PHP Code Styling & Quality Changes (#1716)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-12 14:34:18 +02:00
e0d412aa93 Installer Overhaul (#1698)
* #1583 initial workflow update using debug reference in config for install dir bypass

* #1583 add missed files

* #1583 improve config generation

* #1583 clean up docblock (issue feedback)

* fix https detection, corrected pull from upstream

* #1583 improve docker build config

* #1583 remove docker configs from repo, they have been moved to dev workflow documentation

* #1683 replace installer template assets

* #1683 initial UI layout overhaul, still need to port in some original UI logic

* #1683 initial backend overhaul, also still needs work

* #1683 misc cleanup, move license placement

* #1683 rename installer result template

* improve layout and content, fix variable naming #1683

* small fixes, readability improvement #1683

* stop passing references everywhere... use class variable instead #1683

* refactor unnecessary methods, improve more class variable references, optimize exception flow, remove duplicated method calls, verbose commenting/method renaming/code flow adjustment for readability #1683

* rename installer class (I think we deserve it at this point...) #1683

* improve form submission UX #1683

* block install if subfolder is detected #1683

* add validation for checking if we are already installed, secure against tampered requests #1683

* touch up install result for better onboarding #1683

* conver theme to jsdelivr, delete local picocss assets #1683

* fix typos #1683

* Use a local CSS file, other minor improvements

* Implemented new functionality on the install page

* Bug fix, make it more space efficient

* Minor fix

* Casing and minor JavaScript changes

* Adjusted the buttons

* Fix the blank screen issue

* window -> tab

* match other link tooltip adjustments

* update subfolder installations documentation link

* add Database prefix to db field labels

* Sentence case

* agreement checkbox

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2023-10-12 09:52:03 +02:00
FOSSBilling BotandFOSSBilling Bot 7a849bb1fc Update CKEditor and Related Dependencies (#1709)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-10 06:57:33 -07:00
FOSSBilling BotandFOSSBilling Bot 6afde30ea7 Apply PHP Code Styling & Quality Changes (#1708)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-10 14:29:34 +02:00
Belle Aerni c4c67be42f Prevent fatal errors on missing message authors (#1706) 2023-10-10 07:43:54 +02:00
Belle Aerni 464771215a Improvements to the Extension Directory integration (#1696)
* Added the ability to view extension readmes

* Move them to a new tab as well
2023-10-06 08:04:14 +03:00
FOSSBilling BotandFOSSBilling Bot c58068bc61 Apply PHP Code Styling & Quality Changes (#1694)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-05 05:46:06 -07:00
Yağızhan 1aaaabd067 Grammar (#1691)
* Grammar

* Update mod_extension_index.html.twig
2023-10-05 12:47:18 +03:00
RonandBelle Aerni 75fb9cbdcf Developer Workflow Supporting Code (#1692)
* #1583 initial workflow update using debug reference in config for install dir bypass

* #1583 add missed files

* #1583 improve config generation

* #1583 clean up docblock (issue feedback)

* fix https detection, corrected pull from upstream

* #1583 improve docker build config

* #1583 remove docker configs from repo, they have been moved to dev workflow documentation

* Two very minor changes

* Other minor changes

---------

Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-10-05 09:47:57 +02:00
Yağızhan abeee38a04 Fixed broken closing tag (#1690) 2023-10-04 09:24:40 -07:00
Yağızhan 887b84fc32 Fixed duplicated ID (#1689) 2023-10-04 09:02:06 -07:00
Belle Aerni ed73d8a14a Fix massmailer's send functionality (#1688) 2023-10-04 18:11:40 +03:00
Belle Aerni 8c7729ccd3 Miscellaneous autoloader improvements (#1676)
* Miscellaneous autoloader improvements

* Spelling

* Fixed PHPDocs
2023-10-04 07:40:19 +03:00
FOSSBilling BotandFOSSBilling Bot d3f8cb3301 Apply PHP Code Styling & Quality Changes (#1672)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-10-03 05:45:30 -07:00
Belle Aerni 730333f448 Minor improvements to Stripe & PayPal integrations (#1671) 2023-10-03 14:36:49 +03:00
Belle Aerni e212718993 Improvements to the Stripe payment gateway (#1664)
* Improvements to the Stripe payment gateway

* Actually, let Stripe fill that in

It'll pull it from the Stripe account if we don't pass it, which seems Ideal to me
2023-10-02 03:57:31 -07:00
Belle Aerni e0b84e58a7 Fix and improve cron messages in the admin panel (#1666)
* Fix and improve cron messages in the admin panel

* Add a note that the message is cached for 15 min
2023-10-02 03:32:03 -07:00
dependabot[bot] 751fd2d6a6 Bump apexcharts from 3.42.0 to 3.43.0 (#1669)
Bumps [apexcharts](https://github.com/apexcharts/apexcharts.js) from 3.42.0 to 3.43.0.
- [Release notes](https://github.com/apexcharts/apexcharts.js/releases)
- [Commits](https://github.com/apexcharts/apexcharts.js/compare/v3.42.0...v3.43.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-10-02 03:15:37 -07:00
Belle Aerni 38144df6f9 Small bug fixes (#1665) 2023-10-02 10:17:05 +02:00
Belle Aerni b8d3d35ad2 Significantly improve translation management (#1661)
* Started work on locale disable / enable functionality

* Implemented enable / disable functionality

* Implemented completion bar

* Update the preview workflow to use locale releases

* Fix typos, correct workflow

* Use the latest translation release

* Fix tests

* Fixed typo, removed crappy instructions

* fkn spelling
2023-09-30 22:19:15 +03:00
Belle Aerni 1505edae92 Revert of the model changes from the PHPStan PR (#1656)
Revert of the model changes for PHPStan
2023-09-30 22:09:53 +03:00
Belle Aerni 0feed33d73 Fix redirect issue with stripe (#1650)
Fixes Issue that redirected users to the admin login page after payment with stripe was complete, due to a bug in the email template engine.
2023-09-28 18:53:32 +02:00
FOSSBilling BotandFOSSBilling Bot 76d89eb410 Apply PHP Code Styling & Quality Changes (#1649)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-09-28 05:29:52 -07:00
f2f9701359 Mark as paid now adds funds if the Payment Provider is "Custom". (#1487)
* When you press the "Mark as paid" Button on the invoice, you can now enter a transaction id.
If the Payment gateway of the Invoice is "Custom" and it's enabled, the transaction ID will be used to add transactions that add funds in the amount of the invoice to the customer. Then, it will be marked as paid, just like with any other payment provider.

* Added processTransaction method to the Custom Payment Gateway.
* Fixed tests by removing unnecessary tests for Payment Adapters that don't have the processTransaction method.


---------

Co-authored-by: Christoph Schläpfer <chris+github@cleverly.ch>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
Co-authored-by: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com>
2023-09-28 13:14:06 +02:00
Belle Aerni bf3c40719e Quick fix to the models (#1648) 2023-09-28 12:25:22 +02:00
Belle Aerni 1881ff7bfb Bump PHPStan analysis level (#1641)
* Bump PHPStan to level 2
2023-09-28 09:06:58 +02:00
Belle Aerni 566a621ad4 Implement a basic "confidence" system for fingerprinting (#1634)
* Rework how fingerprints are determined to be valid

* Spelling

* Fixed a typo, added a bit more info
2023-09-27 16:26:42 -07:00