domma-cms 1.6.15 → 1.6.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,7 +37,7 @@ const SEED_ITEMS = [
37
37
  items: [
38
38
  {text: 'Pages', url: '#/pages', icon: 'file-text', permission: 'pages'},
39
39
  {text: 'Media', url: '#/media', icon: 'image', permission: 'media'},
40
- {text: 'Menus', url: '#/menus', icon: 'menu', permission: 'menus'}
40
+ {text: 'Site menus', url: '#/menus', icon: 'menu', permission: 'menus'}
41
41
  ]
42
42
  },
43
43
  {
@@ -372,6 +372,19 @@ export async function ensureFolderKeys(opts = {}) {
372
372
  changed = true;
373
373
  }
374
374
 
375
+ // The Menus screen became "Site menus" in 1.6.16 (beside "Page contents", the list a
376
+ // page builds from its headings). Renamed once (`meta.siteMenusName`) and only where
377
+ // the item still says Menus, so a name an admin gave it stays.
378
+ if (!menu.meta?.siteMenusName && items.length) {
379
+ const rename = (list) => (list || []).forEach(n => {
380
+ if (n && n.url === '#/menus' && String(n.text || '').trim() === 'Menus') n.text = 'Site menus';
381
+ if (Array.isArray(n?.items)) rename(n.items);
382
+ });
383
+ rename(items);
384
+ menu.meta = {...(menu.meta || {}), siteMenusName: true};
385
+ changed = true;
386
+ }
387
+
375
388
  // An empty menu is left empty: the renderer's minimal fallback (Dashboard,
376
389
  // Menus) is what an admin needs to repair it, and a lone Tools folder would
377
390
  // stop that fallback from applying.
@@ -25,7 +25,7 @@
25
25
  <link rel="stylesheet" href="/dist/domma/themes/domma-themes.css">
26
26
 
27
27
  <!-- Site CSS -->
28
- <link rel="stylesheet" href="/public/css/site.css?v=20261011-page-contents">
28
+ <link rel="stylesheet" href="/public/css/site.css?v=20261011-scribe-controls">
29
29
  <link rel="stylesheet" href="/public/css/forms.css?v=20260927-submit-btn-css">
30
30
  <!-- Menu item hover / current-page effects. Loaded after site.css so a
31
31
  menu's own highlight wins over the blanket link styling there. -->
@@ -191,7 +191,7 @@
191
191
  <script src="/public/js/forms.js?v=20261009-form-classes" type="module"></script>
192
192
 
193
193
  <!-- Core effects runtime -->
194
- <script src="/public/js/effects.js?v=20261010-motion-demos"></script>
194
+ <script src="/public/js/effects.js?v=20261011-scribe-controls"></script>
195
195
 
196
196
  <!-- Plugin body-end injection -->
197
197
  {{bodyEndInject}}