Skip to content

Loading Libraries per default via CDN, e.g. GoogleFonts is possibly problematic with european GDPR.#888

Merged
JohnVillalovos merged 3 commits intoLibreBooking:developfrom
Steffeng5:develop
Mar 13, 2026
Merged

Loading Libraries per default via CDN, e.g. GoogleFonts is possibly problematic with european GDPR.#888
JohnVillalovos merged 3 commits intoLibreBooking:developfrom
Steffeng5:develop

Conversation

@Steffeng5
Copy link
Contributor

To ensure "Libre" in "LibreBooking" it would be better to serve JS libs by default from local :)

@lucs7
Copy link
Collaborator

lucs7 commented Nov 22, 2025

Good idea but please follow https://www.conventionalcommits.org/

@Steffeng5
Copy link
Contributor Author

Good idea but please follow https://www.conventionalcommits.org/

Done :)

@github-actions
Copy link

This Pull Request (PR) was marked stale because it has been open 90 days with no activity. Please remove the stale label or comment on this PR. Otherwise, it will be closed in 15 days.

@github-actions github-actions bot added the stale No activity label Feb 24, 2026
@github-actions
Copy link

This PR was closed because it has been marked stale for 15 days with no activity. If this PR is still valid, please re-open.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR changes the default configuration so LibreBooking prefers loading bundled (local) JavaScript libraries instead of CDN-hosted ones by default, aligning with privacy/GDPR concerns for new installations and example setups.

Changes:

  • Flip use.local.js.libs default to true in the distributed config template.
  • Update documentation to show use.local.js.libs enabled in the example.
  • Update .env.example so LB_USE_LOCAL_JS_LIBS defaults to true.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
docs/source/ADVANCED-CONFIGURATION.rst Updates the documented example to enable local JS libraries.
config/config.dist.php Changes the distributed default setting to prefer local JS libraries.
.env.example Changes the example env var default to prefer local JS libraries.

You can also share your feedback on Copilot code review. Take the survey.

@JohnVillalovos JohnVillalovos self-assigned this Mar 12, 2026
@JohnVillalovos
Copy link
Collaborator

Thanks @Steffeng5

Sorry this fell off my radar. I will work on this over the next few days.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 28 changed files in this pull request and generated 2 comments.


You can also share your feedback on Copilot code review. Take the survey.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 9 out of 28 changed files in this pull request and generated 1 comment.


You can also share your feedback on Copilot code review. Take the survey.

Steffeng5 and others added 3 commits March 12, 2026 19:27
Loading Libraries per default via CDN, e.g. GoogleFonts is possibly
problematic with European GDPR.
Allow usage of the vendored local copy of the Select2 library. Before it
was always fetched from the CDN.

Update the vendored Select2 4.0.5 library with 4.1.0-rc.0 and update
the local references used when `use.local.js.libs` is enabled.
Add vendored Hind font assets and metadata, remove the global Google
Fonts import from librebooking.css, and load the local font stylesheet
when `use.local.js.libs` is enabled.
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 29 changed files in this pull request and generated no new comments.


You can also share your feedback on Copilot code review. Take the survey.

Copy link
Collaborator

@JohnVillalovos JohnVillalovos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Steffeng5 Thanks for the PR

@JohnVillalovos JohnVillalovos merged commit 22b283a into LibreBooking:develop Mar 13, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants