70 Commits
Author SHA1 Message Date
deepDiverPaul 745f33f17d feat(ext-blog): Add markdown editor bundling and dependencies 2026-12-02 10:20:36 +00:00
deepDiverPaul 2d4b196b04 feat(ext-blog): Add rich Markdown editor for blog posts
Replace the plain textarea with a CodeMirror-based editor supporting syntax highlighting, formatting toolbar (bold, italic, lists, code blocks), and a live preview toggle. Update PostContentRenderer to handle new Markdown syntax (blockquotes, fenced code blocks). Add a preview endpoint for rendering content without saving.
2026-12-02 10:20:36 +00:00
deepDiverPaul b44b1bfc72 fix(security): Add security hardening and CSRF protection.
Added .htaccess rules to deny access to hidden files. Escaped JSON output in views to prevent XSS attacks. Converted delete links and forms to use POST with CSRF tokens. Enforced POST method on sensitive routes. Added tests to verify these security controls.
2026-12-02 11:07:41 +01:00
deepDiverPaul 2e42cd00d2 feat(extensions): Add extension enable/disable toggle and loading logic
The settings view now renders a toggle switch for each extension to enable or disable it. The `Plugi` class includes a new method to load extensions based on their enabled state. Tests verify the activation logic and settings persistence.
2026-12-01 10:28:46 +01:00
deepDiverPaul 515e4cac1f feat(ext-tracking): Add tracking extension for HTML/JS snippets
Adds a new extension allowing injection of custom code into the page head. Includes an admin interface for saving snippets, secure save routes with CSRF protection, and tests verifying the functionality. Also updates core Extensions.php to support callable HTML blocks for lazy evaluation.
2026-11-30 22:51:03 +01:00
deepDiverPaul 6a4f7cac5f feat(multi-language): Add multi-language support and routing updates
Add configuration for multiple languages in the Website Manager
2026-11-30 19:47:55 +01:00
deepDiverPaul 68b8ff7fb3 page switching in editor 2026-11-30 16:51:16 +01:00
deepDiverPaul ba1007ff5d replace the PageBuilder language and viewport dropdowns with accessible
radio button groups
2026-11-30 16:51:15 +01:00
deepDiverPaul c80f28de1d improve publishing 2026-11-30 16:51:15 +01:00
deepDiverPaul 59924675fd update phosphor icons 2026-11-30 16:51:15 +01:00
deepDiverPaul c0e43106e1 add draft/publishing workflow 2026-11-30 16:51:15 +01:00
deepDiverPaul 25030638a4 Implemented: editor uploads are constrained to safe image files inside
the upload tree, and public form submissions are
size-bounded and rate-limited
2026-11-30 16:51:15 +01:00
deepDiverPaul e1767dcd2c media-library search, MIME-type and virtual-folder filters, persisted
folder and alt-text editing, and safe defaults for legacy uploads
2026-11-30 16:51:14 +01:00
deepDiverPaul 1ec2d9c8e1 add dashboard 2026-11-30 16:51:14 +01:00
deepDiverPaul 017f8f0434 add page builder viewport selection 2026-11-26 08:14:11 +01:00
deepDiverPaul fea53afc72 normalize generated page slugs to lowercase 2026-11-26 08:09:09 +01:00
deepDiverPaul 93fab6567d Merge branch 'dev' into feature/quality-checks 2026-11-26 08:07:20 +01:00
deepDiverPaul 21a33e53aa add primary key and auto-increment schema support
Configure the page translations table with an `id` primary key and auto-increment column, and detect and apply these constraints in database schema updates. Add persistence coverage for English and German homepage routes.
2026-11-26 07:59:07 +01:00
deepDiverPaul cb51db9048 add site quality audits and pagebuilder viewport selection
Add published-page accessibility and link checks with localized reports, and add responsive viewport controls to the page builder. Detect schema drift beyond matching hashes and apply lowercase definitions when creating or updating tables. Refresh generated admin, page-builder, and website-manager assets, and add coverage for quality checks, viewport selection, and schema migrations.
2026-11-25 21:48:45 +01:00
deepDiverPaul a07e3ad8d9 fix localized page management and builder synchronization
Validate locales and route uniqueness, report page deletion failures, and keep translation CRUD and route caches consistent. Show translation completeness in page settings and listings, and preserve locale-specific block data while synchronizing shared structure. Add translation service and page builder synchronization tests.
2026-11-25 14:53:35 +01:00
deepDiverPaul 9d192c2141 refresh admin interface layouts
Redesign authentication and website manager views with responsive layouts, clearer navigation, and accessibility improvements. Refresh page, menu, file, system information, settings, overview, welcome, page settings, and block thumbnail screens. Add the shared Admin stylesheet and Plugi theme, update the build configuration, and regenerate the admin CSS.
2026-11-25 12:02:54 +01:00
deepDiverPaul ca7ee32091 refresh admin interface layouts
Redesign authentication and website manager layouts and views for a responsive, accessible interface. Update page, menu, file, info, and settings screens, and refresh the generated WebsiteManager stylesheet.
2026-11-25 08:01:50 +01:00
deepDiverPaul 15cd385126 fix page creation validation and persistence
Validate required page fields and localized translations, detect route collisions, and save pages and translations atomically with rollback on failure. Report creation errors while preserving submitted form values, safely encode Alpine.js values, and add English and German error messages. Return null for failed inserts and add page persistence tests.
2026-11-24 21:42:14 +00:00
deepDiverPaul dfe1e40e58 add configurable SMTP mail delivery
Add a core SMTP mailer with configurable transport, authentication, and sender settings. Route form confirmation and admin notifications through the core mailer, and add tests for SMTP delivery, failure cases, and finisher integration.
2026-11-24 11:48:31 +01:00
deepDiverPaul ef692943f6 add Swedish language support
Add Swedish translations for the admin and page builder, and include Swedish in the language names and admin language selector.
2026-11-24 10:40:19 +01:00
deepDiverPaul 67c94b6a5d fix admin language options
Remove the Spanish and Dutch translation files and limit the admin language selector to German and English.
2026-11-24 10:34:41 +01:00
deepDiverPaul 2b73242d04 security: add CSRF protection and harden core handling
Add CSRF token validation and include tokens in authentication, website manager, and GrapesJS forms and requests. Harden login with password hash verification and session ID regeneration, validate database identifiers and charset, and secure upload MIME detection and filename generation.

