domma-cms 1.20.0 → 1.22.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 +11 -0
- package/admin/css/site-settings.css +1 -0
- package/admin/js/app.js +3 -3
- package/admin/js/lib/context-menu-action-help.js +1 -1
- package/admin/js/lib/effects-builder.js +2 -2
- package/admin/js/lib/favicon-generator.js +1 -1
- package/admin/js/lib/font-picker.js +22 -0
- package/admin/js/lib/scribe-composer.js +1 -1
- package/admin/js/lib/shortcode-form.js +3 -3
- package/admin/js/lib/shortcode-registry.js +1 -1
- package/admin/js/lib/site-search-section.js +1 -1
- package/admin/js/lib/site-settings-arrange.js +3 -3
- package/admin/js/templates/appearance.html +243 -0
- package/admin/js/templates/docs/usage-navigation.html +7 -1
- package/admin/js/templates/docs/usage-site-settings.html +11 -22
- package/admin/js/templates/footer.html +145 -0
- package/admin/js/templates/menu-editor.html +6 -1
- package/admin/js/templates/search.html +14 -15
- package/admin/js/templates/settings.html +5 -436
- package/admin/js/views/appearance.js +1 -0
- package/admin/js/views/footer.js +1 -0
- package/admin/js/views/index.js +1 -1
- package/admin/js/views/menu-editor.js +1 -1
- package/admin/js/views/page-editor.js +10 -10
- package/admin/js/views/search.js +2 -2
- package/admin/js/views/settings.js +3 -3
- package/admin/js/views/theme.js +4 -4
- package/docs/DommaFeatures.md +1 -1
- package/docs/markdown-shortcodes.md +1 -1
- package/docs/screenshots/font-picker-desktop.png +0 -0
- package/docs/screenshots/font-picker-mobile.png +0 -0
- package/package.json +1 -1
- package/public/css/menu-cards.css +1 -1
- package/public/js/menu-cards.mjs +4 -4
- package/public/js/menu-look.mjs +1 -1
- package/public/js/site.js +1 -1
- package/server/server.js +5 -2
- package/server/templates/page.html +2 -2
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
<div class="stx">
|
|
2
|
+
<div class="stx-alert is-bad" data-bind-hidden="!errorText.value">
|
|
3
|
+
<span data-icon="x-circle" data-icon-size="16"></span>
|
|
4
|
+
<span><strong>Not saved.</strong> <span data-bind-text="errorText.value"></span></span></div>
|
|
5
|
+
<p class="stx-alert is-dirty" data-bind-hidden="!dirty.value">
|
|
6
|
+
<span data-icon="edit-3" data-icon-size="16"></span>
|
|
7
|
+
<span>Unsaved changes - Save (Ctrl+S) to apply them. Leave and they are kept as a draft for next time.</span>
|
|
8
|
+
<span class="stx-spacer"></span>
|
|
9
|
+
<button type="button" class="btn btn-sm btn-ghost" data-on-click="discard">Discard</button>
|
|
10
|
+
<button type="button" class="btn btn-sm btn-primary" data-on-click="save" data-bind-disabled="saving.value">Save</button></p>
|
|
11
|
+
|
|
12
|
+
<p>Manage your site footer. <a href="#/menus">Edit footer menus</a> or <a href="#/settings">edit site branding</a>.</p>
|
|
13
|
+
<!-- Footer -->
|
|
14
|
+
<div>
|
|
15
|
+
<div class="stx-card-columns">
|
|
16
|
+
<div class="stx-card dm-settings-section">
|
|
17
|
+
<div class="stx-card-title dm-settings-section-title"><span data-icon="panel-bottom" data-icon-size="16" aria-hidden="true"></span>Footer</div>
|
|
18
|
+
<div class="stx-grid">
|
|
19
|
+
<div class="stx-wide">
|
|
20
|
+
<label class="form-label" for="stx-footer-copy">Copyright text</label>
|
|
21
|
+
<input id="stx-footer-copy" type="text" class="form-input" placeholder="© 2026 My Site" data-model="footerCopyright.value">
|
|
22
|
+
</div>
|
|
23
|
+
<div class="stx-setting">
|
|
24
|
+
<label class="form-label" for="stx-footer-layout">Layout
|
|
25
|
+
<span data-help-title="Footer layout" data-help="Columns puts your brand, the blurb and the social links beside one column per group of the footer menu, with copyright, legal links and the motion control in a bar beneath. One row puts everything on a single line. Automatic uses columns when the footer menu has groups (made with sub-items in Menus) and one row when it does not."></span></label>
|
|
26
|
+
<select id="stx-footer-layout" class="form-input" data-model="footerLayout.value">
|
|
27
|
+
<option value="auto">Automatic</option>
|
|
28
|
+
<option value="columns">Columns</option>
|
|
29
|
+
<option value="row">One row</option>
|
|
30
|
+
</select>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="stx-wide">
|
|
33
|
+
<label class="form-label" for="stx-footer-blurb">Blurb
|
|
34
|
+
<span data-help="A sentence or two under your brand in the columns layout - what the site is, in plain words. Leave it empty for none."></span></label>
|
|
35
|
+
<textarea id="stx-footer-blurb" class="form-input" rows="2" maxlength="300" placeholder="What your site is about, in a sentence." data-model="footerBlurb.value"></textarea>
|
|
36
|
+
</div>
|
|
37
|
+
<div class="stx-wide">
|
|
38
|
+
<label class="form-label" for="stx-footer-blocks">Footer blocks
|
|
39
|
+
<span data-help="Blocks (Content › Blocks) shown side by side at the top of the footer on every page, by name, in order - for example wp-footer-1, wp-footer-2. Import from WordPress puts a site's footer widget areas here. Leave it empty for none; a name that is not a block is left out."></span></label>
|
|
40
|
+
<input id="stx-footer-blocks" type="text" class="form-input" maxlength="400" placeholder="wp-footer-1, wp-footer-2" data-model="footerBlocks.value">
|
|
41
|
+
</div>
|
|
42
|
+
<p class="stx-wide stx-hint">Manage the accessibility control in Appearance:
|
|
43
|
+
<a href="#/appearance?tab=motion">Reduced Motion</a>.</p>
|
|
44
|
+
<div>
|
|
45
|
+
<label class="form-label" for="stx-footer-class">Footer CSS classes
|
|
46
|
+
<span data-help-title="Footer CSS classes" data-help="Your own class names, separated by spaces, added to the site footer. Style them in Custom CSS. The footer's menus take classes of their own in Menus."></span></label>
|
|
47
|
+
<input id="stx-footer-class" type="text" class="form-input" placeholder="footer-dark" autocomplete="off" spellcheck="false" data-model="footerClass.value">
|
|
48
|
+
</div>
|
|
49
|
+
<div>
|
|
50
|
+
<label class="form-label" for="stx-social-class">Social icon CSS classes
|
|
51
|
+
<span data-help-title="Social icon CSS classes" data-help="Your own class names, separated by spaces, added to every social media icon link in the footer."></span></label>
|
|
52
|
+
<input id="stx-social-class" type="text" class="form-input" placeholder="social-round" autocomplete="off" spellcheck="false" data-model="footerSocialClass.value">
|
|
53
|
+
</div>
|
|
54
|
+
</div>
|
|
55
|
+
</div>
|
|
56
|
+
<div class="stx-card dm-settings-section">
|
|
57
|
+
<div class="stx-card-title dm-settings-section-title"><span data-icon="star" data-icon-size="16" aria-hidden="true"></span>Showcase footer
|
|
58
|
+
<span data-help-title="Showcase footer" data-help="A footer that finishes the page with a flourish: a big call to action with a few words in a colour gradient, your contact details under the brand, a row of short facts, a tagline, and your name drawn huge and faint behind it all. Each part shows only when it has words. The Showcase look adds a glowing line along the top and more room; it always uses the columns layout."></span></div>
|
|
59
|
+
<div class="stx-grid">
|
|
60
|
+
<div class="stx-setting">
|
|
61
|
+
<label class="form-label" for="stx-footer-look">Look</label>
|
|
62
|
+
<select id="stx-footer-look" class="form-input" data-model="footerLook.value">
|
|
63
|
+
<option value="">Standard</option>
|
|
64
|
+
<option value="showcase">Showcase</option>
|
|
65
|
+
</select>
|
|
66
|
+
</div>
|
|
67
|
+
<div class="stx-setting">
|
|
68
|
+
<label class="form-label" for="stx-footer-wm">Name in the background
|
|
69
|
+
<span data-help="Drawn very large and faint behind the footer, drifting sideways as the page scrolls (still for visitors who ask for reduced motion). Usually your site's name. Leave it empty for none."></span></label>
|
|
70
|
+
<input id="stx-footer-wm" type="text" class="form-input" maxlength="24" placeholder="ACME" data-model="footerWatermark.value">
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
<label class="form-label" for="stx-footer-cta">Call to action
|
|
74
|
+
<span data-help="The big line at the top of the footer, for example Join. The next field is drawn in the gradient straight after it."></span></label>
|
|
75
|
+
<input id="stx-footer-cta" type="text" class="form-input" maxlength="40" placeholder="Join" data-model="footerCtaText.value">
|
|
76
|
+
</div>
|
|
77
|
+
<div>
|
|
78
|
+
<label class="form-label" for="stx-footer-cta-hl">…in the gradient</label>
|
|
79
|
+
<input id="stx-footer-cta-hl" type="text" class="form-input" maxlength="40" placeholder="early access." data-model="footerCtaHighlight.value">
|
|
80
|
+
</div>
|
|
81
|
+
<div>
|
|
82
|
+
<label class="form-label" for="stx-footer-cta-url">Call to action link</label>
|
|
83
|
+
<input id="stx-footer-cta-url" type="text" class="form-input" maxlength="500" placeholder="/contact" data-model="footerCtaUrl.value">
|
|
84
|
+
</div>
|
|
85
|
+
<div>
|
|
86
|
+
<label class="form-label" for="stx-footer-cta-sub">Line under it</label>
|
|
87
|
+
<input id="stx-footer-cta-sub" type="text" class="form-input" maxlength="160" placeholder="A reply within one working day" data-model="footerCtaSub.value">
|
|
88
|
+
</div>
|
|
89
|
+
<div>
|
|
90
|
+
<label class="form-label" for="stx-footer-email">Email under the brand</label>
|
|
91
|
+
<input id="stx-footer-email" type="email" class="form-input" maxlength="120" placeholder="hello@example.com" data-model="footerEmail.value">
|
|
92
|
+
</div>
|
|
93
|
+
<div>
|
|
94
|
+
<label class="form-label" for="stx-footer-address">Address under the brand</label>
|
|
95
|
+
<input id="stx-footer-address" type="text" class="form-input" maxlength="120" placeholder="Leeds, West Yorkshire" data-model="footerAddress.value">
|
|
96
|
+
</div>
|
|
97
|
+
<div>
|
|
98
|
+
<label class="form-label" for="stx-footer-status">Status
|
|
99
|
+
<span data-help="A short line with a small green dot, at the start of the facts row - for example All systems running."></span></label>
|
|
100
|
+
<input id="stx-footer-status" type="text" class="form-input" maxlength="60" placeholder="All systems running" data-model="footerStatus.value">
|
|
101
|
+
</div>
|
|
102
|
+
<div>
|
|
103
|
+
<label class="form-label" for="stx-footer-tagline">Tagline
|
|
104
|
+
<span data-help="Words at the right of the bottom bar, opposite the copyright."></span></label>
|
|
105
|
+
<input id="stx-footer-tagline" type="text" class="form-input" maxlength="80" placeholder="Websites. Hosting. Support." data-model="footerTagline.value">
|
|
106
|
+
</div>
|
|
107
|
+
<div class="stx-wide">
|
|
108
|
+
<label class="form-label" for="stx-footer-facts">Facts
|
|
109
|
+
<span data-help="Short facts in a row above the bottom bar, one per line, up to four - a town, opening hours, a promise."></span></label>
|
|
110
|
+
<textarea id="stx-footer-facts" class="form-input" rows="3" placeholder="Leeds, UK Open 9 to 5" data-model="footerFacts.value"></textarea>
|
|
111
|
+
</div>
|
|
112
|
+
<div>
|
|
113
|
+
<label class="form-label" for="stx-footer-grad-from">Gradient from
|
|
114
|
+
<span data-help="The colours of the gradient words and the line along the top, as #rrggbb. Leave them empty for your theme's colour."></span></label>
|
|
115
|
+
<input id="stx-footer-grad-from" type="text" class="form-input" maxlength="7" placeholder="#f26b3a" data-model="footerGradFrom.value">
|
|
116
|
+
</div>
|
|
117
|
+
<div>
|
|
118
|
+
<label class="form-label" for="stx-footer-grad-to">Gradient to</label>
|
|
119
|
+
<input id="stx-footer-grad-to" type="text" class="form-input" maxlength="7" placeholder="#8b5cf6" data-model="footerGradTo.value">
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div class="stx-card dm-settings-section">
|
|
124
|
+
<div class="stx-card-title dm-settings-section-title"><span data-icon="share-2" data-icon-size="16" aria-hidden="true"></span>Social media icons
|
|
125
|
+
<span data-help="The full address of each profile - its icon then shows in the footer. Leave one empty to hide its icon."></span></div>
|
|
126
|
+
<div class="stx-grid">
|
|
127
|
+
<div><label class="form-label" for="stx-s-tw">X / Twitter</label>
|
|
128
|
+
<input id="stx-s-tw" type="url" class="form-input" placeholder="https://x.com/yourhandle" data-model="socialTwitter.value"></div>
|
|
129
|
+
<div><label class="form-label" for="stx-s-fb">Facebook</label>
|
|
130
|
+
<input id="stx-s-fb" type="url" class="form-input" placeholder="https://facebook.com/yourpage" data-model="socialFacebook.value"></div>
|
|
131
|
+
<div><label class="form-label" for="stx-s-ig">Instagram</label>
|
|
132
|
+
<input id="stx-s-ig" type="url" class="form-input" placeholder="https://instagram.com/yourhandle" data-model="socialInstagram.value"></div>
|
|
133
|
+
<div><label class="form-label" for="stx-s-li">LinkedIn</label>
|
|
134
|
+
<input id="stx-s-li" type="url" class="form-input" placeholder="https://linkedin.com/company/yourcompany" data-model="socialLinkedin.value"></div>
|
|
135
|
+
<div><label class="form-label" for="stx-s-gh">GitHub</label>
|
|
136
|
+
<input id="stx-s-gh" type="url" class="form-input" placeholder="https://github.com/yourorg" data-model="socialGithub.value"></div>
|
|
137
|
+
<div><label class="form-label" for="stx-s-yt">YouTube</label>
|
|
138
|
+
<input id="stx-s-yt" type="url" class="form-input" placeholder="https://youtube.com/@yourchannel" data-model="socialYoutube.value"></div>
|
|
139
|
+
</div>
|
|
140
|
+
</div>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
|
|
144
|
+
</div>
|
|
145
|
+
<link rel="stylesheet" href="/admin/css/site-settings.css">
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
</div>
|
|
129
129
|
<div class="form-group dm-look-field">
|
|
130
130
|
<label for="me-look-bar">Bar shape
|
|
131
|
-
<span data-help-title="Bar shape" data-help="Pill gathers the items into one rounded capsule, and the item under the pointer gets its own soft pill. Segmented puts them in a tray with one raised thumb that slides to the item you point at. Underline has no tray - a short bar glides under the item. Dock makes the items swell as the pointer passes, like a dock. Neon gives the tray a glowing edge and the items a glow - best on dark themes.
|
|
131
|
+
<span data-help-title="Bar shape" data-help="Pill gathers the items into one rounded capsule, and the item under the pointer gets its own soft pill. Segmented puts them in a tray with one raised thumb that slides to the item you point at. Underline has no tray - a short bar glides under the item. Dock makes the items swell as the pointer passes, like a dock. Neon gives the tray a glowing edge and the items a glow - best on dark themes. Tabs stands the items on a line as folder tabs, and the current page's tab joins the page. Tiles turns each item into a coloured icon square over its label. Bubbles gives each item a floating pill of its own. Brutalist draws thick borders and hard shadows in bold type. Gradient makes the bar a colour band in the theme's colours, with the current page in a white pill. Pill, Segmented, Dock, Neon and Bubbles float over the page without a strip unless Bar background says Strip. Navbar only, horizontal only, desktop only."></span></label>
|
|
132
132
|
<select id="me-look-bar" name="lookBar" class="form-input">
|
|
133
133
|
<option value="">Standard</option>
|
|
134
134
|
<option value="pill">Pill</option>
|
|
@@ -136,6 +136,11 @@
|
|
|
136
136
|
<option value="underline">Underline glide</option>
|
|
137
137
|
<option value="dock">Dock</option>
|
|
138
138
|
<option value="neon">Neon</option>
|
|
139
|
+
<option value="tabs">Tabs</option>
|
|
140
|
+
<option value="tiles">Tiles</option>
|
|
141
|
+
<option value="bubbles">Bubbles</option>
|
|
142
|
+
<option value="brutalist">Brutalist</option>
|
|
143
|
+
<option value="gradient">Gradient band</option>
|
|
139
144
|
</select>
|
|
140
145
|
<label class="flex items-center gap-2" style="margin-top:.4rem"><input type="checkbox" id="me-look-shrink" name="lookShrink" style="width:auto;margin:0"> Shrink when the page scrolls
|
|
141
146
|
<span data-help-title="Shrink when the page scrolls" data-help="Reduce the desktop navbar size after the visitor starts scrolling, leaving more room for page content. This belongs to the horizontal navbar bar shape settings; it does not shrink a vertical rail, the admin sidebar or the mobile drawer. Visitors who request reduced motion receive the calmer presentation."></span></label>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!--
|
|
1
|
+
<!-- Appearance > Search. Bound with M.applyBindings - see admin/js/views/search.js, which also inserts the
|
|
2
2
|
preview row template (the router renders a templateUrl through _.render, eating any {{…}}).
|
|
3
3
|
No page heading: the Tool banner above is the heading; Save and View site are banner actions. -->
|
|
4
4
|
<div class="ssx">
|
|
@@ -16,16 +16,9 @@
|
|
|
16
16
|
<span data-icon="alert-triangle" data-icon-size="16"></span>
|
|
17
17
|
<span data-bind-text="clampText.value"></span></p>
|
|
18
18
|
|
|
19
|
-
<div class="
|
|
20
|
-
<div class="tab-list">
|
|
21
|
-
<button type="button" class="tab-item active">Search</button>
|
|
22
|
-
<button type="button" class="tab-item">Trigger & position</button>
|
|
23
|
-
<button type="button" class="tab-item">Try it</button>
|
|
24
|
-
<button type="button" class="tab-item">How it works</button>
|
|
25
|
-
</div>
|
|
26
|
-
|
|
19
|
+
<div class="ssx-sections">
|
|
27
20
|
<!-- Search -->
|
|
28
|
-
<div class="
|
|
21
|
+
<div class="ssx-section" role="region" aria-label="Search settings">
|
|
29
22
|
<div class="ssx-card dm-settings-section">
|
|
30
23
|
<div class="ssx-card-title dm-settings-section-title">Live now
|
|
31
24
|
<span data-help-title="Live now" data-help="What visitors get at the moment - the saved settings, not what you are editing. Searchable pages are the published, public ones; drafts and private pages never appear in results."></span></div>
|
|
@@ -72,7 +65,7 @@
|
|
|
72
65
|
</div>
|
|
73
66
|
|
|
74
67
|
<!-- Trigger & position -->
|
|
75
|
-
<div class="
|
|
68
|
+
<div class="ssx-section" role="region" aria-label="Trigger and position">
|
|
76
69
|
<div class="ssx-card dm-settings-section">
|
|
77
70
|
<div class="ssx-card-title dm-settings-section-title">How visitors open it
|
|
78
71
|
<span data-help-title="Trigger" data-help="Navbar adds a search icon to the site's navigation bar. Floating button puts a fixed button on every page, in the corner or side you choose - useful when the navigation is busy or hidden on small screens."></span></div>
|
|
@@ -132,7 +125,7 @@
|
|
|
132
125
|
</div>
|
|
133
126
|
|
|
134
127
|
<!-- Try it -->
|
|
135
|
-
<div class="
|
|
128
|
+
<div class="ssx-section" role="region" aria-label="Try a search">
|
|
136
129
|
<div class="ssx-card dm-settings-section">
|
|
137
130
|
<div class="ssx-card-title dm-settings-section-title">Try a search
|
|
138
131
|
<span data-help-title="Try it" data-help="Runs the site's own search as a visitor would - published, public pages only, ranked the same way - using the Max results you are editing, before you Save. Right-click a result (or ⋮) to open or edit the page."></span></div>
|
|
@@ -145,7 +138,7 @@
|
|
|
145
138
|
</div>
|
|
146
139
|
|
|
147
140
|
<!-- How it works -->
|
|
148
|
-
<div class="
|
|
141
|
+
<div class="ssx-section" role="region" aria-label="How search works">
|
|
149
142
|
<div class="ssx-card dm-settings-section">
|
|
150
143
|
<div class="ssx-card-title dm-settings-section-title">How search works</div>
|
|
151
144
|
<ul class="ssx-how">
|
|
@@ -163,6 +156,12 @@
|
|
|
163
156
|
|
|
164
157
|
<style>
|
|
165
158
|
.ssx, .ssx-body { display: flex; flex-direction: column; gap: .75rem; }
|
|
159
|
+
.ssx-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
|
|
160
|
+
.ssx-section { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
|
|
161
|
+
.ssx-section > .ssx-card { margin-top: 0; min-width: 0; }
|
|
162
|
+
.ssx-grid > * { min-width: 0; }
|
|
163
|
+
.ssx-grid .form-input { min-width: 0; width: 100%; }
|
|
164
|
+
@media (max-width: 1100px) { .ssx-sections { grid-template-columns: minmax(0, 1fr); } }
|
|
166
165
|
.ssx-alert.is-bad { background: color-mix(in srgb, var(--dm-danger) 14%, transparent); color: var(--dm-danger); }
|
|
167
166
|
.ssx [hidden] { display: none !important; }
|
|
168
167
|
.ssx-alert { margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; padding: .6rem .8rem; border-radius: var(--dm-radius-md);
|
|
@@ -172,8 +171,8 @@
|
|
|
172
171
|
.ssx-card { border: 1px solid var(--dm-border); border-radius: var(--dm-radius-md); padding: .75rem .9rem; display: flex; flex-direction: column; gap: .7rem; margin-top: .75rem; }
|
|
173
172
|
.ssx-card-title { display: flex; align-items: center; gap: .35rem; font-weight: 600; }
|
|
174
173
|
.ssx-sub { font-size: var(--dm-text-sm); }
|
|
175
|
-
.ssx-grid { display: grid; grid-template-columns:
|
|
176
|
-
.ssx-grid-3 { grid-template-columns:
|
|
174
|
+
.ssx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; }
|
|
175
|
+
.ssx-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
|
|
177
176
|
.ssx-wide { grid-column: 1 / -1; }
|
|
178
177
|
.ssx .form-label { display: flex; align-items: center; gap: .3rem; }
|
|
179
178
|
.ssx-setting { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
|