Commit Graph
40 Commits
Author SHA1 Message Date
renovate[bot] 668d651e9b chore(deps): update actions/setup-node digest to 6044e13 2026-01-16 02:36:27 +00:00
renovate[bot] b6b3b01021 chore(deps): update fossbilling/.workflows digest to 11c3d3b 2026-01-06 01:55:25 +00:00
8dc2d0f39b Migrate asset build system from Webpack Encore to esbuild (#3126)
* Migrate asset build system from Webpack Encore to esbuild

Replaces Symfony Webpack Encore with esbuild for frontend asset compilation. Updates documentation, removes related dependencies and config files, and adds esbuild configuration for themes. This modernizes the build process for improved speed and maintainability.

* Remove redundant comments and spinner from build scripts

Cleaned up code by removing unnecessary comments and the spinner utility from esbuild scripts in admin_default and huraga themes. Also simplified logic in API handler, currency entity, currency service, and profile client validator by removing redundant comments and streamlining null/empty checks.

* Add new terms to cspell custom dictionary

Added 'Spriter', 'spriter', 'dataurl', and 'tomselect' to the cspell custom words list to prevent false spelling errors for these terms.

* Potential fix for code scanning alert no. 422: Shell command built from environment values

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Refactor theme build to use custom SASS and PostCSS pipeline

Replaces direct SCSS imports in JS with a custom esbuild pipeline for both admin_default and huraga themes. Adds SASS and PostCSS (autoprefixer) processing via esbuild plugins, improves tilde (~) import resolution, and ensures CSS is post-processed and source maps are handled. This change modernizes and unifies the asset build process, making it more maintainable and extensible.

* Update sass import and flag-icons path in themes

Changed sass import to use namespace import in both admin_default and huraga esbuild.mjs files for consistency. Set $flag-icons-path in huraga _flags.scss to ensure correct path resolution for flag-icons assets.

* Refactor theme CSS build to use vendor bundles

Introduces separate vendor.css files for both admin_default and huraga themes, consolidating third-party CSS imports. Updates esbuild scripts to build and include these vendor bundles, removes tilde (~) importers, and adjusts SCSS to use CSS variables instead of direct SCSS variable imports. Twig templates are updated to load the new vendor.css files, and Huraga's theme variables are migrated to CSS custom properties for better maintainability.

* Update `package-lock.json` with new CKEditor 5 packages

Added and updated multiple @ckeditor/ckeditor5-* packages to version 47.3.0 and related dependencies. This change likely prepares the project for enhanced or new CKEditor 5 features and plugins.

* Refactor theme build scripts and add shared utils

Introduces a new `@fossbilling/frontend-build-utils` package with shared helpers and esbuild plugins for theme builds. Refactors admin_default and huraga esbuild scripts to use these utilities, improving maintainability and reducing code duplication. Removes unused `sprite.js` and updates asset handling. Updates workspace configuration in `package.json` and `package-lock.json`.

* Refactor theme asset build paths and add svg sprite helper

Migrates theme asset outputs to 'assets/build' directories for both admin_default and huraga themes, updating all references and build scripts accordingly. Adds a Twig function for inlining SVG sprites. Updates SQL defaults and patcher for new asset paths. Removes direct jQuery imports from theme JS entrypoints and uses an esbuild inject shim for global jQuery. Also includes minor CSS and manifest adjustments.

* Potential fix for pull request finding 'Unused variable, import, function or class'

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>

* Add PurgeCSS plugin and integrate with theme builds

Introduced a new PurgeCSS plugin in frontend-build-utils to remove unused CSS from bundled files. Updated package.json and package-lock.json to include PurgeCSS and its dependencies. Integrated the plugin into the esbuild scripts for admin_default and huraga themes to enable CSS purging in production builds.

* Set NODE_ENV=production for frontend build

Ensures the frontend assets are built with production optimizations by explicitly setting NODE_ENV=production during the build step in the release workflow.

* Fix static analysis warning in module directory scan

Updated the type check in the module directory scan to use a null coalescing operator, improving compatibility with static analysis tools like PHPStan.

* Update PHPStan baseline for ctype_alnum argument count

Added a new baseline entry to ignore an argument count warning for ctype_alnum in src/modules/Extension/Service.php.

---------

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
2025-12-30 09:40:04 +00:00
Adam Daley 136480860b Raise minimum PHP version requirement to 8.3 (#3125)
* Raise minimum PHP version requirement to 8.3

Update all documentation, configuration, Composer requirements, and CI workflows to require PHP 8.3 or higher. Remove `symfony/polyfill-php83` and add `symfony/polyfill-php85`. Adjust installer and requirements checks accordingly.

* Update PHP version and dependencies

Remove PHP 8.5 from CI and workflows, standardizing on PHP 8.3 and 8.4. Update Composer dependencies in composer.json to latest compatible versions for both required and dev packages.
2025-12-30 08:13:04 +00:00
renovate[bot] efb320c31a chore(deps): update fossbilling/.workflows digest to 684dd30 2025-12-18 00:02:34 +00:00
renovate[bot] 49df27d339 chore(deps): update github artifact actions (major) (#3102)
chore(deps): update github artifact actions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-12-13 03:23:20 +00:00
renovate[bot] b293710d12 chore(deps): update actions/setup-node digest to 395ad32 2025-12-04 02:38:36 +00:00
renovate[bot] 0c7360d6cb chore(deps): update actions/checkout digest to 8e8c483 2025-12-03 03:03:41 +00:00
renovate[bot]andAdam Daley 302206803e chore(deps): update dependency sass to v1.94.2 (#3045)
* chore(deps): update dependency sass to v1.94.2

* Fix Renovate `npm install`/`package-lock.json` issues

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Adam Daley <admdly@users.noreply.github.com>
2025-11-20 21:17:37 +00:00
renovate[bot] f05148e197 chore(deps): update actions/checkout action to v6 (#3043)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-11-20 19:54:22 +00:00
renovate[bot] 48836e16cb chore(deps): update actions/checkout digest to 93cb6ef 2025-11-18 02:58:17 +00:00
renovate[bot] 532100b289 chore(deps): update fossbilling/.workflows digest to efee8f8 2025-11-07 00:34:33 +00:00
renovate[bot] 06e24e5925 chore(deps): update dependency node to v24 (#2996)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-28 15:55:26 +00:00
renovate[bot] 0c01cbbe63 chore(deps): update github artifact actions (major) (#2990)
chore(deps): update github artifact actions

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-27 06:15:52 +00:00
renovate[bot] 65ad15905f chore(deps): update actions/setup-node action to v6 (#2972)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-16 17:54:00 +01:00
renovate[bot] 1a3c568b0f chore(deps): pin dependencies (#2947)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-10-05 01:59:06 +01:00
renovate[bot] cf4b084e9f chore(deps): update fossbilling/.workflows digest to 5effb80 2025-09-17 00:50:39 +00:00
renovate[bot] 9663e6000d chore(deps): update actions/setup-node action to v5 (#2896)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-09 14:07:36 +03:00
renovate[bot] 5e28c9f3c0 chore(deps): update fossbilling/.workflows digest to 19dd414 2025-08-25 01:56:22 +00:00
renovate[bot] c3aab64242 chore(deps): update actions/checkout action to v5 (#2859)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-12 03:13:17 +01:00
renovate[bot] 6bb90d4a5f chore(deps): update dependency node to v22 (#2854)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-11 17:00:17 +03:00
renovate[bot] e3554a7995 chore(deps): update fossbilling/.workflows digest to 3e9ace8 2025-03-01 19:16:29 +00:00
Adam Daley a3f0097b97 Update package-lock.json (#2607)
* Update package-lock.json

* Update release-build CI workflow
2025-02-19 23:51:39 +00:00
Belle Aerni fd1cfbe434 Fix: old translations were being downloaded (#2591) 2025-02-01 15:46:49 -08:00
renovate[bot] 7ecdc48d26 chore(deps): update fossbilling/.workflows digest to 605d1f1 2024-12-03 06:42:35 +00: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 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
renovate[bot] 368a7de6ec chore(deps): update fossbilling/.workflows digest to 718e45c 2024-06-26 02:17:00 +00:00
renovate[bot] 41bc7d4d49 chore(deps): update fossbilling/.workflows digest to b350db4 2024-05-27 00:05:03 +00:00
Belle Aerni ac67a8f930 Remove the locale submodule, replaced the release downloader action (#2136) 2024-02-13 13:02:25 +00:00
Belle Aerni c86d56c97f Fix translations (#2116)
Test revert
2024-02-02 17:53:34 -08:00
renovate[bot] e6abad1173 Update robinraju/release-downloader action to v1.9 (#2104)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-28 13:36:46 -08:00
renovate[bot] 153be25dd9 Update FOSSBilling/.workflows digest to 8749327 2024-01-22 05:03:07 +00:00
renovate[bot] e6194f92d7 Update FOSSBilling/.workflows digest to 8cdd61a 2023-12-18 01:08:15 +00:00
renovate[bot] 948675c031 Update FOSSBilling/.workflows digest to fa4a4a4 2023-12-16 02:17:08 +00:00
Belle Aerni be9f4b9d64 Update artifact workflows (#1979) 2023-12-15 23:26:05 +00:00
Adam Daley cf835b9691 Cleanup outdated and unmaintained files (#1936) 2023-12-08 05:45:20 +00:00
renovate[bot] c3c79ff6d1 Update FOSSBilling/.workflows digest to fd29998 2023-12-07 16:37:48 +00:00
renovate[bot] d03183b7d7 Update FOSSBilling/.workflows digest to 5c7b960 2023-12-07 00:08:07 +00:00
Adam Daley 8aafe0ee40 Rework reusable workflows to use composite actions (#1918) 2023-12-06 20:12:38 +00:00