Commit Graph
2605 Commits
Author SHA1 Message Date
Belle Aerni 8bd8211a2a Minor bugfixes for 0.6.0 (#1928) 2023-12-06 12:28:28 +01:00
FOSSBilling BotandFOSSBilling Bot 04af9aa5d7 Apply PHP Code Styling & Quality Changes (#1923)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-12-05 13:14:36 -08:00
Belle Aerni c56763e2fe Include an empty cache dir (#1924)
* Added the cache dir to git

* And now add it back to the gitignore
2023-12-05 12:27:10 -08:00
Adam Daley 3ca602d5c6 Update CI to include preview build and upload steps (#1915) 2023-12-04 10:05:59 +00:00
Belle Aerni 4b0390bb1c Fixed issue with the domain management page (#1914)
Just replaces the jQuery code that's not working correctly
2023-12-02 22:41:38 -08:00
Belle Aerni 0efd559c92 Remove the old ISPConfig3 and Virtualmin server mgr files (#1913) 2023-12-02 22:07:25 -08:00
Belle Aerni 59027a10f4 Add a configurable cron API guest endpoint (#1909)
* Add a configurable cron API guest endpoint

* PHPDoc changes

* Fix the test, added a last run check
2023-12-02 18:44:13 -08:00
Belle Aerni d0b92b4231 Fix TLD and registrar deletion (#1910)
* Fix TLD and registrar deletion

* Remove the unused function
2023-12-02 01:00:17 +00:00
FOSSBilling BotandFOSSBilling Bot c80806487a Apply PHP Code Styling & Quality Changes (#1906)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-30 09:52:54 -08:00
Belle Aerni 9191c0e1e1 Ensure invoice authentication is on by default + bugfix (#1905) 2023-11-29 19:50:09 -08:00
Belle Aerni f3b4913a46 Minor debugbar optimization for prod (#1904) 2023-11-29 18:57:32 -08:00
Belle Aerni 5cbf3e5252 Fix the badge text colors in the admin dashboard (#1903) 2023-11-29 18:51:56 -08:00
Belle Aerni be36d68f61 Restructure the redirect after login functionality (#1897)
* Restructure the login after redirect functionality

* Initialize the session in the start of the app

* Fix the test

* That 100% needs to come after the fallback patcher
2023-11-29 08:45:55 +02:00
Belle Aerni 17171d3db2 Ensure we are correctly responding to HEAD requests (#1896) 2023-11-29 02:52:50 +00:00
Belle Aerni a106ecaac6 Use a better disposable domain email database (#1893)
* Switched the disposable email list

* Correctly remove comments

* Mention what DB is used and their license
2023-11-29 01:56:22 +00:00
Adam Daley 755a33050d Streamline CI workflows (#1229)
* Move PHP build and test steps to reusable workflows

* Update Spellcheck CI workflow

* Ignore erroneous PHPStan error in SentryHelper

* Update workflows to run on renovate branches
2023-11-29 00:56:25 +00:00
Belle Aerni e4b871d259 Begin replacing outdated jQuery in Huraga (#1889)
* Begin replacing outdated jQuery in Huraga

* Handled some more stuff

* Replaced bb.msg usage with FOSSBilling.message
2023-11-28 16:47:57 -08:00
e640e83d58 Apply PHP Code Styling & Quality Changes (#1892)
* Apply PHP Code Styling & Quality Changes

* Update SentryHelper.php

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-11-28 16:41:31 -08:00
Belle AerniandAziz Ozbek b94d9321de Implemented SSO support for server managers (#1888)
* Implemented SSO support for server managers

Co-Authored-By: Aziz Ozbek <aziza2772@gmail.com>

* Fixed typos

* Fixed a few untranslatable strings

---------

Co-authored-by: Aziz Ozbek <aziza2772@gmail.com>
2023-11-26 14:37:02 -08:00
Belle Aerni a3b6180abf Fix the issue John noticed (#1870)
* Fix the issue John noticed

* QoL: Don't delete it when debug mode is enabled
2023-11-25 04:01:08 +00:00
FOSSBilling BotandFOSSBilling Bot f136352b31 Apply PHP Code Styling & Quality Changes (#1865)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-25 02:55:31 +00:00
renovate[bot] 1d2ac209f1 Update dependency sortable-tablesort to v3 (#1881)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-25 01:52:56 +00:00
renovate[bot] 77e7cfeb5e Update dependency flag-icons to v7 (#1880)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-25 01:43:38 +00:00
renovate[bot] 90c5107a3c Update dependency flag-icons to v6.15.0 (#1875)
* Update dependency flag-icons to v6.11.2

* Update dependency tom-select to v2.2.3

* Update dependency flag-icons to v6.15.0

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-25 01:09:02 +00:00
Belle Aerni 5c7718bf89 Prevent duplicated email logs in DB (#1866)
* Prevent duplicated email logs in DB

Also fixed installer the massmailer module

* Fix the test
2023-11-24 22:42:12 +00:00
51cbebda71 Migrate Huraga and all client templates to bootstrap 5 (#1602)
* Begin migration from BS 3.4.1 to BS 4

This is still entirely untested, I just read the docs and made some quick changes to follow it. Now I need to actually dig in and fix what was broken by this.

This is going to be the most painful upgrade path as BS 4 basically rewrote everything

* Started porting Huraga over to bootstrap

* Fix public dashboard for guests

* Minor fix for a long-standing issue

Resolves #412

* Fix the breadcrumb placement

* Migrate the client balance page

* Migrate the order list template

* Migrated the news pages

* Fix & improve breadcrumbs

* Remove outdated options, update showcase

* Migrated the KB pages

* Removed the company name from the header

* Remove the order popup menu

The way it's done is ugly and I don't like it, so instead let's just have those buttons take you to the actual order page

* Migrate the error page

* Fix the mobile layout, make the menu work

This makes it actually functional on mobile, although the nav menu is hideous and needs more work

* Migrate the Invoice templates

* Replace old usage of bb-btn

* Migrate the profile page

* Improve invoice

* Migrated a bunch of templates

The order management screen needs work to make it usable, but the layout is done and functional

* Improved usability on small devices + nav fixes

* Migrated login, signup, and PW reset templates

* TOS, Privacy Policy, & About + made them full-page

* Migrated support related templates

* Completed order management page

* Mobile usability improvements

* Remove outdated table logic

* Enhance Huraga with Bootstrap 5 Support and Design Improvements (#1612)

* setup package json

* set encore and postcss config

* add Huraga sass and js

* partially bring in legacy Huraga design in BS5

* improve design

* replace f16 flag icons with flag-icons

* add more order status badge

* add breadcrumb and replace card design for footer pages

* improve card text color

* improve invoices index

* improve footer link color

* add failed_renew badge

* change paid invoice button color

* apply muted text color to whole footer texts

* replace bs colors with tailwind

* improve payment history and replace it with Wallet

* replace layout nav icons with MDI svg

* remove icon and rename ticket modal title

* improve order page design

* replace iframe with twig include and improve accordion

* fix tabs and improve account form

* remove accordion chevron icon

* add mistakenly removed postcode

* use tom-select for language selector

* fix the product config tabs and improve form

* improve order form

* fix and improve news module design

* improve and fix tabs of profile page

* fix spacing on card header

* improve public page design

* Improve emails card

* use API.js to login

* improve public pages by replacing jquery and bb-jquery

* improve contact us page and fix minor spacing

* improve Cookieconsent design

* minor improvements to auth error message

* fix toast message for funds form

* improve custom page card

* Improve Kb, servicedomain and orderbutton modules

* fix ticket modal submission

* improve Invoice page

* minor fixes

* Replace Google Font with local font for Inter

* Fix ticket modal

* add offcanvas and describedby

* fix service ticket modals

* set github markdown for support ticket conversation

* minor improvements to order and servicehosting

* improve error page design

* add flashMessage method

* Improve emails module

* hide warning on empty api key

* more improvements to Emails

* remove stripes from services table

* add BS5 support for pagination

* improve emails pagination

* place asterisk using js (Firefox does not support :has())

* add auth class for asterisk to be ignored

* Updated the npm lockfile, replaced BB_URL references

* Ported back some changes

* Use web-safe fonts (Verdana)

* Some adjustments

* Resolve issues after recent merger of KB and support

* Reviewed the BS 5 migration guide

* Remove the "proforma" labeling

AFAIK the old behavior was never truly proforma, but things have been changed since then anyways so now it's definitely not

* Bug fixes and removed unused deps

* Bug fixes

* Revised the KB article template

* Further improvements & fixes. New default config

* Update settings_data.json.example

* Fix: emails can change the page layout / styling

This was a PITA, but I got it to (mostly) work quite well.
The full list does as it should, but the individual email page didn't work correctly with the autosizing so that's just hardcoded in size.

I don't think most will use that page over the complete list, but even if they do an an email is too long a scroll bar will be visible so it's good enough till we find a better solution

* Spelling

* Ignore iframes for spelling

* Fix the checkout process

* Improved table consistency

* Migrated the new password reset template

* A create account button doesn't make sense there..

* QC: Replaced unnecessary custom JS code

* Fixed a grammatical error

Fix originates from PR #1868

Co-Authored-By: Duncan Bennie <33364216+DuncanBennie@users.noreply.github.com>

* Addressed feedback and suggestions

---------

Co-authored-by: Shamshid <shmshd12@gmail.com>
Co-authored-by: Duncan Bennie <33364216+DuncanBennie@users.noreply.github.com>
2023-11-24 12:28:43 -08:00
Belle Aerni 50a198de6d Fix DebugBar error when rendering twig exceptions (#1854) 2023-11-22 14:18:56 +02:00
Belle Aerni cd002b4729 Rebuilt the requirements class (#1858)
* Rebuilt the requirements class

* Update cspell.json
2023-11-22 15:05:50 +03:00
Belle Aerni 5bd3ff7751 Begin reworking permission management (#1545)
* Begin reworking permission management

* Tests

* This.. tested functionality that didn't exist in the app

* Fixes

* Added permission checks for the system module

* Implemented extension settings permission

The "extension" settings page will now check for permission before allowing a staff member to even visit the settings page for a client.

FOSSBilling will also check for permission before saving a new config so the API can't be used to bypass this limitation.

I also removed a test as it was checking a function which only ever had one possible return value, no point in updating it to work with this PR

* This should fix the test

* I got a little mixed up with that, but this should work

* Fixed the tests

* Implemented give all & revoke all buttons

* Implemented more, enhancements, & bugfix

* Rename function

* Fix tests

* Optimize, address comment

* Now let's make the tests happy again

* Deduplicate code, cleanup a bit

* Bugfix

* Added selectbox support to the front-end

* Quick bugfix

* Fix issue PHPStan detected

* Bug fix

* Improved page layout & styling

* Implemented more checks

* Fix the tests

* Update error.html.twig

* Cleanup

* Fix the tests

* Updated the design to be more space efficient

* Don't list module access when always given

* Updated the exception type

* setMethod -> onlyMethods

* I donno how that got goofed up

* Fix the test, email module should always be accessible

* Removed the broken test

It's.. not really checking anything anyways. Just that the `extension` module is in a hardcoded array.
2023-11-21 16:18:53 -08:00
FOSSBilling BotandFOSSBilling Bot ee1c0f33fa Apply PHP Code Styling & Quality Changes (#1856)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-21 11:27:18 -08:00
Belle Aerni ae0083141d Fix updating from previous releases (#1852) 2023-11-20 22:38:57 +00:00
dependabot[bot] fb47d47ec5 Bump flag-icons from 6.15.0 to 7.0.2 (#1850) 2023-11-20 10:40:02 +00:00
Belle Aerni 4b53bff9e6 Improved backup patching (#1849) 2023-11-20 07:51:59 +02:00
Belle Aerni 64edea94c4 Cache extension configs (#1848)
* Cache extension configs

* Adjusted the tests

* Use ArrayAdapter
2023-11-19 01:24:36 +01:00
Belle Aerni 6a20f7cc06 Fix a logged error (#1847) 2023-11-18 19:27:19 +03:00
dependabot[bot] 1f869237c6 Bump sortable-tablesort from 3.0.0 to 3.1.0 (#1845)
Bumps [sortable-tablesort](https://github.com/tofsjonas/sortable) from 3.0.0 to 3.1.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/3.0.0...3.1.0)

---
updated-dependencies:
- dependency-name: sortable-tablesort
  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-17 20:31:11 +03:00
Belle Aerni 6006bfa264 Resolve events being duplicated in Sentry (#1844)
* Resolve events being duplicated in Sentry

* Fixed a typo

* Aaaand restored the placeholder

* Also adjust the API code
2023-11-17 09:00:05 +02:00
Belle Aerni 60f1f5c155 Enable stock control for all product types (#1840) 2023-11-17 08:59:51 +02:00
Belle AerniandYağızhan 865b0b6159 Implemented PHP DebugBar (#1825)
* Brought in the debugbar extension

Co-Authored-By: Yağızhan <hi@yagiz.dev>

* Completely restructured

Redid the previous work to allow us to pass around a single instance of the debug bar, allowing us to leverage more types of data collection.

* Added some more time measurements

* Enabled HTML var dumper, added config collector

* Fix

---------

Co-authored-by: Yağızhan <hi@yagiz.dev>
2023-11-16 23:21:14 +00:00
FOSSBilling BotandFOSSBilling Bot a73c570abc Apply PHP Code Styling & Quality Changes (#1841)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-16 07:51:45 -08:00
Belle Aerni 0136740a9e Fix email resend option (#1833)
* Fix email resend option

* Return the testing check
2023-11-14 19:37:53 +00:00
Belle Aerni add20b6281 Resolve reported errors (#1836)
* Resolve reported errors

* Update ServicePayGatewayTest.php
2023-11-14 19:25:17 +01:00
FOSSBilling BotandFOSSBilling Bot 9f3fb51377 Apply PHP Code Styling & Quality Changes (#1834)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:43:14 -08:00
FOSSBilling BotandFOSSBilling Bot e315b1a23a Update CKEditor and Related Dependencies (#1835)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-11-14 04:42:28 -08:00
Belle Aerni 7c36b25763 Remove the generate EU VAT rates button (#1826)
* Remove the generate EU VAT rates button

* Update AdminTest.php
2023-11-14 10:07:56 +01:00
Aziz Ozbek c5aa88628e Plesk server manager change password fix (#1809)
* htmlspecialchars password

Solution for
Warning: SimpleXMLElement::addChild(): unterminated entity reference

* Remove htmlspecialchars
2023-11-13 12:26:23 +02:00
Belle Aerni d9d97c9a64 Allow clients to choose if they want a subscription (#1800)
* Allow clients to choose if they want a subscription

* Spelling

* Fixed it

* Improved wording

* I wish I had spellcheck in VS Code

* Made it configurable
2023-11-13 10:44:49 +01:00
Belle Aerni 63b1e66caf Massmailer bugfixes & improvements (#1817)
* Prevent Massmailer from duplicating recipients

* Minor optimization

We don't need this info as it's actually fetched in a later step. All we need from this step is the ID of each client

* Further optimize using the DISTINCT SQL query option

Thanks to @evrifaessa for pointing out this is an option.
Should be more efficient to let the SQL engine do the worth rather than doing it via PHP

* Further optimization, fixed filter selection in the UI

* Added the ability to see the list of recipients

* Update cspell.json
2023-11-13 10:42:23 +01:00
Yağızhan 4bf62accec +question-mark.svg & clock.svg (#1819)
* +question-mark.svg

* Add files via upload
2023-11-12 21:02:47 +01:00
Yağızhan 3c11f9a97a Clear the cache after the patches are done (#1818) 2023-11-12 11:02:49 +01:00