Update nullable type declarations and PHP syntax across core contracts and modules, switch the Docker image to PHP 8.4, and move the theme script asset to the end of the page. Refresh the PageBuilderBody distribution assets.
2026-11-24 09:26:15 +00:00
deepDiverPaul e86fba0809 fix GrapesJS save button spinner visibility
Replace Bootstrap-dependent class toggling (d-none) with inline style.display for the save button spinner.

Update the pagebuilder view to use inline display:none instead of the d-none class on the spinner element.
2026-11-23 17:58:13 +01:00
deepDiverPaul fcc5c4a96e fix theme asset caching with file-based versioning
Add cache-busting query string to phpb_theme_asset by appending the file's last-modified timestamp.
Use realpath to resolve and validate the asset path before reading filemtime to prevent directory traversal.
2026-11-23 17:48:52 +01:00
deepDiverPaul 920ab7df4d fix GrapesJS editable components check for theme blocks
Add null check for window.themeBlocks[blockSlug] before accessing label to prevent errors when block slug exists but has no theme block definition.

Update PageBuilderBody dist files with the fix.
2026-11-23 17:36:49 +01:00
deepDiverPaul d0307d64e9 refactor pagebuilder asset bundling
Migrate pagebuilder and core dist assets from legacy bundled format to modern Vite/Rolldown output.

- Delete legacy pagebuilder app.css and app.js bundles in favor of per-module dist files.
- Update page-injection.js to use template literals and add source map reference.
- Refresh core dist files (PageBuilderBody, PageBuilderHead, WebsiteManager) with updated CSS/JS and remove UMD bundles.
- Replace jQuery-dependent GrapesJS scripts with vanilla JS implementations.
- Remove CKEditor hyperlinks module and replace with RTE link manager.
- Delete external library bundles (Bootstrap, Popper, Toastr, Underscore, CKEditor) from dist.
2026-11-23 17:21:14 +01:00
deepDiverPaul 84545fc4a3 refactor pagebuilder asset bundling
Migrate pagebuilder and core dist assets from legacy bundled format to modern Vite/Rolldown output.

- Delete legacy pagebuilder app.css and app.js bundles in favor of per-module dist files.
- Update page-injection.js to use template literals and add source map reference.
- Refresh core dist files (PageBuilderBody, PageBuilderHead, WebsiteManager) with updated CSS/JS and remove UMD bundles.
2026-11-23 16:18:35 +01:00
deepDiverPaul b6960efd82 refactor asset rendering with HTML escaping
Improve security by escaping asset attributes and URLs in phpb_registered_assets.
Refactor Extensions class to render assets as HTML strings and add getAssetsArray for raw access.
Update phpb_e helper to accept nullable strings.
2026-11-23 12:35:46 +01:00
deepDiverPaul f072349ed2 update asset building for core 2026-11-22 20:35:52 +01:00
deepDiverPaul ef4be66673 Update BlockAdapter.php 2026-11-22 12:25:12 +01:00
deepDiverPaul 2aec70849d fix db issues 2026-11-22 05:08:23 +01:00
deepDiverPaul 8ddea24272 fix initializing 2026-11-21 17:33:39 +01:00
Paul Spenke 267d8004e0 many updates 2023-08-20 23:45:24 +08:00
Paul Spenke 726d691054 move creds to env 2023-07-10 21:34:23 +08:00
Paul Spenke cd9dc85420 many updates 2023-07-10 21:27:43 +08:00
Paul Spenke 249f6b06b5 handle languages 2023-07-09 21:33:10 +08:00
Paul Spenke 35a88bb507 little responsive tweak 2023-07-03 11:37:09 +08:00
Paul Spenke 7d60bc9b45 update db diff handling 2023-07-03 11:24:53 +08:00
Paul Spenke 7b47fdaf14 update dependencies 2023-07-02 21:46:47 +08:00
Paul Spenke da2229c3ee origin commit 2de0c1c 2023-07-02 21:40:06 +08:00
Paul Spenke 6f921efddc origin commit 23d8e32 2023-07-02 21:39:02 +08:00
Paul Spenke d7610386e3 origin commit a3f022d 2023-07-02 21:38:11 +08:00
Paul Spenke 5ef177ea39 origin commit 63d49fe 2023-07-02 21:31:38 +08:00
Paul Spenke a529852fd8 many updates 😁 2023-07-02 21:30:29 +08:00
Paul Spenke a8d056657d add favicon 2023-06-30 18:24:28 +08:00