domma-cms 1.17.0 → 1.19.0
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.
- package/CHANGELOG.md +12 -0
- package/admin/css/sections.css +1 -1
- package/admin/js/lib/admin-theme.js +1 -1
- package/admin/js/lib/editor-type.js +1 -1
- package/admin/js/lib/effects-builder.js +1 -1
- package/admin/js/lib/scribe-composer.js +1 -1
- package/admin/js/lib/scribe-model.js +1 -1
- package/admin/js/lib/shortcode-preview.js +1 -1
- package/admin/js/lib/shortcode-registry.js +3 -3
- package/admin/js/lib/theme-settings-arrange.js +1 -1
- package/admin/js/templates/collection-editor.html +12 -12
- package/admin/js/templates/context-menu-editor.html +12 -12
- package/admin/js/templates/docs/usage-navigation.html +2 -2
- package/admin/js/templates/menu-editor.html +457 -338
- package/admin/js/templates/search.html +15 -15
- package/admin/js/templates/settings.html +43 -43
- package/admin/js/templates/theme.html +74 -13
- package/admin/js/templates/user-editor.html +9 -9
- package/admin/js/views/menu-editor.js +16 -16
- package/admin/js/views/page-editor.js +9 -9
- package/docs/DommaFeatures.md +1 -1
- package/docs/screenshots/admin-soft-settings-desktop.png +0 -0
- package/docs/screenshots/admin-soft-settings-mobile.png +0 -0
- package/docs/screenshots/editor-font-families-mobile.png +0 -0
- package/docs/screenshots/theme-font-families.png +0 -0
- package/docs/typography.md +44 -0
- package/package.json +1 -1
- package/plugins/_lib/admin/mail/fonts.js +5 -0
- package/public/css/menu-cards.css +1 -1
- package/public/js/effects.js +1 -1
- package/public/js/font-families.mjs +1 -0
- package/public/js/scribe-style.mjs +1 -1
- package/public/js/text-style.mjs +1 -1
- package/server/routes/api/theme.js +2 -1
- package/server/services/renderer.js +41 -54
- package/server/services/themeSettings.js +7 -0
- package/server/templates/page.html +2 -2
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
|
|
24
24
|
<!-- Settings -->
|
|
25
25
|
<div class="tab-panel active">
|
|
26
|
-
<div class="cex-card">
|
|
27
|
-
<div class="cex-card-title"><span data-icon="database" data-icon-size="16" aria-hidden="true"></span>Collection
|
|
26
|
+
<div class="cex-card dm-settings-section">
|
|
27
|
+
<div class="cex-card-title dm-settings-section-title"><span data-icon="database" data-icon-size="16" aria-hidden="true"></span>Collection
|
|
28
28
|
<span data-help-title="Collections" data-help="A collection is a set of entries that share the same fields - products, bookings, team members. Its entries are edited under Data › Collections, shown on pages with the [collection] shortcode, and can be read by the public API if you allow it on the API & Export tab."></span></div>
|
|
29
29
|
<div class="cex-grid">
|
|
30
30
|
<div class="cex-wide">
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
</div>
|
|
54
54
|
</div>
|
|
55
55
|
|
|
56
|
-
<div class="cex-card">
|
|
57
|
-
<div class="cex-card-title dm-section--neutral"><span data-icon="list" data-icon-size="16" aria-hidden="true"></span>Entry form
|
|
56
|
+
<div class="cex-card dm-settings-section">
|
|
57
|
+
<div class="cex-card-title dm-section--neutral dm-settings-section-title"><span data-icon="list" data-icon-size="16" aria-hidden="true"></span>Entry form
|
|
58
58
|
<span data-help-title="Entry form" data-help="How the form for adding and editing an entry is laid out. Stacked puts one field per row; Grid places them in columns, and each field can span several columns or the full width (set on the field)."></span></div>
|
|
59
59
|
<div class="cex-grid">
|
|
60
60
|
<div>
|
|
@@ -80,8 +80,8 @@
|
|
|
80
80
|
|
|
81
81
|
<!-- Fields -->
|
|
82
82
|
<div class="tab-panel">
|
|
83
|
-
<div class="cex-card">
|
|
84
|
-
<div class="cex-card-title"><span data-icon="list" data-icon-size="16" aria-hidden="true"></span>Fields
|
|
83
|
+
<div class="cex-card dm-settings-section">
|
|
84
|
+
<div class="cex-card-title dm-settings-section-title"><span data-icon="list" data-icon-size="16" aria-hidden="true"></span>Fields
|
|
85
85
|
<span data-help-title="Fields" data-help="What every entry holds. Click a field to edit it; drag it by its grip, or right-click it (or ⋮, or Shift+F10) to move it up or down, duplicate it or remove it. Alt+↑ / Alt+↓ move the focused field. Changes are kept here until you Save."></span>
|
|
86
86
|
<span class="cex-spacer"></span>
|
|
87
87
|
<button type="button" class="btn btn-sm btn-ghost" data-on-click="addField"><span data-icon="plus" data-icon-size="13"></span> Add field</button>
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
|
|
94
94
|
<!-- API & Export -->
|
|
95
95
|
<div class="tab-panel">
|
|
96
|
-
<div class="cex-card">
|
|
97
|
-
<div class="cex-card-title dm-section--info"><span data-icon="link" data-icon-size="16" aria-hidden="true"></span>Public API
|
|
96
|
+
<div class="cex-card dm-settings-section">
|
|
97
|
+
<div class="cex-card-title dm-section--info dm-settings-section-title"><span data-icon="link" data-icon-size="16" aria-hidden="true"></span>Public API
|
|
98
98
|
<span data-help-title="Public API" data-help="What the public API may do with this collection, and who may do it: Public is anyone; Token needs an API token (System › API Tokens); the others need a signed-in user with at least that role. The admin itself is always governed by roles and permissions, not by these switches."></span></div>
|
|
99
99
|
<p class="cex-note">At <code data-bind-text="apiPath.value"></code></p>
|
|
100
100
|
<div class="cex-ops">
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
<small class="cex-err" data-bind-hidden="!missingApiRoles.value" data-bind-text="missingApiRoles.value"></small>
|
|
121
121
|
</div>
|
|
122
122
|
|
|
123
|
-
<div class="cex-card">
|
|
124
|
-
<div class="cex-card-title dm-section--neutral"><span data-icon="download" data-icon-size="16" aria-hidden="true"></span>Export
|
|
123
|
+
<div class="cex-card dm-settings-section">
|
|
124
|
+
<div class="cex-card-title dm-section--neutral dm-settings-section-title"><span data-icon="download" data-icon-size="16" aria-hidden="true"></span>Export
|
|
125
125
|
<span data-help-title="Export" data-help="Lets visitors download the entries a [collection] display shows, from its right-click menu - as CSV and/or JSON. Who may export is a role: Public is anyone."></span></div>
|
|
126
126
|
<div class="cex-ops">
|
|
127
127
|
<div class="cex-op"><strong>Export</strong>
|
|
@@ -141,8 +141,8 @@
|
|
|
141
141
|
|
|
142
142
|
<!-- Storage (Pro) -->
|
|
143
143
|
<div class="tab-panel">
|
|
144
|
-
<div class="cex-card">
|
|
145
|
-
<div class="cex-card-title dm-section--info"><span data-icon="database" data-icon-size="16" aria-hidden="true"></span>Storage
|
|
144
|
+
<div class="cex-card dm-settings-section">
|
|
145
|
+
<div class="cex-card-title dm-section--info dm-settings-section-title"><span data-icon="database" data-icon-size="16" aria-hidden="true"></span>Storage
|
|
146
146
|
<span data-help-title="Storage" data-help="Where this collection's entries live: in a file on this server (the default), or in MongoDB (Pro). Switching an existing collection asks whether to move its entries across when you Save - moving copies each entry to the new store. Export the entries first if they matter."></span></div>
|
|
147
147
|
<div class="cex-grid">
|
|
148
148
|
<div>
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
|
|
37
37
|
<!-- Binding -->
|
|
38
38
|
<div class="tab-panel active">
|
|
39
|
-
<div class="cmx-card">
|
|
40
|
-
<div class="cmx-card-title">Where it binds</div>
|
|
39
|
+
<div class="cmx-card dm-settings-section">
|
|
40
|
+
<div class="cmx-card-title dm-settings-section-title">Where it binds</div>
|
|
41
41
|
<div class="cmx-grid">
|
|
42
42
|
<div>
|
|
43
43
|
<label class="form-label" for="ctx-name">Name <span class="text-danger">*</span>
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
</div>
|
|
72
72
|
</div>
|
|
73
73
|
|
|
74
|
-
<div class="cmx-card">
|
|
75
|
-
<div class="cmx-card-title">Behaviour</div>
|
|
74
|
+
<div class="cmx-card dm-settings-section">
|
|
75
|
+
<div class="cmx-card-title dm-settings-section-title">Behaviour</div>
|
|
76
76
|
<div class="cmx-grid">
|
|
77
77
|
<div class="cmx-wide">
|
|
78
78
|
<label class="form-label" for="ctx-inherit">When nested inside another menu
|
|
@@ -94,8 +94,8 @@
|
|
|
94
94
|
|
|
95
95
|
<!-- Items -->
|
|
96
96
|
<div class="tab-panel">
|
|
97
|
-
<div class="cmx-card">
|
|
98
|
-
<div class="cmx-card-title">Items
|
|
97
|
+
<div class="cmx-card dm-settings-section">
|
|
98
|
+
<div class="cmx-card-title dm-settings-section-title">Items
|
|
99
99
|
<span data-help-title="Items" data-help="What the menu offers when it opens, top to bottom. An Item does something when clicked, a Divider draws a line, a Heading labels a group. Click an item to edit it; right-click it (or ⋮, or Shift+F10) to move, duplicate, add beside it or remove it. Alt+↑ / Alt+↓ move the focused item. A menu of nothing but dividers and headings is refused, because there would be nothing to click."></span>
|
|
100
100
|
<span class="cmx-spacer"></span>
|
|
101
101
|
<button type="button" class="btn btn-sm btn-ghost" data-on-click="addHeader"><span data-icon="type" data-icon-size="13"></span> Heading</button>
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
|
|
111
111
|
<!-- Appearance -->
|
|
112
112
|
<div class="tab-panel">
|
|
113
|
-
<div class="cmx-card">
|
|
114
|
-
<div class="cmx-card-title">Appearance
|
|
113
|
+
<div class="cmx-card dm-settings-section">
|
|
114
|
+
<div class="cmx-card-title dm-settings-section-title">Appearance
|
|
115
115
|
<span data-help="How the panel looks when it opens. Leave anything on its default to inherit the site theme - usually what you want, so the menu matches everything around it."></span></div>
|
|
116
116
|
<div class="cmx-grid">
|
|
117
117
|
<div>
|
|
@@ -186,8 +186,8 @@
|
|
|
186
186
|
|
|
187
187
|
<!-- Scope -->
|
|
188
188
|
<div class="tab-panel">
|
|
189
|
-
<div class="cmx-card">
|
|
190
|
-
<div class="cmx-card-title">Scope
|
|
189
|
+
<div class="cmx-card dm-settings-section">
|
|
190
|
+
<div class="cmx-card-title dm-settings-section-title">Scope
|
|
191
191
|
<span data-help="Which pages carry this menu. Leave BOTH blank and it applies site-wide. A menu that does not apply to a page is not sent to that page at all."></span></div>
|
|
192
192
|
<div class="cmx-grid">
|
|
193
193
|
<div>
|
|
@@ -210,8 +210,8 @@
|
|
|
210
210
|
<!-- One preview, beside the tabs rather than inside them: four copies would be four elements sharing
|
|
211
211
|
#ctx-preview, and the menu binds by selector. Sticky, so it stays put while a long Items tab scrolls. -->
|
|
212
212
|
<div class="col-4">
|
|
213
|
-
<div class="cmx-card ctx-preview-card">
|
|
214
|
-
<div class="cmx-card-title">Try it
|
|
213
|
+
<div class="cmx-card ctx-preview-card dm-settings-section">
|
|
214
|
+
<div class="cmx-card-title dm-settings-section-title">Try it
|
|
215
215
|
<span data-help="The real menu, built from what you have entered and updating as you type - the component itself, not a drawing of it. Its actions do nothing here."></span></div>
|
|
216
216
|
<div class="cmx-chips" data-each="chips.value key=text"></div>
|
|
217
217
|
<div id="ctx-preview" class="cmx-preview" tabindex="0">
|
|
@@ -92,8 +92,8 @@
|
|
|
92
92
|
colour. Links drawn as a button, and links with their own colour, keep theirs.</li>
|
|
93
93
|
<li><strong>Fitting the bar</strong> - with any bar shape, a bar with more links than room fits
|
|
94
94
|
itself: it keeps clear of a floating Search or Reduce motion button over either end, then
|
|
95
|
-
tightens a step at a time - less space between links, a smaller size, the site
|
|
96
|
-
beside a logo,
|
|
95
|
+
tightens a step at a time - less space between links, a smaller size, no arrows, the site
|
|
96
|
+
name hidden beside a logo, and last of all no icons. Wider screens get the full bar back.</li>
|
|
97
97
|
<li><strong>Dropdown style: Cards</strong> - each dropdown opens as a large rounded card under its
|
|
98
98
|
item, with a little pointer. Every sub-item gets a coloured tile round its icon and a line of
|
|
99
99
|
description, laid out in columns. A sub-item with sub-items of its own becomes a column with a
|