Commit Graph
38 Commits
Author SHA1 Message Date
Belle AerniandJohn @ S4 037acce702 Bulk fix of many grammar / phraseology mistakes (#2166)
* Bulk fix of many grammar / phraseology mistakes

* Small fixes after self-review

* Corrections

* Update mod_currency_settings.html.twig

* Update mod_currency_settings.html.twig

* Update mod_formbuilder_field.html.twig

---------

Co-authored-by: John @ S4 <64874788+John-S4@users.noreply.github.com>
2024-02-27 03:01:07 -08:00
Belle Aerni d771457efc Bump the year (#2167)
* Bump the year

* And fix the spelling
2024-02-25 02:45:38 -08:00
FOSSBilling BotandFOSSBilling Bot 0962197654 Apply PHP Code Styling & Quality Changes (#1994)
Co-authored-by: FOSSBilling Bot <fossbilling-bot>
2023-12-19 08:36:32 -08:00
Belle Aerni da4cd44590 Bugfixes (#1978)
* Fixed public tickets

* Resolved the most common reported errors
2023-12-15 23:26:33 +00:00
Belle Aerni c405c2092d Migrated the custom form template to BS 5 (#1968) 2023-12-14 14:05:33 -08: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 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
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
Belle Aerni 1881ff7bfb Bump PHPStan analysis level (#1641)
* Bump PHPStan to level 2
2023-09-28 09:06:58 +02:00
fefbcd21b0 Apply PHP Code Styling & Quality Changes (#1498)
* Apply PHP Code Styling & Quality Changes

* Delete these

* Update .gitignore

* Fixes for PHPStan

* Ignore spelling in the gitnore

* Allow null for that type

Honestly doing so makes ZERO sense, but it matches the current behavior.

---------

Co-authored-by: FOSSBilling Bot <fossbilling-bot>
Co-authored-by: Belle Aerni <belleaerni@gmail.com>
2023-07-30 08:57:44 -07:00
Yağızhanandfossbilling-bot fd872ac941 Implement PHP-CS-Fixer as an automated workflow (#1240)
* Implement PHP-CS-Fixer as an automated workflow

* Apply PHP-CS-Fixer changes

---------

Co-authored-by: fossbilling-bot <121974958+fossbilling-bot@users.noreply.github.com>
2023-07-30 06:49:11 -07:00
Belle AerniandJohn @ S4 20e38a162f Exception messages cleanup (#1376)
* Misc exception messages improvements

* Cleanup / improve server manager exceptions

* Tests :)

* Some registrar exception cleanup

* Clean up payment gateway exceptions

* Some other misc improvements

* Update Resellerclub.php

* Fix typo in Namecheap error message

---------

Co-authored-by: John @ S4 <64874788+John-S4@users.noreply.github.com>
2023-07-03 14:54:23 -07:00
Belle Aerni 6df45bab4c Fix & improve formbuilder layout + update last patch (#1324) 2023-06-13 19:07:16 -07:00
Yağızhan d909d77f7e -Unnecessary whitespace in the class headers (#1219) 2023-05-07 13:24:29 -07:00
Yağızhan 412e4a9fbd Standardized the class headers (#1212) 2023-05-06 13:06:17 +01:00
Adam Daley e54569d2cd Introduce namespaces and strict typing for FOSSBilling library classes (#1206) 2023-05-04 01:02:06 +01:00
Yağızhan 950e4dccef Type hinting the DI methods and variables (#1201) 2023-05-01 21:01:35 +03:00
Adam Daley 053f22a8bb Remove Box DI class in favour of native dependencies (#1193) 2023-04-30 08:47:52 +01:00
Belle AerniandAdam Daley e3d6bc9ad9 Introduce a cspell workflow (#1192)
* Introduce a cspell workflow

* Update cspell.yml

* Update cspell.yml

* Why is it seemingly ignoring the config?

* Waiit a min

* Fixed a bunch of spelling mistakes

* And set it back to incremental mode

* That is actually supposed to be spelled wrong..

Because BoxBilling :)

* Capitalization

* I swear I fixed this as well

* Update cspell.json

---------

Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2023-04-30 00:05:25 -07:00
Yağızhan a406876cb7 Minor PHPDoc update (#1145)
* Dropped Box_FileCacheException

* Minor PHPDoc update
2023-04-22 17:40:11 +01:00
Belle Aerni 50fc50163f Clean up deprecated CSS (#1063)
* Clean up deprecated CSS

* Fix a few old button classes

* Port Servicelicense pages to tabler

* Remove a bunch of old icons

* Run Huraga and Installer CSS through autoprefixer
2023-04-06 15:05:28 -07:00
Belle Aerni 9faa981c58 Replace usage of array_get (#989)
* Replace usage of array_get

* Fixes

* And a few more

* Remove remaining references

* Update Service.php

* Few more fixes

* Fix.. I think?

* Fix Client / Invoice updates

* Fix stats

* Fix issues noticed during code review

* More fixes

* And some more fixes :)
2023-03-27 23:44:30 -07:00
Shamshid d762821504 Replace jQuery Alert with Tabler modal for Form Builder (#929) 2023-03-14 17:32:49 +00:00
Shamshid fe0adc4add improve Form Builder design (#914) 2023-03-09 09:45:01 +01:00
Shamshid e4d7996530 Upgrade jquery to v3 and cleanup related deprecations (#904)
* fix deprecations by using `.on()` method

* replace keyCode event with key

* use jquery v3 from npm

* fix support ticket canned response by replacing select2 lib

* fix `ajaxStart()` method requirement to be document

* remove jquery uniform()

* remove jquery.scrollTo

* finally, remove jquery v1

* remove unused CSS

* move canned_ticket_response style

* fix deprecated `:eq()` selector

* fix jquery.alert by adding package to bring in removed $.browser feat from v1

* fix escape key

* add comment for clarity on the added package

* remove unused css

* remove duplicate jquery-ui css
2023-03-08 08:57:35 +00:00
Yağızhan bbbd6828e0 Introduced the new Modals toolkit (#903)
* The first editions of the new modals toolkit

* Make the modals centered and implement it to the batch delete partial

* Made CodeFactor happier

* Combining 'danger' and 'success' into one

* New 'small' modal type.

* Added 'small-confirm' type and refactored the massmailer template a bit.

* Minor refactoring for the form builder module

* Make apiLink use modals to confirm

* Minor updates

* Made the "notes" icon visible again and got rid of some jQuery

* Cleared some leftover jQuery code here and there
2023-03-07 21:38:40 -08:00
Belle Aerni 805119f8e6 Make the Formbuilder slightly less ugly (#901) 2023-03-06 21:58:07 +01:00
Belle Aerni 9976a2185d Fix the "Add new option" button in the form builder (#895) 2023-03-06 01:44:27 -08:00
Belle Aerni 45183e6308 Fix saving in the form builder (#893) 2023-03-06 08:53:55 +02:00
imgbot[bot]andImgBotApp 4d91f387d6 [ImgBot] Optimize images (#880)
*Total -- 84.07kb -> 66.40kb (21.02%)

/src/themes/huraga/assets/img/template_logo.png -- 20.97kb -> 9.30kb (55.66%)
/src/themes/huraga/assets/img/loader.gif -- 8.92kb -> 6.78kb (23.91%)
/src/themes/admin_default/images/patbg2.png -- 1.08kb -> 0.91kb (15.32%)
/src/themes/huraga/assets/img/logo.png -- 25.87kb -> 22.49kb (13.05%)
/src/themes/admin_default/assets/icons/arrow-up.svg -- 0.41kb -> 0.39kb (4.57%)
/src/themes/huraga/assets/img/fb_wallet.svg -- 1.35kb -> 1.30kb (3.77%)
/src/themes/admin_default/assets/icons/copy.svg -- 0.41kb -> 0.39kb (3.61%)
/src/themes/admin_default/assets/icons/heart.svg -- 0.38kb -> 0.36kb (2.86%)
/src/themes/admin_default/assets/icons/plus.svg -- 0.22kb -> 0.21kb (2.68%)
/src/modules/Orderbutton/assets/img/assets/loaders/loader2.gif -- 4.08kb -> 4.02kb (1.53%)
/src/themes/huraga/assets/img/logo.svg -- 3.58kb -> 3.53kb (1.42%)
/src/themes/huraga/assets/img/logo_white.svg -- 3.72kb -> 3.67kb (1.36%)
/src/modules/Wysiwyg/icon.svg -- 0.15kb -> 0.15kb (1.29%)
/src/modules/Dashboard/icon.svg -- 0.15kb -> 0.15kb (1.28%)
/src/modules/Orderbutton/assets/img/assets/loaders/loader1.gif -- 0.59kb -> 0.59kb (0.99%)
/src/modules/Spamchecker/icon.svg -- 0.23kb -> 0.22kb (0.87%)
/src/modules/Massmailer/icon.svg -- 0.24kb -> 0.23kb (0.83%)
/src/modules/Email/icon.svg -- 0.24kb -> 0.23kb (0.83%)
/src/modules/Embed/icon.svg -- 0.25kb -> 0.24kb (0.8%)
/src/modules/Redirect/icon.svg -- 0.26kb -> 0.25kb (0.76%)
/src/modules/Currency/icon.svg -- 0.27kb -> 0.27kb (0.71%)
/src/modules/Branding/icon.svg -- 0.28kb -> 0.28kb (0.7%)
/src/modules/Formbuilder/icon.svg -- 0.29kb -> 0.29kb (0.67%)
/src/modules/News/icon.svg -- 0.30kb -> 0.30kb (0.66%)
/src/modules/Invoice/icon.svg -- 0.31kb -> 0.31kb (0.62%)
/src/modules/Staff/icon.svg -- 0.38kb -> 0.37kb (0.52%)
/src/modules/Servicemembership/icon.svg -- 0.38kb -> 0.38kb (0.51%)
/src/modules/Custompages/icon.svg -- 0.40kb -> 0.40kb (0.49%)
/src/modules/Orderbutton/icon.svg -- 0.40kb -> 0.40kb (0.48%)
/src/modules/Example/icon.svg -- 0.42kb -> 0.42kb (0.47%)
/src/modules/Notification/icon.svg -- 0.42kb -> 0.42kb (0.46%)
/src/modules/Seo/icon.svg -- 0.48kb -> 0.47kb (0.41%)
/src/modules/Order/icon.svg -- 0.49kb -> 0.49kb (0.4%)
/src/modules/Queue/icon.svg -- 0.50kb -> 0.50kb (0.39%)
/src/modules/Cron/icon.svg -- 0.51kb -> 0.51kb (0.38%)
/src/modules/Kb/icon.svg -- 0.52kb -> 0.51kb (0.38%)
/src/modules/Support/icon.svg -- 0.63kb -> 0.63kb (0.31%)
/src/modules/Theme/icon.svg -- 0.64kb -> 0.64kb (0.3%)
/src/modules/Client/icon.svg -- 0.66kb -> 0.66kb (0.3%)
/src/modules/Cookieconsent/icon.svg -- 0.71kb -> 0.71kb (0.27%)
/src/modules/System/icon.svg -- 0.98kb -> 0.98kb (0.2%)
/src/modules/Paidsupport/icon.svg -- 1.02kb -> 1.02kb (0.19%)

Signed-off-by: ImgBotApp <ImgBotHelp@gmail.com>
Co-authored-by: ImgBotApp <ImgBotHelp@gmail.com>
2023-03-01 23:35:16 -08:00
ShamshidandYağızhan cdca4b7e50 Add/replace modules icon and update manifest (#872)
* add/replace modules icon and update manifest entry

* update modules manifest homepage_url

* include svg to set color via css

* +Attribution

---------

Co-authored-by: Yağızhan <yagizhan49@protonmail.com>
2023-03-01 19:46:57 -08:00
Belle Aerni 774f0d5c95 Use Rector to modernize code for PHP 8.0 2023-01-12 00:40:54 -08:00
Ruben Uijtdewilligen 540c46dfbb BugFix: Modal wasn't displayed correctly (#681) 2023-01-09 21:38:06 +01:00
evrifaessa 9b16c0e075 The module should get a complete refactor. But this should have it working. 2022-12-19 22:30:22 +03:00
Belle Aerni 758d475337 Fix some mixing icons in the form builder 2022-12-08 00:56:43 -08:00
Belle Aerni 695d2df3c2 Hotfix for issues caused by the CSRF token system 2022-12-07 14:12:05 -08:00
Belle Aerni 8821d50cff Created a CSRF token system (#526)
* Implement a basic CSRF token system

* Update forms for all modules

* Added to the theme forms

* Create a config option for CSRF prevention

* Slightly rework the filter

* Let's actually use a global var

* Added the token to API hrefs

* Fixup

* Remove old reference

* Added the token to the installer twig globals

* The token isn't actually needed in the installer

* Fix client searching

* Whoops - those need quotes
2022-12-06 18:47:14 +01:00
Belle Aerni edd6f72634 Drop the "BB" prefix 2022-11-28 17:22:50 +03:00