LibWebView: Split about:settings into modules

The about:settings page has gotten beefy enough that it is a bit of a
paint to manage in a single HTML file. This patch breaks the settings
into several modules to make this page easier to mantain.

Modules have some nice benefits over classic scripts, such as enabling
strict mode by default, and allowing each module to function without
polluting the global object.
This commit is contained in:
Timothy Flynn 2025-04-23 11:49:53 -04:00 committed by Tim Flynn
parent 6a6c56aabe
commit 234c07adc9
Notes: github-actions[bot] 2025-04-23 23:59:53 +00:00
8 changed files with 694 additions and 616 deletions

View file

@ -76,6 +76,11 @@ list(TRANSFORM ABOUT_PAGES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/abo
set(ABOUT_SETTINGS_RESOURCES
languages.js
network.js
new-tab-page.js
permissions.js
privacy.js
search.js
)
list(TRANSFORM ABOUT_SETTINGS_RESOURCES PREPEND "${LADYBIRD_SOURCE_DIR}/Base/res/ladybird/about-pages/settings/")