domma-cms 0.115.0 → 0.115.2
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/bin/cli.js +6 -4
- package/bin/update.js +2 -1
- package/config/plugins.json +5 -0
- package/package.json +1 -1
- package/server/services/markdown.js +3 -1
- package/server/templates/page.html +1 -1
package/bin/cli.js
CHANGED
|
@@ -249,9 +249,11 @@ const DEFAULT_NAV = {
|
|
|
249
249
|
position: 'sticky'
|
|
250
250
|
};
|
|
251
251
|
|
|
252
|
-
// Discover the bundled plugins and list them in plugins.json, all switched off
|
|
253
|
-
// a fresh project enables what it wants from the Marketplace
|
|
254
|
-
//
|
|
252
|
+
// Discover the bundled plugins and list them in plugins.json, all switched off -
|
|
253
|
+
// a fresh project enables what it wants from the Marketplace - except the ones
|
|
254
|
+
// every site has on arrival: Support (how a customer reaches Domma, whatever
|
|
255
|
+
// their tier). (Analytics, the theme switcher and the effects are core now.)
|
|
256
|
+
const ON_ARRIVAL = new Set(['support']);
|
|
255
257
|
const DEFAULT_PLUGINS = {};
|
|
256
258
|
try {
|
|
257
259
|
const pluginsRoot = path.join(target, 'plugins');
|
|
@@ -262,7 +264,7 @@ try {
|
|
|
262
264
|
const manifestPath = path.join(pluginsRoot, name, 'plugin.json');
|
|
263
265
|
try {
|
|
264
266
|
JSON.parse(readFileSync(manifestPath, 'utf8')); // validate manifest exists
|
|
265
|
-
DEFAULT_PLUGINS[name] = {enabled:
|
|
267
|
+
DEFAULT_PLUGINS[name] = {enabled: ON_ARRIVAL.has(name), settings: {}};
|
|
266
268
|
} catch { /* no valid plugin.json - skip */
|
|
267
269
|
}
|
|
268
270
|
}
|
package/bin/update.js
CHANGED
|
@@ -441,7 +441,8 @@ export default async function update(_positional, flags) {
|
|
|
441
441
|
// left off protects nobody. Only the FIRST time: a site that switched it
|
|
442
442
|
// off keeps it off.)
|
|
443
443
|
// -------------------------------------------------------------------------
|
|
444
|
-
|
|
444
|
+
// support: every site can reach Domma, whatever its tier (2026-10-04).
|
|
445
|
+
const ON_ARRIVAL = new Set(['security', 'support']);
|
|
445
446
|
|
|
446
447
|
const pluginsJsonPath = path.join(cwd, 'config/plugins.json');
|
|
447
448
|
if (newPlugins.length > 0 && existsSync(pluginsJsonPath)) {
|
package/config/plugins.json
CHANGED
package/package.json
CHANGED
|
@@ -2586,6 +2586,8 @@ LAYOUT_RENDERERS['pricing'] = (attrs, body) => {
|
|
|
2586
2586
|
// Where the button goes - it always went to "#" before. Same handling as [button]'s href;
|
|
2587
2587
|
// the sanitiser removes a javascript: URL.
|
|
2588
2588
|
const href = escapeAttr(attrs.href || '#');
|
|
2589
|
+
// card-pricing-btn: site.css's content-link rules skip any class containing "btn" - without it
|
|
2590
|
+
// they coloured and underlined the button like a link in the text.
|
|
2589
2591
|
const features = parseSubTagList(body, 'feature');
|
|
2590
2592
|
const featHtml = features.map(f => `<div class="card-pricing-feature"><span class="card-pricing-check">\u2713</span>${escapeAttr(f.content)}</div>`).join('');
|
|
2591
2593
|
return `${cardRoot(attrs)}<div class="card-header card-gradient-${gradient}">
|
|
@@ -2593,7 +2595,7 @@ LAYOUT_RENDERERS['pricing'] = (attrs, body) => {
|
|
|
2593
2595
|
<div class="card-stat-value" style="color:#fff">${price}</div>
|
|
2594
2596
|
${period ? `<div style="opacity:.75;font-size:.8rem">${period}</div>` : ''}
|
|
2595
2597
|
</div><div class="card-pricing-features">${featHtml}</div>
|
|
2596
|
-
<a class="card-pricing-cta" href="${href}">${cta}</a></div>\n`;
|
|
2598
|
+
<a class="card-pricing-cta card-pricing-btn" href="${href}">${cta}</a></div>\n`;
|
|
2597
2599
|
};
|
|
2598
2600
|
|
|
2599
2601
|
LAYOUT_RENDERERS['feature-comparison'] = (attrs, body) => {
|
|
@@ -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=20261004-pricing-
|
|
28
|
+
<link rel="stylesheet" href="/public/css/site.css?v=20261004-pricing-btn">
|
|
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. -->
|