feat(10.1-02): mount plugin widget elements and run their actions from the form

- pluginAssets loads controller scripts and stylesheets from {base}/assets/ only, once per URL
- WidgetField mounts the custom element with attributes only and posts summer-action through the typed client
- Only declared fill keys returned by the server are patched; the form turns dirty and nothing saves
- widget is a registered valueless type rendered on create and update, labelled as a group
- backend::lang.extension strings in en and pl; embedded dist rebuilt
This commit is contained in:
Jakub Zych
2026-09-29 02:04:34 +02:00
parent c3b76b1afb
commit 107d820109
19 changed files with 789 additions and 14 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -6,8 +6,8 @@
<meta name="robots" content="noindex, nofollow" />
<meta name="summer-admin-base" content="__SUMMER_ADMIN_BASE__" />
<title>SummerCMS</title>
<script type="module" crossorigin src="./assets/index-BAlwlQ8W.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-CLf0gZ3D.css">
<script type="module" crossorigin src="./assets/index-CnkxaoJL.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DQRkkGSM.css">
</head>
<body>
<div id="app"></div>

View File

@@ -99,6 +99,11 @@ settings:
empty: No settings are available.
saved: Settings saved
back: Back to settings
extension:
busy: Loading…
widget_failed: This control could not be loaded. Refresh the page; if it happens again, check the plugin's assets.
partial_failed: This section could not be loaded. Refresh the page to try again.
action_failed: The action could not be completed. Please try again.
messages:
list:
record_count:

View File

@@ -107,6 +107,11 @@ settings:
empty: Brak dostępnych ustawień.
saved: Zapisano ustawienia
back: Wróć do ustawień
extension:
busy: Wczytywanie…
widget_failed: Nie udało się wczytać tej kontrolki. Odśwież stronę, a jeśli błąd wróci, sprawdź zasoby wtyczki.
partial_failed: Nie udało się wczytać tej sekcji. Odśwież stronę, aby spróbować ponownie.
action_failed: Nie udało się wykonać akcji. Spróbuj ponownie.
messages:
list:
record_count: